/* O-Manager website. Colours follow the game: cream cards, dark green text, orange accent. */
@font-face { font-family: "Big Shoulders"; src: url(assets/fonts/bigshoulders.woff2) format("woff2"); font-weight: 600 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url(assets/fonts/inter.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --forest-950: #0b1f15;
  --forest-900: #11291d;
  --forest-800: #173626;
  --forest-700: #1f4733;
  --green-600: #2e6a49;
  --green-400: #6fa27d;
  --cream-50: #fdf9ef;
  --cream-100: #f7f0de;
  --cream-200: #ece0c2;
  --cream-300: #dccba1;
  --ink: #183527;
  --ink-soft: #46604f;
  --orange: #ec7a2c;
  --orange-hi: #ff9447;
  --orange-lo: #c95f16;
  --purple: #b93ba8;
  --gold: #e3b45a;
  --radius: 20px;
  --shadow-lg: 0 30px 60px -20px rgba(17, 41, 29, .35), 0 12px 24px -12px rgba(17, 41, 29, .25);
  --shadow-md: 0 14px 30px -14px rgba(17, 41, 29, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Big Shoulders", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink);
  background: var(--cream-100); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1; letter-spacing: .01em; margin: 0; text-transform: uppercase; }
h2 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h3 { font-size: 1.65rem; letter-spacing: .02em; }
p { margin: 0 0 1em; }
code { font-size: .9em; background: rgba(23, 54, 38, .08); padding: .1em .4em; border-radius: 6px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* Language switch: only the active language is shown */
html[lang="sv"] [data-l="en"], html[lang="en"] [data-l="sv"] { display: none !important; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--orange); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--cream-50); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .85em 1.5em; border-radius: 999px; border: 0; text-decoration: none; font-weight: 700;
  background: var(--bg); color: var(--fg); letter-spacing: .01em; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-orange {
  --bg: linear-gradient(180deg, var(--orange-hi), var(--orange) 55%, var(--orange-lo)); --fg: #fff;
  box-shadow: 0 10px 24px -8px rgba(236, 122, 44, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-orange:hover { box-shadow: 0 16px 34px -10px rgba(236, 122, 44, .85), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-ghost { --bg: rgba(255, 255, 255, .1); --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn-ghost:hover { --bg: rgba(255, 255, 255, .18); }
.btn-line { --bg: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.btn-line:hover { --bg: var(--ink); --fg: var(--cream-50); }
.btn-sm { padding: .55em 1.1em; font-size: .92rem; }
.btn-lg { padding: 1em 1.75em; font-size: 1.05rem; }
.btn-xl { padding: 1.1em 2.2em; font-size: 1.15rem; }
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ico .f, .ico.f { fill: currentColor; stroke: none; }
.round {
  width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--cream-50); color: var(--ink); box-shadow: var(--shadow-md); transition: transform .2s var(--ease);
}
.round:hover { transform: scale(1.08); }
.round svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .35s, box-shadow .35s, backdrop-filter .35s; }
.nav-in { width: min(1240px, 100% - 32px); margin-inline: auto; height: 72px; display: flex; align-items: center; gap: 24px; }
.nav.solid { background: rgba(253, 249, 239, .86); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 rgba(23, 54, 38, .08), 0 10px 30px -20px rgba(17, 41, 29, .4); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 1.55rem; letter-spacing: .04em; color: #fff; transition: color .35s; }
.brand img { border-radius: 10px; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.nav.solid .brand { color: var(--ink); }
.links { display: flex; gap: 4px; margin-left: auto; }
.links a { text-decoration: none; color: rgba(255, 255, 255, .88); font-weight: 600; font-size: .95rem; padding: 8px 14px; border-radius: 999px; transition: background .2s, color .35s; }
.links a:hover { background: rgba(255, 255, 255, .14); }
.nav.solid .links a { color: var(--ink); }
.nav.solid .links a:hover { background: rgba(23, 54, 38, .07); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; padding: 3px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.nav.solid .lang { background: rgba(23, 54, 38, .07); box-shadow: inset 0 0 0 1px rgba(23, 54, 38, .12); }
.lang-opt { font-size: .75rem; font-weight: 800; letter-spacing: .06em; padding: 5px 9px; border-radius: 999px; color: rgba(255, 255, 255, .75); transition: background .25s, color .25s; }
.nav.solid .lang-opt { color: var(--ink-soft); }
html[lang="sv"] .lang-opt[data-v="sv"], html[lang="en"] .lang-opt[data-v="en"] { background: var(--cream-50); color: var(--ink); }
html[lang="sv"] .nav.solid .lang-opt[data-v="sv"], html[lang="en"] .nav.solid .lang-opt[data-v="en"] { background: var(--ink); color: var(--cream-50); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; position: relative; }
.burger i { position: absolute; left: 11px; right: 11px; height: 2.5px; border-radius: 2px; background: #fff; transition: transform .3s var(--ease), top .3s var(--ease), background .35s; }
.burger i:first-child { top: 17px; } .burger i:last-child { top: 25px; }
.nav.solid .burger i { background: var(--ink); }
.nav.open .burger i:first-child { top: 21px; transform: rotate(45deg); }
.nav.open .burger i:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--forest-950); isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; transform: scale(1.04); animation: heroZoom 18s ease-in-out infinite alternate; }
@keyframes heroZoom { to { transform: scale(1.1); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 24, 16, .86) 0%, rgba(8, 24, 16, .5) 45%, rgba(8, 24, 16, .05) 100%),
    linear-gradient(0deg, var(--forest-950) 0%, rgba(11, 31, 21, 0) 30%),
    linear-gradient(180deg, rgba(11, 31, 21, .55) 0%, rgba(11, 31, 21, 0) 22%);
}
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; padding: 120px 0 90px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); backdrop-filter: blur(6px); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange-hi); box-shadow: 0 0 0 0 rgba(255, 148, 71, .7); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 148, 71, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 148, 71, 0); } }
.hero-title {
  font-size: clamp(3.4rem, 7.6vw, 7.4rem); font-weight: 900; letter-spacing: .015em; line-height: .86; white-space: nowrap; margin: 22px 0 18px;
  background: linear-gradient(180deg, #fff 30%, #f3e6c7 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, .35));
}
.hero-lead { font-size: clamp(1.1rem, 1.8vw, 1.35rem); max-width: 30em; color: rgba(255, 255, 255, .9); margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { margin-top: 22px; font-size: .9rem; color: rgba(255, 255, 255, .65); }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 28px; height: 46px; border-radius: 14px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Hero entrance */
.js .hero-copy > * { opacity: 0; transform: translateY(24px); animation: rise .9s var(--ease) forwards; }
.js .hero-copy > :nth-child(2) { animation-delay: .1s; }
.js .hero-copy > :nth-child(3) { animation-delay: .22s; }
.js .hero-copy > :nth-child(4) { animation-delay: .34s; }
.js .hero-copy > :nth-child(5) { animation-delay: .46s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Runner cards (CSS version of the in-game card) ---------- */
.hero-cards { position: relative; height: 520px; perspective: 1200px; }
.om-card {
  --c1: #1a3d2b; --c2: #0f2519; --rim: #e9c46a; --rim2: #9c7426; --txt: #fbefd2;
  position: absolute; left: 50%; top: 50%; width: 270px; aspect-ratio: 270 / 400; margin: -200px 0 0 -135px;
  clip-path: polygon(50% 0, 100% 6%, 100% 86%, 50% 100%, 0 86%, 0 6%);
  background: linear-gradient(160deg, var(--rim), var(--rim2) 40%, var(--rim) 70%, var(--rim2));
  padding: 5px; transform-style: preserve-3d; will-change: transform;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5));
}
.om-card::before {
  content: ""; position: absolute; inset: 5px; clip-path: inherit; z-index: 0;
  background: radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, .16), transparent 55%), linear-gradient(180deg, var(--c1), var(--c2));
}
.om-card::after { content: ""; position: absolute; inset: 5px; clip-path: inherit; z-index: 0; opacity: .14; background: url(assets/contours.svg) center / 420px; mix-blend-mode: screen; }
.om-card > * { position: relative; z-index: 1; }
.om-card img { position: absolute; left: 8%; right: 8%; top: 9%; width: 84%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; object-position: 50% 0; z-index: 1;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 78%); mask-image: linear-gradient(180deg, #000 55%, transparent 78%); }
.c-top { position: absolute; left: 22px; top: 34px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--txt); z-index: 2; }
.c-top b { font-family: var(--display); font-size: 3rem; line-height: .9; font-weight: 900; }
.c-top span { font-weight: 800; font-size: .8rem; letter-spacing: .06em; }
.flag-se { width: 30px; height: 19px; border-radius: 2px; margin-top: 6px; background:
  linear-gradient(90deg, transparent 9px, #fecc02 9px 14px, transparent 14px), linear-gradient(0deg, transparent 7px, #fecc02 7px 12px, transparent 12px), #006aa7; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.c-name { position: absolute; left: 0; right: 0; top: 64.5%; text-align: center; font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: .05em; color: var(--txt); z-index: 2; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.c-stats { position: absolute; left: 14%; right: 14%; top: 73.5%; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; color: var(--txt); z-index: 2; border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 8px; }
.c-stats b { display: block; font-family: var(--display); font-size: 1.75rem; line-height: 1; font-weight: 800; }
.c-stats small { font-size: .62rem; font-weight: 700; letter-spacing: .12em; opacity: .75; }
.c-tier { position: absolute; left: 0; right: 0; bottom: 3.6%; text-align: center; font-size: .66rem; font-weight: 800; letter-spacing: .3em; color: var(--rim); z-index: 2; }
.c-shine { position: absolute; inset: 0; z-index: 3 !important; pointer-events: none; mix-blend-mode: overlay;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 45%, transparent 60%) no-repeat; background-size: 250% 100%; animation: shine 5s ease-in-out infinite; }
@keyframes shine { 0%, 55% { background-position: 130% 0; } 100% { background-position: -130% 0; } }
.tier-gold { --c1: #f2cf72; --c2: #c99a3a; --rim: #fff1b8; --rim2: #b9862c; --txt: #3b2a0c; }
.tier-gold .c-stats { border-color: rgba(59, 42, 12, .2); }
.tier-gold .c-name { text-shadow: none; }
.tier-silver { --c1: #e6e9ea; --c2: #a8b0b3; --rim: #ffffff; --rim2: #8c9599; --txt: #23302f; }
.tier-silver .c-stats { border-color: rgba(35, 48, 47, .2); }
.tier-silver .c-name { text-shadow: none; }
.c-mid { z-index: 3; animation: floatA 7s ease-in-out infinite; }
.c-left, .c-right { transform: translate(var(--tx), var(--ty)) rotate(var(--r)) scale(var(--s)); animation: floatSide 8s ease-in-out infinite; }
.c-left { z-index: 1; --tx: -150px; --ty: 30px; --r: -13deg; --s: .84; }
.c-right { z-index: 2; --tx: 150px; --ty: 40px; --r: 12deg; --s: .82; animation-duration: 9s; animation-delay: -3s; }
@keyframes floatA { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes floatSide { 50% { transform: translate(calc(var(--tx) * 1.03), calc(var(--ty) - 12px)) rotate(calc(var(--r) * 1.1)) scale(var(--s)); } }
.js .hero-cards .om-card { opacity: 0; }
.js .hero-cards.in .om-card { opacity: 1; transition: opacity .8s; }
.js .hero-cards.in .c-left { transition-delay: .25s; } .js .hero-cards.in .c-right { transition-delay: .4s; }

/* ---------- Stats ---------- */
.stats { background: var(--forest-950); color: var(--cream-50); padding: 8px 0 56px; }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 22px 20px; border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.stat b { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; color: var(--orange-hi); font-variant-numeric: tabular-nums; }
.stat span { font-size: .95rem; color: rgba(253, 249, 239, .75); }

/* ---------- Sections ---------- */
section { position: relative; }
.how, .modes, .duo, .gallery, .news, .faq { padding: clamp(80px, 11vw, 140px) 0; }
.topo::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .2; background: url(assets/contours.svg) 0 0 / 800px; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent); }
.topo { isolation: isolate; }
.sec-head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 80px); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--orange-lo); margin-bottom: 14px; }
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.kicker.light { color: var(--orange-hi); }
.sec-head h2 { margin-bottom: 18px; }
.sec-lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--cream-200); outline: 6px solid var(--cream-50); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1.2s var(--ease); }
.shot:hover img { transform: scale(1.03); }

/* ---------- How it works: course ---------- */
.course { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: clamp(70px, 10vw, 130px); }
.course-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.course-line path { fill: none; stroke: var(--purple); stroke-width: 4; stroke-linecap: round; opacity: .9; }
.leg { position: relative; display: grid; grid-template-columns: 76px 1fr 1.15fr; gap: 0 32px; align-items: center; z-index: 1; }
.leg:nth-child(odd of .leg) { grid-template-columns: 76px 1.15fr 1fr; }
.leg:nth-child(odd of .leg) .leg-pic { order: -1; grid-column: 2; }
.leg:nth-child(odd of .leg) .leg-text { grid-column: 3; grid-row: 1; }
.marker { grid-column: 1; grid-row: 1; width: 76px; height: 76px; position: relative; display: grid; place-items: center; }
.marker svg { width: 76px; height: 76px; fill: var(--cream-100); stroke: var(--purple); stroke-width: 4.5; stroke-linejoin: round; overflow: visible; }
.marker span { position: absolute; right: -14px; top: -14px; font-family: var(--display); font-weight: 900; font-size: 1.5rem; color: var(--purple); }
.leg-no { font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--purple); margin-bottom: 10px; }
.leg-text h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 14px; }
.leg-text p:last-child { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }

/* ---------- Game modes ---------- */
.modes { background: var(--cream-50); }
.mode-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mode { position: relative; padding: 26px 24px 24px; border-radius: var(--radius); background: #fff; box-shadow: 0 1px 0 rgba(23, 54, 38, .06), 0 10px 30px -18px rgba(17, 41, 29, .4);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); overflow: hidden; }
.mode::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--orange), var(--purple)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.mode:hover { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(23, 54, 38, .06), 0 24px 40px -20px rgba(17, 41, 29, .45); }
.mode:hover::after { transform: scaleX(1); }
.mode-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--cream-100); margin-bottom: 18px; transition: background .35s, transform .35s var(--ease); }
.mode:hover .mode-ico { background: var(--forest-800); transform: rotate(-6deg); }
.mode-ico svg { width: 30px; height: 30px; fill: none; stroke: var(--forest-700); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transition: stroke .35s; }
.mode-ico svg .f { fill: var(--forest-700); stroke: none; transition: fill .35s; }
.mode:hover .mode-ico svg { stroke: var(--orange-hi); }
.mode:hover .mode-ico svg .f { fill: var(--orange-hi); }
.mode h3 { margin-bottom: 10px; }
.mode p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* ---------- TV ---------- */
.tv { background: radial-gradient(90% 60% at 80% 20%, #1f4a35 0%, transparent 60%), var(--forest-900); color: var(--cream-50); padding: clamp(80px, 11vw, 140px) 0 clamp(60px, 8vw, 100px); overflow: hidden; }
.tv-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.tv h2 { margin-bottom: 22px; }
.tv-copy > p { color: rgba(253, 249, 239, .8); font-size: 1.08rem; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.tv-frame { position: relative; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); transform: perspective(1400px) rotateY(-8deg) rotateX(3deg); transition: transform .8s var(--ease); }
.tv-frame:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
.tv-frame img { width: 100%; aspect-ratio: 972 / 720; object-fit: cover; }
.live { position: absolute; right: 16px; top: 16px; z-index: 2; display: flex; align-items: center; gap: 7px; font-size: .75rem; font-weight: 800; letter-spacing: .14em; padding: 6px 11px; border-radius: 8px; background: rgba(200, 30, 30, .92); color: #fff; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.tv-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(48px, 7vw, 80px); }
.tv-strip figure { margin: 0; border-radius: 16px; overflow: hidden; position: relative; background: var(--forest-800); }
.tv-strip img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1s var(--ease); }
.tv-strip figure:hover img { transform: scale(1.06); }
.tv-strip figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; font-size: .88rem; font-weight: 600; background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent); }

/* ---------- Duo (lobby + builder) ---------- */
.duo-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.duo-in + .duo-in { margin-top: clamp(80px, 11vw, 130px); }
.duo-in.flip { grid-template-columns: .85fr 1.15fr; }
.duo-in.flip .duo-pic { order: 2; }
.duo h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom: 20px; }
.duo-copy p:not(.kicker) { color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- Gallery ---------- */
.gallery { background: var(--forest-950); color: var(--cream-50); overflow: hidden; }
.gallery .kicker { color: var(--orange-hi); }
.rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(16px, (100vw - 1200px) / 2); padding: 6px max(16px, (100vw - 1200px) / 2) 24px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.g-item { flex: none; width: min(560px, 82vw); scroll-snap-align: start; border: 0; padding: 0; background: none; text-align: left; color: var(--cream-50); }
.g-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; background: var(--forest-800); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .8); transition: transform .5s var(--ease), box-shadow .5s; }
.g-item img.wide { object-fit: contain; background: #0d0d0d; }
.g-item:hover img { transform: translateY(-6px); box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .9); }
.g-item > span { display: block; margin-top: 14px; font-weight: 600; color: rgba(253, 249, 239, .75); }
.rail-nav { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }

/* ---------- News ---------- */
.news-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.news-item { display: grid; grid-template-columns: 74px 1fr; gap: 20px; padding: 26px; border-radius: var(--radius); background: rgba(253, 249, 239, .92); box-shadow: 0 1px 0 rgba(23, 54, 38, .06), 0 10px 30px -18px rgba(17, 41, 29, .4); }
.news-item.feature { grid-column: 1 / -1; background: var(--forest-800); color: var(--cream-50); }
.news-item.feature p { color: rgba(253, 249, 239, .8); }
.news-date { text-align: center; padding: 10px 0 8px; border-radius: 14px; background: var(--cream-200); align-self: start; }
.news-item.feature .news-date { background: rgba(255, 255, 255, .1); }
.news-date b { display: block; font-family: var(--display); font-size: 2.1rem; font-weight: 900; line-height: 1; }
.news-date span { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.news-tag { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; background: var(--orange); color: #fff; margin-bottom: 10px; }
.news-tag.update { background: var(--green-600); }
.news-item h3 { font-size: 1.7rem; margin-bottom: 8px; }
.news-item.feature h3 { font-size: 2.1rem; }
.news-item p { margin: 0; color: var(--ink-soft); }
.news-more { text-align: center; margin-top: 32px; }
.js .news-item { animation: rise .7s var(--ease) both; }

/* ---------- Download ---------- */
.download { padding: clamp(90px, 12vw, 150px) 0; background:
  linear-gradient(180deg, rgba(11, 31, 21, .55), rgba(11, 31, 21, .82)), url(assets/img/tvspruce-l.webp) center / cover; }
.dl-card { max-width: 720px; margin-inline: auto; text-align: center; padding: clamp(36px, 6vw, 60px) clamp(22px, 5vw, 56px); border-radius: 28px; background: var(--cream-50); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .7); position: relative; overflow: hidden; isolation: isolate; }
.dl-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16; background: url(assets/contours.svg) 120px 40px / 700px; }
.dl-logo { margin: 0 auto 22px; border-radius: 24px; box-shadow: var(--shadow-lg); }
.dl-card h2 { margin-bottom: 10px; }
.dl-sub { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 28px; }
.dl-meta { margin: 16px 0 0; font-size: .92rem; color: var(--ink-soft); min-height: 1.6em; }
.dl-steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 12px; text-align: left; }
.dl-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--cream-100); }
.dl-steps b { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--cream-50); font-size: .85rem; }
.dl-all { margin: 22px 0 0; font-size: .95rem; }
.dl-all a { color: var(--orange-lo); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { background: var(--cream-50); }
.faq-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: #fff; box-shadow: 0 1px 0 rgba(23, 54, 38, .06), 0 8px 24px -18px rgba(17, 41, 29, .4); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2.5px solid var(--orange); border-bottom: 2.5px solid var(--orange); transform: rotate(45deg); transition: transform .3s var(--ease), margin .3s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.foot { background: var(--forest-950); color: rgba(253, 249, 239, .7); padding: 50px 0 40px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 30px; justify-content: space-between; }
.foot .brand { color: var(--cream-50); font-size: 1.35rem; }
.foot p { margin: 0; }
.foot .small { font-size: .85rem; }

/* ---------- Lightbox ---------- */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1600px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(6, 16, 11, .88); backdrop-filter: blur(6px); }
.lightbox img { max-height: 88vh; width: auto; border-radius: 14px; box-shadow: 0 40px 80px rgba(0, 0, 0, .6); }
.lightbox[open] img { animation: pop .4s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }
.lb-close { position: absolute; right: -12px; top: -12px; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .mode-grid .reveal:nth-child(4n+2), .js .tv-strip .reveal:nth-child(2) { transition-delay: .08s; }
.js .mode-grid .reveal:nth-child(4n+3), .js .tv-strip .reveal:nth-child(3) { transition-delay: .16s; }
.js .mode-grid .reveal:nth-child(4n+4), .js .tv-strip .reveal:nth-child(4) { transition-delay: .24s; }
.js .stats .reveal:nth-child(2) { transition-delay: .08s; } .js .stats .reveal:nth-child(3) { transition-delay: .16s; } .js .stats .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .mode-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-in { grid-template-columns: 1fr; padding-top: 110px; }
  .hero-cards { height: 440px; margin-top: -10px; }
  .hero-cards .om-card { width: 230px; margin: -170px 0 0 -115px; }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .links { position: fixed; inset: 72px 0 auto; flex-direction: column; gap: 0; padding: 10px 16px 18px; background: rgba(253, 249, 239, .97); backdrop-filter: blur(14px); box-shadow: 0 20px 30px -20px rgba(17, 41, 29, .5);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
  .nav.open .links { transform: none; opacity: 1; visibility: visible; }
  .links a { color: var(--ink); padding: 14px 10px; font-size: 1.05rem; border-radius: 10px; }
  .nav.open { background: rgba(253, 249, 239, .97); }
  .nav.open .brand { color: var(--ink); }
  .nav.open .burger i { background: var(--ink); }
  .nav.open .lang { background: rgba(23, 54, 38, .07); }
  .nav.open .lang-opt { color: var(--ink-soft); }
  html[lang="sv"] .nav.open .lang-opt[data-v="sv"], html[lang="en"] .nav.open .lang-opt[data-v="en"] { background: var(--ink); color: var(--cream-50); }
  .burger { display: block; }
  .nav-end .btn { display: none; }
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .leg, .leg:nth-child(odd of .leg) { grid-template-columns: 56px 1fr; gap: 22px 18px; align-items: start; }
  .leg .leg-text, .leg:nth-child(odd of .leg) .leg-text { grid-column: 2; grid-row: 1; }
  .leg .leg-pic, .leg:nth-child(odd of .leg) .leg-pic { grid-column: 2; grid-row: 2; order: 0; }
  .marker, .marker svg { width: 56px; height: 56px; }
  .marker span { right: -10px; top: -12px; font-size: 1.25rem; }
  .tv-in, .duo-in, .duo-in.flip, .faq-in { grid-template-columns: 1fr; }
  .duo-in.flip .duo-pic { order: 0; }
  .tv-frame { transform: none; }
  .tv-strip { grid-template-columns: repeat(2, 1fr); }
  .news-list { grid-template-columns: 1fr; }
  .faq-in { gap: 0; }
}
@media (max-width: 560px) {
  .hero-in { padding: 100px 0 70px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-cards { height: 360px; }
  .hero-cards .om-card { width: 196px; margin: -145px 0 0 -98px; }
  .c-top { left: 16px; top: 26px; } .c-top b { font-size: 2.3rem; } .c-name { font-size: 1.1rem; } .c-stats b { font-size: 1.35rem; } .c-stats small { font-size: .52rem; letter-spacing: .06em; } .c-tier { font-size: .55rem; bottom: 3%; }
  .c-left { --tx: -96px; --ty: 26px; --s: .82; } .c-right { --tx: 96px; --ty: 34px; --s: .8; }
  .mode-grid { grid-template-columns: 1fr; gap: 12px; }
  .mode { display: grid; grid-template-columns: 48px 1fr; gap: 2px 16px; padding: 20px; }
  .mode-ico { width: 48px; height: 48px; margin: 0; grid-row: span 2; }
  .mode h3 { margin: 4px 0 4px; font-size: 1.45rem; }
  .stat { padding: 18px 16px; }
  .news-item { grid-template-columns: 1fr; gap: 12px; padding: 22px; }
  .news-date { display: flex; gap: 8px; align-items: baseline; justify-self: start; padding: 6px 12px; }
  .news-date b { font-size: 1.4rem; }
  .btn-xl { width: 100%; padding-inline: 1em; }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .hero-copy > * { opacity: 1; transform: none; }
}
