/* Douze Points: every Eurovision song, score and vote. Dark "show night" design, mobile first. */
:root {
  --bg: #0d0a1f;
  --bg2: #120e2b;
  --surface: #1a1540;
  --surface2: #231c52;
  --line: #2f2766;
  --text: #f3f0ff;
  --muted: #a99fd6;
  --pink: #ff2d95;
  --pink-soft: #ff7cbc;
  --violet: #7b5cff;
  --cyan: #2de2e6;
  --gold: #ffcc33;
  --silver: #cfd6e6;
  --bronze: #e39a5b;
  --ok: #3ddc97;
  --radius: 14px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: Unbounded, Inter, system-ui, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font);
  background-image: radial-gradient(1200px 600px at 85% -10%, rgba(123, 92, 255, .22), transparent 60%),
                    radial-gradient(900px 500px at -10% 10%, rgba(255, 45, 149, .14), transparent 60%);
  background-attachment: fixed;
}
img, svg { max-width: 100%; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, .h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 700; }
h3, .h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.section { padding-top: 28px; padding-bottom: 40px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.block { display: block; }
.strong { font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--pink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--pink-soft); }
.eyebrow a { color: inherit; }
.lede { font-size: 1.1rem; color: #d9d2ff; max-width: 60ch; }
.grad { background: linear-gradient(90deg, var(--pink), var(--violet) 55%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(13, 10, 31, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.logo b { color: var(--pink); font-weight: 800; }
.logo-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font: 800 .95rem var(--display); color: #fff; background: linear-gradient(135deg, var(--pink), var(--violet)); box-shadow: 0 0 22px rgba(255, 45, 149, .45); }
.hsearch { margin-left: auto; flex: 0 1 300px; }
.hsearch input, .search-big input { width: 100%; background: var(--surface); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 9px 16px; font: inherit; }
.hsearch input::placeholder { color: var(--muted); }
.nav-toggle { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: 600 .9rem var(--font); }
.site-nav ul { list-style: none; display: none; flex-direction: column; gap: 2px; padding-bottom: 12px; margin: 0 auto; }
.site-nav.open ul { display: flex; }
.site-nav a { display: block; padding: 10px 12px; color: var(--text); text-decoration: none; font-weight: 600; border-radius: 10px; }
.site-nav a:hover, .site-nav a[aria-current] { background: var(--surface2); color: #fff; }
.site-nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--pink); }
@media (max-width: 559px) { .hsearch { display: none; } .nav-toggle { margin-left: auto; } }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav ul { display: flex; flex-direction: row; padding-bottom: 8px; }
  .site-nav a { padding: 6px 12px; }
}

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0 0; margin: 0; font-size: .85rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; }
.breadcrumbs a { color: var(--muted); }

/* page heads and heroes */
.page-head { padding: 22px 0 8px; }
.page-head h1 { margin-bottom: .2em; }
.hero { position: relative; padding: 36px 0 28px; }
.hero-grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 40px; } }
.hero h1 .flag { vertical-align: -0.05em; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; padding: 0; list-style: none; }
.hero-facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; }
.hero-facts strong { color: #fff; }
.statline { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 18px 0; }
.stat { background: linear-gradient(160deg, var(--surface2), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font: 800 1.7rem/1.1 var(--display); color: #fff; }
.stat span { color: var(--muted); font-size: .85rem; }
.stat.gold b { color: var(--gold); }

/* flags */
.flag { width: 24px; height: 18px; border-radius: 3px; object-fit: cover; vertical-align: -3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.flag-sm { width: 18px; height: 13.5px; }
.flag-lg { width: 40px; height: 30px; border-radius: 5px; }
.flag-xl { width: 64px; height: 48px; border-radius: 7px; }
.flag-hero { width: 96px; height: 72px; border-radius: 10px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .2); }
.cty { white-space: nowrap; color: var(--text); text-decoration: none; }
a.cty:hover { color: var(--cyan); }

/* tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg2); }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; }
.data th, .data td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data thead th { position: sticky; top: 0; background: var(--surface); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.data tbody tr:hover { background: rgba(123, 92, 255, .08); }
.data tbody th { font-weight: 600; }
.data .num { text-align: right; font-variant-numeric: tabular-nums; }
.data tfoot th, .data tfoot td { background: var(--surface); }
.data tr.winner { background: linear-gradient(90deg, rgba(255, 204, 51, .16), transparent 70%); }
.data tr.q td:first-child { box-shadow: inset 3px 0 0 var(--ok); }
.data .artist { display: block; font-size: .82rem; color: var(--muted); }
.data .song { color: #fff; font-weight: 600; text-decoration: none; }
.data .song:hover { color: var(--cyan); text-decoration: underline; }
.alt { color: var(--muted); font-size: .85em; }
.year { font: 700 1.05rem var(--display); color: #fff; text-decoration: none; }
.place { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 999px; background: var(--surface2); font-weight: 700; font-variant-numeric: tabular-nums; }
.place.p1 { background: var(--gold); color: #1a1300; box-shadow: 0 0 16px rgba(255, 204, 51, .5); }
.place.p2 { background: var(--silver); color: #10131a; }
.place.p3 { background: var(--bronze); color: #1d0f04; }
.place.plast { background: #3a1830; color: var(--pink-soft); }
.badge { display: inline-block; font-size: .7rem; font-weight: 800; padding: 1px 6px; border-radius: 6px; vertical-align: 1px; }
.q-badge { background: rgba(61, 220, 151, .16); color: var(--ok); }
.vid { width: 44px; }
.play { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; border: 0; background: var(--pink); color: #fff; cursor: pointer; box-shadow: 0 0 14px rgba(255, 45, 149, .4); }
.play svg { width: 16px; height: 16px; fill: currentColor; margin-left: 2px; }
.play:hover { background: #fff; color: var(--pink); }
.hl { background: rgba(255, 45, 149, .1); }
.hl-txt { color: var(--pink-soft); }
.bar-col { width: 30%; min-width: 90px; }
.bar { display: block; height: 8px; border-radius: 99px; width: var(--w); background: linear-gradient(90deg, var(--violet), var(--pink)); }

/* tabs and segmented controls */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; padding: 0; list-style: none; }
.tabs a, .seg button { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font: 600 .9rem var(--font); cursor: pointer; }
.tabs a[aria-current], .seg button[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: #fff; }
.seg { display: inline-flex; gap: 6px; margin-bottom: 12px; }

/* vote matrix */
.matrix { border-collapse: separate; border-spacing: 0; font-size: .8rem; }
.matrix th, .matrix td { padding: 0; border-bottom: 1px solid var(--line); }
.matrix thead th { position: sticky; top: 0; background: var(--surface); z-index: 2; }
.matrix tbody th { position: sticky; left: 0; background: var(--bg2); z-index: 1; text-align: left; padding: 4px 10px; white-space: nowrap; font-weight: 600; }
.matrix .corner { position: sticky; left: 0; z-index: 3; padding: 6px 10px; text-align: left; vertical-align: bottom; }
.matrix .voter { width: 30px; min-width: 30px; vertical-align: bottom; padding: 6px 0; }
.matrix .voter .vname { display: block; writing-mode: vertical-rl; transform: rotate(180deg); margin: 6px auto 0; font-weight: 500; color: var(--muted); max-height: 110px; overflow: hidden; }
.matrix .voter .flag { width: 20px; height: 15px; display: block; margin: 0 auto; }
.matrix td.c, .matrix td.self { text-align: center; width: 30px; min-width: 30px; height: 30px; font-weight: 700; font-variant-numeric: tabular-nums; border-left: 1px solid rgba(47, 39, 102, .5); }
.matrix td.num { padding: 0 10px; text-align: right; }
.matrix td.self { background: repeating-linear-gradient(45deg, transparent 0 4px, rgba(255, 255, 255, .05) 4px 8px); }
.matrix td.x1 { background: rgba(123, 92, 255, .22); }
.matrix td.x7 { background: rgba(123, 92, 255, .45); }
.matrix td.x10 { background: rgba(255, 45, 149, .55); }
.matrix td.x12 { background: var(--pink); color: #fff; }
.matrix tbody tr:hover th, .matrix tbody tr:hover td { box-shadow: inset 0 1px 0 var(--cyan), inset 0 -1px 0 var(--cyan); }

/* cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.vcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.vcard-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: #000; cursor: pointer; overflow: hidden; }
.vcard-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.vcard-thumb:hover img { transform: scale(1.05); }
.vcard-none { display: grid; place-items: center; cursor: default; background: linear-gradient(135deg, var(--surface2), var(--bg2)); }
.video-play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 999px; background: rgba(255, 45, 149, .92); display: grid; place-items: center; box-shadow: 0 0 30px rgba(255, 45, 149, .6); }
.video-play svg { width: 24px; height: 24px; fill: #fff; margin-left: 3px; }
.vcard-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; }
.vcard-body a { color: #fff; font-weight: 700; text-decoration: none; }
.vcard-body a:hover { color: var(--cyan); }
.vcard-title { font-family: var(--display); font-weight: 700; font-size: 1rem; }
.winner-cards .vcard { border-color: rgba(255, 204, 51, .3); }

.video { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.video-poster { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer; background: #000; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; }
.video-poster .video-play { width: 76px; height: 76px; }
.video-poster .video-play svg { width: 32px; height: 32px; }
.video-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; text-align: left; color: #fff; font-weight: 700; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }

/* lightbox */
.vbox { width: min(1000px, 94vw); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); color: var(--text); }
.vbox::backdrop { background: rgba(5, 3, 15, .85); backdrop-filter: blur(4px); }
.vbox-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.vbox-title { margin: 0; font-weight: 700; flex: 1; }
.vbox-close { background: var(--surface2); color: #fff; border: 0; border-radius: 999px; width: 36px; height: 36px; font-size: 1rem; cursor: pointer; }
.vbox-frame iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }

/* country grid */
.country-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
.country-card a { display: flex; flex-direction: column; gap: 4px; padding: 16px; height: 100%; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: transform .15s, border-color .15s; }
.country-card a:hover { transform: translateY(-2px); border-color: var(--pink); }
.country-card .flag-xl { margin-bottom: 6px; }
.cc-name { font: 700 1rem var(--display); }
.cc-meta { font-size: .85rem; color: #d9d2ff; }
.country-card.inactive a { opacity: .6; }

/* entry page */
.entry-hero h1 { font-size: clamp(2rem, 6vw, 3.6rem); }
.entry-hero .by { font-size: 1.25rem; margin: 0 0 6px; }
.entry-hero .by a { color: #fff; }
.result-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--surface2); font-weight: 700; }
.result-pill.win { background: var(--gold); color: #1a1300; box-shadow: 0 0 30px rgba(255, 204, 51, .45); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.cols-2 { display: grid; gap: 28px; }
@media (min-width: 900px) { .cols-2 { grid-template-columns: 1fr 1fr; } .cols-2-1 { grid-template-columns: 1.6fr 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.given { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.given-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.given-list .pts, .top-list .pts { display: inline-block; min-width: 28px; font-weight: 800; color: var(--pink-soft); font-variant-numeric: tabular-nums; }
.prevnext { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.prevnext a { padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); }

/* 12 points lists */
.twelves ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; }
.twelves li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tw-n { font-weight: 800; color: var(--pink-soft); min-width: 30px; }
.tw-from { display: inline-flex; flex-wrap: wrap; gap: 3px; align-items: center; color: var(--muted); font-size: .8rem; }

/* friends */
.friends { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.fr-top { display: flex; justify-content: space-between; gap: 8px; }
.fr-avg { font: 800 1.05rem var(--display); color: var(--pink-soft); }
.friends .bar { margin: 4px 0 2px; }

/* chart */
.chart { margin: 0 0 20px; }
.chart svg { width: 100%; height: auto; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; text-anchor: middle; }
.chart .line { fill: none; stroke: rgba(123, 92, 255, .6); stroke-width: 1.5; }
.chart .dot { fill: var(--cyan); }
.chart .dot.top { fill: var(--pink); }
.chart .dot.win { fill: var(--gold); stroke: #fff; stroke-width: 1.5; }
.chart .nq { fill: #6a5aa8; }

/* records */
.records { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.rec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.rec-wide { grid-column: 1 / -1; }
.rank { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 7px; }
.rank li { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.rk-n { min-width: 46px; font: 800 .95rem var(--display); color: var(--pink-soft); font-variant-numeric: tabular-nums; }
.rank a { color: #fff; font-weight: 600; text-decoration: none; }
.cols { columns: 280px; column-gap: 24px; padding: 0; list-style: none; margin: 0; }
.cols li { break-inside: avoid; margin-bottom: 6px; }
.cols a { color: #fff; font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; margin-bottom: 8px; }
.vbar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 3px; }
.vbar span { display: block; width: 100%; height: var(--h); background: linear-gradient(var(--pink), var(--violet)); border-radius: 4px 4px 0 0; min-height: 2px; }
.vbar b { font-size: .65rem; color: var(--muted); font-weight: 600; }

/* home */
.home-hero { padding: 44px 0 30px; }
.home-hero h1 { font-size: clamp(2.2rem, 7vw, 4.6rem); }
.kicker { font: 700 .8rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.top-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.top-list li { display: grid; grid-template-columns: auto auto 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; background: var(--surface); border-radius: 12px; border: 1px solid var(--line); }
.top-list a { color: #fff; font-weight: 700; text-decoration: none; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head a { font-weight: 600; }
.year-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: thin; }
.year-strip a { flex: 0 0 auto; padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font: 700 .9rem var(--display); }
.year-strip a:hover { border-color: var(--pink); }

/* replay */
.replay { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.replay-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.replay-controls button { padding: 9px 16px; border-radius: 999px; border: 0; background: var(--pink); color: #fff; font: 700 .9rem var(--font); cursor: pointer; }
.replay-controls button.ghost { background: var(--surface2); }
.replay-now { margin-left: auto; font-weight: 700; min-height: 1.5em; }
.replay-now .flag { margin-right: 4px; }
.rboard { position: relative; list-style: none; margin: 0; padding: 0; }
.rrow { position: absolute; left: 0; right: 0; height: 34px; display: grid; grid-template-columns: 30px 24px minmax(0, 1fr) 46px 38px; gap: 8px; align-items: center; padding: 0 10px; border-radius: 9px; background: var(--surface); transition: transform .6s cubic-bezier(.2, .8, .2, 1), background .3s; }
.rrow .rname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.rrow .rpts { text-align: right; font: 800 1rem var(--display); font-variant-numeric: tabular-nums; }
.rrow .rgot { text-align: center; font-weight: 800; border-radius: 6px; font-size: .8rem; opacity: 0; transition: opacity .3s; }
.rrow.got .rgot { opacity: 1; background: var(--violet); }
.rrow.got12 .rgot { background: var(--pink); }
.rrow.got12 { background: #3b1340; }
.rrow.lead { box-shadow: inset 3px 0 0 var(--gold); }
.rpos { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .85rem; }

.search-big { display: flex; gap: 8px; max-width: 640px; margin: 10px 0 20px; }
.search-big button { padding: 9px 18px; border-radius: 999px; border: 0; background: var(--pink); color: #fff; font-weight: 700; }

.prose { max-width: 70ch; }
.prose p, .prose li { color: #e6e0ff; }

.site-footer { margin-top: 50px; padding: 30px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; background: var(--bg2); }
.site-footer a { color: var(--muted); }
.foot-x { white-space: nowrap; }
.foot-x svg { vertical-align: -2px; }
.foot-logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* polish */
.rrow .rname { color: #fff; text-decoration: none; }
.rrow .rname:hover { color: var(--cyan); }
.rrow { height: 34px; }
.matrix .voter .vname { height: 96px; }
.stat b { white-space: nowrap; overflow-wrap: normal; font-size: clamp(1.05rem, .7rem + 1vw, 1.7rem); }
.artist-photo { margin: 0 0 16px; }
.artist-photo img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.artist-photo figcaption { margin-top: 6px; }
.artist-photo figcaption a { color: var(--muted); }

/* ---------------------------------------------------------------- members, picks, comments, national selections */
.acct { margin-left: auto; color: var(--text); text-decoration: none; font-weight: 600; font-size: .9rem; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; }
.acct:hover { border-color: var(--pink); }
.picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.pick { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 .9rem var(--font); text-decoration: none; cursor: pointer; }
.pick:hover { border-color: var(--pink-soft); }
.pick-n { color: var(--muted); font-weight: 500; }
.pick-fav[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); }
.pick-winner[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #1a1430; }
.pick[aria-pressed="true"] .pick-n { color: inherit; }
.pick:disabled { opacity: .6; }
.narrow { max-width: 640px; }
.form p { margin: 0 0 14px; }
.form label { display: block; font-weight: 600; margin-bottom: 4px; }
.form .check { display: flex; gap: 8px; align-items: baseline; }
.form .check label { display: inline; font-weight: 400; }
.form input:not([type="checkbox"]), .form textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: 1rem var(--font); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--violet); outline-offset: 1px; }
.btn { display: inline-block; padding: 10px 20px; border-radius: 999px; border: 0; background: var(--pink); color: #fff; font: 700 .95rem var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.1); }
.social { display: grid; gap: 10px; margin: 8px 0; }
.btn-social { text-align: center; background: var(--surface2); border: 1px solid var(--line); }
.btn-google:hover, .btn-facebook:hover { border-color: var(--cyan); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.notice { background: rgba(255, 45, 149, .12); border: 1px solid var(--pink); border-radius: 10px; padding: 10px 14px; }
.notice ul { margin: 0; padding-left: 18px; }
.field-error { display: block; color: var(--pink-soft); font-size: .85rem; margin-top: 4px; }
.link-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.comment-thread { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.comment { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.comment-meta { margin: 0 0 6px; font-size: .9rem; }
.comment-meta a { font-weight: 700; color: var(--text); }
.comment-meta time { color: var(--muted); margin-left: 6px; }
.comment-body p { margin: 0 0 8px; overflow-wrap: anywhere; }
.comment-body p:last-child { margin: 0; }
.comment-form { max-width: 640px; }
.song-list, .fan-list, .comment-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.song-list li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.song-list .yr { font-variant-numeric: tabular-nums; color: var(--muted); }
.song-list .res { margin-left: auto; font-size: .85rem; color: var(--muted); }
.comment-list p { margin: 4px 0 0; color: #e6e0ff; }
tr.agree td { background: rgba(255, 204, 51, .08); }
.nf-show { font-size: 1rem; margin: 18px 0 6px; color: var(--pink-soft); }
tr.nf-win td { background: rgba(255, 45, 149, .10); }
@media (max-width: 700px) { .acct { order: 3; } }
html { scroll-padding-top: 110px; }
.table-scroll + .nf-show, .table-scroll + .table-scroll { margin-top: 18px; }
table.data.nf td:nth-child(2), table.data.nf td:nth-child(3) { min-width: 12ch; }
/* avatars and profiles */
.avatar { display: inline-grid; place-items: center; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, var(--pink), var(--violet)); color: #fff; font: 700 1rem var(--display); flex: none; vertical-align: middle; }
.avatar-sm { width: 28px; height: 28px; font-size: .8rem; }
.avatar-lg { width: 96px; height: 96px; font-size: 2.2rem; }
.avatar-xl { width: 140px; height: 140px; font-size: 3.2rem; box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--pink); }
.profile-head { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.profile-head h1 { margin: 4px 0 10px; }
.profile-facts { margin-top: 12px; }
.profile-bio p { white-space: normal; }
.photo-edit { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.form select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: 1rem var(--font); }
.form input[type="file"] { padding: 8px; }
.notice-ok { background: rgba(61, 220, 151, .12); border-color: var(--ok); }
.fan-list li { display: flex; gap: 10px; align-items: center; }
.comment-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.comment-meta time { margin-left: 0; }
@media (max-width: 600px) { .avatar-xl { width: 104px; height: 104px; } }
/* play: predictions, leagues, quizzes */
.round-cards, .quiz-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 18px 0; }
.round-card, .quiz-card { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; }
.round-card b, .quiz-card b { font: 700 1.15rem var(--display); }
.round-card:hover, .quiz-card:hover { border-color: var(--pink); }
.round-card.open { border-color: var(--pink); box-shadow: 0 0 24px rgba(255, 45, 149, .25); }
.quiz-card.daily { background: linear-gradient(135deg, rgba(255, 45, 149, .35), rgba(123, 92, 255, .35)); border-color: var(--pink); }
.hero-links { margin-top: 8px; }
.rules li { margin-bottom: 6px; }
.song-picks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.song-pick { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.song-pick:has(input:checked) { border-color: var(--ok); background: rgba(61, 220, 151, .1); }
.song-pick:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.song-pick input { width: 18px; height: 18px; accent-color: var(--ok); }
.pick-count { position: sticky; top: 100px; z-index: 2; display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line); }
.badge-ok { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(61, 220, 151, .15); color: var(--ok); font-weight: 700; font-size: .9rem; }
.pick-thumb { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 10px; object-fit: cover; background: var(--bg2); }
.pick-thumb-none { display: inline-block; }
.pick-row { display: flex; gap: 10px; align-items: center; min-width: 0; }
.pick-row select { flex: 1; min-width: 0; }
.place-picks { list-style: none; padding: 0; display: grid; gap: 8px; max-width: 640px; }
.place-picks li { display: grid; grid-template-columns: 9rem 1fr; gap: 10px; align-items: center; }
.place-picks label, .last-pick label { font-weight: 700; }
.place-picks select, .last-pick select { width: 100%; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: .95rem var(--font); }
.last-pick { display: grid; grid-template-columns: 9rem 1fr; gap: 10px; align-items: center; max-width: 640px; margin-top: 16px; }
.standings tr.me td { background: rgba(255, 45, 149, .10); }
.standings td { white-space: nowrap; }
.league-list { list-style: none; padding: 0; display: grid; gap: 8px; margin-bottom: 20px; }
.league-forms { margin-top: 24px; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--pink); }
.btn-danger { background: #c2185b; }
.linkish { background: none; border: 0; padding: 0; color: var(--cyan); text-decoration: underline; cursor: pointer; font: inherit; }
.inline-form { display: inline; }
.invite { margin: 16px 0; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: .95rem var(--font); }
code.code { font: 700 1.05rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; color: var(--gold); }
details.danger { margin-top: 30px; } details.danger summary { cursor: pointer; color: var(--muted); }
.narrow-wide { max-width: 780px; }
.quiz-list, .quiz-review { padding-left: 0; list-style: none; counter-reset: q; display: grid; gap: 14px; }
.quiz-q fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px 16px; margin: 0; }
.quiz-q legend { font-weight: 700; padding: 0 4px; float: left; width: 100%; margin-bottom: 10px; }
.qn { color: var(--pink-soft); }
.quiz-opt { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; cursor: pointer; clear: both; }
.quiz-opt:hover { background: var(--surface2); }
.quiz-opt:has(input:checked) { background: rgba(123, 92, 255, .25); }
.quiz-opt input { accent-color: var(--pink); }
.quiz-score { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin: 6px 0 20px; }
.quiz-score b { font: 800 3rem var(--display); }
.quiz-review > li { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); }
.quiz-review > li.right { border-color: var(--ok); }
.quiz-review > li.wrong { border-color: #7a2450; }
.quiz-review .qq { font-weight: 700; margin: 0 0 8px; }
.quiz-review ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.quiz-review ul li { padding: 4px 10px; border-radius: 8px; color: var(--muted); }
.quiz-review ul li.correct { color: var(--ok); font-weight: 700; background: rgba(61, 220, 151, .1); }
.quiz-review ul li.given { color: var(--pink-soft); text-decoration: line-through; }
.board { padding-left: 1.4em; display: grid; gap: 8px; }
.board li { display: flex; gap: 8px; align-items: center; }
.board .pts { margin-left: auto; font-weight: 700; }
@media (max-width: 560px) { .place-picks li, .last-pick { grid-template-columns: 1fr; gap: 4px; } }
/* national selections on the contest year page */
.nf-year { display: grid; gap: 8px; }
.nf-country { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.nf-country > summary { cursor: pointer; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; list-style: none; }
.nf-country > summary::-webkit-details-marker { display: none; }
.nf-country > summary::before { content: "▸"; color: var(--pink-soft); transition: transform .15s; }
.nf-country[open] > summary::before { transform: rotate(90deg); }
.nf-country[open] > summary { border-bottom: 1px solid var(--line); }
.nf-country > :not(summary) { margin-left: 16px; margin-right: 16px; }
.nf-country > p:last-child { margin-bottom: 14px; }
.nf-sent { margin-left: auto; color: var(--gold); }
/* national selection videos */
table.nf td.vid, table.nf th.vid { width: 36px; padding-left: 4px; padding-right: 4px; text-align: center; }
.nf-play { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--pink); color: #fff; font-size: .8rem; cursor: pointer; display: inline-grid; place-items: center; }
.nf-play:hover { background: var(--pink-soft); box-shadow: 0 0 12px rgba(255, 45, 149, .5); }
.nf-yt { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: .85rem; }
.nf-yt:hover { color: var(--text); border-color: var(--cyan); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* quiz: one question at a time, photos, sharing */
.quiz-progress { margin: 0 0 16px; }
.qp-bar { height: 8px; border-radius: 999px; background: var(--surface2); overflow: hidden; }
.qp-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--gold)); transition: width .35s ease; }
.qp-text { margin: 8px 0 0; }
.quiz-form.stepping .quiz-q fieldset { padding: 20px; }
.quiz-form.stepping .quiz-q legend { font: 700 1.25rem/1.35 var(--display); }
.quiz-photo { margin: 0 0 14px; clear: both; }
.quiz-photo img { display: block; width: 100%; max-width: 320px; aspect-ratio: 4/5; object-fit: cover; border-radius: 12px; background: var(--surface2); }
.quiz-photo figcaption { margin-top: 6px; }
.quiz-photo.small-photo img { max-width: 120px; }
.quiz-opts { display: grid; gap: 8px; clear: both; }
.quiz-form.stepping .quiz-opt { border: 1px solid var(--line); background: var(--bg2); padding: 12px 14px; font-size: 1.02rem; }
.quiz-q.locked .quiz-opt { cursor: default; }
.quiz-q.locked .quiz-opt:not(.correct):not(.wrong) { opacity: .55; }
.quiz-opt.correct { border-color: var(--ok) !important; background: rgba(61, 220, 151, .15) !important; }
.quiz-opt.correct::after { content: "✓"; margin-left: auto; color: var(--ok); font-weight: 800; }
.quiz-opt.wrong { border-color: var(--pink) !important; background: rgba(255, 45, 149, .15) !important; }
.quiz-opt.wrong::after { content: "✗"; margin-left: auto; color: var(--pink-soft); font-weight: 800; }
.quiz-feedback:empty { display: none; }
.quiz-feedback { margin-top: 14px; }
.fb-verdict { font: 800 1.2rem var(--display); margin: 0 0 4px; }
.fb-verdict.ok { color: var(--ok); } .fb-verdict.no { color: var(--pink-soft); }
.quiz-grid { font-size: 1.6rem; letter-spacing: 2px; margin: 0 0 14px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share .btn { font-size: .9rem; }
@media (min-width: 700px) { .quiz-form.stepping .quiz-q fieldset:has(.quiz-photo) { display: grid; grid-template-columns: 260px 1fr; gap: 0 22px; } .quiz-form.stepping .quiz-q fieldset:has(.quiz-photo) legend { grid-column: 1 / -1; } .quiz-form.stepping .quiz-q fieldset:has(.quiz-photo) .quiz-feedback { grid-column: 2; } }

/* ---------------------------------------------------------------- walls, feed, friends, notifications */
.bell { position: relative; margin-left: auto; text-decoration: none; font-size: 1.1rem; padding: 4px 6px; line-height: 1; }
.bell + .acct { margin-left: 4px; }
.nbadge { position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--pink); color: #fff; font: 700 .7rem/18px var(--font); text-align: center; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.avatar-xs { width: 28px; height: 28px; font-size: .75rem; }
.avatar-md { width: 48px; height: 48px; font-size: 1.2rem; }
.wall-cols { display: grid; grid-template-columns: minmax(0, 680px) 300px; justify-content: start; gap: 28px; align-items: start; margin-top: 8px; }
.wall-main { max-width: 680px; min-width: 0; }
.wall-side { display: grid; gap: 16px; }
.wall-side h2 { font-size: 1rem; margin: 0 0 10px; }
.wall-narrow { max-width: 760px; }
@media (max-width: 900px) { .wall-cols { grid-template-columns: 1fr; } }
.profile-main { flex: 1; min-width: 240px; }
.friend-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.profile-tabs, .feed-tabs { margin: 18px 0; }
.composer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 20px; }
.composer-top { display: flex; gap: 10px; align-items: flex-start; }
.composer textarea, .pc-form textarea { flex: 1; width: 100%; min-width: 0; resize: vertical; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: 1rem/1.45 var(--font); }
.composer textarea:focus, .pc-form textarea:focus { outline: 2px solid var(--violet); outline-offset: 1px; }
.composer .post-song { margin: 12px 0 0; }
.composer-tip { margin: 8px 0 0 38px; }
.composer-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.composer-bar .btn:last-child { margin-left: auto; }
.file-btn { cursor: pointer; }
.file-btn:focus-within { outline: 2px solid var(--violet); }
.vis-select { padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: .85rem var(--font); }
.posts { display: grid; gap: 16px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; scroll-margin-top: 80px; }
.post:target { border-color: var(--pink); }
.post-head { display: flex; gap: 10px; align-items: flex-start; }
.post-head .avatar-sm { width: 40px; height: 40px; }
.post-meta { flex: 1; min-width: 0; }
.who { color: var(--text); font-weight: 700; text-decoration: none; }
.who:hover { text-decoration: underline; }
.post-time { color: inherit; text-decoration: none; }
.post-time:hover { text-decoration: underline; }
.post-menu, .friend-menu { position: relative; }
.post-menu summary, .friend-menu summary { list-style: none; cursor: pointer; }
.post-menu summary::-webkit-details-marker, .friend-menu summary::-webkit-details-marker { display: none; }
.post-menu summary { padding: 0 8px; border-radius: 8px; color: var(--muted); font-size: 1.3rem; line-height: 1.2; }
.post-menu summary:hover { background: var(--surface2); }
.post-menu-body { position: absolute; right: 0; top: 100%; z-index: 5; display: grid; gap: 10px; min-width: 240px; padding: 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.friend-menu .post-menu-body { left: 0; right: auto; min-width: 140px; }
.report-form { display: grid; gap: 6px; }
.report-form input { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: .85rem var(--font); }
.danger-text { color: var(--pink-soft); }
.post-body { margin-top: 10px; overflow-wrap: anywhere; }
.post-body p { margin: 0 0 8px; }
.post-body a { color: var(--cyan); }
.post-song { display: flex; gap: 12px; align-items: center; margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); }
.ps-thumb { position: relative; flex: 0 0 160px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: #000; }
.ps-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.ps-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.6rem; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.ps-thumb:hover .ps-play { color: var(--pink); }
.ps-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ps-title { color: var(--text); font-weight: 700; font-size: 1.05rem; }
@media (max-width: 520px) { .post-song { flex-direction: column; align-items: stretch; } .ps-thumb { flex-basis: auto; } }
.post-video { margin-top: 10px; }
.post-photo { display: block; margin-top: 10px; }
.post-photo img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: contain; border-radius: 12px; background: var(--bg2); }
.post-foot { display: flex; gap: 14px; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.like-btn { display: inline-flex; gap: 6px; align-items: center; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); font: 600 .85rem var(--font); cursor: pointer; }
span.like-btn { cursor: default; }
.like-btn[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); }
.post-comments { display: grid; gap: 8px; margin-top: 10px; }
.post-comments > p { margin: 0; }
.pc { display: flex; gap: 8px; align-items: flex-start; }
.pc-body { min-width: 0; }
.pc-bubble { display: inline-block; padding: 7px 12px; border-radius: 14px; background: var(--surface2); overflow-wrap: anywhere; }
.pc-form { display: flex; gap: 8px; align-items: flex-end; }
.pc-form textarea { padding: 7px 12px; border-radius: 16px; font-size: .95rem; }
.more-posts { text-align: center; margin-top: 18px; }
.empty-feed { padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.people { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.person { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.person-text { flex: 1; min-width: 0; }
.person-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.count-badge { display: inline-block; min-width: 1.6em; padding: 1px 7px; border-radius: 999px; background: var(--surface2); color: var(--muted); font: 600 .8rem var(--font); text-align: center; vertical-align: middle; }
.friend-search { margin-bottom: 8px; }
.notes { list-style: none; padding: 0; display: grid; gap: 8px; }
.note { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.note.unread { border-color: var(--pink); background: rgba(255, 45, 149, .08); }
.report-row { margin-bottom: 24px; }
.pick-share { color: var(--text); }

/* Pick / share buttons: actions, not facts. Coloured, bigger, lift on hover (stat pills above stay flat). */
.picks { gap: 10px; margin: 18px 0 8px; }
.pick { padding: 10px 18px; font: 700 .95rem var(--font); border-width: 1.5px; box-shadow: 0 4px 14px rgba(0, 0, 0, .28); transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease; }
.pick:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, .38); }
.pick:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.pick-icon { font-size: 1.1rem; line-height: 1; }
.pick-n { display: inline-block; min-width: 1.6em; padding: 1px 7px; border-radius: 999px; background: rgba(0, 0, 0, .28); color: var(--text); font: 700 .78rem/1.5 var(--font); text-align: center; }
.pick-fav { background: rgba(255, 45, 149, .16); border-color: var(--pink); }
.pick-fav .pick-icon { color: var(--pink); }
.pick-fav:hover { background: rgba(255, 45, 149, .28); border-color: var(--pink); }
.pick-winner { background: rgba(255, 204, 51, .13); border-color: var(--gold); }
.pick-winner .pick-icon { color: var(--gold); }
.pick-winner:hover { background: rgba(255, 204, 51, .24); border-color: var(--gold); }
.pick-share { background: rgba(45, 226, 230, .12); border-color: var(--cyan); }
.pick-share .pick-icon { color: var(--cyan); }
.pick-share:hover { background: rgba(45, 226, 230, .22); border-color: var(--cyan); }
.pick-fav[aria-pressed="true"] .pick-icon, .pick-winner[aria-pressed="true"] .pick-icon { color: inherit; }
.pick[aria-pressed="true"] .pick-n { background: rgba(0, 0, 0, .22); }
@media (prefers-reduced-motion: reduce) { .pick { transition: none; } .pick:hover { transform: none; } }

/* Home hero: join / your-profile panel */
.join-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center; margin-top: 34px; padding: 26px 28px;
  border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(135deg, rgba(255, 45, 149, .14), rgba(123, 92, 255, .12) 55%, rgba(45, 226, 230, .08)), var(--surface); }
.join-panel h2 { margin: 4px 0 8px; font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.join-panel p { margin: 0 0 12px; }
.join-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px !important; }
.join-proof { display: flex; align-items: center; gap: 12px; }
.face-stack { display: inline-flex; }
.face-stack .avatar { width: 36px; height: 36px; box-shadow: 0 0 0 2px var(--surface); }
.face-stack .avatar + .avatar { margin-left: -10px; }
.join-features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.join-features li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: rgba(13, 10, 31, .45); border: 1px solid var(--line); }
.jf-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--surface2); font-size: 1.15rem; }
.join-me { display: flex; gap: 16px; align-items: center; }
.join-me h2 { margin-bottom: 2px; }
.join-meter { width: 220px; max-width: 100%; height: 8px; border-radius: 999px; background: var(--surface2); overflow: hidden; }
.join-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pink), var(--violet), var(--cyan)); }
.join-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.join-steps li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(13, 10, 31, .45); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; }
.join-steps li.done { color: var(--muted); font-weight: 500; }
.join-steps a { color: var(--text); }
.js-check { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); font-size: .75rem; font-weight: 800; }
.join-steps li.done .js-check { background: var(--ok); border-color: var(--ok); color: #0d0a1f; }
@media (max-width: 860px) { .join-panel { grid-template-columns: 1fr; padding: 22px 18px; } }
@media (max-width: 520px) { .join-features, .join-steps { grid-template-columns: 1fr; } }

/* Contests that have not happened yet */
.coming { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 16px 0; padding: 14px 16px; border: 1px solid var(--cyan); border-radius: var(--radius); background: rgba(45, 226, 230, .08); }
.coming-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--cyan); color: #0d0a1f; font: 800 .8rem var(--display); letter-spacing: .04em; white-space: nowrap; }
.year-strip a.soon { border-style: dashed; border-color: var(--cyan); color: var(--cyan); }

/* Moderation */
.held-note { margin: 10px 0 0; border-color: var(--gold); background: rgba(255, 204, 51, .10); }
.held-tag { color: var(--gold); }
.mod-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 10px; }
.word-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 18px; }
.word-form input { flex: 1; min-width: 180px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: .95rem var(--font); }
.word-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.word-list li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.friend-menu .post-menu-body span { display: block; }
.post-menu-body input { width: 100%; }

/* Feed: activity lines, daily cards, live banner */
.activity { list-style: none; padding: 4px 0; margin: 0; display: grid; gap: 6px; }
.act { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 12px; background: rgba(26, 21, 64, .55); border: 1px solid transparent; font-size: .92rem; }
.act-icon { flex: none; width: 1.4em; text-align: center; }
.act-fav .act-icon { color: var(--pink); }
.act-winner .act-icon { color: var(--gold); }
.act-text a { color: var(--cyan); }
.act-text .who { color: var(--text); }
.daily-card { margin-bottom: 14px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(135deg, rgba(123, 92, 255, .16), rgba(45, 226, 230, .06)), var(--surface); }
.daily-card .kicker { margin: 0 0 4px; }
.daily-card .post-song { margin-top: 6px; }
.daily-links { margin: 10px 0 0; }
.otd { background: linear-gradient(135deg, rgba(255, 204, 51, .14), rgba(255, 45, 149, .06)), var(--surface); }
.otd-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; }
.otd-list li { display: flex; gap: 8px; align-items: baseline; }
.live-banner { display: flex; gap: 12px; align-items: center; margin: 16px 0; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; }
.live-banner.is-live { border-color: var(--pink); background: linear-gradient(90deg, rgba(255, 45, 149, .22), rgba(123, 92, 255, .12)); }
.live-banner:hover { border-color: var(--pink-soft); }
.live-go { margin-left: auto; font-size: 1.3rem; }
.live-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 rgba(255, 45, 149, .7); animation: livepulse 1.6s infinite; flex: none; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 10px rgba(255, 45, 149, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 45, 149, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
/* Live thread */
.live-state { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; }
.live-state.is-live { border-color: var(--pink); }
.live-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 6px; }
.lm { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 12px; background: var(--surface); }
.lm.mine { background: var(--surface2); }
.lm-body { flex: 1; min-width: 0; }
.lm-head { display: block; font-size: .85rem; }
.lm-text { overflow-wrap: anywhere; }
.lm-del button { color: var(--muted); text-decoration: none; }
.live-form { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 0; background: var(--bg); }
.live-form input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: 1rem var(--font); }
.live-err { flex-basis: 100%; color: var(--pink-soft); }
.live-err:empty { display: none; }

/* National selections: home promo and overview */
.nf-promo { display: flex; gap: 12px; align-items: center; margin: 0 0 14px; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--cyan); background: linear-gradient(90deg, rgba(45, 226, 230, .14), rgba(123, 92, 255, .10)); color: var(--text); text-decoration: none; }
.nf-promo:hover { border-color: var(--pink-soft); }
.nf-promo .small { color: var(--muted); }
.nf-promo-icon { font-size: 1.5rem; }
.nf-years { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.nf-years a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; }
.nf-years a:hover { border-color: var(--cyan); }
.nf-years b { font: 800 1.3rem var(--display); }
.nf-years span { font-size: .85rem; }
.nf-countries { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.nf-countries a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; }
.nf-countries a:hover { border-color: var(--cyan); }

/* What-ifs */
.wi-col { text-align: center; white-space: nowrap; }
.wi-btn { display: inline-flex; gap: 4px; align-items: center; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 700 .8rem var(--font); cursor: pointer; text-decoration: none; }
.wi-btn:hover { border-color: var(--violet); color: var(--text); }
.wi-btn[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: #fff; }
.wi-n:empty { display: none; }
.wi-went { color: var(--ok); font-size: .8rem; font-weight: 700; }
.whatifs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.whatifs li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.wi-text { flex: 1; min-width: 0; }
.wi-fans { flex: none; min-width: 3.2em; padding: 3px 8px; border-radius: 999px; background: var(--violet); color: #fff; font: 800 .8rem var(--font); text-align: center; }
.act-whatif .act-icon { color: var(--violet); }

/* League invites */
.share-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 0; }
.invite-mail { margin-top: 12px; }
.invite-mail summary { cursor: pointer; color: var(--cyan); font-weight: 600; }
.invite-mail .form { margin-top: 10px; }
.invite-mail textarea, .invite-mail input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: 1rem var(--font); }

/* League cards */
.league-cards { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.league-cards a { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface2), var(--surface)); color: var(--text); text-decoration: none; }
.league-cards a:hover { border-color: var(--gold); }
.league-cards b { font-size: 1.05rem; }
.league-you-rank { margin-top: 6px; color: var(--gold); font-weight: 700; font-size: .9rem; }
.league-mini { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.league-mini a { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 8px 10px; border-radius: 10px; background: var(--bg2); color: var(--text); text-decoration: none; }
.league-mini a .muted { grid-column: 1; }
.league-mini .league-you-rank { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; font-size: .8rem; }
.leagues-panel { padding-top: 8px; }
/* Phones: the ✦ what-if button sits after the song title (the last table column is off-screen there). */
.wi-inline { display: none; }
@media (max-width: 700px) {
  table.nf .wi-col { display: none; }
  table.nf .wi-inline { display: inline-flex; margin-left: 6px; vertical-align: middle; }
  table.nf .wi-inline .wi-went { display: none; }
}
.wi-head { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.wi-head:hover { color: var(--violet); }
/* What-if: make the header and the explainer clearly clickable */
th.wi-col .wi-head { display: inline-flex; gap: 6px; align-items: center; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--violet); color: #cfc4ff; text-decoration: none; letter-spacing: 0; text-transform: none; font-weight: 700; }
th.wi-col .wi-head:hover { background: var(--violet); color: #fff; }
.wi-info { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--violet); color: #fff; font: 800 .7rem/1 var(--font); }
.wi-explain { color: #cfc4ff; }
.wi-explain:hover { color: #fff; }

/* National selection song pages */
.nf-song { color: var(--text); text-decoration: underline; text-decoration-color: rgba(45, 226, 230, .55); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.nf-song::after { content: " →"; color: var(--cyan); font-weight: 700; }
.nf-song:hover { color: var(--cyan); text-decoration-color: var(--cyan); }
.wi-question { font: 700 1.25rem/1.35 var(--display); margin: 18px 0 14px; }
.wi-btn-big { padding: 10px 20px; font-size: 1rem; border-color: var(--violet); color: #fff; }
.wi-btn-big .wi-n { background: rgba(0, 0, 0, .25); border-radius: 999px; padding: 0 8px; }
.wi-went.big { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--ok); font-size: 1rem; }

/* ---- installed app (Home Screen): room for the notch and home bar, install sheet ---- */
@media (display-mode: standalone) {
  .site-header { padding-top: env(safe-area-inset-top); }
  .site-footer { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
  .live-form { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  [data-install] { display: none; }
}
.install-sheet { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90; max-width: 440px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 14px 14px 16px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); color: var(--text); font-size: .92rem; line-height: 1.4; }
.install-sheet img { width: 48px; height: 48px; border-radius: 12px; }
.install-sheet strong { display: block; font-family: var(--display); font-size: .95rem; }
.install-sheet .share-ico { display: inline-block; vertical-align: -3px; width: 16px; height: 16px; }
.install-sheet button { background: none; border: 0; color: var(--muted); font-size: 1.2rem; padding: 6px; cursor: pointer; }
.install-sheet .btn-install { grid-column: 1 / -1; justify-self: stretch; color: #fff; font: 600 .95rem var(--font); padding: 10px; border-radius: 999px; background: linear-gradient(135deg, var(--pink), var(--violet)); }
.app-steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.app-steps ol { margin: 6px 0 0; padding-left: 1.2em; }

/* ---- national final predictions (/play/national-finals/) ---- */
.nf-promo-hot { border-color: var(--pink); background: linear-gradient(90deg, rgba(255, 45, 149, .16), rgba(123, 92, 255, .12)); }
.nf-promo-hot .kicker { display: block; color: var(--pink-soft); font-size: .7rem; }
.nf-promo-hot .flag { vertical-align: -3px; margin-right: 4px; }
.round-card .kicker .flag { vertical-align: -3px; margin-right: 4px; }
.nf-layout { align-items: start; }
.nf-form .place-picks li { grid-template-columns: 11rem 1fr; }
.nf-acts { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.nf-act { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.nf-act-name { min-width: 0; flex: 1; }
.nf-act.nf-win { border-color: var(--gold); }
.nf-act.nf-out { opacity: .5; }
.nf-place { font: 700 .85rem var(--display); color: var(--gold); min-width: 2.4rem; }
.nf-mine { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--pink); color: #fff; white-space: nowrap; }
.nf-vote { display: flex; align-items: center; gap: 6px; min-width: 88px; justify-content: flex-end; }
.nf-bar { width: 52px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.nf-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--violet)); }
.league-kind { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0 0 12px; display: grid; gap: 6px; }
.league-kind legend { font-weight: 700; padding: 0 4px; }
@media (max-width: 560px) { .nf-form .place-picks li { grid-template-columns: 1fr; } .nf-vote { min-width: 0; } .nf-bar { width: 36px; } }

/* ---- nudge bubble: the next step for this visitor (join, profile, friends, predict) ---- */
.nudge { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 89; width: min(360px, calc(100vw - 32px));
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 14px 10px 14px 14px; border-radius: 20px 20px 20px 6px;
  background: var(--surface); border: 1px solid var(--pink); box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 30px rgba(255, 45, 149, .2);
  color: var(--text); font-size: .9rem; line-height: 1.4; transform-origin: bottom left; animation: nudge-in .35s cubic-bezier(.2, 1.4, .4, 1); }
.nudge[hidden] { display: none; }
.nudge-ico { font-size: 1.6rem; line-height: 1; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--pink), var(--violet)); }
.nudge strong { display: block; font-family: var(--display); font-size: .95rem; }
.nudge p { margin: 4px 0 0; }
.nudge .nudge-actions { margin-top: 10px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.nudge-close { background: none; border: 0; color: var(--muted); font-size: 1.1rem; padding: 2px 6px; cursor: pointer; }
.nudge-close:hover { color: var(--text); }
@keyframes nudge-in { from { opacity: 0; transform: scale(.6) translateY(20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nudge { animation: none; } }
@media (max-width: 560px) { .nudge { left: 12px; right: 12px; width: auto; bottom: calc(12px + env(safe-area-inset-bottom)); } }

/* ---- sign-up: header button, sheet ({exp:esc:join_sheet}), perks list ---- */
.join-btn { padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: #fff; text-decoration: none; white-space: nowrap;
  background: linear-gradient(135deg, var(--pink), var(--violet)); box-shadow: 0 0 18px rgba(255, 45, 149, .35); }
.join-btn:hover { filter: brightness(1.1); }
@media (max-width: 480px) { .join-btn { padding: 6px 11px; font-size: .82rem; } }
.join-perks { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.join-perks li { display: grid; grid-template-columns: 2rem 1fr; align-items: start; gap: 8px; }
.join-perks li span { font-size: 1.2rem; line-height: 1.3; }
.join-sheet { width: min(440px, calc(100vw - 24px)); padding: 26px 24px 18px; border-radius: 22px; border: 1px solid var(--pink); background: var(--surface); color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 40px rgba(255, 45, 149, .25); }
.join-sheet::backdrop { background: rgba(8, 5, 20, .7); backdrop-filter: blur(3px); }
.join-sheet[open] { animation: nudge-in .3s cubic-bezier(.2, 1.3, .4, 1); }
.join-sheet h2 { margin: 4px 0 0; font: 800 1.35rem/1.2 var(--display); }
.join-sheet .kicker { margin: 0; }
.join-sheet-close { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--muted); font-size: 1.2rem; cursor: pointer; padding: 6px; }
.btn-block { display: block; width: 100%; text-align: center; }
.center { text-align: center; }
.welcome-steps { display: grid; gap: 8px; padding-left: 1.3em; }
@media (prefers-reduced-motion: reduce) { .join-sheet[open] { animation: none; } }
@media (max-width: 700px) { .join-btn { order: 3; } }
.nav-signin { display: none; }
@media (max-width: 480px) { .acct-guest { display: none; } .nav-signin { display: list-item; } .join-btn { margin-left: 2px; } }
