@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Fraunces'; font-style: italic; src: url('../fonts/fraunces-italic.woff2') format('woff2'); font-display: swap; }
:root { --ground: #fbe9dc; --ink: #3b2a33; --soft: #8a6f78; --press: #e2557a; --chip: #fff6ef; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--ink); font-family: 'Fraunces', Georgia, serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji'; }
#hill { position: relative; height: min(78vh, 760px); min-height: 460px; overflow: hidden; }
#view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: pointer; }
#top { position: absolute; top: 0; left: 0; right: 0; padding: 18px 22px; pointer-events: none; }
#top h1 { margin: 0; font-size: clamp(30px, 5vw, 58px); font-weight: 600; letter-spacing: -0.02em; }
#top p { margin: 4px 0 0; font-style: italic; color: var(--soft); max-width: 34em; font-size: 15px; }
#breed { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 0 12px; }
button, #solo { font: inherit; font-size: 15px; border: 0; border-radius: 999px; padding: 10px 16px; background: var(--chip); color: var(--ink); cursor: pointer; box-shadow: 0 2px 0 #e7cdbd; text-decoration: none; }
button:hover, #solo:hover { transform: translateY(-1px); }
button, #solo { min-height: 44px; display: inline-flex; align-items: center; }   /* a thumb's target, at every width */
button.main { background: var(--press); color: #fff; box-shadow: 0 3px 0 #b33a5c; font-weight: 600; }
button[aria-pressed="true"] { background: var(--ink); color: var(--chip); }
#card { max-width: 720px; margin: 0 auto; padding: 22px 22px 60px; }
#who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
#name { margin: 0; font-size: 40px; }
#role { margin: 0; font-style: italic; color: var(--soft); }
#code { font-size: 12px; color: var(--soft); background: var(--chip); padding: 2px 8px; border-radius: 6px; }
#rarity { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 12px 0; }
#rarity li { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1.5px solid var(--ink); }
#rarity li.locked { border-style: dashed; color: var(--soft); border-color: var(--soft); }
#rarity li[data-axis="odds"] { background: #fff1b8; } #rarity li[data-axis="recipe"] { background: #d9f4dc; }
#rarity li[data-axis="first"] { background: #ffd9e4; } #rarity li[data-axis="lineage"] { background: #e3e4ff; }
#story { font-size: 18px; line-height: 1.55; }
#moods, #files { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
#energy { display: flex; align-items: center; gap: 10px; font-style: italic; color: var(--soft); }
#energy input { flex: 1; max-width: 320px; min-height: 44px; margin: 0; accent-color: var(--press); }
#state { font-style: italic; color: var(--soft); margin: 6px 0 0; }
#next { margin: 34px 0 0; font-style: italic; color: var(--soft); }
#snug { display: inline-block; padding: 12px 0; color: var(--soft); text-decoration-color: #e7cdbd; text-underline-offset: 4px; }
#snug::after { content: " \2192"; }
#snug:hover { color: var(--press); }
#whose a { pointer-events: auto; color: var(--press); text-underline-offset: 3px; }
#send { pointer-events: auto; margin-top: 10px; }
#sendLink { display: block; pointer-events: auto; margin-top: 8px; width: min(100%, 30em); min-height: 44px; box-sizing: border-box; padding: 0 14px; border: 1px solid #e7cdbd; border-radius: 999px; background: var(--chip); color: var(--ink); font: 13px ui-monospace, monospace; }
#whose code { font: 13px ui-monospace, monospace; font-style: normal; word-break: break-all; }
#door { border: 0; border-radius: 22px; padding: 22px 22px 18px; max-width: min(360px, calc(100vw - 32px)); background: var(--ground); color: var(--ink); box-shadow: 0 18px 50px rgba(59, 42, 51, 0.28); }
#door::backdrop { background: rgba(59, 42, 51, 0.35); }
#doorSay { margin: 0 0 14px; font-size: 20px; line-height: 1.35; }
#doorThanks { margin: -4px 0 14px; font-style: italic; color: var(--soft); }
#doorRow { display: flex; flex-wrap: wrap; gap: 8px; }
#doorRow button { min-height: 44px; }
#solo-whose { display: none; }
body.solo #solo-whose:not([hidden]) { display: block; position: absolute; left: 0; right: 0; bottom: 10px; margin: 0; text-align: center; font-style: italic; font-size: 13px; color: #b9a3ad; pointer-events: none; }
body.solo #top, body.solo #breed, body.solo #card { display: none; }
body.solo #hill { height: 100vh; min-height: 0; }
body.solo { background: #2b1f28; }
@media (max-width: 600px) { #hill { height: 70vh; } #breed button { font-size: 14px; padding: 0 13px; } #name { font-size: 32px; } }
[hidden] { display: none !important; }
