/*
 * Uber1337 Classic - hovedstilark.
 * Designet fra uber1337.dk anno 2007 (vonderfehr.dk): sort baggrund, stålbogstaver, blodstænk,
 * pigtråd og teksturerede paneler - lagt om til et fleksibelt, responsivt layout.
 */

@font-face {
    font-family: "Anton";
    src: url("../fonts/anton-latin.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg: #000;
    --panel: #382e2f;
    --line: rgba(255, 255, 255, .15);
    --line-soft: rgba(255, 255, 255, .07);
    --text: #cbc5c5;
    --muted: #a89f9f;
    --heading: #f3efef;
    --link: #e6e0e0;
    --red: #c4121c;
    --red-hi: #e3232d;
    --red-lo: #6e0a10;
    --green: #4cc26a;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 14px 34px rgba(0, 0, 0, .65);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --display: "Anton", Impact, "Arial Narrow", sans-serif;
    --steel: linear-gradient(180deg, #fdfdfd 0%, #d6d6d6 38%, #8d8d8d 51%, #b8b8b8 72%, #efefef 100%);
    --texture: url("../img/texture.jpg");
    --topbar-h: 58px;
}

/* ---------- Grundlag ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--topbar-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(1100px 520px at 50% -140px, rgba(150, 18, 26, .22), transparent 70%) no-repeat,
        var(--bg);
    color: var(--text);
    font: 400 1rem/1.65 var(--font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.drawer-open { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; }
iframe, embed, object { max-width: 100%; border: 0; }
.entry iframe, .entry embed, .entry object, .entry video { display: block; max-width: 100%; }

a {
    color: var(--link);
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .15s, text-decoration-color .15s;
}
a:hover { color: #fff; text-decoration-color: var(--red-hi); text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }

h1, h2, h3, h4, h5, h6 { color: var(--heading); line-height: 1.25; margin: 1.6em 0 .6em; }

.wrap { width: min(100% - 32px, 1100px); margin-inline: auto; }

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}
.skip-link:focus { top: 12px; }

.icon { flex: none; }

/* ---------- Topbar ---------- */

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(0, 0, 0, .8);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 1px 0 rgba(196, 18, 28, .35), 0 8px 24px rgba(0, 0, 0, .45);
}
.admin-bar .topbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .topbar { top: 46px; } }
@media (max-width: 600px) { .admin-bar .topbar { top: 0; } }

.topbar__inner {
    width: min(100% - 32px, 1280px);
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: var(--topbar-h);
}

.brand {
    flex: none;
    font-family: var(--display);
    font-size: 1.5rem;
    line-height: 1;
    letter-spacing: .02em;
    text-decoration: none;
    white-space: nowrap;
    max-width: 260px;
    transition: opacity .2s, transform .2s, max-width .25s, margin .25s;
}
.brand__text {
    background: var(--steel);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 0 #000) drop-shadow(0 0 4px rgba(0, 0, 0, .8));
}
.brand__dot { color: var(--red-hi); }

.topnav { flex: 1; min-width: 0; transition: opacity .2s; }
.topnav__list {
    display: flex;
    gap: 4px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
}
.topnav__list::-webkit-scrollbar { display: none; }
.topnav.is-overflowing .topnav__list {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
}
.topnav__list a {
    display: block;
    padding: 6px 0 4px;
    border-bottom: 2px solid transparent;
    color: #d4cdcd;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-decoration: none;
}
.topnav__list a:hover,
.topnav__list .current-menu-item > a,
.topnav__list .current_page_item > a,
.topnav__list .current_page_ancestor > a,
.topnav__list .current-menu-ancestor > a { color: #fff; border-bottom-color: var(--red); }

.topbar__tools {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* På store skærme fylder banneret med logoet toppen; topbarens logo og menu kommer frem, når man scroller forbi det */
@media (min-width: 1024px) {
    body:not(.is-scrolled) .brand { max-width: 0; margin-right: -22px; opacity: 0; transform: translateY(-4px); pointer-events: none; }
    .has-sidebar:not(.is-scrolled) .topnav { opacity: 0; visibility: hidden; }
}

/* Live-markering og serverpiller */
.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--red);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .15) inset, 0 0 14px rgba(196, 18, 28, .55);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-decoration: none;
}
.live-pill:hover { color: #fff; background: var(--red-hi); }
.live-pill[hidden] { display: none; }

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    animation: uber-pulse 1.4s ease-in-out infinite;
}
@keyframes uber-pulse {
    50% { opacity: .3; transform: scale(.7); }
}

.pills { display: flex; gap: 6px; }
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    color: var(--text);
    font-size: .76rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
    white-space: nowrap;
}
.pill:hover { border-color: var(--red); color: #fff; }
.pill__n { color: var(--muted); }

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6d6464;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, .45);
}
.is-online .dot { background: var(--green); box-shadow: 0 0 0 2px rgba(0, 0, 0, .45), 0 0 8px rgba(76, 194, 106, .75); }

/* Login og brugermenu */
.userbox { position: relative; display: flex; align-items: center; }
.userbox__me {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 8px 3px 3px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: none;
    color: #eee;
    font: 700 .85rem/1 var(--font);
    cursor: pointer;
}
.userbox__me:hover,
.userbox__me[aria-expanded="true"] { border-color: var(--line); background: rgba(255, 255, 255, .06); color: #fff; }
.userbox__chev { width: 16px; height: 16px; opacity: .7; transition: transform .2s; }
.userbox__me[aria-expanded="true"] .userbox__chev { transform: rotate(180deg); }

.usermenu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 60;
    width: 260px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 12px;
    background: var(--panel) var(--texture);
    box-shadow: var(--shadow);
    animation: uber-pop .15s ease-out;
}
.usermenu[hidden] { display: none; }
@keyframes uber-pop {
    from { opacity: 0; transform: translateY(-4px); }
}
.usermenu__head { margin: 4px 8px 8px; color: var(--muted); font-size: .78rem; }
.usermenu__head b { color: var(--heading); }
.usermenu__list { margin: 0; padding: 0; list-style: none; }
.usermenu__list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--text);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
}
.usermenu__list a:hover,
.usermenu__list a:focus-visible { background: rgba(196, 18, 28, .18); color: #fff; }
.usermenu__list .icon { width: 17px; height: 17px; color: var(--muted); }
.usermenu__list a:hover .icon { color: var(--red-hi); }
.usermenu__list .is-warning a { color: #f3b9bc; }
.usermenu__list .is-warning .icon { color: var(--red-hi); }
.usermenu__list .is-logout { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line-soft); }
.userbox__avatar { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); }
.userbox__name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}
.icon-btn:hover { border-color: var(--line); background: rgba(255, 255, 255, .06); color: #fff; }
.menu-toggle { display: none; }

/* ---------- Banner ---------- */

.banner .wrap { position: relative; }
.banner__link { display: block; }
.banner__img {
    display: block;
    width: 100%;
    height: auto;
    -webkit-mask-image: linear-gradient(to bottom, #000 91%, transparent), linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, #000 91%, transparent), linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
    mask-composite: intersect;
}
.banner__tagline {
    position: absolute;
    right: 6px;
    bottom: 10px;
    margin: 0;
    color: #8d8585;
    font-size: .8rem;
    font-style: italic;
    letter-spacing: .04em;
    text-shadow: 0 1px 2px #000;
}

/* ---------- Layout ---------- */

.layout {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    align-items: start;
    padding-block: 22px 46px;
}
.main { min-width: 0; outline: none; }

@media (min-width: 1024px) {
    .has-sidebar .layout {
        grid-template-columns: 272px minmax(0, 1fr);
        grid-template-areas: "side main";
    }
    .has-sidebar .main { grid-area: main; }
    .has-sidebar .sidebar { grid-area: side; }
}

/* ---------- Paneler (menu, servere, widgets) og indholdsarket ---------- */

.panel,
.sheet,
.card {
    position: relative;
    background: var(--panel) var(--texture);
    border-radius: var(--radius);
}

.panel,
.sheet {
    border: 1px solid rgba(255, 255, 255, .17);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 -40px 60px rgba(0, 0, 0, .16), var(--shadow);
}

.panel { padding: 18px 20px 20px; }
.sidebar { display: grid; gap: 22px; min-width: 0; }

/* MENU-panelet har blodstænket og skudhullerne fra 2007 */
.panel--menu::before,
.panel--menu::after {
    content: "";
    position: absolute;
    pointer-events: none;
}
.panel--menu::before { top: 2px; right: 34px; width: 98px; height: 80px; background: url("../img/blood-splat.png") no-repeat; }
.panel--menu::after { top: 0; right: 0; width: 110px; height: 110px; background: url("../img/bullet-holes.svg") no-repeat; opacity: .95; }

/* Indholdsarket med pigtråd foroven og forneden */
.sheet {
    padding: clamp(22px, 3.2vw, 38px);
    margin-block: 20px 24px;
}
.sheet::before,
.sheet::after {
    content: "";
    position: absolute;
    left: -10px;
    right: -10px;
    height: 36px;
    background: url("../img/barbed-wire.svg") repeat-x;
    pointer-events: none;
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .6));
}
.sheet::before { top: -19px; background-position: 18px 0; }
.sheet::after { bottom: -19px; background-position: 74px 0; }

.sheet__head { margin-bottom: 22px; }
.sheet__intro { color: var(--muted); }

/* ---------- Stålbogstaver ("MENU", "NEWS") ---------- */

.label {
    position: relative;
    display: inline-block;
    margin: 0 0 .8rem;
    padding-bottom: 12px;
    background: var(--steel);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: var(--display);
    font-size: 1.9rem;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: .03em;
    text-transform: uppercase;
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .95)) drop-shadow(0 0 1px #000);
}
/* den røde drypstribe under ordet */
.label::after {
    content: "";
    position: absolute;
    left: -10px;
    bottom: -9px;
    width: 182px;
    max-width: calc(100% + 40px);
    height: 30px;
    background: url("../img/blood-drip.png") no-repeat left center;
    pointer-events: none;
}
.label--xl { font-size: clamp(2.1rem, 1.5rem + 1.8vw, 2.9rem); }
.label--xl::after { width: 260px; background-size: 260px 30px; }
.label--sm { font-size: 1.45rem; }
.label--kicker {
    display: block;
    margin-bottom: .2rem;
    padding: 0;
    font-size: 1rem;
    letter-spacing: .12em;
    opacity: .85;
}
.label--kicker::after { display: none; }

.entry-title {
    margin: 0 0 .5rem;
    background: var(--steel);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: var(--display);
    font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: .015em;
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .95));
}

/* ---------- Menuen (sidebar og mobil) ---------- */

.menu-list,
.menu-list ul { margin: 0; padding: 0; list-style: none; }
.menu-list > li { margin: 1px 0; }
.menu-list > li > a {
    display: inline-block;
    padding: 3px 0 1px;
    border-bottom: 1px solid var(--red);
    color: #e5dfdf;
    font-size: .95rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .045em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color .15s, border-color .15s, padding .15s;
}
.menu-list > li > a:hover { color: #fff; border-bottom-color: var(--red-hi); padding-left: 4px; }
.menu-list .current-menu-item > a,
.menu-list .current_page_item > a,
.menu-list .current-menu-ancestor > a,
.menu-list .current_page_ancestor > a { color: #fff; }
.menu-list > .current-menu-item > a::before,
.menu-list > .current_page_item > a::before {
    content: "▸";
    margin-right: 6px;
    color: var(--red-hi);
}
.menu-list ul {
    margin: 3px 0 8px 3px;
    padding-left: 12px;
    border-left: 1px solid rgba(196, 18, 28, .45);
}
.menu-list ul a {
    display: inline-block;
    padding: 2px 0;
    color: var(--text);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
}
.menu-list ul a:hover,
.menu-list ul .current_page_item > a,
.menu-list ul .current-menu-item > a { color: #fff; text-decoration: underline; text-decoration-color: var(--red); }

/* ---------- Nyhedskort (NB-boksene) ---------- */

.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }

.card {
    padding: 22px 26px 24px;
    border: 1px solid rgba(0, 0, 0, .6);
    border-radius: var(--radius-sm);
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .24)),
        var(--panel) var(--texture);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 5px 8px 16px rgba(0, 0, 0, .7);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
    transform: translateY(-2px);
    border-color: rgba(196, 18, 28, .5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 6px 12px 22px rgba(0, 0, 0, .75);
}
.card--empty:hover { transform: none; }

.card__media {
    display: block;
    margin: -22px -26px 18px;
    overflow: hidden;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.card__media img { display: block; width: 100%; height: auto; aspect-ratio: 960 / 420; object-fit: cover; }

.card__head { margin-bottom: 12px; }
.card__title { margin: 0 0 4px; font-size: 1.3rem; font-weight: 800; line-height: 1.3; }
.card__title a { color: var(--heading); text-decoration: none; }
.card__title a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red); }

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 0;
    color: var(--muted);
    font-size: .82rem;
}
.meta__item { display: inline-flex; align-items: center; gap: 5px; }
.meta .icon { width: 14px; height: 14px; opacity: .75; }
.meta a { color: var(--muted); text-decoration-color: rgba(196, 18, 28, .6); }
.meta a:hover { color: #fff; }

.badge {
    display: inline-block;
    margin-bottom: 6px;
    padding: 1px 9px;
    border: 1px solid rgba(196, 18, 28, .55);
    border-radius: 999px;
    background: rgba(196, 18, 28, .16);
    color: #f3b9bc;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.more-link::after { content: "→"; }

/* ---------- Tekstindhold ---------- */

.entry { overflow-wrap: break-word; }
.entry > :first-child { margin-top: 0; }
.entry > :last-child { margin-bottom: 0; }
.entry p, .entry ul, .entry ol, .entry dl { margin: 0 0 1em; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li::marker { color: var(--red-hi); }
.entry h2 { font-size: 1.45rem; }
.entry h3 { font-size: 1.2rem; }
.entry h4 { font-size: 1.05rem; }
.entry img { border-radius: 8px; }
.entry figure { margin: 1.4em 0; }
.entry blockquote {
    margin: 1.4em 0;
    padding: .7em 1.1em;
    border-left: 3px solid var(--red);
    border-radius: 0 8px 8px 0;
    background: rgba(0, 0, 0, .22);
    color: #ddd;
}
.entry table { width: 100%; margin: 1.2em 0; border-collapse: collapse; font-size: .92rem; }
.entry th, .entry td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry th { background: rgba(0, 0, 0, .28); color: var(--heading); }
.entry code, .entry kbd { padding: .1em .35em; border-radius: 4px; background: rgba(0, 0, 0, .35); font-size: .9em; }
.entry pre { overflow: auto; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 8px; background: #151112; }
.entry pre code { padding: 0; background: none; }
.entry hr,
.wp-block-separator {
    height: 25px;
    margin: 1.8em 0;
    border: 0;
    background: url("../img/brush.png") no-repeat center / 100% 25px;
    opacity: .9;
}
.entry .lead { font-size: 1.15rem; color: #ddd; }

.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption, .wp-block-image { max-width: 100%; }
.wp-caption-text, figcaption { margin-top: .4em; color: var(--muted); font-size: .82rem; text-align: center; }
.entry .wp-block-button__link { border-radius: 10px; background: linear-gradient(180deg, #d81b25, #8f0c13); color: #fff; font-weight: 700; text-decoration: none; }
.entry .wp-block-embed, .entry .wp-block-video { margin: 1.4em 0; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 0; padding: 0; list-style: none; }
.tags a { display: inline-block; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; text-decoration: none; }
.tags a:hover { border-color: var(--red); }

.crumbs { margin: 0 0 4px; color: var(--muted); font-size: .82rem; }
.crumbs a { color: var(--muted); }
.crumb-sep { margin: 0 6px; color: var(--red); }

.single__media { margin: 0 0 22px; }
.single__media img { width: 100%; border-radius: var(--radius-sm); }

/* ---------- Knapper og felter ---------- */

.btn,
input[type="submit"],
button[type="submit"]:not(.icon-btn) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: 800 .8rem/1 var(--font);
    letter-spacing: .05em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active,
input[type="submit"]:active { transform: translateY(1px); }
.btn .icon { width: 16px; height: 16px; }

.btn--red,
input[type="submit"],
button[type="submit"]:not(.icon-btn) {
    border-color: #4a0509;
    background: linear-gradient(180deg, #d81b25, #8f0c13);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 2px 6px rgba(0, 0, 0, .5);
    color: #fff;
}
.btn--red:hover,
input[type="submit"]:hover,
button[type="submit"]:not(.icon-btn):hover { background: linear-gradient(180deg, #ee2b35, #a5101a); color: #fff; }

.btn--ghost { border-color: var(--line); background: rgba(0, 0, 0, .28); color: var(--text); }
.btn--ghost:hover { border-color: var(--red); color: #fff; }
.btn--ghost.is-copied { border-color: var(--green); background: rgba(76, 194, 106, .15); color: #fff; }

.btn--sm { padding: 8px 10px; border-radius: 8px; font-size: .7rem; }

.btn--steam {
    padding: 8px 13px;
    border-color: #3d5a73;
    background: linear-gradient(180deg, #2a475e, #171a21);
    color: #fff;
    font-size: .74rem;
}
.btn--steam:hover { border-color: #66c0f4; color: #fff; }

input[type="text"], input[type="search"], input[type="email"], input[type="url"], input[type="password"],
input[type="number"], input[type="tel"], textarea, select {
    width: 100%;
    padding: 9px 12px;
    border: 1px dotted rgba(227, 35, 45, .8);
    border-radius: 8px;
    background: rgba(0, 0, 0, .35);
    color: #eee;
    font: inherit;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-style: solid;
    border-color: var(--red-hi);
    box-shadow: 0 0 0 3px rgba(196, 18, 28, .25);
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--red); }
::placeholder { color: #8b8282; opacity: 1; }

.search-form { display: flex; gap: 6px; margin-top: 16px; }
.search-form__input { flex: 1; min-width: 0; }
.search-form__btn { flex: none; width: 42px; height: 42px; border-color: var(--line); background: rgba(0, 0, 0, .3); }

/* ---------- Servere ---------- */

.servers { display: grid; gap: 14px; }

.srv {
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .6);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, .3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 3px 5px 12px rgba(0, 0, 0, .55);
}
.srv__map {
    position: relative;
    aspect-ratio: 16 / 7;
    background-color: #1a1515;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: filter .3s;
}
.srv__map::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .78));
}
.srv__status {
    position: absolute;
    z-index: 1;
    left: 8px;
    top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .65);
    color: #ddd;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.srv__mapname {
    position: absolute;
    z-index: 1;
    left: 10px;
    bottom: 4px;
    color: #fff;
    font-family: var(--display);
    font-size: 1.35rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-shadow: 0 2px 4px #000;
}
.srv__body { padding: 10px 12px 12px; }
.srv__name { margin: 0 0 6px; color: var(--heading); font-size: .88rem; font-weight: 800; }
.srv__players { display: grid; gap: 5px; margin-bottom: 10px; color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.srv__players b { color: #fff; font-size: .95rem; }
.srv__players small { font-size: .72rem; }
.bar { display: block; height: 6px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .08); }
.bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8f0c13, #e3232d); transition: width .6s ease; }
.srv__join { width: 100%; }
/* Konsolkommandoen (den sikre vej ind): klik kopierer den */
.srv__cmd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    margin-top: 6px;
    padding: 6px 9px;
    border: 1px dashed rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(0, 0, 0, .35);
    color: var(--muted);
    font-size: .72rem;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}
.srv__cmd code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d9d2d2; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.srv__cmd .icon { width: 14px; height: 14px; flex: none; }
.srv__cmd:hover { border-color: var(--red); color: #fff; }
.srv__cmd.is-copied { border-color: var(--green); border-style: solid; color: #fff; }
.srv.is-offline .srv__map { filter: grayscale(1) brightness(.55); }
.srv.is-offline .srv__join { opacity: .45; pointer-events: none; }
.srv__live {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 7px 10px;
    border: 1px solid rgba(196, 18, 28, .6);
    border-radius: 8px;
    background: rgba(196, 18, 28, .2);
    color: #fff;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    text-decoration: none;
}
.srv__live:hover { background: rgba(196, 18, 28, .35); color: #fff; }
.srv__live[hidden] { display: none; }

.servers--grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin: 1.4em 0; }
.entry .srv__name { margin: 0 0 6px; font-size: .95rem; }

/* ---------- Widgets ---------- */

.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.widget li:last-child { border-bottom: 0; }
.widget select { margin-top: 4px; }
.widget img { height: auto; }
.widget .post-date, .widget .rss-date, .widget .bbp-forum-freshness, .widget .bbp-topic-meta { display: block; color: var(--muted); font-size: .76rem; }
.widget_text .textwidget > :last-child { margin-bottom: 0; }
.widget_text .textwidget br + br { display: none; }

/* ---------- Mobilmenu ---------- */

.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer[hidden] { display: none; }
.drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .68);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}
.drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(380px, 88vw);
    padding: 24px 22px 32px;
    overflow-y: auto;
    border-radius: var(--radius) 0 0 var(--radius);
    animation: uber-drawer .22s ease-out;
}
.drawer__close { position: absolute; top: 12px; right: 12px; }
@keyframes uber-drawer {
    from { transform: translateX(100%); }
}

.drawer .panel--servers { margin-top: 22px; padding: 0; border: 0; background: none; box-shadow: none; }

/* Kort besked nederst ("Kopieret!") */
.toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 300;
    max-width: calc(100% - 32px);
    padding: 10px 16px;
    border: 1px solid rgba(76, 194, 106, .6);
    border-radius: 10px;
    background: rgba(10, 10, 10, .92);
    box-shadow: var(--shadow);
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 10px);
    transition: opacity .2s, transform .2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast code { padding: .1em .35em; border-radius: 4px; background: rgba(255, 255, 255, .1); }

/* ---------- Sidetal og navigation ---------- */

.pagination, .comments-pagination, .post-navigation { margin-top: 30px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.page-numbers {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(0, 0, 0, .3);
    color: var(--text);
    font-size: .85rem;
    font-weight: 800;
    text-decoration: none;
}
a.page-numbers:hover { border-color: var(--red); color: #fff; }
.page-numbers.current { border-color: var(--red); background: var(--red); color: #fff; }
.page-numbers.dots { border: 0; background: none; }

.post-navigation .nav-links { justify-content: space-between; align-items: stretch; }
.post-navigation .nav-previous, .post-navigation .nav-next { max-width: 48%; }
.post-navigation .nav-next { margin-left: auto; text-align: right; }
.post-navigation a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: 100%;
    padding: 12px 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(0, 0, 0, .25);
    text-decoration: none;
}
.post-navigation a:hover { border-color: var(--red); }
.nav-dir { color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.nav-title { color: var(--heading); font-weight: 700; }

.page-links { margin-top: 1.4em; font-weight: 700; }

/* ---------- Kommentarer ---------- */

.comments { margin-top: 36px; padding-top: 6px; border-top: 1px solid var(--line-soft); }
.comments .label { margin-top: 18px; }
.comment-list, .comment-list .children { margin: 0; padding: 0; list-style: none; }
.comment-list .children { margin-left: clamp(12px, 4vw, 40px); }
.comment-body {
    margin: 12px 0;
    padding: 14px 16px;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    background: rgba(0, 0, 0, .22);
}
.comment-author { display: flex; align-items: center; gap: 10px; color: var(--heading); font-weight: 700; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { margin: 2px 0 8px 54px; font-size: .75rem; }
.comment-metadata a { color: var(--muted); }
.comment-content { margin-left: 54px; }
.comment-content > :last-child { margin-bottom: 0; }
.reply { margin: 8px 0 0 54px; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.bypostauthor > .comment-body { border-color: rgba(196, 18, 28, .45); }
.comment-respond { margin-top: 26px; }
.comment-form p { margin: 0 0 12px; }
.comment-form label { display: block; margin-bottom: 4px; color: var(--muted); font-size: .82rem; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; }
.comments__closed { color: var(--muted); }

/* ---------- 404 ---------- */

.sheet--404 { text-align: center; }
.sheet--404 .label--xl::after { left: 50%; transform: translateX(-50%); }
.sheet--404 .entry::before {
    content: "";
    display: block;
    width: 246px;
    height: 172px;
    margin: -10px auto 4px;
    background: url("../img/blood-big.png") no-repeat center / contain;
}
.sheet--404 .entry p:has(.btn) { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sheet--404 .search-form { max-width: 420px; margin-inline: auto; }

/* ---------- Fod ---------- */

.site-footer {
    padding: 8px 0 40px;
    color: #807878;
    font-size: .78rem;
    text-align: center;
}
.site-footer::before {
    content: "";
    display: block;
    width: min(560px, 80%);
    height: 25px;
    margin: 0 auto 14px;
    background: url("../img/brush.png") no-repeat center / 100% 25px;
    opacity: .85;
}
.site-footer a { color: #aaa1a1; }
.site-footer__copy { margin: 0; }
.site-footer__widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-bottom: 22px; text-align: left; }
.footer-widget__title { margin: 0 0 8px; color: var(--heading); font-size: .9rem; }
.footer-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0 0 10px; padding: 0; list-style: none; }

.to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 40;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(0, 0, 0, .75);
    color: #ddd;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .2s, transform .2s, border-color .2s;
}
.is-scrolled .to-top { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { border-color: var(--red); color: #fff; }

/* ---------- Mindre skærme ---------- */

@media (max-width: 1023.98px) {
    .topnav { display: none; }
    .menu-toggle { display: inline-grid; }
    .brand { font-size: 1.3rem; }
    .sidebar { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: start; }
    .panel--menu { display: none; }
}

@media (max-width: 640px) {
    :root { --topbar-h: 54px; }
    .topbar__inner { gap: 12px; }
    .topbar__tools { gap: 6px; }
    .pills, .banner__tagline, .userbox__name { display: none; }
    .btn--steam { padding: 8px 10px; }
    .userbox__chev { display: none; }
    .usermenu { position: fixed; top: calc(var(--topbar-h) + 6px); right: 12px; left: 12px; width: auto; }
    .btn--steam span { display: none; }
    .banner__img { height: 112px; object-fit: cover; object-position: 0 50%; }
    .layout { padding-top: 14px; }
    .sheet { padding: 20px 16px 24px; border-radius: 14px; }
    .card { padding: 18px 16px 20px; }
    .card__media { margin: -18px -16px 14px; }
    .card__title { font-size: 1.15rem; }
    .comment-metadata, .comment-content, .reply { margin-left: 0; }
    .post-navigation .nav-previous, .post-navigation .nav-next { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    .topbar, .drawer, .banner, .sidebar, .site-footer, .to-top, .comment-respond { display: none !important; }
    body { background: #fff; color: #000; }
    .sheet, .card { border: 0; background: none; box-shadow: none; }
    .sheet::before, .sheet::after, .label::after { display: none; }
    .label, .entry-title { color: #000; background: none; filter: none; }
    a { color: #000; }
}
