/* Tryst: an after-hours programme. Ink and plum ground, paper-cream type, one hot vermilion. */
:root {
  --ink: #120e12; --ink-2: #1a141a; --ink-3: #241b23; --ink-4: #31252f; --line: #3b2d38; --line-soft: #2a2028;
  --paper: #efe7da; --paper-2: #cfc4b6; --muted: #9a8d86; --faint: #6f635f;
  --hot: #ff5b3a; --hot-2: #ff8a66; --brass: #c9a66b; --mint: #8fd3b6; --rose: #e58aa6;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif; --sans: "Hanken Grotesk", "Avenir Next", system-ui, sans-serif;
  --r: 14px; --r-sm: 9px; --shadow: 0 18px 50px -18px rgba(0,0,0,.75);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--paper); font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow: hidden;
}
body::before {  /* warmth in one corner, as from a lamp */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(900px 600px at 88% -10%, rgba(255,91,58,.13), transparent 60%),
              radial-gradient(700px 700px at -10% 110%, rgba(201,166,107,.09), transparent 60%);
}
body::after {   /* paper grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
#app { position: relative; z-index: 1; height: 100dvh; display: flex; flex-direction: column; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
::selection { background: var(--hot); color: var(--ink); }
.scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }

/* type */
.display { font-family: var(--serif); font-weight: 400; font-variation-settings: "opsz" 144; letter-spacing: -.02em; line-height: .95; }
.display em, em.s { font-style: italic; font-weight: 300; }
.kicker { font: 600 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--brass); }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.prose { font-family: var(--serif); font-variation-settings: "opsz" 14; font-size: 16.5px; line-height: 1.62; color: var(--paper); }
.prose p { margin: 0 0 .8em; }

/* buttons and fields */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: transparent; color: var(--paper);
  padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: border-color .15s, background .15s, transform .1s; white-space: nowrap; }
.btn:hover { border-color: var(--paper-2); } .btn:active { transform: translateY(1px); }
.btn.hot { background: var(--hot); border-color: var(--hot); color: #1b0d09; } .btn.hot:hover { background: var(--hot-2); border-color: var(--hot-2); }
.btn.ghost { border-color: transparent; color: var(--paper-2); padding: 8px 10px; } .btn.ghost:hover { color: var(--paper); background: var(--ink-3); }
.btn.sm { padding: 6px 12px; font-size: 13px; } .btn[disabled] { opacity: .45; pointer-events: none; }
.btn.danger:hover { border-color: #e06a6a; color: #f0a0a0; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.field { display: block; margin: 0 0 16px; }
.field > span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.field small { display: block; color: var(--faint); margin-top: 6px; font-size: 12.5px; line-height: 1.4; }
input[type=text], input[type=password], textarea, select {
  width: 100%; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 13px; outline: none;
  transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: var(--hot); box-shadow: 0 0 0 3px rgba(255,91,58,.18); }
input[type=range] { width: 100%; accent-color: var(--hot); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--ink-2); flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--paper); color: var(--ink); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.switch b { font-weight: 600; } .switch small { display: block; color: var(--faint); font-size: 12.5px; }
.tog { appearance: none; width: 42px; height: 24px; border-radius: 99px; background: var(--ink-4); position: relative; flex: none; border: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.tog::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper-2); transition: transform .18s; }
.tog:checked { background: var(--hot); border-color: var(--hot); } .tog:checked::after { transform: translateX(18px); background: #1b0d09; }

/* top bar */
.bar { display: flex; align-items: center; gap: 14px; padding: 14px clamp(16px, 3vw, 34px); border-bottom: 1px solid var(--line-soft); flex: none; }
.wordmark { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 30px; letter-spacing: -.03em; line-height: 1; text-decoration: none; font-variation-settings: "opsz" 144; }
.wordmark i { color: var(--hot); font-style: normal; }
.bar .grow { flex: 1; min-width: 0; }
.crumb { font-family: var(--serif); font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* sign in */
.gate { flex: 1; display: grid; place-items: center; padding: 24px; }
.gate form { width: min(380px, 100%); text-align: center; animation: rise .7s both; }
.gate .wordmark { font-size: clamp(84px, 22vw, 150px); display: block; margin-bottom: 4px; }
.gate p { color: var(--muted); margin: 0 0 26px; font-family: var(--serif); font-style: italic; font-size: 18px; }
.gate input { text-align: center; letter-spacing: .2em; margin-bottom: 12px; }
.gate .btn { width: 100%; justify-content: center; padding: 12px; }
.err { color: #f0a0a0; font-size: 14px; min-height: 22px; margin-top: 10px; }

/* home: worlds */
.page { flex: 1; min-height: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: clamp(22px, 4vw, 48px) clamp(16px, 3vw, 34px) 80px; }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.hero h1 { font-size: clamp(44px, 8vw, 92px); margin: 8px 0 0; }
.worlds { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.world { position: relative; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--ink-2); min-height: 330px; display: flex;
  flex-direction: column; justify-content: flex-end; text-align: left; padding: 0; color: inherit; transition: transform .25s, border-color .2s; animation: rise .6s both; }
.world:hover { transform: translateY(-3px); border-color: var(--paper-2); }
.world img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; filter: saturate(.9); }
.world::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,14,18,0) 30%, rgba(18,14,18,.93) 78%); }
.world .in { position: relative; z-index: 1; padding: 18px; }
.world h3 { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.02; margin: 6px 0 8px; letter-spacing: -.01em; }
.world p { margin: 0; color: var(--paper-2); font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.world.new { border-style: dashed; justify-content: center; align-items: center; text-align: center; min-height: 330px; background: transparent; }
.world.new::after { display: none; } .world.new .plus { font-family: var(--serif); font-size: 80px; font-weight: 300; line-height: .8; color: var(--hot); }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 5px 8px; border-radius: 99px;
  border: 1px solid var(--line); color: var(--paper-2); background: rgba(18,14,18,.55); backdrop-filter: blur(6px); }
.chip.hot { color: var(--hot-2); border-color: rgba(255,91,58,.5); } .chip.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--hot); animation: pulse 1.2s infinite; }

/* a world: its cast */
.world-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(18px, 4vw, 60px); align-items: end; margin-bottom: 34px; }
.world-head h1 { font-size: clamp(42px, 7vw, 88px); margin: 10px 0 0; }
.world-head .pitch { font-family: var(--serif); font-size: 18.5px; line-height: 1.45; color: var(--paper-2); margin: 0 0 14px; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; }
.cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; }
.card { position: relative; aspect-ratio: 832 / 1216; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--ink-2); text-align: left; padding: 0;
  color: inherit; animation: rise .6s both; transition: transform .25s, border-color .2s; }
.card:hover { transform: translateY(-4px) rotate(-.35deg); border-color: var(--paper-2); }
.card:nth-child(even):hover { transform: translateY(-4px) rotate(.35deg); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,14,18,0) 46%, rgba(18,14,18,.94) 86%); }
.card .in { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 14px 14px 13px; }
.card h3 { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 34px; line-height: .95; margin: 0 0 6px; letter-spacing: -.02em; font-variation-settings: "opsz" 144; }
.card .who { font-size: 12.5px; color: var(--paper-2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .top { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 1; display: flex; justify-content: space-between; gap: 6px; }
.card.blank { display: grid; place-items: center; }
.card.blank::after { display: none; }
.card .wait { text-align: center; padding: 20px; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 17px; }
.shimmer { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(239,231,218,.06) 50%, transparent 70%); background-size: 220% 100%; animation: sheen 1.8s linear infinite; }
.card.add { border-style: dashed; background: transparent; display: grid; place-items: center; color: var(--muted); } .card.add::after { display: none; }
.card.add .plus { font-family: var(--serif); font-size: 64px; font-weight: 300; color: var(--hot); line-height: 1; }
.status-line { font-family: var(--serif); font-style: italic; color: var(--brass); font-size: 17px; margin: -14px 0 26px; min-height: 24px; }

/* a person: profile beside conversation */
.duo { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); }
.profile { border-right: 1px solid var(--line-soft); min-height: 0; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--ink-2), var(--ink)); }
.portrait { position: relative; flex: none; height: min(46vh, 480px); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; cursor: zoom-in; }
.portrait::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(26,20,26,0) 45%, var(--ink-2) 98%); }
.portrait .name { position: absolute; left: 20px; right: 20px; bottom: 6px; z-index: 1; }
.portrait h2 { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(46px, 5vw, 64px); line-height: .9; margin: 0; letter-spacing: -.03em; font-variation-settings: "opsz" 144; }
.portrait .sub { color: var(--paper-2); font-size: 13.5px; margin-top: 8px; }
.tabs { display: flex; gap: 2px; padding: 12px 14px 0; border-bottom: 1px solid var(--line-soft); flex: none; overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: transparent; color: var(--muted); padding: 9px 10px 11px; font-weight: 600; font-size: 13.5px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--paper); border-color: var(--hot); }
.pane { padding: 18px 20px 30px; flex: 1; min-height: 0; }
.pane h4 { font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin: 22px 0 9px; } .pane h4:first-child { margin-top: 0; }
.pane p { margin: 0 0 10px; color: var(--paper-2); font-size: 14.5px; line-height: 1.55; }
.pane .lede { font-family: var(--serif); font-size: 18px; line-height: 1.4; color: var(--paper); font-style: italic; }
.pane ul { margin: 0; padding-left: 18px; color: var(--paper-2); font-size: 14.5px; } .pane li { margin-bottom: 6px; }
.thread { display: flex; align-items: center; gap: 0; margin: 4px 0 16px; }
.thread i { flex: 1; height: 2px; background: var(--line); position: relative; } .thread i.done { background: var(--hot); }
.thread i.at::after { content: ""; position: absolute; right: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 4px rgba(255,91,58,.2); }
.stage-name { font-family: var(--serif); font-size: 24px; font-style: italic; }
.meter { display: grid; grid-template-columns: 84px 1fr 30px; align-items: center; gap: 10px; font-size: 13px; color: var(--paper-2); margin: 7px 0; }
.meter .track { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; } .meter .fill { height: 100%; background: var(--paper); border-radius: 3px; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.meter.hot .fill { background: var(--hot); } .meter span:last-child { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .gallery img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 6px; cursor: zoom-in; border: 1px solid var(--line-soft); }
.outfit { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.outfit img, .outfit .ph { width: 62px; height: 82px; border-radius: 6px; object-fit: cover; background: var(--ink-3); border: 1px solid var(--line-soft); }
.outfit b { display: block; font-size: 14.5px; } .outfit small { color: var(--muted); font-size: 12.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.drop { border: 1px dashed var(--line); border-radius: var(--r-sm); padding: 16px; text-align: center; color: var(--muted); font-size: 13.5px; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--hot); background: rgba(255,91,58,.06); color: var(--paper-2); }
.drop img { max-height: 130px; border-radius: 6px; display: block; margin: 0 auto 8px; }

/* conversation */
.talk { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.talk-head { display: none; }
.log { flex: 1; min-height: 0; padding: 22px clamp(14px, 3vw, 44px) 12px; display: flex; flex-direction: column; gap: 6px; }
.log .inner { max-width: 760px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: min(78%, 560px); padding: 10px 14px; border-radius: 18px; line-height: 1.45; font-size: 15.5px; white-space: pre-wrap; overflow-wrap: anywhere; animation: pop .28s both; position: relative; }
.msg.her { align-self: flex-start; background: var(--ink-3); border: 1px solid var(--line-soft); border-bottom-left-radius: 6px; }
.msg.her + .msg.her { margin-top: -1px; }
.msg.me { align-self: flex-end; background: var(--paper); color: #1d1518; border-bottom-right-radius: 6px; }
.msg.scene { max-width: 100%; align-self: stretch; background: transparent; border: 0; border-left: 2px solid var(--hot); border-radius: 0; padding: 4px 0 4px 18px; margin: 10px 0;
  font-family: var(--serif); font-size: 17.5px; line-height: 1.62; font-variation-settings: "opsz" 14; }
.msg.me.scene { border-left-color: var(--paper-2); color: var(--paper-2); font-style: italic; }
.msg .say { position: absolute; right: -34px; bottom: 2px; opacity: 0; transition: opacity .15s; border: 0; background: transparent; color: var(--muted); padding: 6px; }
.msg.scene .say { right: 0; bottom: -26px; }
.msg:hover .say, .msg .say.on { opacity: 1; } .msg .say.on { color: var(--hot); }
.note { align-self: center; text-align: center; max-width: 560px; font-family: var(--serif); font-style: italic; color: var(--brass); font-size: 15.5px; line-height: 1.45; padding: 14px 10px; }
.note::before, .note::after { content: "·"; margin: 0 10px; color: var(--line); }
.pic { align-self: flex-start; width: min(320px, 76%); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--ink-2); animation: pop .3s both; }
.pic img { display: block; width: 100%; cursor: zoom-in; } .pic figcaption { padding: 8px 12px 10px; font-size: 12.5px; color: var(--muted); font-style: italic; }
.pic.wide { width: min(520px, 92%); }
.pic .dev { aspect-ratio: 3/4; display: grid; place-items: center; position: relative; color: var(--muted); font-family: var(--serif); font-style: italic; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 14px 16px; background: var(--ink-3); border-radius: 18px; border-bottom-left-radius: 6px; border: 1px solid var(--line-soft); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; } .typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.where { align-self: center; margin: 2px auto 8px; }
.composer { flex: none; padding: 10px clamp(14px, 3vw, 44px) calc(14px + var(--safe-b)); border-top: 1px solid var(--line-soft); background: linear-gradient(180deg, rgba(18,14,18,0), var(--ink) 30%); }
.composer .inner { max-width: 760px; margin: 0 auto; }
.composer .row { display: flex; align-items: flex-end; gap: 8px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 22px; padding: 6px 6px 6px 14px; transition: border-color .15s; }
.composer .row:focus-within { border-color: var(--hot); }
.composer textarea { flex: 1; border: 0; background: transparent; padding: 8px 0; min-height: 24px; max-height: 160px; resize: none; box-shadow: none !important; border-radius: 0; }
.composer .send { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--hot); color: #1b0d09; display: grid; place-items: center; flex: none; }
.composer .send[disabled] { background: var(--ink-4); color: var(--faint); }
.acts { display: flex; gap: 4px; margin-top: 8px; flex-wrap: wrap; align-items: center; }
.acts .btn { font-size: 13px; padding: 6px 10px; }

/* sheets (dialogs) */
.veil { position: fixed; inset: 0; z-index: 40; background: rgba(8,6,8,.72); backdrop-filter: blur(5px); display: grid; place-items: center; padding: 18px; animation: fade .2s both; }
.sheet { width: min(720px, 100%); max-height: min(88dvh, 900px); background: var(--ink-2); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; animation: rise .35s both; }
.sheet.wide { width: min(980px, 100%); }
.sheet header { padding: 22px 24px 6px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sheet header h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; margin: 6px 0 0; letter-spacing: -.02em; }
.sheet .body { padding: 14px 24px 8px; flex: 1; min-height: 0; }
.sheet footer { padding: 14px 24px 20px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-bottom: 18px; }
.preset { text-align: left; border: 1px solid var(--line); background: var(--ink); border-radius: var(--r-sm); padding: 12px 13px; color: inherit; transition: border-color .15s, background .15s; }
.preset b { font-family: var(--serif); font-weight: 400; font-size: 19px; display: block; line-height: 1.1; margin-bottom: 5px; } .preset small { color: var(--muted); font-size: 12.5px; line-height: 1.35; display: block; }
.preset:hover { border-color: var(--paper-2); } .preset.on { border-color: var(--hot); background: rgba(255,91,58,.08); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.slider { margin-bottom: 14px; } .slider label { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--paper-2); margin-bottom: 4px; } .slider label b { font-variant-numeric: tabular-nums; color: var(--paper); }
.slider small { color: var(--faint); font-size: 12.5px; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(8,6,8,.94); display: grid; place-items: center; padding: 14px; cursor: zoom-out; animation: fade .2s both; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: var(--shadow); }
#toast-root { position: fixed; left: 50%; bottom: calc(22px + var(--safe-b)); transform: translateX(-50%); z-index: 70; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 99px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); animation: rise .3s both; max-width: 86vw; }
.toast.bad { background: #f0a0a0; }
.empty { text-align: center; color: var(--muted); padding: 60px 20px; font-family: var(--serif); font-style: italic; font-size: 20px; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheen { to { background-position: -220% 0; } }
@keyframes blink { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
@keyframes pulse { 50% { opacity: .3; } }

@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; }
  .profile { display: none; position: fixed; inset: 0; z-index: 30; border: 0; }
  .profile.open { display: flex; animation: fade .2s both; }
  .profile .close-profile { display: inline-flex !important; }
  .talk-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); flex: none; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; width: 100%; }
  .talk-head img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; border: 1px solid var(--line); }
  .talk-head b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 22px; display: block; line-height: 1; } .talk-head small { color: var(--muted); font-size: 12px; }
  .world-head { grid-template-columns: 1fr; } .cols { grid-template-columns: 1fr; }
  .cast { grid-template-columns: repeat(2, 1fr); gap: 10px; } .card h3 { font-size: 27px; }
  .msg { max-width: 86%; } .msg .say { opacity: .6; right: -30px; }
  .bar .hide-s { display: none; } .sheet header h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01s !important; transition-duration: .01s !important; } }
