  /* IBM Plex Mono digits with the dot removed from the zero (same font, one glyph edited) */
  @font-face{ font-family:'IBM Plex Mono'; font-weight:500; font-style:normal; unicode-range:U+0030-0039; src:url(data:font/woff;base64,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) format('woff'); }
  @font-face{ font-family:'IBM Plex Mono'; font-weight:600; font-style:normal; unicode-range:U+0030-0039; src:url(data:font/woff;base64,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) format('woff'); }
  :root{
    /* Cryptic 5s: darker, more modern take on the main site palette */
    --bg:#0C1A12;
    --surface:#161C18;
    --surface-2:#1D2520;
    --line:#2B352F;
    --line-strong:#3C4942;
    --ink:#E8ECE9;
    --muted:#8E9A93;
    --accent:#3FA66B;
    --accent-deep:#14301F;
    --soft-green:#7CCB98;
    --purple:#A07BFF;
    --purple-deep:#6B21C4;
    --good:#5FD08A;
    --bad:#EE6B61;
  }
  html{ scroll-behavior:smooth; color-scheme:dark; }
  *{ box-sizing:border-box; }
  body{
    margin:0; background:var(--bg); color:var(--ink);
    font-family:'Inter', sans-serif; line-height:1.6;
    -webkit-font-smoothing:antialiased; text-align:center;
  }
  button{ font-family:inherit; }
  .mono{ font-family:'IBM Plex Mono', monospace; }
  .sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }

  /* ---------- Header + navigation (same structure as the main site) ---------- */
  header{ border-bottom:1px solid var(--line); background:var(--bg); }
  .header-inner{ max-width:640px; margin:0 auto; padding:10px 24px 24px; display:flex; flex-direction:column; gap:16px; }
  .header-top-row{ display:flex; align-items:center; justify-content:space-between; width:100%; }
  .insta-link{ color:var(--muted); display:flex; align-items:center; }
  .insta-link:hover{ color:var(--purple); }
  .brand-grid{ display:grid; grid-template-columns:repeat(9, 26px); grid-template-rows:repeat(2, 26px); gap:3px; margin:0; }
  .brand-cell{ background:var(--bg); display:flex; align-items:center; justify-content:center; font-family:'IBM Plex Mono', monospace; font-weight:600; font-size:0.8rem; border-radius:4px; }
  .brand-cell.row-cryptic{ border:1px solid #A9B1AC; color:#B7BEB9; font-weight:700; }
  .brand-cell.row-football{ border:1px solid var(--soft-green); color:var(--muted); font-weight:500; }
  .tab-banner{ border-bottom:1px solid var(--line); background:var(--accent-deep); margin-top:-16px; }
  .tabs{ max-width:640px; margin:0 auto; padding:0 24px; display:flex; gap:12px; justify-content:flex-start; }
  .tab{ text-decoration:none; font-size:0.88rem; color:#C5D3CA; padding:14px 2px; border-bottom:2px solid transparent; font-weight:500; white-space:nowrap; }
  .tab:hover{ color:var(--purple); }
  .tab.active{ color:var(--good); border-bottom-color:var(--good); font-weight:700; }
  .tab-right{ margin-left:auto; }
  .tab{ padding:11px 2px; font-size:.86rem; }

  main{ max-width:640px; margin:0 auto; padding:22px 24px 80px; }

  /* ---------- Title + live score ---------- */
  .title-block{ margin-bottom:18px; }
  .title-block h1{ font-family:'Plus Jakarta Sans', sans-serif; font-weight:700; font-size:1.7rem; letter-spacing:-0.01em; margin:0; }
  .title-block h1 span{ color:var(--accent); }
  .title-block p{ margin:4px 0 0; color:var(--muted); font-size:0.9rem; }
  .scorebar{ display:flex; align-items:stretch; justify-content:center; gap:10px; margin:16px 0 22px; }
  .stat{ background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:8px 16px; min-width:104px; }
  .stat .label{ font-size:0.68rem; text-transform:uppercase; letter-spacing:0.08em; color:var(--muted); font-weight:600; }
  .stat .value{ font-family:'IBM Plex Mono', monospace; font-weight:600; font-size:1.35rem; line-height:1.3; }
  .stat .value small{ font-size:0.75rem; color:var(--muted); font-weight:500; }
  #score-value.pop{ animation:pop .35s ease; }
  @keyframes pop{ 40%{ transform:scale(1.12); color:var(--purple);} }

  /* ---------- Clue cards ---------- */
  .clues{ display:flex; flex-direction:column; gap:14px; }
  .card{ background:var(--accent-deep); border:1px solid var(--line); border-radius:14px; padding:16px 14px 14px; position:relative; transition:border-color .2s, background .2s; }
  .card.solved{ border-color:var(--accent); background:#1B4029; }
  .clue-pill{ display:inline-flex; align-items:center; gap:8px; padding:5px 11px; border:1px solid var(--accent); border-radius:6px; font-weight:600; font-size:0.84rem; user-select:none; background:var(--bg); }
  .pos-tag{ font-family:'IBM Plex Mono', monospace; font-size:0.7rem; font-weight:600; color:var(--purple); border:1px solid var(--purple); border-radius:4px; padding:0 6px; line-height:1.5; }
  .clue-text{ font-size:1.12rem; font-weight:500; margin:12px 4px 12px; line-height:1.4; letter-spacing:-0.005em; }
  .clue-text .enum{ color:var(--muted); font-weight:400; }
  .grid{ display:flex; gap:6px; justify-content:center; flex-wrap:wrap; margin-bottom:12px; }
  .sq{
    width:42px; height:46px; background:var(--bg); border:1.5px solid var(--line-strong); border-radius:6px;
    text-align:center; font-family:'IBM Plex Mono', monospace; font-size:1.35rem; font-weight:600; color:var(--ink);
    text-transform:uppercase; padding:0; outline:none; transition:border-color .15s, background .15s;
  }
  .sq:focus{ border-color:#A8B0AB; box-shadow:0 0 0 3px rgba(168,176,171,.22); }
  .sq.revealed{ color:#C4CBC7; border-color:#8A948E; background:#2A322E; -webkit-text-fill-color:#C4CBC7; }
  .sq.prefilled{ color:var(--muted); background:var(--surface-2); border-color:var(--line); opacity:1; -webkit-text-fill-color:var(--muted); }
  .sq.correct{ background:var(--accent); border-color:var(--accent); color:#06150C; }
  .grid.shake{ animation:shake .35s; }
  @keyframes shake{ 20%,60%{ transform:translateX(-5px);} 40%,80%{ transform:translateX(5px);} }
  .actions{ display:flex; gap:8px; justify-content:center; flex-wrap:wrap; }
  .btn{
    background:transparent; border:1px solid var(--line-strong); color:var(--ink); border-radius:8px;
    padding:7px 13px; font-size:0.82rem; font-weight:500; cursor:pointer; display:inline-flex; align-items:center; gap:6px;
    transition:background .15s, border-color .15s, color .15s, opacity .15s;
  }
  .btn .cost{ font-family:'IBM Plex Mono', monospace; font-size:0.72rem; color:var(--bad); font-weight:600; }
  .btn-reveal{ border-color:var(--purple-deep); color:var(--purple); }
  .btn-reveal:hover:not(:disabled){ background:rgba(160,123,255,.12); border-color:var(--purple); }
  .btn-check{ border-color:var(--accent); color:var(--soft-green); font-weight:600; }
  .btn-check:hover:not(:disabled){ background:rgba(63,166,107,.15); }
  .btn:disabled{ opacity:.35; cursor:default; }
  .msg{ min-height:1.3em; margin-top:8px; font-size:0.82rem; color:var(--muted); }
  .msg.bad{ color:var(--bad); }
  .msg.good{ color:var(--good); font-weight:600; }

  /* ---------- Pitch ---------- */
  .section-head{ margin:34px 0 12px; }
  .section-head h2{ font-family:'Plus Jakarta Sans', sans-serif; font-size:1.05rem; margin:0; font-weight:700; letter-spacing:0.01em; }
  .section-head p{ margin:2px 0 0; font-size:0.82rem; color:var(--muted); }
  .pitch{
    position:relative; width:100%; max-width:400px; margin:0 auto; aspect-ratio:100/95; border-radius:14px; overflow:hidden;
    border:1px solid var(--line-strong);
    background:#222B26;
    box-shadow:0 10px 30px rgba(0,0,0,.45), inset 0 0 40px rgba(0,0,0,.35);
  }
  .pitch svg.lines{ position:absolute; inset:0; width:100%; height:100%; }
  .pitch svg.lines *{ fill:none; stroke:rgba(124,203,152,.34); stroke-width:.45; }
  .pitch svg.lines .spot{ fill:none; stroke:rgba(124,203,152,.34); stroke-width:.45; }
  .player{ position:absolute; transform:translate(-50%,-50%); width:76px; display:flex; flex-direction:column; align-items:center; gap:3px; transition:left .4s ease, top .4s ease; }
  .disc{ width:46px; height:46px; border-radius:50%; background:#2A332E; border:2px solid #56635B; display:flex; align-items:center; justify-content:center; position:relative; transition:all .5s ease; filter:blur(5px); }
  .disc svg{ width:26px; height:26px; fill:#7C8A82; transition:fill .4s; }
  .pname{ font-family:'IBM Plex Mono', monospace; font-size:.66rem; font-weight:600; letter-spacing:.03em; color:#D6DDD8; background:rgba(8,12,10,.55); padding:1px 6px; border-radius:4px; filter:blur(4px); transition:filter .5s; white-space:nowrap; }
  .player.revealed .disc, .player.revealed .pname{ filter:none; }
  .player.revealed .disc{ background:var(--accent); border-color:#B9F0CE; box-shadow:0 0 0 4px rgba(63,166,107,.25), 0 6px 14px rgba(0,0,0,.4); }
  .player.revealed .disc svg{ fill:#06150C; }
  .ptag{ position:absolute; top:-9px; right:-14px; font-family:'IBM Plex Mono', monospace; font-size:.6rem; font-weight:700; background:var(--purple-deep); color:#fff; border-radius:9px; padding:0 6px; line-height:1.55; display:none; filter:none; }
  .pnum{ position:absolute; top:-9px; left:-12px; font-family:'IBM Plex Mono', monospace; font-size:.66rem; font-weight:700; background:#0E1210; color:var(--purple); border:1px solid var(--purple); border-radius:50%; width:19px; height:19px; display:none; align-items:center; justify-content:center; }
  .player.pos-shown .ptag, .player.revealed .ptag{ display:block; }
  .player.pos-shown .pnum{ display:flex; }
  .player.pos-shown .disc{ filter:none; border-color:var(--purple); box-shadow:0 0 0 4px rgba(160,123,255,.28); }
  .player.pulse .disc{ animation:ring 1.2s ease 2; }
  @keyframes ring{ 50%{ box-shadow:0 0 0 12px rgba(160,123,255,0);} }
  /* tags sit on the disc, so keep them un-blurred */
  .disc .ptag, .disc .pnum{ filter:none; }

  /* ---------- Team + season ---------- */
  .guess-row{ display:flex; gap:12px; justify-content:center; margin-top:26px; flex-wrap:wrap; }
  .field{ flex:1 1 220px; max-width:300px; text-align:left; }
  .field label{ display:flex; justify-content:space-between; font-size:.7rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); font-weight:600; margin:0 2px 5px; }
  .field label span{ font-family:'IBM Plex Mono', monospace; text-transform:none; letter-spacing:0; }
  .field input, .field select{
    width:100%; background:var(--surface); color:var(--ink); border:1.5px solid var(--line-strong); border-radius:10px;
    padding:11px 12px; font-family:'Inter', sans-serif; font-size:.95rem; outline:none; appearance:none; -webkit-appearance:none;
  }
  .field select{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%238E9A93' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; padding-right:34px; }
  .field input:focus, .field select:focus{ border-color:var(--purple); box-shadow:0 0 0 3px rgba(160,123,255,.18); }
  .field input:disabled, .field select:disabled{ opacity:.55; }
  .complete-wrap{ margin-top:22px; }
  .btn-complete{
    width:100%; max-width:612px; padding:14px; font-size:1rem; font-weight:700; letter-spacing:.02em; border-radius:12px;
    background:linear-gradient(135deg, var(--purple-deep), #4A1B93); color:#fff; border:1px solid #8A5BE8; cursor:pointer; transition:filter .15s, opacity .15s;
  }
  .btn-complete:hover:not(:disabled){ filter:brightness(1.15); }
  .btn-complete:disabled{ opacity:.35; cursor:default; }
  .complete-note{ min-height:1.4em; margin-top:8px; font-size:.82rem; color:var(--muted); }
  .complete-note.warn{ color:#E8B96A; }

  /* ---------- Result pop-up ---------- */
  .overlay{ position:fixed; inset:0; background:rgba(4,7,5,.78); backdrop-filter:blur(3px); display:none; align-items:flex-start; justify-content:center; padding:24px 16px; overflow-y:auto; z-index:50; }
  .overlay.show{ display:flex; }
  .modal{ background:var(--surface); border:1px solid var(--line-strong); border-radius:18px; width:100%; max-width:430px; margin:auto; padding:26px 22px 22px; box-shadow:0 24px 60px rgba(0,0,0,.6); animation:rise .35s ease; }
  @keyframes rise{ from{ transform:translateY(14px); opacity:0;} }
  .modal .kicker{ font-size:.7rem; text-transform:uppercase; letter-spacing:.14em; color:var(--accent); font-weight:700; }
  .modal h3{ font-family:'Plus Jakarta Sans', sans-serif; font-size:1.25rem; margin:2px 0 4px; }
  .big-score{ font-family:'IBM Plex Mono', monospace; font-weight:600; font-size:3.2rem; line-height:1.1; margin:6px 0 0; background:linear-gradient(135deg, #fff, var(--soft-green)); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
  .big-score small{ font-size:1.1rem; color:var(--muted); -webkit-text-fill-color:var(--muted); }
  .answer-line{ margin:10px 0 16px; font-size:.9rem; color:var(--muted); }
  .answer-line strong{ color:var(--ink); }
  .breakdown{ width:100%; border-collapse:collapse; text-align:left; font-size:.86rem; }
  .breakdown td{ padding:7px 4px; border-bottom:1px solid var(--line); }
  .breakdown td.n{ color:var(--muted); width:46px; text-align:center; font-family:'IBM Plex Mono', monospace; font-size:.78rem; }
  .breakdown td.p{ text-align:right; font-family:'IBM Plex Mono', monospace; font-weight:600; width:70px; }
  .breakdown .pos{ color:var(--good); }
  .breakdown .neg{ color:var(--bad); }
  .breakdown .zero{ color:var(--muted); }
  .breakdown tr.total td{ border-bottom:none; border-top:1.5px solid var(--line-strong); padding-top:11px; font-weight:700; font-size:.95rem; }
  .breakdown tr.sub td{ padding-top:14px; font-size:.7rem; text-transform:uppercase; letter-spacing:.1em; color:var(--muted); border-bottom:none; font-weight:600; }
  .floor-note{ font-size:.75rem; color:var(--muted); margin-top:8px; }
  .modal-actions{ display:flex; gap:10px; margin-top:18px; }
  .modal-actions .btn{ flex:1; justify-content:center; padding:11px; font-size:.9rem; border-radius:10px; }
  .btn-solid{ background:var(--purple-deep); border-color:#8A5BE8; color:#fff; font-weight:600; }
  .btn-solid:hover{ filter:brightness(1.15); }

  /* ---------- Prototype-only tools ---------- */
  .dev{ margin-top:56px; border:1px dashed var(--line-strong); border-radius:12px; padding:14px; font-size:.8rem; color:var(--muted); }
  .dev strong{ color:var(--ink); letter-spacing:.08em; text-transform:uppercase; font-size:.7rem; }
  .dev-row{ display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin-top:10px; }
  .dev .btn{ font-size:.75rem; padding:5px 10px; }
  .dev .btn.on{ background:rgba(160,123,255,.15); border-color:var(--purple); color:var(--purple); }

  @media (max-width:420px){
    main{ padding-left:16px; padding-right:16px; }
    .sq{ width:38px; height:42px; font-size:1.2rem; }
    .stat{ min-width:92px; padding:8px 12px; }
  }

  /* ---------- COMPACT LAYOUT ---------- */
  main{ max-width:640px; padding:12px 16px 40px; }
  .title-block{ display:none; }
  .layout{ display:grid; grid-template-columns:minmax(0,1fr); gap:10px; }
  .side{ margin-top:6px; }
  .scorebar{ margin:0 0 8px; gap:8px; }
  .stat{ padding:3px 12px; min-width:0; display:flex; align-items:baseline; gap:8px; border-radius:8px; }
  .stat .label{ font-size:.6rem; }
  .stat .value{ font-size:.95rem; line-height:1.4; }
  .clues{ gap:6px; }
  .card{ padding:7px 9px 7px; border-radius:9px; text-align:left; }
  .lead{ display:inline-flex; align-items:center; gap:5px; margin-right:6px; vertical-align:middle; }
  .cnum{ font-family:'IBM Plex Mono',monospace; font-size:.66rem; font-weight:700; color:var(--purple); border:1px solid var(--purple-deep); border-radius:50%; width:16px; height:16px; display:inline-flex; align-items:center; justify-content:center; }
  .pos-tag{ font-size:.6rem; padding:0 4px; }
  .clue-text{ font-size:.86rem; margin:0 0 5px; line-height:1.3; }
  .row2{ display:flex; align-items:center; justify-content:space-between; gap:6px 10px; flex-wrap:wrap; }
  .grid{ gap:3px; margin:0; flex-wrap:nowrap; justify-content:flex-start; align-items:center; }
  .sq{ width:25px; height:29px; font-size:.95rem; border-width:1.3px; border-radius:4px; }
  .actions{ gap:4px; flex-wrap:nowrap; }
  .btn{ padding:3px 8px; font-size:.7rem; border-radius:6px; gap:4px; }
  .btn .cost{ font-size:.62rem; }
  .msg{ min-height:0; margin:0; font-size:.68rem; }
  .msg:empty{ display:none; }
  .msg:not(:empty){ margin-top:3px; }
  .section-head{ display:none; }
  .pitch{ max-width:300px; border-radius:10px; }
  .player{ width:76px; gap:4px; }
  .disc{ width:48px; height:48px; filter:blur(5px); }
  .disc svg{ width:28px; height:28px; }
  .pname{ font-size:.64rem; padding:0 5px; }
  .ptag{ font-size:.55rem; top:-8px; right:-14px; }
  .pnum{ width:17px; height:17px; font-size:.6rem; top:-8px; left:-10px; }
  .guess-row{ margin-top:8px; gap:6px; }
  .field{ flex:1 1 130px; max-width:none; }
  .field label{ font-size:.58rem; margin-bottom:2px; }
  .field input,.field select{ padding:6px 8px; font-size:.8rem; border-radius:7px; }
  .field select{ padding-right:26px; }
  .complete-wrap{ margin-top:8px; }
  .btn-complete{ padding:8px; font-size:.85rem; border-radius:9px; max-width:none; }
  .complete-note{ min-height:0; margin-top:4px; font-size:.7rem; }
  .dev{ margin-top:16px; padding:8px; font-size:.7rem; grid-column:1/-1; }
  .side{ text-align:center; }
  @media (min-width:760px){ .pitch{ max-width:400px; } .sq{ width:28px; height:32px; } }
  @media (max-width:759px){ .pitch{ max-width:340px; } .actions{ flex-wrap:wrap; } .grid{ flex-wrap:wrap; } }
  @media (max-width:420px){ .sq{ width:25px; height:29px; font-size:.95rem; } main{ padding-left:10px; padding-right:10px; } .stat{ min-width:0; padding:3px 10px; } }

  .row1{ display:flex; align-items:center; justify-content:space-between; gap:4px 10px; flex-wrap:wrap; margin-bottom:6px; }
  .row1 .clue-text{ margin:0; flex:1 1 auto; min-width:0; }
  .row1 .actions{ flex:0 0 auto; }
  .row2 .actions{ justify-content:flex-end; }
  .row2 .sq{ width:26px !important; height:26px !important; font-size:.95rem; line-height:1; }
  .row2 .btn-check{ height:26px; padding-top:0; padding-bottom:0; font-size:.76rem; padding-left:11px; padding-right:11px; }
  .card.fee, .card.fee.solved{ border:1.5px solid #8FE0AB; box-shadow:0 0 0 1px rgba(143,224,171,.12); }
  .card.fill, .card.fill.solved{ border:1.5px solid #9AA39E; box-shadow:0 0 0 1px rgba(154,163,158,.12); }
  .card[data-tag]::before{
    content:attr(data-tag); position:absolute; top:-1.5px; left:50%; transform:translateX(-50%);
    font-family:'IBM Plex Mono',monospace; font-size:.56rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
    line-height:1; padding:3px 10px 4px; border-radius:0 0 7px 7px; color:#0C1A12;
  }
  .card.fee::before{ background:#8FE0AB; }
  .card.fill::before{ background:#9AA39E; }
  .pos-tag{ display:inline-flex; align-items:center; justify-content:center; min-width:30px; height:19px; padding:0 8px; font-size:.68rem; font-weight:700; color:var(--purple); background:rgba(160,123,255,.1); border:1px solid var(--purple); border-radius:10px; line-height:1; }
  .pos-tag.known{ background:rgba(160,123,255,.22); }
  @media (max-width:500px){ .player{ width:64px; } .disc{ width:40px; height:40px; } .disc svg{ width:23px; height:23px; } .pname{ font-size:.58rem; } }
  @media (max-width:360px){ .player{ width:54px; } .disc{ width:33px; height:33px; } .disc svg{ width:19px; height:19px; } .pname{ font-size:.52rem; padding:0 3px; } }
  button[id^="rl-"].btn-reveal{ border-color:#8A948E; color:#B4BDB8; }
  button[id^="rl-"].btn-reveal:hover:not(:disabled){ background:rgba(180,189,184,.12); border-color:#B4BDB8; }
  .disc, .player .disc{ filter:none !important; }
  .pfee{ position:absolute; top:-8px; left:-20px; display:none; font-family:'IBM Plex Mono',monospace; font-size:.55rem; font-weight:700; line-height:1.55; padding:0 6px; border-radius:9px; background:#8FE0AB; color:#0C1A12; white-space:nowrap; }
  .player.revealed .pfee{ display:block; }
  /* clue boxes run almost edge to edge (4px from the screen/column edge) */
  .clues{ margin-left:-12px; margin-right:-12px; }
  @media (max-width:420px){ .clues{ margin-left:-6px; margin-right:-6px; } }
  .card{ padding-right:4px; }
  .modal{ position:relative; }
  .modal-close{ position:absolute; top:8px; right:10px; width:30px; height:30px; border-radius:50%; border:1px solid var(--line-strong); background:transparent; color:var(--muted); font-size:1.3rem; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; padding:0 0 2px; }
  .modal-close:hover{ color:var(--ink); border-color:var(--muted); }
  .modal-actions{ align-items:stretch; }
  .modal-actions .btn{ flex:1; }
  .share-box{ background:none; border:1px solid var(--line-strong); border-radius:10px; padding:0 16px; cursor:pointer; color:var(--muted); display:flex; align-items:center; justify-content:center; transition:color .15s, border-color .15s; }
  .share-box:hover{ color:#7FA8FF; border-color:#7FA8FF; }
  .share-box.copied{ color:var(--good); border-color:var(--good); }
  .share-box svg{ width:18px; height:18px; }
  .btn-plain{ background:none; border:1px solid var(--line-strong); color:var(--muted); font-weight:600; cursor:pointer; transition:color .15s, border-color .15s; }
  .btn-plain:hover{ color:var(--ink); border-color:var(--muted); }
  .field input::placeholder{ color:#7F8A84; opacity:1; }
  .field select:required:invalid{ color:#7F8A84; }
  .field select option{ color:var(--ink); background:#1D2520; }
  .btn-complete{ background:linear-gradient(135deg,#1F9650,#14653A); border-color:#3FA66B; }
  .field input:focus, .field select:focus{ border-color:var(--accent); box-shadow:0 0 0 3px rgba(63,166,107,.22); }
  /* larger pitch section */
  .pitch, .pitch{ max-width:460px !important; }
  .player{ width:88px; gap:5px; }
  .disc{ width:56px; height:56px; }
  .disc svg{ width:32px; height:32px; }
  .pname{ font-size:.72rem; padding:1px 6px; }
  .ptag, .pfee{ font-size:.63rem; top:-9px; }
  .ptag{ right:-16px; }
  .pfee{ left:-24px; }
  @media (max-width:759px){ .pitch{ max-width:380px !important; } }
  @media (max-width:500px){ .player{ width:72px; } .disc{ width:46px; height:46px; } .disc svg{ width:26px; height:26px; } .pname{ font-size:.62rem; } .ptag, .pfee{ font-size:.56rem; } }
  @media (max-width:360px){ .player{ width:56px; } .disc{ width:34px; height:34px; } .disc svg{ width:20px; height:20px; } .pname{ font-size:.55rem; padding:0 3px; } .ptag, .pfee{ font-size:.5rem; } }
  .ptag, .pfee{ top:-3px; }
  /* Cryptic Football favicon watermark on the pitch */
  .pitch-logo{ position:absolute; left:3.5%; top:3.5%; width:36px; height:36px; opacity:.5; pointer-events:none; z-index:1; filter:saturate(.7); }
  .pitch-logo svg{ width:100%; height:100%; display:block; }
  @media (max-width:500px){ .pitch-logo{ width:28px; height:28px; } }
  main{ padding-top:4px; }
  .scorebar{ margin:0 0 3px; }
  .stat{ padding-top:2px; padding-bottom:2px; }
  .layout{ gap:0 !important; }
  .side{ margin-top:16px; }
  @media (max-width:759px){ .side{ margin-top:0; } .pitch{ margin-top:16px; } }
  main{ padding-top:8px; }
  .scorebar{ margin-bottom:7px; }
  .side{ margin-top:8px; }
  @media (max-width:759px){ .side{ margin-top:0; } .pitch{ margin-top:8px; } }
  /* score row: stats left, visual-only cost key right */
  .scorebar{ justify-content:flex-start; align-items:center; flex-wrap:wrap; }
  .tips{ margin-left:auto; display:flex; gap:6px; flex-wrap:wrap; }
  .tip{ display:inline-flex; align-items:center; gap:5px; padding:3px 10px; border-radius:7px; font-size:.7rem; font-weight:600; border:1px solid; white-space:nowrap; cursor:default; user-select:none; pointer-events:none; }
  .tip b{ font-family:'IBM Plex Mono',monospace; color:var(--bad); font-weight:700; }
  .tip-pos{ color:var(--purple); border-color:var(--purple); background:rgba(160,123,255,.1); }
  .tip-letter{ color:#B4BDB8; border-color:#8A948E; }
  button.pos-tag{ font-family:'IBM Plex Mono',monospace; cursor:pointer; transition:background .15s; margin-right:6px; vertical-align:middle; }
  button.pos-tag:hover:not(:disabled){ background:rgba(160,123,255,.3); }
  button.pos-tag:disabled{ cursor:default; opacity:1; }
  @media (max-width:500px){
    .scorebar{ gap:5px; flex-wrap:nowrap; }
    .scorebar .stat{ padding:2px 8px; gap:5px; }
    .scorebar .stat .label{ font-size:.54rem; }
    .scorebar .stat .value{ font-size:.85rem; }
    .tips{ gap:4px; flex-wrap:nowrap; }
    .tip{ padding:2px 6px; font-size:.6rem; gap:3px; }
  }
  .scorebar .stat, .tip{ white-space:nowrap; }
  .scorebar .stat .value small{ font-size:.65rem; }
  .tips{ margin-right:-12px; }
  @media (max-width:420px){ .tips{ margin-right:-6px; } }
  .lead{ margin-right:0; }
  button.pos-tag{ margin-right:3px; }
  button.pos-tag{ margin-right:7px; }
  .scoring-link{ margin-left:auto; margin-right:-12px; background:none; border:0; padding:4px 2px; font-family:'Inter',sans-serif; font-size:.82rem; font-weight:500; color:var(--soft-green); text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
  .scoring-link:hover{ color:#fff; }
  @media (max-width:420px){ .scoring-link{ margin-right:-6px; } }
  .scoring-modal{ text-align:left; max-width:400px; }
  .scoring-modal h3{ font-family:'Plus Jakarta Sans',sans-serif; font-size:1.25rem; margin:2px 0 6px; }
  .scoring-intro{ margin:0 0 12px; font-size:.86rem; color:var(--muted); line-height:1.5; }
  .scoring-intro strong, .scoring-notes strong{ color:var(--ink); }
  .scoring-table .sm{ color:var(--muted); font-size:.74rem; }
  .scoring-table td{ font-size:.86rem; }
  .scoring-notes{ margin:14px 0 0; padding-left:18px; font-size:.8rem; color:var(--muted); line-height:1.5; }
  .scoring-notes li{ margin-bottom:4px; }
  .scoring-link{ margin-right:-4px; color:#A9B3AD; }
  .scoring-link:hover{ color:#E8ECE9; }
  @media (max-width:420px){ .scoring-link{ margin-right:0; } }
  .card.fee .clue-text{ color:#8FE0AB; font-weight:600; }
  .field input.locked-ok, .field select.locked-ok{ border-color:var(--accent); background:#14301F; opacity:1; }
  .complete-note.warn{ color:#F0B860; }
  .field input.wrong, .field select.wrong, .field input.wrong:focus, .field select.wrong:focus{ border-color:var(--bad); box-shadow:0 0 0 3px rgba(238,107,97,.22); }
  /* clues start hidden until "Show clues" is pressed */
  .scorelinks{ margin-left:auto; margin-right:-4px; display:flex; gap:12px; align-items:center; }
  .scorelinks .scoring-link{ margin:0; }
  @media (max-width:420px){ .scorelinks{ margin-right:0; gap:10px; } }
  .clues-wrap{ display:grid; grid-template-rows:1fr; margin-left:-12px; margin-right:-12px; transition:grid-template-rows .7s cubic-bezier(.2,.7,.2,1); }
  @media (max-width:420px){ .clues-wrap{ margin-left:-6px; margin-right:-6px; } }
  .clues-wrap .clues{ margin-left:0; margin-right:0; }
  .clues-inner{ min-height:0; overflow:visible; }
  body.clues-hidden .clues-wrap{ grid-template-rows:0fr; }
  body.clues-hidden .clues-inner{ overflow:hidden; }
  body.clues-rolling .clues-inner{ overflow:hidden; }
  body.clues-hidden .clues-wrap .card, body.clues-hidden .clues-wrap .card *{ visibility:hidden; }
  body.clues-rolling .card{ animation:rollin .55s cubic-bezier(.2,.7,.2,1) both; }
  body.clues-rolling .card:nth-child(1){ animation-delay:.05s; } body.clues-rolling .card:nth-child(2){ animation-delay:.14s; }
  body.clues-rolling .card:nth-child(3){ animation-delay:.23s; } body.clues-rolling .card:nth-child(4){ animation-delay:.32s; }
  body.clues-rolling .card:nth-child(5){ animation-delay:.41s; }
  @keyframes rollin{ from{ opacity:0; transform:translateY(-14px); } to{ opacity:1; transform:none; } }
  .show-clues-row{ display:none; text-align:center; margin:4px 0 2px; }
  body.clues-hidden .show-clues-row{ display:block; }
  .btn-show{ background:var(--accent-deep); color:#fff; border:1.5px solid var(--accent); border-radius:10px; padding:10px 26px; font-family:'Inter',sans-serif; font-size:.95rem; font-weight:600; cursor:pointer; transition:filter .15s, transform .15s; }
  .btn-show:hover{ filter:brightness(1.2); }
  .btn-show:active{ transform:translateY(1px); }
  .pitch-caption{ text-align:center; font-family:'IBM Plex Mono',monospace; font-size:.66rem; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); margin:0 0 6px; }
  /* rules pop-up */
  .intro-lead{ margin:2px 0 14px; font-size:.95rem; line-height:1.5; }
  .intro-lead strong{ color:var(--soft-green); }
  .intro-steps{ list-style:none; counter-reset:step; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
  .intro-steps li{ counter-increment:step; display:flex; gap:10px; align-items:flex-start; font-size:.84rem; line-height:1.5; color:#CBD3CE; }
  .intro-steps li::before{ content:counter(step); flex:none; width:22px; height:22px; border-radius:50%; border:1px solid var(--accent); color:var(--soft-green); font-family:'IBM Plex Mono',monospace; font-size:.72rem; font-weight:700; display:flex; align-items:center; justify-content:center; margin-top:1px; }
  .intro-steps strong{ color:var(--ink); }
  .mini-q{ display:inline-flex; align-items:center; justify-content:center; min-width:24px; height:17px; padding:0 6px; border:1px solid var(--purple); border-radius:9px; color:var(--purple); background:rgba(160,123,255,.1); font-family:'IBM Plex Mono',monospace; font-size:.66rem; }
  .t-fee{ color:#8FE0AB; } .t-fill{ color:#B4BDB8; }
  .intro-actions{ display:flex; flex-direction:column; align-items:center; gap:10px; margin-top:18px; }
  .intro-start{ width:100%; flex:none; padding:12px; font-size:.95rem; border-radius:10px; justify-content:center; }
  .intro-scoring{ background:none; border:0; color:#A9B3AD; font-family:'Inter',sans-serif; font-size:.8rem; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
  .intro-scoring:hover{ color:#fff; }
  /* redesigned rules pop-up */
  .intro-modal{ text-align:center; padding:30px 24px 22px; }
  .intro-title{ font-family:'Plus Jakarta Sans',sans-serif; font-weight:700; font-size:2rem; letter-spacing:-0.01em; margin:0; line-height:1.15; }
  .intro-title span{ color:var(--accent); }
  .intro-sub{ margin-top:8px; font-family:'IBM Plex Mono',monospace; font-size:.74rem; letter-spacing:.12em; text-transform:uppercase; color:var(--soft-green); }
  .intro-desc{ margin:16px 4px 0; font-size:.95rem; line-height:1.55; color:#D2D9D4; }
  .intro-transfer{ position:relative; margin:22px 0 0; padding:26px 16px 16px; border:1.5px solid #8FE0AB; border-radius:12px; background:var(--accent-deep); text-align:center; }
  .intro-sample{ position:absolute; top:-1.5px; left:50%; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; }
  .intro-sample-tag{ background:#8FE0AB; color:#0C1A12; font-family:'IBM Plex Mono',monospace; font-size:.6rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; line-height:1; padding:4px 12px 5px; border-radius:0 0 7px 7px; }
  .intro-sample-fee{ display:none; }
  .intro-transfer-title{ font-family:'Plus Jakarta Sans',sans-serif; font-weight:700; font-size:1rem; color:#8FE0AB; }
  .intro-transfer p{ margin:6px 0 0; font-size:.88rem; line-height:1.5; color:#D2D9D4; }
  .intro-actions{ margin-top:20px; }
  .intro-transfer{ padding:24px 16px 14px; }
  .intro-transfer p{ margin:0; }
  .intro-fill{ margin-top:16px; border-color:#9AA39E; }
  .intro-fill .intro-sample-tag{ background:#9AA39E; }
  .intro-desc-bottom{ margin-top:18px; }
  .intro-desc.intro-desc-bottom{ font-size:.8rem; line-height:1.5; color:var(--muted); margin:16px 10px 0; }
  .intro-hints{ margin-top:18px; padding:12px 12px 4px; border-top:1px solid var(--line); text-align:left; }
  .intro-hints-label{ font-family:'IBM Plex Mono',monospace; font-size:.62rem; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); margin-bottom:10px; text-align:center; }
  .intro-hint{ display:flex; align-items:center; gap:12px; margin-bottom:10px; font-size:.84rem; line-height:1.45; color:#D2D9D4; }
  .intro-hint-pill{ flex:none; width:104px; justify-content:center; pointer-events:none; margin:0; text-align:center; }
  .intro-hint .pos-tag.intro-hint-pill{ width:104px; height:26px; }
  .intro-hint em{ font-style:normal; font-family:'IBM Plex Mono',monospace; font-weight:700; color:var(--bad); font-size:.76rem; white-space:nowrap; }
  .intro-hint b{ color:var(--purple); }
  .intro-hint .pos-tag.intro-hint-pill{ width:30px; height:19px; margin:0 37px; }
  .intro-other{ margin-top:16px; border:1px solid var(--line); padding:14px 16px; }
  .intro-hint .btn-reveal.intro-hint-pill{ border-color:#8A948E; color:#B4BDB8; }
  .intro-hints{ padding-top:16px; }
  /* tighter rules pop-up */
  .intro-modal{ padding-top:26px; }
  .intro-sub{ margin-top:6px; }
  .intro-desc{ margin-top:12px; line-height:1.45; }
  .intro-transfer{ margin-top:16px; padding-top:22px; padding-bottom:12px; }
  .intro-transfer p{ line-height:1.42; }
  .intro-fill{ margin-top:12px; }
  .intro-other{ margin-top:12px; padding:12px 16px; }
  .intro-hints{ margin-top:14px; padding-top:12px; padding-bottom:0; }
  .intro-hint{ margin-bottom:6px; }
  .intro-hint:last-child{ margin-bottom:0; }
  .intro-actions{ margin-top:10px; gap:8px; }
  .intro-start{ background:linear-gradient(135deg,#1F9650,#14653A); border-color:#3FA66B; color:#fff; }
  .intro-start:hover{ filter:brightness(1.15); }
  .intro-hints{ border-top:0; margin-top:14px; padding-top:0; }
  .scoring-table tr.perfect td{ border-top:1.5px solid var(--line-strong); border-bottom:none; padding-top:9px; padding-bottom:9px; }
  .scoring-table tr.perfect td:first-child{ font-family:'IBM Plex Mono',monospace; font-weight:600; font-size:.86rem; letter-spacing:.06em; text-transform:uppercase; color:var(--good); }
  .scoring-table tr.perfect td.p{ font-size:.86rem; color:var(--good); }
  .intro-actions{ margin-top:16px; }

  /* ---- perfect score ---- */
  .modal.perfect{ border-color:var(--good); animation:rise .35s ease, greenpulse 2.8s ease-in-out .4s infinite; }
  .modal.perfect .kicker{ color:var(--good); font-size:.8rem; letter-spacing:.2em; animation:pop .6s cubic-bezier(.2,1.5,.4,1); }
  .modal.perfect .big-score{ background:linear-gradient(135deg,#fff,var(--good)); -webkit-background-clip:text; background-clip:text; animation:pop .7s cubic-bezier(.2,1.5,.4,1) .1s both; }
  @keyframes pop{ 0%{transform:scale(.85); opacity:0} 100%{transform:scale(1); opacity:1} }
  @keyframes greenpulse{ 0%,100%{box-shadow:0 24px 60px rgba(0,0,0,.6), 0 0 0 rgba(95,208,138,0)} 50%{box-shadow:0 24px 60px rgba(0,0,0,.6), 0 0 28px rgba(95,208,138,.3)} }
  @media (prefers-reduced-motion:reduce){ .modal.perfect, .modal.perfect *{ animation:none !important } }
  /* transfer: "from ?" reveal */
  .card.fee .from-word{ color:var(--ink); font-weight:500; }
  .from-q{ display:inline-flex; align-items:center; justify-content:center; min-width:26px; height:19px; padding:0 8px; margin-left:2px; vertical-align:middle; font-family:'IBM Plex Mono',monospace; font-size:.68rem; font-weight:700; line-height:1; color:var(--bad); background:rgba(238,107,97,.1); border:1px solid var(--bad); border-radius:10px; cursor:pointer; transition:background .15s; }
  .from-q:hover:not(:disabled){ background:rgba(238,107,97,.22); }
  .from-q:disabled{ opacity:.45; cursor:default; }
  .from-club{ color:var(--bad); font-weight:600; display:inline-block; }
  .from-club.pop-in{ animation:fromin .55s cubic-bezier(.2,1.3,.4,1) .15s both; }
  @keyframes fromin{ 0%{ opacity:0; transform:translateY(-6px) scale(.9); } 100%{ opacity:1; transform:none; } }
  .card[data-tag]::before{ transition:transform .4s ease, opacity .3s ease; }
  .card.fee.from-shown::before{ transform:translate(-50%,-110%); opacity:0; }
  @media (prefers-reduced-motion:reduce){ .from-club.pop-in{ animation:none; } .card[data-tag]::before{ transition:none; } }
  .intro-hint .from-q.intro-hint-pill{ width:30px; min-width:0; height:19px; margin:0 37px; padding:0; }
  /* stop iOS/Android zooming the page when a box is tapped: form fields must be 16px+ on touch screens */
  html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; touch-action:manipulation; }
  @media (pointer:coarse){
    input, select, textarea, .row2 .sq, .sq, .field input, .field select{ font-size:16px !important; }
    .field input, .field select{ padding-top:7px; padding-bottom:7px; }
  }
  /* ---- sign-up band + footer (same as the Today page) ---- */
  #join{ padding:32px 0 24px; border-top:1px solid #C9C9C4; background:#68B584; color:#141414; }
  #join .join-inner{ max-width:640px; margin:0 auto; padding:0 24px; }
  #join h2{ font-family:'Inter',sans-serif; font-size:1.25rem; margin:0 0 20px; font-weight:600; letter-spacing:-0.01em; color:#141414; }
  #join .join-form{ display:flex; gap:8px; justify-content:center; max-width:360px; margin:0 auto; }
  #join .join-form input[type="email"]{ flex:1; min-width:0; padding:10px 12px; border-radius:4px; border:1px solid #C9C9C4; background:#fff; color:#141414; font-family:'Inter',sans-serif; font-size:16px; }
  #join .join-form button{ font-family:'IBM Plex Mono',monospace; font-weight:500; font-size:.88rem; padding:9px 16px; border-radius:4px; cursor:pointer; background:#6B21C4; color:#fff; border:1px solid #6B21C4; }
  #join .join-success{ margin-top:12px; font-size:.88rem; color:#14301F; font-weight:500; display:none; }
  #join .footer-insta{ display:flex; align-items:center; justify-content:center; gap:6px; margin:20px 0 0; color:#141414; text-decoration:none; font-size:.85rem; }
  #join .footer-insta:hover{ color:#6B21C4; }
  .site-footer{ padding:24px; color:var(--muted); font-size:.8rem; text-align:center; }
  /* footer band matches the navigation banner */
  #join{ background:var(--accent-deep); border-top:1px solid var(--line); color:var(--ink); }
  #join h2{ color:var(--ink); }
  #join .join-form input[type="email"]{ background:var(--surface); border-color:var(--line-strong); color:var(--ink); }
  #join .join-form input[type="email"]::placeholder{ color:var(--muted); }
  #join .join-form button{ background:var(--accent); border-color:var(--accent); }
  #join .join-success{ color:var(--good); }
  #join .footer-insta{ color:var(--muted); }
  #join .footer-insta:hover{ color:var(--ink); }
/* grey Check button for team / season, red warning note, green "checked" highlight */
.guess-check-wrap{ display:flex; justify-content:center; margin-top:8px; }
.btn-guess-check{ font:inherit; font-size:.8rem; font-weight:600; padding:6px 26px; border-radius:8px; border:1px solid var(--line-strong); background:#222A25; color:#B7C0BA; cursor:pointer; }
.btn-guess-check:hover:not(:disabled){ background:#2B352F; color:var(--ink); }
.btn-guess-check:disabled{ opacity:.4; cursor:default; }
.complete-note.warn{ color:var(--bad); }
.field input.checked-ok, .field select.checked-ok, .field input.checked-ok:focus, .field select.checked-ok:focus{ border-color:var(--accent); background-color:#14301F; box-shadow:0 0 0 3px rgba(63,166,107,.22); }
/* Check button matches the Complete button's width */
.guess-check-wrap{ display:block; margin-top:8px; }
.btn-guess-check{ display:block; width:100%; max-width:612px; margin:0 auto; padding:8px; }
@media (max-width:720px){ .btn-guess-check{ max-width:none; } }
/* 400-499: green border animation + tier label */
.modal.great{ border-color:var(--good); animation:rise .35s ease, greenpulse 2.8s ease-in-out .4s infinite; }
.modal.great .kicker{ color:var(--good); }
@media (prefers-reduced-motion:reduce){ .modal.great{ animation:none !important } }
/* ---- new clue types: Homophone (yellow, tap to reveal) and Anagram (grey, same set-up as Fill) ---- */
.card.homo, .card.homo.solved{ border:1.5px solid #D4C26A; box-shadow:0 0 0 1px rgba(212,194,106,.14); }
.card.ana, .card.ana.solved{ border:1.5px solid #9AA39E; box-shadow:0 0 0 1px rgba(154,163,158,.12); }
.card.ana::before{ background:#9AA39E; }
.card.homo:not(.hp-open){ cursor:pointer; }
.hp-pill{ display:inline-flex; align-items:center; justify-content:center; height:21px; padding:0 14px; font-family:'Plus Jakarta Sans','Inter',sans-serif; font-size:.7rem; font-weight:800; letter-spacing:.16em; text-indent:.16em; text-transform:uppercase; line-height:1; color:#2A2300; background:#D4C26A; border:0; border-radius:11px; cursor:pointer; vertical-align:middle; animation:hpglow 2.4s ease-in-out infinite; }
.hp-pill:hover{ filter:brightness(1.06); }
.hp-clue{ display:none; }
.card.hp-open .hp-pill{ display:none; }
.card.hp-open .hp-clue{ display:inline; animation:fromin .5s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes hpglow{ 0%,100%{ box-shadow:0 0 0 0 rgba(212,194,106,0); } 50%{ box-shadow:0 0 10px 1px rgba(212,194,106,.4); } }
@media (prefers-reduced-motion:reduce){ .hp-pill{ animation:none; } .card.hp-open .hp-clue{ animation:none; } }

/* ---- team / season arrows: always the same grey arrow, gone once correctly checked ---- */
.field select, .field input#team-input{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%238E9A93' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; background-size:12px 8px; padding-right:30px; -webkit-appearance:none; appearance:none; }
.field input#team-input::-webkit-calendar-picker-indicator, .field input#team-input::-webkit-list-button{ display:none !important; opacity:0; -webkit-appearance:none; }
.field input.locked-ok, .field select.locked-ok, .field input.checked-ok, .field select.checked-ok{ background-image:none !important; }
.field input:-webkit-autofill{ -webkit-box-shadow:0 0 0 40px #161C18 inset; -webkit-text-fill-color:var(--ink); }

/* Check button: a little shorter and a little closer to the fields than Complete is */
.guess-check-wrap{ margin-top:4px; }
.btn-guess-check{ padding:4px 8px; font-size:.78rem; }

/* ---- pills sit on the same line as the clue text ---- */
.pos-tag, .from-q, .hp-pill{ vertical-align:middle; position:relative; top:-1.2px; }
.hp-pill{ height:19px; font-family:inherit; font-weight:600; font-size:.68rem; letter-spacing:.1em; text-indent:.1em; }

/* CF logo on the pitch: bigger, set in from the corner so it stays clear of the pitch lines */
.pitch .pitch-logo{ left:3.5%; top:3.5%; width:46px; height:46px; opacity:.55; }
@media (max-width:500px){ .pitch .pitch-logo{ left:3.5%; top:3.5%; width:40px; height:40px; } }

/* Homophone pill text: exactly the clue-text font, size and weight */
.hp-pill{ font:inherit; font-weight:500; letter-spacing:-0.005em; text-indent:0; text-transform:none; height:19px; padding:0 12px; line-height:1; }

/* ---- Homophone: yellow banner + yellow ? button (same design as the red one), clue text in yellow once revealed ---- */
.card.homo::before{ background:#D4C26A; }
.card.homo:not(.hp-open){ cursor:default; }
.hp-q{ display:inline-flex; align-items:center; justify-content:center; min-width:26px; height:19px; padding:0 8px; margin-left:2px; vertical-align:middle; position:relative; top:-1.2px; font-family:'IBM Plex Mono',monospace; font-size:.68rem; font-weight:700; line-height:1; color:#D4C26A; background:rgba(212,194,106,.1); border:1px solid #D4C26A; border-radius:10px; cursor:pointer; transition:background .15s; }
.hp-q:hover{ background:rgba(212,194,106,.22); }
.card.hp-open .hp-q{ display:none; }
.card.homo .hp-clue{ color:#D4C26A; font-weight:600; }
.card.homo .hp-clue .enum{ color:#D4C26A; opacity:.75; font-weight:500; }
/* once the homophone clue is revealed the HOMOPHONE tab slides away (like Transfer's) so it never covers the clue text */
.card.homo.hp-open::before{ transform:translate(-50%,-110%); opacity:0; }
.hp-q{ padding:0 10px; white-space:nowrap; letter-spacing:.02em; }
.hp-q{ font-family:'Inter',sans-serif; font-weight:600; font-size:.78rem; letter-spacing:0; }
.hp-q{ font-family:'Inter',sans-serif; font-weight:500; font-size:.78rem; letter-spacing:-0.005em; }
.card.homo .hp-clue .enum{ color:var(--muted); opacity:1; font-weight:400; }

/* two-word answers: one line of boxes per word, stacked inside a taller clue */
.grid.multiline{ flex-direction:column; align-items:flex-start; gap:4px; }
.grid-line{ display:flex; gap:3px; }
.row2:has(.grid.multiline){ align-items:flex-end; }

/* ---- top-centre tabs for Transfer / Anagram / Homophone: unfilled, lettering in the clue's colour ---- */
.card.fee::before, .card.ana::before, .card.homo::before{
  background:var(--accent-deep); border:1.5px solid currentColor; border-top:0;
}
.card.solved.fee::before, .card.solved.ana::before, .card.solved.homo::before{ background:#1B4029; }
.card.fee::before{ color:#8FE0AB; }
.card.ana::before{ color:#9AA39E; }
.card.homo::before{ color:#D4C26A; }
/* the card's coloured border runs unbroken across the top; the tab hangs just beneath it */
.card.fee::before, .card.ana::before, .card.homo::before{ top:0; }

/* Rules pop-up: the Transfer sample tab matches the clue's unfilled tab (Fill's stays solid grey) */
.intro-transfer:not(.intro-fill):not(.intro-other) .intro-sample{ top:0; }
.intro-transfer:not(.intro-fill):not(.intro-other) .intro-sample-tag{ background:var(--accent-deep); color:#8FE0AB; border:1.5px solid #8FE0AB; border-top:0; }
.hp-q{ border-radius:6px; }

.tab .tab-num{ color:var(--muted); font-weight:inherit; }
.tab.active .tab-num{ color:var(--muted); }

.tabs .tab-num{ margin-left:-8px; padding:11px 0; font-size:.86rem; font-weight:500; color:var(--muted); white-space:nowrap; border-bottom:2px solid transparent; }
.tabs .tab.tab-right{ margin-left:auto; }
