/* ContentSMP - Frost links, Inferno rechts */
:root {
    --bg: #0b1020;
    --panel: #121a2c;
    --panel-line: #26324a;
    --text: #e9eff7;
    --muted: #9eabbd;
    --frost: #7fd0ff;
    --frost-deep: #1d5f93;
    --inferno: #ff7a2e;
    --inferno-deep: #a3200b;
    --wall: #2a2236;
    --wall-line: #1b1526;
    --display: "Arial Narrow", "Franklin Gothic Medium", Impact, "Arial Black", sans-serif;
    --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text);
    font: 1rem/1.55 var(--body);
    background:
        radial-gradient(ellipse 60% 50% at 0% 0%, rgba(80, 170, 230, .22), transparent 70%),
        radial-gradient(ellipse 60% 50% at 100% 100%, rgba(255, 90, 30, .20), transparent 70%),
        var(--bg);
    background-attachment: fixed;
}
a { color: var(--frost); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
img { vertical-align: middle; image-rendering: pixelated; }
main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 3rem clamp(1rem, 4vw, 2rem) 4rem; }

.skip { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: 0; }

/* ---------- Header: ijspegels links, gloed rechts ---------- */
.top {
    position: relative;
    z-index: 5;
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 2rem;
    padding: .9rem clamp(1rem, 4vw, 3rem);
    background: linear-gradient(90deg, #123a5c 0%, #2a2236 50%, #5c1a0a 100%);
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #7fd0ff, #2a2236 50%, #ff7a2e) 1;
}
.top-icicles { position: absolute; left: 0; top: 100%; width: 50%; height: 34px; pointer-events: none; opacity: .95; filter: drop-shadow(0 3px 6px rgba(127, 208, 255, .35)); }
.brand { position: relative; font: 900 1.7rem/1 var(--display); letter-spacing: .02em; color: #fff; text-decoration: none; }
.top nav { position: relative; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; flex: 1; }
.top nav a { color: #e4e9f3; text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; }
.top nav a:hover { border-bottom-color: #cfd8ea; }
.top nav a[aria-current="page"] { color: #fff; border-bottom-color: #fff; }
.top nav a.discord { margin-left: auto; background: #fff; color: #2a2236; padding: .35rem 1rem; border-radius: 4px; font-weight: 700; border-bottom: 0; }

/* ---------- Koppen en tekst ---------- */
h1 { font: 900 clamp(2.6rem, 7vw, 4.6rem)/1 var(--display); margin: 0 0 .6rem; color: #fff; }
.intro h1 {
    background: linear-gradient(90deg, #d8f2ff 0%, #ffffff 46%, #ffe2b0 54%, #ff9a52 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: #fff;
}
h2 { font: 800 1.7rem/1.1 var(--display); margin: 0 0 .8rem; }
h3 { font-size: 1.05rem; margin: 0 0 .15rem; }
.intro { margin-bottom: 1.75rem; }
.season { font-size: 1.15rem; margin: 0 0 .6rem; color: var(--muted); }
.status { margin: 0; padding-left: .8rem; border-left: 4px solid var(--panel-line); }
.status.is-open { border-left-color: #3ddc84; }
.status.is-closed { border-left-color: var(--inferno); }
.empty, .lead { color: var(--muted); }
.notice { background: #3a2f0d; border: 1px solid #8a7220; color: #ffe9a6; padding: .75rem 1rem; margin: 1.25rem 0; }

/* ---------- Hero: ijs links, vuur rechts, muur met twee poorten ---------- */
.hero {
    display: grid;
    grid-template-columns: 1fr minmax(84px, 130px) 1fr;
    min-height: clamp(460px, 70vh, 600px);
    border: 2px solid var(--wall-line);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
    margin-bottom: 2rem;
}
.side { position: relative; overflow: hidden; padding: 1.75rem; display: flex; flex-direction: column; isolation: isolate; }
.side .content { position: relative; z-index: 3; }
.side h2 { margin: 0; text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
.count { font: 900 clamp(5rem, 13vw, 9rem)/.9 var(--display); margin: .2rem 0 .3rem; }
.sub { margin: 0; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }

.side.frost {
    justify-content: flex-end;
    color: #fff;
    background: linear-gradient(180deg, #d9f2ff 0%, #78bde8 20%, #2f78ac 52%, #153456 100%);
}
.side.frost .count { text-shadow: 0 0 36px rgba(160, 220, 255, .9), 0 4px 14px rgba(0, 25, 60, .6); }
.icicles { position: absolute; z-index: 1; left: 0; top: 0; width: 100%; height: 52%; filter: drop-shadow(0 6px 10px rgba(0, 40, 90, .35)); }

.side.inferno {
    justify-content: flex-start;
    align-items: flex-end; text-align: right;
    color: #fff;
    background: linear-gradient(0deg, #ffb23b 0%, #ff5a1f 22%, #a3200b 55%, #2b0804 100%);
}
.side.inferno .content { padding-top: .5rem; }
.side.inferno .count { text-shadow: 0 0 36px rgba(255, 150, 60, .9), 0 4px 14px rgba(40, 0, 0, .7); }
.flames { position: absolute; z-index: 2; left: 0; bottom: 0; width: 100%; height: 55%; }
.flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 1s ease-in-out infinite alternate; }
@keyframes flicker {
    0%   { transform: scale(1, 1) skewX(0deg); }
    50%  { transform: scale(.94, 1.1) skewX(2.5deg); }
    100% { transform: scale(1.05, .93) skewX(-2.5deg); }
}

.embers, .snow { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.ember { position: absolute; bottom: 8%; border-radius: 50%; background: #ffc46b; box-shadow: 0 0 8px 2px rgba(255, 140, 40, .9); opacity: 0; animation: rise linear infinite; }
@keyframes rise {
    0%   { transform: translate(0, 0); opacity: 0; }
    15%  { opacity: 1; }
    100% { transform: translate(24px, -420px); opacity: 0; }
}
.flake { position: absolute; top: -10px; border-radius: 50%; background: #fff; opacity: 0; animation: fall linear infinite; }
@keyframes fall {
    0%   { transform: translate(0, 0); opacity: 0; }
    10%  { opacity: .9; }
    100% { transform: translate(-26px, 560px); opacity: 0; }
}

.wall {
    position: relative; z-index: 4;
    background-color: var(--wall);
    background-image:
        linear-gradient(var(--wall-line) 3px, transparent 3px),
        linear-gradient(90deg, var(--wall-line) 3px, transparent 3px);
    background-size: 100% 30px, 60px 30px;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, .6);
}
.gate { position: absolute; left: 18%; right: 18%; height: 30%; background: #0b0710; border: 4px solid #6c5f86; }
.gate.one { top: 12%; box-shadow: 0 0 26px 4px rgba(127, 208, 255, .55), inset 0 0 18px rgba(127, 208, 255, .3); border-color: #8ccfee; }
.gate.two { bottom: 12%; box-shadow: 0 0 26px 4px rgba(255, 122, 46, .6), inset 0 0 18px rgba(255, 122, 46, .35); border-color: #ff9a52; }

/* ---------- Panelen, feed, aankondigingen ---------- */
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.panel { background: var(--panel); border: 1px solid var(--panel-line); padding: 1.25rem 1.4rem; }
.columns .panel:first-child { border-top: 4px solid var(--frost); }
.columns .panel:last-child { border-top: 4px solid var(--inferno); }
.announce { border: 1px solid var(--panel-line); padding: .8rem 1rem; margin-bottom: .75rem; background: #0e1526; }
.announce .date { margin: 0 0 .35rem; color: var(--muted); font-size: .9rem; }
.announce p:last-child { margin-bottom: 0; }
.feed, .roster, .partners ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.feed li { display: grid; grid-template-columns: 40px 1fr auto; gap: .75rem; align-items: center; padding: .45rem .6rem; border-bottom: 1px solid var(--panel-line); border-left: 4px solid var(--panel-line); }
.feed li.frost { border-left-color: var(--frost); }
.feed li.inferno { border-left-color: var(--inferno); }
.feed .when { color: var(--muted); font-size: .9rem; }
.partners ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* ---------- Deelnemers ---------- */
.teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.teamcol { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--panel-line); padding: 1.25rem; isolation: isolate; }
.teamcol.frost { background: linear-gradient(180deg, #17476f 0%, #122238 40%, var(--panel) 100%); padding-top: 4.5rem; }
.teamcol.inferno { background: linear-gradient(0deg, #6a1a0a 0%, #2a1210 40%, var(--panel) 100%); padding-bottom: 5.5rem; }
.col-icicles { position: absolute; z-index: 0; left: 0; top: 0; width: 100%; height: 70px; }
.col-flames { position: absolute; z-index: 0; left: 0; bottom: 0; width: 100%; height: 90px; }
.teamcol h2, .teamcol .roster { position: relative; z-index: 1; }
.n { font-weight: 400; color: var(--muted); font-size: 1rem; }
.roster li { display: grid; grid-template-columns: 48px 1fr auto; gap: .75rem; align-items: center; padding: .4rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.roster .state { font-size: .9rem; color: #5be39a; font-weight: 600; }
.roster li.dead { opacity: .6; }
.roster li.dead .who { text-decoration: line-through; }
.roster li.dead .state { color: #ff8a6a; }

/* ---------- Tabellen ---------- */
.scroll { overflow-x: auto; background: var(--panel); border: 1px solid var(--panel-line); }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid var(--panel-line); white-space: nowrap; }
th { background: #1a2540; font-weight: 700; }
th a { color: var(--text); }
th a[aria-current="true"] { color: #fff; text-decoration-thickness: 3px; }
tbody tr:hover { background: rgba(255, 255, 255, .04); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.playercell img { margin-right: .6rem; }
tr.dead td { color: var(--muted); }
.muted { color: var(--muted); font-size: .85rem; }
.tag { display: inline-block; padding: .05rem .6rem; border-radius: 3px; font-size: .9rem; font-weight: 700; background: #2a3550; color: #dfe6f3; }
.tag.frost { background: #1d5f93; color: #eaf7ff; }
.tag.inferno { background: #b5300f; color: #fff1e8; }

/* ---------- Footer ---------- */
.foot { position: relative; overflow: hidden; margin-top: 2rem; padding: 4.5rem 1rem 2rem; text-align: center; color: var(--muted); background: linear-gradient(90deg, rgba(80, 170, 230, .18), transparent 50%, rgba(255, 90, 30, .18)); }
.foot-flames { position: absolute; right: 0; bottom: 0; width: 50%; height: 70px; opacity: .9; }
.foot-inner { position: relative; z-index: 1; }
.foot p { margin: .25rem 0; }
.socials a { margin: 0 .6rem; }

@media (max-width: 720px) {
    .columns { grid-template-columns: 1fr; }
    .hero { grid-template-columns: 1fr; grid-template-rows: auto 80px auto; min-height: 0; }
    .side { min-height: 340px; }
    .side.inferno { align-items: flex-start; text-align: left; }
    .top-icicles { width: 100%; }
    .gate { top: 20% !important; bottom: auto !important; height: 60%; left: auto; right: auto; width: 24%; }
    .gate.one { left: 15%; }
    .gate.two { left: 61%; }
}

@media (prefers-reduced-motion: reduce) {
    .flame, .ember, .flake { animation: none !important; }
    .ember, .flake { display: none; }
}
