/* "Hardwood at night": graphite ground with faint court lines, basketball
   orange accent, and mint / amber / coral result tiles. */
:root {
  --bg: #0e1015;
  --surface: #181b23;
  --surface-2: #21252f;
  --line: #2d3240;
  --text: #f6f3ee;
  --muted: #9b9ba7;
  --accent: #ff6b1a;          /* basketball orange */
  --accent-2: #ffb43a;        /* amber, for the rule's gradient */
  --on-accent: #1a0e06;
  --green: #36e2a4;           /* right */
  --near: #ffc445;            /* one off */
  --red: #ff5a73;             /* wrong */
  --on-tile: #0b1411;
  --tint: rgba(11, 20, 17, 0.14);
  --radius: 10px;
  --display: "Bricolage Grotesque", "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 16px/1.45 var(--display);
  -webkit-font-smoothing: antialiased;
}
main { max-width: 760px; margin: 0 auto; padding: 40px 20px 32px; }

.rule {
  position: relative;
  height: 4px;
  margin-left: 11px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2) 70%, transparent);
}
.rule::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--accent)
    radial-gradient(circle at 50% 50%, transparent 0 7.5px, var(--on-accent) 7.5px 8.5px, transparent 8.5px);
  box-shadow: inset 0 0 0 1px var(--on-accent), 0 0 18px rgba(255, 107, 26, 0.45);
}

/* ---------- labels & type ---------- */
.eyebrow {
  font-weight: 900;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.label, .side-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.giant {
  margin: 0;
  font-weight: 900;
  font-size: clamp(2.7rem, 9vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-transform: none;
  overflow-wrap: anywhere;
}
.meta { margin: 8px 0 0; color: var(--muted); font-size: 0.92rem; }
.green { color: var(--green); }

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 22px 0 18px;
}
.state {
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.state.win { color: var(--green); }
.state.lose { color: var(--red); }

/* ---------- difficulty ---------- */
.difficulty {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  background: var(--surface);
  border-radius: calc(var(--radius) + 4px);
  margin-bottom: 30px;
}
.difficulty button {
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  padding: 10px 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.difficulty button:hover { color: var(--text); }
.difficulty button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

/* ---------- matchup ---------- */
.matchup { display: grid; gap: 22px; }
.side-label { color: var(--accent); margin-bottom: 6px; }

.numbers {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 30px 0 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.numbers b {
  display: block;
  font-weight: 900;
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.numbers .right { text-align: right; }

/* ---------- chain ---------- */
.chain { list-style: none; margin: 0; padding: 0; }
.tile {
  position: relative;
  padding: 14px 16px 16px;
  border-radius: var(--radius);
  background: var(--green);
  color: var(--on-tile);
  animation: pop 0.25s ease-out;
}
.tile.end {
  background: var(--surface);
  color: var(--text);
  box-shadow: inset 0 0 0 2px var(--accent);
  animation: none;
}
.tile.end.done { background: var(--green); color: var(--on-tile); box-shadow: none; }
.tile .num { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.75; }
.tile h3 {
  margin: 2px 0 0;
  font-size: clamp(1.3rem, 4.2vw, 1.75rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.tile .sub { margin-top: 6px; font-size: 0.85rem; font-weight: 600; opacity: 0.8; }
.tile .stats { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 0.85rem; font-weight: 600; }
.tile .stats b { font-weight: 900; font-variant-numeric: tabular-nums; }

.link, .gap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 24px;
  padding: 9px 0 9px 18px;
  border-left: 2px solid var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.link strong { color: var(--text); }
.gap { border-left-style: dashed; border-left-color: var(--line); padding: 16px 0 16px 18px; }

/* ---------- guessing ---------- */
.guess { margin-top: 26px; }
.guess-row { display: flex; gap: 8px; margin-top: 8px; }
input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}
input::placeholder { color: var(--muted); font-weight: 500; }
input:focus { outline: none; border-color: var(--accent); }
input:disabled { opacity: 0.5; }

button.primary, button.ghost {
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  cursor: pointer;
}
button.primary {
  padding: 0 22px;
  border: 0;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.95rem;
}
button.primary:hover { filter: brightness(1.06); }
button.primary.wide { width: 100%; padding: 16px; margin-top: 22px; }
button.ghost {
  padding: 9px 14px;
  font-size: 0.78rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}
button.ghost:hover:not(:disabled) { color: var(--text); border-color: var(--muted); }
button:disabled { opacity: 0.4; cursor: default; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.message { min-height: 1.45em; margin: 10px 0 14px; font-weight: 700; }
.message.good { color: var(--green); }
.message.bad { color: var(--red); }

/* ---------- photos ---------- */
.avatar {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 900;
  letter-spacing: -0.02em;
}
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.avatar.loaded .initials { visibility: hidden; }
.avatar.xl { width: clamp(76px, 15vw, 118px); aspect-ratio: 1; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.avatar.md { width: 64px; aspect-ratio: 1; font-size: 1.3rem; }
.avatar.sm { width: 42%; aspect-ratio: 1; font-size: 0.9rem; align-self: center; }

/* Photos sit on a darker square inside green tiles so they read clearly. */
.tile:not(.end) .avatar, .tile.done .avatar, .log .avatar { background: var(--tint); color: var(--on-tile); }

.side { display: flex; align-items: flex-end; gap: 18px; }
.side > div:last-child { min-width: 0; }
.tile { display: flex; align-items: center; gap: 14px; }
.tile-body { min-width: 0; }

/* ---------- hint ---------- */
.hint {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 4px 0 0 var(--accent);
  animation: pop 0.25s ease-out;
}
.hint .label { color: var(--accent); }
.hint-line { margin: 6px 0 0; font-size: 1.15rem; font-weight: 800; }
.hint-line strong { font-weight: 900; }
.hint-sub { margin: 2px 0 0; color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.hint .stats { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.hint .stats b { color: var(--text); font-weight: 900; font-variant-numeric: tabular-nums; }
button.hint-btn { color: var(--accent); border-color: var(--accent); }
button.hint-btn:hover:not(:disabled) { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }

/* ---------- result ---------- */
.result {
  margin-top: 30px;
  padding: 22px 20px;
  background: var(--surface);
  border-radius: calc(var(--radius) + 4px);
  border-top: 4px solid var(--green);
}
.result.lose { border-top-color: var(--red); }
.result .giant { margin: 6px 0 0; }
.result .meta { margin-bottom: 22px; }
#solution-wrap .chain { margin-top: 10px; }

/* ---------- guess log (the tile grid) ---------- */
.log-wrap { margin-top: 34px; }
.log {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.log li {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--green);
  color: var(--on-tile);
  animation: pop 0.25s ease-out;
  min-width: 0;
}
.log li.miss { background: var(--red); }
.log .top { display: flex; justify-content: space-between; font-size: 0.78rem; font-weight: 800; }
.log .who {
  font-weight: 900;
  font-size: clamp(0.8rem, 2.4vw, 1.05rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.log .empty {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  background: transparent;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-weight: 600;
  text-align: center;
  animation: none;
}

@keyframes pop {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ---------- footer ---------- */
footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}
.brand { color: var(--accent); font-weight: 900; font-size: 1.3rem; letter-spacing: -0.01em; }

.status { color: var(--muted); font-weight: 600; }
.status.error { color: var(--red); }

@media (max-width: 520px) {
  main { padding-top: 24px; }
  .log { grid-template-columns: repeat(3, 1fr); }
  .guess-row { flex-direction: column; }
  button.primary { padding: 14px; }
}

/* ---------- site menu (all games) ---------- */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 18px;
}
.site-brand {
  color: var(--accent);
  font-weight: 900;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
}

/* ---------- rank the five ---------- */
.intro .giant { margin-top: 8px; }
.intro .meta { max-width: 36em; font-size: 1rem; }
.intro-players {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.intro-players li {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1.15;
  text-transform: uppercase;
  animation: pop 0.3s ease-out both;
}
.intro-players li:nth-child(2) { animation-delay: 0.05s; }
.intro-players li:nth-child(3) { animation-delay: 0.1s; }
.intro-players li:nth-child(4) { animation-delay: 0.15s; }
.intro-players li:nth-child(5) { animation-delay: 0.2s; }
.intro-players .avatar.md { width: 100%; max-width: 88px; }

.category { margin-bottom: 26px; }

.rank-wrap { display: grid; gap: 8px; }
.rank-end {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rank-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 2px solid var(--line);
  user-select: none;
  cursor: grab;
}
.rank-row.dragging { border-color: var(--accent); background: var(--surface-2); cursor: grabbing; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.rank-num {
  width: 1.4em;
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.handle { color: var(--muted); font-size: 1.1rem; letter-spacing: -0.2em; padding: 8px 4px; touch-action: none; cursor: grab; }
.rank-row .avatar.md { width: 52px; font-size: 1.05rem; }
.rank-body { flex: 1; min-width: 0; display: grid; }
.rank-name { font-weight: 900; font-size: clamp(1rem, 3.6vw, 1.3rem); text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.1; }
.rank-sub { color: var(--muted); font-size: 0.8rem; font-weight: 600; margin-top: 2px; }
.arrows { display: flex; flex-direction: column; gap: 4px; }
.arrow {
  font: inherit;
  font-size: 0.7rem;
  width: 34px;
  height: 26px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.arrow:hover:not(:disabled) { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.arrow:disabled { opacity: 0.25; cursor: default; }

/* After locking in: green = right spot, yellow = one off, red = two or more. */
.rank-row.hit, .rank-row.near, .rank-row.miss { cursor: default; color: var(--on-tile); border-color: transparent; animation: pop 0.3s ease-out both; }
.rank-row.hit { background: var(--green); }
.rank-row.near { background: var(--near); }
.rank-row.miss { background: var(--red); }
.rank-row.hit .rank-sub, .rank-row.near .rank-sub, .rank-row.miss .rank-sub { color: inherit; opacity: 0.75; }
.rank-row.hit .avatar, .rank-row.near .avatar, .rank-row.miss .avatar { background: var(--tint); color: var(--on-tile); }
.rank-row:nth-child(2) { animation-delay: 0.08s; }
.rank-row:nth-child(3) { animation-delay: 0.16s; }
.rank-row:nth-child(4) { animation-delay: 0.24s; }
.rank-row:nth-child(5) { animation-delay: 0.32s; }
.value { font-weight: 900; font-size: clamp(1.1rem, 4vw, 1.5rem); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.truth {
  min-width: 2.4em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--tint);
  font-weight: 900;
  font-size: 0.85rem;
  text-align: center;
}
.drag-tip { margin: 12px 0 0; font-size: 0.85rem; }
#lock { margin-top: 18px; }

.emoji-row { margin: 10px 0 4px; font-size: 2rem; letter-spacing: 0.1em; line-height: 1; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.result-actions .primary { padding: 13px 22px; }
.next { margin-top: 6px; }

.stats-wrap { margin-top: 34px; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 10px 0 22px;
}
.stat-grid div {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface);
}
.stat-grid b { font-weight: 900; font-size: clamp(1.6rem, 5vw, 2.2rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-grid span { color: var(--muted); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.dist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.dist li { display: flex; align-items: center; gap: 10px; }
.dist-n { min-width: 1.4em; font-weight: 900; text-align: center; }
.dist-bar {
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--surface-2);
  font-weight: 800;
  font-size: 0.85rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.dist-bar.today { background: var(--green); color: var(--on-tile); }

@media (max-width: 520px) {
  .intro-players { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .intro-players li { font-size: 0.65rem; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .rank-row { gap: 8px; padding: 8px; }
  .rank-num { font-size: 1.3rem; }
  .rank-row .avatar.md { width: 44px; }
}

/* ---------- higher or lower ---------- */
.hl-numbers { margin-top: 0; padding-top: 0; border-top: 0; }
.hl-question { margin-bottom: 22px; }
.hl-question .giant { margin-top: 6px; }
.hl-cards {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.hl-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 20px 14px 22px;
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  border: 2px solid var(--line);
  text-align: center;
  min-width: 0;
  animation: pop 0.3s ease-out;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.hl-card.mystery { border-color: var(--accent); }
.hl-card.hit { background: var(--green); border-color: var(--green); color: var(--on-tile); }
.hl-card.miss { background: var(--red); border-color: var(--red); color: var(--on-tile); }
.hl-card.hit .avatar, .hl-card.miss .avatar { background: var(--tint); }
.avatar.hl { width: clamp(96px, 26vw, 170px); aspect-ratio: 1; font-size: clamp(2rem, 6vw, 3rem); }
.hl-name {
  margin: 4px 0 0;
  font-weight: 900;
  font-size: clamp(1.05rem, 3.6vw, 1.6rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.hl-value {
  margin: 0;
  font-weight: 900;
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.hl-card.mystery .hl-value { color: var(--accent); }
.hl-vs {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 900;
  font-size: 0.9rem;
}
.hl-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.hl-choices button { padding: 18px; font-size: 1.05rem; }
.hl-keys { margin: 10px 0 0; font-size: 0.8rem; text-align: center; }
.hl-emoji { font-size: 1.4rem; letter-spacing: 0.05em; overflow-wrap: anywhere; line-height: 1.3; }

/* ---------- draft redo ---------- */
main.wide-main { max-width: 1120px; }
.dr-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 18px 30px;
  margin-bottom: 28px;
}
.dr-head > div:first-child { flex: 1 1 420px; }
.dr-head .meta { max-width: 40em; font-size: 1rem; }
.dr-picker-row { display: flex; gap: 8px; margin-top: 8px; }
select {
  font: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}
select:focus { outline: none; border-color: var(--accent); }

.dr-layout { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .dr-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .dr-board-wrap.sticky {
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + 16px);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }
}
.dr-board-head { display: flex; justify-content: space-between; margin-bottom: 10px; }
.dr-board { gap: 6px; }
.dr-board .rank-row { padding: 8px 10px; }
.dr-board .avatar.md { width: 44px; }
.slot-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 8px 10px;
  border-radius: var(--radius);
  border: 2px dashed var(--line);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}
.slot-empty .rank-num { opacity: 0.5; }
.remove {
  font: inherit;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.remove:hover { color: var(--bg); background: var(--red); border-color: var(--red); }
.value small { font-size: 0.6em; font-weight: 800; opacity: 0.7; }
.dr-clear { margin-top: 8px; }

#search { width: 100%; margin-bottom: 14px; }
.dr-round {
  margin: 18px 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.dr-round:first-child { margin-top: 0; }
.dr-picks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dr-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: var(--radius);
  background: var(--surface);
}
.dr-pick.picked { box-shadow: inset 3px 0 0 var(--accent); background: var(--surface-2); }
.dr-slot { width: 2em; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--muted); text-align: right; }
.avatar.xs { width: 34px; aspect-ratio: 1; font-size: 0.75rem; border-radius: 4px; }
.dr-who { flex: 1; min-width: 0; display: grid; }
.dr-name { font-weight: 800; line-height: 1.15; }
.dr-meta { color: var(--muted); font-size: 0.78rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-add {
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  white-space: nowrap;
}
.dr-add:hover:not(:disabled) { background: var(--accent); color: var(--on-accent); }
.dr-add:disabled { opacity: 0.3; cursor: default; }
.dr-in { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); white-space: nowrap; }
.dr-ws { font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dr-ws small { color: var(--muted); font-weight: 700; }

.dr-truth { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.dr-truth li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: var(--surface-2);
}
.dr-truth li.hit { background: var(--green); color: var(--on-tile); }
.dr-truth li.near { background: var(--near); color: var(--on-tile); }
.dr-truth li.hit .rank-sub, .dr-truth li.near .rank-sub { color: inherit; opacity: 0.75; }
.dr-truth .avatar.md { width: 44px; }
.dr-truth .rank-num { font-size: 1.2rem; }
.dr-steal {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.65rem;
  font-weight: 900;
  vertical-align: middle;
  letter-spacing: 0.04em;
}
.dr-truth li.near .dr-steal { background: var(--on-tile); color: var(--near); }
.result .label + .dr-truth { margin-top: 10px; }
.result > .label:last-of-type { margin-top: 20px; display: block; }

@media (max-width: 520px) {
  .hl-cards { grid-template-columns: 1fr auto 1fr; gap: 6px; }
  .hl-card { padding: 14px 8px 16px; }
  .hl-vs { width: 34px; height: 34px; font-size: 0.7rem; }
  .dr-meta { white-space: normal; }
}


/* ---------- identity touches ---------- */
/* Faint half-court lines behind every page. */
body {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='900' viewBox='0 0 1200 900' fill='none' stroke='%23ffffff' stroke-opacity='0.045' stroke-width='3'%3E%3Ccircle cx='600' cy='0' r='190'/%3E%3Ccircle cx='600' cy='0' r='70'/%3E%3Cpath d='M130 900V700a470 470 0 0 1 940 0v200'/%3E%3Crect x='440' y='560' width='320' height='340'/%3E%3Ccircle cx='600' cy='560' r='160'/%3E%3C/svg%3E") top center / 1200px auto no-repeat fixed,
    radial-gradient(1000px 520px at 50% -140px, rgba(255, 107, 26, 0.10), transparent 70%) top center / 100% 700px no-repeat,
    var(--bg);
  min-height: 100vh;
}
html { background: var(--bg); }

/* Names in regular case too; small labels stay uppercase. */
.tile h3, .rank-name, .hl-name, .log .who, .intro-players li, .eyebrow { text-transform: none; }
.tile h3, .rank-name, .hl-name { letter-spacing: -0.025em; }
.eyebrow { font-size: 1.5rem; letter-spacing: -0.02em; }

/* Result tiles get a soft top highlight instead of flat color. */
.tile:not(.end), .tile.end.done, .log li:not(.empty), .rank-row.hit, .rank-row.near, .rank-row.miss,
.hl-card.hit, .hl-card.miss, .dr-truth li.hit, .dr-truth li.near {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%);
}

/* Brand mark */
.site-brand { display: inline-flex; align-items: center; gap: 9px; text-transform: none; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--text); }
.site-brand svg { width: 26px; height: 26px; flex: none; }
.site-brand b { color: var(--accent); font-weight: 800; }

/* Primary buttons: a little lift */
button.primary { box-shadow: 0 6px 18px rgba(255, 107, 26, 0.22); }
button.primary:disabled { box-shadow: none; }
.hl-vs { box-shadow: 0 0 22px rgba(255, 107, 26, 0.4); }

/* ---------- snake draft ---------- */
.sd-head { margin-bottom: 18px; }
.sd-head .meta { max-width: 46em; font-size: 1rem; }

.sd-order { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.sd-order li {
  display: grid;
  justify-items: center;
  padding: 6px 2px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sd-order li span { font-size: 1rem; color: var(--text); }
.sd-order li.you { box-shadow: inset 0 -3px 0 var(--accent); }
.sd-order li.bot { box-shadow: inset 0 -3px 0 var(--muted); }
.sd-order li.done { opacity: 0.4; }
.sd-order li.now { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 16px rgba(255, 107, 26, 0.45); }
.sd-order li.now span { color: var(--on-accent); }

.sd-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sd-team { padding: 14px; border-radius: calc(var(--radius) + 2px); background: var(--surface); }
.sd-team-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.sd-team-head b { font-weight: 800; font-variant-numeric: tabular-nums; }
.sd-slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sd-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px dashed var(--line);
  color: var(--muted);
}
.sd-slot.filled { border: 1px solid transparent; background: var(--surface-2); color: var(--text); animation: pop 0.25s ease-out; }
.sd-pos {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: var(--line);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 800;
}
.sd-slot.filled .sd-pos { background: var(--accent); color: var(--on-accent); }
.sd-slot-body { flex: 1; min-width: 0; display: grid; }
.sd-slot-name { font-weight: 800; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-slot-sub, .sd-slot-empty { color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.sd-ws { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sd-ws small { color: var(--muted); font-size: 0.7em; }

.sd-pool-wrap { margin-top: 30px; }
.sd-pool-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.sd-filters { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); }
.sd-filters button {
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.sd-filters button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }

.sd-pool { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.sd-card {
  width: 100%;
  height: 100%;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 12px;
  border-radius: var(--radius);
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.sd-card:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-2px); background: var(--surface-2); }
.sd-card:disabled { cursor: default; }
.sd-card:disabled:not(.taken) { opacity: 0.55; }
#pool.over .sd-card:disabled:not(.taken) { opacity: 1; }
.sd-card.taken { opacity: 0.45; }
.sd-card.taken.you { opacity: 1; border-color: var(--accent); }
.sd-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
.sd-card .avatar.sm { width: 56px; font-size: 1rem; }
.sd-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.sd-card-name { font-weight: 800; font-size: 1.08rem; line-height: 1.1; letter-spacing: -0.02em; }
.sd-card-sub { color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.sd-card-stats { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 4px; font-size: 0.8rem; color: var(--muted); }
.sd-card-stats b { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
.sd-taken, .sd-full, .sd-card-ws {
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sd-taken.you { color: var(--accent); }
.sd-taken.bot, .sd-full { color: var(--muted); }
.sd-card-ws { color: var(--green); font-size: 0.85rem; text-transform: none; letter-spacing: 0; }

@media (max-width: 620px) {
  .sd-teams { grid-template-columns: 1fr; }
  .sd-order { grid-template-columns: repeat(5, 1fr); }
  .sd-pool { grid-template-columns: 1fr 1fr; }
}

.credit { margin: 12px 0 0; color: var(--muted); font-size: 0.75rem; line-height: 1.5; opacity: 0.8; }

/* ---------- hub (home page) ---------- */
.hub-head { margin: 18px 0 18px; }
.hub-head .giant { font-size: clamp(2.2rem, 7vw, 3.6rem); max-width: 14em; }
.hub-head .meta { max-width: 38em; margin-top: 6px; }

.hub-sections { display: grid; gap: 30px; margin-top: 8px; }
.hub-section-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 12px; }
.hub-section-head h2 { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.hub-section-head span { color: var(--muted); font-size: 0.85rem; font-weight: 600; }

.hub { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 10px; }
.hub li { animation: pop 0.35s ease-out both; }
.hub li:nth-child(2) { animation-delay: 0.04s; }
.hub li:nth-child(3) { animation-delay: 0.08s; }
.hub li:nth-child(4) { animation-delay: 0.12s; }

.hub-card {
  height: 100%;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px;
  border-radius: calc(var(--radius) + 2px);
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s, background-color 0.15s;
}
.hub-card:hover, .hub-card:focus-visible { border-color: var(--accent); transform: translateY(-2px); background-color: var(--surface-2); outline: none; }
.hub-art { display: grid; place-items: center; padding-top: 2px; }
.hub-art svg { width: 100%; height: auto; font-family: var(--display); }
.hub-body { display: grid; align-content: start; gap: 4px; min-width: 0; }
.hub-title { font-weight: 800; font-size: 1.15rem; line-height: 1.1; letter-spacing: -0.02em; }
.hub-title .new-badge { vertical-align: 2px; margin-left: 4px; }
.hub-blurb {
  color: var(--muted); font-size: 0.85rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hub-progress {
  justify-self: start;
  margin-top: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.72rem;
  font-weight: 800;
}
.hub-progress.fresh { background: var(--accent); color: var(--on-accent); }
.hub-progress.done { background: var(--green); color: var(--on-tile); }

.wide-main > .fact, .wide-main > .install { margin-top: 30px; }

@media (max-width: 900px) { .hub { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .hub { grid-template-columns: 1fr; }
  .hub-card { grid-template-columns: 52px minmax(0, 1fr); padding: 12px; }
  .hub-sections { gap: 24px; }
}

/* Snake Draft pool by position: Guards | Forwards | Centers */
.sd-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.sd-col { display: grid; gap: 8px; }
.sd-col-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: inset 0 -2px 0 var(--accent);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.sd-col-count { color: var(--muted); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; text-align: right; }
.sd-single .sd-col-head { position: static; }

/* In columns, cards turn sideways: photo and position on the left. */
.sd-columns .sd-pool { grid-template-columns: 1fr; gap: 6px; }
.sd-columns .sd-card { grid-template-columns: 52px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; padding: 10px; }
.sd-columns .sd-card-top { grid-row: 1 / span 5; flex-direction: column; align-items: center; gap: 6px; margin: 0; }
.sd-columns .sd-card .avatar.sm { width: 52px; }
.sd-columns .sd-card-name { font-size: 1rem; }
.sd-columns .sd-card-stats { margin-top: 2px; }

@media (max-width: 860px) {
  .sd-columns { grid-template-columns: 1fr; }
  .sd-col-head { position: static; }
  .sd-columns .sd-pool { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

/* ---------- player pages ---------- */
a.plink { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
a.plink:hover { text-decoration-color: currentColor; }

.pl-search { position: relative; margin: 26px 0 30px; max-width: 560px; }
.pl-search input { width: 100%; margin-top: 8px; }
.pl-results {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 5;
  list-style: none;
  margin: 6px 0 0;
  padding: 6px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.pl-results a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--text); text-decoration: none; }
.pl-results a:hover, .pl-results a:focus-visible { background: var(--surface); outline: none; }
.pl-hit-name { flex: 1; font-weight: 800; }
.pl-hit-years { color: var(--muted); font-size: 0.8rem; font-weight: 600; white-space: nowrap; }

.pl-head { display: flex; align-items: flex-end; gap: 22px; margin-bottom: 22px; }
.pl-head > div { min-width: 0; }
.pl-head .giant { margin-top: 6px; }
.pl-hof {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pl-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 0 0 28px; }
.pl-facts div { padding: 10px 12px; border-radius: var(--radius); background: var(--surface); }
.pl-facts dt { color: var(--muted); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; }
.pl-facts dd { margin: 2px 0 0; font-weight: 700; }

.pl-section { margin-bottom: 30px; }
.pl-honors { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.pl-honors li { display: grid; grid-template-columns: minmax(170px, 240px) 1fr; gap: 12px; padding: 9px 12px; border-radius: var(--radius); background: var(--surface); }
.pl-honors b { font-weight: 800; }
.pl-honors span { color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.pl-career { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.pl-career div { display: grid; padding: 12px; border-radius: var(--radius); background: var(--surface); }
.pl-career b { font-size: clamp(1.1rem, 2.6vw, 1.7rem); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pl-career span { color: var(--muted); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }

.pl-table-wrap { overflow-x: auto; margin-top: 10px; border-radius: var(--radius); background: var(--surface); }
.pl-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-table th, .pl-table td { padding: 8px 10px; text-align: right; }
.pl-table th:nth-child(-n + 3), .pl-table td:nth-child(-n + 3) { text-align: left; }
.pl-table th { position: sticky; top: 0; background: var(--surface-2); color: var(--muted); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.pl-table tbody tr + tr td { border-top: 1px solid var(--line); }
.pl-table tr.best td { background: rgba(255, 107, 26, 0.12); }
.pl-table td:first-child { font-weight: 800; }
.pl-mark {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
  vertical-align: middle;
}
.pl-mark.mvp { background: var(--accent); color: var(--on-accent); }
.pl-note { margin-top: 8px; font-size: 0.8rem; }

@media (max-width: 720px) {
  .pl-head { align-items: center; gap: 14px; }
  .pl-career { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pl-honors li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- hoop connections ---------- */
:root { --tier-3: #ff8a3d; }
.cx-head { margin-bottom: 20px; }
.cx-head .giant { margin-top: 6px; }
.cx-solved { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.cx-group {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border-radius: var(--radius);
  color: var(--on-tile);
  text-align: center;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 60%);
  animation: pop 0.3s ease-out;
}
.cx-group.t1 { background-color: var(--green); }
.cx-group.t2 { background-color: var(--near); }
.cx-group.t3 { background-color: var(--tier-3); }
.cx-group.t4 { background-color: var(--red); }
.cx-group-label { font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.04em; }
.cx-group-names { font-weight: 600; font-size: 0.92rem; }

.cx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cx-grid.shake { animation: shake 0.35s ease-in-out; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.cx-tile {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  min-height: 98px;
  padding: 10px 6px;
  border-radius: var(--radius);
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  font-size: clamp(0.72rem, 2.3vw, 0.92rem);
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  overflow-wrap: anywhere;
  transition: background 0.12s, border-color 0.12s, transform 0.12s;
}
.cx-tile:hover { border-color: var(--muted); }
.cx-tile.selected { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: scale(0.97); }
.cx-tile.selected .avatar { background: rgba(26, 14, 6, 0.2); }
.cx-tile .avatar.xs { width: 40px; }

.cx-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.cx-mistakes { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.cx-dots { display: inline-flex; gap: 6px; }
.cx-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.cx-dots i.on { background: var(--accent); }
.cx-buttons { display: flex; gap: 8px; }
.cx-buttons .primary { padding: 10px 22px; }
.cx-emoji { margin: 12px 0 6px; font: 1.6rem/1.2 system-ui, sans-serif; letter-spacing: 0.08em; }

@media (max-width: 520px) {
  .cx-grid { gap: 5px; }
  .cx-tile { min-height: 84px; padding: 8px 3px; }
  .cx-tile .avatar.xs { width: 32px; }
  .cx-buttons { width: 100%; }
  .cx-buttons button { flex: 1; }
}

/* ---------- site menu: logo, Games dropdown, Players ---------- */
.nav-right { display: flex; align-items: center; gap: 8px; }
.games-menu { position: relative; }
.menu-button, .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.menu-button:hover, .nav-link:hover { border-color: var(--muted); }
.menu-button[aria-expanded="true"] { border-color: var(--accent); }
.nav-link[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.games-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  width: min(300px, calc(100vw - 32px));
  padding: 6px;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  animation: pop 0.15s ease-out;
}
.games-panel a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}
.games-panel a:hover, .games-panel a:focus-visible { background: var(--surface); outline: none; }
.games-panel a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); background: var(--surface); }
.games-panel .panel-home { color: var(--accent); border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; margin-bottom: 4px; }
.panel-tag { color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }

/* ---------- how to play ---------- */
.topbar { align-items: center; }
.topbar .state { margin-left: auto; }
.howto-button {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.howto-button:hover { border-color: var(--accent); color: var(--accent); }
.howto {
  width: min(460px, calc(100vw - 32px));
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.howto::backdrop { background: rgba(5, 6, 9, 0.7); backdrop-filter: blur(3px); }
.howto[open] { animation: pop 0.2s ease-out; }
.howto-art { width: 110px; margin-bottom: 10px; }
.howto-art svg { width: 100%; height: auto; font-family: var(--display); }
.howto h2 { margin: 4px 0 16px; font-size: 1.9rem; line-height: 1; letter-spacing: -0.035em; }
.howto-steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.howto-steps li { display: flex; gap: 12px; align-items: flex-start; }
.howto-steps b { display: block; margin-bottom: 2px; }
.howto-steps li > span:last-child { color: var(--muted); font-size: 0.95rem; line-height: 1.4; }
.howto-steps li > span:last-child b { color: var(--text); font-size: 1rem; }
.howto-num {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
}
.howto .primary.wide { margin-top: 0; }

/* ---------- today strip (home page) ---------- */
.today { margin: -6px 0 22px; padding: 14px; border-radius: calc(var(--radius) + 4px); background: var(--surface); border: 1px solid var(--line); }
.today-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.today-streak { color: var(--muted); font-size: 0.85rem; font-weight: 800; }
.today-streak.on { color: var(--accent-2); }
.today-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.today-tile {
  display: grid; grid-template-rows: auto auto auto; gap: 6px; padding: 14px; border-radius: var(--radius);
  background: var(--surface-2); color: var(--text); text-decoration: none; border: 2px solid transparent;
  transition: transform 0.15s, border-color 0.15s;
}
.today-tile:hover { transform: translateY(-2px); border-color: var(--accent); }
.today-art { display: block; width: 64px; }
.today-art svg { width: 100%; height: auto; display: block; }
.today-name { font-weight: 800; font-size: 1rem; line-height: 1.15; }
.today-detail { display: flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 800; font-size: 0.85rem; }
.today-check { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--on-tile); font-size: 0.75rem; }
.today-tile.done { background: color-mix(in srgb, var(--green) 12%, var(--surface-2)); border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.today-tile.done .today-detail { color: var(--green); font-size: 1rem; }
@media (max-width: 760px) { .today-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.today-done { margin: 10px 0 0; color: var(--muted); font-size: 0.85rem; font-weight: 600; }

/* ---------- confetti ---------- */
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 100; }

/* ---------- accessibility ---------- */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
input:focus-visible, select:focus-visible { outline: none; }   /* these show focus with an orange border instead */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Hoop Connections hints */
.cx-hint { margin: 0 0 10px; }
.cx-hint p + p { margin-top: 6px; }
.cx-hint-menu {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 10px;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--line);
  background: var(--surface);
  animation: pop 0.15s ease-out;
}
.cx-hint-menu button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 4px 12px;
  padding: 11px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.cx-hint-menu button:hover:not(:disabled) { border-color: var(--accent); }
.cx-hint-menu button:disabled { opacity: 0.4; cursor: default; }
.cx-hint-menu b { font-weight: 800; }
.cx-hint-menu span { color: var(--muted); font-size: 0.88rem; }
.cx-hint-menu i { font-style: normal; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.cx-tile { position: relative; }
.cx-tile.hinted { border-color: var(--accent-2); }
.cx-bulb { position: absolute; top: 4px; right: 6px; font-size: 0.8rem; }
@media (max-width: 520px) { .cx-hint-menu button { grid-template-columns: 1fr auto; } .cx-hint-menu span { grid-column: 1 / -1; } }

/* Hoop Connections: feedback bubble over the grid */
.cx-grid-wrap { position: relative; }
.cx-toast {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  transform: translate(-50%, -50%);
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
  font-size: 1.1rem;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.cx-toast.show { animation: toast-in 0.18s ease-out; }
@keyframes toast-in { from { transform: translate(-50%, -30%) scale(0.9); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }

/* ---------- page transitions ---------- */
/* Browsers that support it cross-fade between pages; others fade the page in. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.22s; }
main { animation: page-in 0.3s ease-out; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- "New" badge ---------- */
.new-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--green);
  color: var(--on-tile);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  vertical-align: middle;
}

/* ---------- streak milestone ---------- */
.milestone {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(255, 107, 26, 0.25), rgba(255, 180, 58, 0.12));
  color: var(--accent-2);
  font-weight: 800;
  animation: pop 0.3s ease-out;
}

/* Hoop Connections: found groups hop, then slide in with each player's "why" */
.cx-tile.found { animation: hop 0.5s ease-in-out; background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cx-tile.found:nth-child(2n) { animation-delay: 0.05s; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-12px) scale(1.04); } }
.cx-group { animation: none; }
.cx-group.fresh { animation: group-in 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
@keyframes group-in { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: none; } }
.cx-group-names { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; }
.cx-member small { font-size: 0.78em; font-weight: 600; opacity: 0.7; }

/* Higher or Lower: comparison bars and on-fire streak */
.hl-bar { width: 80%; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; opacity: 0; transition: opacity 0.2s; }
.hl-card.compare .hl-bar { opacity: 1; }
.hl-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hl-card.hit .hl-bar, .hl-card.miss .hl-bar { background: rgba(11, 20, 17, 0.18); }
.hl-card.hit .hl-bar i, .hl-card.miss .hl-bar i { background: var(--on-tile); }
#streak.fire { color: var(--accent-2); text-shadow: 0 0 24px rgba(255, 107, 26, 0.6); animation: flicker 1.6s ease-in-out infinite; }
@keyframes flicker { 50% { text-shadow: 0 0 36px rgba(255, 150, 40, 0.85); } }

/* Teammate Chain: a new link draws itself, with a dot running down the line */
.link { position: relative; }
.link.fresh { border-left-color: transparent; }
.link.fresh::before, .link.fresh::after { content: ""; position: absolute; left: -2px; top: 0; }
.link.fresh::before {
  width: 2px;
  height: 100%;
  background: var(--green);
  transform-origin: top;
  animation: draw-line 0.45s ease-out both;
}
.link.fresh::after {
  width: 10px;
  height: 10px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: run-dot 0.6s ease-in-out both;
}
@keyframes draw-line { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes run-dot { from { top: 0; opacity: 1; } 85% { opacity: 1; } to { top: 100%; opacity: 0; } }
.link.fresh + .tile { animation: pop 0.35s ease-out 0.3s both; }

/* ---------- "Did you know?" (home page) ---------- */
.fact {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 22px;
  padding: 16px 18px;
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  box-shadow: inset 4px 0 0 var(--accent-2);
  animation: pop 0.3s ease-out;
}
.fact .avatar.md { width: 64px; }
.fact-body { min-width: 0; flex: 1; }
.fact-body .label { color: var(--accent-2); }
.fact-body p { margin: 4px 0 8px; font-size: 1.08rem; font-weight: 700; line-height: 1.35; }
.fact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.fact-link { color: var(--accent); font-size: 0.85rem; font-weight: 800; text-decoration: none; }
.fact-link:hover { text-decoration: underline; }
.fact-actions .ghost { padding: 6px 12px; font-size: 0.72rem; }
@media (max-width: 520px) { .fact { align-items: flex-start; } .fact .avatar.md { width: 48px; } }

/* ---------- career path ---------- */
.cp-head { margin-bottom: 18px; }
.cp-head .giant { margin-top: 6px; }
.cp-path { list-style: none; margin: 0 0 24px; padding: 0 0 0 16px; display: grid; gap: 10px; border-left: 3px solid var(--line); }
.cp-path li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 4px 0 0 var(--team);
  animation: pop 0.3s ease-out both;
}
.cp-path li::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 50%;
  width: 13px;
  height: 13px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--team);
  border: 3px solid var(--bg);
}
.cp-badge {
  flex: none;
  min-width: 52px;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--team);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  text-align: center;
  letter-spacing: 0.04em;
}
.cp-team { flex: 1; font-weight: 800; font-size: 1.05rem; }
.cp-years { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.cp-clues { margin-bottom: 8px; }
.cp-clues ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.cp-clues li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.cp-clues li.open { border: 1px solid transparent; background: var(--surface-2); color: var(--text); font-weight: 700; animation: pop 0.25s ease-out; }
.cp-clue-n { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--line); color: var(--text); font-size: 0.75rem; font-weight: 800; }
.cp-clues li.open .cp-clue-n { background: var(--accent-2); color: var(--on-accent); }
.cp-misses { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cp-misses li { padding: 4px 10px; border-radius: 999px; background: var(--red); color: var(--on-tile); font-size: 0.8rem; font-weight: 800; }
.cp-reveal { display: flex; align-items: center; gap: 16px; margin: 6px 0 4px; }
.cp-reveal .avatar.md { width: 72px; }
.cp-reveal .giant { margin: 0; }

/* ---------- blind résumé ---------- */
.br-head { margin-bottom: 18px; }
.br-head .giant { margin-top: 6px; }
.br-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.br-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px;
  border-radius: calc(var(--radius) + 4px);
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.br-card:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-2px); }
.br-card:disabled { cursor: default; opacity: 1; }   /* both cards lock after a pick; don't fade them */
.br-card.better { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.br-card.worse:not(.picked) { opacity: 0.7; }
.br-card.picked.worse { border-color: var(--red); }
.br-who { display: flex; align-items: center; gap: 10px; min-height: 52px; }
.br-who .avatar.md { width: 52px; }
.br-mystery {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.5rem;
}
.br-name { font-weight: 800; font-size: 1.2rem; line-height: 1.1; letter-spacing: -0.02em; }
.br-rows { display: grid; gap: 2px; }
.br-row { display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; border-radius: 6px; font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.br-row b { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
.br-row.edge { background: rgba(54, 226, 164, 0.1); }
.br-row.edge b { color: var(--green); }
.br-take, .br-ws { margin-top: 2px; padding: 10px; border-radius: var(--radius); text-align: center; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; }
.br-take { background: var(--accent); color: var(--on-accent); }
.br-ws { background: var(--surface-2); text-transform: none; letter-spacing: 0; font-size: 1rem; }
.br-card.better .br-ws { background: var(--green); color: var(--on-tile); }
.br-verdict { margin-top: 14px; }
.br-verdict .message { margin: 0 0 10px; }
.br-verdict .primary.wide { margin-top: 0; }
.br-dots { list-style: none; margin: 18px 0 0; padding: 0; display: flex; gap: 6px; justify-content: center; }
.br-dots li { width: 14px; height: 14px; border-radius: 4px; background: var(--line); }
.br-dots li.now { box-shadow: 0 0 0 2px var(--accent); }
.br-dots li.hit { background: var(--green); }
.br-dots li.miss { background: var(--red); }
@media (max-width: 520px) {
  .br-card { padding: 10px; }
  .br-row { padding: 4px 4px; font-size: 0.78rem; }
  .br-name { font-size: 1rem; }
}
.br-name small { display: block; margin-top: 2px; color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; }

/* Blind Résumé: Teams mode */
.br-team { background: var(--team); color: #fff; font-size: 0.95rem; letter-spacing: 0.04em; }
.br-scorers { color: var(--muted); font-size: 0.8rem; font-weight: 700; text-align: center; }
.br-footnote { margin: 8px 0 0; font-size: 0.8rem; text-align: center; }
@media (max-width: 520px) { .difficulty button { font-size: 0.72rem; letter-spacing: 0.04em; } }

/* Tabs for games made of several pages (Hindsight: Draft Redo | MVP Ballot) */
.game-tab-bar { grid-template-columns: repeat(2, 1fr); }
.game-tab-bar a {
  display: grid;
  place-items: center;
  padding: 10px 0;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.game-tab-bar a:hover { color: var(--text); }
.game-tab-bar a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }

/* Tab bar: one column per tab */
.game-tab-bar { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
@media (max-width: 520px) { .game-tab-bar a { font-size: 0.72rem; letter-spacing: 0.04em; } }

/* ---------- name the team ---------- */
.nt-types { grid-template-columns: repeat(3, 1fr); margin-bottom: 22px; }
.nt-slots { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.nt-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 2px dashed var(--line);
  background: var(--surface);
  animation: pop 0.3s ease-out both;
}
.nt-slot.got { border: 2px solid transparent; background: var(--green); color: var(--on-tile); background-image: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0) 60%); }
.nt-slot.got .sd-pos { background: var(--tint); color: var(--on-tile); }
.nt-slot.missed { border-style: solid; }
.nt-blank { width: 34px; height: 34px; flex: none; border-radius: 4px; background: var(--surface-2); }
.nt-body { flex: 1; min-width: 0; display: grid; }
.nt-name { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
.nt-sub { color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.nt-slot.got .nt-sub { color: inherit; opacity: 0.75; }
.nt-clue { display: inline-block; min-width: 0; padding: 1px 7px; font-size: 0.75rem; background: var(--team); }
.nt-check { font-weight: 800; font-size: 1.2rem; }

/* Snake Draft vs a friend */
.difficulty:has(> :nth-child(4)) { grid-template-columns: repeat(4, 1fr); }
.sd-names { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: -14px 0 24px; }
.sd-names label { display: grid; gap: 4px; }
.sd-names input { padding: 10px 12px; font-size: 1rem; }
@media (max-width: 620px) { .difficulty:has(> :nth-child(4)) { grid-template-columns: repeat(2, 1fr); } }

/* ---------- "Get the app" (home page) ---------- */
.install {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 22px;
  padding: 16px 18px;
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  border: 1px solid var(--accent);
  animation: pop 0.3s ease-out;
}
.install img { flex: none; border-radius: 14px; }
.install-body { flex: 1; min-width: 0; }
.install-body .label { color: var(--accent); }
.install-body p { margin: 4px 0 10px; font-weight: 600; line-height: 1.4; }
.install-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.install-actions .primary { padding: 8px 18px; font-size: 0.8rem; }
.install-actions .ghost { padding: 7px 14px; font-size: 0.72rem; }
/* Installed app: leave room for the phone's status bar and home bar. */
@media (display-mode: standalone) {
  main { padding-top: calc(env(safe-area-inset-top, 0px) + 24px); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); }
}

/* ---------- about ---------- */
.about { max-width: 44em; margin-top: 28px; }
.about .giant { margin: 8px 0 14px; }
.about-lead { font-size: 1.15rem; font-weight: 600; line-height: 1.5; color: var(--text); }
.about section { margin-top: 30px; }
.about h2 { margin: 0 0 8px; font-size: 1.3rem; letter-spacing: -0.02em; }
.about p { color: var(--muted); line-height: 1.6; }
.about a { color: var(--accent); }
.about-games { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.about-games li { padding: 12px 14px; border-radius: var(--radius); background: var(--surface); color: var(--muted); line-height: 1.45; }
.about-games b { color: var(--text); }
.about-games span { margin-left: 6px; color: var(--accent); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.credit a { color: inherit; }

/* ---------- archive ---------- */
.ar-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ar-day {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface);
}
.ar-date { display: grid; }
.ar-date small { color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.ar-games { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 6px; }
.ar-chip {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}
.ar-chip b { color: var(--accent); font-weight: 800; white-space: nowrap; }
.ar-chip.done b { color: var(--green); }
.ar-chip:hover { box-shadow: inset 0 0 0 2px var(--accent); }
.ar-empty { color: var(--muted); }
.today-done a, .ar-link { color: var(--accent); font-weight: 800; text-decoration: none; }
@media (max-width: 620px) { .ar-day { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Guess the Player ---------- */
.gp-head { margin-bottom: 8px; }
.gp-head .giant { margin-top: 6px; }
.gp-table-wrap { margin-top: 22px; overflow-x: auto; }
.gp-labels, .gp-cells { display: grid; grid-template-columns: repeat(6, minmax(58px, 1fr)); gap: 6px; }
.gp-labels { padding-left: 0; margin-bottom: 8px; color: var(--muted); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; text-align: center; }
.gp-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gp-row { display: grid; gap: 6px; animation: pop 0.25s ease-out; }
.gp-who { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; }
.gp-cell {
  min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 3px;
  padding: 4px; border-radius: 8px; background: var(--surface-2); color: var(--text);
  font-weight: 800; font-size: 0.85rem; text-align: center; font-variant-numeric: tabular-nums;
}
.gp-cell:first-child { box-shadow: inset 0 -4px 0 var(--team, transparent); }
.gp-cell.green { background: var(--green); color: var(--on-tile); }
.gp-cell.near { background: var(--near); color: var(--on-tile); }
.gp-cell i { font-style: normal; font-size: 1.05rem; }
.gp-row.right .gp-who b { color: var(--green); }
.gp-emoji { line-height: 1.25; font-size: 1.1rem; }
@media (max-width: 480px) {
  .gp-labels, .gp-cells { grid-template-columns: repeat(6, minmax(48px, 1fr)); gap: 4px; }
  .gp-cell { font-size: 0.74rem; min-height: 42px; }
}

/* ---------- Awards Grid ---------- */
.ag-wrap { margin: 18px auto 0; max-width: 640px; }
.ag-grid { display: grid; grid-template-columns: minmax(64px, 0.8fr) repeat(3, minmax(0, 1fr)); gap: 6px; }
.ag-corner { display: grid; place-items: center; opacity: 0.5; }
.ag-corner svg { width: 40%; max-width: 40px; }
.ag-head {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px;
  min-height: 64px; padding: 6px 4px; border-radius: 10px; background: var(--surface); text-align: center;
  font-size: 0.85rem; line-height: 1.15;
}
.ag-head small { color: var(--muted); font-size: 0.66rem; font-weight: 600; }
.ag-head.team { background: color-mix(in srgb, var(--team) 35%, var(--surface)); box-shadow: inset 0 -4px 0 var(--team); }
.ag-cell {
  aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 6px; border-radius: 10px; border: 2px solid var(--line); background: var(--surface-2); color: var(--text);
  font: inherit; cursor: pointer; position: relative; overflow: hidden;
}
.ag-cell:hover:not(.filled) { border-color: var(--accent); }
.ag-cell.selected { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.ag-cell.filled { border-color: var(--green); background: color-mix(in srgb, var(--green) 14%, var(--surface-2)); cursor: default; animation: pop 0.25s ease-out; }
.ag-cell.missed { opacity: 0.75; cursor: pointer; }
.ag-cell.peek { border-color: var(--near); }
.ag-cell .avatar.sm { width: 46%; }
.ag-name { font-size: 0.78rem; font-weight: 800; line-height: 1.1; text-align: center; }
.ag-pts { position: absolute; top: 4px; right: 6px; font-size: 0.66rem; font-weight: 800; color: var(--green); }
.ag-plus { font-size: 1.6rem; color: var(--muted); font-weight: 600; }
.ag-count { font-size: 0.8rem; color: var(--muted); font-weight: 800; }
.ag-emoji { line-height: 1.2; }
.ag-answers { margin-top: 18px; padding: 16px; border-radius: 12px; background: var(--surface); }
.ag-answer-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.ag-answer-list li { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9rem; }
.ag-answer-list li.mine a { color: var(--green); }
@media (max-width: 480px) {
  .ag-grid { grid-template-columns: 54px repeat(3, minmax(0, 1fr)); gap: 4px; }
  .ag-head { min-height: 54px; font-size: 0.72rem; }
  .ag-head small { display: none; }
  .ag-head.team small { display: block; }
  .ag-name { font-size: 0.66rem; }
}

/* ---------- Timeline ---------- */
.tl-lives { font-size: 1.6rem; letter-spacing: 0.05em; }
.tl-text { font-weight: 800; font-size: clamp(0.95rem, 3.2vw, 1.15rem); line-height: 1.2; }
.tl-badge {
  width: 52px; aspect-ratio: 1; flex: none; display: grid; place-items: center; border-radius: 8px;
  background: var(--team); color: #fff; font-weight: 900; font-size: 0.85rem; letter-spacing: 0.03em;
}
.tl-row.hit .rank-sub, .tl-row.near .rank-sub, .tl-row.miss .rank-sub { opacity: 0.9; font-weight: 800; }

/* Name the Team: Full Roster */
.nt-slots.nt-roster { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 6px; }
.nt-slots.nt-roster .nt-slot { padding-block: 6px; }
.nt-hurry { color: var(--red) !important; animation: pop 0.5s ease-out infinite alternate; }
.gp-cell.conf { background: var(--accent); color: var(--on-accent); }
.gp-team { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.gp-team small { font-size: 0.62rem; font-weight: 700; opacity: 0.75; white-space: nowrap; }
@media (max-width: 480px) { .gp-team small { font-size: 0.55rem; } }
.gp-hints { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.gp-hints li { display: flex; align-items: baseline; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); animation: pop 0.25s ease-out; }
.gp-hints .label { min-width: 70px; }

/* ---------- Stat Line ---------- */
.sl-line { display: grid; gap: 8px; margin-bottom: 22px; }
.sl-main { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sl-rest { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 8px; }
.sl-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 12px; background: var(--surface-2); animation: pop 0.25s ease-out; }
.sl-stat b { font-size: 1.25rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.sl-stat span { color: var(--muted); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; }
.sl-stat.big { padding: 18px 6px; background: color-mix(in srgb, var(--accent) 16%, var(--surface-2)); }
.sl-stat.big b { font-size: clamp(2rem, 8vw, 3.2rem); line-height: 1; }

/* ---------- Blind Draft ---------- */
.bd-lineup { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.bd-lineup li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 10px; border: 2px dashed var(--line); font-size: 0.75rem; font-weight: 700; text-align: center; min-height: 64px; justify-content: center; }
.bd-lineup li b { font-size: 0.85rem; font-weight: 900; }
.bd-lineup li.current { border-color: var(--accent); border-style: solid; }
.bd-lineup li.filled { border-style: solid; border-color: transparent; background: var(--surface-2); }
.bd-empty { color: var(--muted); }
.bd-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) { .bd-options { grid-template-columns: 1fr; } }
.bd-card {
  display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; animation: pop 0.25s ease-out both;
  transition: border-color 0.15s, transform 0.15s;
}
.bd-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.bd-tag { color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.bd-big, .bd-small { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bd-big div, .bd-small div { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 8px; background: var(--surface-2); }
.bd-big b { font-size: 1.5rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.bd-small b { font-size: 0.95rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.bd-big span, .bd-small span { color: var(--muted); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; }
.bd-reveal { display: grid; gap: 14px; margin-top: 20px; }
.bd-round ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.bd-round li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 2px solid transparent; }
.bd-round li.mine { border-color: var(--accent); }
.bd-round li:first-child b { color: var(--green); }
.bd-who { flex: 1; display: flex; flex-direction: column; font-weight: 800; }
.bd-who small { color: var(--muted); font-weight: 600; font-size: 0.75rem; }
.hl-mode { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hl-mode select { flex: 1; max-width: 340px; }

/* Today: play all, share your day, and the next-daily bar on game pages */
.today-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.today .message:empty { display: none; }
.today-done { margin-bottom: 0; }
.today-actions .primary, .next-daily-go { display: inline-flex; align-items: center; text-decoration: none; }
.next-daily { margin-top: 14px; padding: 16px; border-radius: calc(var(--radius) + 4px); background: var(--surface); border: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; animation: pop 0.3s ease-out; }
.next-daily .result-actions { margin-top: 0; }
.next-daily .message { flex-basis: 100%; margin: 0; }
a.primary {
  display: inline-flex; align-items: center; padding: 13px 22px; border-radius: var(--radius); background: var(--accent); color: var(--on-accent);
  font-weight: 800; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; box-shadow: 0 6px 18px rgba(255, 107, 26, 0.22);
}
a.primary:hover { filter: brightness(1.06); }

/* ---------- Draft Day ---------- */
.dd-card {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 22px;
  margin-bottom: 22px; padding: 20px 24px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 14%, var(--surface-2)); animation: pop 0.25s ease-out;
}
.dd-year { grid-row: 1 / 3; font-size: clamp(2.6rem, 10vw, 4.4rem); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.dd-pick { font-size: clamp(2rem, 8vw, 3.2rem); font-weight: 900; color: var(--accent); line-height: 1; display: flex; align-items: baseline; gap: 8px; }
.dd-pick small { color: var(--muted); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.dd-round { color: var(--muted); font-weight: 700; font-size: 0.85rem; }

/* ---------- College Connect ---------- */
.cc-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 10px; margin-bottom: 8px; }
.cc-side { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 20px; border-radius: 16px; background: var(--surface-2); animation: pop 0.25s ease-out; min-width: 0; }
.cc-side b { font-size: clamp(1.4rem, 5vw, 2.2rem); font-weight: 900; line-height: 1.05; overflow-wrap: anywhere; }
.cc-side small { color: inherit; opacity: 0.75; font-size: 0.72rem; font-weight: 700; }
.cc-team { background: var(--team); color: #fff; }
.cc-team .label { color: rgba(255, 255, 255, 0.8); }
.cc-college { background: color-mix(in srgb, var(--accent) 16%, var(--surface-2)); }
.cc-x { align-self: center; font-size: 2rem; font-weight: 900; color: var(--muted); }
@media (max-width: 480px) { .cc-pair { grid-template-columns: 1fr; } .cc-x { justify-self: center; line-height: 0.6; } }
@media (min-width: 901px) {
  .hub.four .hub-card { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .hub.four .hub-title { font-size: 1.05rem; }
}

/* ---------- polish: hover art, result moment, skeletons, shake, page fades ---------- */
/* Card art comes alive on hover: its pieces lift in a little wave. */
.hub-art svg > *, .today-art svg > * { transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); transform-box: fill-box; transform-origin: center; }
.hub-card:hover .hub-art svg > :nth-child(odd), .today-tile:hover .today-art svg > :nth-child(odd) { transform: translateY(-3px); }
.hub-card:hover .hub-art svg > :nth-child(even), .today-tile:hover .today-art svg > :nth-child(even) { transform: scale(1.08); }
.hub-card:hover .hub-art svg > :nth-child(3n), .today-tile:hover .today-art svg > :nth-child(3n) { transition-delay: 0.05s; }

/* The result card slides up with a little bounce when it appears. */
.result:not([hidden]) { animation: result-in 0.5s cubic-bezier(0.2, 1.3, 0.4, 1) both; }
@keyframes result-in { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }

/* Loading: a shimmering placeholder card instead of plain text. */
.status:not(.error):not([hidden]) {
  display: grid; align-content: end; min-height: 180px; padding: 18px; margin: 10px 0 0; border-radius: 16px;
  font-size: 0.85rem; color: var(--muted);
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) 18px 18px / 45% 18px no-repeat,
    linear-gradient(var(--surface-2), var(--surface-2)) 18px 50px / 70% 12px no-repeat,
    linear-gradient(var(--surface-2), var(--surface-2)) 18px 72px / 60% 12px no-repeat,
    linear-gradient(100deg, var(--surface) 40%, color-mix(in srgb, var(--surface-2) 70%, var(--text) 4%) 50%, var(--surface) 60%) 0 0 / 200% 100%;
  animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { to { background-position: 18px 18px, 18px 50px, 18px 72px, -200% 0; } }

/* A wrong guess shakes the input and flashes it red. */
.shake { animation: shake 0.4s ease-in-out; border-color: var(--red) !important; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* Pages fade into each other (browsers that support it). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  .result:not([hidden]), .status:not(.error):not([hidden]), .shake { animation: none; }
  @view-transition { navigation: none; }
}

/* ---------- icons ---------- */
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
button .icon, a .icon { margin-right: 0.15em; }
.menu-button .icon { width: 1em; height: 1em; margin: 0; }
.icon-button {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
}
.icon-button:hover { border-color: var(--muted); }
.icon-button .icon { margin: 0; }
.howto-button .icon { width: 1.2em; height: 1.2em; margin: 0; }
.today-check .icon { width: 0.85em; height: 0.85em; margin: 0; stroke-width: 3; }
.today-streak .icon { color: var(--accent); }

/* ---------- one header for every game ---------- */
.topbar { gap: 10px; }
.topbar-art { width: 38px; flex: none; display: grid; }
.topbar-art svg { width: 100%; height: auto; }
.topbar-tag { margin-right: auto; }
.topbar-tag {
  order: 0; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--accent);
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
}
@media (max-width: 520px) { .topbar-tag { display: none; } .topbar-art { width: 30px; } }

/* ---------- phone tab bar ---------- */
.tabbar { display: none; }
@media (max-width: 640px) {
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .tab { display: grid; justify-items: center; gap: 2px; padding: 6px 0; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 0.68rem; font-weight: 800; }
  .tab .icon { width: 22px; height: 22px; margin: 0; }
  .tab.on { color: var(--accent); }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .nav-players { display: none; }
}

/* ---------- light mode ---------- */
:root[data-theme="light"] {
  --bg: #f6f3ee;
  --surface: #ffffff;
  --surface-2: #efeae2;
  --line: #ddd5c9;
  --text: #17181d;
  --muted: #6b6a74;
  --accent: #e85a0c;
  --accent-2: #f59e0b;
  --on-accent: #ffffff;
  --green: #22c58b;
  --near: #f5b730;
  --red: #ef4a64;
  --on-tile: #0b1411;
  --tint: rgba(11, 20, 17, 0.1);
  color-scheme: light;
}
:root[data-theme="light"] body {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='900' viewBox='0 0 1200 900' fill='none' stroke='%23000000' stroke-opacity='0.05' stroke-width='3'%3E%3Ccircle cx='600' cy='0' r='190'/%3E%3Ccircle cx='600' cy='0' r='70'/%3E%3Cpath d='M130 900V700a470 470 0 0 1 940 0v200'/%3E%3Crect x='440' y='560' width='320' height='340'/%3E%3Ccircle cx='600' cy='560' r='160'/%3E%3C/svg%3E") top center / 1200px auto no-repeat fixed,
    radial-gradient(1000px 520px at 50% -140px, rgba(255, 107, 26, 0.12), transparent 70%) top center / 100% 700px no-repeat,
    var(--bg);
}
:root[data-theme="light"] .hl-bar { background: rgba(0, 0, 0, 0.08); }
:root[data-theme="light"] .hub-card, :root[data-theme="light"] .today, :root[data-theme="light"] .result { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 14px rgba(0, 0, 0, 0.04); }

/* Results tinted with the answer's team color. */
.result.tinted { background-image: radial-gradient(700px 260px at 0% 0%, color-mix(in srgb, var(--result-tint) 30%, transparent), transparent 72%); }
.result.tinted:not(.lose) { border-top-color: var(--result-tint); }

/* ---------- All eras | Modern tabs ---------- */
.era-tabs { display: inline-flex; gap: 4px; padding: 4px; margin: -4px 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.era-tabs button {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 14px; border: 0; border-radius: 999px; background: transparent;
  color: var(--muted); font: inherit; font-size: 0.8rem; font-weight: 800; cursor: pointer;
}
.era-tabs button small { font-size: 0.68rem; font-weight: 700; opacity: 0.8; }
.era-tabs button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.modern-era .era-tabs button[aria-pressed="true"] { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: var(--on-accent); }

/* ---------- player picker ---------- */
.picker { position: relative; flex: 1; min-width: 0; display: flex; }
.picker input { width: 100%; padding-left: 46px; transition: border-color 0.15s, box-shadow 0.15s; }
.picker input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.picker-icon { position: absolute; left: 15px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.picker input:focus ~ .picker-icon, .picker:focus-within .picker-icon { color: var(--accent); }
.picker-icon svg { width: 100%; height: 100%; display: block; }
.picker-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 25; margin: 0; padding: 6px; list-style: none;
  max-height: min(380px, 55vh); overflow-y: auto; border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line); background: var(--surface); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  animation: picker-in 0.14s ease-out;
}
@keyframes picker-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.picker-menu li { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: var(--radius); cursor: pointer; }
.picker-menu li.active { background: color-mix(in srgb, var(--accent) 16%, var(--surface-2)); }
.picker-menu li .avatar.xs { width: 36px; flex: none; }
.picker-text { display: flex; flex-direction: column; min-width: 0; }
.picker-text b { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker-text mark { background: none; color: var(--accent); }
.picker-text small { color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.picker-empty { color: var(--muted); font-weight: 700; cursor: default !important; }
:root[data-theme="light"] .picker-menu { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12); }

/* College Connect: Name the College */
.cc-modes { margin-bottom: 8px; }
.cc-player { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 16px; background: var(--surface-2); animation: pop 0.25s ease-out; }
.cc-player .avatar.md { width: 72px; }
.cc-player-body { display: grid; gap: 8px; min-width: 0; }
.cc-player-body > b { font-size: clamp(1.5rem, 5vw, 2.2rem); font-weight: 900; line-height: 1.05; }
.cc-player-teams { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-clues { grid-column: 1 / -1; list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.cc-clues li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius); border: 1px dashed var(--line); color: var(--muted); font-weight: 600; }
.cc-clues li.open { border: 1px solid transparent; background: var(--surface-2); color: var(--text); font-weight: 700; animation: pop 0.25s ease-out; }
.cc-clues li.open .cp-clue-n { background: var(--accent-2); color: var(--on-accent); }
