/* Quick games: the shared shell (web/light.js). Each game's own styles go under .lg-<id> in this file's
   section for that game, or in the game's file via classes, never inline scripts. */
.light-intro { max-width: 40rem; }
.light-hook { font-size: 1.2rem; margin: .3rem 0 .8rem; }
.light-rules { padding-left: 1.2rem; margin: 0 0 .8rem; }
.light-rules li { margin-bottom: .3rem; }
.light-play { max-width: 44rem; }
.light-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.light-head h1 { margin-bottom: .2rem; }
.light-clock .num { font-size: 1.8rem; }
#light-bar { margin-bottom: .8rem; }
.light-end { max-width: 44rem; }
.light-score { font-size: clamp(2.6rem, 9vw, 4rem); color: var(--gold); line-height: 1.05; }
.light-score .of { font-size: 1.4rem; color: var(--felt-muted); }
.light-sub { color: var(--felt-ink); margin: .3rem 0 1rem; }
.light-lesson { background: rgba(255, 255, 255, .06); border-left: 3px solid var(--gold); padding: .6rem .8rem;
  border-radius: 0 var(--radius-s) var(--radius-s) 0; margin: 1rem 0; }
.light-actions { margin-top: 1rem; align-items: center; }
.light-end .btn.ghost { color: var(--felt-ink); border-color: var(--felt-muted); }
.light-end .btn.quiet { color: var(--felt-muted); }
.light-board table.board { width: 100%; border-collapse: collapse; }
.light-board td { padding: .45rem .4rem; border-bottom: 1px solid var(--rule); }
.light-board tr.you td { font-weight: 700; }
.light-board td.num { width: 4rem; }
.light-board td:last-child { text-align: right; white-space: nowrap; }

/* Choices: big tap targets shared by the games */
.lg-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin: .8rem 0; }
.lg-choice { font: inherit; text-align: left; background: var(--paper); color: var(--ink); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: .9rem 1rem; cursor: pointer; min-height: 3.2rem; box-shadow: var(--shadow-s); }
.lg-choice:hover { border-color: var(--accent); background: var(--accent-soft); }
.lg-choice:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.lg-choice[disabled] { cursor: default; opacity: .85; }
.lg-choice.right { border-color: var(--good); box-shadow: inset 0 0 0 2px var(--good); }
.lg-choice.wrong { border-color: var(--bad); box-shadow: inset 0 0 0 2px var(--bad); }
.lg-progress { color: var(--muted); font-size: .95rem; margin: .2rem 0 .6rem; }
.lg-feedback { min-height: 1.5rem; margin: .4rem 0; }
.lg-feedback.good { color: var(--good); }
.lg-feedback.bad { color: var(--bad); }

/* ----- the Games tab: three shelves ----- */
.shelf { margin: 0 0 2.25rem; }
.shelf-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; margin-bottom: .85rem; }
.shelf-head h2 { margin: 0; }
.today-row { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.today-card { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border: 1px solid var(--rule);
  border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--paper); box-shadow: var(--shadow-s); }
.today-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--rule)); box-shadow: var(--shadow); }
.today-card.done { background: var(--paper-2); }
.today-card .goal-chip { flex: none; }
.quick-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.quick-card { position: relative; display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.05rem;
  border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--paper); box-shadow: var(--shadow-s); transition: border-color .15s, box-shadow .15s, transform .15s; }
.quick-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--rule)); box-shadow: var(--shadow); transform: translateY(-1px); }
.quick-card:focus-visible, .today-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.quick-card strong { font-size: 1.02rem; font-weight: 650; }
.quick-card .hook { color: var(--ink); font-size: .93rem; }
.quick-card .meta { color: var(--muted); font-size: .88rem; }
.quick-card .best { color: var(--muted); font-size: .9rem; margin-top: auto; }
.quick-card.start { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), var(--shadow); }
.start-tag { align-self: flex-start; background: var(--accent-soft); color: var(--accent); font-size: .78rem; font-weight: 700;
  padding: .1rem .5rem; border-radius: 999px; }
.contest-strip { display: block; padding: .8rem 1rem; border: 1px solid var(--rule); background: var(--accent-soft); border-radius: var(--radius); font-size: .93rem;
  text-decoration: none; color: var(--ink); margin-bottom: 1rem; }
.contest-strip:hover { border-color: var(--accent); }
.contest-strip strong { margin-right: .5rem; }
.light-end .kicker { color: var(--felt-ink); opacity: .85; }
.light-end .btn.quiet { background: transparent; border-color: transparent; color: var(--felt-ink); }
.light-done-bar { margin: 1rem 0; }
.light-score { white-space: nowrap; }
.light-end .share { background: rgba(255, 255, 255, .08); color: var(--felt-ink); border-color: var(--felt-bar); }

/* The end screen's head: score, sharing and what's next, on a card (the details follow on the felt below). */
.light-end-head { max-width: 44rem; margin: 0 auto 1rem; padding: 1.4rem 1.5rem 1.2rem; border-radius: 22px;
  background: var(--arcade-card); border: 1px solid var(--arcade-line); box-shadow: var(--stage-shadow); }
.light-end-head .kicker { margin: 0 0 .2rem; color: var(--arcade-muted); font-weight: 600; }
.light-end-head .light-score { color: var(--gold-soft); }
.light-end-head .light-score .of { color: var(--arcade-muted); }
.light-end-head .light-sub { color: var(--arcade-ink); margin: .3rem 0 1.1rem; }
.light-end-head .light-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1rem; }
.light-end-head .light-next { margin-right: auto; }
.light-end { margin: 0 auto 1rem; }
.light-detail-h { margin: 0 0 .6rem; font-size: 1.05rem; color: var(--felt-ink); }
