/* audit 6: the hidden attribute always wins (a display rule on a class used to override it, e.g. the gated .rvote cards) */
[hidden] { display: none !important; }
/* metric-matched fallbacks while the web fonts load: text keeps (nearly) the same size, so the page doesn't jump
   when Inter / Barlow Condensed arrive (phone audit 2026-10-04: font swap caused the layout shift Cloudflare reported) */
@font-face { font-family: 'Inter fb'; src: local('Arial'), local('Helvetica'); size-adjust: 107%; ascent-override: 90%; descent-override: 22.5%; line-gap-override: 0%; }
@font-face { font-family: 'Barlow Condensed fb'; src: local('Arial Narrow'), local('Arial'), local('Helvetica'); size-adjust: 78%; ascent-override: 128%; descent-override: 32%; line-gap-override: 0%; }
/* rallycross.is. Dark, loud, fast. Colours follow VEKTR's on-air rallycross pack (vektr/output/src/graphics/torfaera/torfaera.css). */
:root {
  --bg: #0e0e11;
  --bg2: #141418;
  --card: #1a1a1f;
  --line: #2b2b32;
  --text: #f2f2f4;
  --muted: #9a9aa4;
  --accent: #3e6cb8;
  --accent-hi: #5482cc;
  --accent-deep: #1e3d73;
  --on-accent: #ffffff;
  --accent2: #7fa3dd;
  --gold: #c7a339;
  --silver: #c9ccd3;
  --bronze: #c98a52;
  --live: #c8291e;
  --ok: #1fa35c;
  --r: 10px;
  --wrap: 1240px;
  --head: 'Barlow Condensed', 'Barlow Condensed fb', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Inter', 'Inter fb', system-ui, -apple-system, 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: 400 16px/1.55 var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--accent); color: var(--on-accent); padding: 8px 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow-top { padding-top: 40px; padding-bottom: 64px; }
.center { text-align: center; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(14, 14, 17, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top__in { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: stretch; text-decoration: none; font: 800 24px/1 var(--head); letter-spacing: .01em; text-transform: uppercase; }
/* two matching slanted blocks: RX filled, ÍSLAND outlined, same height, slant and padding */
.logo__rx, .logo__is { display: inline-flex; align-items: center; height: 34px; padding: 0 7px; border: 2px solid var(--accent); transform: skewX(-12deg); }
.logo__rx { background: var(--accent); color: var(--on-accent); }
.logo__is { border-left: 0; color: var(--text); }
.logo--sm { font-size: 20px; }
.logo--sm .logo__rx, .logo--sm .logo__is { height: 30px; padding: 0 6px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font: 700 17px/1 var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 0; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; gap: 7px; }
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.nav a[aria-current] { border-color: var(--accent); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.is-live .live-dot { background: var(--live); box-shadow: 0 0 0 0 rgba(200, 41, 30, .7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(200, 41, 30, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 41, 30, 0); } }
.lang { font: 700 14px/1 var(--head); letter-spacing: .08em; text-decoration: none; border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; color: var(--muted); }
.lang:hover { color: var(--text); border-color: var(--muted); }

/* type */
.kicker { font: 700 14px/1.2 var(--head); text-transform: uppercase; letter-spacing: .14em; color: var(--accent2); margin: 0 0 10px; }
.kicker a { text-decoration: none; }
.h1 { font: italic 800 clamp(38px, 6vw, 64px)/.95 var(--head); text-transform: uppercase; margin: 0 0 14px; letter-spacing: .005em; }
.lead.lead--wide { max-width: none; }
.lead { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 0 28px; }
.under { color: var(--muted); margin: 0 0 24px; }
.under a { color: var(--text); }
h2 { font: italic 800 30px/1 var(--head); text-transform: uppercase; margin: 0 0 16px; }
h3 { font: 700 18px/1.1 var(--head); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; color: var(--muted); }

.btn { display: inline-block; border: 0; background: var(--accent); color: var(--on-accent); text-decoration: none; font: 800 18px/1 var(--head); text-transform: uppercase; letter-spacing: .08em; padding: 14px 26px; border-radius: 6px; transition: transform .15s, background .15s; }
.btn:hover { background: var(--accent-hi); transform: translateY(-1px); }

/* hero */
.hero { position: relative; display: grid; grid-template-columns: 1.5fr 1fr; min-height: 520px; background: #000; border-bottom: 1px solid var(--line); }
.hero__media { position: relative; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .6s; }
.hero__media:hover img { transform: scale(1.02); }
.hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, #000); }
.hero__txt { display: flex; flex-direction: column; justify-content: center; padding: 48px 48px 48px 24px; }
.hero h1, .hero .hero__h { font: italic 800 clamp(40px, 5vw, 72px)/.92 var(--head); text-transform: uppercase; margin: 0 0 14px; }
.hero h1 em, .hero .hero__h em { color: var(--accent2); font-style: italic; }
.hero__date { color: var(--muted); margin: 0 0 24px; }
.hero__tag { color: var(--muted); font-size: 14px; margin: 28px 0 0; max-width: 360px; }
.hero .btn { align-self: flex-start; }
.play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--accent); border: 0; cursor: pointer; z-index: 2; box-shadow: 0 10px 40px rgba(62, 108, 184, .45); transition: transform .15s; }
.play::before { content: ''; position: absolute; left: 34px; top: 26px; border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent var(--on-accent); }
a:hover .play, .play:hover { transform: scale(1.07); }

/* next event */
.next { margin: 40px 0 8px; padding: 22px 26px; background: linear-gradient(100deg, var(--card), var(--bg2)); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r); display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; align-items: center; }
.next .kicker { grid-column: 1; margin: 0; }
.next__name { font: italic 800 28px/1.05 var(--head); text-transform: uppercase; margin: 0; grid-column: 1; }
.next__when { color: var(--muted); margin: 0; grid-column: 1; }
.next__cd { grid-column: 2; grid-row: 1 / span 3; display: flex; gap: 14px; }
.next__cd div { text-align: center; min-width: 64px; }
.next__cd b { display: block; font: 800 42px/1 var(--head); }
.next__cd span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.next.is-over .next__name { font-size: 22px; }
.next__acts { grid-column: 2; grid-row: 1 / span 3; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; }
.next__cal { font: 700 15px/1 var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 8px; padding: 14px 22px; cursor: not-allowed; opacity: .75; white-space: nowrap; }
.next__recap { font-size: 16px; padding: 13px 22px; border-radius: 8px; white-space: nowrap; }
.next:not(.is-over) .next__acts { display: none; }

/* sections */
.sec { margin-top: 48px; }
.sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.more { color: var(--muted); font: 700 15px/1 var(--head); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; white-space: nowrap; }
.more::after { content: ' →'; }
.more:hover { color: var(--accent2); }

/* video grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px 18px; }
.vcard { text-decoration: none; display: block; }
/* Myndbönd: Netflix-style rows, one category per row, side scrolling (the user 2026-10-03) */
.dhead { display: grid; grid-template-columns: 1fr 260px; gap: 32px; align-items: start; }
.dhead__txt { min-width: 0; }
.dphoto { aspect-ratio: 1; border-radius: var(--r); overflow: hidden; margin-top: 28px; }
.dphoto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dphoto--empty { border: 2px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center; color: var(--muted); }
.dphoto--empty p { margin: 0; font: 700 18px/1.2 var(--head); text-transform: uppercase; color: var(--text); }
.dphoto--empty small { font-size: 12px; line-height: 1.35; }
@media (max-width: 760px) { .dhead { grid-template-columns: 1fr; gap: 0; } .dphoto { width: 200px; margin: 18px 0 0; } .dphoto--empty { width: auto; aspect-ratio: auto; margin: 16px 0 18px; padding: 14px 16px; gap: 4px; } .dphoto--empty p { font-size: 15px; } }
.vrows[hidden], .vall[hidden] { display: none; }
/* the user: cards keep the size they had 4 wide in --wrap (286 px), 5 of them, so this page is wider than the rest */
.wrap--videos { max-width: calc(5 * (var(--wrap) - 48px - 3 * 16px) / 4 + 4 * 16px + 48px); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vrow { margin: 0 0 38px; }
.vfeats { position: relative; display: grid; margin: 0 0 40px; border-radius: var(--r); overflow: hidden; background: #000; border: 3px solid var(--accent); box-shadow: 0 0 0 1px rgba(62, 108, 184, .35), 0 10px 40px rgba(62, 108, 184, .18); }
.vfeat { grid-area: 1 / 1; position: relative; display: block; aspect-ratio: 16 / 4; text-decoration: none; color: var(--text); opacity: 0; visibility: hidden; transition: opacity .8s, visibility .8s; }
.vfeat.is-on { opacity: 1; visibility: visible; }
.vfeat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease-out; }
.vfeats.is-go .vfeat.is-on img { transform: scale(1.04); }   /* is-go set by main.js after the first paint: slide 1 starts on in the html, so without it its zoom never ran (user 2026-10-14) */
.vfeat::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10, 10, 13, .94) 0%, rgba(10, 10, 13, .75) 32%, rgba(10, 10, 13, 0) 62%); }
.vfeat__txt { position: absolute; z-index: 2; left: clamp(20px, 3vw, 48px); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-start; gap: clamp(2px, .4vw, 6px); max-width: 56%; }
.vfeat__tag { font: 800 clamp(11px, .9vw, 15px)/1 var(--head); text-transform: uppercase; letter-spacing: .14em; background: var(--accent); color: #fff; padding: 6px 11px; border-radius: 4px; margin-bottom: 6px; }
.vfeat__kicker { font: 700 clamp(13px, 1.4vw, 24px)/1.15 var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--accent2); }
.vfeat__title { font: 800 clamp(28px, 4.4vw, 84px)/.95 var(--head); text-transform: uppercase; }
.vfeat__meta { color: #c9c9d2; font-size: clamp(13px, 1.15vw, 20px); margin-top: 2px; }
.vfeat__btn { margin-top: clamp(6px, 1vw, 16px); font: 800 clamp(13px, 1.2vw, 21px)/1 var(--head); text-transform: uppercase; letter-spacing: .08em; background: #fff; color: #000; padding: clamp(8px, .85vw, 14px) clamp(14px, 1.7vw, 28px); border-radius: 8px; }
.vfeat:hover .vfeat__btn { background: var(--accent); color: #fff; }
.vfeats__dots { position: absolute; z-index: 3; right: 22px; bottom: 18px; display: flex; gap: 8px; }
.vfeats__dot { width: 34px; height: 5px; padding: 0; border: 0; border-radius: 3px; background: rgba(255, 255, 255, .4); cursor: pointer; }
.vfeats__dot.is-on { background: #fff; }
/* phones: no featured banner (the user: too much space); narrower screens: smaller text, no tag */
@media (max-width: 900px) { .vfeat__tag { display: none; } }
@media (max-width: 640px) { .vfeats { display: none; } }
.vrow__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.vrow__title { font: 700 26px/1.1 var(--head); text-transform: uppercase; letter-spacing: .03em; margin: 0; }
.vrow__all { color: var(--accent2); font: 700 14px/1 var(--head); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; white-space: nowrap; }
.vrow__all span { color: var(--muted); margin-left: 4px; }
.vrow__all:hover { color: var(--text); }
.vrow__wrap { position: relative; }
.vrow__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 16px) / 5); gap: 16px; -webkit-mask-image: linear-gradient(to right, #000 80%, transparent 99%); mask-image: linear-gradient(to right, #000 80%, transparent 99%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.vrow__track::-webkit-scrollbar { display: none; }
.vrow__track.is-end { -webkit-mask-image: none; mask-image: none; }
.vrow__track > .vcard { scroll-snap-align: start; min-width: 0; }
.vrow__track .vcard__title { font-size: 17px; }
.vrow__nav { position: absolute; top: 25%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #16161b; color: var(--text); display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .5); }
.vrow__nav:hover { background: var(--accent); border-color: var(--accent); }
.vrow__nav--l { left: -14px; } .vrow__nav--r { right: -14px; }
.vrow__nav[hidden] { display: none; }
.vrow__nav svg { display: block; }
.vrows__allp { text-align: center; margin: 10px 0 0; }
/* Stutt myndbönd (user 2026-10-14): the TikTok clips as tall cards, 7 to a row on desktop */
.vrow--short .vrow__track { grid-auto-columns: calc((100% - 6 * 14px) / 7); gap: 14px; }
.vrow--short .vrow__nav { top: 40%; }
.vcard--short .vcard__img { aspect-ratio: 9 / 16; }
.vcard--short .vcard__img::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.vcard__play { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(0, 0, 0, .55); border: 2px solid rgba(255, 255, 255, .85); color: #fff; display: grid; place-items: center; font-size: 16px; padding-left: 3px; transition: background .2s; }
.vcard--short:hover .vcard__play { background: var(--accent); border-color: var(--accent); }
.vcard__sdur { position: absolute; z-index: 1; right: 8px; bottom: 8px; font: 700 12px/1 var(--head); color: #fff; background: rgba(0, 0, 0, .6); padding: 4px 6px; border-radius: 4px; }
.vcard--short .vcard__kicker { font-size: 12px; }
.vrow__track .vcard--short .vcard__title { font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1000px) { .vrow--short .vrow__track { grid-auto-columns: calc((100% - 4 * 14px) / 5); } }
@media (max-width: 640px) { .vrow--short .vrow__track { grid-auto-columns: 42%; gap: 10px; } }
.vrows__allp .more-btn { display: inline-block; text-decoration: none; }
.vall__back { color: var(--accent2); font: 700 15px/1 var(--head); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; }
@media (max-width: 1000px) { .vrow__track { grid-auto-columns: calc((100% - 2 * 16px) / 3); } }
@media (max-width: 640px) {
  .vrow__track { grid-auto-columns: 72%; gap: 12px; margin: 0 -16px; padding: 0 16px; scroll-padding: 0 16px; }
  .vrow__title { font-size: 21px; }
  .vrow__nav { width: 36px; height: 36px; }
  .vrow__nav svg { width: 18px; height: 18px; }
  .vrow__nav--l { left: 4px; } .vrow__nav--r { right: 4px; }
}
.vcard[hidden] { display: none; }
.vcard__img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r); background: var(--card); }
.vcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.vcard:hover .vcard__img img { transform: scale(1.05); }
.vcard__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vcard__top .vcard__kicker { min-width: 0; }
.vcard__dur { flex-shrink: 0; background: var(--accent); color: #fff; font: 700 13px/1 var(--head); letter-spacing: .04em; padding: 4px 8px; border-radius: 6px; }
.vcard__meta { display: block; padding: 10px 2px 0; }
.vcard__kicker { display: block; font: 700 13px/1.2 var(--head); text-transform: uppercase; letter-spacing: .1em; color: var(--accent2); }
.vcard__title { display: block; font: 700 22px/1.1 var(--head); text-transform: uppercase; margin: 3px 0; }
.vcard__date { display: block; color: var(--muted); font-size: 14px; }

/* filters / chips / tabs */
.filters { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font: 700 15px/1 var(--head); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); cursor: pointer; text-decoration: none; white-space: nowrap; }
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tabs { display: flex; flex-wrap: wrap; gap: 2px 4px; border-bottom: 1px solid var(--line); margin: 8px 0 18px; }
.tab { background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 12px 12px; font: 700 17px/1 var(--head); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); border-color: var(--accent); }

/* tables */
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg2); }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
th { font: 700 13px/1 var(--head); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: var(--card); position: sticky; top: 0; }
tbody tr:hover { background: rgba(255, 255, 255, .03); }
.c-pos { width: 44px; text-align: center; }
.c-pos span { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 6px; font-weight: 700; }
.c-pos .p1 { background: var(--gold); color: #000; }
.c-pos .p2 { background: var(--silver); color: #000; }
.c-pos .p3 { background: var(--bronze); color: #000; }
.c-pos .of { color: var(--muted); font-size: 12px; min-width: 0; height: auto; font-weight: 400; }
.c-name { font-weight: 600; white-space: normal; min-width: 180px; }
.c-name a { text-decoration: none; }
.c-name a:hover { color: var(--accent2); }
.c-name .sub { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.c-car { color: var(--muted); }
.c-r { text-align: center; width: 48px; color: var(--text); }
.c-r.dim { color: #5a5a64; }
.c-tot { text-align: right; font: 800 20px/1 var(--head); width: 60px; }
th.c-tot { font: 700 13px/1 var(--head); }
.st .c-tot + .c-car, .st .c-tot + .c-r { padding-left: 20px; }
.st td:not(.c-name):not(.c-car) { font-size: 15px; }
.note { background: var(--card); border: 1px dashed var(--line); padding: 14px 18px; border-radius: var(--r); color: var(--muted); }
.src { color: var(--muted); font-size: 13px; margin-top: 28px; word-break: break-word; }
.src a { color: var(--muted); }
.tag { font: 700 11px/1 var(--head); text-transform: uppercase; letter-spacing: .1em; background: var(--line); padding: 3px 6px; border-radius: 4px; color: var(--muted); vertical-align: 2px; }
.career td a { text-decoration: none; font-weight: 600; }
.career td a:hover { color: var(--accent2); }

/* home mini boards */
.minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
/* home: every class in one row. Boxes are their normal 280px when the window allows (the row may be wider
   than the content column, centred); on narrower windows they shrink to fit. Never wider than the window. */
.minis--row {
  grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 10px;
  width: min(calc(var(--n) * 280px + (var(--n) - 1) * 10px), calc(100vw - 32px));
  position: relative; left: 50%; transform: translateX(-50%);
}
@media (max-width: 640px) { .minis--row { grid-template-columns: 1fr; } .minis--row .c-name .sub { display: block; } }
/* each leaderboard line is a grid: [pos] [name] [points]; names wrap (and break if a single word is too long) */
.minis--row .mini { padding: 14px 12px 4px; min-width: 0; }
.minis--row .mini h3 { overflow-wrap: anywhere; }
.minis--row table, .minis--row tbody { display: block; width: 100%; }
.minis--row thead { display: none; }
.minis--row tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 2px 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.minis--row tr:last-child { border-bottom: 0; }
.minis--row td { display: block; padding: 0; border: 0; width: auto; min-width: 0; }
.minis--row .c-pos { width: auto; }
.minis--row .c-name { font-size: 13px; letter-spacing: -.01em; overflow-wrap: break-word; }
.minis--row .c-name .sub { font-size: 12px; }
.minis--row .c-tot { width: auto; font-size: 18px; }
/* narrow boxes: position + points on top, the name gets the full box width underneath */
@media (min-width: 641px) and (max-width: 1400px) {
  .minis--row { gap: 8px; }
  .minis--row .mini { padding: 12px 10px 2px; }
  .minis--row .mini h3 { font-size: 15px; }
  .minis--row tr { grid-template-columns: auto 1fr; }
  .minis--row .c-pos { order: 1; }
  .minis--row .c-tot { order: 2; justify-self: end; }
  .minis--row .c-name { order: 3; grid-column: 1 / -1; font-size: 13px; }
}
.mini { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 16px 6px; }
.mini .tbl { border: 0; background: none; overflow: visible; }
.mini .c-name { min-width: 0; }
.mini table { table-layout: auto; }
.mini table th { display: none; }
.mini td { padding: 8px 6px; }
.mini .c-tot { font-size: 18px; }
.podium { list-style: none; counter-reset: p; margin: 0; padding: 0 0 8px; }
.podium li { counter-increment: p; display: flex; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.podium li:last-child { border: 0; }
.podium li::before { content: counter(p); min-width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; background: var(--line); font-weight: 700; font-size: 14px; }
.podium li:nth-child(1)::before { background: var(--gold); color: #000; }
.podium li:nth-child(2)::before { background: var(--silver); color: #000; }
.podium li:nth-child(3)::before { background: var(--bronze); color: #000; }
.podium a { flex: 1; text-decoration: none; font-weight: 600; }
.podium a:hover { color: var(--accent2); }
.podium span { font: 800 18px/1 var(--head); }

/* rounds list */
.rounds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.rounds li { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; gap: 0 12px; align-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.rn { grid-row: span 2; font: italic 800 26px/1 var(--head); color: var(--accent2); }
.rd { font-weight: 600; }
.rt { color: var(--muted); font-size: 14px; grid-column: 2; }
.rbtn { grid-column: 3; grid-row: 1 / span 2; text-decoration: none; font: 700 14px/1 var(--head); text-transform: uppercase; letter-spacing: .08em; background: var(--card); border: 1px solid var(--line); padding: 8px 10px; border-radius: 6px; }
.rbtn:hover { border-color: var(--accent); color: var(--accent2); }

/* player */
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r); overflow: hidden; margin: 0 0 22px; }
.player img, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 0; }
.facts dt { font: 700 13px/1 var(--head); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 600; }
.chapters { padding-left: 0; list-style: none; columns: 2 320px; }
.chapters button { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; cursor: pointer; font-variant-numeric: tabular-nums; }
.cal td { white-space: normal; }
.cal td:first-child { font-weight: 600; }
.cal td:last-child a { white-space: nowrap; }
.cal td:last-child { text-align: right; }
.cal tr.past td { color: var(--muted); }
.cal a { font-weight: 700; color: var(--accent2); text-decoration: none; }

/* drivers */
.search { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; color: var(--text); padding: 12px 14px; font: inherit; margin-bottom: 20px; }
.dlist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.dlist a { display: block; text-decoration: none; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; height: 100%; }
.dlist a:hover { border-color: var(--accent); }
.dn { display: block; font-weight: 600; }
.dm { display: block; color: var(--muted); font-size: 13px; }
.badge { display: inline-block; margin: 6px 6px 0 0; background: var(--gold); color: #000; font: 700 12px/1 var(--head); text-transform: uppercase; letter-spacing: .08em; padding: 4px 7px; border-radius: 4px; }
.stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; }
.stats div { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 20px; min-width: 120px; }
.stats b { display: block; font: 800 40px/1 var(--head); }
.stats span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.badge--cup { background: var(--accent); color: var(--on-accent); }
.champ--fun { background: rgba(224, 72, 120, .14) !important; border-color: rgba(224, 72, 120, .5) !important; color: #ff8fb3 !important; text-decoration: none; }   /* a driver's own nickname title */
.champ--cup { background: rgba(62, 108, 184, .14) !important; border-color: rgba(62, 108, 184, .5) !important; color: var(--accent2) !important; }
.rbtns { grid-column: 2 / -1; grid-row: 3; display: flex; gap: 6px; margin-top: 10px; }  /* two-day races: buttons on their own row */
.rbtns .rbtn { grid-column: auto; grid-row: auto; white-space: nowrap; }
.rbtn { white-space: nowrap; }
.rounds li:has(.rbtns) { grid-template-rows: auto auto auto; }
.rounds li:has(.rbtns) .rn { grid-row: 1 / span 2; }
.champ { margin-right: 8px; }
.champ { display: inline-block; background: rgba(199, 163, 57, .12); border: 1px solid rgba(199, 163, 57, .4); color: var(--gold); border-radius: 8px; padding: 8px 12px; font-weight: 600; margin: 0 0 16px; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; }
.foot p { margin: 8px 0 0; }
.foot a { color: var(--muted); }
.foot .logo { color: var(--text); }

/* tablet */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { aspect-ratio: 16 / 9; }
  .hero__media::after { background: linear-gradient(180deg, transparent 60%, #000); }
  .hero__txt { padding: 8px 24px 36px; }
}
/* phone */
@media (max-width: 640px) {
  .wrap, .top__in { padding: 0 16px; }
  .top__in { gap: 12px; height: 56px; }
  .logo { font-size: 21px; }
  .logo__rx, .logo__is { height: 30px; padding: 0 6px; }

  .nav { gap: 12px; }
  .nav a { font-size: 15px; letter-spacing: .02em; }
  .lang { padding: 6px 7px; font-size: 13px; }
  .narrow-top { padding-top: 24px; }
  .next { grid-template-columns: 1fr; padding: 18px; }
  .next__cd { grid-column: 1; grid-row: auto; margin-top: 10px; }
  .next__acts { grid-column: 1; grid-row: auto; justify-content: flex-start; margin-top: 10px; }
  .next__cal, .next__recap { white-space: normal; }
  .next__cd b { font-size: 34px; }
  /* phones: no sideways scrolling. Name + total only; rounds are on desktop and on the round pages */
  .c-car, .c-r { display: none; }
  .career .c-car { display: none; }
  th, td { padding: 9px 7px; }
  .c-name { min-width: 0; }
  .tbl { overflow-x: visible; }
  /* calendar rows stack: date + event, then track + watch */
  .cal, .cal tbody { display: block; }
  .cal tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .cal tr:last-child { border-bottom: 0; }
  .cal td { display: block; padding: 0; border: 0; }
  .cal td:nth-child(1) { grid-column: 1 / -1; }
  .cal td:nth-child(2) { grid-column: 1; font-weight: 600; }
  .cal td:nth-child(3) { grid-column: 1; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
  .cal td:nth-child(4) { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
  .cal td:first-child { font-weight: 400; color: var(--muted); font-size: 14px; }
  /* class tabs become wrapped pills */
  .tabs { border: 0; gap: 6px; }
  .tab { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-size: 15px; margin: 0; }
  .tab[aria-selected="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
  .grid { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .vcard__title { font-size: 18px; }
  .vcard__date { font-size: 12px; }
  .play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .play::before { left: 26px; top: 20px; border-width: 12px 0 12px 20px; }
}
/* phones: logo + language on the first row, the six menu items spread over a second row */
@media (max-width: 1000px) {
  .top__in { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 0; gap: 6px 12px; }
  .top .lang { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 0; justify-content: space-between; gap: 4px; }
  .nav a { font-size: 14px; letter-spacing: .01em; padding: 9px 0 10px; }
}
@media (max-width: 400px) {
  .nav { gap: 0; }
  .nav a { font-size: 13px; letter-spacing: 0; gap: 4px; }
}
@media (max-width: 350px) {
  .top__in { padding-left: 10px; padding-right: 10px; }
  .nav a { font-size: 12px; gap: 3px; }
  .live-dot { width: 5px; height: 5px; }
}
.foot .lang { display: inline-flex; align-items: center; margin-top: 10px; }   /* audit 6: text centred in the taller tap box */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- rallycross.is extras ---------- */
a.plain { text-decoration: none; }
a.plain:hover { color: var(--accent2); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
/* sponsors */
.spons { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.spons li { background: #fff; border-radius: 8px; padding: 8px 12px; display: grid; place-items: center; height: 76px; }
.spons img { height: 60px; width: auto; max-width: 150px; object-fit: contain; }
.spons--sm li { height: 52px; padding: 5px 9px; }
.spons--sm img { height: 42px; max-width: 104px; }
.foot .spons { margin-bottom: 28px; opacity: .92; }
.spons__lab { text-align: center; margin: 0 0 20px; font: 700 13px/1 var(--head); text-transform: uppercase; letter-spacing: .12em; }
.spons__lab a { color: var(--muted); text-decoration: none; }
.spons__lab a:hover { color: var(--accent2); }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 22px; }
.foot__links a { color: var(--text); text-decoration: none; font: 700 16px/1 var(--head); text-transform: uppercase; letter-spacing: .06em; }
.foot__links a:hover { color: var(--accent2); }
/* heats */
.heats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 14px; }
.heat { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 12px 4px; min-width: 0; }
.heat__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.heat__head h3 { margin: 0; color: var(--text); }
.heat .tbl { border: 0; background: none; overflow: visible; }
.heat td, .heat th { padding: 6px 5px; }
.heat .c-name { min-width: 0; white-space: normal; overflow-wrap: anywhere; font-size: 14px; }
.c-r2 { text-align: right; color: var(--muted); font-size: 13px; }
.sched { margin-top: 28px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; }
.sched summary { cursor: pointer; font: 700 18px/1 var(--head); text-transform: uppercase; letter-spacing: .06em; }
.sched__l { list-style: none; padding: 0; margin: 12px 0 0; columns: 3 240px; }
.sched__l li { display: flex; gap: 10px; padding: 3px 0; break-inside: avoid; }
.sched__l .rd { font-variant-numeric: tabular-nums; }
/* events list, prev/next */
.evlist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.evlist a { display: flex; gap: 12px; align-items: baseline; text-decoration: none; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.evlist a:hover { border-color: var(--accent); }
.evlist .rd { color: var(--muted); min-width: 110px; font-size: 14px; }
.evlist .rt { font-weight: 600; flex: 1; }
.evlist a { flex-wrap: wrap; row-gap: 6px; }
.evtags { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 5px; padding-left: 122px; }
.evtag { font: 700 11px/1 var(--head); letter-spacing: .06em; text-transform: uppercase; padding: 4px 6px 3px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); }
.evtag--stream { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.evtag--veltur { border-color: var(--accent); color: var(--accent2); }
.evtag--jakob { border-color: #c7a339; color: #e2c25a; background: rgba(199, 163, 57, .14); }
@media (max-width: 400px) { .evtags { padding-left: 0; } }
.pn:is(nav) { display: flex; justify-content: space-between; gap: 12px; margin-top: 48px; }   /* nav only: list names also use class pn (audit 2026-10-30) */
nav.pn a:only-child { margin-right: auto; }
nav.pn a { text-decoration: none; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; font-weight: 600; max-width: 48%; }
nav.pn a span { display: block; color: var(--muted); font-weight: 400; font-size: 14px; }
.pn__n { text-align: right; margin-left: auto; }
/* gallery */
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.gal__i[hidden] { display: none; }
.gal__i { display: block; border-radius: 8px; overflow: hidden; background: var(--card); aspect-ratio: 4 / 3; }
.gal__i img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gal__i:hover img { transform: scale(1.04); }
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .92); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.lb img { max-width: 100%; max-height: 100%; border-radius: 6px; }
/* driver heats on video */
.hlist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 8px; }
.hlist a { display: flex; align-items: center; gap: 12px; text-decoration: none; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.hlist a:hover { border-color: var(--accent); }
.hp span { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 6px; background: var(--line); font-weight: 700; }
/* heats known from a chapter only (no timing): no position */
.hp span:empty { background: none; border: 1px dashed var(--line); }
.hp .p1 { background: var(--gold); color: #000; } .hp .p2 { background: var(--silver); color: #000; } .hp .p3 { background: var(--bronze); color: #000; }
.hn { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; }
.hn small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.hw { color: var(--accent2); font: 700 14px/1 var(--head); white-space: nowrap; }
.carno { display: inline-grid; place-items: center; min-width: 1.4em; padding: 0 .2em; margin-right: .3em; border-radius: 8px; font-style: italic;
  background: linear-gradient(135deg, var(--c1) 55%, var(--c2) 55%); color: #fff; -webkit-text-stroke: .06em #000; paint-order: stroke fill; text-shadow: 0 0 3px rgba(0, 0, 0, .9), 0 2px 6px rgba(0, 0, 0, .6);  /* readable on white liveries (phone audit) */ vertical-align: .05em; font-size: .8em; }
/* records */
.minis--rec { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.podium small { display: block; width: 100%; color: var(--muted); font-size: 12px; margin-left: 36px; }
.podium--sm li { flex-wrap: wrap; }
.champs td { white-space: normal; font-size: 14px; }
.champs a { text-decoration: none; }
.champs a:hover { color: var(--accent2); }
.live-res { margin-top: 8px; }
.field td.fs { text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; background: rgba(62, 108, 184, calc(var(--a, 0) * .75)); }
.field td.fs--t { font: 800 18px/1 var(--head); background: none; }
.field th { text-align: center; white-space: normal; }
.live-badge { color: var(--live); }
/* champions: each year becomes a card below 1000px (the full table overflowed at tablet widths, audit 2026-10-03) */
@media (max-width: 1000px) {
  .champs thead { display: none; }
  .champs, .champs tbody, .champs tr, .champs td { display: block; width: 100%; }
  .champs tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .champs td { border: 0; padding: 2px 0; }
  .champs td:first-child { font: 800 22px/1.1 var(--head); }
  .champs td:not(:first-child)::before { content: attr(data-c) ": "; color: var(--muted); font-size: 12px; }
  .champs td:empty { display: none; }
}
@media (max-width: 640px) {
  .heats, .hlist { grid-template-columns: minmax(0, 1fr); }
  .gal { grid-template-columns: 1fr 1fr; gap: 6px; } .gal__t { font-size: 11px; padding: 14px 7px 5px; }
  .c-r2 { font-size: 12px; }
  nav.pn { flex-direction: column; } nav.pn a { max-width: none; }
  .field td.fs { text-align: left; background: none; }
  .field td.fs:empty { display: none; }
}

/* stats */
.bars { display: grid; gap: 6px; margin-bottom: 20px; }
.bar { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 10px; }
.bar__y { font-weight: 700; font-variant-numeric: tabular-nums; }
.bar__t { display: flex; min-width: 0; }
.bar__t i, .legend i { font-style: normal; font-size: 12px; font-weight: 700; padding: 4px 6px; white-space: nowrap; overflow: hidden; }
.bar__a { background: var(--accent); color: #fff; border-radius: 4px 0 0 4px; min-width: 22px; }
.bar__b { background: var(--line); color: var(--text); border-radius: 0 4px 4px 0; min-width: 22px; }
.legend { color: var(--muted); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.legend i { display: inline-block; width: 14px; height: 10px; padding: 0; border-radius: 2px; margin-left: 8px; }
.big { font: 800 44px/1 var(--head); margin: 4px 0; }
.declist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.dec { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.dec p { margin: 0; }
.dec__h { font: 700 14px/1.2 var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.dec__h b { color: var(--text); margin-right: 4px; }
.dec__b { display: inline-block; margin-left: 6px; background: var(--gold); color: #000; border-radius: 4px; padding: 2px 6px; font-size: 12px; }
.dec__n { font-weight: 700; font-size: 17px; margin: 6px 0 4px !important; }
.dec__t { color: var(--muted); font-size: 14px; }
.dec a { text-decoration: none; }
.dec a:hover { color: var(--accent2); }
.dec__big { font-size: 18px; color: var(--text) !important; }
.dec__big b { font: 800 30px/1 var(--head); color: var(--accent2); }
.field td.fs--up, .fs--up { color: var(--gold); }

.since { font: 600 13px/1 var(--body); text-transform: none; letter-spacing: 0; color: var(--muted); font-style: normal; white-space: nowrap; vertical-align: .15em; margin-left: 6px; }

.pipe summary { list-style: none; cursor: pointer; }
.pipe summary::-webkit-details-marker { display: none; }
.pipe summary .under { margin: 0 0 10px; color: var(--accent2); }
.pipe summary .under::after { content: ' ▾'; }
.pipe[open] summary .under::after { content: ' ▴'; }
@media (hover: hover) { .pipe:hover { border-color: var(--accent); } }
.pipe__l { list-style: none; padding: 0 0 10px; margin: 0; columns: 2 140px; }
.pipe__l li { padding: 3px 0; break-inside: avoid; }
.pipe__l a { text-decoration: none; font-size: 14px; }
.pipe__l a:hover { color: var(--accent2); }
.minis .pipe { align-self: start; }
/* career graph */
.cg { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 14px 8px; }
.cg svg { width: 100%; height: auto; display: block; }
.cg__l { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.cg__l i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
/* on this day */
.otd[hidden] { display: none; }
.otd__l { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.otd__i { display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: center; text-decoration: none; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.otd__i:hover { border-color: var(--accent); }
.otd__i img { width: 140px; height: 79px; object-fit: cover; }
.otd__i span { padding: 8px 10px 8px 0; font-size: 14px; }
.otd__i b { font: 800 20px/1 var(--head); color: var(--accent2); }
.otd__i small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.otd__i b.otd__t { font-size: 17px; color: var(--text); }
/* "Vinsæl myndbönd": 4 upright cards in a row, 2 on phones */
.otd__l--pop { grid-template-columns: repeat(4, 1fr); }
.otd__l--pop .otd__i { grid-template-columns: 1fr; align-items: start; gap: 0; }
.otd__l--pop .otd__i img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.otd__l--pop .otd__i span { padding: 10px 12px 12px; }
.otd__big { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); background: var(--bg2); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r); overflow: hidden; }
.otd__big:not(:has(.otd__img)) { grid-template-columns: 1fr; }
.otd__img img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16 / 9; }
.otd__txt { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.otd__txt p { margin: 0; }
.otd__yr { color: var(--muted); font-size: 14px; } .otd__yr b { font: 800 40px/1 var(--head); color: var(--accent2); margin-right: 8px; vertical-align: -4px; }
.otd__ev { font: 800 24px/1.1 var(--head); text-transform: uppercase; } .otd__ev a { color: var(--text); text-decoration: none; } .otd__ev a:hover { color: var(--accent2); }
.otd__h { margin-top: 6px !important; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.otd__w { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 16px; font-size: 14px; }
.otd__w li { display: flex; flex-direction: column; } .otd__w span { color: var(--muted); font-size: 12px; } .otd__w a { color: var(--text); font-weight: 600; }
.otd__go { margin-top: auto !important; padding-top: 8px; align-self: flex-start; }
.otd__col { display: flex; flex-direction: column; min-width: 0; }
.otd__col > h2 { margin: 0 0 16px; }
.otd__colg { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 12px; flex: 1; }
.otd__colg .otd__big { grid-column: auto; }
.otd__fillg { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 12px; flex: 1; }
.otd__fillg .otd__i { grid-template-columns: 1fr; align-items: start; gap: 0; }
.otd__fillg .otd__i img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.otd__fillg .otd__i span { padding: 10px 12px 12px; }
@media (max-width: 767px) { .otd__fillg { gap: 10px; } .otd__col + .otd__col > h2 { margin-top: 22px; } }
@media (max-width: 767px) { .otd__big { grid-template-columns: 1fr; } .otd__w { grid-template-columns: 1fr 1fr; } .otd__ev { font-size: 21px; } .otd__yr b { font-size: 34px; } }
@media (max-width: 767px) { .otd__l--pop { grid-template-columns: repeat(2, 1fr); gap: 10px; } .otd__l--pop .otd__i span { font-size: 13px; padding: 8px 10px 10px; } .otd__l--pop .otd__i b.otd__t { font-size: 15px; } }

.dfilt { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 20px; }
.dfilt .search { margin: 0; flex: 1 1 240px; }
.sel { background: var(--card); border: 1px solid var(--line); border-radius: 8px; color: var(--text); padding: 11px 12px; font: inherit; }
.dcount { color: var(--muted); font-size: 14px; }
.dlist li[hidden] { display: none; }
.dlist a { position: relative; }
.dpos { position: absolute; right: 12px; top: 12px; font: 800 22px/1 var(--head); color: var(--accent2); }

/* hover / tap tooltip */
.tip { position: relative; cursor: help; border-bottom: 1px dotted currentColor; outline: none; }
.tip:hover::after, .tip:focus::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--bg); font: 600 12px/1.2 var(--body); padding: 5px 8px; border-radius: 5px; white-space: nowrap; z-index: 5; pointer-events: none; }
.tbl--x { overflow: visible; }
@media (max-width: 640px) {
  .dfilt .search { flex-basis: 100%; }
  .dfilt .sel { flex: 1 1 0; min-width: 0; }
  .dcount { flex-basis: 100%; }
}

/* creator credit (Jakob Cecil Hafsteinsson) */
.credit { margin: 4px 0 28px; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--accent); background: linear-gradient(100deg, rgba(62, 108, 184, .22), rgba(62, 108, 184, .06)); }
.credit p { margin: 0; }
.credit__by { font: 700 20px/1.2 var(--head); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.credit__by b { color: var(--text); font-size: 26px; display: block; margin-top: 2px; }
.credit__more { margin: 10px 0 12px !important; color: var(--text); }
.credit__links { display: flex; flex-wrap: wrap; gap: 8px; }
.btn--ghost { background: transparent; border: 2px solid var(--accent); color: var(--text); padding: 10px 16px; font-size: 15px; }
.btn--ghost:hover { background: var(--accent); color: #fff; }
.filters .sel { padding: 7px 12px; border-radius: 999px; font: 700 15px/1 var(--head); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
/* subtle dividers between the filter groups (source · type · class / years) */
.filters { align-items: center; }
.filters > * + * { border-left: 1px solid var(--line); padding-left: 18px; }
@media (max-width: 640px) { .filters > * + * { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 10px; width: 100%; } }

/* lap records: a table per track */
.recs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.rec h3 { font: 800 20px/1 var(--head); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 10px; }
.rec__t { width: 100%; }
.rec__t .c-cls { color: var(--muted); white-space: nowrap; }
.rec__t .num { font-variant-numeric: tabular-nums; font-weight: 700; }
@media (max-width: 400px) { .rec__t td, .rec__t th { padding-left: 6px; padding-right: 6px; } .rec__t .c-cls { white-space: normal; } }
.rec__t .c-yr { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- search ---------- */
.srch-btn { display: inline-grid; place-items: center; width: 34px; height: 32px; margin-right: -20px; background: none; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); cursor: pointer; padding: 0; }
.srch-btn:hover, .srch-btn:focus-visible { color: var(--text); border-color: var(--accent); }
@media (max-width: 1000px) { .top .srch-btn { margin-left: auto; margin-right: -4px; } .top .lang { margin-left: 0; } }
.srch-open, .srch-open body { overflow: hidden; }
.srch { position: fixed; inset: 0; z-index: 100; background: rgba(8, 8, 10, .72); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: flex-start; padding: 64px 16px 16px; }
.srch[hidden] { display: none; }
.srch__in { width: 100%; max-width: 640px; max-height: calc(100vh - 96px); display: flex; flex-direction: column; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.srch__bar { display: flex; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
.srch__bar input { flex: 1; min-width: 0; font: 500 17px/1.2 var(--body, inherit); color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; }
.srch__bar input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.srch__x { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; padding: 0 6px; }
.srch__res { overflow-y: auto; padding: 4px 12px 12px; }
.srch__res h3 { font: 700 12px/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.srch__res ul { list-style: none; margin: 0; padding: 0; }
.srch__res a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 10px; border-radius: 6px; text-decoration: none; color: var(--text); }
.srch__res a:hover, .srch__res a:focus { background: var(--bg); outline: none; }
.srch__res small { color: var(--muted); font-size: 13px; text-align: right; flex-shrink: 0; max-width: 45%; }
.srch__none { color: var(--muted); padding: 16px 4px; margin: 0; }

/* share a heat (chapters) */
.chapters li { display: flex; align-items: center; gap: 6px; break-inside: avoid; padding: 2px 0; }
.chapters .ch__t { flex: 1; min-width: 0; }
.chapters .shr { position: relative; display: inline-grid; place-items: center; width: 26px; height: 24px; padding: 0; background: none; border: 1px solid transparent; border-radius: 4px; color: var(--muted); cursor: pointer; flex-shrink: 0; }
.chapters .shr:hover, .chapters .shr:focus-visible { color: var(--text); border-color: var(--line); }
.chapters .shr[data-done]::after { content: attr(data-done); position: absolute; right: 30px; top: 50%; transform: translateY(-50%); white-space: nowrap; background: var(--accent); color: #fff; font: 600 12px/1 var(--body, inherit); padding: 5px 8px; border-radius: 4px; }
.subh { font: 700 14px/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 6px 0 10px; }
/* chapters grouped by class */
.chgrps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px 28px; }
.chgrp h3 { font: 800 15px/1 var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--accent2); margin: 0 0 6px; }
.chgrp .chapters { columns: auto; margin: 0; }

/* race list: uniform cards (the user, 2026-09-29): date on top, name, tags in one row; every card in a row equally tall */
.evlist li { display: flex; }
.evlist a { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 118px; }
.evlist .rd { min-width: 0; font-size: 13px; }
.evlist .rt { flex: 0 0 auto; }
.evtags { flex-basis: auto; margin-top: auto; padding-left: 0; padding-top: 8px; }
.evtag--res { border-color: #5ac48a; color: #7fdca6; background: rgba(90, 196, 138, .12); }

/* results of a round (race and stream pages): all classes in one row like the home standings (the user, 2026-09-29) */
.minis--res .podium li { gap: 8px; min-width: 0; }
.minis--res .podium li a { flex: 1; min-width: 0; overflow-wrap: break-word; font-size: 13px; letter-spacing: -.01em; }
.minis--res .podium li span { flex-shrink: 0; }
@media (min-width: 641px) and (max-width: 1400px) { .minis--res .podium li a { font-size: 13px; } .minis--res .podium li::before { min-width: 22px; height: 22px; font-size: 12px; } }

/* chapters: every class in one row (the user), like the home standings; stacked on phones */
.chgrps--row { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 10px;
  width: min(calc(var(--n) * 220px + (var(--n) - 1) * 10px), calc(100vw - 32px)); position: relative; left: 50%; transform: translateX(-50%); }
.chgrps--row .chgrp { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 10px 8px; min-width: 0; }
.chgrps--row .chgrp h3 { overflow-wrap: anywhere; font-size: 14px; }
.chgrps--row .chapters li { gap: 4px; }
.chgrps--row .chapters button[data-t] { font-size: 12px; padding: 2px 4px; }
.chgrps--row .ch__t { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chgrps--row .shr { width: 22px; }
@media (max-width: 640px) { .chgrps--row { grid-template-columns: 1fr 1fr; width: auto; left: 0; transform: none; } }
@media (max-width: 400px) { .chgrps--row { grid-template-columns: 1fr; } }
.chgrps--row, .minis--res { align-items: start; }

/* stream page: race facts to the right of the title (the user) */
.vhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; }
.vhead__t { min-width: 0; }
.vhead .facts { margin: 0 0 6px; justify-content: flex-end; }
@media (max-width: 700px) { .vhead { display: block; } .vhead .facts { justify-content: flex-start; margin-top: 12px; } }
.vhead { align-items: flex-end; }
.vhead__t .under { margin-bottom: 0; }
.vhead .facts { margin: 0; }
.vhead .facts dd { line-height: 1.5; }
.vhead { margin-bottom: 24px; }
/* stacked (phones): room between the date / "Opna á YouTube" line and the facts (BRAUT ...); the rule above used to cancel it */
@media (max-width: 700px) { .vhead .facts { margin-top: 20px; } }
.foot p.spons__lab { margin: 0 0 22px; }

/* race page heat tables: wider cards, names wrap only between words, number small after the name */
.heats { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.heat__t .c-name { overflow-wrap: normal; word-break: normal; hyphens: manual; white-space: normal; }
.heat__t .c-name a { color: var(--text); text-decoration: none; }
.heat__t .c-name a:hover { color: var(--accent2); }
.heat__t .c-name .num { color: var(--muted); font-size: 12px; white-space: nowrap; }
.heat__t td, .heat__t th { vertical-align: middle; }
@media (max-width: 520px) { .heat__t .c-r { display: none; } }

.more-btn { display: block; margin: 18px auto 0; font: 800 17px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--accent); border: 0; border-radius: 8px; padding: 14px 28px; cursor: pointer; }
.more-btn:hover { background: var(--accent2); }
.more-btn[hidden] { display: none; }
/* driver heat / flip lists: every card the same height (the user); the second line stays on one line */
.hlist li { display: flex; }
.hlist a { flex: 1; min-width: 0; height: 72px; }
.hlist .hn { flex: 1; min-width: 0; }
.hlist .hn small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hlist .hw { flex-shrink: 0; }

/* hover / tap tooltips on the driver stat boxes */
.stip { position: relative; cursor: help; outline: none; }
.stip::after { content: attr(data-tip); position: absolute; left: 0; top: calc(100% + 8px); z-index: 20; width: max-content; max-width: min(280px, 80vw);
  background: #1d1d24; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; font: 400 13px/1.4 var(--body, inherit);
  text-transform: none; letter-spacing: 0; box-shadow: 0 8px 24px rgba(0,0,0,.45); opacity: 0; visibility: hidden; transition: opacity .12s; pointer-events: none; white-space: normal; }
.stip:hover::after, .stip:focus::after, .stip:focus-visible::after { opacity: 1; visibility: visible; }
.stip:focus-visible { border-color: var(--accent); }
[data-more] > [hidden] { display: none !important; }
/* driver stat boxes: one row that shares the width (the user); wraps only on small screens */
@media (min-width: 900px) {
  .stats { flex-wrap: nowrap; gap: 10px; }
  .stats div { flex: 1 1 0; min-width: 0; padding: 14px 14px; }
  .stats b { font-size: clamp(28px, 2.6vw, 40px); }
  .stats span { font-size: 12px; letter-spacing: .05em; display: block; overflow-wrap: anywhere; }
}
.stats .stip:last-child::after, .stats .stip:nth-last-child(2)::after { left: auto; right: 0; }
@media (min-width: 900px) {
  .stats div { flex: 1 1 auto; }
  .stats span { overflow-wrap: normal; word-break: normal; hyphens: none; }
}
/* Myndbönd page: 5 videos per row on wide screens (the user) */
/* cards keep their normal size (~290px); the grid grows wider than the text column to fit 5 (the user) */
@media (min-width: 1100px) {
  #vgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); width: min(calc(5 * 290px + 4 * 18px), calc(100vw - 48px));
    position: relative; left: 50%; transform: translateX(-50%); }
}
.tempnote { color: #ff6b6b; background: rgba(224, 72, 72, .1); border: 1px solid rgba(224, 72, 72, .45); border-radius: 8px; padding: 10px 14px; font-weight: 600; margin: 0 0 18px; max-width: 760px; }

/* home: slow partner ticker between the hero and the next event */
.tick { display: flex; overflow: hidden; padding: 16px 0; border-bottom: 1px solid var(--line); background: var(--bg);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tick__row { flex: none; display: flex; align-items: center; gap: 14px; margin: 0; padding: 0 7px; list-style: none;
  animation: tick 110s linear infinite; }
.tick:hover .tick__row { animation-play-state: paused; }
.tick li { flex: none; background: #fff; border-radius: 8px; height: 48px; padding: 5px 10px; display: grid; place-items: center;
  opacity: .82; transition: opacity .3s; }
.tick:hover li { opacity: 1; }
.tick img { height: 38px; width: auto; max-width: 110px; object-fit: contain; }
@keyframes tick { to { transform: translateX(-100%); } }
@media (max-width: 599px) { .tick { padding: 12px 0; } .tick li { height: 40px; } .tick img { height: 30px; max-width: 90px; } .tick__row { animation-duration: 80s; } }
@media (prefers-reduced-motion: reduce) { .tick { overflow-x: auto; } .tick__row { animation: none; } .tick__row + .tick__row { display: none; } }
.tickw { position: relative; }
.tick__flap { position: absolute; right: 24px; bottom: 100%; z-index: 2; padding: 7px 14px 6px; background: var(--bg);
  border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; margin-bottom: 1px;
  font: 700 12px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.tick__flap:hover { color: var(--text); }
.tick__flap::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--bg); }
@media (max-width: 599px) { .tick__flap { right: 16px; font-size: 12.5px; padding: 7px 12px 6px; } }
/* Myndbönd: year chips on desktop, a dropdown on phones (the user) */
.filters > .sel--year { display: none; }
@media (max-width: 700px) {
  .chips--year { display: none; }
  .filters > .sel--year { display: block; border: 1px solid var(--line); padding: 7px 12px; width: auto; }
}
/* Keppnir years: plain headings on desktop, fold-out rows on phones (the user) */
.evy > summary { list-style: none; cursor: default; }
.evy > summary::-webkit-details-marker { display: none; }
.evy__n { display: none; }
@media (max-width: 700px) {
  .evy > summary { cursor: pointer; display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
  .evy > summary h2 { margin: 0; flex: 1; }
  .evy__n { display: block; color: var(--muted); font: 700 14px/1 var(--head); text-transform: uppercase; letter-spacing: .06em; }
  .evy__n::after { content: ' ▾'; color: var(--accent2); }
  .evy[open] .evy__n::after { content: ' ▴'; }
  .evy[open] > summary { margin-bottom: 12px; }
  .evlist-wrap .sec, .sec:has(> .evy) { margin-top: 10px; }
}
/* Staðan: year chips + class tabs on desktop, two dropdowns on phones (the user) */
.filters > .sel--styr, .sel--scls { display: none; }
@media (max-width: 700px) {
  .chips--styr, .tabs--st { display: none; }
  .filters > .sel--styr { display: block; border: 1px solid var(--line); padding: 7px 12px; width: auto; }
  .sel--scls { display: block; width: 100%; margin: 0 0 16px; font: 700 16px/1 var(--head); text-transform: uppercase; letter-spacing: .05em; }
}
/* Beint results: class names fold out on phones (the user); plain headings on desktop */
.fold__b { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; text-align: left; cursor: default; }
@media (max-width: 700px) {
  .fold__b { cursor: pointer; display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; }
  .fold__b::after { content: '▾'; color: var(--accent2); font-size: 15px; }
  .fold.is-open .fold__b::after { content: '▴'; }
  .mini.fold:not(.is-open) > :not(h3), .heat.fold:not(.is-open) > :not(.heat__head) { display: none; }
  .mini.fold:not(.is-open) { padding-bottom: 12px; }
  .mini.fold:not(.is-open) > h3 { margin-bottom: 0; }
  /* stream page chapters: one class per row, tap the name to open its heats */
  .chgrps--row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .chgrp.fold:not(.is-open) > ol { display: none; }
  .chgrp.fold:not(.is-open) > h3 { margin-bottom: 0; }
  .chgrp.fold .fold__b { padding: 6px 0; }
}

/* gallery: photo title + photographer credit in the lightbox, credit line on the page */
.lb figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lb figure img { max-height: calc(100vh - 90px); }
.lb figcaption { color: #e8e8ee; font-size: 15px; text-align: center; }
.galcred { margin: -6px 0 18px; color: var(--muted); font-size: 14px; }
.galcred a { color: var(--text); }
.gal__i { position: relative; }
.gal__t { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 7px; font-size: 13px; font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .7)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* click-to-copy email */
.copy { position: relative; font: inherit; color: var(--text); background: none; border: 0; padding: 0; text-decoration: underline; cursor: copy; }
.copy__tip { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.copy.copied .copy__tip { opacity: 1; }

/* phones: nothing wider than the screen (driver Ferill, heat tables, lap records) */
@media (max-width: 640px) {
  .hlist li, .heat, .vcard { min-width: 0; }
  .career td, .rec__t td, .rec__t .c-cls, .heat__t th { white-space: normal; }
  .career td:nth-child(2) { font-size: 13px; }
  .career td, .career th { padding-left: 5px; padding-right: 5px; }
  .heat__t td, .heat__t th { padding: 6px 4px; }
  .rec__t td, .rec__t th { padding: 8px 5px; }
  .rec__t .c-cls { font-size: 13px; }
  .rec__t .c-name { overflow-wrap: normal; word-break: normal; hyphens: none; font-size: 13.5px; }
  .rec__t th { white-space: nowrap; letter-spacing: .02em; }
  .rec__t .c-prev { font-size: 12px; }
}
/* lap records on small phones: the year goes under the time */
.yr-m { display: none; }
@media (max-width: 420px) {
  .rec__t .c-yr { display: none; }
  .yr-m { display: block; color: var(--muted); font-size: 12px; }
  /* stat box tooltips: full width under the boxes (a box on the right can't push them off screen) */
  .stats { position: relative; }
  .stats .stip { position: static; }
  .stats .stip::after, .stats .stip:last-child::after, .stats .stip:nth-last-child(2)::after { left: 0; right: 0; width: auto; max-width: none; }
}
/* closed tooltips take no room (they made the page wider than the screen on phones) */
.stip:not(:hover):not(:focus)::after { display: none; }
@media (max-width: 360px) {
  .st.heat__t td.c-r, .st.heat__t td.c-r2, .st.heat__t td.c-pos { font-size: 12.5px; }
  .heat__t td, .heat__t th { padding: 6px 3px; }
}
.empty { color: var(--muted); margin: 18px 0; }
/* Staðan on phones: tap a row for the points per round */
.st__x { display: none; }
@media (max-width: 640px) {
  .st--pts .st__row { cursor: pointer; }
  .st--pts .st__row.is-open td { border-bottom-color: transparent; background: var(--card); }
  .st__x { display: table-row; }
  .st__x td { white-space: normal; background: var(--card); padding: 4px 7px 12px; }
  tr[hidden] + .st__x { display: none; }
  .st__ps { display: flex; flex-wrap: wrap; gap: 6px; }
  .st__p { display: flex; flex-direction: column; align-items: center; min-width: 40px; padding: 5px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg2); }
  .st__p small { font: 700 11px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .st__p b { font: 700 16px/1.2 var(--head); font-variant-numeric: tabular-nums; }
  .st__p.dim b { color: var(--muted); }
  .st__p--t { border-color: var(--accent); }
  .st__d { display: inline-block; margin-top: 10px; font: 700 14px/1 var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--accent2); text-decoration: none; }
}
/* home standings: a class dropdown on phones, the row of boxes on desktop */
.sel--hcls { display: none; }
@media (max-width: 640px) {
  .sel--hcls { display: block; width: 100%; margin-bottom: 10px; }
  .minis--home .mini:not(.is-cur) { display: none; }
}
@media (max-width: 640px) { .sec__head { flex-wrap: wrap; row-gap: 6px; } }

/* "Næsta myndband" card over the player when a video ends (main.js showNext) */
.player .nextv { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(10, 10, 14, .88); padding: 16px; text-align: center; }
.nextv__l { margin: 0; font: 800 15px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nextv__c { display: grid; grid-template-columns: 200px 1fr; gap: 14px; align-items: center; max-width: 560px; text-decoration: none; text-align: left; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.nextv__c:hover { border-color: var(--accent); }
.player .nextv__c img { position: static; inset: auto; width: 200px; height: 113px; object-fit: cover; }
.nextv__c span { padding: 8px 12px 8px 0; display: flex; flex-direction: column; gap: 4px; }
.nextv__c small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.nextv__c b { font: 800 19px/1.15 var(--head); color: var(--text); }
.nextv__b { display: flex; gap: 10px; }
.nextv__x { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 8px 16px; cursor: pointer; font: inherit; }
@media (max-width: 599px) { .nextv__c { grid-template-columns: 120px 1fr; } .player .nextv__c img { width: 120px; height: 68px; } .nextv__c b { font-size: 15px; } .player .nextv { gap: 8px; } }

/* TikTok link next to a flip (data/tiktoks.json) */
.tt { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: 6px; border-radius: 50%; color: var(--text); background: var(--bg2); border: 1px solid var(--line); vertical-align: middle; flex: none; }
.tt:hover { color: #fff; background: #111; border-color: #ff0050; box-shadow: -2px 0 0 #25f4ee inset, 2px 0 0 #ff0050 inset; }
.hlist li { position: relative; }
.hlist li:has(.tt) > a:first-child { padding-right: 46px; }
.hlist a.tt { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); flex: none; width: 28px; height: 28px; padding: 0; gap: 0; border-radius: 50%; }

/* flip map (Tölfræði) */
.fmap__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
@media (min-width: 768px) { .fmap:not(.fmap--open) .fmap__wrap { width: 85%; margin: 0 auto; } }  /* the user: 15% smaller on big screens */
.fmap__wrap { position: relative; background: #0b0d10; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.fmap__svg { display: block; width: 100%; height: auto; }
.fmap__dot { fill: #3FB4FF; stroke: #fff; stroke-width: 4; cursor: pointer; transition: r .12s; }
@media (hover: hover) { .fmap__dot:hover { fill: #e8452c; r: 18; } }
.fmap__dot.is-on { fill: #e8452c; r: 18; }
.fmap__heat { position: absolute; left: 0; top: 0; pointer-events: none; mix-blend-mode: screen; }
.fmap__tip { position: absolute; transform: translate(-50%, calc(-100% - 10px)); background: rgba(10, 10, 14, .95); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px; line-height: 1.35; white-space: nowrap; pointer-events: none; z-index: 2; }
.fmap__tip small { color: var(--muted); }
/* flips in a Veltur video: two links in the tooltip (Veltur video / broadcast); clickable, with a bridge over the gap to the dot */
.fmap__tip--links { pointer-events: auto; }
.fmap__tip--links::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.fmap__tip--below { transform: translate(-50%, 10px); }
.fmap__tip--below.fmap__tip--links::after { top: auto; bottom: 100%; }
.fmap__links { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.fmap__links a { color: var(--text); text-decoration: none; }
.fmap__links a:first-child { color: #3FB4FF; font-weight: 600; }
.fmap__links a:hover { text-decoration: underline; }
.fmap__n { color: var(--muted); font-size: 13px; margin: 8px 0 0; }

.fmap__open, .fmap__close { display: none; }
.fmap__race { margin: 0 0 8px; color: var(--text); font-weight: 700; }
@media (max-width: 767px) {
  .fmap__open { display: inline-block; }
  .fmap { display: none; }
  .fmap.fmap--open { display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 100; background: var(--bg, #0e0e11); padding: 12px; overflow: auto; }
  .fmap--open .fmap__wrap { display: flex; align-items: center; margin: auto 0; }
  .fmap--open .fmap__close { display: block; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 999px; width: 40px; height: 40px; font-size: 18px; }
}
.vmap { margin: 14px 0 0; }
.rfmap { margin: 28px 0 26px; }   /* the season's flip map on the recap page */
.fmap [hidden] { display: none !important; }

/* driver page on phones (the user 2026-10-03: stats in one or two rows, less space everywhere) */
@media (max-width: 640px) {
  .champ { display: block; font-size: 13.5px; line-height: 1.4; padding: 7px 10px; margin: 0 0 8px; }
  .champ + .champ { margin-top: 0; }
  .dhead .under { margin-bottom: 14px; }
  .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
  .stats div { min-width: 0; padding: 9px 6px 8px; text-align: center; border-radius: 8px; }
  .stats b { font-size: 22px; }
  .stats span { display: block; font-size: 10.5px; line-height: 1.15; letter-spacing: 0; text-transform: none; margin-top: 3px; }
  .sec .under { font-size: 14px; margin-bottom: 12px; }
  .dphoto--empty { margin: 12px 0 14px; padding: 10px 14px; }
  /* stat tooltips: full width under the whole box grid, so none can land off screen (phone audit 2026-10-04) */
  .stats { position: relative; }
  .stats .stip { position: static; }
  .stats .stip::after, .stats .stip:last-child::after, .stats .stip:nth-last-child(2)::after { left: 0; right: 0; width: auto; max-width: none; transform: none; }
  .stats span { font-size: 11px; letter-spacing: -.01em; }
  .sec { margin-top: 30px; }
  .sec h2 { font-size: 24px; }
  .cg { padding: 10px 6px; }
  .hp span:empty { display: none; }
  .hlist a { height: auto; min-height: 60px; padding: 9px 10px; gap: 10px; }
  .hn { font-size: 13px; }
  .career td, .career th { padding-top: 7px; padding-bottom: 7px; }
  .career .c-pos { width: auto; white-space: nowrap; }
  .career .c-pos span { min-width: 24px; height: 24px; font-size: 13px; }
  .career .c-pos .of { display: inline; margin-left: 2px; font-size: 11px; }
  .career td:first-child { white-space: nowrap; }
  .career .tag { font-size: 9px; padding: 2px 4px; }
}
/* very narrow phones: the Rednek tag drops under the year so the career table fits 320px (audit 2026-10-03) */
@media (max-width: 359px) {
  .career td:first-child { white-space: normal; }
  .career td:first-child .tag { display: block; width: max-content; margin-top: 2px; font-size: 9px; padding: 1px 4px; }
}
/* Velta ársins vote (tools/build_vote.py) */
.vote { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.vote__c { background: var(--card, #16161c); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s; }
.vote__c.is-mine { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.vote__play { position: relative; display: block; padding: 0; border: 0; background: #000; cursor: pointer; aspect-ratio: 16 / 9; }
.vote__play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vote__pl { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; font-size: 20px; padding-left: 4px; border: 2px solid #fff; }
.vote__play:hover .vote__pl { background: var(--accent); }
.vote__b { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.vote__ev { font: 700 12px/1.2 var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--accent2); }
.vote__who { font: 800 20px/1.1 var(--head); text-transform: uppercase; }
.vote__who a { text-decoration: none; }
.vote__m { color: var(--muted); font-size: 13px; }
.vote__bar { position: relative; height: 22px; border-radius: 5px; background: rgba(255, 255, 255, .07); overflow: hidden; margin-top: 6px; }
.vote__bar i { position: absolute; inset: 0 auto 0 0; background: var(--accent); width: 0; transition: width .6s; }
.vote__bar span { position: relative; z-index: 1; font: 700 12px/22px var(--head); padding-left: 8px; letter-spacing: .04em; }
.vote__btn { margin-top: auto; align-self: flex-start; margin-top: 10px; font: 800 14px/1 var(--head); text-transform: uppercase; letter-spacing: .08em; background: #fff; color: #000; border: 0; border-radius: 7px; padding: 10px 18px; cursor: pointer; }
.vote__btn:hover:not(:disabled) { background: var(--accent); color: #fff; }
.vote__c.is-mine .vote__btn { background: var(--accent); color: #fff; }
.vote__btn:disabled { opacity: .5; cursor: default; }
.vote__msg { font-weight: 600; color: var(--accent2); min-height: 1.4em; }
.vote__modal { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .85); display: grid; place-items: center; padding: 16px; }
.vote__modal[hidden] { display: none; }
.vote__frame { position: relative; width: min(960px, 100%, calc((100vh - 120px) * 16 / 9)); width: min(960px, 100%, calc((100dvh - 120px) * 16 / 9)); aspect-ratio: 16 / 9; }
/* the iframe sits in #vplayer: that box must fill the frame, or the iframe falls back to 150 px high (visitor report 2026-10-04) */
.vote__frame #vplayer, .vote__frame #cplayer { position: absolute; inset: 0; }
.vote__frame iframe, .vote__frame video { display: block; width: 100%; height: 100%; border: 0; border-radius: 8px; background: #000; }   /* phone clips (vertical) letterbox inside the 16:9 frame */
.vote__x { position: fixed; right: 10px; top: max(10px, env(safe-area-inset-top)); width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: #000; font-size: 24px; line-height: 1; cursor: pointer; }
.vote__cta { display: inline-block; margin-left: 6px; font: 800 13px/1 var(--head); text-transform: uppercase; letter-spacing: .08em; background: var(--accent); color: #fff; padding: 7px 12px; border-radius: 6px; text-decoration: none; }
.vote__cta:hover { background: var(--accent2); }

/* season recap "Árið 2026" (build_more.build_recap) */
.recap__h { font-size: clamp(56px, 11vw, 128px); color: var(--text); }
.recap .stats { margin-top: 4px; }
.reclink { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 0; }
.rchamps { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.rchamp { padding: 14px 16px; min-width: 0; }
.rchamp h3 { margin: 0 0 8px; font: 700 14px/1.2 var(--head); text-transform: uppercase; letter-spacing: .1em; color: var(--accent2); }
.rchamp p { margin: 0; }
.rchamp__n { font: italic 800 26px/1.05 var(--head); text-transform: uppercase; overflow-wrap: anywhere; }
.rchamp__n a { text-decoration: none; }
.rchamp__n a:hover { color: var(--accent2); }
.rchamp__s { color: var(--muted); font-size: 14px; margin-top: 6px !important; }
.rchamp__g { font-size: 14px; margin-top: 8px !important; padding-top: 8px; border-top: 1px solid var(--line); }
.rchamp__g:empty { display: none; }
.rchamp__g a { text-decoration: none; font-weight: 600; }
.rlist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px; }
.rlist li { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; min-width: 0; overflow-wrap: anywhere; }
.rlist a { text-decoration: none; font-weight: 700; }
.rlist a:hover { color: var(--accent2); }
.rlist small { display: block; color: var(--muted); font-size: 13px; }
.rlist--new { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.rec__t .c-prev { color: var(--muted); font-variant-numeric: tabular-nums; }
.rec__t small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.rec__t .rgain { color: var(--ok); }
.rbtns2 { margin: 18px 0 0; }
.rwatch { max-width: 720px; }
@media (max-width: 640px) {
  .rchamp__n { font-size: 22px; }
  .rec__t .c-prev small { display: inline; }
}
/* recap: Velta ársins card right under the video while the vote is open (user 2026-10-04) */
.rvote { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 0; margin: 0 0 8px; background: linear-gradient(100deg, var(--card), var(--bg2)); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--text); }
.rvote__m { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; }
.rvote__m video, .rvote__m img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rvote__t { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 28px; }
.rvote__t .kicker { margin: 0; }
.rvote__h { font: italic 800 clamp(30px, 4vw, 46px)/1 var(--head); text-transform: uppercase; }
.rvote__p { color: var(--muted); font-size: 16px; line-height: 1.45; }
.rvote .btn { margin-top: 4px; }
.rvote:hover .btn { background: var(--accent-hi); }
@media (max-width: 640px) { .rvote { grid-template-columns: 1fr; border-left: 1px solid var(--line); border-top: 4px solid var(--accent); } .rvote__t { padding: 16px 16px 18px; gap: 8px; } .rvote__p { font-size: 15px; } }

/* recap: first-time winners as clear cards (user 2026-10-03) */
.ftws { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.ftw { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.ftw__n { font: 800 20px/1.1 var(--head); text-transform: uppercase; }
.ftw__n a { text-decoration: none; }
.ftw__a { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; color: var(--muted); }
.ftw__k { font: 800 12px/1 var(--head); text-transform: uppercase; letter-spacing: .08em; padding: 5px 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); color: var(--text); white-space: nowrap; }
.ftw__k--title { background: #f5c400; color: #111; }
.ftw__k--cup { background: var(--accent); color: #fff; }
.ftw__c { color: var(--text); }

/* head-to-head comparison (/keppendur/saman) */
.h2h__cta { margin: 16px 0 0; }
.dcmp { margin-left: auto; }
@media (max-width: 640px) { .dcmp { margin-left: 0; } }
.h2h__pick { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: end; margin-bottom: 28px; }
.h2h__in { position: relative; min-width: 0; }
.h2h__in label { display: block; font: 700 13px/1 var(--head); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.h2h__in .search { max-width: none; margin: 0; }
.h2h__in .search:focus { outline: 2px solid var(--accent); border-color: transparent; }
.h2h__sug { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; max-height: 340px; overflow-y: auto; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.h2h__sug li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 10px; border-radius: 6px; cursor: pointer; }
.h2h__sug li[aria-selected="true"], .h2h__sug li[data-i]:hover { background: var(--accent-deep); }
.h2h__sug small { color: var(--muted); font-size: 12px; flex-shrink: 0; }
.h2h__sug .h2h__nf { color: var(--muted); cursor: default; }
.h2h__swap { width: 46px; height: 46px; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 8px; font-size: 20px; cursor: pointer; }
.h2h__swap:hover { border-color: var(--accent); }
.h2h__heads { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-bottom: 12px; }
.h2h__card { display: flex; align-items: center; gap: 16px; min-width: 0; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.h2h__card--b { flex-direction: row-reverse; text-align: right; }
.h2h__ph { flex: none; width: 96px; height: 96px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: var(--card); }
.h2h__ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h2h__no, .h2h__ini { width: 100%; height: 100%; display: grid; place-items: center; font: italic 800 40px/1 var(--head); color: #fff; }
.h2h__no { background: linear-gradient(135deg, var(--c1) 55%, var(--c2) 55%); text-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.h2h__ini { color: var(--muted); }
.h2h__who { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.h2h__nm { font: italic 800 28px/1 var(--head); text-transform: uppercase; text-decoration: none; overflow-wrap: break-word; }
.h2h__nm:hover { color: var(--accent2); }
.h2h__sub { color: var(--muted); font-size: 14px; }
.h2h__tl { color: var(--gold); font-size: 13px; }
.h2h__t td { white-space: normal; padding: 12px 16px; vertical-align: middle; }
.h2h__t .h2h__v { width: 32%; }
.h2h__t .h2h__v--b { text-align: right; }
.h2h__t .h2h__v b { font: 800 30px/1 var(--head); }
.h2h__t .h2h__v small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.h2h__t .h2h__l { text-align: center; font: 700 14px/1.15 var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.h2h__t .h2h__l small { display: block; font: 400 11px/1.3 var(--body); text-transform: none; letter-spacing: 0; opacity: .8; margin-top: 2px; }
.h2h b.dim { color: #5a5a64; }
.h2h td.h2h__w { background: rgba(62, 108, 184, .2); }
.h2h__t td.h2h__w b, .h2h__lt td.h2h__w b { color: var(--accent2); }
.h2h__t td.h2h__w b::after, .h2h__lt td.h2h__w b::after { content: ' ▲'; font-size: .45em; vertical-align: .4em; }
.h2h__score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 0 0 14px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; }
.h2h__score div { min-width: 0; }
.h2h__score div:last-child { text-align: right; }
.h2h__score b { display: block; font: 800 44px/1 var(--head); color: var(--muted); }
.h2h__score .h2h__w b { color: var(--accent2); }
.h2h__score span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; overflow-wrap: anywhere; }
.h2h__score p { margin: 0; color: var(--muted); font: 700 13px/1.2 var(--head); text-transform: uppercase; letter-spacing: .1em; text-align: center; }
.h2h__sc td, .h2h__lt td { white-space: normal; }
.h2h__sc td a { text-decoration: none; font-weight: 600; }
.h2h__sc .c-pos { width: 70px; white-space: nowrap; }
.h2h__cls small { display: block; color: var(--muted); font-size: 13px; }
.h2h__lap b { font: 800 22px/1 var(--head); }
.h2h__lap small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.h2h__hh { display: flex; justify-content: space-between; color: var(--muted); font: 700 12px/1 var(--head); text-transform: uppercase; letter-spacing: .1em; padding: 0 6px 6px; }
.h2h__hl { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.h2h__hl li { display: flex; align-items: center; gap: 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; }
.h2h__hl li[hidden] { display: none; }
.h2h__hl .hn { text-align: center; }
.h2h__hl .hn a { color: var(--muted); }
.h2h__hl .hp.h2h__w span { outline: 2px solid var(--accent2); outline-offset: 2px; }
.h2h__hl .hp span { min-width: 34px; font-size: 14px; }
@media (max-width: 640px) {
  .h2h__pick { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .h2h__swap { justify-self: center; height: 36px; transform: rotate(90deg); }
  .h2h__heads { gap: 8px; }
  .h2h__card, .h2h__card--b { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; }
  .h2h__card--b { align-items: flex-end; }
  .h2h__ph { width: 64px; height: 64px; }
  .h2h__no, .h2h__ini { font-size: 28px; }
  .h2h__nm { font-size: 20px; }
  .h2h__sub, .h2h__tl { font-size: 12px; }
  .h2h__t td { padding: 10px 8px; }
  .h2h__t .h2h__v b { font-size: 24px; }
  .h2h__t .h2h__l { font-size: 12px; letter-spacing: .04em; }
  .h2h__score { padding: 12px; gap: 8px; }
  .h2h__score b { font-size: 34px; }
  .h2h__sc td, .h2h__sc th, .h2h__lt td, .h2h__lt th { padding-left: 6px; padding-right: 6px; }
  .h2h__sc { table-layout: fixed; }
  .h2h__sc th:first-child { width: 58px; }
  .h2h__sc .c-pos { width: 60px; padding-left: 2px; padding-right: 4px; }
  .h2h__sc .h2h__cls { overflow-wrap: anywhere; }
  .h2h__sc th, .h2h__lt th { white-space: normal; overflow-wrap: anywhere; letter-spacing: .02em; font-size: 11px; }
  .h2h__sc td, .h2h__lt td { font-size: 14px; }
  .h2h__sc td:first-child .tag { display: block; width: max-content; margin-top: 3px; }
  .h2h__hl li { gap: 8px; padding: 8px; }
  .h2h__hl .hn { font-size: 13px; }
}
/* lightbox controls (phone audit 2026-10-04) */
html.lb-open, html.lb-open body { overflow: hidden; }
.lb { touch-action: pan-y; }
.lb__x, .lb__p, .lb__nx { position: absolute; z-index: 2; border: 0; background: rgba(255, 255, 255, .14); color: #fff; border-radius: 50%; width: 44px; height: 44px; font-size: 28px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb__x { top: 12px; right: 12px; }
.lb__p, .lb__nx { top: 50%; transform: translateY(-50%); font-size: 34px; padding-bottom: 4px; }
.lb__p { left: 10px; } .lb__nx { right: 10px; }
.lb__n { position: absolute; top: 22px; left: 16px; color: #c9c9d2; font: 700 13px var(--head); letter-spacing: .06em; }
.lb figure { cursor: default; }
@media (max-width: 640px) { .lb__p, .lb__nx { top: auto; bottom: 14px; transform: none; } .lb figure img { max-height: calc(100vh - 150px); } }

/* ---------- phone polish (phone audit 2026-10-04: most visitors are on phones) ---------- */
h1, h2, .vrow__title, .vcard__title, .next__name, .h1 { text-wrap: balance; }
.vcard__kicker, .hn, .vote__ev { text-wrap: pretty; }
.srch__bar input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.srch__x { min-width: 44px; min-height: 44px; font-size: 20px; }
.chapters button[data-t] { min-width: 4.8em; text-align: center; }
.nowrap { white-space: nowrap; }
@media (max-width: 1000px) {
  .srch-btn, .top .lang { min-width: 40px; height: 38px; display: inline-grid; place-items: center; box-sizing: border-box; }
  .nav a { padding-top: 12px; padding-bottom: 12px; }
}
@media (max-width: 640px) {
  /* bigger tap targets */
  .vrow__all, .more, .vall__back { display: inline-flex; align-items: center; min-height: 40px; }
  .chip { padding: 11px 15px; }
  .sel { min-height: 42px; }
  .chapters button[data-t] { min-height: 36px; }
  .chapters .shr, .chgrps--row .shr { width: 40px; height: 36px; }
  .copy { display: inline-block; padding: 9px 0; }
  .career td a[href*="/myndbond/"], .career td a[href*="/videos/"] { display: inline-block; padding: 10px 10px; margin: -10px -6px; }
  details > summary { padding: 10px 0; }
  .pn { flex-direction: row; } .pn a { flex: 1 1 0; max-width: none; }
  .pn a:only-child:last-child { margin-left: auto; max-width: 50%; }
  /* search results: title on top, info under it */
  .srch__res a { flex-direction: column; align-items: flex-start; gap: 2px; }
  .srch__res small { max-width: none; text-align: left; }
  /* Myndbönd "Sjá allt" filters: class + year on one row */
  .vall .filters:has(#vyear) { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .vall .filters:has(#vyear) .chips--year { display: none; }
  /* Keppendur filters: year + class side by side, sort full width */
  .dfilt .sel { flex: 1 1 calc(50% - 4px); min-width: 0; }
  .dfilt .sel:last-of-type { flex-basis: 100%; }
  .dfilt #dcls { flex-basis: 100%; order: 1; } .dfilt #dyear { order: 2; } .dfilt #dsort { order: 3; flex-basis: calc(50% - 4px); } .dfilt .dcount { order: 4; }   /* the class names need the full width ('Unglingaflokkur kvenna', audit) */
  #dlist li:has(.dpos:not([hidden])) a { padding-right: 56px; }
  /* Jakob credit buttons: equal full-width buttons */
  .credit__links a { flex: 1 1 100%; text-align: center; }
  /* lists of heats on video: both lines visible */
  .hlist .hn small { white-space: normal; }
  /* stream page chapters + Beint results fold closed from the first paint (no jump when main.js folds them) */
  .chgrp:not(.is-open) > ol { display: none; }
  [data-live-res] .mini:not(.is-open) > :not(h3) { display: none; }
  /* home hero: smaller play button in the corner so it doesn't cover the picture */
  .hero__media .play { width: 50px; height: 50px; margin: 0; left: 14px; top: auto; bottom: 14px; }
  .hero__media .play::before { left: 20px; top: 15px; border-width: 10px 0 10px 16px; }
  /* Myndbönd rows: no sliver of the previous card after a swipe */
  .vrow__track { scroll-padding-left: 16px; }
}
@media (max-width: 420px) {
  .vcard__top { flex-wrap: wrap; gap: 4px 8px; }
  .vcard__kicker { font-size: 12px; letter-spacing: .05em; }
}
/* landscape phones: header scrolls away, players and the hero fit the screen height */
@media (orientation: landscape) and (max-height: 500px) {
  .top { position: static; }
  .player, .hero__media { max-height: calc(100vh - 24px); aspect-ratio: 16 / 9; width: auto; max-width: 100%; margin-left: auto; margin-right: auto; }
  /* carousel slides hold only an absolutely placed video: give the box a width or it collapses to a speck (audit) */
  .hslide .hero__media { width: min(100%, calc((100vh - 24px) * 16 / 9)); }
}
@media (max-width: 640px) {
  .st--pts .st__row td.c-tot::after { content: ' ▾'; color: var(--accent2); font-size: 12px; }
  .st--pts .st__row.is-open td.c-tot::after { content: ' ▴'; }
  .st--pts .st__row { cursor: pointer; }
}
/* career graph: a taller phone version with bigger labels (phone audit 2026-10-04) */
.cg__m { display: none !important; }
@media (max-width: 640px) { .cg__d { display: none !important; } .cg__m { display: block !important; } }

/* phone audit C (2026-10-04) */
[id] { scroll-margin-top: 100px; }
.since { margin-left: 0; }
h2:has(.since) { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
.fmap__links a { display: block; padding: 9px 0; }
.foot__links a, .foot__in a, .reclink a.more { display: inline-flex; align-items: center; min-height: 40px; }
.foot__links { gap: 4px 22px; }
.vote__msg:empty { display: none; }
.vote__done { margin: 8px 0 0; font-weight: 600; color: var(--accent2); font-size: 14px; }
.vote__cta { display: inline-flex; align-items: center; min-height: 42px; margin: 10px 0 18px; }
p .vote__cta { margin-left: 0; }
@media (max-width: 640px) {
  .fmap [data-fy] { min-height: 40px; }
  .fmap--open .fmap__years, .fmap--open .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .pipe__l { columns: 1; }
}
@media (max-width: 359px) { .next__cal { font-size: 13px; padding: 12px 14px; white-space: nowrap; } }
@media (max-width: 359px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
/* Myndbönd on phones: smaller rows so three fit on the screen at once (user 2026-10-04) */
@media (max-width: 640px) {
  .vrow { margin-bottom: 18px; }
  .vrow__head { margin-bottom: 6px; }
  .vrow__title { font-size: 18px; }
  .vrow__track { grid-auto-columns: 44%; gap: 10px; }
  .vrow__track .vcard__meta { padding-top: 5px; }
  .vrow__track .vcard__top { flex-wrap: nowrap; gap: 6px; }
  .vrow__track .vcard__kicker { font-size: 10.5px; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .vrow__track .vcard__dur { font-size: 10.5px; padding: 3px 5px; border-radius: 4px; }
  .vrow__track .vcard__title { font-size: 14px; line-height: 1.1; margin: 2px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .vrow__track .vcard__date { display: none; }
  .vrow__nav { width: 32px; height: 32px; }
}
/* Staðan on phones: year dropdown on the same line as Íslandsmót / Rednek (user 2026-10-04) */
@media (max-width: 700px) {
  .filters:has(> .sel--styr) { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; }
  .filters:has(> .sel--styr) > .sel--styr { flex: 0 0 auto; margin: 0; min-height: 42px; }
  .filters:has(> .sel--styr) > .chips { flex: 1 1 auto; flex-wrap: nowrap; gap: 6px; margin: 0; min-width: 0; }
  .filters:has(> .sel--styr) > .chips .chip { padding: 11px 11px; font-size: 14px; letter-spacing: .03em; }
}
@media (max-width: 359px) { .filters:has(> .sel--styr) > .chips .chip { padding: 11px 8px; font-size: 13px; letter-spacing: 0; } }
/* Tölfræði "Úr unglingaflokki" boxes on phones: one compact row each, class | number | ▾ (user 2026-10-04) */
@media (max-width: 640px) {
  .minis:has(> .pipe) { gap: 8px; }
  .mini.pipe { padding: 10px 14px; }
  .pipe summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 40px; }
  .pipe summary h3 { margin: 0; font-size: 15px; line-height: 1.15; }
  .pipe summary .big { margin: 0; font-size: 30px; line-height: 1; }
  .pipe summary .under { margin: 0; font-size: 0; }
  .pipe summary .under::after { font-size: 15px; }
  .pipe[open] summary { margin-bottom: 8px; }
}
/* ranked lists with a detail line (Lengsti ferillinn, Jöfnustu titilbaráttur, ...) tighter on phones (user 2026-10-04) */
@media (max-width: 640px) {
  .podium li { padding: 6px 0; gap: 8px; }
  .podium--sm li { row-gap: 0; }
  .podium li::before { min-width: 22px; height: 22px; font-size: 12px; border-radius: 5px; }
  .podium a { font-size: 15px; line-height: 1.25; }
  .podium span { font-size: 16px; }
  .podium small { margin-left: 30px; margin-top: 1px; font-size: 12px; line-height: 1.3; }
  .mini .more-btn, .sec .more-btn { margin-top: 10px; padding: 11px 22px; font-size: 15px; }
}
/* "Úr unglingaflokki" on phones: one connected list, short rows (user 2026-10-04, round 2) */
@media (max-width: 640px) {
  .minis:has(> .pipe) { gap: 0; }
  .minis:has(> .pipe) > .mini.pipe { padding: 4px 12px; border-radius: 0; border-top-width: 0; }
  .minis:has(> .pipe) > .mini.pipe:first-child { border-top-width: 1px; border-radius: var(--r) var(--r) 0 0; }
  .minis:has(> .pipe) > .mini.pipe:last-child { border-radius: 0 0 var(--r) var(--r); }
  .pipe summary { min-height: 40px; gap: 10px; }
  .pipe summary h3 { font-size: 14px; }
  .pipe summary .big { font-size: 24px; }
  .pipe__l { padding-bottom: 8px; }
}
@media (max-width: 640px) { .minis:has(> .pipe) > .mini.pipe { padding-top: 1px; padding-bottom: 1px; } .pipe summary h3 { margin: 0 !important; } }
/* Staðan on phones: no club under the name, tighter rows (user 2026-10-04) */
@media (max-width: 640px) {
  .st--pts td.c-name .sub { display: none; }
  .st--pts td { padding-top: 7px; padding-bottom: 7px; }
  .st--pts td.c-pos span { min-width: 24px; height: 24px; font-size: 13px; }
  .st--pts td.c-name { font-size: 15px; }
}
/* Staðan phone selector row: no divider line, all three pills the same height and look (user 2026-10-04) */
@media (max-width: 700px) {
  .filters:has(> .sel--styr) > * { border-top: 0 !important; border-left: 0 !important; padding-top: 0 !important; width: auto; }
  .filters:has(> .sel--styr) > .sel--styr, .filters:has(> .sel--styr) > .chips .chip { box-sizing: border-box; height: 42px; min-height: 42px; display: inline-flex; align-items: center;
    font: 700 14px/1 var(--head); letter-spacing: .03em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; }
  .filters:has(> .sel--styr) > .sel--styr { padding: 0 30px 0 14px; color: var(--text); background-color: var(--card); }
  .filters:has(> .sel--styr) > .chips .chip { padding: 0 12px; }
  .filters:has(> .sel--styr) > .chips .chip[aria-pressed="true"] { border-color: var(--accent); }
}
@media (max-width: 374px) {
  .hide-xs { display: none; }
  .filters:has(> .sel--styr) > .sel--styr { padding: 0 26px 0 12px; }
}
/* phone header: one row (logo, search, language, ☰) with the menu as a dropdown (user 2026-10-04) */
.menu-btn { display: none; }
@media (max-width: 700px) {
  .top__in { flex-wrap: nowrap; padding-bottom: 10px; position: relative; }
  .menu-btn { display: inline-grid; place-items: center; width: 42px; height: 38px; padding: 0; background: none; border: 1px solid var(--line); border-radius: 6px; color: var(--text); cursor: pointer; flex: 0 0 auto; }
  .top.is-open .menu-btn { background: var(--accent); border-color: var(--accent); color: #fff; }
  .top .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 30; flex-direction: column; gap: 0; width: auto; margin: 0;
    background: var(--bg2, #15151b); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(0, 0, 0, .5); padding: 6px 16px 10px; }
  .top.is-open .nav { display: flex; }
  .top .nav a { font-size: 19px; letter-spacing: .04em; padding: 13px 4px; border-bottom: 1px solid var(--line); justify-content: flex-start; }
  .top .nav a:last-child { border-bottom: 0; }
  .top .nav a[aria-current] { color: var(--accent2); border-bottom-color: var(--line); }
}
/* Myndbönd on phones: a divider line between categories so the rows don't run together (user 2026-10-04) */
@media (max-width: 640px) {
  .vrow + .vrow { border-top: 1px solid var(--line); padding-top: 14px; }
  .vrow { margin-bottom: 16px; }
  .vrow__title { color: var(--text); }
  .vrow__title::before { content: ''; display: inline-block; width: 4px; height: .85em; margin-right: 8px; background: var(--accent); border-radius: 2px; vertical-align: -.05em; }
}
/* home "Staðan" on phones: no club/car line, tighter rows; the class heading repeats the dropdown, so it goes too (user 2026-10-04) */
@media (max-width: 640px) {
  .minis--home .st td.c-name .sub { display: none; }
  .minis--home tr { padding: 7px 0; }
  .minis--home .c-name { font-size: 15px; }
  .minis--home .mini > h3 { display: none; }
  .minis--home .mini { padding-top: 6px; padding-bottom: 6px; }
}
/* every dropdown: our own chevron, inset from the right edge (user 2026-10-04: the native arrow sat on the edge) */
select.sel { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239a9aa6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px; padding-right: 40px !important; }
/* Myndbönd rows on phones: a subtle container behind each video (drawn outside the card, so the cards keep their size and
   spacing; the track gets 4px of room above/below so the frame isn't clipped) (user 2026-10-04) */
@media (max-width: 640px) {
  .vrow__track { padding-top: 4px; padding-bottom: 4px; }
  .vrow__track > .vcard { position: relative; isolation: isolate; }
  .vrow__track > .vcard::before { content: ''; position: absolute; inset: -4px -4px -4px -4px; z-index: -1; background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--r) + 3px); }
  .vrow__track > .vcard .vcard__meta { padding-bottom: 2px; }
}
/* search + language live in the phone dropdown; desktop keeps them in the header (user 2026-10-04) */
.nav__srch, .nav__lang, .nav a.nav__lang { display: none; }
@media (max-width: 700px) {
  .top .srch-btn, .top .top__in > .lang { display: none !important; }
  .top .menu-btn { margin-left: auto; }
  .top .nav .nav__srch, .top .nav .nav__lang { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line);
    font: 700 19px/1 var(--head); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 13px 4px; text-decoration: none; cursor: pointer; text-align: left; }
  .top .nav .nav__lang { border-bottom: 0; }
  .top .nav .nav__srch { border-top: 1px solid var(--line); margin-top: 6px; }
}
/* menu bottom: Leita + English side by side as buttons (user 2026-10-04) */
.nav__tools { display: none; }
@media (max-width: 700px) {
  .top .nav .nav__tools { display: flex; gap: 10px; padding: 12px 0 4px; border-top: 1px solid var(--line); margin-top: 6px; }
  .top .nav .nav__tools .nav__srch, .top .nav .nav__tools .nav__lang { flex: 1 1 0; justify-content: center; margin: 0; height: 46px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); font-size: 17px; }
  .top .nav .nav__tools .nav__srch { background: var(--accent); border-color: var(--accent); color: #fff; }
}
@media (max-width: 700px) { .top .nav .nav__tools { border-top: 0; margin-top: 0; } }
/* home page video grid on phones: the same container behind each video as on Myndbönd (cards keep size and spacing) (user 2026-10-04) */
@media (max-width: 640px) {
  body:has(.hero) .grid > .vcard { position: relative; isolation: isolate; }
  body:has(.hero) .grid > .vcard::before { content: ''; position: absolute; inset: -4px; z-index: -1; background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--r) + 3px); }
  body:has(.hero) .grid > .vcard .vcard__meta { padding-bottom: 2px; }
}
/* home "Vinsæl myndbönd" on phones: no category line, just the title (user 2026-10-04) */
@media (max-width: 640px) { .otd__l--pop .otd__i small, .otd__l--pop .otd__i small + br { display: none; } }
/* home carousel (user 2026-10-04): hero slides stacked, cross-fade, dots bottom right */
.heros { position: relative; display: grid; background: #000; }
.hslide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s, visibility .7s; }
.hslide.is-on { opacity: 1; visibility: visible; }
.hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.heros__dots { position: absolute; z-index: 3; right: 22px; bottom: 18px; display: flex; gap: 8px; }
.heros__dot { width: 34px; height: 5px; padding: 0; border: 0; border-radius: 3px; background: rgba(255, 255, 255, .35); cursor: pointer; }
.heros__dot.is-on { background: #fff; }
@media (max-width: 640px) {
  .heros__dots { right: 50%; transform: translateX(50%); bottom: 12px; }
  .heros__dot { width: 26px; height: 5px; position: relative; }
  .heros__dot::after { content: ''; position: absolute; inset: -14px -4px; }
  .hslide .hero__txt { padding-bottom: 40px; }
}
/* video containers on every screen size (user 2026-10-04: "on all versions"): Myndbönd rows + home grid */
.vrow__track { padding-top: 4px; padding-bottom: 4px; }
.vrow__track > .vcard, body:has(.hero) .grid > .vcard { position: relative; isolation: isolate; }
.vrow__track > .vcard::before, body:has(.hero) .grid > .vcard::before { content: ''; position: absolute; inset: -5px; z-index: -1; background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); }
.vrow__track > .vcard .vcard__meta, body:has(.hero) .grid > .vcard .vcard__meta { padding-bottom: 3px; }
@media (max-width: 640px) { .vrow__track > .vcard::before, body:has(.hero) .grid > .vcard::before { inset: -4px; border-radius: calc(var(--r) + 3px); } }
/* carousel dots clear of the sponsor tab: under the text column on desktop, top right over the picture on phones */
.heros__dots { right: auto; left: calc(60% + 24px); bottom: 26px; }
@media (max-width: 900px) { .heros__dots { left: auto; right: 14px; top: 14px; bottom: auto; transform: none; } }
/* home carousel on phones: the text sits on top of the video (user 2026-10-04), one block the height of the picture */
@media (max-width: 640px) {
  .hslide { position: relative; }
  .hslide .hero__media { aspect-ratio: 4 / 3.4; }
  .hslide .hero__media::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .9) 100%); }
  .hslide .hero__media .play { display: none; }
  .hslide .hero__txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 18px 18px; pointer-events: none; }
  .hslide .hero__txt a { pointer-events: auto; }
  .hslide .kicker { margin-bottom: 4px; }
  .hslide h1, .hslide .hero__h { font-size: 34px; margin-bottom: 6px; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
  .hslide .hero__date { font-size: 13.5px; margin: 0 0 12px; color: #d6d6de; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
  .hslide .btn { padding: 11px 20px; font-size: 16px; }
  .hslide .hero__tag { display: none; }
}

/* audit 2026-10-04 (new features on phones) */
.podium .pn { flex: 1; min-width: 0; font-weight: 600; }
.reclink a.more::after, .sec__head a.more::after { margin-left: .3em; }
.recap .player { margin-top: 14px; }
.fmap--open .fmap__wrap { overflow: visible; }   /* tooltips below a dot were clipped in the full-screen map */
.vote__btn { padding: 13px 20px; }
@media (max-width: 359px) { .stats, .recap .stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }   /* 2+2, not 3+1 */
@media (max-width: 640px) {
  /* carousel: the sponsor tab rises into the bottom right of the hero: keep the button above it; darker top for the kicker */
  .hslide .hero__txt { padding-bottom: 38px; }
  .hslide .hero__media::after { background: linear-gradient(180deg, rgba(0, 0, 0, .3) 0, rgba(0, 0, 0, .2) 20%, rgba(0, 0, 0, .6) 52%, rgba(0, 0, 0, .92) 100%); }
  .hslide .kicker, .hslide h1 em, .hslide .hero__h em { text-shadow: 0 1px 8px rgba(0, 0, 0, .85); }
  .hslide .btn { padding: 13px 20px; }
  .note { font-size: 14px; padding: 12px 14px; }
  /* compilation clip lists: one card per clip, time button on the left, text wraps beside it */
  .chapters--flips li { align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
  .chapters--flips li:last-child { border-bottom: 0; }
  .chapters--flips button[data-t] { min-height: 40px; flex-shrink: 0; }
  .chapters--flips .ch__t { padding-top: 9px; line-height: 1.35; }
  .chapters--flips .shr { width: 40px; height: 40px; }
}
/* landscape phones: the flip map opens full screen too (inline it was taller than the screen) */
@media (orientation: landscape) and (max-height: 500px) {
  .fmap__open { display: inline-block; }
  .fmap { display: none; }
  .fmap.fmap--open { display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 100; background: var(--bg, #0e0e11); padding: 10px; overflow: auto; }
  .fmap--open .fmap__wrap { display: flex; align-items: center; margin: auto 0; max-height: calc(100vh - 70px); }
  .fmap--open svg { max-height: calc(100vh - 70px); width: auto; margin: 0 auto; }
  .fmap--open .fmap__close { display: block; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 999px; width: 40px; height: 40px; font-size: 18px; }
}
.vote__src { margin-bottom: 6px; color: var(--text); font-weight: 600; }   /* vote page: what is in the vote, then the rules below */
.vote__rules { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.vote__frame.vote__frame--tall { aspect-ratio: 9 / 16; width: min(420px, 100%, calc((100vh - 80px) * 9 / 16)); width: min(420px, 100%, calc((100dvh - 80px) * 9 / 16)); }   /* vertical phone clip in the vote */
.foot__mid { display: flex; flex-direction: column; align-items: center; text-align: center; }   /* middle column: club logos above the data line */
.foot__clubs { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 30px; margin-bottom: 4px; }   /* AÍH, AKÍS, BA */
.foot__clubs a { display: block; opacity: .85; transition: opacity .15s; }
.foot__clubs a:hover { opacity: 1; }
.foot__clubs img { display: block; height: 56px; width: auto; }
@media (max-width: 640px) { .foot__mid { width: 100%; } .foot__clubs { gap: 12px 24px; } .foot__clubs img { height: 46px; } }

/* Velta ársins results mode (main.js, after the vote closes or ?urslit=1) */
.vres { margin: 8px 0 18px; }
.vres__win { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; background: linear-gradient(100deg, var(--card), var(--bg2)); border: 1px solid var(--line); border-left: 4px solid #f5c400; border-radius: var(--r); overflow: hidden; }
.vres__play { position: relative; padding: 0; border: 0; background: #000; cursor: pointer; aspect-ratio: 16 / 9; }
.vres__play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vres__t { padding: 20px 26px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.vres__t p { margin: 0; }
.vres__n { font: italic 800 clamp(28px, 4vw, 44px)/1 var(--head); text-transform: uppercase; }
.vres__n a { text-decoration: none; }
.vres__e { color: var(--muted); }
.vres__p b { font: 800 30px/1 var(--head); color: #f5c400; }
.vres__h { font: 800 22px/1 var(--head); text-transform: uppercase; letter-spacing: .04em; margin: 26px 0 10px; }
.vres__list { list-style: none; counter-reset: r; margin: 0; padding: 0; }
.vres__list li { counter-increment: r; display: grid; grid-template-columns: 28px minmax(0, 1.4fr) minmax(0, 1fr) 52px; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.vres__list li::before { content: counter(r); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; background: var(--line); font-weight: 700; font-size: 14px; }
.vres__list li:first-child::before { background: #f5c400; color: #000; }
.vres__ln { min-width: 0; font-weight: 600; }
.vres__ln a { text-decoration: none; }
.vres__ln small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.vres__bar { height: 10px; background: rgba(255, 255, 255, .08); border-radius: 5px; overflow: hidden; }
.vres__bar i { display: block; height: 100%; background: var(--accent); }
.vres__list b { text-align: right; font: 800 18px/1 var(--head); }
.vote__rank { position: absolute; left: 8px; top: 8px; min-width: 30px; height: 30px; padding: 0 6px; display: grid; place-items: center; border-radius: 6px; background: rgba(14, 14, 17, .85); color: #fff; font: 800 17px/1 var(--head); }
.vote__c:first-child .vote__rank { background: #f5c400; color: #000; }
@media (max-width: 640px) {
  .vres__win { grid-template-columns: 1fr; border-left: 1px solid var(--line); border-top: 4px solid #f5c400; }
  .vres__t { padding: 14px 16px 16px; }
  .vres__list li { grid-template-columns: 26px minmax(0, 1fr) 46px; }
  .vres__bar { grid-column: 2 / 4; grid-row: 2; }
}
/* the next season's calendar on Keppnir (data/calendar.json): like the race list, without links */
.evlist--cal li { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-height: 118px; background: var(--bg2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; padding: 12px 14px; }
.next__more { margin: 6px 0 0; font-size: 15px; }   /* link to the next season's calendar under the countdown */
.next.is-over .next__more { display: none; }
/* Hvað er rallýcross? (build_more.build_intro) */
.intro__steps { padding-left: 20px; } .intro__steps li { margin: 0 0 10px; }
.intro__note { color: var(--muted); font-size: 14px; }
.intro__cls td, .intro__cls th { text-align: left; } .intro__cls td:nth-child(2), .intro__cls th:nth-child(2) { text-align: center; }
/* driver self-service form (driver pages) */
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent2); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.dform__link { margin: 8px 0 0; font-size: 14px; }
.dform__box { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 12px; }
.dform__box h2 { margin: 0; font: 800 24px/1.1 var(--head); text-transform: uppercase; padding-right: 40px; }
.dform__lead { margin: 0; color: var(--muted); font-size: 14px; }
.dform__box label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 600; }
.dform__box input:not([type=checkbox]):not([type=color]), .dform__box textarea { font: inherit; font-weight: 400; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-height: 44px; }
.dform__box input[type=color] { width: 100%; height: 44px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.dform__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.dform__row input { min-width: 0; width: 100%; }
@media (max-width: 420px) { .arcf .dform__row { grid-template-columns: minmax(0, 1fr); } }   /* audit 6: the name field was cut off at 320 */
.dform__ok { flex-direction: row !important; align-items: flex-start; gap: 8px !important; font-weight: 400 !important; }
.dform__ok input { margin-top: 3px; width: 18px; height: 18px; }
.dform__prev { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.dform__msg { margin: 0; min-height: 1.2em; color: var(--accent2); }
.dform__x { position: absolute; right: 10px; top: 10px; }
.dform__prev[hidden] { display: none; }
/* Bílskúrinn on driver pages: one card per car */
.garage { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.garage li { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.garage b { font: 800 20px/1.1 var(--head); text-transform: uppercase; }
.garage span { font-weight: 600; }
.garage small { color: var(--muted); font-size: 13px; }
/* heat chart: position after every lap (build_more.heat_chart) */
.hc { margin: 8px 0 4px; }
.hc summary { cursor: pointer; color: var(--accent2); font-weight: 600; font-size: 14px; padding: 6px 0; }
.hc svg { display: block; width: 100%; max-width: 720px; height: auto; margin-top: 6px; }
.hc__g { stroke: var(--line); stroke-width: 1; }
.hc__x { fill: var(--muted); font: 600 12px var(--body, Inter, sans-serif); text-anchor: middle; }
.hc__l { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.hc__n { fill: var(--text); font: 600 13px var(--body, Inter, sans-serif); }
.hc__note { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.hc__o { fill: #f5c400; font-weight: 700; }
@media (max-width: 640px) { .hc { overflow-x: auto; } .hc svg { min-width: 560px; } }   /* readable labels on phones: scroll sideways */
/* the countdown to the next race: same card, bigger numbers (user 2026-10-05) */
.next.is-count .next__cd { gap: 18px; }
.next.is-count .next__cd div { min-width: 78px; }
.next.is-count .next__cd b { font-size: 68px; line-height: .95; font-variant-numeric: tabular-nums; }
.next.is-count .next__cd span { font-size: 13px; }
@media (max-width: 640px) { .next.is-count .next__cd { gap: 10px; } .next.is-count .next__cd div { min-width: 0; flex: 1; } .next.is-count .next__cd b { font-size: 50px; } }
@media (max-width: 359px) { .next.is-count .next__cd b { font-size: 40px; } }
.next__more { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.next__recap2 { padding: 9px 14px; font-size: 14px; }
.next.is-count .next__cd { grid-row: 1 / span 4; align-self: center; }   /* centred against the four lines on the left */
@media (max-width: 640px) { .next.is-count .next__cd { grid-row: auto; } }
/* Tölfræði: rivalries (preview 2026-10-05) */
.riv { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 10px; }
.riv li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px 8px; }
.riv a { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; text-decoration: none; }
.riv__n { font-weight: 700; min-width: 0; overflow-wrap: break-word; hyphens: none; }
/* audit 6: at phone width the names broke mid-word ('Valdima rsson'): names on one row, the score centred below */
@media (max-width: 480px) {
  .riv a { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "l r" "s s"; row-gap: 4px; }
  .riv__n { grid-area: l; } .riv__n--r { grid-area: r; } .riv__s { grid-area: s; justify-content: center; }
}
.riv__n--r { text-align: right; }
.riv__s { display: flex; align-items: center; gap: 8px; }
.riv__s b { font: 800 26px/1 var(--head); }
.riv__s i { font-style: normal; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.riv small { display: block; text-align: center; color: var(--muted); font-size: 12px; margin-top: 4px; }
/* Áttu gamalt efni? form */
.arcf__box { width: 100%; max-width: 620px; max-height: none; margin-top: 18px; }
.arcf__hint { margin: -4px 0 0; color: var(--muted); font-size: 13px; }
.arcf__prev { display: flex; gap: 8px; flex-wrap: wrap; } .arcf__prev img { width: 110px; height: 80px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
/* 2027 predictions (tools/build_predict.py) */
.pred { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; margin-top: 16px; }
.pred__c { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r); padding: 14px; }
.pred__c label { display: flex; flex-direction: column; gap: 8px; }
.pred__h { font: 800 19px/1 var(--head); text-transform: uppercase; }
.pred__c .sel { width: 100%; }
.pred__res { list-style: none; margin: 10px 0 0; padding: 0; }
.pred__res li { display: grid; grid-template-columns: minmax(0, 1fr) 80px 40px; gap: 8px; align-items: center; font-size: 13px; padding: 3px 0; }
.pred__res span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pred__res i { display: block; height: 8px; border-radius: 4px; background: var(--accent); }
.pred__res b { text-align: right; }
.pred > .btn, .pred > .vote__msg { grid-column: 1 / -1; justify-self: start; }
/* weekly quiz (tools/build_quiz.py) */
.quiz__box { max-width: 760px; margin-top: 14px; }
.quiz__n { color: var(--accent2); font: 800 15px/1 var(--head); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 10px; }
.quiz__img { width: 100%; aspect-ratio: 1280 / 655; object-fit: cover; border-radius: var(--r); display: block; background: #000; }
.quiz__ev { color: var(--muted); font-size: 14px; margin: 8px 0 12px; }
.quiz__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz__o { font: 600 16px/1.2 inherit; text-align: left; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; min-height: 52px; cursor: pointer; }
.quiz__o:hover:not(:disabled) { border-color: var(--accent); }
.quiz__o.is-right { background: rgba(63, 185, 80, .18); border-color: #3fb950; }
.quiz__o.is-wrong { background: rgba(229, 72, 77, .18); border-color: #e5484d; }
.quiz__next { margin-top: 14px; }
.quiz__end { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 18px; }
.quiz__score { font: 800 84px/1 var(--head); margin: 0 0 6px; }
.quiz__acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.quiz__note { color: var(--muted); font-size: 13px; }
@media (max-width: 520px) { .quiz__opts { grid-template-columns: 1fr; } }
.quiz__acts { align-items: center; }
.quiz__acts .btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 48px; padding: 0 22px; font: 800 16px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; border: 2px solid var(--accent); vertical-align: middle; }
/* Leikir preview (tools/build_games.py) */
.games__tabs { margin: 6px 0 18px; }
.games__box { max-width: 760px; }
.games__sub { color: var(--muted); margin: -4px 0 12px; }
.games__streak { margin: 0 0 12px; } .games__streak b { font: 800 22px/1 var(--head); color: #f5c400; }
.games__ans { margin: 12px 0 0; color: var(--muted); }
.games__aud { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r); overflow: hidden; margin-bottom: 12px; }
.games__aud iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.games__cover { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: linear-gradient(135deg, #15151b, #0e0e11); }
.games__pod { margin: 0 0 12px; padding-left: 24px; min-height: 20px; font-weight: 700; }
.games__pod li { padding: 4px 0; } .games__pod li.is-right { color: #3fb950; } .games__pod li.is-wrong { color: #e5484d; }

/* predictions card on the homepage, under the countdown (user 2026-10-05) */
.rvote--home { margin: 18px 0 8px; }
.games__q { font-size: 19px; font-weight: 700; margin: 0 0 14px; }
.games__wk { margin: 0 0 4px; }

/* audit 6: our own file button (the browser's says 'Choose files / No file chosen' in English) */
.dform__file { position: relative; }
.dform__file input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.dform__pick { align-self: flex-start; margin-top: 4px; cursor: pointer; text-transform: none; letter-spacing: 0; }
.dform__file input[type=file]:focus-visible + .dform__pick { outline: 2px solid var(--accent); outline-offset: 2px; }
/* games (audit 6): one scrolling row of game buttons on phones, a gap under pictures, a short box for the sound */
@media (max-width: 600px) { .games__tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; } .games__tabs::-webkit-scrollbar { display: none; } .games__tabs .chip { flex: 0 0 auto; } }
.games__box .quiz__img { margin-bottom: 12px; }
.games__aud--snd { aspect-ratio: auto; height: 120px; }
.games__hist { color: var(--muted); font-size: 14px; margin: -4px 0 12px; }
.ts { min-height: 0; } .ts:not(:empty) { margin: 4px 0 2px; }
/* phones, season over (user 2026-10-05: save space): less air around the card, no empty countdown rows, smaller buttons */
@media (max-width: 640px) {
  .next.is-over { margin-top: 22px; padding: 14px 16px; gap: 2px 0; }
  .next.is-over .next__name { font-size: 19px; }
  .next.is-over .next__when:empty, .next.is-over .next__cd:empty { display: none; }
  .next.is-over .next__acts { margin-top: 8px; gap: 8px; }
  .next.is-over .next__recap { font-size: 14px; padding: 10px 16px; }
  .next.is-over .next__cal { font-size: 12px; padding: 10px 14px; }
}
/* phones (user 2026-10-05): fit Næsta keppni + the game/predictions card on the first screen: shorter carousel, thinner
   partner strip, the homepage cards as one compact row (small loop left, title + button right) */
@media (max-width: 640px) {
  .hslide .hero__media { aspect-ratio: 16 / 11; }
  .hslide h1, .hslide .hero__h { font-size: 30px; margin-bottom: 4px; }
  .hslide .hero__date { font-size: 13px; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hslide .btn { padding: 10px 18px; font-size: 15px; }
  .hslide .hero__txt { padding-bottom: 34px; }
  .tick { padding: 8px 0; } .tick li { height: 34px; padding: 4px 8px; } .tick img { height: 26px; }
  .next.is-over { margin-top: 14px; }
  .rvote--home { grid-template-columns: 40% minmax(0, 1fr); border-top: 1px solid var(--line); border-left: 4px solid var(--accent); margin: 12px 0 4px; }
  .rvote--home .rvote__m { align-self: stretch; aspect-ratio: auto; width: 100%; min-width: 0; overflow: hidden; }   /* 16:9 + full height made it wider than its column */
  .rvote--home .rvote__m video, .rvote--home .rvote__m img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
  .rvote--home .rvote__t { padding: 10px 12px; gap: 4px; }
  .rvote--home .kicker { font-size: 11px; }
  .rvote--home .rvote__h { font-size: 19px; line-height: 1.05; }
  .rvote--home .rvote__p { display: none; }
  .rvote--home .btn { padding: 8px 14px; font-size: 14px; align-self: flex-start; }
}
@media (max-width: 640px) {
  /* the greyed 'calendar coming' is not a button anyway: a small grey line on phones */
  .next.is-over .next__cal { background: none; border: 0; padding: 2px 0 0; font-size: 12px; opacity: .8; width: 100%; }
  .next.is-over .next__acts { gap: 4px; }
}
@media (max-width: 640px) and (max-height: 700px) { .hslide .hero__media { aspect-ratio: 16 / 10; } }   /* short phones */
/* computers (user 2026-10-05): next race + predictions + game of the week side by side so they show when the site opens;
   the carousel gives up height on shorter screens; the cards are compact (small loop beside the text, no description) */
.homerow > .next, .homerow > .rvote--home { margin: 0; }
@media (min-width: 901px) {
  .heros .hero { min-height: 0; height: clamp(340px, calc(100vh - 400px), 520px); }
  .heros .hero__txt { padding-top: 28px; padding-bottom: 28px; }
  .heros .hero h1, .heros .hero .hero__h { font-size: clamp(40px, min(5vw, 9vh), 72px); }
  .homerow { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 16px; margin: 28px 0 8px; align-items: stretch; }
  .homerow > .next { grid-template-columns: 1fr; align-content: center; }
  .homerow > .next .next__cd, .homerow > .next .next__acts { grid-column: 1; grid-row: auto; justify-content: flex-start; margin-top: 8px; }
  .homerow > .next.is-over .next__name { font-size: 22px; }
  .rvote--home { grid-template-columns: 42% minmax(0, 1fr); align-items: stretch; }
  .rvote--home .rvote__m { aspect-ratio: auto; min-height: 140px; }
  .rvote--home .rvote__t { padding: 16px 20px; gap: 6px; justify-content: center; }
  .rvote--home .rvote__h { font-size: clamp(22px, 2vw, 30px); }
  .rvote--home .rvote__p { display: none; }
  .rvote--home .btn { padding: 10px 18px; font-size: 15px; }
}
@media (max-width: 640px) { .homerow > .next.is-over { margin-top: 14px; } .homerow > .rvote--home { margin: 12px 0 4px; } }
@media (min-width: 641px) and (max-width: 900px) { .homerow > .next { margin-top: 28px; } .homerow > .rvote--home { margin-top: 12px; } }
/* live audit 2026-10-05: no jumping while things load: the vote cards wait for the results, the games page keeps room */
.vote.is-wait { visibility: hidden; }
.games .games__line:empty { min-height: 1.5em; }
.games__box:empty { min-height: 460px; }
/* ---- game looks (user 2026-10-05: three looks to try on experimental; main.js LOOK, .look-a/b/c on #games) ---- */
.quiz__o .o__l { display: none; }
.games__looks { margin: 0 0 14px; align-items: center; } .games__lookl { color: var(--muted); font-size: 13px; margin-right: 4px; }
.g__segs { display: flex; gap: 4px; margin: 8px 0 14px; } .g__segs i { flex: 1; height: 6px; background: #2a2a33; transform: skewX(-20deg); transition: background .3s; }
.g__segs i.on { background: var(--accent); } .g__segs i.ok { background: #2fa84f; } .g__segs i.bad { background: #d64545; } .g__segs i.part { background: #e9b23a; }
.g__log { list-style: none; margin: 10px 0 14px; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.g__log li { display: flex; align-items: center; gap: 10px; background: var(--card); padding: 9px 12px; border-left: 4px solid #2fa84f; font-size: 14px; }
.g__log li.bad { border-left-color: #d64545; } .g__log li.part { border-left-color: #e9b23a; }
.g__log .g__rn { color: var(--muted); font: 800 15px/1 var(--head); width: 14px; } .g__log .g__rt { flex: 1; min-width: 0; } .g__log b { font-weight: 800; }
/* the podium (all looks) */
.g__pod { display: flex; align-items: flex-end; justify-content: center; gap: 8px; height: 196px; margin: 4px 0 14px; }
.g__st { width: 31%; max-width: 130px; background: var(--card); border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; display: flex; flex-direction: column; align-items: center; padding: 10px 6px 0; text-align: center; transition: background .3s; }
.g__st span { font: 600 13px/1.2 var(--body, Inter, sans-serif); min-height: 32px; } .g__st b { font: 900 38px/1 var(--head); color: var(--muted); }
.g__st1 { height: 180px; border-top: 4px solid #e9b23a; } .g__st2 { height: 140px; border-top: 4px solid #b9bcc8; } .g__st3 { height: 108px; border-top: 4px solid #c27b43; }
.g__st.is-in { background: #1f2c47; } .g__st.is-in b { color: var(--text); } .g__st.is-right { background: #173a22; } .g__st.is-wrong { background: #3a1717; }
/* right / wrong feedback (all looks) */
@keyframes gOk { 0% { transform: scale(1); } 40% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes gBad { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
#games[class*="look-"] .quiz__o.is-right { animation: gOk .45s ease; } #games[class*="look-"] .quiz__o.is-wrong { animation: gBad .4s ease; }
@media (prefers-reduced-motion: reduce) { #games[class*="look-"] .quiz__o { animation: none !important; } }

/* A · Útsending: TV graphics */
.look-a .gA__top { display: flex; justify-content: space-between; align-items: center; }
.look-a .gA__chip { background: var(--accent); transform: skewX(-12deg); padding: 6px 14px 3px; } .look-a .gA__chip b { display: block; transform: skewX(12deg); font: italic 900 20px/1 var(--head); text-transform: uppercase; }
.look-a .gA__sc { font: 800 22px/1 var(--head); background: #000; border: 1px solid var(--line); padding: 6px 10px; } .look-a .gA__sc i { font-style: normal; color: var(--accent2); }
.look-a .quiz__img { border: 2px solid var(--accent); border-radius: 0; }
.look-a .games__sub, .look-a .quiz__ev, .look-a .games__q { font: italic 800 20px/1.1 var(--head); text-transform: uppercase; color: var(--text); margin: 12px 0; }
.look-a .quiz__opts { gap: 9px; }
.look-a .quiz__o { display: flex; align-items: center; gap: 12px; padding: 0; border-radius: 0; transform: skewX(-8deg); min-height: 46px; text-align: left; }
.look-a .quiz__o > * { transform: skewX(8deg); }
.look-a .quiz__o .o__l { display: grid; place-items: center; width: 42px; align-self: stretch; background: #000; font: 900 20px/1 var(--head); color: var(--accent2); }
.look-a .quiz__o.is-right { background: #173a22; border-color: #2fa84f; } .look-a .quiz__o.is-right .o__l { background: #2fa84f; color: #fff; }
.look-a .quiz__o.is-wrong { background: #3a1717; border-color: #d64545; } .look-a .quiz__o.is-wrong .o__l { background: #d64545; color: #fff; }
.look-a .gA__big { font: italic 900 120px/.9 var(--head); margin: 6px 0 4px; } .look-a .gA__big span { color: var(--accent2); }
.look-a .gA__praise { font: italic 800 24px/1 var(--head); text-transform: uppercase; }

/* B · Tímatafla: the timing tower */
.look-b .gB__lap { display: flex; justify-content: space-between; align-items: baseline; } .look-b .gB__lap b { font: italic 900 30px/1 var(--head); text-transform: uppercase; } .look-b .gB__lap span { font: 700 14px var(--head); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.look-b .quiz__img { border-radius: 8px; }
.look-b .quiz__opts { gap: 0; background: #000; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.look-b .quiz__opts::before { content: attr(data-h); }
.look-b .quiz__o { display: flex; align-items: center; gap: 12px; border: 0; border-top: 1px solid #1d1d24; border-radius: 0; background: #000; min-height: 52px; padding: 0 12px; text-align: left; }
.look-b .quiz__o:first-child { border-top: 0; }
.look-b .quiz__o .o__l { display: grid; place-items: center; width: 28px; height: 28px; background: #1d1d24; border-radius: 4px; font: 800 16px/1 var(--head); color: var(--text); }
.look-b .quiz__o:nth-child(1) .o__l::before { content: '1'; } .look-b .quiz__o:nth-child(2) .o__l::before { content: '2'; } .look-b .quiz__o:nth-child(3) .o__l::before { content: '3'; } .look-b .quiz__o:nth-child(4) .o__l::before { content: '4'; }
.look-b .quiz__o .o__l { font-size: 0; } .look-b .quiz__o .o__l::before { font-size: 16px; }
.look-b .games__podo .o__l::before { content: '·' !important; }
.look-b .quiz__o.is-right { background: #12301b; } .look-b .quiz__o.is-right .o__l { background: #2fa84f; }
.look-b .quiz__o.is-wrong { background: #301212; } .look-b .quiz__o.is-wrong .o__l { background: #d64545; }
.look-b .gB__tower { background: #000; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; width: 100%; }
.look-b .gB__th { display: flex; justify-content: space-between; background: var(--accent); padding: 9px 12px; font: 800 16px/1 var(--head); text-transform: uppercase; letter-spacing: .06em; }
.look-b .gB__end .g__log { margin: 0; gap: 0; } .look-b .gB__end .g__log li { background: #000; border-left: 0; border-top: 1px solid #1d1d24; }
.look-b .gB__end .g__log li.ok b { color: #2fa84f; } .look-b .gB__end .g__log li.bad b { color: #d64545; }
.look-b .gB__praise { font: italic 800 24px/1 var(--head); text-transform: uppercase; margin: 16px 0 6px; }

/* C · Spilakassi: timer, points, big buttons */
.look-c .games__box { position: relative; }
.look-c .gC__hud { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.look-c .gC__pts small { display: block; font: 700 12px/1 var(--head); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; } .look-c .gC__pts b { font: 900 28px/1 var(--head); }
.look-c .gC__q { font: 700 13px var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--accent2); }
.look-c .gC__ring { --p: 1; width: 58px; height: 58px; border-radius: 50%; background: conic-gradient(#e9b23a calc(var(--p) * 100%), #2a2a33 0); display: grid; place-items: center; }
.look-c .gC__ring b { width: 46px; height: 46px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font: 900 24px/1 var(--head); }
.look-c .gC__ring.is-low { background: conic-gradient(#d64545 calc(var(--p) * 100%), #2a2a33 0); }
.look-c .quiz__img { border-radius: 18px; }
.look-c .quiz__opts:not(.games__podo) { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.look-c .quiz__opts:not(.games__podo) .quiz__o { min-height: 84px; border-width: 2px; border-radius: 14px; text-align: center; display: flex; align-items: center; justify-content: center; font-weight: 700; line-height: 1.2; padding: 8px; }
.look-c .gC__plus { position: absolute; right: 14px; top: 64px; font: 900 44px/1 var(--head); color: #e9b23a; transform: rotate(-8deg); animation: gPlus 1.2s ease forwards; pointer-events: none; }
@keyframes gPlus { 0% { opacity: 0; transform: translateY(10px) rotate(-8deg); } 20% { opacity: 1; transform: translateY(0) rotate(-8deg); } 100% { opacity: 0; transform: translateY(-30px) rotate(-8deg); } }
.look-c .gC__big { font: italic 900 110px/.9 var(--head); margin: 6px 0 0; } .look-c .gC__stars { color: #e9b23a; font-size: 30px; letter-spacing: 4px; margin: 4px 0; }
.look-c .gC__tot { font: 800 20px/1.3 var(--head); text-transform: uppercase; }
.games__looks { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .games__looks::-webkit-scrollbar { display: none; } .games__looks .chip, .games__lookl { flex: 0 0 auto; }
.look-c .gC__plus { top: 2px; right: auto; left: 96px; font-size: 34px; }   /* beside the points, not over the question */
.look-c .gC__ring.is-gain { background: #e9b23a; } .look-c .gC__ring.is-gain b { font-size: 17px; color: #e9b23a; animation: gOk .45s ease; }
.look-c .gC__ring.is-miss { background: #d64545; } .look-c .gC__ring.is-miss b { color: #d64545; }
/* phones (user 2026-10-05): the 'calendar coming' note beside the Skoðaðu árið button */
@media (max-width: 640px) {
  .next.is-over .next__acts { flex-wrap: nowrap; align-items: center; gap: 14px; }
  .next.is-over .next__cal { width: auto; flex: 1 1 auto; min-width: 0; white-space: normal; line-height: 1.25; padding: 0; text-align: left; }
  .next.is-over .next__recap { flex: 0 0 auto; }
}
/* look A (user 2026-10-05: the letter squares looked wrong): the letter block slants with the button and sits flush at
   the edge; only the name is straightened */
.look-a .quiz__o { overflow: hidden; }
.look-a .quiz__o > .o__l { transform: none; margin: -1px 0 -1px -1px; width: 46px; align-self: stretch; height: auto; font-style: italic; }
.look-a .quiz__o > .o__n { transform: skewX(8deg); }
.look-a .quiz__o:not(.is-right):not(.is-wrong) > .o__l { background: rgba(62, 108, 184, .18); color: var(--accent2); }
/* look C (user 2026-10-05): the game centred on the screen, a start screen with the time in big letters */
#games.look-c { max-width: 600px; margin-left: auto; margin-right: auto; }
#games.look-c > .kicker, #games.look-c > .h1, #games.look-c > .games__line { text-align: center; }
#games.look-c .games__looks { justify-content: center; }
.look-c .gC__start { text-align: center; padding: 26px 18px 30px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.look-c .gC__sec { margin: 10px 0 6px; font: italic 900 30px/1 var(--head); text-transform: uppercase; color: var(--accent2); }
.look-c .gC__sec b { display: block; font-size: 128px; line-height: .9; color: var(--text); }
.look-c .gC__how { color: var(--muted); max-width: 380px; margin: 8px auto 22px; line-height: 1.5; }
.look-c .gC__go { font-size: 22px; padding: 16px 52px; }
.look-c .quiz__end { text-align: center; } .look-c .quiz__acts { justify-content: center; }
.look-c .quiz__next { display: block; margin: 14px auto 0; min-width: 160px; }
/* Raðaðu pallinum (user 2026-10-05): the race and the right order more visible */
.g__race { display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; padding: 12px 16px; margin: 0 0 14px; }
.g__rk { font: 700 13px/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--accent2); }
.g__rh { font: italic 900 28px/1.05 var(--head); text-transform: uppercase; }
.g__ri { color: var(--muted); font-size: 14px; margin-top: 2px; }
.g__ro { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 14px 0 4px; }
.g__rot { margin: 0 0 8px; font: italic 900 22px/1 var(--head); text-transform: uppercase; display: flex; justify-content: space-between; }
.g__rot b { color: var(--accent2); }
.g__ro ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.g__ro li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, .03); }
.g__mp { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 900 18px/1 var(--head); color: #111; flex: 0 0 auto; }
.g__m1 .g__mp { background: #e9b23a; } .g__m2 .g__mp { background: #c9ccd6; } .g__m3 .g__mp { background: #c27b43; }
.g__mn { flex: 1; min-width: 0; font-weight: 700; font-size: 16px; }
.g__mk { font-weight: 900; font-size: 18px; } .g__ro li.ok .g__mk { color: #2fa84f; } .g__ro li.bad .g__mk { color: #d64545; }
/* answer card after every question (user 2026-10-05) */
.g__ans { display: flex; flex-direction: column; gap: 4px; margin: 14px 0 4px; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid #2fa84f; }
.g__ans.bad { border-left-color: #d64545; }
.g__ak { font: italic 900 24px/1 var(--head); text-transform: uppercase; color: #2fa84f; } .g__ans.bad .g__ak { color: #d64545; }
.g__ar { font-size: 16px; } .g__ar b { font-weight: 800; } .g__ar .g__mk { margin-right: 8px; font-weight: 900; color: #2fa84f; } .g__ans.bad .g__ar .g__mk { color: #d64545; }
.g__ap { color: var(--muted); font-size: 14px; }
.g__race + .quiz__img, .g__race + .games__aud { margin-top: 0; }
/* leaderboard (user 2026-10-05) */
.g__name { margin: 16px auto 6px; max-width: 440px; text-align: left; }
.g__name label { display: block; font: 800 15px/1.2 var(--head); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; text-align: center; }
.g__name div { display: flex; gap: 8px; } .g__name input { flex: 1; min-width: 0; font-size: 16px; padding: 12px 14px; }
.g__nhint { margin: -2px 0 10px; text-align: center; color: var(--muted); font-size: 14px; }   /* full names please (user 2026-10-30) */
.g__nmsg { min-height: 1.2em; margin: 6px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.g__rank { font: italic 800 20px/1.2 var(--head); text-transform: uppercase; text-align: center; margin: 14px 0; } .g__rank b { color: #e9b23a; }
.g__board { margin: 26px 0 8px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.g__board h2 { margin: 0 0 10px; font: italic 900 24px/1 var(--head); text-transform: uppercase; } .g__board h2 small { font: 600 13px Inter, sans-serif; color: var(--muted); text-transform: none; }
.g__board ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.g__board li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, .03); }
.g__board li.is-me { background: #1f2c47; outline: 1px solid var(--accent); }
.g__bp { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 900 16px/1 var(--head); background: #2a2a33; flex: 0 0 auto; }
.g__board li:nth-child(1) .g__bp { background: #e9b23a; color: #111; } .g__board li:nth-child(2) .g__bp { background: #c9ccd6; color: #111; } .g__board li:nth-child(3) .g__bp { background: #c27b43; color: #111; }
.g__bn { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .g__bs { color: var(--muted); font-size: 13px; } .g__board li b { font: 800 18px/1 var(--head); min-width: 56px; text-align: right; }
.g__bempty { color: var(--muted); margin: 0; }
/* Hver er keppandinn? (user 2026-10-05) */
.gG__f { display: flex; gap: 8px; } .gG__f input { flex: 1; min-width: 0; font-size: 16px; padding: 12px 14px; }
.gG__msg { min-height: 1.2em; margin: 6px 0 0; color: #e9b23a; font-size: 14px; } .gG__left { margin: 2px 0 10px; color: var(--muted); font: 700 14px var(--head); letter-spacing: .08em; text-transform: uppercase; }
.gG__rows { display: flex; flex-direction: column; gap: 10px; }
.gG__r { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; animation: gOk .4s ease; } .gG__r.is-win { border-color: #2fa84f; }
.gG__n { margin: 0 0 8px; font: italic 800 18px/1.1 var(--head); text-transform: uppercase; }
.gG__ts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 560px) { .gG__ts { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.gG__t { border-radius: 8px; padding: 6px 6px 7px; text-align: center; background: #2a2a33; min-height: 54px; display: flex; flex-direction: column; justify-content: center; }
.gG__t small { display: block; font: 700 10.5px/1.1 var(--head); letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.75); margin-bottom: 3px; }
.gG__t b { font: 800 15px/1.1 var(--head); overflow-wrap: anywhere; } .gG__t b i { font-style: normal; font-size: 17px; }
.gG__t.ok { background: #1f7a3a; } .gG__t.near { background: #8a6a12; } .gG__t.bad { background: #2a2a33; }
/* final screens (user 2026-10-05): the points tally big */
.look-c .gC__tot { font: italic 900 56px/1 var(--head); margin: 10px 0 4px; color: #e9b23a; letter-spacing: .01em; }
.look-c .gC__tot .gC__pct { display: block; font: 700 15px/1.3 var(--head); color: var(--muted); letter-spacing: .06em; margin-top: 6px; }
@media (max-width: 380px) { .look-c .gC__tot { font-size: 46px; } }
.look-c .gC__ring.is-up { --p: 0; background: conic-gradient(#7ea4e8 calc(var(--p) * 100%), #2a2a33 0); }
.look-c .gC__ring.is-up.is-low { background: conic-gradient(#d64545 calc(var(--p) * 100%), #2a2a33 0); }
/* games audit: long names inside the podium steps wrap, smaller on small phones */
.g__st { min-width: 0; } .g__st span { max-width: 100%; overflow-wrap: break-word; hyphens: manual; font-size: .92em; }   /* names break between words (audit: 'Alexandersdótt/ir') */
@media (max-width: 380px) { .g__st span { font-size: 11.5px; } .g__st { padding-left: 3px; padding-right: 3px; } }
.look-c .gC__ring.is-up.is-miss { background: #d64545; } .look-c .gC__ring.is-up.is-gain { background: #e9b23a; }
/* live audit: tablets squeezed 6 chapter groups into one row (heat names cut to one letter, last column off screen) */
@media (min-width: 641px) and (max-width: 1100px) { .chgrps--row { grid-template-columns: repeat(3, minmax(0, 1fr)); width: auto; left: 0; transform: none; } }
/* live audit: 'Keppnisdagatal 2027 kemur hér' spilled at 320 (an older nowrap rule) */
@media (max-width: 359px) { .next.is-over .next__acts { flex-wrap: wrap; } .next.is-over .next__cal { white-space: normal; flex-basis: 100%; letter-spacing: .04em; } }   /* too narrow beside the button: own line */
/* live audit: the heat list on driver pages cut the date off ('... Dagur 2 · 20. septe…'): wrap instead */
.hlist .hn small, .hn small { white-space: normal; overflow: visible; text-overflow: clip; }
/* phones (user 2026-10-05): the calendar note back on a greyed-out button, 'kemur hér' on its own line */
@media (max-width: 640px) {
  .next.is-over .next__cal { flex: 0 1 auto; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 12px; line-height: 1.2; white-space: nowrap; text-align: center; opacity: .75; }
}
@media (max-width: 359px) { .next.is-over .next__cal { flex: 0 0 auto; font-size: 10.5px; padding: 7px 8px; letter-spacing: .03em; } .next.is-over .next__recap { padding: 10px 11px; font-size: 13px; letter-spacing: .04em; } .next.is-over .next__acts { flex-wrap: nowrap; gap: 8px; } }
.next__cal { text-align: center; line-height: 1.2; }   /* two lines since 2026-10-05 */
/* phones (user 2026-10-05): both buttons the same size */
@media (max-width: 640px) {
  .next.is-over .next__acts { align-items: stretch; }
  .next.is-over .next__recap, .next.is-over .next__cal { flex: 1 1 0; min-width: 0; padding: 8px 10px; border: 1px solid transparent; display: flex; align-items: center; justify-content: center; text-align: center; box-sizing: border-box; }
}
@media (max-width: 359px) { .next.is-over .next__recap { white-space: normal; line-height: 1.2; } }
@media (max-width: 640px) { .next.is-over .next__cal { border-color: var(--line); } }

/* joint promo banners carry their own text (build.py FEATURED own_text): only the Horfa button, bottom left */
.vfeat--own .vfeat__tag, .vfeat--own .vfeat__kicker, .vfeat--own .vfeat__title, .vfeat--own .vfeat__meta { display: none; }
.vfeat--own .vfeat__txt { top: auto; bottom: clamp(14px, 2.4vw, 40px); transform: none; }
.vfeat--own::before { display: none; }   /* its own text is part of the image: no darkening over it */

/* 'Nýtt' tag on video cards for 7 days (build.py new_tag; main.js removes it after data-until) */
.vcard { position: relative; }
.vcard__new { display: block; position: absolute; z-index: 3; left: -7px; top: -9px; padding: 6px 12px 5px; font: italic 900 15px/1 var(--head); text-transform: uppercase; letter-spacing: .07em; color: #fff; background: #e8492a; transform: skewX(-12deg) rotate(-3deg); box-shadow: 0 4px 12px rgba(0,0,0,.55), 0 0 0 2px rgba(255,255,255,.9); }
@media (max-width: 640px) { .vcard__new { font-size: 13px; padding: 5px 10px 4px; left: -5px; top: -8px; } }
.vrow__track { padding: 12px 0 7px 8px; margin: -12px 0 -7px -8px; scroll-padding-left: 8px; overflow-y: hidden; }   /* room for the Nýtt tag on top and the card frame at the bottom (user 2026-10-15: cards cut off, a little up/down scroll in each row) */   /* room for the Nýtt tag that sticks out of a card */
/* computers too (user 2026-10-06): Skoðaðu árið and the calendar note the same size */
@media (min-width: 641px) {
  .next.is-over .next__acts { display: grid; grid-template-columns: repeat(2, 230px); gap: 14px; align-items: stretch; }
  .next.is-over .next__recap, .next.is-over .next__cal { width: auto; margin: 0; box-sizing: border-box; display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px 14px; min-height: 64px; }
}
.otd__i { position: relative; }   /* room for the Nýtt tag */
/* Nýtt tag on the Vinsæl myndbönd cards: let it stick out (the card clipped it), keep the image corners rounded */
.otd__i { overflow: visible; }
.otd__i img { border-radius: var(--r) 0 0 var(--r); }
.otd__l--pop .otd__i img { border-radius: var(--r) var(--r) 0 0; }

/* ---- phone experience 2026-10-15 (user): liquid-glass tab bar, footer logo line, swipe, Tölfræði shortcuts, mini player,
   heats in a pop-up ---- */
.tabbar, .tickw--foot, .secnav, .totop { display: none; }
@media (max-width: 767px) {
  .is-app body { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .tabbar { display: none; }
  .is-app .tabbar { display: flex; }
  .tabbar { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); height: 64px;
    padding: 6px; gap: 0; border-radius: 32px; isolation: isolate;
    /* clear glass, not frosted (user 2026-10-15): a light blur, the page shows through; the bright rim and edge light make it read as glass */
    background: linear-gradient(180deg, rgba(40, 44, 56, .34), rgba(14, 16, 22, .42) 55%, rgba(8, 9, 13, .5));   /* darker tint (user 2026-10-15: hard to read) */
    -webkit-backdrop-filter: blur(5px) saturate(160%) brightness(.85); backdrop-filter: blur(5px) saturate(160%) brightness(.85);
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(255, 255, 255, .12),
      inset 1px 0 0 rgba(255, 255, 255, .08), inset -1px 0 0 rgba(255, 255, 255, .08), inset 0 0 18px rgba(255, 255, 255, .05);
    transition: height .32s cubic-bezier(.2, .8, .2, 1), left .32s cubic-bezier(.2, .8, .2, 1), right .32s cubic-bezier(.2, .8, .2, 1), border-radius .32s; }
  /* the glass sheen: a bright rim along the top, a soft lens glow inside */
  .tabbar::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .02) 46%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, .05)); }
  .tabbar a { text-shadow: 0 1px 3px rgba(0, 0, 0, .75); flex: 1; min-width: 0; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    border-radius: 26px; color: rgba(236, 238, 245, .74); text-decoration: none; font: 600 10.5px/1 var(--body); letter-spacing: .01em;
    -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; user-select: none; transition: color .3s; }
  .tabbar a svg { width: 24px; height: 24px; transition: width .3s, height .3s; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .7)); }
  .tabbar a.on { color: #fff; }
  /* the glass lens under the current tab; it glides to the tapped one (user 2026-10-15: "animate over instead of snapping") */
  .tabbar__pill { position: absolute; z-index: -1; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 5); border-radius: 26px; pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06));
    -webkit-backdrop-filter: blur(2px) brightness(1.1); backdrop-filter: blur(2px) brightness(1.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 0 0 1px rgba(255, 255, 255, .09), 0 2px 12px rgba(62, 108, 184, .35);
    transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .3s cubic-bezier(.3, 1.25, .5, 1), opacity .2s, border-radius .32s; opacity: 0; }
  .tabbar__pill.is-on { opacity: 1; }
  .tabbar__pill.no-anim { transition: none; }
  .tabbar.is-min .tabbar__pill { border-radius: 20px; }
  .tabbar a.on svg { color: #b8d0ff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .7)) drop-shadow(0 0 6px rgba(91, 135, 209, .7)); }
  .tabbar span { white-space: nowrap; transition: opacity .2s, max-height .3s; max-height: 14px; }
  /* scrolling down: the bar shrinks to a slim pill with icons only, back on scrolling up (like iOS) */
  .tabbar.no-anim, .tabbar.no-anim * { transition: none !important; }
  .tabbar__live svg circle { animation: livep 1.6s ease-in-out infinite; }
  .tabbar.is-min { height: 50px; left: 44px; right: 44px; border-radius: 25px; }
  .tabbar.is-min span { opacity: 0; max-height: 0; }
  .tabbar.is-min a svg { width: 22px; height: 22px; }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .tabbar { background: rgba(24, 26, 34, .92); } }
  /* footer: the logo wall becomes one sliding line */
  .foot .spons, .foot .spons__lab { display: none; }
  .tickw--foot { display: block; margin: 0 -16px 6px; }
  body:has(.tickw:not(.tickw--foot)) .tickw--foot { display: none; }   /* the homepage has its own logo line (audit) */
  .tickw--foot .tick { border: 0; background: transparent; padding: 6px 0; }
  .secnav { display: flex; position: sticky; top: var(--toph, 60px); z-index: 15; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 14px; padding: 10px 16px;
    background: rgba(14, 14, 17, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .secnav::-webkit-scrollbar { display: none; }
  .secnav a { flex: none; padding: 7px 13px; border-radius: 18px; border: 1px solid var(--line); background: #16161b; color: var(--muted); text-decoration: none;
    font: 700 13px/1 var(--head); text-transform: uppercase; letter-spacing: .05em; }
  .secnav a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
  .totop { display: grid; place-items: center; position: fixed; z-index: 39; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .18); color: #fff; background: rgba(30, 32, 42, .5); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .25); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s, transform .25s; }
  .totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
  .is-app .totop { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .is-app .tabbar.is-min ~ .totop { bottom: calc(70px + env(safe-area-inset-bottom)); }
  /* swipe between classes: a hint under the class picker */
  .swipeh { display: flex; justify-content: center; gap: 6px; margin: 10px 0 12px; }
  .swipeh i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width .25s, background .25s; }
  .swipeh i.on { width: 18px; background: var(--accent); }
  .swipe-in-l { animation: swl .28s ease-out; } .swipe-in-r { animation: swr .28s ease-out; }
}
@keyframes swl { from { opacity: .3; transform: translateX(-28px); } } @keyframes swr { from { opacity: .3; transform: translateX(28px); } }
/* video page: the player stays on screen while you scroll (picking heats); X stops it */
.player-ph { position: relative; }
.player.is-mini { margin: 0; position: fixed; z-index: 19; right: 12px; bottom: 16px; width: min(420px, 46vw); aspect-ratio: 16 / 9; height: auto; border-radius: 12px; overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .14); animation: mini .25s ease-out; }
@keyframes mini { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.mini-x { display: none; }
.player.is-mini + .mini-x, .player-ph.is-mini .mini-x { display: grid; }
.player.is-mini .nextv { display: none; }
.mini-x { position: fixed; z-index: 19; right: 6px; width: 30px; height: 30px; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(20, 20, 26, .85); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
@media (max-width: 767px) {
  .player.is-mini { left: auto; right: 12px; width: 64vw; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .is-app .player.is-mini { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .is-app body:has(.tabbar.is-min) .player.is-mini { bottom: calc(70px + env(safe-area-inset-bottom)); }
}
/* heats from driver / race pages play in a pop-up at the right second */
.ytm { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .86); display: grid; place-items: center; padding: 16px; }
.ytm[hidden] { display: none; }
.ytm__box { width: min(960px, 100%); }
.ytm__f { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.ytm__f iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ytm__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 10px 2px 0; }
.ytm__bar a { color: var(--accent2); font: 700 14px/1.2 var(--head); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; }
.ytm__x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(30, 30, 38, .8); color: #fff; font-size: 22px; cursor: pointer; }
@keyframes livep { 50% { opacity: .35; } }
/* notifications (home-screen app only): bell in the header + a glass sheet with three switches (user 2026-10-15) */
.bell-btn { display: grid; place-items: center; width: 42px; height: 38px; border-radius: 6px; padding: 0; flex: 0 0 auto; margin-left: 0; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; position: relative; }
@media (max-width: 700px) { .bell-btn { margin-left: auto; } }   /* audit: on 701-1000 px the search button already pushes right */
.bell-btn[hidden] { display: none; }
.bell-btn:not([hidden]) ~ .menu-btn { margin-left: 0; }   /* the bell sits right next to the menu button */
.bell-btn.is-on::after { content: ''; position: absolute; top: 6px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 0 2px var(--bg); }
.pushs { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-end; justify-content: center; padding: 12px; }
.pushs[hidden] { display: none; }
.pushs__box { position: relative; width: min(480px, 100%); margin-bottom: env(safe-area-inset-bottom); padding: 22px 18px 16px; border-radius: 26px;
  background: rgba(24, 26, 34, .82); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 20px 50px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .25); animation: pushs .28s cubic-bezier(.2, .9, .3, 1); }
@keyframes pushs { from { transform: translateY(40px); opacity: 0; } }
.pushs h2 { font: italic 900 30px/1 var(--head); text-transform: uppercase; margin: 0 0 6px; }
.pushs__p { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.pushs__x { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; font-size: 20px; cursor: pointer; }
.pushs__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 2px; border-top: 1px solid rgba(255, 255, 255, .08); cursor: pointer; }
.pushs__row b { display: block; font-size: 16px; } .pushs__row small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.pushs__row input { position: absolute; opacity: 0; pointer-events: none; }
.pushs__row i { flex: none; width: 51px; height: 31px; border-radius: 16px; background: rgba(120, 120, 128, .32); position: relative; transition: background .25s; }
.pushs__row i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transition: transform .25s cubic-bezier(.3, 1.3, .5, 1); }
.pushs__row input:checked + i { background: #34c759; }
.pushs__row input:checked + i::after { transform: translateX(20px); }
.pushs__row input:disabled + i { opacity: .5; }
.pushs__row input:focus-visible + i { outline: 2px solid var(--accent2); outline-offset: 2px; }
.pushs__msg { color: #ffb4a8; font-size: 13px; margin: 8px 0 0; min-height: 1em; }
.galarc { margin: 4px 0 14px; }   /* Myndir: the old-footage form button under the intro (user 2026-10-30) */
/* audit 2026-10-30 (phone review) */
.vcard__top { flex-wrap: nowrap; } .vcard__top .vcard__kicker { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }   /* duration badge always on the kicker line */
.dform__link { margin: 6px 0 14px; }   /* room above the stat boxes */
@media (max-width: 360px) { .career td:nth-child(2) { font-size: 12px; } .career td, .career th { padding-left: 4px; padding-right: 4px; } .career .c-tot { font-size: 13px; } }
.nowrap { white-space: nowrap; }
@media (max-width: 767px) { .totop.is-on.is-hide { opacity: 0; pointer-events: none; transform: translateY(10px); } }
.gC__pct:not(:empty) { display: block; font-size: .8em; color: var(--muted); }   /* 'betri en 47% spilara' on its own line, no stray dot */
.player-ph { display: flow-root; }   /* the player's margin counts in the placeholder, no 22 px jump when the mini player switches (audit) */
/* video cards in rows: the kicker may take two lines so the year is never cut (audit 2026-10-30) */
.vrow__track .vcard__top { align-items: flex-start; } .vrow__track .vcard__top .vcard__kicker { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Keppnisdagatal page /dagatal (tools/build_calendar.py, user 2026-11-11) */
.cal__hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; overflow: hidden; margin-top: -1px; }
.cal__hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cal__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,17,.35) 0%, rgba(14,14,17,.25) 35%, rgba(14,14,17,.92) 88%, var(--bg) 100%), linear-gradient(90deg, rgba(14,14,17,.75), transparent 70%); }
.cal__htxt { position: relative; width: 100%; padding-top: 120px; padding-bottom: 44px; }
.cal__h1 { margin: 0; line-height: .8; font-family: var(--head); font-style: italic; font-weight: 900; text-transform: uppercase; }
.cal__y { display: block; font-size: clamp(110px, 21vw, 300px); letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.85); text-shadow: 0 10px 50px rgba(0,0,0,.35); }
.cal__ht { display: block; margin-top: 10px; font-size: clamp(34px, 5vw, 64px); color: var(--text); }
.cal__stats { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 18px 0 0; font: 700 18px/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: #cfd3db; }
.cal__stats b { font-size: 30px; color: var(--accent2); margin-right: 4px; letter-spacing: 0; }
.cal__cd { margin-top: 26px; }
.cal__cdl { margin: 0 0 6px; font: 700 15px/1.2 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--accent2); }
.cal__cdn { display: flex; gap: clamp(14px, 3vw, 34px); }
.cal__cdn span { display: flex; flex-direction: column; align-items: flex-start; }
.cal__cdn b { font: italic 900 clamp(44px, 7vw, 84px)/.9 var(--head); font-variant-numeric: tabular-nums; }
.cal__cdn small { font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.cal__hacts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.cal__hacts .btn[hidden] { display: none; }
/* the season line: one dot per race over the months */
.cal__line { position: relative; margin: 38px 0 64px; padding: 0 30px; }   /* dots evenly spaced, no month names (user 2026-11-11) */
.cal__bar { position: relative; height: 6px; border-radius: 3px; background: var(--line); margin-top: 44px; }
.cal__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); }
.cal__now { position: absolute; top: -10px; width: 2px; height: 26px; background: var(--text); transform: translateX(-1px); }
.cal__dot { position: absolute; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bg2); border: 2px solid var(--accent); text-decoration: none; color: var(--text); transition: transform .2s, background .2s; }
.cal__dot b { font: italic 900 17px/1 var(--head); }
.cal__dot small { position: absolute; top: -30px; white-space: nowrap; font: 700 13px/1 var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cal__dot:nth-of-type(even) small { top: auto; bottom: -30px; }
.cal__dot:hover { transform: translate(-50%, -50%) scale(1.15); background: var(--accent); }
.cal__dot.is-done { border-color: var(--line); color: var(--muted); }
.cal__dot.is-next, .cal__dot.is-today { background: var(--accent); box-shadow: 0 0 0 6px rgba(62,108,184,.25); animation: calpulse 2s infinite; }
@keyframes calpulse { 50% { box-shadow: 0 0 0 12px rgba(62,108,184,0); } }
@media (prefers-reduced-motion: reduce) { .cal__dot { animation: none !important; } }
/* race cards: big still on one side, diagonal edge like the thumbnails */
.cal__list { display: flex; flex-direction: column; gap: 26px; }
.cal__race { position: relative; display: grid; grid-template-columns: 56% 1fr; min-height: 380px; background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; scroll-margin-top: 90px; }
.cal__race--flip { grid-template-columns: 1fr 56%; }
.cal__race--flip .cal__img { order: 2; clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%); }
.cal__img { position: relative; overflow: hidden; clip-path: polygon(0 0, 100% 0, 91% 100%, 0 100%); background: #000; }
.cal__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.cal__race:hover .cal__img img { transform: scale(1.05); }
.cal__big { position: absolute; left: 22px; bottom: 6px; font: italic 900 150px/1 var(--head); color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.8); text-shadow: 0 6px 30px rgba(0,0,0,.5); pointer-events: none; }
.cal__race--flip .cal__big { left: auto; right: 22px; }
.cal__big--w { font-size: 96px; bottom: 14px; text-transform: uppercase; }
.cal__body { display: flex; flex-direction: column; justify-content: center; padding: 30px 34px; min-width: 0; }
.cal__st { margin: 0 0 12px; min-height: 0; }
.cal__st:empty { display: none; }
.cal__st span { display: inline-block; padding: 6px 10px 5px; border-radius: 6px; font: 700 14px/1 var(--head); letter-spacing: .1em; text-transform: uppercase; background: var(--accent); color: #fff; }
.cal__st a { color: inherit; text-decoration: none; }
.is-today .cal__st span { background: var(--live); }
.is-done .cal__st span { background: var(--line); color: var(--muted); }
.cal__when { display: flex; align-items: center; gap: 16px; }
.cal__day { font: italic 900 96px/.85 var(--head); color: var(--accent2); letter-spacing: -.02em; }
.cal__day i { font-size: .45em; font-style: normal; margin: 0 6px; color: var(--muted); vertical-align: middle; }
.cal__mw { display: flex; flex-direction: column; gap: 4px; }
.cal__mon { font: italic 900 38px/.9 var(--head); text-transform: uppercase; }
.cal__wd { font-size: 15px; color: var(--muted); }
.cal__kick { margin: 22px 0 2px; }
.cal__name { margin: 0; font: italic 900 46px/1 var(--head); text-transform: uppercase; }
.cal__track { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; }
.cal__track b { display: block; font-weight: 600; }
.cal__track small { display: block; color: var(--muted); font-size: 14px; }
.cal__club { height: 40px; width: auto; border-radius: 6px; background: #fff; padding: 3px; }
.cal__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 24px; }
.cal__race.is-done { opacity: .55; }
.cal__race.is-next, .cal__race.is-today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 60px rgba(30,61,115,.35); }
.cal__src { margin-top: 30px; }
.evcal__more { margin: 12px 0 0; }
@media (max-width: 900px) {
  .cal__race, .cal__race--flip { grid-template-columns: 1fr; min-height: 0; }
  .cal__img, .cal__race--flip .cal__img { order: 0; aspect-ratio: 16 / 8; clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); }
  .cal__big, .cal__race--flip .cal__big { left: 16px; right: auto; bottom: 10px; font-size: 96px; }
  .cal__big--w { font-size: 64px; }
  .cal__body { padding: 18px 20px 24px; }
}
@media (max-width: 640px) {
  .cal__hero { min-height: 0; }
  .cal__htxt { padding-top: 90px; padding-bottom: 28px; }
  .cal__y { -webkit-text-stroke-width: 1.5px; }
  .cal__stats { font-size: 15px; gap: 6px 16px; } .cal__stats b { font-size: 24px; }
  .cal__line { margin: 26px 0 64px; padding: 0 18px; }
  .cal__dot { width: 30px; height: 30px; } .cal__dot b { font-size: 15px; }
  .cal__dot small { font-size: 11px; top: -26px; } .cal__dot:nth-of-type(even) small { bottom: -26px; }
  .cal__day { font-size: 72px; } .cal__mon { font-size: 30px; }
  .cal__name { font-size: 36px; }
  .cal__acts .btn { flex: 1 1 100%; text-align: center; }
  .cal__ly { flex: 1 1 100%; text-align: center; margin-top: 4px; }
}
