/* Gecko: a terrarium at night. Deep leaf-green board with a faint scale texture,
   chunky sticker cards that sit on a hard shadow, saffron for "you're in", tangerine spots for the Gecko. */
:root {
  --board: #0e1d15;
  --board-glow: #1c3a28;
  --panel: #16291e;
  --panel-hi: #1d3527;
  --line: #2f4d3b;
  --shadow: #050d08;
  --ink: #f5f0dc;
  --muted: #a3b8a6;
  --hot: #ffc93c;
  --hot-deep: #c48a12;
  --hot-ink: #241800;
  --spot: #ff7b3a;
  --spot-deep: #b8481a;
  --good: #7be0a0;
  --display: "Bowlby One", "Arial Black", Impact, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 1px 1px, #ffffff0a 1px, transparent 1.6px) 0 0 / 14px 14px,
    radial-gradient(110% 70% at 50% -10%, var(--board-glow) 0%, var(--board) 65%) fixed,
    var(--board);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
}
.wrap { max-width: 34rem; margin: 0 auto; padding-inline: 16px; padding-block: max(18px, env(safe-area-inset-top)) 48px; display: flex; flex-direction: column; gap: 18px; min-height: 100%; }

/* header */
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { font-family: var(--display); font-size: 1.6rem; display: flex; align-items: center; gap: 8px; color: var(--ink); text-shadow: 0 3px 0 var(--shadow); }
.gecko-mark { width: 38px; height: 38px; color: var(--hot); flex: none; filter: drop-shadow(0 3px 0 var(--shadow)); transform-origin: 50% 60%; }
.logo:hover .gecko-mark { animation: wiggle .6s ease-in-out; }
.gecko-mark.big { width: 84px; height: 84px; color: var(--hot-ink); filter: none; animation: wiggle 2.4s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
.step { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 800; background: var(--panel); border: 1.5px solid var(--line); padding: 5px 10px; border-radius: 999px; }
.step:empty { display: none; }

/* type */
h1, h2 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 11vw, 3.4rem); text-shadow: 0 4px 0 var(--shadow); }
h2 { font-size: 1.45rem; }
.hl { color: var(--hot); }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center-text { text-align: center; }
.mono { font-family: var(--mono); letter-spacing: .08em; }
.label { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 800; }

/* cards: stickers on a hard shadow */
.card { background: linear-gradient(180deg, var(--panel-hi), var(--panel)); border: 2px solid var(--line); border-radius: 26px; padding: 22px 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 6px 0 var(--shadow); }
.card.spot { border-color: var(--hot); box-shadow: 0 6px 0 var(--hot-deep); }
.center { text-align: center; align-items: center; }

/* buttons */
button { font: inherit; cursor: pointer; border: 0; color: inherit; }
button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--hot); outline-offset: 3px; }
.btn { background: var(--hot); color: var(--hot-ink); font-weight: 800; font-size: 1.08rem; padding: 16px 20px; border-radius: 18px; width: 100%; box-shadow: 0 5px 0 var(--hot-deep); transition: transform .08s ease, box-shadow .08s ease, filter .12s; }
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--hot-deep); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: 0 5px 0 var(--hot-deep); }
.btn.ghost { background: var(--panel-hi); color: var(--ink); border: 2px solid var(--line); box-shadow: 0 5px 0 var(--shadow); }
.btn.ghost:active { box-shadow: 0 1px 0 var(--shadow); }
.btn.slim { width: auto; padding: 10px 18px; font-size: .95rem; align-self: center; border-radius: 14px; }
.link { background: transparent; color: var(--hot); font-weight: 700; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 10rem; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* status strip */
.me { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); }
.me b { color: var(--ink); }
.banner { background: var(--panel); border: 2px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: .92rem; }
.banner.bad { border-color: var(--spot); color: var(--spot); }

/* home */
.field { width: 100%; background: var(--shadow); border: 2px solid var(--line); border-radius: 14px; color: var(--ink); font: inherit; font-size: 1.1rem; padding: 12px 14px; }
.field::placeholder { color: var(--muted); opacity: .55; }
.field:focus { border-color: var(--hot); outline: none; }
.code-in { text-transform: uppercase; font-family: var(--mono); font-size: 1.7rem; text-align: center; font-weight: 700; letter-spacing: .2em; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.split .stack + .stack { border-left: 2px dashed var(--line); padding-left: 16px; }
@media (max-width: 480px) { .split { grid-template-columns: 1fr; } .split .stack + .stack { border-left: 0; padding-left: 0; border-top: 2px dashed var(--line); padding-top: 16px; } }

/* lobby */
.code { font-family: var(--mono); font-size: clamp(3.2rem, 17vw, 4.8rem); font-weight: 700; color: var(--hot); line-height: 1; letter-spacing: .14em; text-shadow: 0 5px 0 var(--shadow); }
.qr { background: #fff; padding: 10px; border-radius: 16px; line-height: 0; box-shadow: 0 5px 0 var(--shadow); }
.qr img, .qr canvas { display: block; }
.players { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.players li { display: flex; align-items: center; gap: 10px; background: var(--shadow); border-radius: 14px; padding: 9px 8px 9px 14px; min-height: 48px; }
.players li span { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 700; }
.players li .dot { flex: none; }
.players li em { font-style: normal; color: var(--hot); font-variant-numeric: tabular-nums; font-weight: 800; }
.players li.you, .deltas li.you { box-shadow: inset 0 0 0 2px var(--hot); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.dot.on { background: var(--good); box-shadow: 0 0 8px var(--good); }
.x { background: transparent; color: var(--muted); width: 36px; height: 36px; border-radius: 50%; font-size: 1.3rem; line-height: 1; }
.x:hover { background: var(--panel-hi); color: var(--spot); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--shadow); border: 2px solid var(--line); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: .92rem; color: var(--muted); transition: transform .08s; }
.chip:active { transform: scale(.95); }
.chip:disabled { cursor: default; opacity: .55; }
.chip:disabled:active { transform: none; }
.chip:disabled[aria-pressed="true"] { opacity: 1; }
.chip[aria-pressed="true"] { background: var(--hot); color: var(--hot-ink); border-color: var(--hot); }
.rules { font-size: .92rem; color: var(--muted); display: grid; gap: 6px; padding-left: 1.1em; margin: 0; }
.rules b { color: var(--ink); }

/* the card you're dealt */
.ring {
  width: min(78vw, 300px); aspect-ratio: 1; max-width: 100%; border-radius: 50%;
  border: 16px solid var(--hot); box-shadow: 0 7px 0 var(--hot-deep), inset 0 0 0 4px var(--shadow);
  display: grid; place-items: center; padding: 28px; text-align: center; background: var(--shadow);
  animation: deal .5s cubic-bezier(.2, 1.3, .4, 1);
}
.ring.out {
  border-radius: 36px; border: 0; color: var(--hot-ink); align-content: center; gap: 6px;
  background:
    radial-gradient(circle at 18% 22%, var(--spot-deep) 0 9px, transparent 10px),
    radial-gradient(circle at 80% 15%, var(--spot-deep) 0 6px, transparent 7px),
    radial-gradient(circle at 85% 70%, var(--spot-deep) 0 11px, transparent 12px),
    radial-gradient(circle at 12% 80%, var(--spot-deep) 0 7px, transparent 8px),
    radial-gradient(circle at 55% 92%, var(--spot-deep) 0 5px, transparent 6px),
    var(--spot);
  box-shadow: 0 7px 0 var(--spot-deep);
}
.ring.out .gecko-mark.big { --spot: var(--spot); }
.ring .word { font-family: var(--display); font-size: clamp(1.6rem, 8vw, 2.4rem); line-height: 1.05; overflow-wrap: anywhere; }
.ring .sub { font-size: .85rem; color: var(--muted); margin-top: 6px; font-weight: 600; }
.ring.out .sub { color: var(--hot-ink); opacity: .75; }
.big-name { font-family: var(--display); font-size: clamp(2.3rem, 12vw, 3.6rem); line-height: 1; overflow-wrap: anywhere; color: var(--hot); text-shadow: 0 4px 0 var(--shadow); }
@keyframes deal { from { transform: perspective(600px) rotateY(90deg) scale(.9); } to { transform: perspective(600px) rotateY(0) scale(1); } }

/* questions */
.progress { height: 10px; background: var(--shadow); border-radius: 99px; overflow: hidden; border: 2px solid var(--line); }
.progress div { height: 100%; background: var(--hot); border-radius: 99px; transition: width .3s; }
.qpair { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 800; font-size: 1.1rem; }
.qpair .who { background: var(--shadow); padding: 5px 13px; border-radius: 999px; overflow-wrap: anywhere; }
.qpair .who.mine { background: var(--hot); color: var(--hot-ink); }
.qpair .arrow { color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; }
.qopts { display: grid; gap: 12px; margin: 10px 0 4px; }
.qopt { text-align: left; font: inherit; font-weight: 800; font-size: 1.15rem; line-height: 1.25; color: var(--ink); background: var(--shadow); border: 2px solid var(--line); border-radius: 18px; padding: 16px 18px; cursor: pointer; transition: transform .08s; }
.qopt:active { transform: scale(.98); }
.qopt[aria-pressed="true"] { background: var(--hot); border-color: var(--hot); color: var(--hot-ink); box-shadow: 0 4px 0 var(--hot-deep); }
.qtext.waiting { color: var(--muted); }
.qtext { font-family: var(--display); font-size: clamp(1.6rem, 7vw, 2.1rem); line-height: 1.12; text-wrap: balance; }
.peek { color: var(--muted); font-size: .92rem; align-self: center; text-align: center; }
.peek summary { cursor: pointer; font-weight: 700; list-style: none; padding: 6px 12px; border-radius: 999px; border: 2px dashed var(--line); }
.peek summary::-webkit-details-marker { display: none; }
.peek p { margin-top: 10px; color: var(--ink); }

.accused-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }

/* recap of the round's questions */
.recap { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.recap li { display: grid; grid-template-columns: max-content 1fr; gap: 12px; align-items: start; padding: 10px 12px; background: var(--shadow); border-radius: 14px; }
.recap li > div { min-width: 0; }
.recap li p { font-weight: 700; line-height: 1.3; }
.recap .who { max-width: 7.5rem; background: var(--panel-hi); padding: 4px 10px; border-radius: 999px; font-weight: 800; font-size: .9rem; overflow-wrap: anywhere; justify-self: start; }
.recap .who.mine { background: var(--hot); color: var(--hot-ink); }
.recap-box summary { cursor: pointer; list-style: none; }
.recap-box summary::-webkit-details-marker { display: none; }
.recap-box summary::after { content: " ▾"; }
.recap-box[open] summary { margin-bottom: 4px; }

/* vote + reveal */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 10px; }
.pick { background: var(--shadow); border: 2px solid var(--line); border-radius: 16px; padding: 16px 12px; font-weight: 800; font-size: 1.05rem; overflow-wrap: anywhere; box-shadow: 0 4px 0 #000; transition: transform .08s, box-shadow .08s, border-color .12s; }
.pick:hover { border-color: var(--hot); }
.pick:active { transform: translateY(3px); box-shadow: 0 1px 0 #000; }
.pick.chosen { background: var(--hot); color: var(--hot-ink); border-color: var(--hot); box-shadow: 0 4px 0 var(--hot-deep); }
.tally { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tally li { display: grid; grid-template-columns: minmax(0, 7rem) 1fr 2ch; align-items: center; gap: 10px; font-weight: 700; }
.tally li span:first-child { overflow-wrap: anywhere; }
.tally .bar { height: 16px; background: var(--shadow); border-radius: 99px; overflow: hidden; }
.tally .bar div { height: 100%; background: var(--line); border-radius: 99px; animation: grow .6s ease-out; transform-origin: left; }
.tally li.top .bar div { background: var(--hot); }
.tally b { font-variant-numeric: tabular-nums; text-align: right; }
@keyframes grow { from { transform: scaleX(0); } }
.verdict { font-family: var(--display); font-size: clamp(1.8rem, 9vw, 2.6rem); line-height: 1.05; text-shadow: 0 3px 0 var(--shadow); }
.verdict.caught { color: var(--good); }
.verdict.escaped { color: var(--spot); }
.deltas { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.deltas li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 14px; background: var(--shadow); border-radius: 12px; }
.deltas li span { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.deltas .pts { font-variant-numeric: tabular-nums; font-weight: 800; white-space: nowrap; }
.deltas .plus { color: var(--good); }
.tag { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--hot-ink); background: var(--spot); padding: 2px 7px; border-radius: 6px; margin-left: 8px; vertical-align: 2px; }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 5px solid var(--line); border-top-color: var(--hot); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Boggle ---------- */
.board { gap: 12px; padding: 16px 14px 14px; }
.bstatus { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bstatus .rot { margin-right: auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-hi); border: 2px solid var(--line); color: var(--ink); box-shadow: 0 3px 0 var(--shadow); }
.bstatus .rot svg { width: 22px; height: 22px; }
.bstatus .rot:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--shadow); }
.bstatus .rot:disabled { opacity: .4; }
.bgrid.spin { animation: spin .25s ease-out; }
@keyframes spin { from { transform: rotate(-90deg); } to { transform: none; } }
.bstatus b { color: var(--hot); font-size: 1.2rem; }
.btimer { font-family: var(--mono); font-size: 1.9rem; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.btimer.low { color: var(--spot); }
.btimer.count { color: var(--hot); }
.bgrid { position: relative; display: grid; gap: 8px; width: min(100%, 50vh); margin: 0 auto; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.bgrid.s4 { grid-template-columns: repeat(4, 1fr); }
.bgrid.s5 { grid-template-columns: repeat(5, 1fr); gap: 6px; }
.tile { aspect-ratio: 1; display: grid; place-items: center; background: var(--ink); color: var(--board); border-radius: 14px; font-family: var(--display); font-size: clamp(1.5rem, 8.5vw, 2.3rem); line-height: 1; box-shadow: 0 5px 0 #a99f7d; cursor: pointer; transition: transform .06s, background .06s; }
.s5 .tile { font-size: clamp(1.2rem, 6.6vw, 1.85rem); border-radius: 11px; box-shadow: 0 4px 0 #a99f7d; }
.tile.qu { font-size: clamp(1.15rem, 6.6vw, 1.8rem); }
.s5 .tile.qu { font-size: clamp(.95rem, 5.2vw, 1.45rem); }
.tile.on { background: var(--hot); box-shadow: 0 5px 0 var(--hot-deep); transform: translateY(2px); }
.tile.last { background: var(--spot); color: #fff; box-shadow: 0 5px 0 var(--spot-deep); }
.bover { position: absolute; inset: -4px; display: grid; place-items: center; background: #0e1d15d9; border-radius: 16px; font-family: var(--display); font-size: clamp(1.8rem, 9vw, 2.6rem); color: var(--hot); text-shadow: 0 4px 0 var(--shadow); pointer-events: none; }
.bentry { display: flex; gap: 8px; }
.bentry .field { flex: 1; min-width: 0; letter-spacing: .08em; text-transform: uppercase; }
.bentry .field.bad { border-color: var(--spot); color: var(--spot); }
.bentry .btn { width: auto; padding: 12px 18px; }
.btoast { min-height: 1.4em; text-align: center; font-weight: 800; transition: opacity .4s; }
.btoast.good { color: var(--good); }
.btoast.bad { color: var(--spot); }
.btoast.gone { opacity: 0; }
.wcols { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.wcols.one { grid-template-columns: 1fr; }
.wcols.one ul { columns: 2; column-gap: 16px; }
.wcol { background: linear-gradient(180deg, var(--panel-hi), var(--panel)); border: 2px solid var(--line); border-radius: 16px; padding: 10px 10px 6px; min-width: 0; box-shadow: 0 4px 0 var(--shadow); }
.wcol.mine { border-color: var(--hot); }
.wcol-head { display: flex; justify-content: space-between; gap: 6px; font-weight: 800; margin-bottom: 4px; }
.wcol-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wcol-head span { color: var(--hot); font-family: var(--mono); }
.wcol ul { list-style: none; margin: 0; padding: 0; max-height: 32vh; overflow-y: auto; overscroll-behavior: contain; }
.wcol li { display: flex; justify-content: space-between; gap: 6px; font-family: var(--mono); font-size: .86rem; padding: 4px 0; border-top: 1px solid var(--line); break-inside: avoid; }
.wcol li span { overflow-wrap: anywhere; }
.wcol li small { color: var(--muted); }
.wcol li.solo span::after { content: " ★"; color: var(--hot); }
.wcol li.cancelled span { text-decoration: line-through; color: var(--muted); }
.wcol li.none { color: var(--muted); font-family: var(--body); border: 0; }
.bothers { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bothers li { display: flex; justify-content: space-between; gap: 10px; background: var(--shadow); border-radius: 12px; padding: 8px 12px; }
.bothers li span { color: var(--muted); font-size: .9rem; }
.bestword { font-size: clamp(1.8rem, 9vw, 2.6rem); font-weight: 700; color: var(--hot); letter-spacing: .06em; overflow-wrap: anywhere; line-height: 1.1; }
.chip.static { color: var(--ink); font-family: var(--mono); cursor: default; }
.bgrid.small { width: min(60%, 220px); gap: 5px; }
.bgrid.small .tile { font-size: 1.1rem; border-radius: 8px; box-shadow: 0 3px 0 #a99f7d; cursor: default; }

/* ---------- Fibber ---------- */
.ftext { font-size: clamp(1.35rem, 6vw, 1.8rem); }
.ftext .blank { color: var(--hot); letter-spacing: .05em; }
.fmsg { margin: 0; min-height: 1.3em; font-weight: 800; }
.fmsg.good { color: var(--good); }
.fmsg.bad { color: var(--spot); }
.fopts { display: grid; gap: 10px; }
.fopt { text-align: left; font: inherit; font-weight: 800; font-size: 1.15rem; color: var(--ink); background: linear-gradient(180deg, var(--panel-hi), var(--panel)); border: 2px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: 0 5px 0 var(--shadow); cursor: pointer; overflow-wrap: anywhere; transition: transform .08s; }
.fopt:active { transform: translateY(3px); }
.fopt[aria-pressed="true"] { background: var(--hot); color: var(--hot-ink); border-color: var(--hot); box-shadow: 0 5px 0 var(--hot-deep); }
.fopt.mine { opacity: .5; cursor: default; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.fopt.mine small { font-weight: 600; color: var(--muted); }
.ftruth { font-size: clamp(1.8rem, 9vw, 2.8rem); }
.flies { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.flies li { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--shadow); border-radius: 14px; padding: 10px 14px; }
.flies li.you { box-shadow: inset 0 0 0 2px var(--hot); }
.flies li > div { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.flies li > span { text-align: right; font-size: .9rem; }
.flies em { font-style: normal; color: var(--hot); font-weight: 800; }
.bentry .field.fib { text-transform: none; letter-spacing: normal; }
.flies li.top { background: color-mix(in srgb, var(--hot) 18%, var(--shadow)); }

/* Scraps */
.scwrap { position: relative; border-radius: 18px; overflow: hidden; border: 2px solid var(--line); box-shadow: 0 6px 0 var(--shadow); background: #cfc9b6; }
.scv { display: block; width: 100%; height: auto; aspect-ratio: 1; touch-action: none; user-select: none; -webkit-user-select: none; }
.scbg { fill: #fdfbf3; }
.scv.edit .pc { cursor: grab; }
.scv text { pointer-events: auto; }
.selbox { fill: none; stroke: var(--spot); stroke-width: 5; stroke-dasharray: 18 12; vector-effect: non-scaling-stroke; }
.selline { stroke: var(--spot); stroke-width: 4; vector-effect: non-scaling-stroke; }
.hdl { fill: var(--spot); stroke: #fff; stroke-width: 6; cursor: pointer; }
.hdl-ico { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; pointer-events: none; }
.sbar { flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; padding-block: 12px; }
.sbar > div { min-width: 0; }
.sbuild { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; color: var(--hot); overflow-wrap: anywhere; }
.sbuild.good { color: var(--good); }
.shint { font-size: 1.35rem; font-weight: 800; letter-spacing: .06em; overflow-wrap: anywhere; }
.shint .shard { font-family: var(--body); letter-spacing: 0; font-weight: 700; }
.spal { display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, 50px); grid-auto-columns: 50px; gap: 7px; overflow-x: auto; padding: 2px 2px 8px; margin-top: -6px; scrollbar-width: thin; }
.spc { aspect-ratio: 1; background: #fdfbf3; border: 2px solid var(--line); border-radius: 12px; padding: 6px; cursor: pointer; box-shadow: 0 3px 0 var(--shadow); }
.spc:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--shadow); }
.spc svg { width: 100%; height: 100%; display: block; pointer-events: none; }
.stools { gap: 10px; padding-block: 14px; }
.stoolrow { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.stoolrow .btn.slim { padding: 8px 12px; font-size: .88rem; align-self: auto; }
.btn.danger { color: var(--spot); }
.sswatches { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sw { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); cursor: pointer; padding: 0; }
.sw[aria-pressed="true"] { border-color: var(--hot); box-shadow: 0 0 0 3px var(--hot-deep); }
.smsg { margin: 0; min-height: 1.4em; font-weight: 800; }
.smsg .good, .good { color: var(--good); }
.smsg .bad { color: var(--spot); }
.sfeed { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 13rem; overflow-y: auto; font-size: .95rem; }
.sfeed li { background: var(--shadow); border-radius: 10px; padding: 6px 12px; overflow-wrap: anywhere; display: flex; align-items: center; gap: 8px; }
.sfeed li > span:first-child { flex: 1; min-width: 0; }
.sfeed li.warm { box-shadow: inset 4px 0 0 var(--good); }
.sfeed li.cold { box-shadow: inset 4px 0 0 var(--spot); }
.srate { display: inline-flex; gap: 4px; flex: none; }
.srate button { border: 0; background: transparent; font-size: 1.25rem; line-height: 1; padding: 6px 8px; border-radius: 10px; opacity: .4; cursor: pointer; }
.srate button[aria-pressed="true"] { opacity: 1; background: var(--panel); }
.srated { flex: none; font-size: 1.1rem; }
.sfloat { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sbub { position: absolute; bottom: 0; max-width: 62%; display: flex; align-items: center; gap: 4px; padding: 5px 6px 5px 12px; border-radius: 16px; background: rgba(20, 38, 30, .88); color: #fff; font-size: .95rem; line-height: 1.2; box-shadow: 0 3px 10px rgba(0,0,0,.25); overflow-wrap: anywhere; animation: sfloatup 7s linear forwards; }
.sbub.l { left: 8px; } .sbub.r { right: 8px; }
.sbub.ok { background: rgba(46, 140, 80, .92); padding-right: 12px; }
.sbub.close { background: rgba(200, 120, 20, .92); padding-right: 12px; }
.sbub b { margin-right: 4px; }
.sbub .srate { pointer-events: auto; }
.sbub .srate button { opacity: .55; padding: 6px 7px; }
.sbub .srate button[aria-pressed="true"] { opacity: 1; background: rgba(255,255,255,.25); }
@keyframes sfloatup { 0% { transform: translateY(100%); opacity: 0; } 6% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(calc(-1 * var(--sfh, 330px))); opacity: 0; } }
.szoom { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; }
.szoom button { width: 38px; height: 38px; border-radius: 10px; border: 2px solid #c8c2ad; background: rgba(253, 251, 243, .92); color: #1a1a1a; font-weight: 800; font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0; }
.stk { fill: none; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.sw.eraser { background: repeating-conic-gradient(#ddd 0 25%, #fff 0 50%) 50% / 12px 12px; color: #555; font-size: .9rem; }
.psz { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--line); background: #fdfbf3; display: grid; place-items: center; cursor: pointer; padding: 0; }
.psz[aria-pressed="true"] { border-color: var(--hot); box-shadow: 0 0 0 3px var(--hot-deep); }
.psz i { display: block; border-radius: 50%; }
.sfeed li.ok { color: var(--good); }
.sfeed li b { margin-right: 6px; }
.fopt.sword { text-align: center; font-family: var(--display); font-weight: 400; font-size: 1.5rem; }
.sfeed li.close { color: var(--hot); }

/* Tongue Tied */
.tcard { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.tword { font-family: var(--display); font-size: clamp(1.9rem, 9vw, 2.8rem); line-height: 1.05; color: var(--hot); overflow-wrap: anywhere; text-shadow: 0 3px 0 var(--shadow); }
.tno { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 6px; }
.tno li { background: var(--shadow); border: 2px solid color-mix(in srgb, var(--spot) 55%, transparent); color: var(--ink); border-radius: 12px; padding: 7px 12px; font-weight: 800; font-size: 1.1rem; }
.tbtns { display: flex; flex-direction: column; gap: 12px; }
.tok { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 10px; }
.tbtn small { font-weight: 600; opacity: .8; font-size: .85rem; margin-left: 4px; }
.btn.tbtn.yes { background: var(--good); color: #062512; box-shadow: 0 5px 0 #3d9a62; overflow-wrap: anywhere; }
.btn.tbtn.foul { background: var(--spot); color: #2a0d00; box-shadow: 0 5px 0 var(--spot-deep); }
.tlog .tmark { font-weight: 800; font-size: 1.2rem; width: 1.2em; text-align: center; }
.tlog li { justify-content: flex-start; }
.tlog li > div { flex: 1; }
.tlog li.ok .tmark { color: var(--good); }
.tlog li.foul .tmark { color: var(--spot); }
.tlog li.skip .tmark { color: var(--muted); }
.tlog em { font-style: normal; font-weight: 800; color: var(--hot); }
#tmain { display: flex; flex-direction: column; gap: 14px; }
#tmain .card.spot { padding-block: 14px; }
.tno { gap: 5px; }
.tno li { padding: 4px 12px; font-size: 1.05rem; }
.tbtns { gap: 10px; }
.btn.tbtn { padding-block: 14px; }
.trow { display: flex; gap: 10px; }
.trow > .btn { flex: 1; min-width: 0; padding-inline: 10px; font-size: 1rem; }
.trow small { display: block; margin: 2px 0 0; }
.tno.two { grid-template-columns: 1fr 1fr; }
.tno.two li { padding-inline: 6px; font-size: 1rem; overflow-wrap: anywhere; }
.tword { font-size: clamp(1.7rem, 8vw, 2.5rem); }
.tcard { gap: 6px; }
.tno li { padding-block: 3px; }
#tmain { gap: 10px; }
