/* CountGuff
   Teatime, not television: warm paper, a teal clock, cream serif tiles, and
   GuffBot in a different jumper every round. */
:root {
  color-scheme: light;
  --paper: #F6EFE1;
  --paper2: #EFE5D0;
  --card: #FFFCF4;
  --ink: #2B2420;
  --muted: #6E645C;
  --line: #E0D5BF;
  --teal: #1F6F78;
  --teal-deep: #164F56;
  --mustard: #D9A126;
  --plum: #6E3B5C;
  --rust: #B4512B;
  --good: #1E7A58;
  --bad: #B23A1E;
  --tile: #FBF3DC;
  --tile-edge: #C9B786;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Nunito", -apple-system, system-ui, "Segoe UI", sans-serif;
  --radius: 16px;
  --shadow: 0 2px 10px rgba(43, 36, 32, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; color: var(--ink); font: 500 17px/1.45 var(--body);
  background: var(--paper) radial-gradient(circle at 20% 0, #FFF8E8, transparent 60%);
  padding-bottom: env(safe-area-inset-bottom);
}
button { font: inherit; color: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }   /* no double-tap zoom on fast taps (Carl, 24 Oct) */
.board, .tile, .ncard, .entry, .cards { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
a { color: var(--teal-deep); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.01em; line-height: 1.1; margin: 0; }
h1 { font-size: 2rem; }
h2 { font-size: 1.15rem; margin: 22px 0 8px; color: var(--teal-deep); }
h3 { font-size: 1.05rem; }
em { color: var(--rust); font-style: italic; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.centre { text-align: center; }
.warn { color: var(--bad); }
.lead { font-size: 1.05rem; margin: 8px 0; }
.foot { margin: 28px 0 10px; font-size: .86rem; color: var(--muted); text-align: center; }

/* header */
/* the header clears the iPhone status bar (Carl, 24 Oct: the top of the page sat behind the clock) */
.top { display: flex; align-items: center; justify-content: space-between; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 6px; max-width: 560px; margin: 0 auto; }
.updatebar { position: sticky; top: 0; z-index: 15; max-width: 560px; margin: 0 auto; padding: 0 16px; }
.updatebar button { width: 100%; border: 0; border-radius: 12px; background: var(--mustard); color: var(--ink); font-weight: 800; padding: 12px; cursor: pointer; box-shadow: 0 3px 0 #B8861A; animation: slide .4s ease-out; }
@keyframes slide { from { transform: translateY(-20px); opacity: 0; } }
.brand { text-decoration: none; display: inline-flex; gap: 8px; align-items: baseline; }
.tiles { display: inline-flex; gap: 2px; }
.tiles i { font: 800 .95rem/1 var(--display); font-style: normal; width: 22px; height: 26px; display: inline-grid; place-items: center; background: var(--tile); border: 1px solid var(--tile-edge); border-bottom-width: 3px; border-radius: 4px; color: var(--ink); }
.tiles.guff i { background: var(--teal); color: #FFF8E6; border-color: var(--teal-deep); }
.topnav { display: flex; gap: 14px; align-items: center; font-size: .92rem; font-weight: 700; }
.topnav a { text-decoration: none; }
.iconbtn { border: 1px solid var(--line); background: var(--card); border-radius: 999px; width: 34px; height: 34px; cursor: pointer; font-size: 1.1rem; color: var(--muted); }
.iconbtn.on { background: var(--mustard); color: var(--ink); border-color: #B8861A; }

.app { max-width: 560px; margin: 0 auto; padding: 6px 16px 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }

/* buttons */
.btn { border: 0; border-radius: 999px; background: var(--teal); color: #FFF8E6; padding: 12px 22px; font-weight: 800; font-size: 1rem; cursor: pointer; box-shadow: 0 3px 0 var(--teal-deep); transition: transform .08s; }
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--teal-deep); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.alt { background: var(--card); color: var(--teal-deep); border: 1px solid var(--line); box-shadow: 0 3px 0 var(--line); }
.btn.small { padding: 8px 14px; font-size: .9rem; }
.btn.big { padding: 16px 26px; font-size: 1.15rem; min-width: 130px; }
.btn.huge { padding: 20px 40px; font-size: 1.35rem; border-radius: 999px; margin: 14px auto; display: block; }
.btn.buzz { background: var(--rust); box-shadow: 0 5px 0 #7F3619; letter-spacing: .12em; font-size: 1.6rem; padding: 26px 52px; }
.btn.buzz:active { box-shadow: 0 1px 0 #7F3619; transform: translateY(4px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 14px; font-weight: 700; cursor: pointer; }
.chip:hover { background: var(--paper2); }
.chip.bot { background: var(--mustard); border-color: #B8861A; }
.practice { font: 700 .66rem/1 var(--body); background: var(--paper2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 6px; color: var(--muted); vertical-align: 2px; letter-spacing: .04em; text-transform: uppercase; }
.row { display: flex; gap: 10px; justify-content: center; margin: 12px 0; flex-wrap: wrap; }

/* GuffBot and his jumpers */
.jumper { display: block; filter: drop-shadow(0 4px 6px rgba(43, 36, 32, .18)); }
.host { display: grid; place-items: center; }
.hostline { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin: 6px 0 14px; }
.patter { font-family: var(--display); font-style: italic; font-size: 1.1rem; line-height: 1.3; margin: 6px 0; color: var(--ink); }
.patter.small { font-size: .98rem; }

/* login */
.login { text-align: center; padding-top: 8px; }
.login h1 { margin: 10px 0 6px; }
.form { text-align: left; margin-top: 16px; display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; font-weight: 700; font-size: .9rem; }
.form input { font: 600 1.1rem var(--body); padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.form details { font-size: .9rem; }
.form summary { cursor: pointer; color: var(--muted); }
.form .btn { justify-self: center; min-width: 180px; }

/* lobby */
.list { display: grid; gap: 8px; }
.gamerow { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "who sc" "what sc"; gap: 0 12px; align-items: center; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); }
.gamerow.go { border-color: var(--teal); box-shadow: inset 4px 0 0 var(--teal), var(--shadow); }
.gamerow .who { grid-area: who; font-weight: 800; }
.gamerow .what { grid-area: what; font-size: .86rem; color: var(--muted); }
.gamerow .sc { grid-area: sc; font: 800 1.3rem/1 var(--display); }
.gamerow .sc small { color: var(--muted); font-size: 1rem; }
.howto { margin-top: 20px; font-size: .92rem; }
.howto summary { cursor: pointer; font-weight: 800; color: var(--teal-deep); }
.howto ul { padding-left: 18px; margin: 8px 0 0; }
.howto li { margin: 4px 0; }
.notify { margin-top: 18px; }
.notify h3 { margin-bottom: 6px; }
.notify p { margin: 0 0 8px; font-size: .92rem; }

/* admin */
.row.left { justify-content: flex-start; }
.text { font: 600 1rem var(--body); padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; flex: 1; min-width: 160px; }
.gamerow.static { grid-template-areas: "who who" "what what" "acts acts"; grid-template-columns: 1fr; gap: 4px; }
.gamerow .acts { grid-area: acts; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.gamerow .acts .chip { padding: 5px 10px; font-size: .82rem; }
.chip.danger { color: var(--bad); border-color: #E6B9AE; }
.linkcard { margin: 10px 0; }
.linkcard code { display: block; word-break: break-all; font-size: .82rem; background: var(--paper2); padding: 8px; border-radius: 8px; }
.gamerow code { font-size: .8rem; }

/* game header */
.scorehead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 8px; margin: 4px 0 2px; }
.side { display: grid; gap: 2px; }
.side .n { font-weight: 800; font-size: .95rem; color: var(--muted); }
.side .s { font: 800 2.4rem/1 var(--display); }
.side.them { text-align: right; }
.caption { text-align: center; font-size: .82rem; color: var(--muted); margin: -8px 0 12px; font-style: italic; }
.rounds { list-style: none; display: flex; gap: 5px; justify-content: center; padding: 0; margin: 4px 0 14px; }
.rounds li { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 800 .8rem var(--body); border: 2px solid var(--line); color: var(--muted); background: var(--card); }
.rounds li.done { background: var(--teal); border-color: var(--teal); color: #FFF8E6; }
.rounds li.now { border-color: var(--mustard); background: #FFF3CF; color: var(--ink); transform: scale(1.12); }
.rounds li.tC.done { background: var(--plum); border-color: var(--plum); }

.stage { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 14px 18px; }
.roundtitle { font-size: 1.5rem; text-align: center; margin-bottom: 4px; }
.roundtitle span { display: block; font-size: 1rem; color: var(--rust); font-style: italic; font-weight: 500; }

/* tiles */
/* nine tiles over two lines, five then four, big enough to tap in a hurry (Carl, 24 Oct) */
.board { display: flex; gap: 8px; justify-content: center; margin: 12px auto; flex-wrap: wrap; max-width: 330px; }
.tile { width: 58px; aspect-ratio: 1 / 1.1; display: grid; place-items: center; border-radius: 9px; background: var(--tile); border: 1px solid var(--tile-edge); border-bottom-width: 5px; font: 800 2rem/1 var(--display); color: var(--ink); padding: 0; cursor: pointer; transition: transform .12s, opacity .12s; }
.tile.empty { background: var(--paper2); border-color: var(--line); border-bottom-width: 1px; }
.tile.in { animation: land .35s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: calc(var(--i, 0) * 0s); }
.tile.used { opacity: .3; transform: translateY(4px); }
.tile.small { width: 31px; max-width: 31px; font-size: 1.1rem; border-bottom-width: 3px; cursor: default; animation: pop .18s ease-out both; }
.board.conundrum .tile { background: #F3E3EA; border-color: #B08BA0; }
@keyframes land { from { transform: translateY(-30px) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop { from { transform: scale(.6); } to { transform: scale(1); } }
.entry { min-height: 60px; display: flex; gap: 3px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 8px 0 4px; padding: 6px; border-radius: 10px; background: var(--paper2); }
.entry .hint { color: var(--muted); font-size: .9rem; }
.kbd { position: absolute; opacity: 0; width: 1px; height: 1px; left: -9999px; font-size: 16px; }   /* 16px: iOS zooms into smaller inputs on focus */
.banked { text-align: center; margin: 8px 0 0; font-size: .95rem; min-height: 1.4em; }
.banked b { font-family: var(--display); font-size: 1.2rem; letter-spacing: .06em; }
.banked.flash { animation: flash .6s ease-out; }
@keyframes flash { 0% { background: #FFF3CF; } 100% { background: transparent; } }
.pickrow { display: flex; gap: 12px; justify-content: center; margin: 14px 0 10px; }
.pickrow.nums .btn { min-width: 0; width: 56px; padding: 14px 0; }

/* the clock */
.clockwrap { display: grid; place-items: center; margin: 0 auto 2px; color: var(--teal-deep); }
.clock .rim { fill: var(--teal-deep); }
.clock .dial { fill: #F8F1DF; }
.clock .gone { fill: var(--teal); opacity: .28; }
.clock .num { font: 800 15px var(--body); fill: var(--teal-deep); }
.clock .hand { stroke: var(--rust); stroke-width: 5; }   /* no transform-origin: rotate(a 100 100) already pivots it on the boss (Carl, 24 Oct: it floated off the face) */
.clock .boss { fill: var(--rust); }
.clock .secs { font: 800 28px var(--display); fill: var(--teal-deep); }
.clock.last5 .secs, .clock.last5 .hand { fill: var(--bad); stroke: var(--bad); }
.clock.done .dial { fill: #EFE2CC; }
.clockwrap.small { opacity: .7; }
.musicrow { display: flex; gap: 8px; justify-content: center; align-items: center; font-size: .9rem; color: var(--muted); margin-top: 6px; }
.buzzclock { text-align: center; font: 800 2.6rem/1 var(--display); color: var(--rust); margin: 4px 0 8px; }

/* numbers */
.target { text-align: center; font: 800 3rem/1 var(--display); color: var(--ink); background: #2B2420; color: #9CE6D3; border-radius: 12px; padding: 10px; letter-spacing: .08em; margin: 4px auto 12px; max-width: 220px; box-shadow: inset 0 0 0 3px #4A3F39, 0 3px 0 #000; font-variant-numeric: tabular-nums; }
.cards { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 8px 0; }
.ncard { min-width: 54px; height: 54px; padding: 0 10px; border-radius: 8px; background: #FFF; border: 1px solid var(--tile-edge); border-bottom-width: 4px; font: 800 1.35rem var(--display); display: grid; place-items: center; cursor: pointer; }
.ncard.back { background: repeating-linear-gradient(45deg, var(--teal), var(--teal) 6px, var(--teal-deep) 6px, var(--teal-deep) 12px); border-color: var(--teal-deep); }
.ncard.sel { background: #FFF3CF; border-color: var(--mustard); transform: translateY(-3px); }
.ncard.made { background: #fff; border-color: var(--mustard); box-shadow: inset 0 0 0 2px var(--mustard); }
.ops { display: flex; gap: 6px; justify-content: center; margin: 8px 0; flex-wrap: wrap; }
.btn.op { padding: 9px 0; width: 46px; font-size: 1.2rem; }
.btn.op.sel { background: var(--mustard); color: var(--ink); border-color: #B8861A; }
.steps { margin: 6px auto; padding: 0 0 0 20px; font-variant-numeric: tabular-nums; max-width: 260px; min-height: 1.4em; }
.steps li { font-weight: 700; }

/* scored rounds */
.hist { margin-top: 26px; }
.scored { margin: 10px 0; padding: 14px; }
.scored h3 span { color: var(--rust); font-style: italic; font-weight: 500; margin-left: 6px; }
.mini { display: flex; gap: 3px; margin: 8px 0; flex-wrap: wrap; }
.mini span { width: 28px; height: 30px; display: grid; place-items: center; background: var(--tile); border: 1px solid var(--tile-edge); border-bottom-width: 3px; border-radius: 5px; font: 800 .95rem var(--display); }
.mini em { font: 800 1.1rem var(--display); letter-spacing: .16em; color: var(--plum); }
.mini.nums b { font: 800 1.1rem var(--display); background: #2B2420; color: #9CE6D3; padding: 0 10px; border-radius: 6px; display: grid; place-items: center; margin-right: 6px; }
.mini.nums span { width: auto; padding: 0 7px; background: #fff; }
.plays { display: grid; gap: 6px; margin: 8px 0; }
.play { display: grid; grid-template-columns: 90px 1fr auto; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 10px; background: var(--paper2); }
.play.won { background: #E6F2EE; }
.play .who { font-weight: 800; font-size: .9rem; }
.play .who small { color: var(--muted); font-weight: 600; }
.play .w { font: 800 1.15rem var(--display); letter-spacing: .05em; }
.play .w.bad { text-decoration: line-through; color: var(--bad); }
.play .steps { grid-column: 2; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .8rem; }
.play .pts { font: 800 1.3rem var(--display); min-width: 28px; text-align: right; }
.corner { margin-top: 8px; padding: 8px 10px; border-left: 3px solid var(--mustard); background: #FFF8E6; border-radius: 0 10px 10px 0; font-size: .92rem; }
.corner b { display: block; font-family: var(--display); color: var(--teal-deep); }

.over .roundtitle { font-size: 2rem; }
.wait .lead { color: var(--muted); }

/* stats */
.tiles3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.tile3 { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.tile3 b { display: block; font: 800 1.3rem var(--display); color: var(--teal-deep); }
.tile3 span { font-size: .78rem; color: var(--muted); }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; margin-top: 10px; table-layout: auto; }
.table th { font-size: .78rem; color: var(--muted); }
.table th, .table td { padding: 6px 4px; text-align: right; border-bottom: 1px solid var(--line); }
.table th:first-child, .table td:first-child { text-align: left; }
.table tr.me td { font-weight: 800; }
.h2h { padding-left: 18px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #FFF8E6; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: .95rem; z-index: 20; box-shadow: 0 6px 20px rgba(0,0,0,.25); max-width: 92vw; text-align: center; }
.toast.warn { background: var(--bad); }

@media (max-width: 380px) {
  .tiles3 { grid-template-columns: 1fr; }
  .play { grid-template-columns: 70px 1fr auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* the welcome sheet: Home Screen and notifications (as in Words and Guff) */
.sheetwrap { position: fixed; inset: 0; z-index: 30; background: rgba(43, 36, 32, .45); display: grid; align-items: end; justify-items: center; animation: fade .2s ease-out; }
.sheet { width: 100%; max-width: 520px; max-height: 92dvh; overflow: auto; background: var(--card); border-radius: 22px 22px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -10px 30px rgba(0, 0, 0, .2); animation: rise .28s cubic-bezier(.2, .9, .3, 1); }
@media (min-width: 560px) { .sheetwrap { align-items: center; } .sheet { border-radius: 22px; } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
.welcome { position: relative; }
.welcome h2 { font-size: 1.6rem; color: var(--ink); margin: 6px 0 8px; text-align: center; }
.welcome p { margin: 8px 0; }
.welcome .wbot { display: grid; place-items: center; }
.welcome .caption2 { font-style: italic; margin-top: 10px; }
.sheetx { position: absolute; top: -4px; right: -4px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--paper2); font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--muted); }
.seg { display: flex; background: var(--paper2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin: 10px 0 12px; }
.seg button { flex: 1; font-weight: 800; font-size: .9rem; padding: 7px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--teal); color: #FFF8E6; }
.hsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: step; }
.hsteps li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.hsteps .se { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 1.3rem; }
.hsteps .st { font-weight: 700; line-height: 1.3; }
.hsteps .st::before { counter-increment: step; content: counter(step) ". "; color: var(--teal); }
.hsteps .ss { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.linkbtn { border: 0; background: none; color: var(--teal-deep); font-weight: 800; text-decoration: underline; cursor: pointer; padding: 4px; }
.notifylink { text-align: center; margin: 4px 0 10px; font-size: .95rem; }
/* a quick change: when GuffBot's jumper is new since you last looked, he pops into it */
.jumper.changed { animation: quickchange .55s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes quickchange { 0% { transform: scale(.85) rotate(-6deg); opacity: .3; } 60% { transform: scale(1.06) rotate(3deg); opacity: 1; } 100% { transform: none; } }
.hsteps[hidden] { display: none; }

/* the word you're making sits ABOVE the tiles and is big, so your fingers never cover it (Carl, 24 Oct) */
.entry.big { min-height: 64px; margin: 4px 0 10px; gap: 3px; background: #FFF8E6; border: 2px dashed var(--line); }
.entry.big .tile.small { width: 36px; max-width: 36px; font-size: 1.55rem; border-bottom-width: 4px; aspect-ratio: 1 / 1.15; }
.entry.big .hint { font-size: 1rem; }
.entry .count { font: 800 1rem var(--body); color: var(--teal-deep); margin-left: 6px; }

/* after your go: your word, big, with its length, and one short line */
.yourplay { margin: 10px 0 6px; }
.yourplay .mine { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.yourplay .mine .tile { width: 34px; font-size: 1.45rem; border-bottom-width: 4px; cursor: default; animation: none; }
.yourplay .mine.bad .tile { opacity: .55; text-decoration: line-through; }
.yourplay .badge { display: inline-block; margin-top: 10px; font: 800 1.05rem var(--body); background: var(--teal); color: #FFF8E6; border-radius: 999px; padding: 6px 14px; }
.yourplay .badge.nine { background: var(--mustard); color: var(--ink); }
.yourplay .badge.bad { background: var(--paper2); color: var(--bad); }
.yourplay .bignum { font: 800 2.6rem/1 var(--display); color: var(--ink); }
.wait .next { font: 800 1.15rem var(--display); margin: 12px 0 4px; color: var(--teal-deep); }
.wait .patter { font-size: .98rem; color: var(--muted); }
.tile.in.used { animation: none; opacity: .28; transform: translateY(4px); }   /* the landing animation held opacity at 1 */
.game.playing .scorehead .jumper { height: 78px; width: auto; }
.game.playing .scorehead .side .s { font-size: 1.9rem; }
.game.playing .progress { margin-bottom: 8px; }

/* GuffBot's round report (24 Oct) */
.report .roundtitle { font-size: 1.7rem; margin-bottom: 10px; }
.pts2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.pts2 span { display: grid; justify-items: center; background: var(--paper2); border-radius: 14px; padding: 8px 4px; font-weight: 800; color: var(--muted); font-size: .9rem; }
.pts2 b { font: 800 2.1rem/1.05 var(--display); color: var(--muted); }
.pts2 .up { background: #E6F2EE; color: var(--teal-deep); }
.pts2 .up b { color: var(--good); animation: pop .4s cubic-bezier(.3, 1.6, .5, 1) both; }
.bubble { position: relative; background: #FFF8E6; border: 2px solid var(--mustard); border-radius: 16px; padding: 10px 14px; margin: 4px 0 6px; font-family: var(--display); font-style: italic; font-size: 1.08rem; line-height: 1.35; }
.bubble p { margin: 4px 0; }
.bubble::before { content: ""; position: absolute; top: -10px; left: 50%; margin-left: -9px; border: 9px solid transparent; border-top: 0; border-bottom-color: var(--mustard); }
.report .scored { box-shadow: none; margin: 14px 0 0; }
.report .btn.huge { width: 100%; font-size: 1.15rem; padding: 18px 20px; margin: 14px 0 0; }

/* a nine: GuffBot spins on, huge, in a fresh jumper */
.ninespin { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: radial-gradient(circle, rgba(255, 248, 230, .97), rgba(246, 239, 225, .93)); transition: opacity .5s ease; cursor: pointer; }
.ninespin.out { opacity: 0; }
.ninespin .spinbot { animation: ninespin 2.4s cubic-bezier(.3, 1.3, .5, 1) both; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .3)); }
.ninespin .ninetext { position: absolute; bottom: 9%; display: grid; justify-items: center; gap: 6px; animation: ninetext 2.4s ease both; }
.ninespin .ninetext b { font: 800 2.6rem/1 var(--display); color: var(--rust); background: #fff; padding: 8px 22px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); letter-spacing: .04em; }
.ninespin .ninetext span { font: 800 1.6rem/1 var(--display); letter-spacing: .2em; color: var(--teal-deep); }
.ninespin .spark { position: absolute; top: 45%; left: 50%; font-size: 2rem; animation: sparkfly 1.8s ease-out both; animation-delay: calc(var(--i) * .12s + .5s); }
@keyframes ninespin { 0% { transform: scale(.05) rotate(-900deg); opacity: 0; } 55% { transform: scale(1.12) rotate(20deg); opacity: 1; } 70% { transform: scale(.95) rotate(-8deg); } 82% { transform: scale(1.03) rotate(4deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes ninetext { 0%, 45% { opacity: 0; transform: scale(.5); } 60% { opacity: 1; transform: scale(1.15); } 70%, 100% { opacity: 1; transform: scale(1); } }
@keyframes sparkfly { from { opacity: 1; transform: rotate(calc(var(--i) * 60deg)) translateY(-60px) scale(.6); } to { opacity: 0; transform: rotate(calc(var(--i) * 60deg)) translateY(-220px) scale(1.5); } }

/* pace (24 Oct): Standard 30 s, Relaxed 45 s, with GuffBot standing or lounging */
.pacepick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 12px; }
.pacepick button { display: grid; justify-items: center; align-content: end; gap: 4px; min-height: 120px; background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 8px 6px 10px; cursor: pointer; }
.pacepick button.on { border-color: var(--teal); background: #E6F2EE; box-shadow: 0 3px 0 var(--teal-deep); }
.pacepick b { display: block; font: 800 1rem var(--display); }
.pacepick small { color: var(--muted); font-size: .78rem; }
.pacepick span { text-align: center; }
.pacetag { font-style: normal; font-weight: 800; color: var(--plum); }
.practice.relaxed { color: var(--plum); border-color: #D9C2D0; background: #F6ECF2; }
.lounge .puff { stroke-dasharray: 60; stroke-dashoffset: 60; opacity: 0; animation: puff 3.6s ease-out infinite; }
.lounge .p2 { animation-delay: 1.2s; } .lounge .p3 { animation-delay: 2.4s; }
@keyframes puff { 0% { stroke-dashoffset: 60; opacity: 0; transform: translateY(4px); } 25% { opacity: .9; } 100% { stroke-dashoffset: 0; opacity: 0; transform: translateY(-10px); } }
.game.playing .scorehead .jumper.lounge { height: 70px; }
.ninespin .bigemoji { display: block; line-height: 1; }
.stats .seg.small { margin: 10px 0; }

/* no zooming or text selection under fast thumbs (Carl, 24 Oct: the numbers went blue and stuck) */
html, body { touch-action: manipulation; }
.game, .stage, .board, .cards, .ops, .entry, .target, .steps, .clockwrap { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* bigger numbers and signs */
.ncard { min-width: 60px; height: 60px; font-size: 1.5rem; border-radius: 10px; }
.cards.work { gap: 8px; }
.ops { gap: 8px; margin: 12px 0; }
.btn.op { width: 64px; height: 56px; padding: 0; font-size: 1.7rem; border-radius: 14px; box-shadow: 0 3px 0 var(--line); }
.btn.op.sel { box-shadow: 0 3px 0 #B8861A; }
.numbers .target { font-size: 2.6rem; padding: 6px; margin-bottom: 8px; }

/* how far through the game */
.progress { display: grid; gap: 5px; margin: 6px 0 12px; }
.progress .bar { height: 10px; border-radius: 999px; background: var(--paper2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-deep)); border-radius: 999px; transition: width .6s ease; }
.progress span { text-align: center; font-weight: 800; font-size: .95rem; color: var(--teal-deep); }

/* the breather */
.breather .btn.huge, .wait .bubble { margin-top: 12px; }
.breather .btn.huge { width: 100%; font-size: 1.15rem; }
