/* ── Elerummy Daily — shipping UI ─────────────────────────────────────────────
   Loaded AFTER styles.css, which supplies the cards, panels, buttons, .act-*
   turn-action classes, .turnind, .modal and .ptable geometry. Everything here is
   daily-only chrome: the header, the scoreboard, the word card, the deck
   inspector's colour states, and the result card.
   ------------------------------------------------------------------------- */

.daily{max-width:1280px;margin:0 auto}

/* ── Header ───────────────────────────────────────────────────────────────────
   The six-button .dnav row is gone (2026-09-19): the Daily now uses the same
   .topbar + Strategy/More menus as game.html, all of which live in styles.css.
   Only the trademark mark needs a rule of its own, because the h1 is a clipped
   gradient and the ™ has to opt out of it. */
.daily .tm{font-size:.42em;vertical-align:super;letter-spacing:0;
  -webkit-text-fill-color:#7dd3fc;color:#7dd3fc}

/* An empty theme or word panel must not reserve a gap. Both are filled by
   daily.js only on the days they apply. */
#themePanel:empty,#wordPanel:empty{display:none}

/* Only two piles here (no AI hand tile), so centre them instead of pushing one
   to each edge of a full-width row. */
.daily .deckarea{justify-content:center;gap:34px}
.daily .meldstrip .empty{padding:10px}

/* ── Theme card ───────────────────────────────────────────────────────────── */
.themecard{background:rgba(15,23,42,.6);border-left:3px solid #22d3ee;border-radius:8px;
  padding:10px 12px;margin-bottom:10px}
.themecard .tname{font-size:15px;font-weight:800;color:#e2e8f0;letter-spacing:.5px}
.themecard .tline{font-size:12px;color:#7dd3fc;margin-top:2px}
.themecard .tblurb{font-size:12px;color:#94a3b8;margin-top:5px;line-height:1.5}
.pill{display:inline-block;font-size:10px;padding:1px 7px;border-radius:99px;
  background:rgba(148,163,184,.18);color:#cbd5e1;font-weight:700;letter-spacing:.5px;margin-left:6px}
.pill.bonus{background:rgba(250,204,21,.22);color:#fde68a}
.pill.practice{background:rgba(148,163,184,.25);color:#e2e8f0}

/* ── Scoreboard ───────────────────────────────────────────────────────────────
   The AI's average is shown from turn one, deliberately: this is a
   full-information puzzle (the deck inspector is right there), so hiding the
   target would be the one thing you couldn't see. You need it to decide whether
   to push for a bigger set or bank what you have. */
.scorebar{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;
  background:rgba(15,23,42,.7);padding:10px;border-radius:10px;
  margin-bottom:10px;border:1px solid rgba(148,163,184,.12)}
.scorebar .cell{text-align:center}
.scorebar .k{font-size:9px;color:#94a3b8;text-transform:uppercase;letter-spacing:2px;
  font-family:ui-monospace,Menlo,Consolas,monospace}
.scorebar .v{font-size:26px;font-weight:800;color:#22d3ee;line-height:1.15;letter-spacing:-1px;
  font-family:ui-monospace,Menlo,Consolas,monospace;font-variant-numeric:tabular-nums}
.scorebar .v.target{color:#f472b6}
.scorebar .v.margin{color:#f472b6}
.scorebar .v.margin.beat{color:#4ade80}
.scorebar .v.small{font-size:20px}

/* Progress toward the AI's average — the same green/amber the share bar uses,
   so the picture in the app and the picture you paste into a feed agree. */
.vsbar{height:8px;border-radius:99px;background:rgba(148,163,184,.16);overflow:hidden;
  display:flex;margin:8px 0 2px}
.vsbar i{display:block;height:100%}
.vsbar i.mine{background:#22c55e}
.vsbar i.over{background:#facc15}
.vsline{font-size:10px;color:#94a3b8;text-align:center;letter-spacing:1px;
  font-family:ui-monospace,Menlo,Consolas,monospace;text-transform:uppercase}

/* ── Word bonus ───────────────────────────────────────────────────────────────
   Announced, never hidden — words are formable on almost any deck, so a silent
   badge would have players poking at all 365 days. Badge only, worth no points:
   holding 3-5 of your 9 slots hostage is the cost. */
.wordcard{background:linear-gradient(90deg,rgba(168,85,247,.18),rgba(15,23,42,.6));
  border:1px solid rgba(168,85,247,.45);border-left:3px solid #a855f7;border-radius:8px;
  padding:10px 12px;margin-bottom:10px}
.wordcard .wtitle{font-size:10px;text-transform:uppercase;letter-spacing:2px;color:#d8b4fe;
  font-weight:700;font-family:ui-monospace,Menlo,Consolas,monospace}
.wordcard .wword{font-size:26px;font-weight:800;color:#f3e8ff;letter-spacing:6px;margin:4px 0}
.wordcard .whow{font-size:11px;color:#94a3b8;line-height:1.5}
.wordchips{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}
.wordchip{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px;font-weight:700;
  padding:3px 9px;border-radius:5px;background:rgba(15,23,42,.7);color:#64748b;
  border:1px solid rgba(148,163,184,.25)}
.wordchip.held{background:#7c3aed;color:#fff;border-color:#a855f7}
.wordchip.unheld{letter-spacing:2px}
.wordcard.earned{border-color:#22c55e;background:linear-gradient(90deg,rgba(34,197,94,.2),rgba(15,23,42,.6))}
.wordcard.earned .wtitle{color:#86efac}
.badgeline{font-size:12px;color:#86efac;font-weight:700;margin-top:7px}

/* ── Deck inspector ───────────────────────────────────────────────────────────
   Composition is public in a full-information puzzle; withholding it would only
   reward memorising over planning. Draw ORDER stays hidden — that is the puzzle. */
.decklegend{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;font-size:10px;
  color:#94a3b8;margin-bottom:10px;font-family:ui-monospace,Menlo,Consolas,monospace}
.decklegend span{display:inline-flex;align-items:center;gap:5px}
.decklegend i{width:12px;height:12px;border-radius:3px;display:inline-block}
.ptable .cell.inhand{background:#0891b2;color:#fff;outline:2px solid #67e8f9;outline-offset:-2px}
.ptable .cell.melded{background:#15803d;color:#dcfce7}
.ptable .cell.indiscard{background:#a16207;color:#fef3c7}
.ptable .cell.todraw{background:#334155;color:#cbd5e1}
.ptable .cell.notindeck{background:#0b1220;color:#1e293b;opacity:.45}
.cattable{width:100%;font-size:11px;border-collapse:collapse;
  font-family:ui-monospace,Menlo,Consolas,monospace;color:#cbd5e1}
.cattable th{text-align:left;font-size:9px;color:#94a3b8;padding:4px;border-bottom:1px solid #334155;
  text-transform:uppercase;letter-spacing:1px}
.cattable td{padding:3px 4px;border-bottom:1px solid rgba(148,163,184,.08)}
.cattable td.n{text-align:right}
.cattable tr.dead td{color:#64748b}
.cattable tr.live td.n.hot{color:#86efac;font-weight:700}
.catdot{display:inline-block;width:9px;height:9px;border-radius:2px;margin-right:6px;vertical-align:middle}

/* ── Result card ──────────────────────────────────────────────────────────────
   The moment the game gets shared, so it gets the most polish. */
.result{text-align:center}
.result .rdate{font-size:11px;color:#94a3b8;letter-spacing:2px;text-transform:uppercase;
  font-family:ui-monospace,Menlo,Consolas,monospace}
.result .rmargin{font-size:52px;font-weight:800;letter-spacing:-2px;margin:6px 0 2px;
  font-family:ui-monospace,Menlo,Consolas,monospace;color:#f472b6;line-height:1}
.result .rmargin.beat{color:#4ade80}
.result .rverdict{font-size:14px;color:#e2e8f0;font-weight:700;margin-bottom:12px}
.result .rline{font-size:15px;color:#cbd5e1;font-family:ui-monospace,Menlo,Consolas,monospace;
  font-variant-numeric:tabular-nums;margin-bottom:4px}
.result .rturns{font-size:12px;color:#94a3b8;margin-bottom:12px}
.sharebox{background:rgba(15,23,42,.8);border:1px solid rgba(148,163,184,.2);border-radius:8px;
  padding:12px;margin:12px 0;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:13px;
  line-height:1.6;white-space:pre-wrap;text-align:left;color:#e2e8f0}
/* Result-card actions. On a REOPEN (the day is already played) two-player leads and
   is the filled primary — it is the only thing left to do, and promoting it here is
   what replaces auto-jumping past this card. */
.result .actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:16px}
.result .goplay{background:linear-gradient(180deg,#22d3ee,#0891b2);color:#07223a;
  font-size:14px;font-weight:800;padding:12px 20px;border-radius:10px;
  box-shadow:0 3px 0 #075985;letter-spacing:.3px}
.result .goplay:hover{background:linear-gradient(180deg,#67e8f9,#0e9bb8)}
.result .goplay:active{transform:translateY(2px);box-shadow:0 1px 0 #075985}
/* Everything beside the primary goes outlined, the same filled-vs-outlined language
   the turn actions use, so which button leads is never ambiguous. */
.result .actions button:not(.goplay){background:transparent;color:#bdd5ef;
  border:1.5px solid #4d6b96;font-weight:700}
.result .actions button:not(.goplay):hover{background:rgba(125,211,252,.14);border-color:#7da3d0}

.copied{font-size:11px;color:#4ade80;font-weight:700;letter-spacing:1px;
  text-transform:uppercase;font-family:ui-monospace,Menlo,Consolas,monospace;min-height:14px}

/* ── Streaks ──────────────────────────────────────────────────────────────── */
.streaks{display:grid;grid-template-columns:repeat(3,1fr);gap:10px 8px;
  background:rgba(15,23,42,.55);border-radius:10px;padding:10px;
  border:1px solid rgba(148,163,184,.12)}
.streaks .cell{text-align:center}
.streaks .k{font-size:8px;color:#94a3b8;text-transform:uppercase;letter-spacing:1.5px;
  font-family:ui-monospace,Menlo,Consolas,monospace}
.streaks .v{font-size:21px;font-weight:800;color:#e2e8f0;
  font-family:ui-monospace,Menlo,Consolas,monospace;font-variant-numeric:tabular-nums}
.streaks .v.good{color:#4ade80}

/* ── Practice banner ──────────────────────────────────────────────────────────
   A finished day can be played again for practice, but never re-scored. Say so
   loudly and permanently — a scoreless run that looked scored would poison the
   only number the player cares about. */
.practicebar{background:linear-gradient(90deg,rgba(148,163,184,.22),rgba(15,23,42,.6));
  border:1px dashed rgba(148,163,184,.45);border-radius:8px;padding:8px 12px;margin-bottom:10px;
  font-size:12px;color:#cbd5e1;text-align:center;letter-spacing:.5px}
.practicebar b{color:#e2e8f0}

/* ── Out-of-range / load failure ─────────────────────────────────────────── */
.notice{background:rgba(15,23,42,.75);border:1px solid rgba(148,163,184,.25);
  border-radius:12px;padding:26px;max-width:620px;margin:40px auto;text-align:center;
  color:#cbd5e1;line-height:1.65}
.notice h2{font-size:16px;color:#7dd3fc;letter-spacing:2px;text-transform:uppercase;
  margin-bottom:10px;font-family:ui-monospace,Menlo,Consolas,monospace}
.notice code{background:rgba(15,23,42,.9);padding:2px 6px;border-radius:4px;color:#fde68a;
  font-size:12px}

@media(max-width:900px){
  /* Everything that used to fight for space at the top is in the menus now, so the
     board starts higher and the whole puzzle fits without scrolling to reach a
     button. The reference column is .deskonly in the markup and simply isn't here. */
  .daily .board{grid-template-columns:1fr;gap:6px}
  /* .left's 14px flex gap stacked with each block's own margins was costing ~90px
     of the fold. Tighten the gap and drop the doubled margins. */
  .daily .left{gap:7px}
  .daily .scorebar{margin-bottom:0}
  .daily .vsbar{margin:2px 0 0}
  .daily .vsline{font-size:9px}
  .daily .turnind{margin-bottom:0}

  .themecard{padding:8px 10px;margin-bottom:6px;border-radius:7px}
  .themecard .tname{font-size:14px}
  .themecard .tline{font-size:11px}
  .themecard .tblurb{font-size:11px;margin-top:4px;line-height:1.45}

  .scorebar{grid-template-columns:repeat(6,1fr);gap:4px;padding:7px 6px;
    margin-bottom:6px;border-radius:8px}
  .scorebar .k{font-size:7.5px;letter-spacing:.8px}
  .scorebar .v{font-size:19px;letter-spacing:-.5px}
  .scorebar .v.small{font-size:14px}

  .vsbar{height:6px;margin:5px 0 2px}
  .vsline{font-size:9px}

  .wordcard{padding:8px 10px;margin-bottom:6px}
  .wordcard .wword{font-size:22px;letter-spacing:4px}
  .practicebar{padding:6px 10px;margin-bottom:6px;font-size:11px}
  .result .rmargin{font-size:42px}
}

/* ── Laptop layout (2026-11-13) ───────────────────────────────────────────────
   On a 1366×657 laptop window the hand started at y≈698 — entirely below the fold —
   so you scrolled down to see your cards and back up to see the score. Now the hand
   (five across, see styles.css) sits BESIDE the piles and the turn actions in one
   row, and the header stack above it is tightened, so score + piles + every card +
   all four buttons are on one screen. Sets played follow below. Desktop only. */
@media (min-width: 901px){
  .daily .left{gap:8px}
  .daily .panel h2{margin-bottom:4px}
  .daily .topbar{margin-bottom:5px}
  .themecard{padding:8px 12px;margin-bottom:0}
  .themecard .tblurb{margin-top:3px;line-height:1.4}
  /* Word days: one compact strip instead of a tall card — the word on the left,
     the how-to in the middle, letter chips and progress on the right. */
  .wordcard{margin-bottom:0;padding:8px 12px;display:grid;grid-template-columns:auto 1fr auto;
    column-gap:18px;align-items:center}
  .wordcard .wtitle{grid-column:1;grid-row:1}
  .wordcard .wword{grid-column:1;grid-row:2;font-size:22px;margin:0}
  .wordcard .whow{grid-column:2;grid-row:1 / span 2;line-height:1.45}
  .wordcard .wordchips{grid-column:3;grid-row:1;margin-top:0;justify-content:flex-end}
  .wordcard .badgeline{grid-column:3;grid-row:2;margin-top:4px;text-align:right}
  .scorebar{padding:6px 10px;margin-bottom:0}
  .scorebar .v{font-size:22px}
  .scorebar .v.small{font-size:18px}
  .vsbar{margin:0}
  .vsline{margin-top:-4px}
  .daily .turnind{margin-bottom:0;padding:6px}

  /* The play row: hand on the left, piles + actions on the right. */
  .daily .board > .left:first-child{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-auto-flow:row dense;column-gap:12px;row-gap:8px;align-content:start}
  .daily .board > .left:first-child > *{grid-column:1 / -1}
  .daily .board > .left:first-child > .panel:has(#playerHand){grid-column:1;order:2;display:flex;flex-direction:column}
  .daily .board > .left:first-child > .panel:has(.deckrow){grid-column:2;order:2}
  .daily .board > .left:first-child > .meldpanel{order:3}
  .daily .board > .left:first-child > .panel:has(#playerHand) #playerHand{min-height:0;flex:1;align-content:center}

  /* Piles on top, the four actions as a 2×2 block underneath. */
  .daily .deckrow{display:flex;flex-direction:column;gap:10px;height:100%}
  .daily .deckarea{padding:10px 14px;gap:22px;flex:1}
  .daily .actionbar.four{grid-template-columns:1fr 1fr;padding:8px;gap:7px}
  .daily .actionbar.four button{min-height:42px;font-size:13px;padding:8px 6px}
  .daily .meldstrip .empty{padding:4px 10px}
}

/* Narrow desktop: the right reference column would squeeze the board until hand
   and piles no longer fit side by side. Everything in it (record, rules, log) is
   already in the Strategy and ••• menus, exactly as on phone, so drop it here and
   give the board the full width. */
@media (min-width: 901px) and (max-width: 1180px){
  .daily .board{grid-template-columns:1fr}
  .daily .deskonly{display:none}
}
