/* Vaksala F15
   Gult = laget. Blått = hallgolvet, där övningarna ritas. Korall = västar och koner. */
:root {
  --gul: #FFD60A;
  --gul-djup: #E0B800;
  --svart: #000;
  --golv: #2A3CE0;
  --golv-ljus: #3A4CF0;
  --papper: #fff;
  --dis: #EEF0F7;
  --korall: #FF5A3C;
  --gra: #4B4F5C;
  --display: 'Anybody', 'Arial Black', 'Arial Narrow', sans-serif;
  --text: 'Familjen Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sarg: clamp(18px, 2.4vw, 32px);
  --ut: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
a, button, summary, label, input[type="range"] { touch-action: manipulation; }
body { margin: 0; font: 400 1.0625rem/1.5 var(--text); color: var(--svart); background: var(--papper); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--golv); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .home :focus-visible, .top :focus-visible { outline-color: var(--svart); }
.bank :focus-visible, .clock :focus-visible, .sheet-stage :focus-visible, .foot :focus-visible, .moment :focus-visible { outline-color: var(--gul); }
.m-svar :focus-visible { outline-color: var(--golv); }

.wrap { max-width: 1280px; margin-inline: auto; padding-left: max(clamp(16px, 4vw, 48px), env(safe-area-inset-left, 0px)); padding-right: max(clamp(16px, 4vw, 48px), env(safe-area-inset-right, 0px)); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--gul); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--svart); color: var(--gul); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

.title { font-family: var(--display); font-weight: 800; font-stretch: 118%; font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: .94; letter-spacing: -.01em; text-wrap: balance; }
.head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 6px 32px; margin-bottom: clamp(14px, 2vw, 24px); }
.head-note { font-weight: 600; font-size: 1.0625rem; }

/* knappar */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .6em 1.3em; border: 2px solid var(--svart); border-radius: 14px; background: var(--svart); color: var(--gul); font-weight: 700; text-decoration: none; transition: background .15s, color .15s, transform .15s var(--ut); }
@media (hover: hover) { .btn:hover { background: var(--golv); border-color: var(--golv); color: #fff; } }
.btn:active { transform: scale(.97); }
.btn-line { background: transparent; color: var(--svart); }
@media (hover: hover) { .btn-line:hover { background: var(--svart); border-color: var(--svart); color: var(--gul); } }
.btn-gul { background: var(--gul); border-color: var(--gul); color: var(--svart); }
@media (hover: hover) { .btn-gul:hover { background: #fff; border-color: #fff; color: var(--svart); } }
.btn-small { min-height: 40px; padding: .35em 1em; border-radius: 12px; }
.dlink { background: none; border: 0; padding: 0; text-align: left; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--gul-djup); }
@media (hover: hover) { .dlink:hover { text-decoration-color: var(--svart); } }

/* ---------- topp ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--gul); border-bottom: 2px solid var(--svart); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: 1.125rem; white-space: nowrap; }
/* De tre delarna står direkt efter lagnamnet, på samma plats på alla sidor. Länkarna inom sidan
   skjuts ut till höger, så att menyn inte flyttar sig när de är olika många. */
.nav { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: clamp(14px, 2.2vw, 30px); margin-left: clamp(8px, 2.2vw, 36px); }
.nav a { text-decoration: none; font-weight: 600; white-space: nowrap; padding: 6px 0; background: linear-gradient(var(--svart), var(--svart)) 0 100% / 0 2px no-repeat; transition: background-size .25s var(--ut); }
@media (hover: hover) { .nav a:hover { background-size: 100% 2px; } }
.nav a[aria-current="page"] { background-size: 100% 2px; }
.nav .nav-sub { font-weight: 500; }
.nav-skilje { width: 0; margin-left: auto; }        /* tar upp utrymmet mellan de två grupperna */
.nav .nav-admin { padding: 4px 14px; border: 2px solid var(--svart); border-radius: 999px; background: none; transition: background .15s, color .15s; }
@media (hover: hover) { .nav .nav-admin:hover { background: var(--svart); color: var(--gul); } }
/* Menyknappen: tre streck som blir ett kryss. Den syns bara när länkarna inte får plats på en rad. */
.meny-knapp { display: none; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -11px; border: 0; border-radius: 12px; background: none; }
.meny-knapp path { fill: none; stroke: var(--svart); stroke-width: 3; stroke-linecap: round; transform-box: view-box; transform-origin: center; transition: transform .2s var(--ut), opacity .15s; }
.top.open .mk-a { transform: rotate(45deg) translateY(6px); }
.top.open .mk-b { opacity: 0; }
.top.open .mk-c { transform: rotate(-45deg) translateY(-6px); }
@media (max-width: 1240px) {
  .meny-knapp { display: inline-flex; }
  .nav-skilje { width: auto; height: 2px; margin: 6px 0; background: var(--svart); opacity: .35; }
  .nav { margin-left: 0; display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100dvh - 62px); overflow-y: auto; padding-block: 4px 16px; padding-left: max(clamp(16px, 4vw, 48px), env(safe-area-inset-left, 0px)); padding-right: max(clamp(16px, 4vw, 48px), env(safe-area-inset-right, 0px)); background: var(--gul); border-block: 2px solid var(--svart); }
  .top.open .nav { display: flex; }
  .nav a { display: flex; align-items: center; min-height: 52px; padding: 0; font-size: 1.1875rem; background: none; border-top: 2px solid rgba(10, 10, 10, .14); }
  .nav a:first-child { border-top: 0; }
  .nav a[aria-current="page"] { padding-left: 14px; font-weight: 800; box-shadow: inset 5px 0 0 var(--svart); }   /* delen man står i */
  .nav .nav-sub { min-height: 46px; font-size: 1.0625rem; border-top: 0; }
  .nav .nav-admin { justify-content: center; margin-top: 10px; border: 2px solid var(--svart); border-radius: 14px; }
}

/* ---------- hero ---------- */
.hero { background: var(--gul); border-bottom: 2px solid var(--svart); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(18px, 3.5vw, 56px); align-items: center; padding-block: clamp(16px, 2.6vw, 36px) clamp(22px, 3.2vw, 44px); }
.mega { font-family: var(--display); text-transform: uppercase; line-height: .8; letter-spacing: -.012em; }
.mega:not(.go) { visibility: hidden; }
.mega-line { display: block; white-space: nowrap; font-size: var(--fs, 18vw); font-variation-settings: 'wdth' var(--w), 'wght' var(--g); }
.mega-line + .mega-line { margin-top: .04em; }
.mega.go .mega-line { animation: stretch 1.05s var(--ut) both; }
.mega.go .mega-line + .mega-line { animation-delay: .12s; }
@keyframes stretch { from { font-variation-settings: 'wdth' 50, 'wght' 500; opacity: 0; } }
.mega.hit .mega-line:last-child { animation: kick .6s cubic-bezier(.3, 1.7, .4, 1); }
@keyframes kick { 30% { font-variation-settings: 'wdth' 96, 'wght' 900; } }
.hero-lead { margin-top: clamp(10px, 1.4vw, 18px); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.hero-play { min-width: 0; }
.hero-rink { width: 100%; height: auto; transform: rotate(-2deg); cursor: crosshair; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; }
.h-edge { fill: var(--svart); }
.hero-rink .rk-floor { stroke: none; animation: tona .5s both; }
.h-sarg { fill: none; stroke: #fff; stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; animation: sarg 1.25s .15s cubic-bezier(.6, 0, .2, 1) forwards; }
.h-deco { opacity: 0; animation: tona .5s 1s forwards; }
.h-dyn { opacity: 0; animation: tona .4s 1.25s forwards; }
@keyframes sarg { to { stroke-dashoffset: 0; } }
@keyframes tona { from { opacity: 0; } to { opacity: 1; } }
.h-trail { fill: none; stroke: #fff; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.h-ring { fill: none; stroke: #fff; stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.h-ring.hit { animation: ring .7s ease-out; }
@keyframes ring { from { opacity: 1; transform: scale(.4); } to { opacity: 0; transform: scale(5); } }
.h-shout { font: 900 12px var(--display); font-stretch: 125%; fill: var(--gul); stroke: var(--svart); stroke-width: 2.4px; paint-order: stroke; text-anchor: middle; opacity: 0; transform-box: fill-box; transform-origin: center; pointer-events: none; }
.h-shout.hit { animation: shout 1.4s var(--ut); }
@keyframes shout { 0% { opacity: 0; transform: scale(.3) rotate(-8deg); } 18% { opacity: 1; transform: scale(1.15) rotate(-4deg); } 75% { opacity: 1; transform: scale(1) rotate(-4deg); } 100% { opacity: 0; transform: scale(1) translateY(-6px) rotate(-4deg); } }
.rk-goal.hit { animation: nat .7s; }
@keyframes nat { 20% { fill: var(--gul); } }

.board { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-top: 18px; }
.board-score { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 16px; background: var(--svart); color: #fff; border-radius: 14px; font-weight: 600; }
.board-score .seg { font-size: 1.9rem; }
.board-hint { font-weight: 600; transition: opacity .4s; }
.board-hint.seen { opacity: 0; }

/* sjusegment */
.seg { display: inline-flex; gap: .1em; height: 1em; transform: skewX(-6deg); }
.seg svg { height: 100%; width: auto; }
.seg polygon { fill: rgba(255, 214, 10, .14); transition: fill .08s; }
.seg polygon.on { fill: var(--gul); }
.seg-colon rect { fill: var(--gul); }
.seg.low polygon.on, .seg.low .seg-colon rect { fill: var(--korall); }

/* ---------- planskisser ---------- */
.rk { width: 100%; height: auto; }
.rk-floor { fill: var(--golv); stroke: #fff; stroke-width: 1.6; }
.rk-line { fill: none; stroke: #fff; stroke-width: .6; opacity: .7; }
.rk-dot { fill: #fff; opacity: .8; }
.rk-box { fill: rgba(255, 255, 255, .14); stroke: #fff; stroke-width: .5; }
.rk-goal { fill: rgba(255, 255, 255, .28); stroke: #fff; stroke-width: 1; }
.rk-zone { fill: rgba(255, 255, 255, .07); stroke: #fff; stroke-width: .5; stroke-dasharray: 2 2; }
.rk-cone { fill: var(--korall); stroke: var(--svart); stroke-width: .6; stroke-linejoin: round; }
.rk-text { font: 600 4.2px var(--text); fill: #fff; text-anchor: middle; opacity: .85; }
.rk-trail { fill: none; stroke-width: .8; stroke-dasharray: 1.4 2; stroke-linecap: round; opacity: .8; }
.rk-trail-y { stroke: var(--gul); }
.rk-trail-r { stroke: var(--korall); }
.rk-trail-g, .rk-trail-t { stroke: #fff; }
.rk-pass { stroke: #fff; stroke-width: .7; stroke-linecap: round; }
.rk-shot { stroke-width: 1.5; }
.rk-ball circle { fill: #fff; stroke: var(--svart); stroke-width: .5; }
.rk-ball-o circle { fill: #FF9D1C; }
.rk-mark { stroke-dasharray: 2.4 2; opacity: .85; }
.rk-ball .hole { fill: var(--svart); stroke: none; opacity: .6; }
.rk-cue { opacity: 0; transition: opacity .2s; }
.rk-cue rect { fill: var(--svart); }
.rk-cue text { font: 600 4.6px var(--text); fill: var(--gul); text-anchor: middle; }
.tok-body { stroke: var(--svart); stroke-width: .9; }
.tok-y .tok-body { fill: var(--gul); }
.tok-r .tok-body { fill: var(--korall); }
.tok-g .tok-body, .tok-w .tok-body { fill: #fff; }
.tok-k .tok-body { fill: #3ddc97; }                /* fjärde laget: grön */
.rk-trail-w { stroke: #fff; }
.tok-t .tok-body { fill: var(--svart); stroke: #fff; }
.tok-visor { fill: var(--svart); }
.tok-stick { fill: none; stroke: #fff; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.tok-t { font: 700 4.4px var(--text); fill: #fff; text-anchor: middle; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .9375rem; font-weight: 600; color: #fff; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg { display: inline-block; width: 28px; height: 0; }
.lg-run { border-top: 3px dashed var(--gul); }
.lg-pass { border-top: 2px solid #fff; }
.lg-shot { border-top: 5px solid #fff; }
.lg-vest { width: 14px; height: 14px; border-radius: 50%; background: var(--korall); border: 2px solid var(--svart); }

/* ---------- säsongen ---------- */
.season { padding-block: 0 clamp(32px, 4.5vw, 64px); overflow-x: clip; }   /* ligger direkt under passet, som redan har luft nedåt */
.parts { display: flex; gap: 10px; align-items: stretch; }
.part { flex: 4 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; text-align: left; background: var(--papper); border: 2px solid var(--svart); border-radius: 20px; transition: background .2s, color .2s, transform .2s var(--ut); }
@media (hover: hover) { button.part:hover { transform: translateY(-3px); } }
.part[aria-pressed="true"] { background: var(--svart); color: #fff; }
.part-top { display: flex; justify-content: space-between; gap: 8px; font-size: .9375rem; font-weight: 600; }
.part-weeks { white-space: nowrap; }
.part-name { font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(1.125rem, 1.75vw, 1.5rem); line-height: 1.05; margin-top: 6px; text-wrap: balance; }
.part[aria-pressed="true"] .part-name { color: var(--gul); }
.part-tema { display: flex; align-items: center; gap: 8px; font-size: .9375rem; margin-bottom: 8px; }
.nu { background: var(--korall); color: var(--svart); border-radius: 999px; padding: 0 9px; font-size: .8125rem; font-weight: 700; }
.part-lov { flex: 2.4 1 0; background: none; border-style: dashed; color: var(--gra); justify-content: flex-start; }
.part-lov .part-name { font-size: 1.125rem; margin-top: 0; }
.part-lucka { border-style: dotted; }
.parts-tom, .pass-tomt { max-width: 30em; font-size: 1.1875rem; font-weight: 600; }
.pass-tomt { margin-top: 14px; }
@media (min-width: 1021px) {                        /* en säsong med många delar: två rader i stället för trånga kort */
  .parts-manga { flex-wrap: wrap; }
  .parts-manga .part { flex: 1 1 21%; }
  .parts-manga .part-lov { flex: 1 1 14%; }
}
.part-datum { font-size: .9375rem; }
.part-lov .part-weeks { font-size: .9375rem; }
.part-lov .part-datum { margin-bottom: 14px; }
.ticks { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; margin-top: auto; }
.tick { position: relative; height: 9px; border: 2px solid currentColor; border-radius: 5px; }
.tick.done, .tick.now { background: currentColor; }
.tick.now::after { content: ''; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='13' fill='%23fff' stroke='%23000' stroke-width='2.6'/%3E%3Cg fill='%23000'%3E%3Ccircle cx='16' cy='9.5' r='2.1'/%3E%3Ccircle cx='9.6' cy='14.6' r='2.1'/%3E%3Ccircle cx='22.4' cy='14.6' r='2.1'/%3E%3Ccircle cx='12' cy='22' r='2.1'/%3E%3Ccircle cx='20' cy='22' r='2.1'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; opacity: 0; }
.parts.in .tick.now::after { opacity: 1; animation: rulla 1.3s cubic-bezier(.15, .7, .2, 1) both; }
@keyframes rulla { from { transform: translateX(-70vw) rotate(-900deg); opacity: 1; } to { transform: none; opacity: 1; } }

/* Passet står först i sidan och i koden. På bred skärm ligger blockets beskrivning till vänster om det. */
.today { padding-block: clamp(16px, 2.4vw, 32px) clamp(32px, 4.5vw, 64px); overflow-x: clip; }
.plan { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.plan-info { grid-column: 1; grid-row: 1; }
.plan-pass { grid-column: 2; grid-row: 1; }
.plan-kicker { font-weight: 600; }
.plan-name { font-family: var(--display); font-weight: 900; font-stretch: 122%; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: .92; letter-spacing: -.01em; margin-top: 6px; text-wrap: balance; }
.plan-mal { margin-top: 10px; max-width: 30em; }
.ord { display: inline-grid; gap: 2px; margin: 16px 0 4px; padding: 9px 18px 11px; background: var(--gul); border-radius: 16px; transform: rotate(-1.6deg); }
.ord span { font-size: .9375rem; font-weight: 600; }
.ord strong { font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.05; }
.plan-info h4 { margin: 16px 0 6px; font-size: 1.0625rem; font-weight: 700; }
.plan-mv { max-width: 30em; margin-bottom: 26px; }
.balls li { position: relative; padding: 5px 0 5px 30px; }
.balls li::before { content: ''; position: absolute; left: 0; top: .62em; width: 17px; height: 17px; border-radius: 50%; background: radial-gradient(circle at 50% 28%, #000 0 1.7px, transparent 2.2px), radial-gradient(circle at 26% 62%, #000 0 1.7px, transparent 2.2px), radial-gradient(circle at 74% 62%, #000 0 1.7px, transparent 2.2px), #fff; border: 2px solid var(--svart); }

.plan-pass { background: var(--dis); border-radius: var(--sarg); padding: clamp(14px, 1.8vw, 24px); }
.pass-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; }
.pass-head h3 { font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: 1.375rem; line-height: 1.1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 14px; }
.pass-head h3 span { font-family: var(--text); font-stretch: 100%; font-weight: 600; font-size: 1.0625rem; }
.pass-veckor { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.25em, 1fr)); gap: 0; margin-top: 10px; border: 2px solid var(--svart); border-radius: 16px; background: #fff; overflow: hidden; }
.pass-veckor button { display: grid; gap: 0; align-content: center; min-height: 44px; padding: 4px 10px 5px; border: 0; background: none; text-align: left; line-height: 1.2; box-shadow: 2px 0 0 var(--svart), 0 2px 0 var(--svart); }
.pass-veckor strong { display: flex; align-items: center; gap: 7px; font-weight: 700; white-space: nowrap; }
.pass-veckor span { font-size: .9375rem; color: var(--gra); white-space: nowrap; }
.pass-veckor button[aria-pressed="true"] { background: var(--svart); color: var(--gul); }
.pass-veckor button[aria-pressed="true"] span { color: #fff; }
.pass-bar { display: flex; gap: 3px; height: 8px; margin: 12px 0 2px; }
.v-kort { display: none; }
.pass-vy { flex: none; font-size: .9375rem; }
.kind-kort, .kort .kind-lang { display: none; }
.kort .kind-kort { display: inline; }
.pass-bar i { border-radius: 4px; background: var(--svart); }
.pass-bar .k-drill { background: var(--golv); }
.row { display: grid; grid-template-columns: 3.2ch minmax(0, 1fr) auto; gap: 4px 16px; padding: 12px 0; border-top: 2px solid var(--svart); align-items: start; }
.rows .row:first-child { border-top: 0; }
.row-at { font-family: var(--display); font-weight: 700; font-size: 1.25rem; font-variant-numeric: tabular-nums; line-height: 1.25; }
.row-main { display: grid; gap: 2px; justify-items: start; }
.row-kind { font-size: .9375rem; font-weight: 600; color: var(--gra); }
.row-main > strong, .row-main > .dlink { font-size: 1.1875rem; }
.row-note { color: var(--gra); max-width: 44em; }
.row-min { font-weight: 700; white-space: nowrap; line-height: 1.6; }
.pass-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pass-pick button { min-height: 40px; padding: 4px 16px; border: 2px solid var(--svart); border-radius: 999px; background: #fff; font-weight: 600; text-align: left; line-height: 1.2; overflow-wrap: anywhere; }
.pass-pick button[aria-pressed="true"] { background: var(--svart); color: var(--gul); }
.pass-pick .pick-dag { display: grid; gap: 0; padding: 4px 14px 5px; border-radius: 14px; }
.pick-dag strong { display: block; font-weight: 700; }
.pick-dag strong::first-letter { text-transform: uppercase; }
.pick-dag span { font-size: .9375rem; font-weight: 400; color: var(--gra); }
.pick-dag[aria-pressed="true"] span { color: #fff; }
.pick-dag.varit:not([aria-pressed="true"]) { border-style: dashed; }
.pass-egen { margin: 14px 0 2px; max-width: 52em; white-space: pre-line; }
.stations { counter-reset: st; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 10px; width: 100%; margin-top: 8px; }
.stations li { counter-increment: st; display: grid; gap: 4px; align-content: start; justify-items: start; background: #fff; border-radius: 14px; padding: 12px 14px 14px; }
.stations li::before { content: counter(st); font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: 1.5rem; line-height: 1; color: var(--golv); }
.stations span { font-size: .9375rem; color: var(--gra); }
.stations em { font-style: normal; font-size: .875rem; font-weight: 700; }
.pass-note { padding: 14px 0 6px; border-top: 2px solid var(--svart); font-size: .9375rem; color: var(--gra); max-width: 52em; }
.pass-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; padding-top: 12px; border-top: 2px solid var(--svart); }
.pass-actions .btn { min-height: 44px; padding: .4em 1.1em; }

/* Kort pass: en rad per moment. Tid, vad och minuter på samma rad; stationerna som en tät lista. */
.kort .row { gap: 0 12px; padding: 7px 0; align-items: baseline; border-top-width: 1px; }
.kort .rows .row:first-child { border-top: 0; }
.kort .row-at { font-size: 1.0625rem; line-height: 1.4; }
.kort .row-min { font-size: .9375rem; line-height: 1.5; }
.kort .row-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.kort .row-kind { font-size: .875rem; }
.kort .row-main > strong, .kort .row-main > .dlink { font-size: 1.0625rem; }
.kort .row-note, .kort .pass-note, .kort .stations span { display: none; }
.kort .stations { flex-basis: 100%; grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 2px; }
.kort .stations li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; padding: 2px 0; background: none; border-radius: 0; }
.kort .stations li::before { font-size: 1rem; min-width: 1ch; }
.kort .stations em { white-space: nowrap; color: var(--gra); }
.pass-delat { flex-basis: 100%; font-weight: 600; }
.pass-delat:empty { display: none; }
.dela-lank { flex: 1 1 100%; min-width: 0; min-height: 44px; padding: 0 12px; border: 2px solid var(--svart); border-radius: 12px; background: #fff; font: inherit; }

/* ---------- sidhuvud på spelarnas och ledarnas sidor ---------- */
/* En smal rad: rubriken, en mening och knappen till tränarvyn. */
.sidhuvud { background: var(--gul); border-bottom: 2px solid var(--svart); padding-block: 12px 14px; }
.sidhuvud .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 22px; }
.sidhuvud .title { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.sidhuvud-text { flex: 1 1 22em; max-width: 46em; }
.sidhuvud .btn { align-self: center; }

/* ---------- lagsidan ---------- */
/* Nästa match och nästa träning står bredvid rubriken på bred skärm, under den på smal. */
.nasta-rad { display: grid; gap: 10px; align-content: center; min-width: 0; }
.hero .nasta strong { font-size: clamp(1.1875rem, 2vw, 1.625rem); }
.hero .nasta em { font-size: 1rem; }
.nasta { display: grid; gap: 1px; padding: 9px 16px 10px; border: 2px solid var(--svart); border-radius: 18px; background: #fff; text-decoration: none; }
.nasta span { font-size: .9375rem; font-weight: 600; }
.nasta strong { font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: 1.1875rem; line-height: 1.15; }
.nasta em { font-size: .9375rem; }
.nasta em { font-style: normal; }
@media (hover: hover) { .nasta:hover { background: var(--svart); color: var(--gul); } }
.lag-del { padding-block: clamp(24px, 3.5vw, 48px) 0; }
.lag-del:last-of-type, .lag-del + .ingang { margin-top: 0; }
.match-lista { display: grid; border-top: 2px solid var(--svart); }
.match { display: grid; grid-template-columns: minmax(9.5em, auto) minmax(0, 1fr); gap: 2px 28px; align-items: baseline; padding: 10px 0; border-bottom: 2px solid var(--svart); }
.match.idag { background: var(--gul); margin-inline: -14px; padding-inline: 14px; border-radius: 14px; }
.match-nar { display: grid; gap: 1px; }
.match-nar strong { font-family: var(--display); font-weight: 800; font-size: 1.0625rem; line-height: 1.2; }
.match-nar span { font-weight: 700; font-variant-numeric: tabular-nums; }
.match-vad { display: grid; gap: 2px; min-width: 0; }
.match-vad { font-size: .9375rem; }
.match-vad strong { font-size: 1.0625rem; overflow-wrap: anywhere; }
.match-not { color: var(--gra); white-space: pre-line; }
.match-tom { padding: 16px 0; font-weight: 600; border-bottom: 2px solid var(--svart); }
.kal-kalla { margin-top: 18px; color: var(--gra); }
.kal-kalla a { color: var(--svart); font-weight: 600; text-underline-offset: 4px; }
.lag-text + div { margin-top: 12px; }
.lag-text:empty + div { margin-top: 0; }
.spelade { margin-top: 18px; }
.spelade summary { display: inline-block; min-height: 40px; padding: 8px 0; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.spelade .match-lista { margin-top: 8px; }
#lagSpeladeBox .match { opacity: .75; }
.lag-text { display: grid; gap: 8px; max-width: 44em; }
.lag-stor { font-size: clamp(1.1875rem, 2vw, 1.5rem); font-weight: 600; white-space: pre-line; }
.info-rutor { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.info-ruta { padding: 18px 20px 20px; border-radius: 20px; background: var(--dis); }
.info-ruta h3 { font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: 1.3125rem; line-height: 1.15; margin-bottom: 8px; }
.info-ruta p { white-space: pre-line; overflow-wrap: anywhere; }
.ingang { padding-block: clamp(24px, 3.5vw, 48px) clamp(32px, 4.5vw, 64px); }
.ingang-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.ingang-kort { display: grid; gap: 10px; align-content: start; padding: clamp(20px, 3vw, 36px); border: 2px solid var(--svart); border-radius: var(--sarg); text-decoration: none; font-size: 1.125rem; transition: transform .2s var(--ut); }
.ingang-spelare { background: var(--svart); color: #fff; }
.ingang-spelare .ingang-rubrik { color: var(--gul); }
.ingang-ledare { background: var(--golv); color: #fff; }
.ingang-rubrik { font-family: var(--display); font-weight: 900; font-stretch: 118%; font-size: clamp(1.75rem, 3.4vw, 3rem); line-height: 1; }
.ingang-ga { margin-top: 6px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
@media (hover: hover) { .ingang-kort:hover { transform: translateY(-4px); } }
.ingang :focus-visible { outline-color: var(--korall); }
@media (max-width: 640px) {
  .ingang-in { grid-template-columns: minmax(0, 1fr); }
  .match { grid-template-columns: minmax(0, 1fr); }
  .match-nar { grid-template-columns: auto auto; justify-content: start; gap: 0 12px; align-items: baseline; }
}

/* ---------- spelmoment: "Vad gör du?" ---------- */
.moment { background: var(--svart); color: #fff; padding-block: clamp(24px, 3.5vw, 48px) clamp(32px, 4.5vw, 64px); }
.moment .title { color: var(--gul); }
.moment-lead { max-width: 52em; margin: -4px 0 clamp(14px, 2vw, 22px); }
.moment-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto 1fr; gap: 18px clamp(24px, 4vw, 56px); align-items: start; }
.m-plan { grid-column: 1; grid-row: 1 / span 2; min-width: 0; }
.m-topp { grid-column: 2; grid-row: 1; min-width: 0; }
.m-botten { grid-column: 2; grid-row: 2; min-width: 0; }
.m-rink .rk { display: block; }
.tok-du { fill: none; stroke: #fff; stroke-width: 1.3; stroke-dasharray: 2.4 1.7; }
.m-legend { margin-top: 12px; }
.lg-du, .lg-lag { width: 14px; height: 14px; border-radius: 50%; background: var(--gul); }
.lg-du { margin: 3px; outline: 2px dashed #fff; outline-offset: 2px; }
.lg-mv { width: 9px; height: 16px; border-radius: 5px; background: #fff; }
.m-block { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: clamp(12px, 2vw, 20px); padding: 10px 14px; border: 2px solid rgba(255, 255, 255, .4); border-radius: 16px; }
.m-block span { flex: 1 1 18em; }
.m-block strong { color: var(--gul); }
.m-nr button.iblock { border-color: var(--gul); }
.m-nr button.iblock::after { content: 'Blocket'; margin-left: 2px; padding: 0 7px; border-radius: 999px; background: var(--gul); color: var(--svart); font-size: .75rem; font-weight: 700; }
.m-nr button.iblock[aria-current="true"]::after { background: var(--svart); color: var(--gul); }

/* Storbild */
.stor { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--svart); color: #fff; overflow: auto; }
.stor::backdrop { background: var(--svart); }
.stor-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 56px); align-items: center; min-height: 100%; padding: clamp(14px, 3vh, 40px) clamp(14px, 3vw, 56px); }
.stor-plan .rk { display: block; width: 100%; height: auto; max-height: 90dvh; }
.stor-text { display: grid; gap: clamp(8px, 1.4vh, 16px); min-width: 0; }
.stor-namn { font-family: var(--display); font-weight: 900; font-stretch: 118%; font-size: clamp(1.75rem, 3.6vw, 3.75rem); line-height: 1; text-wrap: balance; }
.stor-lage { font-size: clamp(1.0625rem, 1.5vw, 1.625rem); max-width: 30em; }
.stor-fraga { font-family: var(--display); font-weight: 800; font-size: clamp(1.25rem, 2vw, 2.125rem); color: var(--gul); }
.stor-val { display: grid; gap: 8px; }
.stor-kort { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 8px; }
.stor-rosta { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; min-height: 60px; padding: 10px 16px 10px 12px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 16px; background: none; color: #fff; text-align: left; font-weight: 600; font-size: clamp(1rem, 1.35vw, 1.5rem); line-height: 1.25; }
.stor-rosta b { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: #fff; color: var(--svart); font-family: var(--display); font-weight: 900; }
.stor-kort.leder .stor-rosta { border-color: var(--gul); }
.stor-kort.spelat .stor-rosta { background: rgba(255, 214, 10, .16); border-color: var(--gul); }
.stor-antal { min-width: 2.2em; text-align: center; font-family: var(--display); font-weight: 900; font-size: clamp(1.5rem, 2.4vw, 2.75rem); color: var(--gul); font-variant-numeric: tabular-nums; }
.stor-liten { min-width: 44px; min-height: 44px; padding: 0 12px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 12px; background: none; color: #fff; font-weight: 700; font-size: 1.0625rem; }
.stor-liten:disabled { opacity: .3; }
.stor-hjalp { opacity: .85; }
.stor-svar { padding: 14px 18px 16px; border-radius: 18px; background: #fff; color: var(--svart); animation: byt .22s var(--ut); }
.stor-varfor { margin-top: 8px; font-size: clamp(1.0625rem, 1.45vw, 1.5rem); }
.stor-prata { margin-top: 10px; padding-top: 10px; border-top: 2px solid var(--svart); font-size: clamp(1rem, 1.25vw, 1.3125rem); }
.stor-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.stor :focus-visible { outline-color: var(--gul); }
.stor-svar :focus-visible { outline-color: var(--golv); }
@media (max-width: 860px) {
  .stor-in { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .stor-kort { grid-template-columns: minmax(0, 1fr) auto auto; }
  .stor-spela { grid-column: 1 / -1; justify-self: start; }
}
.m-fas { font-weight: 600; color: var(--gul); }
.m-namn { margin-top: 4px; font-family: var(--display); font-weight: 900; font-stretch: 118%; font-size: clamp(1.75rem, 3.2vw, 2.75rem); line-height: 1; text-wrap: balance; }
.m-lage { margin-top: 12px; max-width: 34em; font-size: 1.125rem; }
.m-fraga { font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: 1.375rem; line-height: 1.15; }
.m-val { display: grid; gap: 10px; margin-top: 12px; }
.m-knapp { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; align-items: center; width: 100%; min-height: 58px; padding: 10px 16px 10px 12px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 16px; background: none; color: #fff; text-align: left; font-weight: 600; line-height: 1.3; }
.m-knapp b { grid-row: 1 / span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--svart); font-family: var(--display); font-weight: 900; }
.m-knapp em { grid-column: 2; font-style: normal; font-size: .9375rem; font-weight: 700; }
.m-knapp em.m-bra { color: var(--gul); }
.m-knapp em.m-svart { color: var(--korall); }
.m-knapp[aria-pressed="true"] { border-color: var(--gul); background: rgba(255, 214, 10, .14); }
.m-knapp[aria-pressed="true"] b { background: var(--gul); }
@media (hover: hover) { .m-knapp:hover { border-color: #fff; } }
.m-svar { margin-top: 18px; padding: 16px 18px 18px; border-radius: 18px; background: #fff; color: var(--svart); animation: byt .22s var(--ut); }
.m-betyg { display: inline-block; padding: 2px 14px; border-radius: 999px; font-family: var(--display); font-weight: 800; font-size: 1.125rem; }
.m-betyg.m-bra { background: var(--gul); }
.m-betyg.m-ok { background: var(--dis); }
.m-betyg.m-svart { background: var(--korall); }
.m-varfor { margin-top: 10px; font-size: 1.125rem; }
.m-mer { margin-top: 8px; font-weight: 600; }
.m-prata { margin-top: 14px; padding-top: 12px; border-top: 2px solid var(--svart); }
.m-prata h4 { font-size: 1rem; font-weight: 700; }
.m-ovn { margin-top: 10px; }
.m-ovn span { font-weight: 700; }
.m-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn-vitlinje { background: transparent; border-color: #fff; color: #fff; }
@media (hover: hover) { .btn-vitlinje:hover { background: #fff; border-color: #fff; color: var(--svart); } }
.m-alla { margin-top: clamp(18px, 2.6vw, 32px); border-top: 2px solid rgba(255, 255, 255, .3); }
.m-alla summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 0; cursor: pointer; list-style: none; font-weight: 700; }
.m-lista { display: grid; gap: 14px; padding: 4px 0 6px; }
.m-grupp h4 { font-size: 1.0625rem; font-weight: 700; }
.m-grupp h4 span { margin-left: 8px; font-weight: 400; opacity: .85; }
.m-nr { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.m-nr button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 14px 4px 6px; border: 2px solid rgba(255, 255, 255, .45); border-radius: 999px; background: none; color: #fff; font-weight: 600; text-align: left; line-height: 1.2; }
.m-nr b { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--svart); font-family: var(--display); font-weight: 900; font-size: .875rem; }
.m-nr button.klar b { background: var(--gul); }
.m-nr button[aria-current="true"] { border-color: var(--gul); background: var(--gul); color: var(--svart); }
.m-nr button[aria-current="true"] b { background: var(--svart); color: var(--gul); }
@media (hover: hover) { .m-nr button:hover { border-color: #fff; } }

/* ---------- övningar ---------- */
.bank { background: var(--golv); color: #fff; padding-block: clamp(28px, 4vw, 56px) clamp(32px, 4.5vw, 64px); }
.filters { display: grid; gap: 14px; margin-bottom: clamp(20px, 3vw, 36px); }
.search { display: flex; align-items: center; gap: 10px; max-width: 460px; padding: 0 16px; background: #fff; color: var(--svart); border-radius: 14px; border: 2px solid #fff; }
.search:focus-within { border-color: var(--gul); box-shadow: 0 0 0 3px var(--gul); }
.search input { flex: 1; min-width: 0; height: 48px; border: 0; background: none; outline: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 999px; background: none; color: #fff; font-weight: 600; transition: background .15s, border-color .15s, color .15s; }
@media (hover: hover) { .chip:hover { border-color: #fff; } }
.chip[aria-pressed="true"] { background: var(--gul); border-color: var(--gul); color: var(--svart); }
.chip svg { fill: none; stroke: currentColor; }
.chip-fav[aria-pressed="true"] svg { fill: currentColor; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: clamp(28px, 3.4vw, 44px) clamp(18px, 2.4vw, 30px); }
.drill { position: relative; cursor: pointer; }
.drill-rink { display: block; transition: transform .3s var(--ut); }
@media (hover: hover) { .drill:hover .drill-rink { transform: translateY(-4px) rotate(-.6deg); } }
@media (hover: hover) { .drill:hover .rk-floor { fill: var(--golv-ljus); } }
.drill-text { margin-top: 12px; padding-right: 8px; }
.drill-text h3 { font-size: inherit; }
.drill-open { background: none; border: 0; padding: 0; color: inherit; text-align: left; font-family: var(--display); font-weight: 800; font-stretch: 105%; font-size: 1.3125rem; line-height: 1.12; overflow-wrap: anywhere; hyphens: auto; }
.drill-text p { margin-top: 3px; opacity: .85; }
.fav { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .34); color: #fff; }
.fav svg { fill: none; stroke: currentColor; }
.fav[aria-pressed="true"] svg { fill: var(--gul); stroke: var(--gul); }
.fav.pop svg { animation: pop .4s cubic-bezier(.3, 1.8, .4, 1); }
@keyframes pop { 40% { transform: scale(1.45) rotate(-12deg); } }
.empty { display: grid; gap: 16px; justify-items: start; padding: 28px 0; font-size: 1.25rem; font-weight: 600; }
.legend-light { margin-top: clamp(28px, 4vw, 48px); }

/* ---------- träna hemma ---------- */
.home { background: var(--gul); padding-block: clamp(28px, 4vw, 56px) clamp(32px, 4.5vw, 64px); border-block: 2px solid var(--svart); }
.home-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.home-lead { margin-top: 10px; max-width: 30em; }
.tally { display: grid; gap: 6px; margin-top: 14px; font-weight: 700; }
.tally-balls svg { width: 26px; height: 26px; }
.tally-balls { display: flex; gap: 6px; }
.tally-balls svg { opacity: .22; }
.tally-balls svg.on { opacity: 1; animation: studs .45s cubic-bezier(.3, 1.7, .4, 1); }
@keyframes studs { from { transform: translateY(-14px) scale(.7); } }
.todo li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2px 20px; padding: 9px 0; border-top: 2px solid var(--svart); }
.todo li:last-child { border-bottom: 2px solid var(--svart); }
.check { display: flex; align-items: center; gap: 16px; cursor: pointer; flex: 1 1 280px; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border: 2.5px solid var(--svart); border-radius: 11px; background: #fff; transition: background .15s; }
.box svg { width: 24px; height: 24px; fill: none; stroke: var(--gul); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .28s var(--ut); }
.check input:checked + .box { background: var(--svart); }
.check input:checked + .box svg { stroke-dashoffset: 0; }
.check input:focus-visible + .box { outline: 3px solid var(--svart); outline-offset: 3px; }
.check-text { display: grid; }
.check-text { font-size: .9375rem; }
.check-text strong { font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: 1.0625rem; line-height: 1.2; }
.check input:checked ~ .check-text { opacity: .6; }
.check input:checked ~ .check-text strong { text-decoration: line-through; text-decoration-thickness: 2px; }

/* ---------- tips ---------- */
.tips { padding-block: clamp(28px, 4vw, 56px) clamp(32px, 4.5vw, 64px); }
.tips .title { max-width: 14em; margin-bottom: clamp(24px, 3.5vw, 44px); }
.tip-list { columns: 2 340px; column-gap: clamp(28px, 5vw, 72px); }
.tip { break-inside: avoid; border-top: 2px solid var(--svart); }
.tip summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 0; cursor: pointer; list-style: none; font-family: var(--display); font-weight: 800; font-stretch: 108%; font-size: 1.0625rem; line-height: 1.2; }
.tip summary::-webkit-details-marker { display: none; }
.tip summary::after, .plan-mer summary::after, .m-alla summary::after { content: '+'; flex: none; font-family: var(--text); font-weight: 700; font-size: 1.375rem; line-height: 1; }
.tip[open] summary::after, .plan-mer[open] summary::after, .m-alla[open] summary::after { content: '–'; }
.tip p { padding: 0 0 12px; max-width: 40em; }
.plan-mer { margin-top: 12px; border-top: 2px solid var(--svart); }
.plan-mer summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 6px 0; cursor: pointer; list-style: none; font-weight: 700; }
.plan-mer summary::-webkit-details-marker, .m-alla summary::-webkit-details-marker { display: none; }
.plan-mer .ord { margin-top: 6px; }
.sources { margin-top: 28px; color: var(--gra); font-size: .9375rem; max-width: 70em; }

.foot { background: var(--svart); color: #fff; padding-block: 28px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.foot-name { font-family: var(--display); font-weight: 900; font-stretch: 125%; color: var(--gul); }
.foot-nav { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 8px; font-weight: 600; }
.foot-nav a { text-underline-offset: 4px; }

/* ---------- övningsvy ---------- */
dialog::backdrop { background: rgba(0, 0, 0, .62); }
.sheet { width: min(1160px, calc(100vw - 32px)); max-width: none; height: min(880px, calc(100dvh - 32px)); max-height: none; padding: 0; border: 2px solid var(--svart); border-radius: 28px; background: #fff; color: var(--svart); overflow: hidden; }
.sheet-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 100%; }
.sheet-stage { display: flex; flex-direction: column; justify-content: center; gap: 16px; min-height: 0; padding: clamp(14px, 2.2vw, 28px); background: var(--golv); color: #fff; }
.sheet-stage { justify-content: safe center; overflow-y: auto; }
.stage-rink .rk { display: block; width: auto; max-width: 100%; max-height: max(180px, calc(100dvh - 300px)); margin-inline: auto; }
.head-side { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.ai-note { margin: -8px 0 22px; max-width: 46em; opacity: .85; }
.video, .egen-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 16px; }
.video-frame { flex: 1 1 100%; aspect-ratio: 16 / 9; max-width: 100%; background: var(--svart); border-radius: 14px; overflow: hidden; }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.stage-empty { display: grid; place-items: center; aspect-ratio: 16 / 10; max-width: 100%; margin: 0; padding: 20px; border: 2px dashed rgba(255, 255, 255, .6); border-radius: 22px; text-align: center; font-weight: 600; }
.field { display: block; margin: 20px 0 8px; font-weight: 700; }
.field-text { display: block; width: 100%; min-height: 9em; padding: 12px 14px; border: 2px solid var(--svart); border-radius: 14px; background: #fff; color: var(--svart); font: inherit; line-height: 1.45; resize: vertical; }
.field-text:disabled { opacity: .6; }
.field-kod { min-height: 0; max-width: 16em; }
.skapa-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.skapa-status { min-height: 1.5em; margin-top: 12px; font-weight: 600; }
.steps-plain { margin-inline: 0; gap: 8px; }
.steps-plain li { display: grid; grid-template-columns: 2ch 1fr; gap: 12px; overflow-wrap: anywhere; }
.steps-plain li::before { content: counter(steg); font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: 1.25rem; line-height: 1.25; }
.btn:disabled { opacity: .5; cursor: default; }
.utfall { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-utfall { min-height: 38px; padding: 4px 14px 4px 6px; gap: 8px; text-align: left; line-height: 1.2; }
.chip-utfall b { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--golv); font-family: var(--display); font-weight: 900; }
.chip-utfall[aria-pressed="true"] b { background: var(--svart); color: var(--gul); }
.sheet-text { max-width: 44em; overflow-wrap: anywhere; }
.transport { display: flex; align-items: center; gap: 12px; }
.tbtn { min-height: 44px; padding: 0 16px; border: 2px solid #fff; border-radius: 12px; background: none; color: #fff; font-weight: 700; white-space: nowrap; }
#tPlay { min-width: 5.4em; background: #fff; color: var(--svart); }
.tbtn[aria-pressed="true"] { background: var(--gul); border-color: var(--gul); color: var(--svart); }
.transport input { flex: 1; min-width: 0; height: 44px; accent-color: var(--gul); }
.sheet-body { min-width: 0; min-height: 0; padding: clamp(18px, 2.4vw, 30px) clamp(18px, 2.4vw, 30px) 40px; overflow-y: auto; overscroll-behavior: contain; }
.sheet-bar { display: flex; align-items: center; gap: 10px; }
.sheet-typ { flex: 1; font-weight: 600; color: var(--gra); }
.fav-ink { position: static; width: auto; height: 40px; padding: 0 12px 0 8px; display: inline-flex; gap: 6px; background: none; color: var(--svart); font-weight: 600; border-radius: 12px; }
.fav-ink[aria-pressed="true"] svg { fill: var(--gul-djup); stroke: var(--svart); }
.sheet-name { font-family: var(--display); font-weight: 900; font-stretch: 100%; font-size: clamp(1.625rem, 2.5vw, 2.25rem); line-height: 1.02; margin-top: 12px; overflow-wrap: anywhere; hyphens: auto; }
.steps button, .balls li, .sheet-intro, .facts dd { overflow-wrap: anywhere; }
.sheet-intro { margin-top: 12px; font-size: 1.1875rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin-top: 20px; padding: 16px 0; border-block: 2px solid var(--svart); }
.facts dt { font-size: .9375rem; font-weight: 600; color: var(--gra); }
.facts dd { font-weight: 600; }
.sheet-body h3 { margin: 24px 0 8px; font-size: 1.0625rem; font-weight: 700; }
.steps { counter-reset: steg; display: grid; gap: 4px; margin-inline: -10px; }
.steps li { counter-increment: steg; }
.steps button { display: grid; grid-template-columns: 2ch 1fr; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 12px; background: none; text-align: left; transition: background .2s; }
.steps button::before { content: counter(steg); font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: 1.25rem; line-height: 1.25; }
@media (hover: hover) { .steps button:hover { background: var(--dis); } }
.steps li.on button { background: var(--gul); }
.levels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.sheet-src { margin-top: 22px; font-size: .9375rem; color: var(--gra); }

/* ---------- matchklocka ---------- */
.clock { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--svart); color: #fff; }
.clock-in { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 16px; height: 100%; padding: clamp(14px, 3vw, 36px); }
.clock-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; }
.clock-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: center; }
.clock-main:has(.clock-rink[hidden]) { grid-template-columns: minmax(0, 1fr); }
.clock-kind { font-size: clamp(1.0625rem, 2vw, 1.5rem); font-weight: 600; color: var(--gul); }
.clock-kind.alert { display: inline-block; background: var(--korall); color: var(--svart); padding: 2px 14px; border-radius: 999px; animation: blink .5s 4 alternate; }
@keyframes blink { to { opacity: .35; } }
.seg-big { font-size: clamp(5rem, 15vw, 12.5rem); margin: .12em 0 .16em .06em; }
.clock-title { font-family: var(--display); font-weight: 900; font-stretch: 105%; font-size: clamp(1.625rem, 3.6vw, 3.25rem); line-height: 1.02; overflow-wrap: anywhere; hyphens: auto; }
.clock-time { min-width: 0; }
.stations .dlink, .row-main > .dlink, .plan-name, .part-name { overflow-wrap: anywhere; hyphens: auto; }
.clock-link { background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .12em; text-decoration-color: var(--golv-ljus); }
.clock-note { margin-top: 14px; max-width: 36em; font-size: clamp(1.0625rem, 1.6vw, 1.3125rem); }
.clock-next { margin-top: 14px; color: rgba(255, 255, 255, .72); font-weight: 600; }
.clock-bar { display: flex; gap: 4px; height: 14px; }
.clock-bar i { position: relative; overflow: hidden; border-radius: 5px; background: rgba(255, 255, 255, .2); }
.clock-bar .past { background: var(--gul); }
.clock-bar b { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--gul); }
.clock-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.cbtn { min-height: 48px; padding: 0 18px; border: 2px solid rgba(255, 255, 255, .55); border-radius: 14px; background: none; color: #fff; font-weight: 700; }
@media (hover: hover) { .cbtn:hover { border-color: #fff; } }
.cbtn-main { min-width: 7.5em; background: var(--gul); border-color: var(--gul); color: var(--svart); }
.clock-left { margin-left: auto; font-weight: 600; }

/* ---------- övergångar ---------- */
/* Lätta övergångar i stället för vyövergångar: en ruta som öppnas tonar in, och passet tonar in när man byter
   vecka eller träning. Ingenting fotograferas eller flyttas, så det flimrar inte och går lika fort i mobilen. */
.sheet[open], .clock[open], .stor[open] { animation: oppna .2s var(--ut); }
.sheet[open]::backdrop, .clock[open]::backdrop { animation: tona .2s ease-out; }
@keyframes oppna { from { opacity: 0; transform: translateY(12px); } }
.plan-pass.byt > :not(.pass-head):not(.pass-veckor):not(.pass-pick) { animation: byt .22s var(--ut); }
@keyframes byt { from { opacity: 0; transform: translateY(6px); } }

/* ---------- smalare skärmar ---------- */
@media (max-width: 1020px) {
  .parts { flex-wrap: wrap; }
  .part { flex: 1 1 30%; }
  .part-lov { flex: 1 1 30%; }
}
@media (max-width: 860px) {
  .hero-in, .plan, .home-in { grid-template-columns: minmax(0, 1fr); }
  .plan-info, .plan-pass { grid-column: auto; grid-row: auto; }
  .mega { max-width: 22rem; }                        /* rubriken fyller annars hela skärmens bredd */
  /* När rubriken och planen inte får plats bredvid varandra kommer passet direkt under menyn,
     och den gula delen flyttar ner under säsongen. */
  .moment-in { grid-template-columns: minmax(0, 1fr); }
  .m-plan, .m-topp, .m-botten { grid-column: auto; grid-row: auto; }
  .hero-rink { transform: rotate(-1.2deg); }
  .sheet { width: 100vw; height: 100dvh; max-height: none; border: 0; border-radius: 0; }
  .sheet-in { display: block; height: 100dvh; overflow-y: auto; }
  .sheet-stage { position: sticky; top: 0; z-index: 2; padding: 10px 12px 12px; gap: 10px; }
  .sheet-stage .legend { display: none; }
  .sheet-body { overflow: visible; }
  .clock-main { grid-template-columns: minmax(0, 1fr); align-content: center; }
  .clock-rink { max-width: 520px; }
  .clock-in { overflow-y: auto; }
}
@media (max-width: 640px) {
  .mega { max-width: 13.5rem; }
  .today .head { margin-bottom: 16px; }
  .today .title { font-size: 2rem; }
  .head-note { font-size: 1.0625rem; }
  .plan-pass { margin-inline: -6px; padding: 12px 12px 14px; }
  .pass-head h3 { font-size: 1.25rem; gap: 0 10px; }
  .pass-head h3 span { font-size: .9375rem; }
  .today .title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* kortet har sin egen rubrik */
  .today .head-note { font-size: .9375rem; font-weight: 500; }
  .pass-veckor { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .pass-veckor button { padding: 3px 6px 4px; min-height: 42px; }
  .pass-veckor strong { gap: 4px; font-size: .9375rem; }
  .pass-veckor span { font-size: .75rem; }
  .pass-veckor .nu { padding: 0 5px; font-size: .6875rem; }
  .v-ord { display: none; }
  .v-kort { display: inline; }
  .pick-dag strong { font-size: .9375rem; }
  .pick-dag span { font-size: .8125rem; }
  .kort .row { grid-template-columns: 3.2ch minmax(0, 1fr) auto; }
  .kort .row-min { grid-column: 3; grid-row: 1; }
  .kort .row-main { grid-column: 2; grid-row: 1; }
  .hero-lead, .ingang { display: none; }
  .head-side { gap: 6px 10px; }
  .part { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; padding: 8px 14px 9px; border-radius: 14px; }
  .part .ticks { display: none; }
  .part-name { flex-basis: 100%; order: -1; margin-top: 0; font-size: 1.0625rem; }
  .part-top { gap: 10px; }
  .part-top, .part-datum, .part-tema { font-size: .875rem; margin: 0; }
  .part-lov .part-name { font-size: 1rem; }
  .parts { gap: 6px; }
  .box { width: 32px; height: 32px; }
  .check { gap: 12px; }
  .sidhuvud { padding-block: 8px 10px; }
  .sidhuvud-text { display: none; }
  .sidhuvud .wrap { align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 10px; }
  .sidhuvud .btn { min-height: 38px; padding: .3em .9em; font-size: .9375rem; white-space: nowrap; }
  .today { padding-top: 10px; }
  .today .head { margin: 0; }
  .today .head-note { display: none; }               /* veckan och träningarna står i kortet */
  .pass-head { flex-wrap: nowrap; align-items: flex-start; gap: 10px; }
  .pass-vy { font-size: .875rem; line-height: 1.9; }
  .kort .stations .dlink { font-size: 1rem; }
  .moment-lead { display: none; }
  .moment .head { margin-bottom: 10px; }
  .m-namn { font-size: 1.5rem; }
  .m-lage { margin-top: 8px; font-size: 1rem; }
  .match { padding: 8px 0; }
  .pass-actions .btn { flex: 1 1 auto; }
  .parts { flex-direction: column; flex-wrap: nowrap; }
  .part, .part-lov { flex: none; }
  .stations { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: 3.2ch minmax(0, 1fr); }
  .row-min { grid-column: 2; grid-row: 1; justify-self: end; }
  .row-main { grid-column: 1 / -1; }
  .row-at { grid-row: 1; }
  .levels, .facts { grid-template-columns: minmax(0, 1fr); }
  .clock-left { margin-left: 0; width: 100%; }
  .cbtn { flex: 1 1 auto; padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .h-sarg { stroke-dashoffset: 0; }
  .h-deco, .h-dyn { opacity: 1; }
}

@media print {
  .top, .hero, .sidhuvud, .head, .season, .moment, .bank, .home, .tips, .foot, .skip, .pass-actions, .pass-pick, .pass-veckor, [data-showblock], dialog { display: none !important; }
  body { font-size: 10.5pt; }
  .today { padding: 0; }
  .plan { grid-template-columns: 1fr 1.5fr; gap: 24px; margin: 0; }
  .plan-pass { background: none; padding: 0; }
  .plan-name { font-size: 26pt; }
  .stations li { border: 1px solid #000; }
  .ord, .pass-bar i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
