/* ==========================================================================
   OSRS Clan Bingo – stylesheet (prototype v0.3)
   Mood: deep night blue, frosted panels and minimal blue flames.
   The flames are the one decorative motif: the crest, a faint glow along the
   bottom of the screen, the event tile on the front page and the reveal
   animation on the team boards.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  color-scheme: dark;

  /* surfaces (night blue) */
  --bg: #050b18;
  --surface: #0a1428;
  --surface-2: #0e1a33;
  --surface-3: #142545;
  --line: #1c3058;
  --line-soft: #13244a;
  --line-strong: #29457a;

  /* blue flame: deep base -> bright body -> pale tip */
  --flame-deep: #1f63d1;
  --flame: #4da3ff;
  --flame-tip: #a6d8ff;
  --flame-core: #e3f3ff;
  --frost: #e4efff;       /* headings */
  --ink: #0b1d40;         /* text on frosted panels */
  --ink-2: #33507f;

  /* text */
  --text: #e8efff;
  --text-2: #a9bbdd;
  --text-3: #7487b0;

  /* status (reserved – never use for teams) */
  --open: #7487b0;
  --pending: #e8b923;
  --pending-text: #f5d16a;
  --completed: #4cbb5a;
  --completed-text: #86e091;
  --rejected: #e5534b;
  --rejected-text: #f39089;

  /* shape */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 10px 30px rgba(0, 4, 14, .5);
  --shadow-lg: 0 30px 80px rgba(0, 4, 14, .65);

  --font-display: "Palatino Linotype", "Book Antiqua", Palatino, "Iowan Old Style", Georgia, serif;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;

  --container: 1240px;
  --topbar-h: 64px;

  /* reveal animation on the team page (see js/pages/team.js) */
  --burn-ms: 900ms;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 480px at 50% -160px, rgba(77, 163, 255, .14), transparent 70%),
    radial-gradient(900px 500px at 50% 115%, rgba(31, 99, 209, .16), transparent 70%);
  background-attachment: fixed;
}

body.has-modal { overflow: hidden; }

main { flex: 1; }
main.container { padding-top: 28px; padding-bottom: 56px; }

a { color: var(--flame-tip); }
a:hover { color: #d6ecff; }

h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }

img { max-width: 100%; display: block; }

:focus-visible { outline: 3px solid var(--flame-tip); outline-offset: 2px; border-radius: 4px; }

.icon { width: 20px; height: 20px; flex: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.muted { color: var(--text-3); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- 3. Topbar & navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }

.topbar {
  position: relative;
  background: rgba(6, 13, 30, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 4, 14, .45);
}
/* a thin blue flame line along the bottom of the bar */
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77, 163, 255, .0) 10%, var(--flame) 50%, rgba(77, 163, 255, 0) 90%, transparent);
  opacity: .7;
}

.topbar__inner { position: relative; display: flex; align-items: center; gap: 24px; height: var(--topbar-h); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand:hover { color: inherit; }
.crest { width: 34px; height: 38px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__title { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--flame-tip); letter-spacing: .02em; }
.brand__sub { font-size: .72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }

.nav { margin-left: auto; display: flex; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  color: var(--text-2); font-weight: 600; font-size: .92rem; text-decoration: none;
  transition: background .15s, color .15s;
}
.nav__link .icon { width: 18px; height: 18px; }
.nav__link:hover { background: rgba(77, 163, 255, .08); color: var(--text); }
.nav__link.is-active {
  color: var(--flame-tip);
  background: rgba(77, 163, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(77, 163, 255, .35);
}
.nav__badge {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--pending); color: #1a1405; font-size: .72rem; font-weight: 800;
}
.nav__badge[hidden] { display: none; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--surface-3); border: 1px solid var(--line-strong); color: var(--text);
  align-items: center; justify-content: center; cursor: pointer;
}

/* ---------- 4. Buttons, badges, tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: .93rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: filter .15s, transform .05s, background .15s, border-color .15s, color .15s;
}
.btn .icon { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.btn--primary {
  background: linear-gradient(180deg, #c9e8ff, #6fb4ff);
  color: #04163a; border-color: #2f7fe0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 2px 0 #12408f, 0 6px 18px rgba(77, 163, 255, .28);
}
.btn--primary:hover { filter: brightness(1.06); color: #04163a; }

.btn--secondary { background: var(--surface-3); color: var(--text); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--flame); color: var(--text); }

.btn--ghost { background: transparent; color: var(--text-2); border-color: var(--line); }
.btn--ghost:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, .03); }

.btn--approve {
  background: linear-gradient(180deg, #5bc867, #3a9a48); color: #06180a; border-color: #2b6e35;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 2px 0 #1e4d25;
}
.btn--approve:hover { filter: brightness(1.08); color: #06180a; }

.btn--reject { background: transparent; color: var(--rejected-text); border-color: rgba(229, 83, 75, .5); }
.btn--reject:hover { background: rgba(229, 83, 75, .12); color: #ffb3ad; }

.btn--sm { padding: 6px 12px; font-size: .85rem; border-radius: 8px; }
.btn--block { width: 100%; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px 3px 8px; border-radius: 999px; border: 1px solid;
  font-size: .78rem; font-weight: 700; white-space: nowrap; line-height: 1.4;
}
.badge .icon { width: 14px; height: 14px; stroke-width: 2.4; }
.badge--open { color: var(--text-2); border-color: var(--line-strong); background: rgba(113, 134, 176, .08); }
.badge--pending { color: var(--pending-text); border-color: rgba(232, 185, 35, .45); background: rgba(232, 185, 35, .12); }
.badge--completed { color: var(--completed-text); border-color: rgba(76, 187, 90, .45); background: rgba(76, 187, 90, .12); }
.badge--rejected { color: var(--rejected-text); border-color: rgba(229, 83, 75, .45); background: rgba(229, 83, 75, .12); }
.badge__count { font-variant-numeric: tabular-nums; opacity: .9; }

.team-tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--text); text-decoration: none; }
a.team-tag:hover { color: var(--flame-tip); }
.team-dot {
  width: 10px; height: 10px; border-radius: 3px; flex: none;
  background: var(--team); box-shadow: 0 0 0 2px rgba(0, 0, 0, .35);
}

.points-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 999px;
  background: rgba(77, 163, 255, .12); border: 1px solid rgba(166, 216, 255, .35);
  color: var(--flame-tip); font-weight: 800; font-size: .8rem; font-variant-numeric: tabular-nums;
}

.proto-pill {
  display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px;
  background: rgba(232, 185, 35, .12); color: var(--pending-text); border: 1px solid rgba(232, 185, 35, .4);
  font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; vertical-align: 1px;
}

/* ---------- 5. Cards & layout ---------- */
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(190, 220, 255, .04), 0 6px 20px rgba(0, 0, 0, .25);
  min-width: 0;
}
.card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 16px 20px; border-bottom: 1px solid var(--line-soft);
}
.card__title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; color: var(--frost);
}
.card__title .icon { color: var(--flame); }
.card__sub { font-size: .85rem; color: var(--text-3); }
.card__body { padding: 18px 20px; }
.card__foot { padding: 12px 20px; border-top: 1px solid var(--line-soft); }

.stack { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.grid-home { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.grid-team { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.grid-form { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.grid-admin { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }

.sticky-side { position: sticky; top: calc(var(--topbar-h) + 20px); }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.2rem); color: var(--frost); }
.page-head p { color: var(--text-2); margin-top: 6px; max-width: 64ch; }

.eyebrow { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--flame); font-weight: 700; }

.empty { padding: 28px 20px; text-align: center; color: var(--text-3); }

.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 16px; border-radius: var(--radius);
  border: 1px dashed rgba(232, 185, 35, .45); background: rgba(232, 185, 35, .06);
  color: var(--text-2); font-size: .9rem; margin-bottom: 20px;
}
.notice .icon { color: var(--pending); margin-top: 1px; }
.notice strong { color: var(--text); }

/* ---------- 6. Home: hero & countdown ---------- */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 32px; align-items: center;
  padding: 32px; margin-bottom: 24px;
  border-radius: var(--radius-lg); border: 1px solid var(--line-strong);
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(166, 216, 255, .10), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, #0f1f3f, #08112a);
  box-shadow: var(--shadow);
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2rem, 4.2vw, 3.1rem); color: var(--frost);
  margin: 8px 0 8px; text-shadow: 0 2px 0 rgba(0, 0, 0, .5);
}
.hero__tagline { font-family: var(--font-display); font-style: italic; color: var(--flame-tip); font-size: 1.12rem; }
.hero__desc { color: var(--text-2); max-width: 58ch; margin-top: 10px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 20px; }
.meta-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 8px;
  background: rgba(0, 0, 0, .28); border: 1px solid var(--line);
  font-size: .87rem; color: var(--text-2);
}
.meta-chip .icon { width: 16px; height: 16px; color: var(--flame); }
.meta-chip strong { color: var(--text); font-weight: 650; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.frost {
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, #f6fbff, transparent 55%),
    radial-gradient(circle at 90% 95%, #a9c9f2, transparent 60%),
    #d4e6fc;
  box-shadow: inset 0 0 0 1px rgba(40, 70, 120, .3), inset 0 0 40px rgba(40, 90, 170, .2), 0 10px 30px rgba(0, 4, 14, .5);
}

.countdown { position: relative; border-radius: 14px; padding: 22px; }
.countdown__label {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em;
  font-size: .8rem; color: var(--ink-2); font-weight: 700;
}
.countdown__label .icon { width: 18px; height: 18px; }
.countdown__units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 16px; }
.cd-unit {
  background: linear-gradient(180deg, #12254a, #0a1730); color: var(--flame-tip);
  border-radius: 10px; padding: 10px 4px 8px; text-align: center;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .25);
}
.cd-unit__value { display: block; font-size: 2rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-unit__label { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: #8fb4e6; margin-top: 5px; }
.countdown__ended { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin: 12px 0 16px; }
.event-progress__row { display: flex; justify-content: space-between; font-size: .84rem; font-weight: 650; color: var(--ink-2); margin-bottom: 6px; }
.event-progress__track { height: 8px; border-radius: 999px; background: rgba(10, 30, 70, .22); overflow: hidden; }
.event-progress__fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1f63d1, #0b2a66); }

/* stat tiles */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.stat__icon {
  width: 42px; height: 42px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: rgba(77, 163, 255, .1); color: var(--flame); border: 1px solid rgba(77, 163, 255, .25);
}
.stat__icon--pending { background: rgba(232, 185, 35, .1); color: var(--pending); border-color: rgba(232, 185, 35, .3); }
.stat__icon--completed { background: rgba(76, 187, 90, .1); color: var(--completed); border-color: rgba(76, 187, 90, .3); }
.stat__label { font-size: .8rem; color: var(--text-3); }
.stat__value { font-size: 1.6rem; font-weight: 700; line-height: 1.15; color: var(--text); }
.stat__value small { font-size: .85rem; color: var(--text-3); font-weight: 600; }

/* ---------- 7. Leaderboard ---------- */
.lb { width: 100%; border-collapse: separate; border-spacing: 0; }
.lb th {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--text-3);
  text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 700;
}
.lb th.ta-r, .lb td.ta-r { text-align: right; }
.lb td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.lb tr:last-child td { border-bottom: 0; }
.lb-row { cursor: pointer; transition: background .15s; }
.lb-row td:first-child { box-shadow: inset 3px 0 0 var(--team); }
.lb-row:hover td { background: rgba(77, 163, 255, .05); }
.lb-row--leader td { background: rgba(166, 216, 255, .045); }

.rank {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  font-weight: 800; font-variant-numeric: tabular-nums;
  background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line-strong);
}
.rank--1 { background: radial-gradient(circle at 35% 30%, #fbe7a4, #b8862b); color: #2a1d06; border-color: #e9c262; box-shadow: 0 0 16px rgba(243, 210, 122, .35); }
.rank--2 { background: radial-gradient(circle at 35% 30%, #f1f4f6, #9aa4ae); color: #1d232a; border-color: #cfd6dc; }
.rank--3 { background: radial-gradient(circle at 35% 30%, #f0c09a, #9c5e33); color: #2a1407; border-color: #d39466; }

.lb-team { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lb-team__name { font-weight: 700; font-size: 1.02rem; color: var(--text); text-decoration: none; }
.lb-team__name:hover { color: var(--flame-tip); }
.lb-team__meta { font-size: .8rem; color: var(--text-3); }
.lb-team__mobile { display: none; margin-top: 8px; }

.lb-progress { display: flex; flex-direction: column; gap: 6px; min-width: 170px; }
.lb-progress__label { font-size: .82rem; color: var(--text-2); }
.lb-progress__label strong { color: var(--text); }

.lb-points { font-size: 1.55rem; font-weight: 800; color: var(--flame-tip); font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; }
.lb-points small { font-size: .74rem; color: var(--text-3); font-weight: 650; margin-left: 3px; }

/* segmented progress bar: completed | in review | open */
.segbar { display: flex; gap: 2px; height: 8px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.segbar > span { height: 100%; border-radius: 999px; }
.segbar__done { background: var(--completed); }
.segbar__pending { background: repeating-linear-gradient(135deg, var(--pending) 0 4px, #b98f12 4px 8px); }
.segbar--lg { height: 12px; }

/* ---------- 8. Chart ---------- */
.chart-wrap { position: relative; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 8px; }
.chart-legend__item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 6px; border-radius: 6px; border: 0; background: none;
  color: var(--text-2); font: inherit; font-size: .85rem; cursor: pointer;
}
.chart-legend__item:hover, .chart-legend__item:focus-visible { color: var(--text); background: rgba(255, 255, 255, .04); }
.chart-legend__key { width: 16px; height: 3px; border-radius: 2px; background: var(--team); }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .grid-line { stroke: #172a4d; stroke-width: 1; }
.chart .axis-label { fill: var(--text-3); font-size: 11px; font-family: var(--font-body); }
.chart .series { transition: opacity .15s; }
.chart .series-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .end-label { fill: var(--text); font-size: 12px; font-weight: 650; font-family: var(--font-body); }
.chart .end-label tspan.v { fill: var(--text-2); font-weight: 500; }
.chart .leader { stroke: var(--text-3); stroke-width: 1; }
.chart .crosshair { stroke: var(--text-3); stroke-width: 1; }
.chart .now-line { stroke: var(--flame-deep); stroke-width: 1; }
.chart .now-label { fill: var(--flame); font-size: 11px; font-weight: 700; }
.chart.is-focused .series { opacity: .18; }
.chart.is-focused .series.is-active { opacity: 1; }
.chart-tip {
  position: absolute; top: 0; left: 0; pointer-events: none; z-index: 5;
  min-width: 180px; padding: 10px 12px; border-radius: 10px;
  background: rgba(6, 12, 26, .96); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  font-size: .84rem; opacity: 0; transition: opacity .12s;
}
.chart-tip.is-visible { opacity: 1; }
.chart-tip__time { color: var(--text-3); font-size: .76rem; margin-bottom: 6px; }
.chart-tip__row { display: grid; grid-template-columns: 14px auto 1fr; align-items: center; gap: 8px; padding: 2px 0; }
.chart-tip__key { width: 14px; height: 3px; border-radius: 2px; background: var(--team); }
.chart-tip__row strong { font-variant-numeric: tabular-nums; color: var(--text); text-align: right; min-width: 30px; }
.chart-tip__row span:last-child { color: var(--text-2); }
.chart-table { margin-top: 12px; font-size: .85rem; }
.chart-table summary { cursor: pointer; color: var(--text-3); }
.chart-table summary:hover { color: var(--text-2); }
.chart-table table { width: 100%; border-collapse: collapse; margin-top: 10px; font-variant-numeric: tabular-nums; }
.chart-table th, .chart-table td { padding: 6px 8px; border-bottom: 1px solid var(--line-soft); text-align: right; }
.chart-table th:first-child, .chart-table td:first-child { text-align: left; }
.chart-table th { color: var(--text-3); font-weight: 650; }
.chart-table-scroll { overflow-x: auto; }

/* ---------- 9. Activity feed & submission list ---------- */
.feed { list-style: none; margin: 0; padding: 0; }
.feed__item { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line-soft); }
.feed__item:last-child { border-bottom: 0; }
.feed__icon {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--text-2); background: var(--surface-3);
}
.feed__icon .icon { width: 16px; height: 16px; stroke-width: 2.2; }
.feed__icon--pending { color: var(--pending); border-color: rgba(232, 185, 35, .4); background: rgba(232, 185, 35, .08); }
.feed__icon--completed { color: var(--completed); border-color: rgba(76, 187, 90, .4); background: rgba(76, 187, 90, .08); }
.feed__icon--rejected { color: var(--rejected); border-color: rgba(229, 83, 75, .4); background: rgba(229, 83, 75, .08); }
.feed__text { font-size: .9rem; color: var(--text-2); line-height: 1.45; }
.feed__text strong { color: var(--text); font-weight: 650; }
.feed__text .team-tag { font-size: inherit; }
.feed__time { font-size: .77rem; color: var(--text-3); margin-top: 2px; }

.sub-list { list-style: none; margin: 0; padding: 0; }
.sub-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line-soft); }
.sub-item:last-child { border-bottom: 0; }
.sub-item--new { background: linear-gradient(90deg, rgba(232, 185, 35, .10), transparent 70%); }
.sub-item__art {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface-3); border: 1px solid var(--line); color: var(--flame);
}
.sub-item__art .icon { width: 24px; height: 24px; }
.sub-item__title { font-weight: 650; color: var(--text); font-size: .92rem; }
.sub-item__meta { font-size: .8rem; color: var(--text-3); }
.sub-item__note { font-size: .8rem; color: var(--text-2); font-style: italic; margin-top: 2px; }

/* ---------- 10. Team page ---------- */
.team-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.team-switch a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text-2); font-weight: 650; font-size: .88rem; text-decoration: none;
}
.team-switch a:hover { color: var(--text); border-color: var(--line-strong); }
.team-switch a.is-active { color: var(--text); border-color: var(--team); background: color-mix(in srgb, var(--team) 16%, var(--surface)); }

.team-hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
  padding: 26px 28px 26px 34px; margin-bottom: 24px;
  border-radius: var(--radius-lg); border: 1px solid var(--line-strong);
  background:
    radial-gradient(500px 260px at 0% 0%, color-mix(in srgb, var(--team) 30%, transparent), transparent 70%),
    linear-gradient(135deg, #0f1e3c, #08112a);
  box-shadow: var(--shadow);
}
.team-hero::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--team); }
.team-hero__id { display: flex; align-items: center; gap: 18px; min-width: 0; }
.team-emblem {
  flex: none; width: 68px; height: 76px; display: grid; place-items: center;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--team) 85%, #fff 15%), color-mix(in srgb, var(--team) 70%, #000 30%));
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: #fff;
  text-shadow: 0 2px 2px rgba(0, 0, 0, .45); padding-bottom: 8px;
}
.team-hero__name { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.5rem); color: var(--frost); }
.team-hero__motto { font-style: italic; color: var(--text-2); margin-top: 4px; }
.team-hero__progress { margin-top: 14px; max-width: 420px; }
.team-hero__progress-label { display: flex; justify-content: space-between; font-size: .85rem; color: var(--text-2); margin-bottom: 6px; }
.team-hero__progress-label strong { color: var(--text); }
.team-hero__stats { display: flex; gap: 12px; flex-wrap: wrap; }
.hstat { background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; min-width: 112px; }
.hstat__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); font-weight: 700; }
.hstat__value { font-size: 1.9rem; font-weight: 800; line-height: 1.1; color: var(--text); }
.hstat__value small { font-size: .9rem; color: var(--text-3); font-weight: 650; }
.hstat--points .hstat__value { color: var(--flame-tip); }

.board-card .card__head { border-bottom: 0; padding-bottom: 6px; }
.board-card__body { padding: 8px 20px 22px; }
.status-legend { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 11. Bingo board ---------- */
.board {
  --gap: 10px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #24406f;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 12px),
    linear-gradient(180deg, #10203f, #0b1630);
  box-shadow: inset 0 0 0 3px #060d1c, inset 0 0 0 4px rgba(166, 216, 255, .22), 0 14px 40px rgba(0, 0, 0, .5);
}
.board__letters {
  display: grid; grid-template-columns: repeat(var(--size), minmax(0, 1fr)); gap: var(--gap);
  margin-bottom: 10px; text-align: center;
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; line-height: 1; color: var(--flame);
  text-shadow: 0 2px 0 #000, 0 0 18px rgba(166, 216, 255, .25);
}
.board__grid { display: grid; grid-template-columns: repeat(var(--size), minmax(0, 1fr)); gap: var(--gap); }

.tile {
  position: relative; overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 24px 6px 8px;
  border-radius: 12px; border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #142749, #0e1c37);
  color: var(--text-2); font: inherit; text-align: center; cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.tile:hover { transform: translateY(-2px); border-color: var(--flame); box-shadow: 0 8px 20px rgba(0, 0, 0, .45), 0 0 0 1px rgba(166, 216, 255, .3); }
.tile:focus-visible { outline: 3px solid var(--flame-tip); outline-offset: 2px; }

.tile__art { width: 31%; max-width: 46px; min-width: 20px; aspect-ratio: 1; flex: none; color: #5f86c4; }
.tile__art .icon, .tile__art img { width: 100%; height: 100%; }
.tile__art .icon { stroke-width: 1.6; }
.tile__name {
  font-weight: 700; font-size: clamp(.66rem, 1.05vw, .86rem); line-height: 1.22; color: var(--text-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-bottom: 1px;
}
.tile__state { font-size: .64rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 800; color: var(--text-3); }
.tile__points {
  position: absolute; top: 7px; right: 7px;
  min-width: 26px; height: 21px; padding: 0 6px; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, .45); color: var(--flame-tip); border: 1px solid rgba(166, 216, 255, .35);
  font-size: .72rem; font-weight: 800; font-variant-numeric: tabular-nums;
}
.tile__seal {
  position: absolute; top: 7px; left: 7px;
  width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--text-3);
}
.tile__seal .icon { width: 13px; height: 13px; stroke-width: 2.6; }

/* status: in review */
.tile--pending {
  border: 1px dashed rgba(232, 185, 35, .85);
  background:
    repeating-linear-gradient(135deg, rgba(232, 185, 35, .11) 0 6px, rgba(232, 185, 35, .03) 6px 12px),
    linear-gradient(180deg, #142749, #0e1c37);
}
.tile--pending .tile__seal { background: var(--pending); border-color: var(--pending); color: #1a1405; }
.tile--pending .tile__art { color: #e3c062; }
.tile--pending .tile__name { color: var(--text); }
.tile--pending .tile__state { color: var(--pending-text); }

/* status: completed */
.tile--completed {
  border-color: rgba(76, 187, 90, .9);
  background:
    radial-gradient(circle at 50% 38%, rgba(76, 187, 90, .32), transparent 70%),
    linear-gradient(180deg, #1f3a23, #152519);
  box-shadow: inset 0 0 0 1px rgba(134, 224, 145, .15), 0 0 18px rgba(76, 187, 90, .16);
}
.tile--completed .tile__seal { background: var(--completed); border-color: var(--completed); color: #06180a; box-shadow: 0 0 0 3px rgba(76, 187, 90, .25); }
.tile--completed .tile__art { color: var(--flame-tip); }
.tile--completed .tile__name { color: #fff; }
.tile--completed .tile__state { color: var(--completed-text); }

/* briefly highlight a tile whose status just changed */
.tile.is-flash { animation: tileFlash 1.2s ease-out var(--d, 0ms); }
@keyframes tileFlash {
  0% { box-shadow: 0 0 0 0 rgba(166, 216, 255, .85); }
  100% { box-shadow: 0 0 0 14px rgba(166, 216, 255, 0); }
}

/* ---------- 12. Players ---------- */
.players { list-style: none; margin: 0; padding: 0; }
.player { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 11px 20px; border-bottom: 1px solid var(--line-soft); }
.player:last-child { border-bottom: 0; }
.player__pos { font-size: .8rem; color: var(--text-3); font-variant-numeric: tabular-nums; font-weight: 700; }
.player__name { display: flex; align-items: center; gap: 6px; font-weight: 650; color: var(--text); min-width: 0; }
.player__name .icon { width: 15px; height: 15px; color: var(--flame); }
.player__meta { font-size: .78rem; color: var(--text-3); }
.player__points { font-weight: 800; color: var(--flame-tip); font-variant-numeric: tabular-nums; text-align: right; }
.player__points small { color: var(--text-3); font-weight: 600; font-size: .75rem; }
.player__bar { grid-column: 2 / -1; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.player__bar span { display: block; height: 100%; border-radius: inherit; background: var(--team); }

/* ---------- 13. Modal & tile details ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(2, 6, 16, .74); backdrop-filter: blur(3px); }
.modal__panel {
  position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  border-radius: 16px; border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #11203d, #0b1630); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .18s, transform .18s;
}
.modal__panel:focus { outline: none; }
.modal__panel--wide { width: min(940px, 100%); }
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, .4); border: 1px solid var(--line-strong); color: var(--text); cursor: pointer;
}
.modal__close:hover { border-color: var(--flame); }

.tile-detail__head { display: flex; align-items: center; gap: 16px; padding: 24px 60px 20px 24px; border-bottom: 1px solid #8fb4e6; }
.tile-detail__art {
  flex: none; width: 66px; height: 66px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(180deg, #12254a, #0a1730); color: var(--flame-tip);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .55);
}
.tile-detail__art .icon, .tile-detail__art img { width: 38px; height: 38px; }
.tile-detail__head h2 { font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); }
.tile-detail__source { color: var(--ink-2); font-size: .9rem; margin-top: 2px; }
.tile-detail__body { padding: 20px 24px 24px; }
.tile-detail__desc { color: var(--text); font-size: 1rem; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.fact { background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.fact__label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); font-weight: 700; margin-bottom: 4px; }
.fact__value { font-weight: 700; color: var(--text); }
.fact__value--points { color: var(--flame-tip); font-size: 1.3rem; line-height: 1.2; }
.section-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); font-weight: 700; margin: 18px 0 8px; }
.modal-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.modal-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); font-size: .9rem; }
.modal-list li:last-child { border-bottom: 0; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.completed-by { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .88rem; }

/* (v0.5: screenshots vervangen door links, zie sectie 40) */

/* ---------- 15. Form ---------- */
.form-card { padding: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field__label { font-weight: 700; color: var(--text); font-size: .92rem; }
.field__label .req { color: var(--flame); margin-left: 2px; }
.field__label .opt { color: var(--text-3); font-weight: 500; font-size: .82rem; margin-left: 4px; }
.field__hint { font-size: .8rem; color: var(--text-3); }
.field__error { display: none; align-items: center; gap: 6px; color: var(--rejected-text); font-size: .82rem; font-weight: 600; }
.field__error .icon { width: 15px; height: 15px; }
.field.is-invalid .field__error { display: flex; }

.input {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  background: #071022; border: 1px solid var(--line-strong); color: var(--text);
  font: inherit; font-size: .95rem;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #4f6690; }
.input:focus { outline: none; border-color: var(--flame); box-shadow: 0 0 0 3px rgba(77, 163, 255, .2); }
.input:disabled { opacity: .55; cursor: not-allowed; }
.field.is-invalid .input { border-color: var(--rejected); }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4a945' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
select.input option, select.input optgroup { background: #0c1629; color: var(--text); }
textarea.input { min-height: 92px; resize: vertical; }
.char-count { align-self: flex-end; font-size: .76rem; color: var(--text-3); font-variant-numeric: tabular-nums; }

.tile-preview {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line);
}
.tile-preview__art {
  flex: none; width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface-3); color: var(--flame); border: 1px solid var(--line-strong);
}
.tile-preview__art .icon, .tile-preview__art img { width: 26px; height: 26px; }
.tile-preview__main { flex: 1; min-width: 0; }
.tile-preview__name { font-weight: 700; color: var(--text); }
.tile-preview__desc { font-size: .82rem; color: var(--text-3); }
.tile-preview__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

.checklist { border-radius: 14px; padding: 18px 20px; margin-bottom: 22px; }
.checklist h3 { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.checklist h3 .icon { color: var(--ink-2); }
.checklist > p { color: var(--ink-2); font-size: .88rem; margin: 4px 0 8px; }
.check { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; cursor: pointer; color: var(--ink); font-size: .93rem; }
.check + .check { border-top: 1px solid rgba(40, 70, 120, .2); }
.check input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 22px; height: 22px; margin: 0; border-radius: 6px; cursor: pointer;
  border: 2px solid #3d5f96; background: #f2f8ff;
  display: grid; place-items: center;
}
.check input:checked {
  background: #2f7a3b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
  border-color: #2f7a3b;
}
.check input:focus-visible { outline: 3px solid #3d5f96; outline-offset: 2px; }
.check strong { font-weight: 700; }
.check small { display: block; color: var(--ink-2); font-size: .8rem; }
.checklist.is-invalid { box-shadow: inset 0 0 0 2px var(--rejected), 0 10px 30px rgba(0, 0, 0, .45); }
.checklist .field__error { color: #9b2018; margin-top: 6px; }
.checklist.is-invalid .field__error { display: flex; }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-top: 4px; }
.form-actions .muted { font-size: .82rem; }

.success-card {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: start;
  padding: 18px; margin-bottom: 20px; border-radius: 14px;
  border: 1px solid rgba(232, 185, 35, .5);
  background: linear-gradient(180deg, rgba(232, 185, 35, .12), rgba(232, 185, 35, .03)), var(--surface);
  animation: pop .35s ease-out;
}
.success-card h2 { font-family: var(--font-display); font-size: 1.3rem; color: var(--frost); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.success-card p { color: var(--text-2); margin: 6px 0 12px; font-size: .92rem; }
.success-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }

.tips { padding: 20px; border-radius: 14px; }
.tips h3 { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); margin-bottom: 8px; }
.tips ol { margin: 0; padding-left: 20px; color: var(--ink); font-size: .9rem; }
.tips li + li { margin-top: 6px; }

/* ---------- 16. Admin ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); }
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 9px; border: 0; background: transparent;
  color: var(--text-2); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tab__count {
  display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); font-size: .74rem; font-variant-numeric: tabular-nums;
}
.tab__count--pending { background: var(--pending); color: #1a1405; }
.toolbar__filters { display: flex; gap: 10px; align-items: center; }
.toolbar__filters .input { width: auto; min-width: 190px; padding-top: 8px; padding-bottom: 8px; }

.review-list { display: flex; flex-direction: column; gap: 14px; }
.review-card {
  display: grid; grid-template-columns: 230px minmax(0, 1fr) 200px; gap: 20px;
  padding: 16px; box-shadow: inset 3px 0 0 var(--team), 0 6px 20px rgba(0, 0, 0, .25);
}
.review-card.is-flash { animation: pop .35s ease-out; }
.review-card__title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.review-card__title h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--frost); }
.review-card__id { font-size: .76rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.meta-list { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: .88rem; }
.meta-list dt { color: var(--text-3); }
.meta-list dd { margin: 0; color: var(--text); min-width: 0; }
.checks-inline { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; }
.checks-inline span { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; }
.checks-inline .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.checks-inline .ok { color: var(--completed-text); }
.checks-inline .no { color: var(--rejected-text); }
.review-note { margin-top: 10px; padding: 8px 12px; border-left: 3px solid var(--flame-deep); background: rgba(0, 0, 0, .2); border-radius: 0 8px 8px 0; color: var(--text-2); font-style: italic; font-size: .9rem; }
.review-warn { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--pending-text); font-size: .84rem; font-weight: 600; }
.review-warn .icon { width: 16px; height: 16px; }
.review-reason { margin-top: 10px; color: var(--rejected-text); font-size: .86rem; }
.review-card__actions { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.review-card__actions .badge { align-self: flex-start; }
.review-card__when { font-size: .8rem; color: var(--text-3); }
.reject-form { display: flex; flex-direction: column; gap: 8px; }
.reject-form .input { min-height: 64px; font-size: .88rem; padding: 8px 10px; }
.reject-form__buttons { display: flex; gap: 8px; }
.reject-form__buttons .btn { flex: 1; }

.mini-board { list-style: none; margin: 0; padding: 0; }
.mini-board li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 20px; border-bottom: 1px solid var(--line-soft); transition: background .6s; }
.mini-board li:last-child { border-bottom: 0; }
.mini-board .rank { width: 28px; height: 28px; font-size: .82rem; }
.mini-board__pts { text-align: right; font-weight: 800; color: var(--flame-tip); font-variant-numeric: tabular-nums; }
.mini-board__pts small { display: block; font-size: .74rem; color: var(--text-3); font-weight: 600; }
.mini-board li.is-flash { background: rgba(166, 216, 255, .14); }
.delta { display: inline-block; margin-left: 6px; font-size: .74rem; font-weight: 800; color: var(--completed-text); }
.delta--down { color: var(--rejected-text); }

/* ---------- 17. Toasts ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 32px)); }
.toast {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: 12px;
  background: #0f1d38; border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s;
  font-size: .9rem; color: var(--text-2);
}
.toast.is-visible { opacity: 1; transform: none; }
.toast__icon { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--surface-3); color: var(--flame); }
.toast__icon .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.toast__body { display: flex; flex-direction: column; gap: 2px; }
.toast__body strong { color: var(--text); }
.toast--success { border-color: rgba(76, 187, 90, .55); }
.toast--success .toast__icon { background: rgba(76, 187, 90, .15); color: var(--completed); }
.toast--pending { border-color: rgba(232, 185, 35, .55); }
.toast--pending .toast__icon { background: rgba(232, 185, 35, .15); color: var(--pending); }
.toast--error, .toast--warning { border-color: rgba(229, 83, 75, .55); }
.toast--error .toast__icon, .toast--warning .toast__icon { background: rgba(229, 83, 75, .15); color: var(--rejected); }

/* ---------- 18. Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); background: rgba(0, 0, 0, .25); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 20px; padding-bottom: 28px; font-size: .84rem; color: var(--text-3); }
.footer__legal { flex-basis: 100%; font-size: .76rem; color: #4f6690; }

/* ---------- 19. Responsive ---------- */
@media (max-width: 1100px) {
  .grid-home, .grid-team, .grid-admin { grid-template-columns: minmax(0, 1fr); }
  .sticky-side { position: static; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-card { grid-template-columns: 200px minmax(0, 1fr); }
  .review-card__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .review-card__actions .reject-form { flex-basis: 100%; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .grid-form { grid-template-columns: minmax(0, 1fr); }
  .team-hero { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  :root { --topbar-h: 58px; }
  body { font-size: 14.5px; }
  .container { padding: 0 16px; }
  main.container { padding-top: 18px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: var(--topbar-h); left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 10px 16px 16px;
    background: #0a1428; border-bottom: 1px solid var(--line-strong); box-shadow: 0 12px 24px rgba(0, 0, 0, .5);
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 12px 14px; border-radius: 10px; }
  .brand__sub { display: none; }
  .card__head, .card__body { padding-left: 16px; padding-right: 16px; }
  .feed__item, .sub-item, .player, .mini-board li { padding-left: 16px; padding-right: 16px; }
  .lb .col-progress { display: none; }
  .lb-team__mobile { display: block; }
  .lb th, .lb td { padding: 12px 10px; }
  .lb-points { font-size: 1.3rem; }
  .team-hero { padding: 20px 18px 20px 24px; }
  .team-emblem { width: 54px; height: 62px; font-size: 1.2rem; }
  .team-hero__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .hstat { min-width: 0; padding: 9px 8px; }
  .hstat__label { font-size: .6rem; letter-spacing: .05em; white-space: nowrap; }
  .hstat__value { font-size: 1.3rem; white-space: nowrap; }
  .hstat__value small { font-size: .72rem; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .form-card { padding: 18px 16px; }
  .review-card { grid-template-columns: minmax(0, 1fr); }
  .success-card { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .toolbar__filters { width: 100%; }
  .toolbar__filters .input { flex: 1; min-width: 0; }
}

@media (max-width: 560px) {
  .stats { gap: 10px; }
  .stat { padding: 12px; gap: 10px; }
  .stat__icon { width: 34px; height: 34px; }
  .stat__icon .icon { width: 17px; height: 17px; }
  .stat__value { font-size: 1.3rem; }
  .countdown__units { gap: 6px; }
  .cd-unit__value { font-size: 1.6rem; }
  .board { --gap: 5px; padding: 8px; border-radius: 12px; }
  .board__letters { font-size: 1.15rem; margin-bottom: 6px; }
  .tile { aspect-ratio: 4 / 5; padding: 15px 2px 4px; gap: 2px; border-radius: 8px; }
  .tile__art { width: 38%; }
  .tile__name { font-size: .58rem; line-height: 1.1; }
  .tile__state { display: none; }
  .tile__points { top: 3px; right: 3px; min-width: 0; height: 15px; padding: 0 4px; font-size: .58rem; }
  .tile__seal { top: 3px; left: 3px; width: 14px; height: 14px; }
  .tile__seal .icon { width: 9px; height: 9px; }
  .tile--completed .tile__seal { box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- 20. Skip-link ---------- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  padding: 10px 16px; border-radius: 10px; background: var(--flame-tip); color: #04163a; font-weight: 700;
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

/* ---------- 21. Additions ---------- */
fieldset.checklist { border: 0; min-width: 0; margin: 0 0 22px; }
.toast__action {
  align-self: center; margin-left: auto; flex: none;
  padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--surface-3); color: var(--flame-tip); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer;
}
.toast__action:hover { border-color: var(--flame); }
.reason-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.reason-chip {
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  color: var(--text-2); font: inherit; font-size: .76rem; cursor: pointer;
}
.reason-chip:hover { color: var(--text); border-color: var(--rejected); }
.tile-detail__body > p .icon { width: 16px; height: 16px; color: var(--completed); vertical-align: -3px; }
.sub-item__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px 10px; flex-wrap: wrap; }
.sub-item__top .badge { font-size: .72rem; padding: 2px 8px 2px 6px; }

/* ---------- 22. Hidden tiles, start tile & reveal ---------- */
.tile--hidden {
  cursor: help;
  border: 1px solid #172a4d;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .018) 0 3px, transparent 3px 9px),
    radial-gradient(circle at 50% 40%, #0b1730, #060c1a);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, .75);
}
.tile--hidden:hover { transform: none; border-color: var(--line-strong); box-shadow: inset 0 0 20px rgba(0, 0, 0, .75); }
.tile--hidden .tile__art { width: 24%; color: #2c4470; }
.tile--hidden .tile__art .icon { stroke-width: 1.8; }
.tile__name--hidden { font-family: var(--font-display); font-size: clamp(1rem, 1.6vw, 1.35rem); color: #3a5584; -webkit-line-clamp: 1; }
.tile__pos { position: absolute; top: 7px; left: 9px; font-size: .68rem; font-weight: 700; letter-spacing: .04em; color: #3a5584; }

.tile--start::after {
  content: ""; position: absolute; inset: 3px; border-radius: 9px; pointer-events: none;
  border: 1px solid rgba(166, 216, 255, .5);
}
.tile__start {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  font-size: .58rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--flame-tip);
}


.badge--hidden { color: var(--text-3); border-color: var(--line); background: rgba(0, 0, 0, .25); }

.tile-detail__head--hidden { background: linear-gradient(180deg, #0e1c37, #0a1428); border-bottom-color: var(--line); }
.tile-detail__head--hidden h2 { color: var(--frost); }
.tile-detail__head--hidden .tile-detail__source { color: var(--text-3); }
.tile-detail__head--hidden .tile-detail__art { color: #4a6696; }
.reveal-hint { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; color: var(--text-2); font-size: .9rem; }
.reveal-hint .icon { width: 18px; height: 18px; color: var(--flame); flex: none; margin-top: 1px; }

/* how it works */
.howto { list-style: none; margin: 0; padding: 6px 20px 16px; }
.howto li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.howto li:last-child { border-bottom: 0; }
.howto__num {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(77, 163, 255, .12); border: 1px solid rgba(77, 163, 255, .35); color: var(--flame-tip);
  font-family: var(--font-display); font-weight: 700;
}
.howto strong { color: var(--text); display: block; font-size: .93rem; }
.howto p { color: var(--text-2); font-size: .86rem; margin-top: 2px; }

/* admin: views & full boards */
.view-switch { margin-bottom: 18px; }
.boards-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; margin-bottom: 16px; }
.boards-toolbar p { color: var(--text-2); font-size: .88rem; }
.boards-toolbar code { color: var(--flame-tip); background: rgba(0, 0, 0, .3); padding: 1px 6px; border-radius: 6px; font-size: .85rem; }
.boards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.boardview { padding: 16px; box-shadow: inset 3px 0 0 var(--team), 0 6px 20px rgba(0, 0, 0, .25); }
.boardview__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.boardview__meta { font-size: .8rem; color: var(--text-3); }
.boardview__grid { display: grid; grid-template-columns: repeat(var(--size, 7), minmax(0, 1fr)); gap: 3px; }
.cell {
  position: relative; aspect-ratio: 1; border-radius: 6px; padding: 3px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: var(--surface-3); border: 1px solid var(--line); color: var(--text-2); text-align: center;
}
.cell .icon { width: 40%; height: auto; aspect-ratio: 1; color: #5f86c4; }
.cell__pts { font-size: .62rem; font-weight: 800; color: var(--flame-tip); font-variant-numeric: tabular-nums; }
.cell--completed { background: linear-gradient(180deg, #1f3a23, #152519); border-color: rgba(76, 187, 90, .8); }
.cell--completed .icon { color: var(--flame-tip); }
.cell--pending { border: 1px dashed var(--pending); background: repeating-linear-gradient(135deg, rgba(232, 185, 35, .12) 0 5px, transparent 5px 10px), var(--surface-3); }
.cell--hidden { opacity: .38; background: #071022; }
.cell--start { box-shadow: inset 0 0 0 1px rgba(166, 216, 255, .6); }
.cell__eye { position: absolute; top: 2px; right: 2px; width: 11px !important; color: var(--text-3) !important; }
.boards-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

@media (max-width: 760px) {
  .boards-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .tile__start { display: none; }
  .tile__pos { top: 3px; left: 4px; font-size: .55rem; }
  .tile--hidden .tile__art { width: 30%; }
  .tile--start::after { inset: 2px; border-radius: 6px; }
}

/* ==========================================================================
   v0.3 – blue flames, front page and the reveal animation
   ========================================================================== */

/* ---------- 23. Flames (shared) ---------- */
.flame-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.flame { display: block; overflow: visible; }

/* faint flames along the bottom edge of the screen, behind everything */
.ambient { position: fixed; inset: auto 0 0 0; height: 260px; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 140px;
  background: radial-gradient(60% 100% at 50% 100%, rgba(31, 99, 209, .14), transparent 70%);
}
.ambient__flame {
  position: absolute; bottom: -18px; width: auto; opacity: .16;
  transform-origin: 50% 100%;
  animation: flicker 5s ease-in-out infinite;
  filter: blur(.4px);
}
@keyframes flicker {
  0%, 100% { transform: scale(1, 1) skewX(0deg); }
  30% { transform: scale(.97, 1.05) skewX(-1.5deg); }
  55% { transform: scale(1.02, .96) skewX(1deg); }
  80% { transform: scale(.99, 1.03) skewX(-.5deg); }
}

/* ---------- 24. Navigation additions ---------- */
.nav { align-items: center; }
.nav__link--back { color: var(--text-3); padding-left: 10px; padding-right: 12px; }
.nav__sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.brand[aria-current="page"] { cursor: default; }

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-3); font-size: .86rem; font-weight: 600; text-decoration: none;
}
.back-link .icon { width: 16px; height: 16px; }
.back-link:hover { color: var(--flame-tip); }

/* ---------- 25. Front page (events) ---------- */
.hub { padding-top: 48px; }
.hub-head { max-width: 640px; margin-bottom: 40px; }
.hub-head h1 {
  font-family: var(--font-display); font-weight: 700; color: var(--frost);
  font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.01em;
}
.hub-head p { color: var(--text-2); font-size: 1.05rem; margin-top: 10px; max-width: 52ch; }

.event-group + .event-group { margin-top: 40px; }
.event-group__title {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-size: .95rem; font-weight: 700; color: var(--text-2);
}
.event-group__count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px;
  background: var(--surface-3); color: var(--text-2); font-size: .76rem; font-variant-numeric: tabular-nums;
}
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }

.event-tile {
  position: relative; display: grid; grid-template-rows: auto 1fr;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.event-tile:hover { border-color: var(--flame-deep); transform: translateY(-2px); box-shadow: var(--shadow), 0 0 0 1px rgba(77, 163, 255, .25), 0 18px 50px rgba(31, 99, 209, .18); }
.event-tile:focus-within { border-color: var(--flame); }

/* a running event is the one people need most: give it the full width */
.event-tile--live { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: minmax(240px, 380px) minmax(0, 1fr); }
@media (min-width: 1101px) { .event-tile--live { max-width: 1000px; } }

.event-tile__art {
  position: relative; display: grid; place-items: center; padding: 34px 32px 26px;
  background:
    radial-gradient(70% 60% at 50% 62%, rgba(77, 163, 255, .16), transparent 70%),
    linear-gradient(180deg, #081229, #050b18);
  border-bottom: 1px solid var(--line-soft);
}
.event-tile--live .event-tile__art { border-bottom: 0; border-right: 1px solid var(--line-soft); }
.mini-art { width: 100%; max-width: 250px; height: auto; overflow: visible; }
.mini-art__cell { fill: rgba(77, 163, 255, .04); stroke: var(--flame); stroke-width: 1.2; }
.mini-art__cell--r0 { fill: rgba(77, 163, 255, .25); stroke: var(--flame-tip); }
.mini-art__cell--r1 { fill: rgba(77, 163, 255, .14); stroke-opacity: .85; }
.mini-art__cell--r2 { stroke-opacity: .5; }
.mini-art__cell--r3 { stroke-opacity: .28; }
.mini-art__cell--r4 { stroke-opacity: .14; }
.mini-art__flicker { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 3.6s ease-in-out infinite; }
.mini-art__flame { filter: drop-shadow(0 0 10px rgba(77, 163, 255, .55)); }
.event-tile--finished .mini-art__flame { opacity: .35; filter: none; }
.event-tile--finished .mini-art__flicker { animation: none; }

.event-tile__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 26px 28px 28px; min-width: 0; }
.event-tile__name { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--frost); margin-top: 6px; }
.event-tile__link { color: inherit; text-decoration: none; }
.event-tile__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.event-tile__link:focus-visible { outline: none; }
.event-tile__link:focus-visible::after { outline: 3px solid var(--flame-tip); outline-offset: -3px; }
.event-tile__link:hover { color: inherit; }
.event-tile__tagline { color: var(--text-2); font-family: var(--font-display); font-style: italic; font-size: 1.05rem; }

.event-tile__facts { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); gap: 10px 28px; margin: 16px 0 6px; }
.event-tile__facts dt { font-size: .78rem; color: var(--text-3); }
.event-tile__facts dd { margin: 2px 0 0; color: var(--text); font-weight: 650; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.event-tile__pts { color: var(--flame-tip); font-weight: 800; font-variant-numeric: tabular-nums; }

.event-tile__progress { width: 100%; max-width: 460px; margin-top: 8px; }
.event-tile__progress-row { display: flex; justify-content: space-between; font-size: .82rem; color: var(--text-2); margin-bottom: 6px; }
.event-tile__track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.event-tile__track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--flame-deep), var(--flame-tip)); }

.event-tile__cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  padding: 9px 16px; border-radius: 10px;
  background: linear-gradient(180deg, #c9e8ff, #6fb4ff); color: #04163a; font-weight: 700; font-size: .92rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 2px 0 #12408f;
}
.event-tile__cta .icon { width: 18px; height: 18px; transition: transform .2s; }
.event-tile:hover .event-tile__cta .icon { transform: translateX(3px); }
.event-tile--finished .event-tile__cta { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }

.event-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700;
  border: 1px solid var(--line-strong); color: var(--text-2); background: rgba(0, 0, 0, .25);
}
.event-status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.event-status--live { color: var(--flame-tip); border-color: rgba(77, 163, 255, .45); background: rgba(77, 163, 255, .1); }
.event-status--live .event-status__dot { background: var(--flame); box-shadow: 0 0 0 0 rgba(77, 163, 255, .6); animation: livePulse 2s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(77, 163, 255, .6); } 100% { box-shadow: 0 0 0 9px rgba(77, 163, 255, 0); } }

/* ---------- 26. Team board: tools, news, reveal ---------- */
.board-card__tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.board-replay { padding: 5px 10px; }
.board-replay .icon { width: 16px; height: 16px; }
.board-news:empty { display: none; }
.board-news {
  display: flex; align-items: center; gap: 8px; margin: 0 0 12px;
  font-size: .88rem; color: var(--flame-tip);
}
.board-news::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--flame); box-shadow: 0 0 10px var(--flame);
}

/* A covered tile looks hidden, then burns open from the bottom up. */
.tile__cover {
  position: absolute; inset: -1px; z-index: 2; border-radius: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .018) 0 3px, transparent 3px 9px),
    radial-gradient(circle at 50% 40%, #0b1730, #060c1a);
  box-shadow: inset 0 0 0 1px #172a4d, inset 0 0 20px rgba(0, 0, 0, .75);
  clip-path: inset(0 0 100% 0); /* not covering when there is no animation */
}
.tile__cover .icon { width: 24%; height: auto; aspect-ratio: 1; color: #2c4470; stroke-width: 1.8; }
.tile__cover .tile__pos { color: #3a5584; }
.tile__q { font-family: var(--font-display); font-size: clamp(1rem, 1.6vw, 1.35rem); font-weight: 700; color: #3a5584; line-height: 1; }

.tile__burn {
  position: absolute; left: -6%; right: -6%; bottom: 0; height: 62%; z-index: 3;
  opacity: 0; pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(77, 163, 255, .8));
}
.tile__burn .flame-band { display: block; width: 100%; height: 100%; }

.tile.is-covered .tile__cover { animation: coverBurn var(--burn-ms) cubic-bezier(.45, .05, .55, .95) var(--d, 0ms) both; }
.tile.is-covered .tile__burn { animation: burnLine var(--burn-ms) cubic-bezier(.45, .05, .55, .95) var(--d, 0ms) both; }
.tile.is-covered { animation: tileIgnite calc(var(--burn-ms) + 900ms) ease-out var(--d, 0ms) backwards; }

@keyframes coverBurn {
  0% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 100% 0); }
}
/* the flame edge rides up with the edge of the cover */
@keyframes burnLine {
  0% { bottom: -40%; opacity: 0; }
  15% { opacity: 1; }
  80% { opacity: 1; }
  100% { bottom: 100%; opacity: 0; }
}
/* While covered the tile shows no status colour (border, glow); it flares blue as it opens. */
@keyframes tileIgnite {
  0%, 30% { border-color: #172a4d; border-style: solid; box-shadow: inset 0 0 0 1px rgba(166, 216, 255, 0), 0 0 0 rgba(77, 163, 255, 0); }
  55% { box-shadow: inset 0 0 0 1px rgba(166, 216, 255, .9), 0 0 28px rgba(77, 163, 255, .6); }
  100% { box-shadow: inset 0 0 0 1px rgba(166, 216, 255, 0), 0 0 0 rgba(77, 163, 255, 0); }
}

@media (max-width: 560px) {
  .tile__q { font-size: .9rem; }
  .tile__cover .tile__pos { top: 3px; left: 4px; font-size: .55rem; }
}

/* ---------- 27. Responsive: front page & nav ---------- */
@media (max-width: 900px) {
  .event-tile--live { grid-template-columns: minmax(0, 1fr); }
  .event-tile--live .event-tile__art { border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 28px 24px 20px; }
  .mini-art { max-width: 200px; }
}
@media (max-width: 760px) {
  .hub { padding-top: 28px; }
  .hub-head { margin-bottom: 28px; }
  .event-grid { grid-template-columns: minmax(0, 1fr); }
  .event-tile__body { padding: 20px 18px 22px; }
  .event-tile__facts { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .event-tile__facts > div { display: flex; justify-content: space-between; gap: 12px; }
  .event-tile__facts dd { margin: 0; text-align: right; justify-content: flex-end; }
  .nav { align-items: stretch; }
  .nav__sep { width: auto; height: 1px; margin: 4px 0; }
  .ambient__flame { opacity: .12; }
}

/* ==========================================================================
   v0.3 – admin: sign in, levels, lock, teams, tiles and admins
   ========================================================================== */

/* ---------- 28. Shared bits ---------- */
.form-error {
  display: flex; align-items: center; gap: 8px; margin: 4px 0 12px;
  color: var(--rejected-text); font-size: .86rem; font-weight: 600;
}
.form-error::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 50%; background: rgba(229, 83, 75, .18); font-size: .72rem; font-weight: 800; }
.chip {
  display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; vertical-align: 1px;
  background: rgba(77, 163, 255, .12); border: 1px solid rgba(77, 163, 255, .35); color: var(--flame-tip);
  font-size: .7rem; font-weight: 700; white-space: nowrap;
}
.link-btn { padding: 0; border: 0; background: none; color: var(--flame-tip); font: inherit; font-weight: 650; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.link-btn:hover { color: var(--flame-core); }
.link-btn[disabled] { color: var(--text-3); cursor: not-allowed; text-decoration: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; flex: none;
  border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--text-2); cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.icon-btn .icon { width: 16px; height: 16px; }
.btn .icon + span { margin-left: 0; }
.notice--bottom { margin: 32px 0 0; border-color: var(--line-strong); background: rgba(0, 0, 0, .15); }
.notice--bottom .icon { color: var(--text-3); }
.notice code, .login code, .data-table code { font-family: Consolas, "Courier New", monospace; font-size: .86em; color: var(--flame-tip); }

.level {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; flex: none;
  font-size: .76rem; font-weight: 800; vertical-align: -1px; margin-right: 4px;
  border: 1px solid var(--line-strong); color: var(--text-2); background: var(--surface-3);
}
.level--2 { color: var(--flame-tip); border-color: rgba(77, 163, 255, .45); background: rgba(77, 163, 255, .1); }
.level--3 { color: #04163a; border-color: #2f7fe0; background: linear-gradient(180deg, #c9e8ff, #6fb4ff); }

/* ---------- 29. Sign in ---------- */
.login { display: grid; place-items: start center; padding: 24px 0 8px; }
.login__card { width: min(420px, 100%); padding: 32px 30px 26px; text-align: left; }
.login__mark { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 16px; border-radius: 18px; background: radial-gradient(circle at 50% 70%, rgba(77, 163, 255, .25), transparent 70%), var(--surface-3); border: 1px solid var(--line-strong); }
.login__flame { height: 40px; width: auto; filter: drop-shadow(0 0 8px rgba(77, 163, 255, .6)); }
.login__card h1 { font-family: var(--font-display); font-size: 1.9rem; color: var(--frost); }
.login__lead { color: var(--text-2); margin: 6px 0 22px; }
.login .field { margin-bottom: 16px; }
.password-field { position: relative; display: flex; align-items: center; gap: 8px; }
.password-field .input { flex: 1; }
.password-field__toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text-3); cursor: pointer;
}
.password-field__toggle:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.password-field__toggle .icon { width: 18px; height: 18px; }
.password-field input[type="password"], .login .password-field .input { padding-right: 46px; }
.password-field--wide .input { font-family: Consolas, "Courier New", monospace; letter-spacing: .02em; }
.demo-logins { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: .85rem; color: var(--text-3); }
.demo-logins summary { cursor: pointer; }
.demo-logins summary:hover { color: var(--text-2); }
.demo-logins table { width: 100%; margin-top: 10px; border-collapse: collapse; }
.demo-logins th, .demo-logins td { text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--line-soft); }
.demo-logins th { color: var(--text-3); font-weight: 650; }
.demo-logins td { color: var(--text-2); }

/* ---------- 30. Admin header, session, role note, lock ---------- */
.admin-head { align-items: flex-start; }
.admin-head p { min-height: 1.5em; }
.session { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .2); }
.session__who { display: flex; align-items: center; gap: 10px; }
.session__who strong { display: block; color: var(--text); font-size: .92rem; line-height: 1.2; }
.session__who span:not(.session__avatar) { display: block; color: var(--text-3); font-size: .78rem; }
.session__avatar {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(180deg, #16305e, #0d1d3c); border: 1px solid var(--line-strong);
  color: var(--flame-tip); font-weight: 800; font-size: .8rem;
}

.role-note {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; padding: 10px 14px;
  border-radius: var(--radius); border: 1px solid rgba(77, 163, 255, .3); background: rgba(77, 163, 255, .06);
  color: var(--text-2); font-size: .88rem;
}
.role-note .icon { width: 18px; height: 18px; color: var(--flame); margin-top: 1px; }
.role-note strong { color: var(--text); }

.lock-bar { margin-bottom: 18px; }
.lock-bar__inner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px 12px 16px; border-radius: var(--radius);
  border: 1px solid rgba(232, 185, 35, .45); background: rgba(232, 185, 35, .07); color: var(--text-2); font-size: .9rem;
}
.lock-bar__inner > .icon { color: var(--pending); }
.lock-bar__inner p { flex: 1; min-width: 220px; }
.lock-bar__inner strong { color: var(--text); }
.lock-bar__inner.is-unlocked { border-color: rgba(229, 83, 75, .5); background: rgba(229, 83, 75, .08); }
.lock-bar__inner.is-unlocked > .icon { color: var(--rejected-text); }

/* ---------- 31. Modals: forms & confirmations ---------- */
.form-modal { padding: 24px; }
.form-modal h2, .confirm h2 { font-family: var(--font-display); font-size: 1.45rem; color: var(--frost); padding-right: 40px; }
.form-modal__lead { color: var(--text-2); margin: 6px 0 0; font-size: .92rem; }
.form-modal > h2 + .field, .form-modal > h2 + .tile-form, .form-modal__lead + .field, .form-modal__lead + .tile-form { margin-top: 18px; }
.form-modal .field { margin-bottom: 16px; }
.form-modal textarea.input { min-height: 80px; }
.modal-actions__end { margin-left: auto; }
.check-row { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 12px; color: var(--text); font-size: .92rem; cursor: pointer; }
.check-row input, .confirm__check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--flame); flex: none; }
.check-row small { color: var(--text-3); }

.confirm { padding: 24px; }
.confirm__head { display: flex; align-items: center; gap: 12px; }
.confirm__head > .icon { width: 26px; height: 26px; color: var(--pending); flex: none; }
.confirm--danger .confirm__head > .icon { color: var(--rejected-text); }
.confirm__body { margin-top: 12px; color: var(--text-2); font-size: .94rem; }
.confirm__body p + p { margin-top: 8px; }
.confirm__body strong { color: var(--text); }
.warn-list { margin: 12px 0 0; padding-left: 20px; }
.warn-list li + li { margin-top: 4px; }
.confirm__check {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 12px 14px;
  border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, .2);
  color: var(--text); font-weight: 600; font-size: .92rem; cursor: pointer;
}

/* ---------- 32. Teams ---------- */
.teams-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.team-card { box-shadow: inset 3px 0 0 var(--team), 0 6px 20px rgba(0, 0, 0, .25); }
.team-card__head { display: flex; align-items: center; gap: 14px; padding: 18px 18px 10px 20px; }
.team-emblem--sm { width: 44px; height: 50px; font-size: 1rem; padding-bottom: 6px; }
.team-card__id { flex: 1; min-width: 0; }
.team-card__id h2 { font-family: var(--font-display); font-size: 1.3rem; color: var(--frost); }
.team-card__id p { color: var(--text-2); font-style: italic; font-size: .88rem; margin-top: 2px; }
.team-card__count { padding: 0 20px 8px; font-size: .78rem; color: var(--text-3); }
.roster { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.roster__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 9px 18px 9px 20px; border-bottom: 1px solid var(--line-soft); }
.roster__name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 650; color: var(--text); min-width: 0; }
.roster__tag { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; color: var(--flame-tip); }
.roster__tag .icon { width: 14px; height: 14px; }
.roster__meta { font-size: .8rem; color: var(--text-3); white-space: nowrap; }
.roster__add { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px 16px 20px; }
.roster__add .input { flex: 1; min-width: 160px; padding-top: 8px; padding-bottom: 8px; }
.roster__add .form-error { flex-basis: 100%; margin: 0; }
.roster__removed { padding: 0 20px 16px; font-size: .82rem; color: var(--text-3); }
.roster__removed-item { display: inline-flex; gap: 6px; margin-right: 12px; color: var(--text-2); }
.btn[disabled]:hover { filter: none; }

.colour-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatch {
  width: 30px; height: 30px; border-radius: 8px; border: 2px solid transparent; padding: 0; cursor: pointer;
  background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3);
}
.swatch[aria-pressed="true"] { border-color: var(--frost); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--swatch); }
.colour-pick__custom input { width: 44px; height: 32px; padding: 2px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface-3); cursor: pointer; }

/* ---------- 33. Tiles ---------- */
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  font-size: .76rem; color: var(--text-3); font-weight: 700; text-align: left;
  padding: 11px 16px; border-bottom: 1px solid var(--line);
}
.data-table td { padding: 11px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; color: var(--text-2); font-size: .9rem; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .ta-r { text-align: right; }
.data-table tbody tr:hover td { background: rgba(77, 163, 255, .03); }
.tile-row { display: flex; align-items: center; gap: 12px; min-width: 260px; }
.tile-row__art {
  flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface-3); border: 1px solid var(--line); color: var(--flame);
}
.tile-row__art .icon, .tile-row__art img { width: 22px; height: 22px; }
.tile-row__name { font-weight: 700; color: var(--text); }
.tile-row__desc { font-size: .8rem; color: var(--text-3); max-width: 52ch; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.col-done, .col-source { white-space: nowrap; }

.tile-form { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 24px; }
.tile-form__preview { display: flex; flex-direction: column; gap: 8px; }
.tile-form__preview .field__hint { margin-top: 4px; }
.tile--preview { width: 100%; cursor: default; pointer-events: none; }
.tile--preview .tile__name { font-size: .86rem; }
.icon-picker { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.icon-picker legend { padding: 0; margin-bottom: 8px; }
.icon-picker__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; }
.icon-pick { position: relative; cursor: pointer; }
.icon-pick input { position: absolute; opacity: 0; inset: 0; }
.icon-pick > span {
  display: grid; place-items: center; height: 40px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface-3); color: var(--text-2);
}
.icon-pick:hover > span { border-color: var(--line-strong); color: var(--text); }
.icon-pick input:checked + span { border-color: var(--flame); color: var(--flame-tip); background: rgba(77, 163, 255, .14); box-shadow: 0 0 0 1px var(--flame); }
.icon-pick input:focus-visible + span { outline: 3px solid var(--flame-tip); outline-offset: 2px; }

/* ---------- 34. Admins ---------- */
.admin-name { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; }
.admin-name .session__avatar { width: 30px; height: 30px; font-size: .72rem; }
.pw { display: inline-flex; align-items: center; gap: 8px; }
.pw__dots { letter-spacing: .12em; color: var(--text-3); }
.pw code { font-size: .9rem; }
.col-last { white-space: nowrap; }

.levels-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.levels-table th, .levels-table td { padding: 8px 6px; border-bottom: 1px solid var(--line-soft); }
.levels-table thead th { text-align: center; }
.levels-table tbody th { text-align: left; font-weight: 500; color: var(--text-2); padding-left: 20px; }
.levels-table td { text-align: center; width: 40px; }
.levels-table td:last-child { padding-right: 20px; width: 56px; }
.levels-table .yes { width: 16px; height: 16px; color: var(--completed); stroke-width: 2.6; }
.levels-table .no { color: var(--text-3); }
.levels-legend { list-style: none; margin: 0; padding: 12px 20px 16px; display: grid; gap: 8px; font-size: .84rem; color: var(--text-3); }
.levels-legend strong { color: var(--text); margin-right: 4px; }

.level-picks { display: grid; gap: 8px; }
.level-pick { position: relative; cursor: pointer; }
.level-pick input { position: absolute; opacity: 0; inset: 0; }
.level-pick > span {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 10px; align-items: center;
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .2);
}
.level-pick strong { color: var(--text); font-size: .92rem; }
.level-pick small { grid-column: 2; color: var(--text-3); font-size: .8rem; }
.level-pick .level { grid-row: span 2; }
.level-pick input:checked + span { border-color: var(--flame); background: rgba(77, 163, 255, .1); box-shadow: 0 0 0 1px var(--flame); }
.level-pick input:focus-visible + span { outline: 3px solid var(--flame-tip); outline-offset: 2px; }
.level-pick input:disabled + span { opacity: .55; cursor: not-allowed; }

/* ---------- 35. Admin responsive ---------- */
@media (max-width: 1100px) {
  .teams-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .session { width: 100%; justify-content: space-between; }
  .tile-form { grid-template-columns: minmax(0, 1fr); }
  .tile-form__preview { max-width: 180px; }
  .col-source, .col-done, .col-last { display: none; }
  .tile-row { min-width: 0; }
  .roster__row { grid-template-columns: minmax(0, 1fr) auto; padding-left: 16px; padding-right: 12px; }
  .roster__meta { grid-column: 1; grid-row: 2; }
  .roster__row .btn { grid-row: 1 / span 2; grid-column: 2; }
  .team-card__head { flex-wrap: wrap; padding-left: 16px; }
  .data-table th, .data-table td { padding-left: 12px; padding-right: 12px; }
  .data-table .btn span, .roster__row .btn span { display: none; }
  .form-modal, .confirm { padding: 20px 16px; }
  .modal-actions__end { margin-left: 0; }
}
.form-modal fieldset.field { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.form-modal fieldset.field > legend { padding: 0; margin-bottom: 8px; }
.table-scroll { position: relative; }
.data-table .nowrap { white-space: nowrap; }
@media (max-width: 760px) {
  .admins-table .level-name { display: none; }
  .admins-table .admin-name .session__avatar { display: none; }
}
@media (max-width: 760px) {
  .admins-table th, .admins-table td { padding-left: 8px; padding-right: 8px; }
  .admins-table .pw { gap: 4px; }
}

/* ==========================================================================
   v0.5 – 7x7-bord, hoektiles, rij- en kolombonus, links als bewijs
   ========================================================================== */

/* ---------- 38. 7x7-bord ---------- */
.board { --gap: 7px; padding: 14px; }
.board__letters {
  font-family: var(--font-body, inherit); font-size: .78rem; font-weight: 800; letter-spacing: .14em;
  color: #4a6696; text-shadow: none; margin-bottom: 6px;
}
.board__letters .is-full { color: var(--completed-text); }
.board .tile { padding: 22px 5px 8px; gap: 5px; border-radius: 10px; justify-content: flex-start; }
.board .tile--hidden { justify-content: center; padding-top: 18px; }
.board .tile__art { width: 32%; max-width: 40px; margin-top: 2px; }
.board .tile__name { font-size: clamp(.6rem, .8vw, .74rem); }
/* Op het 7x7-bord tonen het zegel en de kleur de status; de legenda erboven legt ze uit. */
.board .tile__state { display: none; }
.board .tile__points { top: 5px; right: 5px; min-width: 22px; height: 18px; padding: 0 5px; font-size: .66rem; }
.board .tile__seal { top: 5px; left: 5px; width: 18px; height: 18px; }
.board .tile__seal .icon { width: 11px; height: 11px; }
.board .tile__pos { top: 5px; left: 7px; font-size: .6rem; }
.board .tile__start { top: 7px; font-size: .52rem; }
.board .tile__name--hidden { font-size: clamp(.9rem, 1.3vw, 1.15rem); }
.board .tile__q { font-size: clamp(.9rem, 1.3vw, 1.15rem); }

/* Hoektile: dubbele rand in de vlamkleur, 10 punten valt op */
.tile--corner::after {
  content: ""; position: absolute; inset: 3px; border-radius: 8px; pointer-events: none;
  border: 1px solid rgba(166, 216, 255, .55);
}
.tile--corner .tile__points { background: var(--flame-deep, #1f63d1); color: #fff; border-color: var(--flame-tip); }
.tile--corner .tile__start { color: #fff; }

/* Tiles in een volle rij of kolom */
.tile--in-line.tile--completed {
  box-shadow: inset 0 0 0 1px rgba(166, 216, 255, .55), 0 0 16px rgba(77, 163, 255, .35);
}

.board__bonus {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  margin: 12px 0 0; font-size: .84rem; color: var(--text-3); text-align: center;
}
.board__bonus strong { color: var(--text-2); }
.board__bonus--earned { color: var(--text-2); }
.board__bonus--earned strong { color: var(--flame-tip); }
.board__bonus .icon { width: 16px; height: 16px; color: var(--flame-tip); flex: none; }

@media (max-width: 1100px) {
  .board .tile__name { font-size: clamp(.58rem, 1.4vw, .74rem); }
}
/* Telefoon: 7 kolommen zijn smal, dus alleen icoon en punten. De naam staat in het detailvenster. */
@media (max-width: 560px) {
  .board { --gap: 3px; padding: 6px; }
  .board__letters { font-size: .6rem; letter-spacing: .06em; margin-bottom: 3px; }
  .board .tile { aspect-ratio: 1 / 1; padding: 12px 1px 2px; gap: 0; border-radius: 6px; }
  .board .tile__name, .board .tile__state, .board .tile__start { display: none; }
  .board .tile__name--hidden { display: none; }
  .board .tile__art { width: 52%; max-width: none; }
  .board .tile--hidden .tile__art { width: 40%; }
  .board .tile__points { top: 1px; right: 1px; min-width: 0; height: 12px; padding: 0 3px; font-size: .5rem; border-width: 0; }
  .board .tile__seal { top: 2px; left: 2px; width: 10px; height: 10px; }
  .board .tile__seal .icon { width: 7px; height: 7px; }
  .board .tile__pos { top: 1px; left: 3px; font-size: .45rem; }
  .board .tile__q { display: none; }
  .board .tile__cover .icon { width: 40%; }
  .tile--corner::after, .tile--start::after { inset: 1px; border-radius: 5px; }
  .board__bonus { font-size: .78rem; }
}

/* Admin: hoeken in de bordweergave */
.cell--corner { box-shadow: inset 0 0 0 1px rgba(166, 216, 255, .55); }
.cell--corner::before {
  content: "\2605"; position: absolute; top: 1px; left: 3px; font-size: .55rem; line-height: 1; color: var(--flame-tip);
}
.boardview .cell { border-radius: 4px; }
.boardview .cell__pts { font-size: .56rem; }

/* ---------- 39. Punten en bonus ---------- */
.hstat__sub { font-size: .72rem; color: var(--text-3); margin-top: 2px; white-space: nowrap; }
.lb-bonus { display: block; margin-top: 4px; font-size: .72rem; font-weight: 700; color: var(--text-3); white-space: nowrap; }
.bonus-pill {
  display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; white-space: nowrap;
  background: rgba(77, 163, 255, .16); border: 1px solid rgba(166, 216, 255, .45);
  color: var(--flame-tip); font-size: .74rem; font-weight: 800;
}
.chart-tip__row { grid-template-columns: 14px auto 1fr auto; }
.chart-tip__bonus { color: var(--text-3); font-size: .72rem; white-space: nowrap; }
.reveal-hint--bonus .icon { color: var(--flame-tip); }

/* ---------- 40. Links als bewijs ---------- */
.links-field { border: 0; padding: 0; min-width: 0; margin: 0 0 18px; }
.links-field > .field__label { padding: 0; margin-bottom: 4px; }
.link-rows { list-style: none; margin: 10px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.link-row {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center;
  border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(0, 0, 0, .25);
  transition: border-color .15s, box-shadow .15s;
}
.link-row:focus-within { border-color: var(--flame); box-shadow: 0 0 0 3px rgba(77, 163, 255, .2); }
.link-row__icon { display: grid; place-items: center; color: var(--text-3); }
.link-row__icon .icon { width: 17px; height: 17px; }
.link-row .input { border: 0; background: transparent; box-shadow: none; padding-left: 0; min-width: 0; }
.link-row .input:focus { outline: none; box-shadow: none; }
.link-row__remove { margin-right: 6px; }
.link-row__remove[hidden] { display: none; }
.link-row__error { display: none; grid-column: 1 / -1; padding: 0 12px 8px 38px; color: var(--rejected-text); font-size: .8rem; font-weight: 600; }
.link-row.is-invalid { border-color: var(--rejected); }
.link-row.is-invalid .link-row__error { display: block; }
.field.is-invalid .link-row { border-color: var(--rejected); }
.link-add { align-self: flex-start; }
.link-add[hidden] { display: none; }

.proof-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.proof-links a {
  display: grid; grid-template-columns: 16px minmax(0, 1fr) 14px; grid-template-areas: "icon label ext" "icon url ext";
  column-gap: 8px; align-items: center;
  padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, .25);
  color: var(--text); text-decoration: none; font-size: .86rem; line-height: 1.25;
  transition: border-color .15s, background .15s;
}
.proof-links a:hover { border-color: var(--flame); background: rgba(77, 163, 255, .08); }
.proof-links a:focus-visible { outline: 3px solid var(--flame-tip); outline-offset: 2px; }
.proof-links a > .icon:first-child { grid-area: icon; width: 16px; height: 16px; color: var(--flame); }
.proof-links__label { grid-area: label; font-weight: 700; }
.proof-links__url { grid-area: url; color: var(--text-3); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proof-links__ext { grid-area: ext; width: 14px; height: 14px; color: var(--text-3); }
.proof-links--compact { flex-direction: row; flex-wrap: wrap; margin-top: 6px; }
.proof-links--compact a { grid-template-areas: "icon label ext"; padding: 4px 9px; font-size: .78rem; border-radius: 999px; }
.proof-links--compact a > .icon:first-child { width: 13px; height: 13px; }
.proof-links--compact .proof-links__ext { width: 11px; height: 11px; }

.review-card__proof { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.review-card__art {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(0, 0, 0, .3); border: 1px solid var(--line); color: var(--flame-tip);
}
.review-card__art .icon, .review-card__art img { width: 28px; height: 28px; }
.review-card__links .section-label { margin: 0 0 6px; }
.review-tip { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; color: var(--text-2); font-size: .84rem; }
.review-tip .icon { width: 16px; height: 16px; color: var(--flame); flex: none; margin-top: 1px; }
@media (max-width: 760px) {
  .review-card__proof { flex-direction: row; align-items: flex-start; }
  .review-card__links { flex: 1; min-width: 0; }
}

.success-card__art {
  width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(0, 0, 0, .3); border: 1px solid var(--line); color: var(--flame-tip);
}
.success-card__art .icon, .success-card__art img { width: 34px; height: 34px; }
.success-card .proof-links { margin-bottom: 12px; }
@media (max-width: 760px) {
  .success-card__art { width: 44px; height: 44px; border-radius: 10px; }
  .success-card__art .icon, .success-card__art img { width: 24px; height: 24px; }
}

.modal-list .proof-links--compact { margin-top: 6px; }

.tips__how { margin-top: 10px; color: var(--ink); font-size: .84rem; opacity: .85; }

.notice--deadline { margin: 0 0 18px; }
.notice--deadline .icon { color: var(--flame); }

/* Telefoon: kerncijfers van het team in 2x2, zodat de toelichting eronder past */
@media (max-width: 560px) {
  .team-hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hstat__sub { font-size: .66rem; white-space: normal; }
}

/* ==========================================================================
   v1.0 – laden vanuit de database
   ========================================================================== */
body.is-booting .site-header,
body.is-booting main,
body.is-booting .site-footer { visibility: hidden; }

.boot {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px;
}
.boot__card {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  color: var(--text-2); font-weight: 600;
}
.boot__flame { width: 34px; height: 54px; animation: bootFlicker 1.4s ease-in-out infinite; }
@keyframes bootFlicker { 0%, 100% { opacity: .55; transform: scaleY(.94); } 50% { opacity: 1; transform: scaleY(1.04); } }
@media (prefers-reduced-motion: reduce) { .boot__flame { animation: none; } }
.boot__card--error {
  max-width: 460px; padding: 28px; border-radius: 16px; border: 1px solid var(--line-strong);
  background: var(--surface, #0b1730); color: var(--text-2); font-weight: 400;
}
.boot__card--error > .icon { width: 30px; height: 30px; color: var(--rejected-text); }
.boot__card--error h1 { font-size: 1.35rem; margin: 0; color: var(--text); }
.boot__card--error p { margin: 0 0 6px; line-height: 1.5; }
.noscript { padding: 24px; text-align: center; color: #fff; }
.is-busy { opacity: .7; pointer-events: none; }
.event-form-card { max-width: 760px; }
.event-form { padding: 18px 20px 20px; }
.event-form .modal-actions { margin-top: 14px; }
.event-form textarea { min-height: 90px; }
.boot__details { font-size: .78rem; color: var(--text-3); word-break: break-all; }

/* ==========================================================================
   v1.1 – Misklikkers-logo, bonus per lijn, teams, inzendvenster
   ========================================================================== */

/* ---------- logo ---------- */
.logo-arrow { display: block; flex: none; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.logo-word { display: block; }
.brand { gap: 10px; }
.brand__arrow { width: 26px; height: 34px; }
.brand__text { gap: 5px; }
.brand__word { width: 132px; height: auto; }
.brand__sub { font-size: .66rem; letter-spacing: .12em; }
@media (max-width: 760px) {
  .brand__arrow { width: 22px; height: 29px; }
  .brand__word { width: 112px; }
}

.hub-banner {
  margin: 0 0 32px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-strong);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(77, 163, 255, .08);
  aspect-ratio: 950 / 400; background: #0b1a24;
}
.hub-banner img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; }
@media (max-width: 560px) {
  .hub-banner { aspect-ratio: 950 / 540; margin-bottom: 24px; border-radius: 14px; }
}

.footer__clan { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.footer__arrow { width: 14px; height: 18px; }

.login__arrow { width: 34px; height: 44px; }
.boot__arrow { width: 40px; height: 52px; animation: bootPulse 1.6s ease-in-out infinite; }
@keyframes bootPulse { 0%, 100% { opacity: .55; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .boot__arrow { animation: none; } }

/* ---------- tiles-tabel past op één scherm ---------- */
.tiles-table { table-layout: fixed; }
.tiles-table th:nth-child(1) { width: auto; }
.tiles-table th:nth-child(2) { width: 90px; }
.tiles-table th:nth-child(3) { width: 150px; }
.tiles-table th:nth-child(4) { width: 156px; }
.tiles-table .tile-row { min-width: 0; }
.tiles-table .tile-row > div { min-width: 0; }
.tiles-table .tile-row__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tiles-table .tile-row__desc { max-width: none; }
@media (max-width: 760px) {
  .tiles-table th:nth-child(2) { width: 64px; }
  .tiles-table th:nth-child(4) { width: 56px; }
  .tiles-table td .btn span { display: none; }
  .tiles-table td, .tiles-table th { padding-left: 10px; padding-right: 10px; }
}

/* ---------- bonus voor volle lijnen ---------- */
.bonus-card { margin-bottom: 18px; }
.bonus-form { padding: 16px 20px 18px; }
.bonus-form .field-row { max-width: 640px; }
.bonus-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; font-size: .84rem; }

/* ---------- teams ---------- */
.teams-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  margin-bottom: 16px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2);
}
.teams-toolbar p { color: var(--text-2); font-size: .88rem; max-width: 70ch; margin: 0; }

/* ---------- inzendvenster ---------- */
.event-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.event-grid .event-form-card { max-width: none; }
@media (max-width: 960px) { .event-grid { grid-template-columns: minmax(0, 1fr); } }
#submit-window-admin { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.window-status {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px;
  background: rgba(240, 110, 90, .08); border: 1px solid rgba(240, 110, 90, .3); color: var(--text-2); font-size: .88rem;
}
.window-status .icon { width: 18px; height: 18px; flex: none; color: var(--rejected-text); margin-top: 1px; }
.window-status.is-open { background: rgba(70, 200, 120, .08); border-color: rgba(70, 200, 120, .3); }
.window-status.is-open .icon { color: var(--completed-text); }
.window-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.window-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.window-row strong { color: var(--text); font-size: .92rem; }
.window-row .muted { font-size: .8rem; }
.window-row__always { font-size: .8rem; font-weight: 700; color: var(--completed-text); white-space: nowrap; }
.window-note { font-size: .8rem; margin: 0; }
.switch {
  display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 4px 12px 4px 4px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: rgba(0, 0, 0, .3); color: var(--text-2); font: inherit; font-size: .82rem; font-weight: 700;
}
.switch__knob { width: 22px; height: 22px; border-radius: 50%; background: #3a4a66; transition: background .15s, transform .15s; }
.switch.is-on { border-color: rgba(70, 200, 120, .5); color: var(--completed-text); }
.switch.is-on .switch__knob { background: var(--completed); }
.switch:disabled { opacity: .45; cursor: not-allowed; }
.switch:focus-visible { outline: 3px solid var(--flame-tip); outline-offset: 2px; }

/* ---------- inzendpagina: gesloten ---------- */
.notice--closed .icon { color: var(--rejected-text); }
form.is-closed .field, form.is-closed .links-field, form.is-closed .checklist, form.is-closed .form-actions { opacity: .5; }
