/* Copied from apps/jinx/prototype/index.html on 2026-12-06; app-only additions are at the end. */
  :root { --ink:#1d2433; --soft:#6b7385; --line:#e3e6ee; --bg:#f4f1ea; --card:#fff;
          --a:#2f6fde; --b:#c2522d; --ok:#2e9e62; --no:#9aa1b0; --jinx:#7a3fd0; }
  * { box-sizing:border-box; }
  body { margin:0; font:15px/1.4 system-ui,Segoe UI,Roboto,sans-serif; color:var(--ink); background:var(--bg); }
  header { text-align:center; padding:16px 12px 0; }
  .logo { display:inline-flex; gap:4px; }
  .logo span { width:30px; height:36px; border-radius:6px; display:grid; place-items:center; color:#fff; font-weight:800; font-size:17px; background:var(--a); border-bottom:3px solid #1f4fa6; }
  .logo span:nth-child(n+5) { background:var(--b); border-bottom-color:#8c3a1f; }
  header p { margin:6px 0 0; color:var(--soft); font-size:13px; }
  .stage { display:flex; gap:22px; justify-content:center; align-items:flex-start; padding:14px; flex-wrap:wrap; }
  .phone { width:350px; min-height:690px; background:var(--card); border-radius:28px; border:1px solid var(--line);
           box-shadow:0 8px 28px rgba(30,40,70,.10); padding:16px; display:flex; flex-direction:column; gap:9px; }
  .who { display:flex; justify-content:space-between; align-items:baseline; }
  .who b { font-size:16px; } .who span { font-size:12px; color:var(--soft); }
  .who a { font-size:12px; color:var(--ink); cursor:pointer; text-decoration:underline; }
  .phone.a .who b { color:var(--a); } .phone.b .who b { color:var(--b); }
  .status { border-radius:12px; padding:10px 12px; font-weight:600; background:#eef1f8; }
  .status.act { background:#fff4d6; } .status.win { background:#dff5e8; } .status.lose { background:#f3e3e0; }
  .board { display:flex; gap:5px; justify-content:center; padding:4px 0 0; }
  .tile { width:34px; height:42px; border-radius:7px; display:grid; place-items:center; font-weight:800; font-size:19px;
          background:#eef0f5; border-bottom:3px solid #cfd4e0; }
  .tile.on { color:#fff; background:var(--ok); border-bottom-color:#1f6e44; }
  .board { position:relative; padding:14px 0 16px; margin:2px -16px 6px; background:#f6f3ec; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
  input.over { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:text; padding:0; border:0; }
  .tile.next { background:#fff; border:2px solid var(--ink); }
  .tile.pen { background:#fff; border:2px solid var(--line); color:var(--ink); }
  .tile.on.a { background:var(--a); border-bottom-color:#1f4fa6; } .tile.on.b { background:var(--b); border-bottom-color:#8c3a1f; }
  .tile.on.end { background:var(--ok); border-bottom-color:#1f6e44; }
  .meta { display:flex; justify-content:space-between; align-items:center; font-size:12px; color:var(--soft); }
  .meta b { color:var(--ink); font-size:15px; }
  .pips { display:inline-flex; gap:4px; vertical-align:middle; margin-left:5px; }
  .pip { width:10px; height:10px; border-radius:50%; background:var(--ink); } .pip.used { background:var(--line); }
  .pair { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  .slot { border:1px dashed var(--line); border-radius:12px; padding:7px; text-align:center; min-height:62px; }
  .slot small { display:block; color:var(--soft); font-size:11px; text-transform:uppercase; letter-spacing:1px; }
  .slot .w { font-size:15px; font-weight:700; letter-spacing:2px; margin-top:2px; }
  .slot .w.none { color:var(--line); }
  .slot.jinxed { background:var(--jinx); border-color:var(--jinx); color:#fff; } .slot.jinxed small { color:#e6d9fb; }
  .slot .c { font-size:11.5px; color:var(--soft); } .slot .n { font-size:32px; font-weight:800; line-height:1.1; }
  .c1 { color:var(--soft); } .c2 { color:#b07a00; } .c3 { color:var(--ok); }
  .slot.set { border-style:solid; border-color:var(--ink); }
  h3 { margin:2px 0 0; font-size:12px; color:var(--soft); text-transform:uppercase; letter-spacing:1px; font-weight:600; }
  .clue { background:#faf6f1; border-radius:8px; padding:8px 10px; font-weight:600; }
  .phone.a .clue { background:#f2f6fd; }
  .cluebox { border:1.5px solid var(--ink); border-radius:14px; padding:10px; display:flex; flex-direction:column; gap:7px; }
  .keys { display:grid; grid-template-columns:repeat(9,1fr); gap:4px; }
  .key { padding:7px 0; font-size:14px; font-weight:700; background:#fff; color:var(--ink); border:1.5px solid var(--ink); border-radius:8px; }
  .key:disabled { opacity:1; background:#d64545; border-color:#d64545; color:#fff; }
  .key.hit:disabled { background:var(--ok); border-color:var(--ok); color:#fff; text-decoration:none; font-weight:700; }
  .opt2 { font-size:14px; padding:9px 6px; border-color:var(--ink); } .opt2 small { display:block; font-weight:400; color:var(--soft); font-size:11.5px; pointer-events:none; }
  .opt2.on { background:#f5c542; border-color:#e0ad1f; color:var(--ink); } .opt2.on small { color:#6b5310; }
  .msg { min-height:46px; border-radius:10px; background:#f7f8fb; padding:6px 10px; font-size:13.5px; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; gap:3px; }
  .msg.ok { background:var(--ok); color:#fff; } .msg.no { background:#d64545; color:#fff; }
  .msg .hint { background:none; padding:0; text-align:center; }
  .cluebar { height:58px; width:100%; flex:none; border:2px solid var(--line); border-radius:12px; background:#fff; color:var(--ink); display:flex; flex-direction:column;
    align-items:center; justify-content:center; font:inherit; font-weight:600; font-size:14px; padding:4px 10px; text-align:center; }
  .cluebar small { font-weight:400; color:var(--soft); font-size:11.5px; pointer-events:none; } .cluebar.got { background:#fbf3df; border-color:#f0dca6; }
  .feed { height:126px; display:flex; flex-direction:column; gap:4px; overflow-y:auto; scrollbar-width:thin; }
  .feed > :first-child { margin-top:auto; } .bub { flex:none; }
  .bub { max-width:82%; padding:5px 11px; border-radius:13px; font-size:13px; background:#eef1f8; align-self:flex-start; }
  .bub.me { align-self:flex-end; background:#f1f2f5; } .bub.ok { background:var(--ok); color:#fff; } .bub.no { background:#d64545; color:#fff; }
  .clue { text-align:center; }
  .cap { font-size:12px; color:var(--soft); }
  .hint { background:#f7f8fb; border-radius:8px; padding:6px 10px; font-size:13px; }
  .foot { margin-top:auto; }
  .entry { display:flex; flex-direction:column; gap:7px; }
  .line { display:flex; gap:6px; }
  input { font:inherit; font-size:18px; letter-spacing:4px; text-transform:uppercase; text-align:center;
          padding:8px; border:2px solid var(--line); border-radius:12px; outline:none; min-width:0; }
  input:focus { border-color:var(--ink); }
  input.one { width:84px; flex:none; } input.one::placeholder { font-size:13px; letter-spacing:0; text-transform:none; } input.word { flex:1; }
  button { font:inherit; font-weight:600; padding:10px 8px; border-radius:12px; border:0; cursor:pointer; background:var(--ink); color:#fff; flex:1; }
  button.alt { background:#fff; color:var(--ink); border:2px solid var(--line); font-size:13px; }
  button.jinx { background:var(--jinx); font-size:17px; padding:13px 6px; }
  button.conf { font-size:12.5px; padding:9px 4px; }
  button:disabled { opacity:.35; cursor:default; }
  .phone { position:relative; overflow:hidden; }
  .modal { position:absolute; inset:0; background:rgba(29,36,51,.6); display:flex; align-items:center; justify-content:center; padding:18px; }
  .sheet { background:#fff; border-radius:20px; padding:18px; width:100%; display:flex; flex-direction:column; gap:10px; text-align:center; }
  .sheet h2 { margin:0; font-size:18px; } .sheet p { margin:0; color:var(--soft); }
  .choice { background:#fff; color:var(--ink); border:2px solid var(--line); display:flex; flex-direction:column; align-items:center; gap:0; padding:10px; flex:none; }
  .choice * { pointer-events:none; } .choice small { color:var(--soft); font-weight:400; } .choice b { font-size:18px; letter-spacing:3px; } .choice span { font-size:30px; font-weight:800; line-height:1.1; }
  .choice.frow { flex-direction:row; justify-content:space-between; align-items:center; padding:11px 12px; } .choice.frow b { letter-spacing:0; font-size:16px; }
  .back { font-size:13px; color:var(--soft); text-decoration:underline; cursor:pointer; align-self:center; }
  .same { align-self:center; font-size:13px; font-weight:700; border-radius:999px; padding:5px 12px; }
  .same.yes { background:#dff5e8; color:#1f6e44; } .same.no { background:#fff4d6; color:#7a5a00; }
  .choice.take.give { background:var(--jinx); color:#fff; } .choice.take.give small { color:#e6d9fb; }
  .sheet .pair .choice b { font-size:14px; letter-spacing:1px; }
  .choice.take { border-color:var(--jinx); }
  .choice.on { border-color:var(--jinx); background:#f3ecfd; }
  .card { border-radius:16px; padding:14px; text-align:center; background:#dff5e8; }
  .card.lose { background:#f3e3e0; }
  .card .big { font-size:26px; font-weight:800; }
  .card p { margin:4px 0; font-size:13px; }
  .trail { font-size:12px; color:var(--soft); margin:0; }
  .total { text-align:center; padding:4px 0; } .total small { display:block; color:var(--soft); font-size:11px; text-transform:uppercase; letter-spacing:1px; } .total b { font-size:30px; }
  .wrow { border:1.5px solid var(--line); border-radius:14px; padding:11px 12px; display:flex; flex-direction:column; gap:7px; }
  .wrow.live { border-color:var(--ink); cursor:pointer; }
  .wrow .top { display:flex; justify-content:space-between; align-items:baseline; pointer-events:none; }
  .wrow .top b { font-size:15px; } .wrow .top span { font-size:12.5px; color:var(--soft); text-align:right; }
  .wrow.live .top span { color:var(--ink); font-weight:600; }
  .wrow.done { background:#f7f8fb; cursor:pointer; }
  .wrow { flex-direction:row; align-items:center; gap:14px; min-height:64px; }
  .wrow .num { font-size:36px; font-weight:800; width:28px; text-align:center; line-height:1; pointer-events:none; }
  .wrow .body { flex:1; display:flex; flex-direction:column; gap:7px; } .wrow .main { font-size:14.5px; pointer-events:none; }
  .wrow.done .main, .wrow.live .main { font-weight:600; }
  .wrow.now .main { text-align:center; }
  .nm { font-size:16px; } .nm.a { color:var(--a); } .nm.b { color:var(--b); }
  .wrow.now { border-color:var(--ink); }
  .wrow.done.good { background:#dff5e8; border-color:#b9e2c9; } .wrow.done.bad { background:#f6dedb; border-color:#e8c1bb; }
  .wrow.done .top span { color:var(--ink); font-weight:600; }
  .wrow.locked { opacity:.4; background:#f7f8fb; }
  .lbs { margin-top:auto; align-items:start; }
  .lb { border:1.5px solid var(--line); border-radius:14px; padding:9px 10px; display:flex; flex-direction:column; gap:3px; }
  .lb div { display:flex; justify-content:space-between; font-size:13px; padding:2px 5px; border-radius:6px; }
  .lb div.me { background:#f5c542; font-weight:700; }
  .chips { display:flex; gap:6px; }
  .chips button { padding:7px 4px; font-size:12.5px; background:#fff; color:var(--ink); border:1.5px solid var(--line); }
  .log { max-width:722px; margin:0 auto 12px; background:var(--card); border:1px solid var(--line); border-radius:16px; padding:12px 16px; }
  .log div { font-size:13px; padding:3px 0; border-bottom:1px solid #f2f3f7; } .log div:last-child { border:0; }
  .log i { font-style:normal; color:var(--soft); margin-right:6px; }
  #nextday { display:block; margin:0 auto 14px; width:200px; background:#fff; color:var(--ink); border:2px solid var(--line); }
  footer { text-align:center; color:var(--soft); font-size:12px; padding:0 0 26px; }

/* ---- app-only additions (the prototype shows two phones on a desk; the app is one phone, full screen) ---- */
body.app { background:var(--card); }
body.app .phone { width:100%; max-width:460px; margin:0 auto; min-height:100dvh; border:0; border-radius:0; box-shadow:none;
  padding:calc(12px + env(safe-area-inset-top)) 16px calc(14px + env(safe-area-inset-bottom)); }
body.app .board { margin-left:-16px; margin-right:-16px; }
.center { margin:auto; text-align:center; }
.who .logo span { width:26px; height:32px; font-size:15px; color:#fff; }
.foot2 { text-align:center; font-size:13px; color:var(--soft); padding-top:4px; } .foot2 button { width:100%; }
input.text { width:100%; font-size:16px; letter-spacing:0; text-transform:none; }
.board.mini { margin:0; background:none; border:0; padding:6px 0; }
.board.mini .tile { width:30px; height:38px; font-size:17px; }
button.jinx.two small { display:block; font-weight:400; font-size:11.5px; color:#e6d9fb; pointer-events:none; }
.toast { position:fixed; left:50%; bottom:22px; transform:translateX(-50%); background:var(--ink); color:#fff; padding:9px 16px; border-radius:999px; font-size:14px; z-index:20; }
.slot .w { letter-spacing:3px; }
.wrow .tw { font-size:20px; font-weight:800; letter-spacing:4px; text-align:center; pointer-events:none; }
.wrow.locked .tw, .wrow.now .tw { color:var(--no); } .wrow .main { text-align:center; }
.wrow .sc { font-size:34px; font-weight:800; line-height:1; padding-left:6px; pointer-events:none; }
.wrow.one { justify-content:space-between; gap:10px; } .wrow.one .tw { font-size:19px; letter-spacing:3px; text-align:left; }
.wrow.one .wn { flex:1; font-size:15px; font-weight:600; pointer-events:none; } .wrow.one .sc { font-size:26px; padding-left:0; }
.wrow.one .tw, .wrow.one .sc { font-size:22px; font-weight:800; letter-spacing:2px; line-height:1.1; } .wrow.one .wn { color:var(--a); }

/* ---- the app's one font: Nunito (SIL Open Font License, public/fonts/OFL.txt). Kevin's pick from five, 2026-12-07 ---- */
@font-face { font-family:"Jinx Sans"; src:url("/fonts/Nunito.ttf") format("truetype"); font-weight:200 1000; font-display:swap; }
body, button, input { font-family:"Jinx Sans", system-ui, Segoe UI, Roboto, sans-serif; }
.brand { display:inline-block; font-family:inherit; font-size:26px; line-height:1; color:#fff; background:var(--jinx); border-radius:13px; padding:8px 16px 9px; }
.center .brand { font-size:44px; border-radius:22px; padding:18px 30px 20px; }
button.jinx, .sheet h2, .brand { font-family:inherit; font-weight:900; letter-spacing:0; }
.sheet h2 { color:var(--jinx); font-size:26px; }

.top { text-align:center; padding:2px 0 4px; }
.wrow.one .wn { text-align:right; font-size:22px; font-weight:800; line-height:1.1; }
.sheet .keys .key:disabled { background:#fff; color:#c3c8d2; border-color:var(--line); }
.key.del { font-size:12px; }
.sheet p.hint2 { font-size:16px; font-weight:600; color:var(--ink); }
.key.del { display:grid; place-items:center; padding:0; } .key.del svg { pointer-events:none; }
.hint3 { margin:0; text-align:center; font-size:13px; color:var(--soft); }

/* ---- the letter-cost caption, and the two animations ---- */
.cap { text-align:center; font-size:15px; font-weight:700; color:var(--ink); }
@keyframes jinx-pop { 0% { transform:scale(.2) rotate(-12deg); opacity:0; } 60% { transform:scale(1.25) rotate(4deg); opacity:1; } 100% { transform:scale(1) rotate(0); } }
.tile.pop { animation:jinx-pop .5s cubic-bezier(.2,.9,.3,1.3); }
@keyframes jinx-drop { 0% { color:#d64545; transform:scale(1.4); } 70% { color:#d64545; } 100% { transform:scale(1); } }
.slot .n { position:relative; display:inline-block; } .slot .n.drop { animation:jinx-drop .7s ease-out; }
@keyframes jinx-rise { 0% { opacity:1; transform:translateY(4px); } 100% { opacity:0; transform:translateY(-26px); } }
.delta { position:absolute; left:100%; top:0; margin-left:6px; font-style:normal; font-size:18px; font-weight:800; color:#d64545; animation:jinx-rise 1.1s ease-out forwards; pointer-events:none; }
@media (prefers-reduced-motion: reduce) { .tile.pop, .slot .n.drop, .delta { animation:none; } .delta { display:none; } }

/* ---- the result modal, and the finished game left behind it for review ---- */
.rbig { font-size:54px; font-weight:800; line-height:1; } .rbig.ok { color:var(--ok); } .rbig.no { color:#d64545; }
.choice.res { cursor:default; border-width:2px; gap:2px; } .choice.res.ok { background:#dff5e8; border-color:#b9e2c9; } .choice.res.no { background:#f6dedb; border-color:#e8c1bb; }
.choice.res.on { border-color:var(--ink); } .choice.res b { font-size:14px; letter-spacing:1px; } .choice.res .mk { font-size:13px; font-weight:700; }
.choice.res.ok .mk { color:#1f6e44; } .choice.res.no .mk { color:#a32f2f; }
.slot.ok { background:#dff5e8; border-color:#b9e2c9; } .slot.no { background:#f6dedb; border-color:#e8c1bb; }
button.dark { background:var(--ink); color:#fff; }
.choice.res { border-radius:12px; padding:10px 6px; }
.sc2 { display:flex; gap:8px; justify-content:center; font-size:24px; font-weight:800; line-height:1.1; } .sc2 i { font-style:normal; }
.sc2 .g { color:#1f6e44; } .sc2 .r { color:#a32f2f; } .sc2 .p { color:var(--jinx); }
.hint3 { font-size:min(12.5px, 3vw); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sheet.help { text-align:left; } .sheet.help p { color:var(--ink); font-size:14.5px; } .sheet.help p.hint2 { text-align:center; }

/* ---- lobby: colour, a logo that moves, and the ticker ---- */
body.app .phone.lobby { background:linear-gradient(180deg, #ece2ff 0, #f7f2ff 150px, #fff 420px); }
.phone.lobby .brand { font-size:34px; padding:10px 22px 12px; border-radius:18px; box-shadow:0 6px 0 #5a2aa6, 0 14px 24px rgba(122,63,208,.28); animation:jinx-wob 3.2s ease-in-out infinite; transform-origin:50% 60%; }
.bang { display:inline-block; animation:jinx-bang 3.2s ease-in-out infinite; transform-origin:50% 90%; }
@keyframes jinx-wob { 0%, 100% { transform:rotate(-2.5deg); } 50% { transform:rotate(2.5deg) translateY(-2px); } }
@keyframes jinx-bang { 0%, 70%, 100% { transform:translateY(0) scale(1); } 78% { transform:translateY(-9px) scale(1.25) rotate(8deg); } 86% { transform:translateY(0) scale(.95); } }
.phone.lobby .top { padding:10px 0 12px; }
.phone.lobby .total { border-radius:16px; padding:10px 6px 12px; } .total.today { background:#fff0c2; } .total.all { background:#e7dafd; }
.total.today b { color:#8a5a00; } .total.all b { color:#5a2aa6; } .phone.lobby .total small { color:var(--ink); opacity:.65; }
.phone.lobby .wrow { background:#fff; } .phone.lobby .wrow.now { border-color:var(--jinx); border-width:2px; box-shadow:0 4px 14px rgba(122,63,208,.14); }
.phone.lobby .wrow.now .chips button { border-color:#d9c8f7; color:#5a2aa6; font-weight:700; }
.phone.lobby .wrow.done.good { background:#dff5e8; } .phone.lobby .wrow.done.bad { background:#f6dedb; } .phone.lobby .wrow.locked { background:#faf8fe; border-style:dashed; }
.phone.lobby .lb { background:#fff; } .phone.lobby .lb h3 { color:#5a2aa6; }
.ticker { overflow:hidden; margin:2px -16px 0; padding:6px 0; mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image:linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker .run { display:inline-flex; gap:8px; white-space:nowrap; animation:jinx-tick 30s linear infinite; padding-left:8px; }
@keyframes jinx-tick { from { transform:translateX(0); } to { transform:translateX(-50%); } }
.tk { font-size:13px; font-weight:700; padding:6px 12px; border-radius:999px; background:#f1f2f5; color:var(--ink); } .tk.jx { background:var(--jinx); color:#fff; }
@media (prefers-reduced-motion: reduce) { .phone.lobby .brand, .bang, .ticker .run { animation:none; } }
.wrow .l2 { display:flex; gap:10px; justify-content:center; align-items:baseline; font-size:15px; font-weight:600; } .wrow .l2 i { font-style:normal; font-size:22px; font-weight:800; }
.wrow .l2 .g { color:#1f6e44; } .wrow .l2 .r { color:#a32f2f; } .wrow .l2 .p { color:var(--jinx); } .wrow.done .tw { color:var(--ink); }

/* ---- ticker cards ---- */
.tkh { text-align:center; color:#5a2aa6; margin-top:6px; }
.tk { display:inline-grid; grid-template-columns:auto auto; column-gap:10px; row-gap:1px; align-items:baseline; padding:8px 12px; border-radius:14px; background:#fff; border:1.5px solid var(--line); font-weight:400; }
.tk b { font-size:14px; font-weight:800; } .tk small { font-size:11.5px; color:var(--soft); text-align:right; }
.tk .sc3 { grid-column:1 / -1; display:flex; gap:9px; align-items:baseline; font-size:18px; font-weight:800; }
.tk .sc3 i { font-style:normal; } .tk .sc3 .g { color:#1f6e44; } .tk .sc3 .r { color:#a32f2f; } .tk .sc3 em { font-style:normal; color:var(--jinx); }
.tk.jx { background:#f3ecfd; border-color:#d9c8f7; color:var(--ink); }
.ticker.still { mask-image:none; -webkit-mask-image:none; } .ticker.still .run { animation:none; display:flex; justify-content:center; padding:0 16px; }
.tk { display:inline-flex; gap:5px; align-items:baseline; font-size:14px; font-weight:600; padding:9px 14px; border-radius:999px; }
.tk i { font-style:normal; font-weight:800; font-size:15px; } .tk .g { color:#1f6e44; } .tk .r { color:#a32f2f; } .tk em { font-style:normal; font-weight:900; color:var(--jinx); }
.tk small { margin-left:6px; font-weight:400; }

/* ticker items as chat: time above, bubble below */
.tk { display:inline-flex; flex-direction:column; align-items:flex-start; gap:3px; padding:0; border:0; background:none; border-radius:0; font-size:13.5px; font-weight:600; }
.tk small { margin:0 0 0 12px; font-size:11px; font-weight:400; color:var(--soft); }
.tk .bb { display:inline-block; background:#eef1f8; border-radius:16px 16px 16px 4px; padding:8px 13px; }
.tk.jx { background:none; border:0; } .tk.jx .bb { background:#eadffb; }
.ticker .run { gap:10px; align-items:flex-end; }
.chat { display:flex; flex-direction:column; gap:9px; max-height:230px; overflow-y:auto; scrollbar-width:thin; padding:2px 0; }
.chat .tk { display:flex; white-space:normal; } .chat .tk .bb { display:block; line-height:1.35; }

/* ---- lobby header, and word tiles that draw the eye ---- */
.top3 { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; padding:10px 0 12px; }
.qm { justify-self:start; flex:none; width:38px; height:38px; padding:0; border-radius:50%; background:#fff; color:#5a2aa6; border:2px solid #d9c8f7; font-size:20px; font-weight:900; }
.top3 .me { justify-self:end; font-size:14px; font-weight:800; color:#5a2aa6; max-width:110px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.top3 .me a { text-decoration:underline; cursor:pointer; }
.sheet .help { text-align:left; } .sheet .help p { color:var(--ink); font-size:14.5px; margin:0 0 8px; }
.phone.lobby .wrow { min-height:92px; border-radius:18px; } .phone.lobby .wrow .tw { font-size:24px; letter-spacing:5px; }
/* the word to play now: solid purple, lifted, gently pulsing */
.phone.lobby .wrow.now { background:linear-gradient(135deg, #6a31c4, #9258ec); border:0; color:#fff; box-shadow:0 10px 26px rgba(122,63,208,.42); animation:jinx-glow 2.6s ease-in-out infinite; padding:16px 14px; }
@keyframes jinx-glow { 0%, 100% { box-shadow:0 10px 26px rgba(122,63,208,.38); transform:scale(1); } 50% { box-shadow:0 14px 36px rgba(122,63,208,.62); transform:scale(1.015); } }
.phone.lobby .wrow.now .tw { color:#fff; opacity:.85; } .phone.lobby .wrow.now .main { color:#fff; font-size:18px; font-weight:800; } .phone.lobby .wrow.now .nm { color:#ffe08a; font-size:19px; }
.phone.lobby .wrow.now .chips button { background:#fff; color:#5a2aa6; border:0; font-size:15px; font-weight:800; padding:12px 4px; box-shadow:0 3px 0 rgba(0,0,0,.18); }
/* a word in play: gold, also lifted */
.phone.lobby .wrow.live { background:#ffe9a8; border:2px solid #f0bf3a; box-shadow:0 8px 20px rgba(240,191,58,.35); } .phone.lobby .wrow.live .tw { color:#8a5a00; } .phone.lobby .wrow.live .main { font-size:17px; font-weight:800; color:#5c3c00; text-align:center; }
.phone.lobby .wrow.locked { opacity:.55; box-shadow:none; }
@media (prefers-reduced-motion: reduce) { .phone.lobby .wrow.now { animation:none; } }
button.keep { flex:none; width:100%; background:#fff; color:#5a2aa6; border:2px dashed var(--jinx); font-size:15px; font-weight:800; padding:12px; }
.phone.lobby .wrow.now .chips button.off { opacity:.45; box-shadow:none; }
.why { margin:0; padding:0; list-style:none; text-align:left; display:flex; flex-direction:column; gap:7px; } .why li { font-size:14.5px; color:var(--ink); padding-left:16px; position:relative; }
.why li::before { content:""; position:absolute; left:0; top:8px; width:7px; height:7px; border-radius:50%; background:var(--jinx); }
.phone.lobby .wrow.now .chips button.blk { flex:none; padding:12px 12px; background:transparent; color:#fff; box-shadow:none; border:1.5px solid rgba(255,255,255,.55); font-size:13px; }

/* ---- the word row: a clearly defined band and tiles (it read as too pale on a phone) ---- */
body.app .board { background:#dfe3ee; border-top:2px solid #bcc3d4; border-bottom:2px solid #bcc3d4; padding:16px 0 18px; }
.tile { background:#fff; border:2px solid #9aa3b8; border-bottom-width:4px; box-shadow:0 2px 0 rgba(29,36,51,.10); }
.tile.on { border:2px solid #1f6e44; border-bottom-width:4px; }
.tile.pen { border:2px solid var(--ink); border-bottom-width:4px; }
.tile.next { border:2px solid var(--jinx); border-bottom-width:4px; box-shadow:0 0 0 3px rgba(122,63,208,.22); }
body.app .board.mini { background:none; border:0; padding:6px 0; } .board.mini .tile { box-shadow:none; }

/* ---- lobby, top right: the username (or Sign in) as a gold badge, large enough to read as a control ---- */
.top3 .me { max-width:150px; overflow:visible; }
.top3 .me .badge { display:inline-block; width:auto; max-width:150px; margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; vertical-align:middle;
  background:#f5c542; color:var(--ink); border:2px solid #d9a514; border-bottom-width:4px; border-radius:999px; padding:7px 16px 6px; font:inherit; font-size:18px; font-weight:900; line-height:1.2; }
.top3 .me button.badge { cursor:pointer; }

/* ---- five-row leaderboards with empty rows, and the profile sheet behind the username badge ---- */
.lb div.none { color:var(--soft); } .lb h3 { display:flex; justify-content:space-between; align-items:baseline; } .lb h3 small { font-size:12px; font-weight:800; color:var(--soft); }
.sheet .sum { margin:4px 0 12px; } .sheet .sum > div { border:1.5px solid var(--line); border-radius:14px; padding:10px; display:flex; flex-direction:column; align-items:center; gap:2px; }
.sheet .sum span { font-size:12px; color:var(--soft); } .sheet .sum b { font-size:30px; font-weight:900; color:#1f6e44; line-height:1.1; } .sheet .sum small { font-size:12px; color:var(--soft); }
.sheet h3 { font-size:13px; color:var(--soft); margin:0 0 6px; text-align:left; }
.sheet .hist { display:flex; flex-direction:column; gap:5px; max-height:250px; overflow-y:auto; margin-bottom:12px; }
.sheet .hrow { display:flex; align-items:baseline; gap:8px; border:1.5px solid var(--line); border-radius:10px; padding:7px 10px; font-size:14px; }
.sheet .hrow b { letter-spacing:2px; font-weight:900; } .sheet .hrow span { color:var(--soft); font-size:12.5px; margin-right:auto; }
.sheet .hrow i { font-style:normal; font-weight:900; } .sheet .hrow i.g { color:#1f6e44; } .sheet .hrow i.r { color:#d64545; } .sheet .hrow i.p { color:var(--jinx); }
