@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Outfit:wght@300;400;500&display=swap");

:root {
  --cream: #f3eee6;
  --ink: #2b2218;
  --mute: #8d7f6e;
  --gold: #c9a45c;
  --copper: #b8733a;
  --serif: "Cormorant Garamond", Palatino, serif;
  --sans: "Outfit", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

.aura {
  position: fixed; inset: -20%;
  background:
    radial-gradient(ellipse 70% 50% at 20% 10%, rgba(232,190,110,.45), transparent 50%),
    radial-gradient(ellipse 60% 45% at 90% 20%, rgba(184,115,58,.28), transparent 52%),
    radial-gradient(ellipse 50% 40% at 50% 90%, rgba(201,164,90,.22), transparent 50%),
    radial-gradient(ellipse 40% 30% at 10% 80%, rgba(255,255,255,.35), transparent 50%);
  animation: drift 16s ease-in-out infinite alternate;
  pointer-events: none; z-index: 0;
}
.veil {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.screen { position: relative; z-index: 1; max-width: 430px; margin: 0 auto; min-height: 100dvh; padding: 28px 22px 36px; display: flex; flex-direction: column; }
.hidden { display: none !important; }
.stage { text-align: center; }

.eyebrow {
  letter-spacing: .42em; text-transform: uppercase; font-size: 10px; color: var(--mute);
  margin-top: 8px;
}
.mark-wrap {
  margin: 28px auto 10px; width: 168px; height: 168px;
  animation: rise 1.2s ease both, float 7s ease-in-out 1.2s infinite;
}
.mark-wrap.sm { width: 108px; height: 108px; margin: 8px auto 4px; }
.mark {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 30px 60px rgba(80,50,16,.16);
  filter: saturate(1.05);
}

.word {
  font-family: var(--serif); font-weight: 600; font-size: 64px; letter-spacing: -.03em; line-height: .95;
  background: linear-gradient(110deg, #6e4a18 0%, #f0d28a 25%, #9a6a28 50%, #f7e4b0 75%, #7a521c 100%);
  background-size: 240% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: metal 6s linear infinite;
}
.word.sm { font-size: 42px; }
.line { margin-top: 12px; color: var(--mute); font-weight: 300; letter-spacing: .02em; }

.enter { margin-top: 36px; text-align: left; }
.enter input, .screen input, .screen textarea, .screen select {
  width: 100%; border: 0; background: rgba(255,252,247,.55);
  border-radius: 18px; padding: 16px 18px; margin-top: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 10px 30px rgba(80,50,16,.04);
  outline: none; font: inherit; color: var(--ink);
}
textarea { min-height: 44vh; line-height: 1.55; }

.lux {
  position: relative; overflow: hidden;
  width: 100%; margin-top: 16px; border: 0; border-radius: 999px;
  padding: 17px 20px; font: inherit; font-weight: 500; color: #2a1c0e;
  background: linear-gradient(180deg, #e8c88a, #c48a40);
  box-shadow: 0 16px 34px rgba(180,110,30,.22), inset 0 1px 0 rgba(255,240,200,.7);
}
.lux span { position: relative; z-index: 1; }
.lux::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: wash 3.4s ease-in-out infinite;
}
.lux.dim { background: rgba(255,252,247,.6); color: var(--ink); box-shadow: none; }
.lux.dim::after { animation: none; }

.soft-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 14px; }
.soft-row.tight { grid-template-columns: 1fr 1fr; }
.soft-row button, .ghost-ico, .task {
  border: 0; background: rgba(255,252,247,.48);
  border-radius: 999px; padding: 12px; font: inherit; color: var(--ink);
  backdrop-filter: blur(10px);
}
.ghost-ico { padding: 8px 14px; font-size: 13px; letter-spacing: .06em; }

.rail { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.status { display: flex; justify-content: center; align-items: center; gap: 8px; color: #4d8a5c; font-size: 13px; margin: 6px 0 18px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #4d8a5c; box-shadow: 0 0 10px #4d8a5c; }

.panels { display: grid; gap: 12px; }
.silk {
  border: 0; text-align: left; padding: 26px 24px; border-radius: 28px; color: #fff;
  min-height: 118px; position: relative; overflow: hidden;
}
.silk em { font-family: var(--serif); font-style: normal; font-size: 32px; display: block; }
.silk span { display: block; margin-top: 6px; opacity: .8; font-size: 13px; letter-spacing: .04em; }
.silk.soul { background: linear-gradient(160deg, rgba(122,88,150,.95), rgba(48,30,70,.92)); }
.silk.mem { background: linear-gradient(160deg, rgba(184,96,64,.95), rgba(80,32,20,.92)); }
.silk::after {
  content: ""; position: absolute; inset: -40% auto -40% -40%; width: 50%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
  animation: wash 5s ease-in-out infinite;
}

.foot { margin-top: auto; padding-top: 22px; }
.thread { flex: 1; padding: 12px 2px 16px; }
.bubble { margin: 18px 0; text-align: left; }
.bubble .who { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.bubble .txt { font-size: 17px; line-height: 1.55; white-space: pre-wrap; }
.composer {
  display: flex; gap: 8px; align-items: flex-end;
  background: rgba(255,252,247,.7); border-radius: 28px; padding: 8px 8px 8px 16px;
  box-shadow: 0 16px 40px rgba(80,50,16,.08);
}
.composer textarea { margin: 0; min-height: 48px; background: transparent; box-shadow: none; padding: 12px 0; }
.orb {
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(43,34,24,.08); flex-shrink: 0;
}
.orb.dark { background: #2b2218; color: #f3eee6; }
.list button.item {
  width: 100%; display: flex; justify-content: space-between;
  padding: 16px 4px; border: 0; border-bottom: 1px solid rgba(43,34,24,.08);
  background: transparent; font: inherit;
}
.ask { font-family: var(--serif); font-size: 36px; font-weight: 500; text-align: left; margin: 18px 0 16px; letter-spacing: -.02em; }
.task { width: 100%; text-align: left; margin-top: 10px; border-radius: 20px; padding: 18px; }
label { display: block; margin: 16px 0 6px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.err { color: #9b3b2c; font-size: 13px; margin-top: 8px; }
.ok { color: #4d8a5c; font-size: 13px; margin-top: 8px; }

@keyframes drift {
  0% { transform: translate3d(-3%, -2%, 0) scale(1); }
  100% { transform: translate3d(4%, 3%, 0) scale(1.08); }
}
@keyframes metal { to { background-position: 240% center; } }
@keyframes wash {
  0% { transform: translateX(-120%); }
  60%, 100% { transform: translateX(120%); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to { opacity: 1; transform: none; }
}

button { color: var(--ink); -webkit-tap-highlight-color: transparent; }
a, a:visited { color: inherit; text-decoration: none; }
.list button.item {
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink);
}
.list button.item .nm { font-weight: 500; }
.list button.item .go {
  min-width: 88px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,252,247,.8);
  color: var(--ink) !important;
  font-size: 13px;
  letter-spacing: .04em;
}
.list button.item .go.on {
  background: linear-gradient(180deg, #e8c88a, #c48a40);
  color: #2a1c0e !important;
}
.adv { display: none; margin-top: 12px; }
.adv.open { display: block; }
.or { text-align: center; color: var(--mute); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; margin: 16px 0 6px; }

.lux.hero { margin: 28px 0 0; }
.dock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 28px;
  padding: 8px;
  border-radius: 28px;
  background: rgba(255,252,247,.55);
  box-shadow: 0 18px 40px rgba(80,50,16,.08), inset 0 1px 0 rgba(255,255,255,.7);
  backdrop-filter: blur(16px);
}
.dock button {
  border: 0;
  background: transparent;
  border-radius: 20px;
  padding: 12px 4px 10px;
  color: var(--ink);
  display: grid;
  gap: 6px;
  place-items: center;
  font-size: 11px;
  letter-spacing: .04em;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), background .35s;
}
.dock button:active { transform: scale(.94); background: rgba(255,255,255,.7); }
.dock .ic {
  width: 22px; height: 22px; display: block;
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
  opacity: .78;
  animation: pulse 3.6s ease-in-out infinite;
}
.dock button:nth-child(2) .ic { animation-delay: .4s; }
.dock button:nth-child(3) .ic { animation-delay: .8s; }
.dock button:nth-child(4) .ic { animation-delay: 1.2s; }
.ic.desk { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M4 7h16M4 12h16M4 17h10'/%3E%3C/svg%3E"); }
.ic.thread { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M4 19V7a2 2 0 012-2h12a2 2 0 012 2v8a2 2 0 01-2 2H8z'/%3E%3C/svg%3E"); }
.ic.link { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='8' cy='8' r='2.4'/%3E%3Ccircle cx='16' cy='16' r='2.4'/%3E%3Cpath d='M10 9.6L14 14.4'/%3E%3C/svg%3E"); }
.ic.atelier { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 3v2M12 19v2M3 12h2M19 12h2'/%3E%3C/svg%3E"); }
@keyframes pulse {
  0%, 100% { opacity: .62; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
.panels { margin: 18px 0 8px; }
