/* Success You Can Live With brand kit, 2026. Forest text, Cream fields, one bright at a time. */
@font-face { font-family: 'Bricolage Grotesque'; src: url('/fonts/bricolage-800.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('/fonts/outfit-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Outfit'; src: url('/fonts/outfit-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gloock'; src: url('/fonts/gloock-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --forest: #17392E;
  --deep: #0E2820;
  --cream: #F3EADB;
  --hot: #FF5A1F;
  --bubblegum: #FF8FC7;
  --peach: #FFC9A8;
  --blush: #FFD6E8;
  --butter: #FFE08A;
  --periwinkle: #B9C8FF;
  --ink: var(--forest);
  --ink-soft: #3D5C50;
  --paper: #FBF6EE;
  --line: #E4D5C4;
  --radius: 22px;
  --display: 'Bricolage Grotesque', 'Arial Black', sans-serif;
  --body: 'Outfit', system-ui, sans-serif;
  --quote: 'Gloock', Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--forest); font: 400 17px/1.45 var(--body);
  min-height: 100vh; min-height: 100dvh; overflow-x: hidden;
}
.blobs i { position: fixed; z-index: -1; border-radius: 50%; opacity: .7; }
.blobs i:nth-child(1) { width: 380px; height: 380px; background: var(--peach); top: -140px; right: -120px; }
.blobs i:nth-child(2) { width: 260px; height: 260px; background: var(--butter); bottom: -90px; left: -90px; opacity: .55; }
.blobs i:nth-child(3) { width: 180px; height: 180px; background: var(--periwinkle); top: 58%; right: -70px; opacity: .45; }

#app { max-width: 640px; margin: 0 auto; padding: 22px 18px calc(48px + env(safe-area-inset-bottom)); }
#app.wide { max-width: 1040px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .95; letter-spacing: -.03em; margin: 0 0 .45em; color: var(--forest); }
h1 { font-size: clamp(2.3rem, 8vw, 3.4rem); letter-spacing: -.04em; line-height: .9; }
h2 { font-size: clamp(1.6rem, 5.5vw, 2.15rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-soft); }
.small { font-size: .88rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }

.squiggle { display: inline-block; position: relative; white-space: nowrap; }
.squiggle::after {
  content: ''; position: absolute; left: -2%; right: -2%; bottom: -.16em; height: .22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 7c10-7 18 5 28-1s18 5 28-1 18 5 28-1 18 4 30-1' stroke='%23FF5A1F' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}
.brandbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; font-size: .9rem; color: var(--ink-soft); }
.wordmark { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; color: var(--forest); text-decoration: none; font-size: 1.02rem; line-height: 1.05; max-width: 11em; }
.wordmark em { font-style: normal; color: var(--hot); }

.card { background: var(--paper); border: 1.5px solid var(--forest); border-radius: var(--radius); padding: 22px; }
.card.soft { background: #F8EFE3; border-color: transparent; }
.card + .card { margin-top: 18px; }
.sticker { display: inline-block; background: var(--butter); color: var(--forest); font-family: var(--body); font-weight: 600; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; transform: rotate(-6deg); }
.sticker.sage { background: var(--periwinkle); transform: rotate(6deg); }
.sticker.blush { background: var(--peach); transform: rotate(-4deg); }

.btn {
  appearance: none; border: 0; background: var(--hot); color: var(--forest); font: 600 1.05rem var(--body);
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px;
}
.btn:hover { background: var(--forest); color: var(--cream); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--paper); color: var(--forest); border: 1.5px solid var(--forest); }
.btn.ghost:hover { background: var(--peach); color: var(--forest); }
.btn.big { font-size: 1.15rem; padding: 17px 34px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.linkbtn { background: none; border: 0; color: var(--ink-soft); text-decoration: underline; font: inherit; cursor: pointer; padding: 8px; }
:focus-visible { outline: 3px solid var(--hot); outline-offset: 3px; }

.progress { height: 12px; background: var(--paper); border: 1.5px solid var(--forest); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--forest); border-radius: 999px; transition: width .35s ease; }
.progress-meta { display: flex; justify-content: space-between; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin: 8px 2px 18px; }

.statement { font-family: var(--display); font-size: clamp(1.7rem, 6vw, 2.25rem); line-height: .95; letter-spacing: -.03em; font-weight: 800; margin: 8px 0 26px; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.scale button {
  appearance: none; border: 1.5px solid var(--forest); background: var(--paper); color: var(--forest); border-radius: 18px; padding: 16px 0 12px;
  font: 800 1.5rem var(--display); cursor: pointer; min-height: 76px;
}
.scale button small { display: block; font: 600 .62rem var(--body); letter-spacing: .08em; color: var(--ink-soft); margin-top: 4px; text-transform: uppercase; }
.scale button:hover { background: var(--peach); }
.scale button:active, .scale button.picked { background: var(--forest); color: var(--cream); }
.scale button.picked small { color: var(--cream); }
.scale-ends { display: flex; justify-content: space-between; font-size: .8rem; color: var(--ink-soft); margin: 10px 4px 0; }
.nudge { margin-top: 22px; text-align: center; color: var(--forest); font-family: var(--quote); font-size: 1.15rem; line-height: 1.1; }

label.field { display: block; font-weight: 600; margin-bottom: 14px; }
label.field span.hint { display: block; font-weight: 400; color: var(--ink-soft); font-size: .88rem; margin-top: 2px; }
input[type=text], input[type=email], input[type=number], input[type=password], select {
  width: 100%; font: inherit; padding: 13px 14px; border: 1.5px solid var(--forest); border-radius: 14px; background: var(--cream); color: var(--forest); margin-top: 6px;
}
input[type=number] { appearance: textfield; }
.bucket { display: grid; grid-template-columns: 1fr 112px; gap: 14px; align-items: center; padding: 14px 0; border-top: 2px dashed var(--line); }
.bucket:first-of-type { border-top: 0; }
.bucket b { font-family: var(--display); font-size: 1.15rem; }
.bucket p { margin: 2px 0 0; color: var(--ink-soft); font-size: .88rem; line-height: 1.35; }
.bucket input { text-align: center; font-size: 1.3rem; font-weight: 700; margin: 0; }
.total-chip { margin-top: 10px; text-align: right; font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 8px; }
.chip { appearance: none; border: 1.5px solid var(--forest); border-radius: 999px; background: var(--paper); color: var(--forest); font: 600 .95rem var(--body); padding: 9px 16px; cursor: pointer; }
.chip[aria-pressed=true] { background: var(--forest); color: var(--cream); }
.chip small { font-weight: 400; opacity: .75; }

.hero { text-align: center; padding: 8px 0 4px; }
.scorering { width: 220px; height: 220px; margin: 6px auto 4px; position: relative; }
.scorering svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.scorering .num { position: absolute; inset: 0; display: grid; place-items: center; font: 800 4.2rem var(--display); letter-spacing: -.04em; }
.scorering .num small { display: block; font: 600 .72rem var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-top: -6px; }
.levelname { font-family: var(--display); font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.levelpips { display: flex; gap: 6px; justify-content: center; margin: 10px 0; }
.levelpips i { width: 38px; height: 10px; border-radius: 999px; background: var(--line); }
.levelpips i.on { background: var(--forest); }

.pbar { margin: 14px 0; }
.pbar .top { display: flex; justify-content: space-between; font-weight: 600; }
.pbar .track { height: 16px; border-radius: 999px; background: var(--cream); overflow: hidden; margin-top: 6px; }
.pbar .track i { display: block; height: 100%; background: var(--periwinkle); width: 0; transition: width .9s cubic-bezier(.2,.9,.2,1); }
.pbar.low .track i { background: var(--hot); }
.pbar .you { font-weight: 500; color: var(--ink-soft); font-size: .85rem; }

.play { padding: 12px 0; border-top: 2px dashed var(--line); }
.play:first-of-type { border-top: 0; }
.play b { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; }

.stub { border-radius: 16px; padding: 18px; background: var(--cream); font-variant-numeric: tabular-nums; }
.stub h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.stub .line { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dotted var(--line); }
.stub .line.total { border-bottom: 0; border-top: 2px solid var(--forest); margin-top: 8px; padding-top: 12px; font-weight: 800; font-size: 1.15rem; color: var(--forest); }
.bigstat { font-family: var(--display); font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; color: var(--forest); line-height: .9; }

.teamrow { display: grid; grid-template-columns: 1.4fr .7fr .7fr .8fr; gap: 8px; margin-top: 8px; }
.teamrow input { margin: 0; padding: 10px; }
.teamhead { display: grid; grid-template-columns: 1.4fr .7fr .7fr .8fr; gap: 8px; font-size: .72rem; color: var(--ink-soft); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--forest); color: var(--cream); padding: 12px 20px; border-radius: 999px; font-weight: 600; z-index: 9; max-width: 90vw; }
.savestate { font-size: .8rem; color: var(--ink-soft); text-align: center; margin-top: 10px; }
.footer { margin-top: 36px; text-align: center; font-size: .82rem; color: var(--ink-soft); }
.footer a { color: inherit; }
.err { color: var(--hot); font-weight: 600; margin-top: 8px; }
canvas.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 20; }

.room { text-align: center; }
.room .code { font: 800 clamp(3rem, 12vw, 7rem) var(--display); letter-spacing: -.04em; color: var(--forest); line-height: .9; }
.room .qr { background: var(--cream); padding: 18px; border: 1.5px solid var(--forest); border-radius: 26px; display: inline-block; }
.room .qr svg { display: block; width: min(38vh, 400px); height: auto; }
.room .count { position: relative; display: inline-block; font: 800 clamp(2.6rem, 9vw, 5rem) var(--display); letter-spacing: -.04em; margin-top: 8px; }
.room .count.tally-hit { animation: tally-hit 0.7s cubic-bezier(.2, .9, .2, 1); }
.room .count::after {
  content: ''; position: absolute; left: 50%; top: 46%; width: 0.55em; height: 0.55em;
  border: 3px solid var(--hot); border-radius: 50%; opacity: 0; pointer-events: none;
  transform: translate(-50%, -50%) scale(0.4);
}
.room .count.tally-hit::after { animation: tally-ring 0.85s ease-out; }
@keyframes tally-hit {
  0% { transform: scale(1); color: var(--forest); }
  38% { transform: scale(1.14); color: var(--hot); }
  100% { transform: scale(1); color: var(--forest); }
}
@keyframes tally-ring {
  0% { opacity: 0.85; transform: translate(-50%, -50%) scale(0.5); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.6); }
}
.tally-sparks { position: absolute; left: 50%; top: 42%; width: 0; height: 0; pointer-events: none; }
.tally-sparks i {
  position: absolute; width: 9px; height: 9px; margin: -4px 0 0 -4px; border-radius: 2px;
  background: var(--c); animation: tally-spark 0.75s ease-out var(--d) forwards;
}
@keyframes tally-spark {
  0% { transform: rotate(var(--a)) translateY(8px) scale(1); opacity: 1; }
  100% { transform: rotate(var(--a)) translateY(78px) scale(0.2); opacity: 0; }
}
.roomlabel { margin-top: 6px; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.4; }
.roompeople { margin: 16px 0 0; color: var(--ink-soft); }
.roomscorewrap { margin: 28px auto 8px; }
.roomscore { display: inline-block; font: 800 clamp(2.8rem, 8vw, 4.6rem) var(--display); letter-spacing: -.04em; line-height: .9; color: var(--forest); }
.roomscore.score-hit { animation: tally-hit 0.7s cubic-bezier(.2, .9, .2, 1); }
.scoremeaning { max-width: 34em; margin: 14px auto 8px; line-height: 1.55; color: var(--ink-soft); }
.roomwait { margin-top: 18px; }
.revealrow { margin: 22px 0 6px; }
.roomread { font-family: var(--quote); font-size: clamp(1.25rem, 2.6vw, 1.75rem); line-height: 1.4; max-width: 28em; margin: 26px auto 32px; color: var(--forest); }
.imply { margin: 0 0 12px; color: var(--ink-soft); font-size: .9rem; line-height: 1.35; font-weight: 400; }
.room .imply { margin: 2px 0 20px; line-height: 1.5; }
.room .hbar { margin: 16px 0 6px; }
.room .card.soft { margin-top: 26px; padding: 26px; }
.room .card.soft h3 { margin-bottom: 12px; }
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; text-align: left; }
.room .statgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.stat { background: var(--peach); border-radius: 18px; padding: 16px; color: var(--forest); min-width: 0; }
.room .stat { padding: 18px 14px; line-height: 1.4; }
.stat b { font: 800 2.4rem var(--display); letter-spacing: -.04em; display: block; color: var(--forest); line-height: .95; margin-top: 8px; }
.room .stat b { font-size: clamp(1.5rem, 2.4vw, 2.2rem); }
.hbar { display: grid; grid-template-columns: 150px 1fr 48px; gap: 10px; align-items: center; margin: 7px 0; font-weight: 600; }
.hbar .t { height: 16px; background: var(--cream); border-radius: 999px; overflow: hidden; }
.hbar .t i { display: block; height: 100%; background: var(--forest); transition: width .8s; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .scale { gap: 7px; }
  .scale button { min-height: 68px; font-size: 1.35rem; }
  .scale button small { font-size: .56rem; }
  .bucket { grid-template-columns: 1fr 92px; }
  .teamrow, .teamhead { grid-template-columns: 1fr 1fr; }
  .teamhead { display: none; }
  .hbar { grid-template-columns: 96px 1fr 40px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.screen { animation: pop .35s ease both; }
@media print { .blobs, .btn, .toast { display: none; } body { background: #fff; } }

.bucketbtns { display: grid; gap: 12px; }
.bucketbtn { appearance: none; text-align: left; border: 0; background: var(--bc, var(--paper)); color: var(--forest); border-radius: 18px; padding: 14px 52px 14px 16px; cursor: pointer; position: relative; font: inherit; min-height: 68px; }
.bucketbtn b { display: block; font: 800 1.2rem var(--display); letter-spacing: -.03em; }
.bucketbtn span { display: block; font-size: .85rem; line-height: 1.35; margin-top: 2px; }
.bucketbtn kbd { position: absolute; right: 14px; top: 14px; font: 600 .75rem var(--body); background: var(--cream); border-radius: 8px; padding: 1px 8px; }
.bucketbtn:active, .bucketbtn.picked { outline: 2px solid var(--forest); }
@media (hover: none) { .bucketbtn kbd { display: none; } .bucketbtn { padding-right: 16px; } }
