.houses { display: grid; gap: .6rem; }
@media (min-width: 640px) { .houses { grid-template-columns: repeat(3, 1fr); } }
.house { text-align: left; background: var(--surface-2); border: 2px solid var(--line); color: var(--ink); border-radius: 12px; padding: .8rem; cursor: pointer; font: inherit; }
.house strong { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; display: block; font-size: 1.05rem; }
.house span { display: block; font-size: .9rem; color: var(--muted); line-height: 1.4; }
.house em { font-style: normal; font-family: var(--font-head); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ember-ink); }
.house[aria-checked="true"] { border-color: var(--ember); background: var(--ember-soft); }
.how ul { padding-left: 1.2rem; margin: 0 0 .8rem; }
.how li { margin-bottom: .4rem; }

/* HUD */
.hud { padding: 1rem; margin-bottom: 1rem; }
.hud-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.hud-age { font-family: var(--font-head); font-size: 2.2rem; line-height: 1; }
.hud-age small { font-size: 1rem; color: var(--muted); }
.years { display: flex; gap: 5px; }
.years i { width: 28px; height: 34px; border-radius: 4px; background: var(--surface-3); display: grid; place-items: center; font-style: normal; font-family: var(--font-head); font-size: .8rem; color: var(--faint); border: 1px solid var(--line); }
.years i.done { background: var(--good); color: #062; border-color: transparent; }
:root[data-theme="dark"] .years i.done { color: #052a14; }
.years i.now { border: 2px solid var(--ember); color: var(--ink); }
.years i.quell { box-shadow: inset 0 -4px 0 var(--gold); }
.hud-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; margin: .9rem 0 .6rem; }
@media (max-width: 520px) { .hud-stats { grid-template-columns: repeat(3, 1fr); } }
.hs { background: var(--surface-2); border-radius: 10px; padding: .4rem .5rem; text-align: center; border: 1px solid var(--line); }
.hs .k { display: block; font-family: var(--font-head); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hs .v { font-family: var(--font-head); font-size: 1.35rem; }
.hs.flash { animation: flash .6s ease; }
@keyframes flash { 30% { background: var(--ember-soft); transform: scale(1.06); } }
.hbar { height: 12px; background: var(--surface-3); border-radius: 6px; overflow: hidden; }
.hbar i { display: block; height: 100%; width: 80%; background: var(--good); border-radius: 6px; transition: width .4s ease, background .4s; }
.hbar i.warn { background: var(--gold); }
.hbar i.bad { background: var(--bad); }
.family { list-style: none; margin: .8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.family li { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .7rem; font-size: .88rem; }
.family li.gone { opacity: .5; text-decoration: line-through; }
.family li b { font-family: var(--font-head); font-weight: 500; color: var(--ember-ink); }

/* phase */
.phase { min-height: 260px; }
.phase h2 { margin-bottom: .3rem; }
.season-tag { display: inline-block; font-family: var(--font-head); letter-spacing: .15em; text-transform: uppercase; font-size: .8rem; color: var(--ember-ink); }
.actions { display: grid; gap: .6rem; margin-top: 1rem; }
@media (min-width: 640px) { .actions { grid-template-columns: repeat(2, 1fr); } }
.action { text-align: left; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; cursor: pointer; font: inherit; display: grid; grid-template-columns: 2.2rem 1fr; gap: .2rem .6rem; align-items: start; transition: border-color .12s, transform .12s; }
.action:hover { border-color: var(--ember); transform: translateY(-1px); }
.action .ic { font-size: 1.6rem; grid-row: span 2; line-height: 1; }
.action strong { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; }
.action span { font-size: .88rem; color: var(--muted); line-height: 1.35; }
.action[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.choices { display: grid; gap: .5rem; margin-top: 1rem; }
.choices .btn { justify-content: flex-start; text-align: left; text-transform: none; letter-spacing: .01em; font-family: var(--font-body); font-weight: 600; }
.result-line { background: var(--surface-2); border-radius: 10px; padding: .7rem .9rem; margin: .8rem 0; border-left: 4px solid var(--ember); }
.delta { font-family: var(--font-head); letter-spacing: .03em; }
.delta .up { color: var(--good); }
.delta .down { color: var(--bad); }
.tess-row { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: .8rem; margin-bottom: .6rem; }
.tess-row .who { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; }
.tess-row .odds { font-family: var(--font-head); color: var(--ember-ink); text-align: right; }
.tess-row input { grid-column: 1 / -1; }
.tess-row .sub { grid-column: 1 / -1; font-size: .88rem; color: var(--muted); }
.reap-stage { text-align: center; padding: 1rem 0; }
.bowls { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 1rem 0; }
.bowl-mini { width: 150px; }
.bowl-mini .glass { width: 120px; height: 120px; margin: 0 auto .5rem; border-radius: 50%; border: 3px solid var(--line); background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.15), rgba(255,255,255,0) 45%), var(--surface-2); position: relative; overflow: hidden; }
.bowl-mini .glass i { position: absolute; width: 14px; height: 8px; background: var(--paper); border-radius: 1px; opacity: .9; }
.bowl-mini.spin .glass i { animation: tumble 1.2s ease-in-out infinite; }
@keyframes tumble { 0% { transform: translate(0,0) rotate(0); } 33% { transform: translate(14px,-18px) rotate(120deg); } 66% { transform: translate(-10px,-6px) rotate(240deg); } 100% { transform: translate(0,0) rotate(360deg); } }
.bowl-mini .lbl { font-family: var(--font-head); text-transform: uppercase; font-size: .85rem; letter-spacing: .05em; color: var(--muted); }
.drawn { display: flex; flex-direction: column; align-items: center; gap: .6rem; margin: 1rem 0; }
.drawn .slip { font-size: 1.15rem; min-width: 200px; }
.slip.you { background: #ffd9a8; box-shadow: 0 0 0 3px #ff7a3d, 0 6px 22px rgba(255,122,61,.5); }
.log { margin-top: 1rem; }
.log summary { cursor: pointer; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; }
.log ol { font-size: .92rem; color: var(--muted); padding-left: 1.4rem; max-height: 320px; overflow: auto; }
.log li { margin-bottom: .3rem; }

/* end */
.end-card { text-align: center; }
.end-card .title { font-family: var(--font-head); font-size: clamp(2.2rem, 9vw, 3.4rem); text-transform: uppercase; color: var(--ember-ink); line-height: 1; margin: .3rem 0 .6rem; }
.end-card .ending { font-size: 1.15rem; }
.ytable td, .ytable th { text-align: center; }
.badges { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: .8rem; }
.badges .pill.got { background: var(--ember-soft); color: var(--ember-ink); }
