:root {
  --paper: #fbf4e6;
  --paper-2: #f4e8d0;
  --ink: #3a2a20;
  --ink-soft: #6d5646;
  --accent: #e8932f;
  --night: #2a2030;
  --glass: rgba(42, 30, 24, 0.55);
  --glass-line: rgba(255, 236, 210, 0.22);
  --hand: 'Caveat', cursive;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Nunito', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #1f1814; color: var(--ink); font-family: var(--sans); }
button { font: inherit; }
.hidden { display: none !important; }

#stage, #stage canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#vignette { position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(40,20,10,0.38) 100%); }

/* ------------------------------------------------------------------ buttons */
.btn { appearance: none; border: 2px solid rgba(255, 240, 220, 0.55); background: rgba(255, 248, 236, 0.12);
  color: #fff8ec; padding: 0.8rem 1.5rem; border-radius: 999px; font-weight: 700; cursor: pointer;
  letter-spacing: 0.02em; transition: transform .15s ease, background .2s, box-shadow .2s; backdrop-filter: blur(6px); }
.btn:hover:not(:disabled) { transform: translateY(-2px); background: rgba(255, 248, 236, 0.22); }
.btn:disabled { opacity: 0.45; cursor: progress; }
.btn.primary { background: linear-gradient(180deg, #f6a94a, #e0812a); border-color: #ffd29a; color: #fff;
  box-shadow: 0 6px 24px rgba(232, 130, 40, 0.45); }
.btn.primary:hover:not(:disabled) { box-shadow: 0 10px 30px rgba(232, 130, 40, 0.6); }
.btn.small { padding: 0.45rem 1rem; font-size: 0.9rem; }
.btn.ghost { background: none; border-color: transparent; opacity: 0.7; font-size: 0.9rem; }
.icon-btn { appearance: none; border: 1px solid var(--glass-line); background: var(--glass); color: #fff; border-radius: 50%;
  width: 42px; height: 42px; cursor: pointer; font-size: 18px; backdrop-filter: blur(8px); }

/* ------------------------------------------------------------------ screens */
.screen { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; }
#title { background: radial-gradient(ellipse at 50% 50%, rgba(30, 18, 10, 0.28), rgba(30, 18, 10, 0.05) 70%); transition: opacity .9s ease; }
#title.leaving { opacity: 0; pointer-events: none; }
.title-card { text-align: center; color: #fff8ec; max-width: 640px; text-shadow: 0 2px 18px rgba(40, 20, 10, 0.55); }
.title-card .eyebrow { font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; font-size: 0.78rem; opacity: 0.85; }
.title-card h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(3.2rem, 11vw, 7rem); margin: 0.15em 0 0; line-height: 0.95; letter-spacing: -0.02em; }
.title-card h1 em, .read-brand em, .credits-roll h2 em { font-family: var(--hand); font-style: normal; font-weight: 700; color: #ffc06a; font-size: 1.05em; }
.tagline { font-size: 1.15rem; margin: 0.6rem 0 1.2rem; opacity: 0.95; }
.power-letters { display: flex; gap: 0.6rem; justify-content: center; margin-bottom: 1.4rem; }
.power-letters span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; font-family: var(--serif); font-weight: 800; font-size: 1.4rem;
  background: rgba(255, 248, 236, 0.14); border: 1px solid rgba(255, 240, 220, 0.4); backdrop-filter: blur(6px); animation: float 3.6s ease-in-out infinite; }
.power-letters span:nth-child(1) { color: #ffc27a; animation-delay: 0s; }
.power-letters span:nth-child(2) { color: #ff9a8c; animation-delay: .3s; }
.power-letters span:nth-child(3) { color: #a6ecc6; animation-delay: .6s; }
.power-letters span:nth-child(4) { color: #a6d4ff; animation-delay: .9s; }
.power-letters span:nth-child(5) { color: #ffb6dc; animation-delay: 1.2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.buttons { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.buttons.col { flex-direction: column; align-items: stretch; }
.controls-hint { font-size: 0.85rem; opacity: 0.8; margin-top: 1.2rem; }
#load { margin: 0 auto 1.2rem; width: min(320px, 80vw); transition: opacity .6s; }
#load.done #load-bar { opacity: 0; }
#load-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.2); overflow: hidden; transition: opacity .6s; }
#load-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffd29a, #f39a3a); transition: width .3s; }
#load-text { font-size: 0.82rem; margin-top: 0.45rem; opacity: 0.85; }

.title-card.small { background: rgba(42, 30, 24, 0.72); padding: 2rem 2.2rem; border-radius: 22px; border: 1px solid var(--glass-line); backdrop-filter: blur(14px); min-width: min(360px, 92vw); text-shadow: none; }
.title-card.small h2 { font-family: var(--serif); margin: 0 0 1rem; font-size: 2rem; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; text-align: left; margin: 1.4rem 0 0; font-size: 0.88rem; opacity: 0.85; }
.keys dt { font-weight: 800; color: #ffd29a; }
.keys dd { margin: 0; }

/* ------------------------------------------------------------------ HUD */
#hud { position: fixed; inset: 0; z-index: 5; pointer-events: none; color: #fff8ec; }
#hud > * { position: absolute; }
#power { top: 16px; left: 16px; display: flex; gap: 6px; }
.pl { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; font-family: var(--serif); font-weight: 800; font-size: 1.15rem;
  background: var(--glass); border: 1px solid var(--glass-line); color: rgba(255, 248, 236, 0.35); backdrop-filter: blur(8px); transition: all .4s; }
.pl.on { color: #fff; background: var(--c); border-color: rgba(255, 255, 255, 0.6); box-shadow: 0 0 18px var(--c); }
.pl.ghost { opacity: 0.25; }
.pl.flash { animation: pop 1.2s ease; }
@keyframes pop { 0% { transform: scale(1); } 30% { transform: scale(1.6) rotate(-8deg); } 60% { transform: scale(0.95); } 100% { transform: scale(1); } }
#compass { top: 16px; left: 50%; transform: translateX(-50%); background: var(--glass); border: 1px solid var(--glass-line); border-radius: 999px;
  padding: 0.5rem 1.1rem 0.5rem 0.7rem; display: flex; align-items: center; gap: 0.6rem; backdrop-filter: blur(8px); font-weight: 700; white-space: nowrap; }
#compass-arrow { display: inline-block; color: #ffc06a; font-size: 1.1rem; transition: transform .15s linear; }
#compass b { font-family: var(--serif); font-size: 1.1rem; margin-right: 0.15rem; }
#where { top: 62px; left: 16px; font-size: 0.82rem; opacity: 0.85; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
#minimap { right: 16px; bottom: 34px; width: 190px; height: 190px; border-radius: 50%; border: 3px solid rgba(255, 240, 220, 0.75);
  box-shadow: 0 8px 26px rgba(30, 18, 10, 0.45); pointer-events: none; transition: all .3s ease; }
#minimap.big { width: min(86vw, 86vh); height: min(86vw, 86vh); right: 50%; bottom: 50%; transform: translate(50%, 50%); border-radius: 22px; }
#lookat { bottom: 92px; left: 50%; transform: translateX(-50%); font-family: var(--hand); font-size: 1.7rem; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); transition: opacity .4s; }
#crosshair-unused { top: 50%; left: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: rgba(255, 248, 236, 0.75); box-shadow: 0 0 4px rgba(0,0,0,.5); }
#prompt { bottom: 140px; left: 50%; transform: translateX(-50%); background: var(--glass); padding: 0.5rem 1rem; border-radius: 999px; font-weight: 700; font-size: 0.9rem; transition: opacity .3s; opacity: 0; }
#mute-btn { top: 16px; right: 16px; pointer-events: auto; }
#attrib { right: 16px; bottom: 8px; font-size: 0.68rem; opacity: 0.75; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8); }
body[data-state="journal"] #hud > :not(#power) { opacity: 0 !important; }

#toast { position: fixed; z-index: 30; left: 50%; bottom: 40px; transform: translate(-50%, 20px); background: rgba(42, 30, 24, 0.82); color: #fff8ec;
  padding: 0.7rem 1.3rem; border-radius: 999px; font-weight: 700; opacity: 0; transition: all .4s ease; pointer-events: none; max-width: 92vw; text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* touch */
#touch { position: fixed; inset: 0; z-index: 6; pointer-events: none; }
#joy { position: absolute; left: 24px; bottom: 36px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 248, 236, 0.15);
  border: 2px solid rgba(255, 240, 220, 0.45); pointer-events: auto; touch-action: none; }
#joy-knob { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px; border-radius: 50%; background: rgba(255, 248, 236, 0.6); }
#touch-run { position: absolute; left: 160px; bottom: 60px; pointer-events: auto; }
#touch-run.on { background: #e8932f; }

/* ------------------------------------------------------------------ journal page */
#journal { background: rgba(30, 18, 10, 0.45); backdrop-filter: blur(3px); overflow-y: auto; align-items: start; padding: 4vh 16px; animation: fadein .4s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.page { --c: var(--accent); position: relative; max-width: 920px; width: 100%; margin: 0 auto; padding: clamp(1.4rem, 4vw, 3rem);
  background:
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(120, 90, 60, 0.08) 31px 32px),
    radial-gradient(ellipse at 20% 0%, #fffaf0, var(--paper) 60%, var(--paper-2));
  border-radius: 6px 18px 10px 14px; box-shadow: 0 30px 80px rgba(20, 10, 5, 0.5), inset 0 0 60px rgba(160, 120, 70, 0.15); color: var(--ink); }
#journal .page { animation: pagein .6s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes pagein { from { transform: translateY(40px) rotate(-1.5deg) scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
.page::before { content: ''; position: absolute; top: -12px; left: 50%; width: 120px; height: 28px; transform: translateX(-50%) rotate(-2deg);
  background: rgba(255, 220, 150, 0.6); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08); }
.page-head { display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem; align-items: center; }
.badge { width: 74px; height: 74px; border-radius: 20px; display: grid; place-items: center; font-family: var(--serif); font-weight: 800; font-size: 2.6rem;
  color: #fff; background: var(--c); box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 50%, transparent); transform: rotate(-4deg); }
.dim { font-weight: 800; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.75rem; color: var(--c); }
.page h2 { font-family: var(--serif); font-weight: 800; font-size: clamp(1.7rem, 4.2vw, 2.6rem); margin: 0.1rem 0 0.2rem; line-height: 1.05; }
.place { font-size: 0.9rem; color: var(--ink-soft); }
.doodle-wrap { color: var(--c); opacity: 0.85; }
.doodle { width: 74px; height: 74px; }
.question { font-family: var(--hand); font-size: clamp(1.4rem, 3vw, 1.75rem); line-height: 1.25; margin: 1.4rem 0; padding: 0.7rem 1.1rem; color: var(--ink);
  border-left: 5px solid var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); border-radius: 4px 14px 14px 4px; }
.cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: start; }
.text p { font-family: var(--serif); font-size: 1.08rem; line-height: 1.7; margin: 0 0 1rem; }
.text p:first-child::first-letter { font-size: 3.2em; float: left; line-height: 0.9; margin: 0.06em 0.08em 0 0; font-weight: 800; color: var(--c); }
.polaroids { display: grid; gap: 1.2rem; }
.polaroid { margin: 0; background: #fff; padding: 10px 10px 0; box-shadow: 0 8px 22px rgba(60, 40, 20, 0.22); transform: rotate(var(--r)); transition: transform .3s; }
.polaroid:hover { transform: rotate(0) scale(1.03); }
.polaroid img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.polaroid figcaption { font-family: var(--hand); font-size: 1.3rem; text-align: center; padding: 0.35rem 0 0.6rem; color: var(--ink-soft); }
.polaroid.empty .ph { aspect-ratio: 4 / 3; display: grid; place-items: center; align-content: center; gap: 0.4rem;
  background: repeating-linear-gradient(45deg, #f6ecd9 0 10px, #f1e4cc 10px 20px); color: var(--c); }
.polaroid.empty .ph span { font-family: var(--hand); font-size: 1.2rem; color: var(--ink-soft); }
.placeholder-note { font-family: var(--hand); font-size: 1.2rem; color: #b0542a; margin: 0.5rem 0 0; }
.page-actions { display: flex; justify-content: flex-end; margin-top: 1.2rem; }

/* ------------------------------------------------------------------ credits */
#credits { background: linear-gradient(180deg, rgba(30, 20, 40, 0.1), rgba(30, 20, 40, 0.55)); overflow: hidden; }
.credits-roll { text-align: center; color: #fff8ec; max-width: 620px; text-shadow: 0 2px 14px rgba(20, 10, 20, 0.7); animation: rise 2.4s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.credits-roll h2 { font-family: var(--serif); font-size: clamp(2.6rem, 8vw, 4.6rem); margin: 0; }
.credits-roll .sub { opacity: 0.9; margin-top: 0.2rem; }
.cr-letters { display: flex; justify-content: center; gap: 0.8rem; margin: 1.6rem 0; flex-wrap: wrap; }
.cr-letters div { display: grid; gap: 0.2rem; justify-items: center; animation: rise 1s ease both; }
.cr-letters div:nth-child(2) { animation-delay: .3s; } .cr-letters div:nth-child(3) { animation-delay: .6s; }
.cr-letters div:nth-child(4) { animation-delay: .9s; } .cr-letters div:nth-child(5) { animation-delay: 1.2s; }
.cr-letters b { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--c); font-family: var(--serif); font-size: 1.6rem; box-shadow: 0 0 22px var(--c); }
.cr-letters span { font-size: 0.78rem; font-weight: 700; }
.credits-roll dl { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; text-align: left; max-width: 460px; margin: 1.4rem auto; font-size: 0.9rem; }
.credits-roll dt { color: #ffc06a; font-weight: 800; }
.credits-roll dd { margin: 0; }
.credits-roll .fin { font-family: var(--hand); font-size: 2rem; margin: 1rem 0 1.4rem; }

/* ------------------------------------------------------------------ read mode */
#read { position: fixed; inset: 0; z-index: 40; overflow-y: auto; background:
  radial-gradient(ellipse at 50% -10%, #ffe1b8 0%, transparent 55%), linear-gradient(180deg, #f3dcc0, #ead2b8 40%, #e2c7ad); }
.read-wrap { max-width: 980px; margin: 0 auto; padding: 0 16px 4rem; }
.read-nav { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 0;
  background: linear-gradient(180deg, #f3dcc0 70%, rgba(243, 220, 192, 0)); }
.read-brand { font-family: var(--serif); font-weight: 800; font-size: 1.4rem; }
.read-nav .btn { color: var(--ink); border-color: rgba(58, 42, 32, 0.3); background: rgba(255, 255, 255, 0.4); }
.read-hero { text-align: center; padding: 3rem 0 2rem; }
.read-hero .eyebrow { font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.78rem; color: var(--ink-soft); }
.read-hero h1 { font-family: var(--serif); font-size: clamp(2rem, 5.5vw, 3.4rem); line-height: 1.05; margin: 0.5rem 0; }
.read-hero .by { font-family: var(--hand); font-size: 1.6rem; margin: 0; color: var(--ink-soft); }
.lede { font-family: var(--serif); font-size: 1.15rem; line-height: 1.65; max-width: 680px; margin: 1.2rem auto; }
.toc { list-style: none; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; }
.toc a { display: inline-flex; gap: 0.4rem; align-items: center; padding: 0.4rem 0.9rem; border-radius: 999px; background: rgba(255, 255, 255, 0.55);
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.9rem; }
.toc a b { color: var(--c); font-family: var(--serif); }
.read-page { margin: 2.6rem auto; }
.read-page:nth-of-type(odd) { transform: rotate(0.25deg); }
.read-page:nth-of-type(even) { transform: rotate(-0.25deg); }
.read-foot { text-align: center; font-family: var(--serif); font-size: 1.1rem; max-width: 640px; margin: 3rem auto 0; line-height: 1.6; }
.read-foot .small { font-family: var(--sans); font-size: 0.8rem; color: var(--ink-soft); }
body.reading #stage { visibility: hidden; }

@media (max-width: 720px) {
  .cols { grid-template-columns: 1fr; }
  .page-head { grid-template-columns: auto 1fr; }
  .doodle-wrap { display: none; }
  .badge { width: 58px; height: 58px; font-size: 2rem; }
  #minimap { width: 120px; height: 120px; top: 64px; bottom: auto; }
  #compass { top: 64px; font-size: 0.85rem; }
  #where { display: none; }
  .pl { width: 32px; height: 32px; font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* glide button + hints (bottom left) */
.chip-btn { pointer-events: auto; appearance: none; cursor: pointer;
  border: 1px solid rgba(255, 220, 160, 0.6); background: linear-gradient(180deg, rgba(246,169,74,0.9), rgba(224,129,42,0.9)); color: #fff;
  font-weight: 800; padding: 0.55rem 0.9rem; border-radius: 999px; box-shadow: 0 6px 20px rgba(232,130,40,0.4); }
.chip-btn:hover { transform: translateY(-1px); }
kbd { font-family: var(--sans); font-weight: 800; font-size: 0.75em; padding: 0.05rem 0.4rem; border-radius: 5px; background: rgba(255,255,255,0.25); border: 1px solid rgba(255,255,255,0.35); }
#hints { left: 16px; bottom: 22px; font-size: 0.78rem; opacity: 0.85; text-shadow: 0 1px 5px rgba(0,0,0,0.7); }
#touch-bike { position: absolute; left: 210px; bottom: 60px; pointer-events: auto; }
#touch-glide { position: absolute; left: 260px; bottom: 60px; pointer-events: auto; }
body.touch #btn-glide, body.touch #hints { display: none; }

#travel-btns { left: 16px; bottom: 54px; display: flex; gap: 8px; flex-wrap: wrap; }
.chip-btn.alt { background: rgba(42, 30, 24, 0.7); border-color: rgba(255, 236, 210, 0.35); box-shadow: none; }

/* places menu */
#places { background: rgba(30, 18, 10, 0.5); backdrop-filter: blur(4px); overflow-y: auto; }
.places-card { width: min(860px, 100%); background: rgba(42, 30, 24, 0.88); border: 1px solid var(--glass-line); border-radius: 22px; padding: 1.4rem 1.6rem 1.8rem; color: #fff8ec; animation: pagein .45s cubic-bezier(.2,.9,.3,1.2); }
.places-head { display: flex; justify-content: space-between; align-items: center; }
.places-head h2 { font-family: var(--serif); font-size: 2rem; margin: 0; }
.places-card h3 { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7; margin: 1.2rem 0 0.6rem; }
.places-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.place { --c: #ffc06a; appearance: none; text-align: left; cursor: pointer; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 0.7rem;
  padding: 0.75rem 0.85rem; border-radius: 14px; border: 1px solid rgba(255,236,210,0.2); background: rgba(255,248,236,0.08); color: #fff8ec; transition: transform .15s, background .2s; }
.place:hover:not([disabled]) { transform: translateY(-2px); background: rgba(255,248,236,0.16); }
.place b { grid-row: span 2; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--c); font-family: var(--serif); font-size: 1.2rem; }
.place.lm b { background: rgba(255,192,106,0.25); color: #ffc06a; }
.place .pl-name { font-weight: 800; line-height: 1.2; }
.place .pl-sub { font-size: 0.78rem; opacity: 0.75; }
.place.locked { opacity: 0.4; cursor: not-allowed; }

/* place card after teleport */
#placecard { position: fixed; z-index: 25; left: 50%; top: 22%; transform: translate(-50%, 0); text-align: center; color: #fff8ec; pointer-events: none; opacity: 0;
  text-shadow: 0 3px 22px rgba(30, 14, 6, 0.75); }
#placecard.show { animation: placecard 3.2s ease both; }
#placecard .pin { font-size: 2rem; }
#placecard .pc-name { font-family: var(--serif); font-weight: 800; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1; }
#placecard .pc-sub { font-family: var(--hand); font-size: 1.7rem; color: #ffd29a; margin-top: 0.3rem; }
@keyframes placecard { 0% { opacity: 0; transform: translate(-50%, 16px) scale(0.96); letter-spacing: 0.08em; } 15% { opacity: 1; transform: translate(-50%, 0) scale(1); letter-spacing: 0; } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -10px); } }

/* dialog with a character */
#dialog { align-items: end; padding-bottom: 8vh; background: linear-gradient(180deg, transparent 50%, rgba(30, 18, 10, 0.45)); }
.dlg { --c: #e8932f; display: flex; gap: 1.1rem; align-items: flex-start; width: min(720px, 100%); background: var(--paper); color: var(--ink); border-radius: 20px; padding: 1.2rem 1.4rem;
  box-shadow: 0 20px 60px rgba(20, 10, 5, 0.5); border: 3px solid var(--c); animation: pagein .45s cubic-bezier(.2,.9,.3,1.2); }
.dlg-face { flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 2.4rem; background: var(--c); box-shadow: inset 0 -6px 0 rgba(0,0,0,0.15); }
.dlg-name { font-weight: 900; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; color: var(--c); }
.dlg p { font-family: var(--serif); font-size: 1.15rem; line-height: 1.55; margin: 0.3rem 0 0.9rem; }

#resume-hint { position: fixed; z-index: 12; left: 50%; top: 64%; transform: translate(-50%, 0); font-size: 0.85rem; opacity: 0.9; background: rgba(42, 30, 24, 0.82); color: #fff8ec;
  padding: 0.8rem 1.4rem; border-radius: 999px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 30px rgba(20,10,5,0.4); }

.dlg-opts { display: grid; gap: 6px; margin-top: 0.4rem; }
.dlg-opt { appearance: none; text-align: left; cursor: pointer; border: 1px solid rgba(58,42,32,0.18); background: rgba(255,255,255,0.6); color: var(--ink);
  padding: 0.55rem 0.8rem; border-radius: 12px; font-weight: 700; transition: background .15s, transform .15s; }
.dlg-opt:hover { background: #fff; transform: translateX(3px); }
.dlg-opt kbd { background: var(--c); color: #fff; border: none; margin-right: 0.35rem; }
