/* FrostTown v2: the team's concept sketches. White paper, black ink, grey marker, one blue. */
@font-face { font-family: "Grace"; src: url("../assets/fonts/CoveredByYourGrace.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Hand"; src: url("../assets/fonts/PatrickHand.woff2") format("woff2"); font-display: swap; }
:root {
  --ink: #1b1b1b; --paper: #fff; --wash: #dedede; --wash-2: #a3a3a3; --dark: #4a4a4a; --soft: #f3f3f1;
  --blue: #2f7de1; --blue-wash: #dce9fb; --red: #d6453d; --red-wash: #fbe1df;
  --wob: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --wob2: 15px 225px 15px 255px / 255px 15px 225px 15px;
  --line: .13rem;
  font-size: clamp(15px, min(1.9vh, 4.2vw), 28px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--paper); color: var(--ink); font-family: "Hand", "Comic Sans MS", cursive; font-size: 1rem; line-height: 1.25; overflow: hidden; }
#app { height: 100dvh; }
.screen { height: 100%; overflow: hidden; }
.screen[hidden] { display: none !important; }
[hidden] { display: none !important; }
svg { width: 1em; height: 1em; vertical-align: -.12em; flex: none; }
h1, h2, h3, .caps { font-family: "Grace", "Hand", cursive; text-transform: uppercase; font-weight: 400; letter-spacing: .03em; margin: 0; line-height: 1; }
h2 { font-size: 1.9rem; } h3 { font-size: 1.35rem; }
p { margin: .4rem 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: default; }
.muted { color: #666; } .good { color: var(--blue); } .bad { color: var(--red); }

/* ink boxes */
.box, .btn, .modal, .stat, .act, .msg, .arch, .opt { border: var(--line) solid var(--ink); border-radius: var(--wob); background: var(--paper); }
.btn { padding: .5rem 1.1rem; font-family: "Grace", cursive; text-transform: uppercase; font-size: 1.25rem; letter-spacing: .04em; line-height: 1; box-shadow: .14rem .16rem 0 var(--ink); transition: transform .08s, box-shadow .08s; }
.btn:hover:not(:disabled) { transform: translate(-.04rem, -.05rem); box-shadow: .2rem .22rem 0 var(--ink); }
.btn:active:not(:disabled) { transform: translate(.1rem, .12rem); box-shadow: .03rem .04rem 0 var(--ink); }
.btn.primary { background: var(--blue); color: #fff; }
.btn.danger { background: var(--red); color: #fff; }
.btn.ghost { box-shadow: none; border-style: dashed; }
.btn.big { font-size: 1.6rem; padding: .7rem 1.5rem; }
.btn.small { font-size: 1rem; padding: .32rem .7rem; box-shadow: .08rem .1rem 0 var(--ink); }
.btn:disabled { opacity: .45; box-shadow: none; }
.link { text-decoration: underline; font-size: .95rem; }
.fxc { display: inline-flex; align-items: center; gap: .15rem; padding: 0 .4rem; border: .09rem solid currentColor; border-radius: 1rem; font-size: .95rem; background: #fff; white-space: nowrap; }
.fxc.good { color: var(--blue); } .fxc.bad { color: var(--red); }
.hearts { display: inline-flex; gap: .05rem; font-size: .8rem; color: var(--wash-2); }
.hearts svg.on { color: var(--blue); --hf: var(--blue); }

/* ---------- title ---------- */
#screen-title { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; place-items: center; padding: 1rem; overflow: auto; }
.title-card { width: min(46rem, 100%); text-align: center; display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.title-town { display: flex; justify-content: center; align-items: flex-end; gap: 3%; width: 100%; height: min(38vh, 17rem); border-bottom: var(--line) solid var(--ink); border-radius: 0 0 60% 40% / 0 0 .5rem .4rem; }
.title-town img { height: 100%; min-width: 0; max-width: 23%; flex: 0 1 auto; object-fit: contain; object-position: bottom; }
.title-town img:nth-child(2) { height: 92%; } .title-town img:nth-child(3) { height: 84%; } .title-town img:nth-child(4) { height: 96%; }
.wordmark { font-size: clamp(3.4rem, 15vw, 6rem); letter-spacing: .05em; }
.wordmark::after { content: ""; display: block; height: .5rem; margin: -.2rem auto 0; width: 62%; background: var(--blue); border-radius: var(--wob); opacity: .85; transform: rotate(-1deg); }
.tag { font-size: 1.25rem; margin: 0; }
.title-actions { display: flex; flex-direction: column; gap: .7rem; margin-top: .4rem; align-items: center; }
.title-actions .btn { min-width: min(17rem, 100%); }
.fine { font-size: .95rem; color: #555; margin: 0; }

/* ---------- setup ---------- */
#screen-setup { overflow: auto; padding: 1rem; display: grid; justify-items: center; align-content: start; }
.panel.setup { width: min(52rem, 100%); display: flex; flex-direction: column; gap: .8rem; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.row.end { justify-content: space-between; margin-top: .3rem; }
.row.players label { font-size: 1.1rem; }
.seg { display: inline-flex; border: var(--line) solid var(--ink); border-radius: var(--wob); overflow: hidden; }
.seg button { padding: .25rem .9rem; font-size: 1.15rem; border-right: .09rem solid var(--ink); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--blue); color: #fff; }
.hint { width: 100%; margin: 0; color: #555; }
.pick { display: flex; flex-direction: column; gap: .45rem; }
.pick-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; font-size: 1.15rem; }
.pick-head input { font: inherit; padding: .2rem .6rem; border: 0; border-bottom: var(--line) solid var(--ink); background: none; width: 12rem; outline: none; }
.arch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.arch { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .5rem .3rem .55rem; text-align: center; position: relative; }
.arch:nth-child(even) { border-radius: var(--wob2); }
.arch img { height: 8.5rem; max-width: 100%; object-fit: contain; }
.arch b { font-family: "Grace", cursive; text-transform: uppercase; font-size: 1.3rem; font-weight: 400; line-height: 1; }
.arch small { font-size: .88rem; color: #555; line-height: 1.1; min-height: 2.1em; }
.arch .base { display: flex; flex-wrap: wrap; justify-content: center; gap: .1rem .5rem; font-size: .92rem; }
.arch.on { background: var(--blue-wash); border-color: var(--blue); box-shadow: 0 0 0 .12rem var(--blue); }
.chk { display: inline-flex; align-items: center; gap: .4rem; font-size: 1.05rem; }
.chk input { width: 1.1rem; height: 1.1rem; accent-color: var(--blue); }
@media (max-width: 640px) { .arch-grid { grid-template-columns: repeat(2, 1fr); } .arch img { height: 6.5rem; } }

/* ---------- game sheet ---------- */
#screen-game { display: flex; justify-content: center; }
.sheet { width: min(100vw, 125vh); height: 100%; display: flex; flex-direction: column; gap: .45rem; padding: .6rem .8rem max(.6rem, env(safe-area-inset-bottom)); min-height: 0; }
#top { display: grid; grid-template-columns: 1fr auto auto; align-items: start; gap: .6rem; }
#turn-title { min-width: 0; }
#turn-title b { display: block; font-family: "Grace", cursive; font-weight: 400; text-transform: uppercase; font-size: 2.35rem; line-height: .95; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#turn-title small { display: block; font-size: 1.1rem; font-style: italic; color: #444; margin-top: -.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#top-right { display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; min-width: 0; padding-top: .2rem; }
.track { display: flex; gap: .16rem; align-items: center; }
.track i { width: .68rem; height: .68rem; border: .09rem solid var(--ink); border-radius: 30% 45% 35% 40%; background: #fff; position: relative; flex: none; }
.track i.done { background: var(--wash-2); border-color: var(--wash-2); }
.track i.ch { border-radius: 50%; }
.track i.ch:not(.done):not(.now) { background: var(--wash); }
.track i.now { background: var(--blue); border-color: var(--blue); transform: scale(1.25); }
.track i.gap { margin-left: .22rem; }
.track .end { width: 1.35rem; height: 1.35rem; border: .09rem solid var(--ink); display: grid; place-items: center; font-size: .9rem; border-radius: 20% 30% 25% 30%; margin-left: .15rem; }
.track .end.now { background: var(--blue); color: #fff; border-color: var(--blue); }
#hud-sub { font-size: .92rem; color: #444; text-align: right; white-space: nowrap; }
#hud-sub.storm { color: var(--red); }
.hud-btns { display: flex; gap: .3rem; }
.icon-btn { width: 2rem; height: 2rem; border: .09rem solid var(--ink); border-radius: 45% 55% 50% 48%; display: grid; place-items: center; font-size: 1.1rem; background: #fff; }
.icon-btn:hover { background: var(--wash); }

#stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.stat { display: flex; align-items: center; justify-content: center; gap: .45rem; padding: .3rem .4rem; position: relative; min-width: 0; }
.stat:nth-child(even) { border-radius: var(--wob2); }
.stat svg { font-size: 1.35rem; }
.stat .lab { font-family: "Grace", cursive; text-transform: uppercase; font-size: 1.2rem; letter-spacing: .04em; line-height: 1; }
.stat .num { font-size: 1.7rem; line-height: 1; min-width: 1.2em; text-align: center; }
.stat.low { border-color: var(--red); color: var(--red); background: var(--red-wash); }
.stat.bump { animation: bump .5s; }
.stat .who-tag { position: absolute; top: -.62rem; left: .7rem; background: #fff; padding: 0 .3rem; font-size: .8rem; color: #555; }
@keyframes bump { 30% { transform: scale(1.09) rotate(-1deg); background: var(--blue-wash); } }
#tags { display: flex; flex-wrap: wrap; gap: .3rem .4rem; min-height: 1.45rem; align-items: center; }
.tagc { display: inline-flex; align-items: center; gap: .25rem; font-size: .95rem; padding: 0 .5rem; border: .08rem solid var(--ink); border-radius: 1rem; background: var(--soft); white-space: nowrap; line-height: 1.35; }
.tagc.bad { color: var(--red); border-color: var(--red); background: var(--red-wash); }
.tagc.good { color: var(--blue); border-color: var(--blue); background: var(--blue-wash); }
.tagc.plain { border-style: dashed; background: none; }

/* ---------- stage ---------- */
#stage { flex: 1; min-height: 0; position: relative; display: flex; gap: .5rem; }
.rowv { flex: 1; min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .4rem; min-height: 0; }
.who { display: flex; flex-direction: column; align-items: center; min-height: 0; min-width: 0; padding: .1rem .1rem .2rem; position: relative; border-radius: var(--wob); transition: background .15s; }
button.who:hover, button.who:focus-visible { background: var(--soft); outline: none; }
.who .face { font-size: 2.1rem; flex: none; }
.who.m-worried .face, .who.m-sad .face { color: var(--ink); }
.who.m-happy .face { color: var(--blue); }
.who.m-frozen .face { color: var(--blue); }
.who .fig { flex: 1; min-height: 0; width: 100%; display: flex; justify-content: center; align-items: flex-end; }
.who .fig img { max-height: 100%; max-width: 100%; height: 100%; object-fit: contain; object-position: bottom; transition: opacity .2s; }
.who.frozen .fig img { opacity: .75; }
.who .nm { font-family: "Grace", cursive; text-transform: uppercase; font-size: 1.55rem; line-height: 1; letter-spacing: .05em; margin-top: .15rem; white-space: nowrap; }
.who .nm.you { color: var(--blue); }
.who .role { font-size: .88rem; font-style: italic; color: #555; line-height: 1; white-space: nowrap; }
.mini { display: flex; gap: .1rem .45rem; flex-wrap: wrap; justify-content: center; font-size: .92rem; margin-top: .15rem; line-height: 1.15; }
.mini span { display: inline-flex; align-items: center; gap: .1rem; white-space: nowrap; }
.mini span.low { color: var(--red); }
.who .wt { display: flex; gap: .2rem; flex-wrap: wrap; justify-content: center; margin-top: .15rem; min-height: 1.35rem; align-items: center; }
.who .wt .tagc { font-size: .82rem; padding: 0 .35rem; }
.who.acting .nm { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: .16rem; }
.who.pulse { animation: wpulse 1.1s infinite; }
@keyframes wpulse { 50% { background: var(--blue-wash); } }
.who.hop .fig img { animation: hop .5s; }
@keyframes hop { 30% { transform: translateY(-6%) rotate(-2deg); } 60% { transform: translateY(0) rotate(1deg); } }

/* npc close-up */
.npcv { flex: 1; min-width: 0; min-height: 0; display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.closeup { position: relative; min-height: 0; min-width: 0; overflow: hidden; border-bottom: var(--line) solid var(--ink); }
.closeup img { position: absolute; left: 50%; top: 1%; height: 138%; transform: translateX(-50%); transition: opacity .25s; max-width: none; }
.closeup img.swap { animation: swap .45s; }
@keyframes swap { 0% { opacity: .6; transform: translateX(-50%) scale(.97); } 100% { opacity: 1; transform: translateX(-50%) scale(1); } }
.closeup .cface { position: absolute; left: .3rem; top: .2rem; font-size: 2.6rem; }
.closeup .cstats { position: absolute; right: .2rem; top: .2rem; display: flex; flex-direction: column; gap: .12rem; font-size: 1.02rem; background: rgba(255,255,255,.85); padding: .2rem .45rem; border: .08rem solid var(--ink); border-radius: var(--wob2); }
.closeup .cstats span { display: flex; align-items: center; gap: .3rem; justify-content: space-between; }
.closeup .cstats span.low { color: var(--red); }
.closeup .ctags { position: absolute; left: .3rem; top: 3.2rem; display: flex; flex-direction: column; gap: .2rem; align-items: flex-start; }
.sidev { display: flex; flex-direction: column; gap: .3rem; width: 7.2rem; min-height: 0; }
.sidev .who { flex: 1; }
.sidev .who .face { font-size: 1.3rem; }
.sidev .who .nm { font-size: 1.15rem; }
.sidev .who .role { display: none; }
.sidev .who .mini { font-size: .8rem; gap: 0 .3rem; }
.sidev .who .wt .tagc { font-size: .72rem; }

.msg { position: absolute; left: 50%; bottom: .35rem; transform: translateX(-50%); width: min(94%, 34rem); padding: .55rem .9rem .6rem; text-align: center; z-index: 5; box-shadow: .16rem .2rem 0 var(--ink); animation: msgin .25s; cursor: pointer; }
.msg .t { font-family: "Grace", cursive; text-transform: uppercase; font-size: 1.55rem; line-height: 1.05; letter-spacing: .04em; }
.msg .s { font-size: 1rem; color: #444; margin-top: .15rem; }
.msg .chips { display: flex; gap: .3rem; justify-content: center; flex-wrap: wrap; margin-top: .3rem; }
.msg.good { border-color: var(--blue); box-shadow: .16rem .2rem 0 var(--blue); }
.msg.good .t { color: var(--blue); }
.msg.bad { border-color: var(--red); box-shadow: .16rem .2rem 0 var(--red); }
.msg.bad .t { color: var(--red); }
@keyframes msgin { from { opacity: 0; transform: translate(-50%, .5rem); } }
.v-npc .msg { left: calc((100% - 7.7rem) / 2); width: min(calc(100% - 8.6rem), 34rem); }

#ticker { text-align: left; font-size: .95rem; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.25rem; padding: 0 .2rem; border-bottom: .07rem dashed var(--wash-2); }
#ticker:empty::before { content: "The winter so far"; opacity: .6; }

/* ---------- actions ---------- */
#actions { position: relative; display: flex; flex-direction: column; gap: .4rem; }
.side { display: flex; justify-content: flex-end; gap: .4rem; flex-wrap: wrap; }
.sact { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .65rem; border: .1rem solid var(--ink); border-radius: var(--wob2); font-family: "Grace", cursive; text-transform: uppercase; font-size: 1.1rem; letter-spacing: .04em; line-height: 1; background: #fff; position: relative; }
.sact small { font-family: "Hand", cursive; text-transform: none; font-size: .82rem; color: #555; letter-spacing: 0; }
.sact:hover:not(:disabled) { background: var(--soft); }
.sact:disabled { opacity: .45; }
.sact.urgent { background: var(--blue); color: #fff; border-color: var(--blue); animation: wpulse2 1s infinite; }
.sact.urgent small { color: #fff; }
@keyframes wpulse2 { 50% { box-shadow: 0 0 0 .3rem var(--blue-wash); } }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; padding: .7rem .4rem .75rem; min-height: 5.6rem; text-align: center; box-shadow: .16rem .2rem 0 var(--ink); transition: transform .08s, box-shadow .08s; position: relative; }
.act:nth-child(2) { border-radius: var(--wob2); }
.act svg { font-size: 1.7rem; }
.act b { font-family: "Grace", cursive; font-weight: 400; text-transform: uppercase; font-size: 1.65rem; letter-spacing: .05em; line-height: 1; }
.act small { font-size: .92rem; color: #444; line-height: 1.1; }
.act:hover:not(:disabled) { transform: translate(-.05rem, -.07rem); box-shadow: .24rem .28rem 0 var(--ink); }
.act:active:not(:disabled) { transform: translate(.1rem, .12rem); box-shadow: .04rem .05rem 0 var(--ink); }
.act.hot { border-color: var(--blue); box-shadow: .16rem .2rem 0 var(--blue); }
.act.hot small { color: var(--blue); }
.act:disabled { color: #9a9a9a; border-color: #b5b5b5; box-shadow: none; background: var(--soft); }
.act:disabled small { color: #9a9a9a; }
.cards.off .act { color: #a8a8a8; border-color: #c2c2c2; box-shadow: none; background: var(--soft); }
.cards.off .act small { color: #b0b0b0; }
.turn-banner { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-1.2deg); background: var(--dark); color: #fff; padding: .45rem 1.3rem; border-radius: var(--wob); font-family: "Grace", cursive; text-transform: uppercase; font-size: 1.7rem; letter-spacing: .06em; white-space: nowrap; display: flex; align-items: center; gap: .8rem; z-index: 3; }
.turn-banner .ff { font-family: "Hand", cursive; text-transform: none; font-size: .95rem; letter-spacing: 0; border: .08rem solid #fff; border-radius: 1rem; padding: 0 .55rem; color: #fff; }
.why { display: block; font-size: .78rem; color: var(--red); line-height: 1.05; }

/* floats + bubbles */
#floats { position: fixed; inset: 0; pointer-events: none; z-index: 30; }
.fl { position: absolute; transform: translate(-50%, -50%); display: flex; gap: .2rem; animation: flo 1.5s forwards; }
.fl .fxc { font-size: 1.1rem; box-shadow: .06rem .08rem 0 currentColor; }
@keyframes flo { 0% { opacity: 0; margin-top: .6rem; } 15% { opacity: 1; margin-top: 0; } 75% { opacity: 1; } 100% { opacity: 0; margin-top: -2.4rem; } }
.bubble { position: absolute; transform: translate(-50%, -100%); max-width: min(17rem, 70vw); background: #fff; border: var(--line) solid var(--ink); border-radius: 1.2rem 1.2rem 1.2rem .2rem; padding: .35rem .7rem; font-size: 1.05rem; line-height: 1.15; animation: bub .2s; box-shadow: .1rem .12rem 0 var(--ink); }
@keyframes bub { from { opacity: 0; transform: translate(-50%, -90%) scale(.9); } }

/* ---------- modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(60,60,60,.45); display: grid; place-items: center; padding: .8rem; z-index: 50; opacity: 0; transition: opacity .2s; overflow: auto; }
.modal-bg.show { opacity: 1; }
.modal { width: min(30rem, 100%); max-height: calc(100dvh - 1.6rem); overflow: auto; padding: 1.1rem 1.2rem 1rem; box-shadow: .3rem .35rem 0 var(--ink); display: flex; flex-direction: column; gap: .5rem; transform: translateY(.6rem) rotate(-.3deg); transition: transform .2s; }
.modal-bg.show .modal { transform: none; }
.modal.wide { width: min(44rem, 100%); }
.modal .foot { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; margin-top: .5rem; align-items: center; }
.modal p { font-size: 1.1rem; }
.modal .sub { color: #555; font-size: 1rem; margin: 0; }
.kind { font-family: "Grace", cursive; text-transform: uppercase; letter-spacing: .08em; font-size: 1.05rem; }
.kind.fortunate { color: var(--blue); } .kind.unfortunate { color: var(--red); } .kind.neutral { color: #666; }
.cardv { display: flex; gap: .9rem; align-items: center; }
.cardv img { height: 11rem; flex: none; object-fit: contain; }
.cardv .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
.chips { display: flex; gap: .3rem; flex-wrap: wrap; }
.notes { font-size: .98rem; color: #444; margin: 0; padding-left: 1.1rem; }
.modal.flip { animation: flip .45s; }
@keyframes flip { from { transform: rotateY(80deg) scale(.9); opacity: .3; } }
.storm-head { display: flex; align-items: center; gap: .6rem; }
.storm-head svg { font-size: 2.6rem; color: var(--blue); }
.castrow { display: flex; justify-content: center; align-items: flex-end; gap: .4rem; height: 7.5rem; }
.castrow img { height: 100%; min-width: 0; object-fit: contain; }

/* neighbor picker */
.nbrs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .45rem; }
.nbr { display: flex; flex-direction: column; align-items: center; gap: .05rem; padding: .35rem .2rem; border: .1rem solid var(--ink); border-radius: var(--wob); background: #fff; min-width: 0; }
.nbr img { height: 5.2rem; object-fit: contain; max-width: 100%; }
.nbr b { font-family: "Grace", cursive; font-weight: 400; text-transform: uppercase; font-size: 1.2rem; line-height: 1; }
.nbr small { font-size: .82rem; line-height: 1.05; color: #555; text-align: center; }
.nbr small.bad { color: var(--red); }
.nbr.on { background: var(--blue-wash); border-color: var(--blue); box-shadow: 0 0 0 .1rem var(--blue); }
.nbr:disabled { opacity: .4; }
.stepper { display: grid; grid-template-columns: 6.5rem auto 1fr; align-items: center; gap: .6rem; font-size: 1.15rem; }
.stepper .ctl { display: inline-flex; align-items: center; gap: .5rem; }
.stepper .ctl button { width: 2.2rem; height: 2.2rem; border: .1rem solid var(--ink); border-radius: 50% 45% 52% 48%; font-size: 1.4rem; line-height: 1; background: #fff; }
.stepper .ctl button:disabled { opacity: .35; }
.stepper .ctl b { min-width: 1.6rem; text-align: center; font-size: 1.5rem; font-weight: 400; }
.stepper small { color: #555; font-size: .9rem; }
.care { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border: .1rem dashed var(--blue); border-radius: var(--wob2); background: var(--blue-wash); text-align: left; width: 100%; }
.care svg { font-size: 1.6rem; color: var(--blue); }
.care b { font-family: "Grace", cursive; font-weight: 400; text-transform: uppercase; font-size: 1.25rem; display: block; line-height: 1; }
.care small { font-size: .92rem; color: #333; }
.care:disabled { opacity: .5; }

/* listen */
.talk { display: flex; gap: .7rem; align-items: flex-end; }
.talk img { height: 8.5rem; flex: none; object-fit: contain; }
.said { flex: 1; border: .1rem solid var(--ink); border-radius: 1.1rem 1.1rem 1.1rem .2rem; padding: .5rem .8rem; font-size: 1.15rem; background: var(--soft); margin-bottom: 1.2rem; }
.said small { display: block; font-size: .85rem; color: #666; }
.steps { display: flex; gap: .4rem; }
.steps span { flex: 1; text-align: center; font-family: "Grace", cursive; text-transform: uppercase; letter-spacing: .05em; font-size: 1.05rem; border-bottom: .16rem solid var(--wash); color: #999; }
.steps span.on { border-color: var(--blue); color: var(--blue); }
.steps span.done { border-color: var(--ink); color: var(--ink); }
.opts { display: flex; flex-direction: column; gap: .45rem; }
.opt { text-align: left; padding: .5rem .8rem; font-size: 1.1rem; line-height: 1.2; box-shadow: .1rem .12rem 0 var(--ink); }
.opt:nth-child(even) { border-radius: var(--wob2); }
.opt:hover:not(:disabled) { background: var(--soft); }
.opt.picked { background: var(--blue-wash); border-color: var(--blue); box-shadow: none; }
.opt.dim { opacity: .4; box-shadow: none; }
.note { font-size: 1rem; padding: .35rem .7rem; border-left: .25rem solid var(--blue); background: var(--blue-wash); }
.note.off { border-color: var(--wash-2); background: var(--soft); }

/* activities */
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.acard { text-align: left; padding: .5rem .7rem; border: .1rem solid var(--ink); border-radius: var(--wob); background: #fff; display: flex; flex-direction: column; gap: .2rem; position: relative; }
.acard:nth-child(even) { border-radius: var(--wob2); }
.acard b { font-family: "Grace", cursive; font-weight: 400; text-transform: uppercase; font-size: 1.25rem; line-height: 1; }
.acard small { font-size: .9rem; color: #555; line-height: 1.1; }
.acard .guests { font-size: .9rem; color: var(--blue); }
.acard:hover:not(:disabled) { background: var(--soft); }
.acard:disabled { opacity: .5; }
@media (max-width: 640px) { .acts { grid-template-columns: 1fr; } }
.rules h3 { margin-top: .5rem; } .rules p, .rules li { font-size: 1.02rem; } .rules ul { margin: .2rem 0; padding-left: 1.2rem; }
.loglist { list-style: none; margin: 0; padding: 0; max-height: 55vh; overflow: auto; font-size: 1rem; }
.loglist li { padding: .12rem 0; border-bottom: .06rem dashed var(--wash); }
.loglist li.rd { font-family: "Grace", cursive; text-transform: uppercase; letter-spacing: .05em; border: 0; margin-top: .4rem; color: var(--blue); }
.loglist li.bad { color: var(--red); } .loglist li.good { color: var(--blue); }
.pass { text-align: center; align-items: center; }
.pass img { height: 11rem; }

/* ---------- tutorial coach ---------- */
#coach { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
#coach .hole { position: absolute; border: .2rem solid var(--blue); border-radius: var(--wob); box-shadow: 0 0 0 200vmax rgba(70,70,70,.42); transition: all .25s; pointer-events: none; }
#coach .say { position: absolute; width: min(26rem, 90vw); background: #fff; border: var(--line) solid var(--ink); border-radius: var(--wob2); padding: .7rem .9rem; box-shadow: .2rem .25rem 0 var(--ink); pointer-events: auto; }
#coach .say h3 { color: var(--blue); margin-bottom: .2rem; }
#coach .say p { margin: .1rem 0 .4rem; font-size: 1.08rem; }
#coach .say .foot { display: flex; justify-content: space-between; align-items: center; }
#coach .step { font-size: .9rem; color: #666; }
#coach .skip { position: absolute; right: .6rem; top: .6rem; pointer-events: auto; background: #fff; }

/* ---------- album ---------- */
#screen-album { overflow: auto; padding: 1rem; }
.album { width: min(60rem, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; padding-bottom: 2rem; }
.album h2 { font-size: 2.8rem; } .album h2.win { color: var(--blue); }
.album .sub { font-size: 1.2rem; margin: .2rem 0 0; }
.polaroids { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .9rem; }
.polaroid { border: .1rem solid var(--ink); background: #fff; padding: .4rem .4rem .5rem; transform: rotate(var(--rot)); box-shadow: .14rem .18rem 0 var(--ink); }
.photo { height: 7.2rem; background: var(--soft); position: relative; overflow: hidden; display: flex; justify-content: center; align-items: flex-end; gap: .2rem; border: .06rem solid var(--wash-2); }
.photo.storm { background: var(--wash); }
.photo img { height: 96%; min-width: 0; object-fit: contain; }
.photo .ic { position: absolute; right: .25rem; top: .2rem; font-size: 1.3rem; color: var(--blue); }
.polaroid .when { font-size: .8rem; color: #666; margin-top: .25rem; }
.polaroid .cap { font-size: 1rem; line-height: 1.15; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .6rem; }
.pstat { border: .1rem solid var(--ink); border-radius: var(--wob); padding: .5rem .7rem; font-size: .98rem; }
.pstat b { font-family: "Grace", cursive; font-weight: 400; text-transform: uppercase; font-size: 1.3rem; display: block; }
.mirror { font-size: 1.25rem; padding: .5rem .8rem; border-left: .3rem solid var(--blue); background: var(--blue-wash); }
.album .foot { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: .4rem; }

/* ---------- phone ---------- */
@media (max-width: 640px) {
  .sheet { padding: .45rem .5rem max(.5rem, env(safe-area-inset-bottom)); gap: .35rem; }
  #top { grid-template-columns: 1fr auto; }
  .hud-btns { grid-column: 1 / -1; grid-row: 1; justify-content: flex-end; margin-bottom: -.3rem; }
  .icon-btn { width: 1.7rem; height: 1.7rem; font-size: .95rem; }
  #turn-title b { font-size: 1.9rem; }
  .track i { width: .5rem; height: .5rem; } .track { gap: .1rem; } .track .end { width: 1.1rem; height: 1.1rem; font-size: .75rem; }
  .stat { flex-direction: column; gap: 0; padding: .2rem .1rem; } .stat .lab { font-size: .95rem; } .stat svg { display: none; } .stat .num { font-size: 1.5rem; }
  #stats { gap: .3rem; }
  .who .nm { font-size: 1.25rem; } .who .face { font-size: 1.7rem; } .who .role { font-size: .78rem; }
  .mini { font-size: .82rem; gap: 0 .3rem; }
  .act { min-height: 4.6rem; padding: .45rem .2rem; } .act b { font-size: 1.3rem; } .act small { font-size: .8rem; } .act svg { font-size: 1.4rem; }
  .cards { gap: .35rem; }
  .sact { font-size: .95rem; padding: .22rem .45rem; } .sact small { display: none; }
  .sidev { width: 5.6rem; } .v-npc .msg { left: calc((100% - 6.1rem) / 2); width: calc(100% - 6.6rem); }
  .msg .t { font-size: 1.25rem; }
  .turn-banner { font-size: 1.3rem; padding: .4rem .8rem; }
  .cardv img { height: 8rem; } .talk img { height: 6.5rem; }
  .closeup .cstats { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01s !important; transition-duration: .01s !important; } }
