:root {
    --bg: #0b0e15;
    --bg-2: #0f131c;
    --surface: #141924;
    --surface-2: #1b2130;
    --border: #252d3e;
    --border-strong: #34405a;
    --text: #edf0f6;
    --muted: #8f99ad;
    --red: #e4002b;
    --red-600: #c10024;
    --red-glow: rgba(228, 0, 43, .35);
    --gold: #d4af5a;
    --navy: #13284d;
    --green: #22c55e;
    --amber: #f5a524;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --display: 'Oswald', 'Inter', system-ui, sans-serif;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(228, 0, 43, .14), transparent 60%),
        radial-gradient(900px 500px at -10% 10%, rgba(19, 40, 77, .55), transparent 60%),
        var(--bg);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }
code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.main { flex: 1; padding-top: 24px; padding-bottom: 48px; }

/* ---------- Topbar ---------- */
.topbar {
    position: sticky; top: 0; z-index: 30;
    background: rgba(11, 14, 21, .78);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.brand { min-width: 0; }
.brand span { overflow: hidden; text-overflow: ellipsis; }
.logo { width: 44px; height: 44px; filter: drop-shadow(0 4px 12px var(--red-glow)); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .92rem; transition: background .15s, color .15s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--text); background: var(--surface-2); }
.nav-user .avatar { width: 28px; height: 28px; margin: 0; border: none; font-size: .72rem; }
.nav a.nav-user { padding: 4px 12px 4px 4px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
    font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: transform .08s, background .15s, border-color .15s, box-shadow .15s;
    color: var(--text); background: var(--surface-2);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, #f2123c, var(--red-600)); box-shadow: 0 6px 18px var(--red-glow); }
.btn-primary:hover { background: linear-gradient(180deg, #ff2149, var(--red)); }
.btn-ghost { background: transparent; border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: transparent; border-color: rgba(228, 0, 43, .5); color: #ff6b81; }
.btn-danger:hover { background: rgba(228, 0, 43, .12); }
.btn-link { background: none; padding: 6px 0; color: var(--muted); }
.btn-link:hover { color: var(--text); }
.btn-sm { padding: 7px 14px; font-size: .86rem; }
.btn-block { width: 100%; }

/* ---------- Flash ---------- */
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; border: 1px solid; font-weight: 500; animation: drop .3s ease; }
.flash-success { background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .35); color: #86efac; }
.flash-error { background: rgba(228, 0, 43, .1); border-color: rgba(228, 0, 43, .4); color: #ff99aa; }
.flash-info { background: rgba(143, 153, 173, .1); border-color: var(--border-strong); color: var(--text); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.flash-stack { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 40; width: min(560px, calc(100% - 32px)); display: grid; gap: 8px; }
.flash-stack .flash { margin: 0; box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); cursor: pointer; }
.flash-stack .flash-success { background: rgba(10, 40, 22, .92); }
.flash-stack .flash-error { background: rgba(50, 8, 16, .92); }
.flash-stack .flash-info { background: rgba(27, 33, 48, .95); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--surface-2); color: var(--muted); }
.badge-live { background: var(--red); color: #fff; }
.badge-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; }
.badge-warn { background: rgba(245, 165, 36, .15); color: var(--amber); }
.badge-other { background: rgba(212, 175, 90, .14); color: var(--gold); }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .75rem; font-weight: 600; margin-left: 6px; vertical-align: 1px; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---------- Avatars & crests ---------- */
.avatar {
    --h: 0;
    display: inline-grid; place-items: center; flex: none;
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(140deg, hsl(var(--h) 60% 48%), hsl(calc(var(--h) + 40) 55% 32%));
    color: #fff; font-weight: 700; font-size: .74rem; letter-spacing: .02em;
    border: 2px solid var(--surface);
}
.avatar.is-maybe { opacity: .55; border-style: dashed; border-color: var(--muted); }
.avatar.is-no { filter: grayscale(1); opacity: .45; }
.avatar.more { background: var(--surface-2); color: var(--muted); }
.avatar-xl { width: 64px; height: 64px; font-size: 1.3rem; border: none; }
.avatars { display: flex; padding-left: 8px; }
.avatars .avatar { margin-left: -8px; }
.avatars-lg .avatar { width: 38px; height: 38px; font-size: .82rem; border-color: #2a0a12; }

.crest { width: 34px; height: 34px; object-fit: contain; flex: none; }
.crest-fallback { --h: 0; display: inline-grid; place-items: center; border-radius: 50%; background: hsl(var(--h) 35% 25%); color: hsl(var(--h) 60% 85%); font-weight: 800; font-size: .72rem; border: 2px solid hsl(var(--h) 40% 40%); }
.crest-xl { width: 96px; height: 96px; padding: 12px; font-size: 1.5rem; border-radius: 50%; background: radial-gradient(circle, #fff 0 58%, rgba(255, 255, 255, .85) 70%); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.crest-xl.crest-fallback { padding: 0; background: hsl(var(--h) 35% 25%); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    border-radius: 24px; padding: 28px 28px 24px;
    background:
        radial-gradient(600px 300px at 50% -20%, rgba(255, 255, 255, .12), transparent 70%),
        linear-gradient(135deg, #b8001f 0%, #7a0016 45%, #2a0a12 100%);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 30px 60px -20px rgba(228, 0, 43, .45);
    margin-bottom: 28px;
    text-align: center;
}
.hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(255, 255, 255, .025) 22px 44px);
}
.hero > * { position: relative; z-index: 1; }
.hero-other { background: linear-gradient(135deg, #1d3a6e 0%, #13284d 50%, #0c1426 100%); box-shadow: 0 30px 60px -20px rgba(19, 40, 77, .8); }
.hero-label { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; white-space: nowrap; font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; color: #ffd6dd; }
.hero-label .muted { color: rgba(255, 255, 255, .7); }
.hero-fixture { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin: 22px 0 16px; text-decoration: none; }
.hero-team { display: flex; flex-direction: column; align-items: center; gap: 12px; font-family: var(--display); font-size: clamp(1.25rem, 3.6vw, 2.2rem); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; }
.hero-vs { font-family: var(--display); font-size: 1.1rem; color: rgba(255, 255, 255, .6); padding: 8px 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; }
.hero-score { font-family: var(--display); font-size: clamp(2.4rem, 7vw, 3.6rem); font-weight: 700; letter-spacing: .04em; }
.hero-when { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; color: rgba(255, 255, 255, .88); font-weight: 500; }
.hero-when span { display: inline-flex; align-items: center; gap: 6px; }
.hero-when a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.hero-when a:hover { text-decoration-color: #fff; }
.hero-when .muted { color: rgba(255, 255, 255, .6); }

.countdown { display: flex; justify-content: center; gap: 10px; margin: 20px 0 6px; }
.countdown div { min-width: 68px; padding: 10px 8px 8px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .1); }
.countdown b { display: block; font-family: var(--display); font-size: 1.9rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown small { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .65); }
.countdown.is-live div { display: none; }
.countdown.is-live::after { content: 'Kampen er i gang – COYG!'; font-family: var(--display); font-size: 1.3rem; letter-spacing: .06em; text-transform: uppercase; }

.hero-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); text-align: left; }
.hero-crew { display: flex; align-items: center; gap: 12px; }
.hero-crew .muted { color: rgba(255, 255, 255, .7); display: inline-flex; gap: 6px; align-items: center; }
.hero-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero .rsvp-btn { background: rgba(0, 0, 0, .25); border-color: rgba(255, 255, 255, .18); color: #fff; }
.hero .rsvp-btn:hover { background: rgba(0, 0, 0, .4); }
.hero .btn-ghost { border-color: rgba(255, 255, 255, .25); }
.hero .btn-ghost:hover { background: rgba(0, 0, 0, .25); }
.notes { margin: 16px auto 0; max-width: 560px; padding: 12px 16px; border-radius: 12px; background: rgba(0, 0, 0, .25); color: rgba(255, 255, 255, .92); }

/* ---------- RSVP buttons ---------- */
.rsvp-buttons { display: inline-flex; gap: 6px; }
.rsvp-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border-strong);
    background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: .85rem;
    cursor: pointer; transition: all .15s;
}
.rsvp-btn:hover { color: var(--text); border-color: var(--muted); }
.rsvp-yes.is-on { background: var(--green); border-color: var(--green); color: #05230f; box-shadow: 0 4px 14px rgba(34, 197, 94, .35); }
.rsvp-maybe.is-on { background: var(--amber); border-color: var(--amber); color: #2b1a00; }
.rsvp-no.is-on { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); text-decoration: line-through; }
.hero .rsvp-yes.is-on { background: var(--green); border-color: var(--green); color: #05230f; }
.hero .rsvp-maybe.is-on { background: var(--amber); border-color: var(--amber); color: #2b1a00; }
.rsvp-btn.rsvp-no span { display: none; }
.rsvp-btn.rsvp-no.is-on span { display: inline; }

/* ---------- Toolbar & tabs ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .88rem; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }

.month { font-family: var(--display); text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; color: var(--muted); font-weight: 500; margin: 26px 0 12px; display: flex; align-items: center; gap: 12px; }
.month::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ---------- Match card ---------- */
.match-list { display: grid; gap: 12px; }
.match {
    position: relative;
    display: grid; grid-template-columns: 76px 1fr auto; gap: 18px; align-items: center;
    padding: 16px 18px 16px 16px;
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    border: 1px solid var(--border); border-radius: var(--radius);
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.match:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.match.is-arsenal::before { content: ''; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--red); }
.match.is-other::before { content: ''; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.match.my-yes { border-color: rgba(34, 197, 94, .35); }
.match.my-no .body, .match.my-no .when { opacity: .55; }
.match.state-live { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), 0 10px 30px var(--red-glow); }
.match.state-finished { opacity: .85; }

.when { display: flex; flex-direction: column; align-items: center; text-decoration: none; padding: 8px 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); line-height: 1.1; }
.when .dow { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.when .day { font-family: var(--display); font-size: 1.7rem; font-weight: 600; }
.when .mon { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.when .time { margin-top: 6px; font-size: .78rem; font-weight: 700; color: #fff; background: var(--red); padding: 2px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.is-other .when .time { background: var(--gold); color: #241a04; }

.body { min-width: 0; display: grid; gap: 8px; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: .8rem; color: var(--muted); font-weight: 500; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.fixture { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-wrap: wrap; }
.team { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.08rem; min-width: 0; }
.team .crest { width: 28px; height: 28px; font-size: .62rem; }
.vs { color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; }
.score { font-family: var(--display); font-size: 1.3rem; font-weight: 600; padding: 0 4px; }
.score i { font-style: normal; color: var(--muted); padding: 0 4px; }
.fixture:hover .name { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }

.attendees { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); min-height: 32px; }
.attendees strong { color: var(--text); }
.attendees.empty { gap: 8px; font-size: .82rem; }
.attendee-text { min-width: 0; }

.actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

/* ---------- Dropdown ---------- */
.dropdown { position: relative; }
.dropdown summary { list-style: none; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown-menu {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 220px;
    display: grid; padding: 6px; border-radius: 12px; background: var(--surface-2);
    border: 1px solid var(--border-strong); box-shadow: var(--shadow); text-align: left;
    animation: drop .15s ease;
}
.dropdown-menu a, .dropdown-menu button {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 8px;
    text-decoration: none; font: inherit; font-size: .9rem; font-weight: 500; color: var(--text);
    background: none; border: 0; cursor: pointer; text-align: left;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface); }
.dropdown-menu .danger { color: #ff6b81; }

/* ---------- Cards & forms ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h2 { font-size: 1.05rem; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.card + .card, .side .card + .card, .side form + .card { margin-top: 16px; }
.form { display: grid; gap: 14px; }
.form h2 { margin-bottom: 0; }
label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: #c9d0dd; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
    width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong); background: var(--bg-2); color: var(--text);
    font: inherit; font-weight: 400; font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow); }
input[type=date], input[type=time] { color-scheme: dark; }
textarea { resize: vertical; }
label small { font-weight: 400; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--red); margin-top: 1px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-foot { text-align: center; font-size: .9rem; }
.form-foot a { color: #ff6b81; font-weight: 600; }
.stack { display: grid; gap: 8px; }

.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { white-space: nowrap; font-size: .88rem; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 8px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); cursor: pointer; font-weight: 600; color: var(--muted); transition: all .15s; }
.seg span:hover { color: var(--text); }
.seg-yes input:checked + span { background: var(--green); border-color: var(--green); color: #05230f; }
.seg-maybe input:checked + span { background: var(--amber); border-color: var(--amber); color: #2b1a00; }
.seg-no input:checked + span { background: var(--surface-2); color: var(--text); border-color: var(--muted); }
.seg input:focus-visible + span { box-shadow: 0 0 0 3px var(--red-glow); }

/* ---------- Auth ---------- */
body.bare .main { display: grid; place-items: center; padding-top: 48px; }
.auth { width: 100%; max-width: 420px; display: grid; gap: 24px; }
.auth-brand { text-align: center; display: grid; justify-items: center; gap: 10px; }
.auth-brand .logo { width: 140px; height: 140px; filter: drop-shadow(0 12px 30px var(--red-glow)); }
.auth-brand h1 { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: 2rem; }
.auth .card { padding: 26px; box-shadow: var(--shadow); }

/* ---------- Detail page ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; margin-bottom: 14px; }
.back:hover { color: var(--text); }
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 16px; align-items: start; }
.count { margin-left: auto; font-family: var(--display); font-size: 1.4rem; color: var(--green); }
.group-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 18px 0 8px; font-weight: 700; }
.group-title:first-of-type { margin-top: 4px; }
.group-yes { color: var(--green); }
.group-maybe { color: var(--amber); }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.people li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; }
.people li.is-me { background: var(--surface-2); }
.people .avatar { width: 38px; height: 38px; border: 0; }
.people .avatar.is-maybe { border: 2px dashed var(--muted); }
.comment { color: var(--muted); font-size: .88rem; font-style: italic; }

/* ---------- Pages ---------- */
.page-title { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: 1.9rem; font-weight: 600; }
.lead { margin: 6px 0 20px; }
.narrow { max-width: 620px; margin: 0 auto; }
.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.push-right { margin-left: auto; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; align-items: start; }
.two-col .card + .card { margin-top: 0; }
.two-col + .card { margin-top: 16px; }
.feeds { display: grid; gap: 10px; margin: 16px 0 10px; }
.feed { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); flex-wrap: wrap; }
.feed-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.inline-form { margin-top: 4px; }
.admin-sync { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.people-admin .avatar { width: 34px; height: 34px; }
.dropdown-right { right: 0; }

.empty-state { text-align: center; padding: 48px 16px; border: 1px dashed var(--border-strong); border-radius: var(--radius); margin-top: 20px; display: grid; justify-items: center; gap: 10px; }
.empty-state > .icon { width: 40px; height: 40px; color: var(--muted); }
.empty-state p { max-width: 420px; }

.sync-note { margin-top: 28px; font-size: .78rem; text-align: center; }
.footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--border); font-size: .8rem; font-family: var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--surface-2); border: 1px solid var(--border-strong); padding: 10px 18px; border-radius: 999px; font-weight: 600; box-shadow: var(--shadow); z-index: 50; animation: drop .2s ease; }

/* ---------- Webapp (safe areas) ---------- */
.topbar { padding-top: env(safe-area-inset-top); }
.footer { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.flash-stack { top: calc(76px + env(safe-area-inset-top)); }
@media (display-mode: standalone) {
    body { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
    input, textarea { -webkit-user-select: text; user-select: text; }
}

/* ---------- Installér-boks ---------- */
.install-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border-strong); }
.install-banner img { width: 40px; height: 40px; flex: none; }
.install-banner div { flex: 1; min-width: 0; font-size: .88rem; }
.install-banner strong { display: block; font-size: .95rem; }
.install-banner .close { background: none; border: 0; color: var(--muted); padding: 6px; cursor: pointer; }

/* ---------- Info-side ---------- */
.info-hero { display: flex; gap: 22px; align-items: center; margin-bottom: 18px; }
.info-hero .logo { width: 104px; height: 104px; flex: none; filter: drop-shadow(0 12px 30px var(--red-glow)); }
.info-hero .lead { margin-bottom: 0; max-width: 620px; }
.info-cta { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.toc { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.toc a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-strong); text-decoration: none; color: var(--muted); font-size: .85rem; font-weight: 600; }
.toc a:hover { color: var(--text); background: var(--surface-2); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.info-grid .card + .card { margin-top: 0; }
.info-card#app, .info-card#tilmelding { grid-column: 1 / -1; }
.info-card p + p, .info-card p + ul, .info-card ul + .tips, .info-card .tips + p { margin-top: 10px; }
.step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; font-size: .82rem; font-weight: 800; flex: none; }
.steps, .bullets { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 7px; color: #c9d0dd; }
.steps li::marker { color: var(--gold); font-weight: 700; }
.bullets li::marker { color: var(--red); }
.sub { font-size: .9rem; margin: 14px 0 6px; }
.kbd { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border-strong); vertical-align: -6px; }
.kbd .icon { width: 14px; height: 14px; }
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.platform { padding: 14px 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); transition: border-color .2s; }
.platform h3 { font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.platform.is-current { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
.platform.is-current h3::after { content: 'Din enhed'; margin-left: auto; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red); font-weight: 700; }
.install-now { margin-top: 14px; }
.installed-note { margin-top: 12px; color: #86efac; display: flex; gap: 8px; align-items: center; font-weight: 600; }
.demo-buttons { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 4px; pointer-events: none; }
.tips { padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); display: grid; gap: 6px; font-size: .9rem; }
.gold { color: var(--gold); font-weight: 700; }
.red { color: #ff4d6a; font-weight: 700; }
.faq { border-top: 1px solid var(--border); padding: 12px 0; }
.faq:first-of-type { border-top: 0; padding-top: 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-size: 1.2rem; line-height: 1; }
.faq[open] summary::after { content: '–'; }
.faq p { margin-top: 8px; color: var(--muted); }
.faq a, .info-card a:not(.btn) { color: #ff8095; }
.footer a { color: inherit; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .detail-grid { grid-template-columns: 1fr; }
    .info-grid, .platforms { grid-template-columns: 1fr; }
    .info-card#app, .info-card#tilmelding { grid-column: auto; }
    .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .match { grid-template-columns: 62px 1fr; gap: 14px; padding: 14px; }
    .when .day { font-size: 1.45rem; }
    .actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
    .actions .rsvp-buttons { flex: 1; min-width: 0; }
    .actions .rsvp-yes, .actions .rsvp-maybe { flex: 1; justify-content: center; }
    .actions .dropdown summary span { display: none; }
    .actions .dropdown summary { padding: 8px 10px; }
    .fixture { flex-direction: column; align-items: flex-start; gap: 6px; }
    .fixture .vs { display: none; }
    .fixture .score { font-size: 1.05rem; padding: 0 0 0 38px; line-height: 1; }
    .team { font-size: 1rem; }
    .hero { padding: 22px 16px 18px; border-radius: 20px; }
    .crest-xl { width: 70px; height: 70px; padding: 9px; }
    .countdown div { min-width: 58px; }
    .countdown b { font-size: 1.5rem; }
    .hero-bottom { flex-direction: column; align-items: stretch; text-align: center; }
    .hero-crew { justify-content: center; flex-wrap: wrap; }
    .hero-actions { justify-content: center; }
    .nav span:not(.avatar) { display: none; }
    .nav a.nav-login span { display: inline; }
    .nav a.nav-login { padding: 8px 12px; }
    .brand { font-size: 1.02rem; gap: 8px; letter-spacing: .02em; }
    .brand .logo { width: 30px; height: 30px; }
    .nav { gap: 0; flex: none; }
    .nav a { padding: 9px; }
    .nav a.nav-user { padding: 4px; }
    .toolbar .btn span { display: none; }
    .toolbar .btn { padding: 9px; }
    .row { grid-template-columns: 1fr; }
    .info-hero { flex-direction: column; text-align: center; }
    .info-hero .logo { width: 88px; height: 88px; }
    .info-cta { justify-content: center; }
    .feed-actions { width: 100%; }
}
@media (max-width: 400px) {
    .brand { font-size: .92rem; }
    .rsvp-btn { padding: 7px 10px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
