/* ============================================================
   Veulense Top 250 — huisstijl
   Display: Anton (chart-poster) · UI: Instrument Sans
   ============================================================ */

:root {
  --ink:      #191528;
  --paper:    #F3F2F7;
  --surface:  #FFFFFF;
  --gold:     #E9A70C;
  --gold-ink: #4A3400;
  --berry:    #D6215F;
  --berry-dk: #B21149;
  --night:    #17123B;
  --night-2:  #241C56;
  --mist:     #6E6A85;
  --line:     #E4E2EC;
  --ok:       #1E9E6A;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(23, 18, 59, 0.10);
  --maxw: 620px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.display {
  font-family: "Anton", "Instrument Sans", sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.92;
  text-transform: uppercase;
}

a { color: var(--berry); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* ---- masthead ---- */
.masthead { padding: 30px 0 18px; }
.mast-kicker {
  font-size: 13px; font-weight: 600; color: var(--berry);
  letter-spacing: 0.02em;
}
.mast-title {
  font-family: "Anton", sans-serif; text-transform: uppercase;
  line-height: 0.86; margin: 6px 0 0;
  font-size: clamp(46px, 15vw, 88px); color: var(--ink);
}
.mast-title .two-fifty { color: var(--berry); display: block; }
.mast-sub { margin: 12px 0 0; color: var(--mist); font-size: 16px; max-width: 34ch; }

/* ---- cards / panels ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 16px; }

.step-title { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.step-note { color: var(--mist); font-size: 14px; margin: 0 0 16px; }

/* ---- forms ---- */
label.field { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=search] {
  width: 100%; font: inherit; color: var(--ink);
  padding: 13px 14px; background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  outline: none; transition: border-color .12s ease, box-shadow .12s ease;
}
input:focus {
  border-color: var(--berry);
  box-shadow: 0 0 0 3px rgba(214, 33, 95, 0.14);
}
.code-input {
  letter-spacing: 0.5em; font-size: 26px; text-align: center;
  font-family: "Anton", sans-serif; padding: 14px;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; cursor: pointer;
  padding: 13px 18px; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; background: #fff; color: var(--ink);
  transition: transform .06s ease, background .12s ease, border-color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--berry); color: #fff; border-color: var(--berry); }
.btn-primary:hover:not([disabled]) { background: var(--berry-dk); border-color: var(--berry-dk); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; margin-top: 16px; }

/* ---- notices ---- */
.notice { border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; margin: 14px 0 0; }
.notice-error { background: #FCE9EF; color: var(--berry-dk); border: 1px solid #F3C4D3; }
.notice-info  { background: #FFF6DE; color: var(--gold-ink); border: 1px solid #F3E0A6; }
.notice-ok    { background: #E6F6EE; color: #0F6B45; border: 1px solid #BFE7D3; }
.notice code  { font-weight: 700; letter-spacing: 0.2em; font-size: 18px; }

/* ---- search + results ---- */
.search-box { position: relative; }
.hits { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.hit {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  padding: 8px; border: 1px solid transparent; border-radius: var(--radius-sm);
  background: transparent; cursor: pointer; font: inherit;
}
.hit:hover { background: var(--paper); }
.hit[disabled] { opacity: .45; cursor: default; }
.hit .cover { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: var(--line); flex: none; }
.hit .meta { min-width: 0; flex: 1; }
.hit .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hit .a { color: var(--mist); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hit .add { font-weight: 700; color: var(--berry); flex: none; font-size: 22px; line-height: 1; }
.hit.picked .add { color: var(--ok); }

/* ---- pick list (jouw top 10) ---- */
.picks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pick {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 8px 10px;
}
.pick .num { font-family: "Anton", sans-serif; font-size: 20px; color: var(--berry); width: 26px; text-align: center; flex: none; }
.pick .cover { width: 40px; height: 40px; border-radius: 7px; object-fit: cover; background: var(--line); flex: none; }
.pick .meta { min-width: 0; flex: 1; }
.pick .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick .a { color: var(--mist); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick .rm { border: none; background: none; color: var(--mist); font-size: 22px; cursor: pointer; padding: 4px 8px; line-height: 1; }
.pick .rm:hover { color: var(--berry); }
.slot-empty { border: 1.5px dashed var(--line); color: var(--mist); font-size: 14px; }
.slot-empty .num { color: var(--mist); }

/* ---- sticky counter bar ---- */
.tray {
  position: sticky; bottom: 0; z-index: 20;
  margin-top: 18px; padding: 14px 0 18px;
  background: linear-gradient(to top, var(--paper) 72%, rgba(243,242,247,0));
}
.tray-inner {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow);
}
.dots { display: flex; gap: 5px; flex-wrap: wrap; flex: 1; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.dot.on { background: var(--berry); }
.tray-count { font-family: "Anton", sans-serif; font-size: 22px; white-space: nowrap; }
.tray-count small { font-family: "Instrument Sans"; color: var(--mist); font-size: 13px; font-weight: 600; }

/* ---- results / countdown (donker podium) ---- */
body.stage { background: var(--night); color: #F3F0FF; }
.stage .wrap { max-width: 720px; }
.stage-head { text-align: center; padding: 40px 0 10px; }
.stage-head .kicker { color: var(--gold); font-weight: 600; letter-spacing: .04em; }
.stage-head .title {
  font-family: "Anton", sans-serif; text-transform: uppercase;
  font-size: clamp(44px, 13vw, 78px); line-height: .86; margin: 8px 0 0;
}
.stage-head .title em { font-style: normal; color: var(--gold); }
.stage-head .total { color: #B8B2E0; margin-top: 10px; }

.chart { list-style: none; margin: 26px 0 60px; padding: 0; }
.row {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 6px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.row .rank { font-family: "Anton", sans-serif; font-size: 30px; color: #6E67A8; width: 58px; text-align: right; flex: none; }
.row .cover { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--night-2); flex: none; }
.row .meta { min-width: 0; flex: 1; }
.row .t { font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .a { color: #B8B2E0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .v { color: #8F88C4; font-size: 13px; flex: none; }

.row.top1 { background: linear-gradient(90deg, rgba(233,167,12,.16), transparent 70%); border-radius: var(--radius); border-bottom-color: transparent; padding: 18px 12px; }
.row.top1 .rank, .row.top3 .rank { color: var(--gold); }
.row.top1 .cover { width: 74px; height: 74px; }
.row.top1 .t { font-size: 22px; }

/* ---- misc ---- */
.center { text-align: center; }
.mt { margin-top: 16px; }
.hidden { display: none !important; }
.muted { color: var(--mist); }
.foot { text-align: center; color: var(--mist); font-size: 13px; padding: 24px 0 40px; }
.spinner {
  width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.5);
  border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block;
}
.btn-ghost .spinner { border-color: rgba(25,21,40,.4); border-top-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
