/* ============================================================
   Gamer-Hytten - stilark
   Moerk og afdaempet palet, saa det er rart for oejnene
   ============================================================ */

:root {
  --bg: #0b0c14;
  --bar: #10111c;
  --bar2: #0e0f1a;
  --panel: #141624;
  --panel2: #1c1f31;
  --input: #181a2a;
  --line: #23263a;
  --line2: #33374f;
  --text: #e4e6f0;
  --text2: #bfc3d6;
  --muted: #9da2bb;
  --orange: #E0892E;
  --pink: #C94F84;
  --violet: #8A6FD6;
  --cyan: #2E9FC0;
  --green: #76B04A;
  --gold: #D8B142;
  --link: #E8A05A;
  --font: Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-arcade: Bungee, "Arial Black", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); }
a { color: var(--link); text-decoration: none; }
a:hover { color: #F0BE85; text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; }
h1 { font-size: 38px; letter-spacing: -0.02em; margin-bottom: 12px; }
h2 { font-size: 22px; }
h3 { font-size: 15px; margin-top: 14px; }
img { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.gold { color: var(--gold); }
.accent { color: var(--orange); }
.grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pre { white-space: pre-line; }

.wrap { max-width: 1360px; margin: 0 auto; padding: 0 24px; }
.main { padding-top: 26px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 28px; }

/* ---------- top ---------- */

.stripe { display: flex; height: 3px; opacity: .85; }
.stripe span { flex: 1; }
.stripe span:nth-child(1) { background: var(--orange); }
.stripe span:nth-child(2) { background: var(--pink); }
.stripe span:nth-child(3) { background: var(--violet); }
.stripe span:nth-child(4) { background: var(--cyan); }
.stripe span:nth-child(5) { background: var(--green); }
.stripe span:nth-child(6) { background: var(--gold); }

.topbar { background: var(--bar); border-bottom: 1px solid #20233a; }
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.logo-text { font-family: var(--font-arcade); font-size: 22px; color: var(--text); letter-spacing: .01em; }
.mainnav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-weight: 600; }
.mainnav a { color: var(--text); }
.topbar-right { flex: 1 1 300px; display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar-right form { margin: 0; }
.search { flex: 1 1 200px; max-width: 320px; }
.search label { display: flex; align-items: center; gap: 8px; background: var(--input); border: 1px solid #2a2d44; border-radius: 10px; padding: 0 12px; height: 44px; color: var(--muted); }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--text); font: inherit; height: 42px; }
.search-top { flex: 0 1 200px; }
.search-top label { height: 36px; padding: 0 10px; gap: 6px; border-radius: 8px; font-size: 14px; }
.search-top input { height: 34px; }
.me { display: flex; align-items: center; gap: 6px; }

.livebar { background: var(--bar2); border-bottom: 1px solid #20233a; font-size: 14px; color: var(--text2); }
.livebar-inner { padding-top: 9px; padding-bottom: 9px; }
.livebar strong { color: var(--text); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 6px; vertical-align: middle; }

/* ---------- knapper ---------- */

.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; font: inherit; font-weight: 700; border: 0; cursor: pointer; text-decoration: none !important; }
.btn-sm { height: 36px; padding: 0 12px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--orange); color: #1c1004; }
.btn-primary:hover { background: #ec9a45; color: #1c1004; }
.btn-gold { background: var(--gold); color: #241b02; }
.btn-gold:hover { color: #241b02; background: #e3c058; }
.btn-ghost { background: var(--input); border: 1px solid var(--line2); color: var(--text); font-weight: 600; }
.btn-ghost:hover { color: var(--text); background: var(--panel2); }

/* ---------- paneler og layout ---------- */

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.row { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.row > * { flex: 1 1 340px; min-width: 0; }
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.split-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.split-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 24px; }
.h-side { font-size: 19px; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }

.pill { display: inline-block; padding: 5px 12px; border-radius: 999px; font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.pill-cyan { background: rgba(46,159,192,.14); color: #7CC6DD; }

.hero { flex: 3 1 480px; padding: 36px 40px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.hero h1 { font-size: 44px; line-height: 1.06; margin: 0; max-width: 640px; }
.hero p { margin: 0; color: var(--text2); font-size: 17px; max-width: 560px; }

.daily { flex: 2 1 400px; padding: 0; overflow: hidden; display: flex; flex-wrap: wrap; border-color: rgba(216,177,66,.35); }
.daily-img { flex: 1 1 200px; min-height: 220px; position: relative; display: flex; align-items: center; justify-content: center; }
.daily-img img { max-width: 70%; max-height: 70%; image-rendering: auto; border-radius: 8px; }
.daily-badge { position: absolute; left: 14px; top: 14px; padding: 5px 10px; border-radius: 8px; background: var(--gold); color: #241b02; font-weight: 700; font-size: 12px; letter-spacing: .06em; }
.daily-body { flex: 1 1 220px; padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; justify-content: center; align-items: flex-start; }
.daily-body h2 { font-size: 26px; }
.daily-body p { margin: 0; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tile { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.tile-icon { width: 46px; height: 46px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.tile-text { display: flex; flex-direction: column; line-height: 1.25; }
.tile-value { font-family: var(--font-head); font-size: 26px; font-weight: 700; }
.delta { font-size: 13px; font-weight: 600; }
.delta.up { color: #8CC266; }
.delta.down { color: #D98575; }

/* ---------- kategorier ---------- */

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.cat { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none !important; }
.cat:hover { border-color: var(--line2); color: var(--text); }
.cat-img { height: 108px; display: flex; align-items: center; justify-content: center; border-bottom: 2px solid; }
.cat-img-sm { height: 72px; width: 72px; border-radius: 14px; border: 1px solid; flex: none; }
.cat-body { padding: 10px 14px; display: flex; flex-direction: column; }
.cat-head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.cat-head h1 { margin: 0; }
.cat-head p { margin: 0; }
.cat-head .seg { margin-left: auto; }

/* ---------- spilkort ---------- */

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--text); text-decoration: none !important; }
.card:hover { border-color: var(--line2); color: var(--text); transform: translateY(-2px); transition: transform .12s; }
.card-img { position: relative; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.card-img img { height: 64%; width: auto; max-width: 80%; object-fit: contain; border-radius: 6px; }
.card-letter { font-family: var(--font-arcade); font-size: 40px; }
.card-cat { position: absolute; left: 10px; top: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(11,12,20,.8); color: #d3d6e4; font-size: 12px; font-weight: 600; }
.card-new { position: absolute; right: 10px; top: 10px; padding: 2px 7px; border-radius: 6px; background: var(--green); color: #0f1d05; font-size: 11px; font-weight: 700; }
.card-type { position: absolute; right: 10px; bottom: 10px; padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 700; background: rgba(11,12,20,.8); }
.card-type-html5 { color: #7CC6DD; }
.card-type-v2, .card-type-v32 { color: #DE8AB0; }
.card-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.card-title { font-weight: 600; }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- lister ---------- */

.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.list li { display: flex; align-items: center; gap: 9px; }
.list a { color: var(--text); font-weight: 600; }
.rank { width: 22px; text-align: center; font-family: var(--font-arcade); flex: none; }
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-weight: 700; flex: none; object-fit: cover; vertical-align: middle; }
.flag { border-radius: 2px; vertical-align: middle; box-shadow: 0 0 0 1px rgba(255,255,255,.15); flex: none; }

.podium { display: flex; align-items: flex-end; gap: 12px; margin-top: 8px; }
.podium-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.podium-name { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.podium-bar { width: 100%; border-radius: 12px 12px 0 0; background: var(--panel2); border-top: 3px solid; display: flex; flex-direction: column; align-items: center; padding-top: 12px; }
.podium-place { font-family: var(--font-arcade); font-size: 22px; line-height: 1; }
.podium-count { font-family: var(--font-head); font-weight: 700; font-size: 19px; margin-top: 6px; }

/* ---------- spilside ---------- */

.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: -14px; }
.game-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.game-head h1 { margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chip { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text2); font-size: 13px; font-weight: 600; }

.banner { border-radius: 12px; padding: 14px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; border: 1px solid; }
.banner-ok { background: rgba(118,176,74,.12); border-color: rgba(118,176,74,.45); }
.banner-guest { background: rgba(216,177,66,.10); border-color: rgba(216,177,66,.45); }
.banner-info { background: rgba(46,159,192,.10); border-color: rgba(46,159,192,.4); }

.stage { position: relative; width: 100%; max-height: 80vh; margin: 0 auto; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.stage iframe, .stage ruffle-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.stage:fullscreen { max-height: none; border-radius: 0; border: 0; background: #000 !important; }
.stage-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 24px; background: rgba(8,9,15,.85); }
.guest-note { margin: -16px 0 0; }

.about h2, .stats h2 { margin-bottom: 10px; }
.about p { margin: 0; color: var(--text2); }
.stats dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.stats dl > div { border-left: 3px solid; padding-left: 10px; }
.stats dt { font-size: 13px; color: var(--muted); }
.stats dd { margin: 0; font-weight: 600; }

.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.champ { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; padding: 16px; }
.champ-label { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.champ-score { font-family: var(--font-arcade); font-size: 22px; color: var(--gold); line-height: 1; }
.mine { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; }
.mine > strong, .mine > span.small { display: block; }
.mine:has(> span.small) { flex-direction: column; align-items: flex-start; gap: 2px; }

.toplist { padding: 0; overflow: hidden; }
.toplist-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 16px 18px 8px; }
.toplist > p { padding: 0 18px 16px; margin: 0; }
.ranks { list-style: none; margin: 0; padding: 0 8px 10px; }
.ranks li { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 12px; }
.ranks li.first { background: rgba(216,177,66,.10); }
.ranks li.me-row { outline: 1px solid rgba(46,159,192,.5); }
.ranks strong { display: flex; align-items: center; gap: 6px; }

.seg { display: flex; background: var(--panel2); border-radius: 8px; padding: 3px; font-size: 13px; font-weight: 600; }
.seg a { border-radius: 6px; padding: 6px 10px; color: var(--muted); text-decoration: none !important; }
.seg a[aria-current="true"] { background: #2e3249; color: var(--text); }

.pager { display: flex; align-items: center; justify-content: center; gap: 16px; }

/* ---------- soeg ---------- */

.search-head { display: flex; flex-direction: column; gap: 14px; }
.search-head h1 { margin: 0; }
.search-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.search-big { flex: 0 1 340px; max-width: 340px; display: flex; gap: 8px; }
.search-big label { flex: 1; height: 36px; padding: 0 10px; gap: 6px; border-radius: 8px; font-size: 14px; }
.search-big input { height: 34px; }

/* ---------- login ---------- */

.auth { display: flex; justify-content: center; padding: 40px 0; }
.auth-box { width: 100%; max-width: 420px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.auth-box h1 { margin: 0; }
.auth-box p { margin: 0; }
.auth-box form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.field input { height: 46px; border-radius: 10px; border: 1px solid #2a2d44; background: var(--input); color: var(--text); font: inherit; font-weight: 400; padding: 0 12px; }
.field input:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }

/* ---------- bund ---------- */

.footer { border-top: 1px solid #20233a; background: var(--bar); }
.footer-inner { padding-top: 22px; padding-bottom: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }

@media (max-width: 640px) {
  h1 { font-size: 30px; }
  .hero { padding: 26px 22px; }
  .hero h1 { font-size: 32px; }
  .wrap { padding: 0 14px; }
}

/* ---------- brugere: links, profil, oprettelse, indstillinger ---------- */

.user-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: inherit; min-width: 0; }
.user-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-link:hover { color: var(--link); text-decoration: none; }
.user-link:hover span { text-decoration: underline; }
.user-link.quiet { color: var(--muted); }
a.me { color: var(--text); text-decoration: none; border-radius: 10px; padding: 4px 6px; }
a.me:hover { background: var(--panel2); color: var(--text); text-decoration: none; }
.btn-icon { width: 44px; padding: 0; }

.banner-error { background: rgba(201,96,72,.12); border-color: rgba(201,96,72,.5); }
.errors { margin: 0; padding-left: 18px; }
.center { text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field small { font-weight: 400; }
.rules { background: var(--panel2); border-radius: 10px; padding: 12px 14px; color: var(--text2); }
.rules ul { margin: 6px 0 0; padding-left: 18px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--orange); }

.profile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 24px 28px; }
.profile-avatar .avatar { box-shadow: 0 0 0 4px var(--panel2), 0 0 0 6px var(--line2); }
.profile-info { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; }
.profile-info h1 { margin: 0; }
.profile-edit { align-self: flex-start; }
.chip { display: inline-flex; align-items: center; gap: 6px; }
.chip-gold { color: var(--gold); border-color: rgba(216,177,66,.45); }
.chip-green { color: #9BD07A; border-color: rgba(118,176,74,.45); }

.record-panel { padding: 8px; }
.record-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px; }
.record-grid a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 12px; color: var(--text); text-decoration: none; }
.record-grid a:hover { background: var(--panel2); color: var(--text); }
.record-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-icon { flex: none; border-radius: 8px; object-fit: contain; background: var(--panel2); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }

.settings-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.settings-head h1 { margin: 0; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 20px; align-items: start; }
.settings-box { display: flex; flex-direction: column; gap: 12px; }
.settings-box p { margin: 0; }
.settings-box h3 { margin: 6px 0 0; }
.avatar-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.avatar-forms { flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.upload-form, .inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stack-form { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.stack-form .btn { align-self: flex-start; }
.file input { color: var(--text2); font: inherit; font-size: 14px; max-width: 260px; }
.file input::file-selector-button { font: inherit; font-weight: 600; margin-right: 10px; height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line2); background: var(--input); color: var(--text); cursor: pointer; }
.select { height: 36px; border-radius: 8px; border: 1px solid #2a2d44; background: var(--input); color: var(--text); font: inherit; padding: 0 10px; min-width: 220px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 0; color: #fff; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 0 0 2px transparent; }
.swatch.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--text); }
.swatch:hover { transform: scale(1.06); }
@media (max-width: 480px) { .settings-grid { grid-template-columns: 1fr; } }
@media (min-width: 900px) {
  .topbar-right { flex-wrap: nowrap; }
  .search-top { min-width: 130px; }
}
.swatches { gap: 8px; }
.swatch { width: 36px; height: 36px; }

/* ---------- shoutbox ---------- */

.shoutbox { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border-color: rgba(201,79,132,.35); }
.shoutbox-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shoutbox-head h2 { display: flex; align-items: center; gap: 8px; font-size: 24px; color: var(--text); }
.shoutbox-head h2 svg { color: var(--pink); }
.shouts { list-style: none; margin: 0; padding: 4px 6px 4px 0; height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; scrollbar-color: var(--line2) transparent; }
.shout { display: flex; gap: 10px; align-items: flex-start; padding: 7px 8px; border-radius: 10px; }
.shout:hover { background: rgba(255,255,255,.025); }
.shout-mine { background: rgba(46,159,192,.06); }
.shout-body { flex: 1; min-width: 0; }
.shout-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.shout-meta time { color: var(--muted); font-weight: 400; font-size: 12px; }
.shout-admin { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); border: 1px solid rgba(216,177,66,.45); border-radius: 4px; padding: 0 4px; }
.shout-body p { margin: 2px 0 0; color: var(--text2); overflow-wrap: anywhere; line-height: 1.45; }
.shout-del { margin: 0 0 0 auto; }
.shout-del button { background: none; border: 0; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; padding: 0 4px; opacity: 0; }
.shout:hover .shout-del button, .shout-del button:focus { opacity: 1; }
.shout-del button:hover { color: #D98575; }
.shout-form { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.shout-form input { flex: 1; min-width: 0; height: 40px; border-radius: 10px; border: 1px solid #2a2d44; background: var(--input); color: var(--text); font: inherit; padding: 0 12px; }
.shout-form input:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.shout-error { margin: -4px 0 0; color: #E39A88; }
.shout-guest { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.shout-guest span { flex: 1; }
@media (max-width: 600px) { .shouts { height: 300px; } }
/* Shoutbox: beskederne "sidder" nederst som i en chat */
.shouts > li:first-child { margin-top: auto; }
/* Dagens spil: stoerre ikon */
.daily-img img { width: 46%; max-width: 160px; height: auto; max-height: none; }

/* ---------- favoritter og stjerner ---------- */

.game-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 12px 16px; margin-top: -12px; }
.fav-btn svg { fill: none; stroke: var(--pink); stroke-width: 2; }
.fav-btn.on { border-color: rgba(201,79,132,.55); background: rgba(201,79,132,.12); }
.fav-btn.on svg { fill: var(--pink); }
.fav-btn:disabled { opacity: .6; }
.rate { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.rate-form { display: inline-flex; gap: 2px; }
.star { background: none; border: 0; padding: 2px; cursor: pointer; line-height: 0; display: inline-flex; }
.star svg { fill: #33374f; transition: fill .1s, transform .1s; }
.star.on svg { fill: var(--gold); }
.rate-form.hovering .star.on svg { fill: #E9C766; }
button.star:hover svg { transform: scale(1.12); }
a.rate-form { text-decoration: none !important; }
.rate-avg { color: var(--text2); }
.social-error { color: #E39A88; width: 100%; }

/* ---------- filtre i kategorier ---------- */

.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: -10px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); color: var(--text2); font-weight: 600; font-size: 14px; text-decoration: none !important; }
.fchip span { color: var(--muted); font-weight: 500; font-size: 12px; }
.fchip:hover { color: var(--text); border-color: #45496a; }
.fchip[aria-current="true"] { background: rgba(118,176,74,.14); border-color: rgba(118,176,74,.55); color: #B5DB97; }
.fchip[aria-current="true"] span { color: #9BC57C; }
.pager { gap: 6px; flex-wrap: wrap; }
.pg { min-width: 38px; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel); color: var(--text2); font-weight: 600; text-decoration: none !important; }
a.pg:hover { color: var(--text); border-color: #45496a; background: var(--panel2); }
.pg.on { background: var(--orange); border-color: var(--orange); color: #1c1004; }
.pg.off { opacity: .35; }
.pg.gap { border: 0; background: none; min-width: 20px; padding: 0; color: var(--muted); }

/* ---------- admin ---------- */

.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.admin-head h1 { margin: 0; display: flex; align-items: center; gap: 12px; }
.admin-badge { font-size: 12px; letter-spacing: .1em; padding: 4px 8px; border-radius: 6px; background: var(--gold); color: #241b02; font-family: var(--font); font-weight: 800; }
.admin-tabs a { padding: 8px 14px; font-size: 14px; }
.admin-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 16px; }
.input { height: 36px; border-radius: 8px; border: 1px solid #2a2d44; background: var(--input); color: var(--text); font: inherit; padding: 0 12px; min-width: 240px; flex: 1 1 240px; max-width: 360px; }
.admin-filter .select { min-width: 150px; }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 12px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: rgba(255,255,255,.02); }
.admin-table a { color: var(--text); }
.admin-table a:hover { color: var(--link); }
.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.admin-table .c-check { width: 36px; }
.admin-table input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--orange); }
.nowrap { white-space: nowrap; }
.break { word-break: break-all; font-weight: 500; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.row-banned td { opacity: .6; }
.tag-red { color: #E39A88; font-weight: 600; }
.inline-actions { display: inline-flex; gap: 6px; margin: 0; }
.tile-link { color: var(--text); text-decoration: none !important; }
.tile-link:hover { border-color: var(--line2); color: var(--text); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .span2 { grid-column: span 2; }
.form-grid textarea { border-radius: 10px; border: 1px solid #2a2d44; background: var(--input); color: var(--text); font: inherit; font-weight: 400; padding: 10px 12px; resize: vertical; }
.form-grid .select { width: 100%; height: 46px; border-radius: 10px; }
.slug-input { display: flex; align-items: center; gap: 4px; }
.slug-input input { flex: 1; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-game-icon { display: flex; justify-content: center; margin-bottom: 12px; }
.danger-zone { border-color: rgba(201,96,72,.4); }
.btn-danger { background: #B5533F; color: #fff; }
.btn-danger:hover { background: #C96048; color: #fff; }
.admin-link { color: var(--gold) !important; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span2 { grid-column: auto; } }
.code { margin: 0; padding: 10px 12px; border-radius: 8px; background: #0e0f19; border: 1px solid var(--line); color: #c9cde0; font: 13px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; word-break: break-all; }
.code.log { max-height: 320px; overflow: auto; font-size: 12px; }
.select-sm { height: 32px; min-width: 160px; font-size: 13px; }

/* ============================================================
   Forside v2: lavere shoutbox, stoerre kort, fortsaet, dagens
   spil, ugens konkurrence og flottere topliste
   ============================================================ */

/* Shoutbox lavere */
.shouts { height: 260px; }
@media (max-width: 600px) { .shouts { height: 240px; } }

/* Stoerre spilkort og billeder */
.card-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card-img img { height: 76%; max-width: 86%; }
.card-title { font-size: 15.5px; }

/* Fortsaet med at spille */
.continue-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.continue-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none !important; min-width: 0; }
.continue-card:hover { border-color: var(--line2); color: var(--text); background: var(--panel2); }
.continue-img { width: 52px; height: 52px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; font-weight: 700; font-size: 20px; }
.continue-img img { width: 82%; height: 82%; object-fit: contain; }
.continue-title { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.continue-play { width: 30px; height: 30px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(224,137,46,.15); color: var(--orange); font-size: 12px; }
.continue-card:hover .continue-play { background: var(--orange); color: #1c1004; }

/* Dagens spil */
.daily-img { min-height: 260px; }
.daily-img img { width: 58%; max-width: 190px; border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.daily-timer { position: absolute; left: 14px; bottom: 14px; padding: 4px 10px; border-radius: 8px; background: rgba(11,12,20,.8); color: var(--text2); font-size: 12px; font-weight: 600; }
.daily-body { gap: 12px; }
.mini-top { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; width: 100%; }
.mini-top li { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 5px 8px; border-radius: 8px; background: rgba(255,255,255,.03); }
.mini-top li:first-child { background: rgba(216,177,66,.10); }
.mini-top .rank { width: 18px; font-size: 14px; }

/* Ugens konkurrence */
.weekly { display: flex; flex-wrap: wrap; padding: 0; overflow: hidden; border-color: rgba(138,111,214,.45); background: linear-gradient(135deg, rgba(138,111,214,.10), transparent 55%), var(--panel); }
.weekly-img { flex: 1 1 220px; min-height: 240px; position: relative; display: flex; align-items: center; justify-content: center; }
.weekly-img img { width: 56%; max-width: 180px; border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.weekly-badge { position: absolute; left: 14px; top: 14px; padding: 5px 10px; border-radius: 8px; background: var(--violet); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .08em; }
.weekly-body { flex: 2 1 320px; padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.weekly-body h2 { font-size: 26px; }
.weekly-body p { margin: 0; }
.weekly-kicker { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #B4A2EC; }
.weekly-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-top: 4px; }
.weekly-foot .small { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.crown { display: inline-block; vertical-align: middle; filter: drop-shadow(0 2px 6px rgba(216,177,66,.45)); }

/* Flottere podium / topliste */
.podium-panel { background: radial-gradient(ellipse at 50% 100%, rgba(216,177,66,.10), transparent 65%), var(--panel); }
.podium { gap: 10px; }
.podium-col { gap: 7px; }
.podium-avatar { border-radius: 50%; box-shadow: 0 0 0 3px var(--medal), 0 0 22px color-mix(in srgb, var(--medal) 45%, transparent); display: inline-flex; }
.podium-1 .crown { margin-bottom: -6px; }
.podium-bar { border-top: 3px solid var(--medal); background: linear-gradient(180deg, color-mix(in srgb, var(--medal) 22%, var(--panel2)), var(--panel2) 70%); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.podium-place { color: var(--medal); text-shadow: 0 0 14px color-mix(in srgb, var(--medal) 60%, transparent); }
.podium-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.podium-big { padding: 28px 24px 0; }
.podium-big .podium { max-width: 640px; margin: 0 auto; }
.podium-big .podium-count { font-size: 22px; }
.rank-table .rank { font-size: 16px; width: auto; }
.rank-user { display: inline-flex; align-items: center; gap: 10px; }
.rank-top td { background: rgba(216,177,66,.04); }

/* Ugens top 5 med ledige pladser, HTML5-sektion, sidste uges vinder */
.weekly-top li.empty { background: transparent; border: 1px dashed var(--line2); }
.empty-avatar { background: var(--panel2) !important; color: var(--muted); font-size: 12px; }
.h5-tag { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 3px 8px; border-radius: 6px; font-size: 12px; letter-spacing: .06em; background: rgba(46,159,192,.15); color: #7CC6DD; font-family: var(--font); font-weight: 800; }
.section-sub { margin: -8px 0 14px; }
.winner-box { display: flex; flex-direction: column; gap: 12px; border-color: rgba(216,177,66,.4); background: radial-gradient(circle at 20% 30%, rgba(216,177,66,.14), transparent 60%), var(--panel); }
.winner-box .weekly-kicker { color: var(--gold); }
.winner-main { display: flex; align-items: center; gap: 16px; }
.winner-avatar { position: relative; display: inline-flex; border-radius: 50%; box-shadow: 0 0 0 3px var(--gold), 0 0 24px rgba(216,177,66,.4); }
.winner-avatar .crown { position: absolute; top: -18px; left: 50%; transform: translateX(-50%) rotate(-8deg); }
.winner-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.winner-name { font-size: 18px; }
.winner-score { font-family: var(--font-arcade); color: var(--gold); font-size: 20px; line-height: 1.2; }

/* ============================================================
   Forside v4: mindre kort med mere info, Arcade-oversigt,
   kompakte kategorier og Arcade-navigation
   ============================================================ */

/* Bredere side paa store skaerme -> 6 kort pr. raekke */
@media (min-width: 1700px) { .wrap { max-width: 1600px; } }

/* Mindre spilkort (ca. 20-25 % mindre) */
.card-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
@media (max-width: 1280px) { .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px)  { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card { position: relative; border-radius: 14px; }
.card:hover { transform: translateY(-2px); transition: transform .12s; }
.card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card-link:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.card-img { aspect-ratio: 16 / 11; }
.card-img img { height: 58%; max-width: 70%; }
.card-letter { font-size: 32px; }
.card-cat, .card-new, .card-type { font-size: 11px; padding: 2px 6px; }
.card-cat { left: 8px; top: 8px; }
.card-new { right: 8px; top: 8px; }
.card-type { right: 8px; bottom: 8px; }
.card-body { padding: 9px 11px 10px; gap: 3px; }
.card-title { font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-leader { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-leader b { color: var(--gold); font-weight: 700; margin-left: auto; }
.card-stats { display: flex; gap: 10px; font-size: 12px; color: var(--muted); }
.card-actions { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2; display: flex; gap: 6px; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; }
.card:hover .card-actions, .card:focus-within .card-actions { opacity: 1; transform: none; }
.card-actions a { display: inline-flex; align-items: center; justify-content: center; height: 28px; padding: 0 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700; text-decoration: none !important; }
.ca-play { flex: 1; background: var(--orange); color: #1c1004; }
.ca-play:hover { background: #ec9a45; color: #1c1004; }
.ca-top { background: rgba(11,12,20,.85); color: var(--gold); }
.card:hover .card-type { opacity: 0; }
@media (hover: none) { .card-actions { display: none; } }

/* Arcade-oversigt */
.overview { padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; border-top: 3px solid var(--orange); }
.overview-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.overview-head h2 { font-size: 22px; }
.overview-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 18px; }
@media (max-width: 1100px) { .overview-grid { grid-template-columns: 1fr 1fr; } .ov-wide { grid-column: span 2; order: -1; } }
@media (max-width: 640px)  { .overview-grid { grid-template-columns: 1fr; } .ov-wide { grid-column: auto; } }
.ov-col { min-width: 0; background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 8px; }
.ov-col h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); text-align: center; }
.ov-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ov-list a { display: flex; align-items: center; gap: 9px; padding: 4px 6px; border-radius: 8px; color: var(--text); font-size: 13.5px; text-decoration: none !important; }
.ov-list a:hover { background: var(--panel2); color: var(--text); }
.ov-list .card-new { position: static; }
.ov-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ov-table td { padding: 4px 6px; border-bottom: 1px solid rgba(255,255,255,.04); }
.ov-table tr:last-child td { border-bottom: 0; }
.ov-table .num { text-align: right; }
.ov-game { max-width: 0; width: 46%; }
.ov-game a { display: flex; align-items: center; gap: 8px; color: var(--text); min-width: 0; }
.ov-user { white-space: nowrap; }

/* Kompakte kategorier */
.cat-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 6px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: color-mix(in srgb, var(--c) 9%, var(--panel)); color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none !important; }
.cat-chip:hover { background: color-mix(in srgb, var(--c) 18%, var(--panel)); color: var(--text); }
.cat-chip-icon { width: 28px; height: 28px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.cat-chip-n { color: var(--muted); font-weight: 500; font-size: 12px; }

/* Arcade-navigation */
.arcade-nav { display: flex; flex-direction: column; gap: 14px; border-top: 3px solid var(--violet); }
.arcade-nav-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.arcade-nav-head h2 { font-size: 20px; }
.arcade-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.qbtn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 9px; background: var(--panel2); border: 1px solid var(--line2); color: var(--text); font-weight: 600; font-size: 13.5px; text-decoration: none !important; }
.qbtn:hover { border-color: var(--orange); color: var(--text); }
.letters { display: flex; flex-wrap: wrap; gap: 4px; }
.letters a { min-width: 32px; height: 30px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; color: var(--text2); font-weight: 700; font-size: 13px; text-decoration: none !important; background: rgba(255,255,255,.03); }
.letters a:hover { background: var(--panel2); color: var(--text); }
.letters a[aria-current="true"] { background: var(--orange); color: #1c1004; }
.arcade-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.arcade-filter .input { flex: 1 1 200px; max-width: none; min-width: 180px; }
.arcade-filter .select { min-width: 140px; }

/* ============================================================
   Forside v4: ny raekkefoelge (oversigt -> shoutbox -> dagens/
   ugens -> navigation -> spillerside -> spil -> Hall of Fame)
   ============================================================ */

.overview-head { align-items: center; }
.overview-title { font-size: 28px; margin: 0; }
.overview-sub { margin: 4px 0 0; }
.overview-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Statistiklinje (erstatter de fire store bokse) */
.stat-line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stat-line li { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 9px 12px; border-radius: 10px; background: color-mix(in srgb, var(--c) 8%, transparent); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); }
.stat-ico { color: var(--c); font-size: 14px; }
.stat-val { font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.stat-lbl { color: var(--muted); font-size: 13px; }
.stat-line .delta { margin-left: auto; font-size: 12px; }
@media (max-width: 900px) { .stat-line { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Shoutbox: ca. 300 px, kan udvides */
.shouts { height: 300px; transition: height .2s; }
.shouts.shouts-tall { height: 560px; }
.shoutbox-tools { display: inline-flex; align-items: center; gap: 12px; }
.shout-expand { height: 30px; font-size: 13px; }
@media (max-width: 600px) { .shouts { height: 280px; } .shouts.shouts-tall { height: 460px; } }

/* Social raekke: shoutbox + podium/online */
.home-social .split-side { gap: 14px; }
.home-social .podium-bar { padding-top: 8px; }
.home-social .podium-count { font-size: 17px; margin-top: 3px; }
.online-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.online-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--panel2); font-weight: 600; font-size: 13.5px; }

/* Dagens spil | Ugens konkurrence */
.featured-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .featured-duo { grid-template-columns: 1fr; } }
.feat { display: flex; padding: 0; overflow: hidden; min-width: 0; }
.feat-daily { border-color: rgba(216,177,66,.4); background: linear-gradient(135deg, rgba(216,177,66,.08), transparent 55%), var(--panel); }
.feat-weekly { border-color: rgba(138,111,214,.45); background: linear-gradient(135deg, rgba(138,111,214,.10), transparent 55%), var(--panel); }
.feat-img { flex: 0 0 38%; position: relative; display: flex; align-items: center; justify-content: center; min-height: 220px; }
.feat-img img { width: 64%; max-width: 150px; border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.feat-badge { position: absolute; left: 12px; top: 12px; padding: 4px 9px; border-radius: 7px; font-weight: 800; font-size: 11px; letter-spacing: .08em; }
.feat-badge-gold { background: var(--gold); color: #241b02; }
.feat-badge-violet { background: var(--violet); color: #fff; }
.feat-body { flex: 1; min-width: 0; padding: 18px 20px; display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.feat-body h2 { font-size: 22px; }
.feat-body .mini-top li { padding: 4px 8px; }
@media (max-width: 560px) { .feat { flex-direction: column; } .feat-img { flex-basis: auto; min-height: 170px; } }

/* Din spillerside (kompakt) */
.personal { padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--cyan); }
.personal-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.personal-head h2 { font-size: 18px; }
.personal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.personal-col h3 { margin: 0 0 4px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.personal .continue-play { width: 24px; height: 24px; font-size: 10px; }

/* Spilsektioner i fuld bredde: 6 pr. raekke paa store skaerme */
.home-games .card-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1279px) { .home-games .card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .home-games .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 759px)  { .home-games .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 519px)  { .home-games .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Hall of Fame-raekke */
.hof-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .hof-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .hof-row { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .ov-table td:last-child { display: none; }
  .ov-game { width: 55%; }
  .overview-title { font-size: 23px; }
}

/* ============================================================
   v5-PROTOTYPE: tre kolonner (venstremenu | indhold | faellesskab)
   ============================================================ */
.shell-v5 .topbar-inner, .shell-v5 .livebar-inner, .shell-v5 .footer-inner { max-width: none; padding-left: 18px; padding-right: 18px; }
.sb-toggle { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line2); background: var(--input); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.sb-toggle:hover { border-color: var(--orange); }

.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr) 300px; align-items: start; min-height: 70vh; }
.shell-main { padding: 22px 24px 64px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.sb { position: sticky; top: 0; max-height: 100vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.sb-left { border-right: 1px solid var(--line); background: var(--bar2); }
.sb-right { border-left: 1px solid var(--line); background: var(--bar2); }
.sb-inner { padding: 16px 12px 24px; display: flex; flex-direction: column; gap: 6px; }
.sb-right .sb-inner { padding: 16px 14px 24px; gap: 14px; }

/* Venstremenu */
.sb-nav { display: flex; flex-direction: column; gap: 2px; }
.sb-link { display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 10px; border-radius: 10px; color: var(--text2); font-weight: 600; font-size: 14.5px; text-decoration: none !important; white-space: nowrap; }
.sb-link:hover { background: var(--panel2); color: var(--text); }
.sb-link.on { background: rgba(224,137,46,.14); color: var(--text); box-shadow: inset 3px 0 0 var(--orange); }
.sb-ico { width: 24px; display: inline-flex; justify-content: center; flex: none; color: var(--muted); }
.sb-link.on .sb-ico, .sb-link:hover .sb-ico { color: var(--orange); }
.sb-cat-ico { width: 28px; height: 28px; border-radius: 7px; align-items: center; color: var(--c) !important; background: color-mix(in srgb, var(--c) 15%, transparent); }
.sb-cats .sb-link { height: 38px; }
.sb-count { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 500; }
.sb-heading { margin: 14px 10px 4px; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.sb-collapse { margin-top: 12px; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px dashed var(--line2); background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.sb-collapse:hover { color: var(--text); border-color: var(--muted); }

/* Sammenklappet venstremenu: kun ikoner */
.sb-left-collapsed .shell { grid-template-columns: 68px minmax(0, 1fr) 300px; }
.sb-left-collapsed .sb-left .sb-text, .sb-left-collapsed .sb-left .sb-count { display: none; }
.sb-left-collapsed .sb-left .sb-link { justify-content: center; padding: 0; }
.sb-left-collapsed .sb-left .sb-heading { margin: 10px 0 4px; height: 1px; background: var(--line); }
.sb-left-collapsed .sb-collapse { justify-content: center; padding: 0; }
.sb-left-collapsed .sb-collapse svg { transform: rotate(180deg); }

/* Skjult hoejre panel */
.sb-right-hidden .shell { grid-template-columns: 232px minmax(0, 1fr) 0; }
.sb-right-hidden.sb-left-collapsed .shell { grid-template-columns: 68px minmax(0, 1fr) 0; }
.sb-right-hidden .sb-right { display: none; }

/* Hoejre panel */
.sb-box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.sb-title { font-size: 16px; display: flex; align-items: center; gap: 6px; margin: 0; }
.sb-title-row { display: flex; align-items: baseline; justify-content: space-between; }
.sb-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sb-rank li { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 10px; background: color-mix(in srgb, var(--medal) 7%, transparent); }
.sb-rank-no { width: 22px; text-align: center; font-family: var(--font-arcade); color: var(--medal); }
.sb-rank-av { border-radius: 50%; box-shadow: 0 0 0 2px var(--medal); display: inline-flex; }
.sb-rank-val { font-family: var(--font-head); color: var(--medal); font-size: 16px; }
.sb-rank-small li { background: none; padding: 3px 4px; font-size: 13.5px; }
.sb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.sb-list li { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sb-list-title { color: var(--text); font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-list-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.sb-winner { border-color: rgba(216,177,66,.4); }
.sb-winner .weekly-kicker { color: var(--gold); }
.sb-winner .winner-main { gap: 12px; }
.sb-winner .winner-score { font-size: 16px; }

/* Indhold i midten: 6 kort paa brede skaerme, ellers 4-5 (aldrig for smaa) */
.shell-v5 .arcade-quick { display: none; }

/* 1100-1399: hoejre panel bliver en skuffe */
@media (max-width: 1399px) {
  .shell { grid-template-columns: 232px minmax(0, 1fr); }
  .sb-left-collapsed .shell { grid-template-columns: 68px minmax(0, 1fr); }
  .sb-right { position: fixed; right: 0; top: 0; bottom: 0; width: 320px; max-height: none; z-index: 60; transform: translateX(100%); transition: transform .2s; box-shadow: -20px 0 50px rgba(0,0,0,.5); }
  .sb-right-open .sb-right { transform: none; }
  .sb-right-hidden .sb-right { display: block; }
}
/* Under 1100: begge paneler er skuffer (aabnes fra topbaren) */
@media (max-width: 1099px) {
  .shell, .sb-left-collapsed .shell { grid-template-columns: minmax(0, 1fr); }
  .sb-left { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; max-height: none; z-index: 60; transform: translateX(-100%); transition: transform .2s; box-shadow: 20px 0 50px rgba(0,0,0,.5); }
  .sb-left-open .sb-left { transform: none; }
  .sb-left-collapsed .sb-left .sb-text, .sb-left-collapsed .sb-left .sb-count { display: inline; }
  .sb-left-collapsed .sb-left .sb-link { justify-content: flex-start; padding: 0 10px; }
  .sb-collapse { display: none; }
  .shell-main { padding: 16px 14px 48px; }
}
.sb-overlay { position: fixed; inset: 0; background: rgba(5,6,12,.6); z-index: 55; display: none; }
.sb-left-open .sb-overlay, .sb-right-open .sb-overlay { display: block; }
/* v5: oversigten bliver 2 kolonner, naar midten er smal */
@media (max-width: 1599px) {
  .shell-v5 .overview-grid { grid-template-columns: 1fr 1fr; }
  .shell-v5 .ov-wide { grid-column: span 2; order: -1; }
}
@media (max-width: 1399px) { .shell-v5 .stat-line { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .shell-v5 .overview-grid { grid-template-columns: 1fr; } .shell-v5 .ov-wide { grid-column: auto; } }
.v5-games .card-grid { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }


/* ============================================================
   v5 (faerdig): online-status, spiller nu, bred spilvisning,
   automatisk shoutbox-hoejde og kompakt topbar paa mobil
   ============================================================ */
.shell-v5 .topbar-inner { max-width: none; }
.livebar-inner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 22px; }
.live-sep { color: var(--line2); }
.live-me { display: inline-flex; align-items: center; gap: 7px; color: var(--text); text-decoration: none !important; }
.live-me:hover strong { color: var(--link); }
.live-me .avatar { font-size: 11px !important; }

/* Bred spilvisning: begge sidepaneler skjules paa desktop */
@media (min-width: 1100px) {
  .sb-wide .shell, .sb-wide.sb-left-collapsed .shell, .sb-wide.sb-right-hidden .shell { grid-template-columns: 0 minmax(0, 1fr) 0; }
  .sb-wide .sb-left, .sb-wide .sb-right { display: none; }
}
@media (min-width: 1100px) and (max-width: 1399px) { .sb-wide .sb-right { display: none !important; } }
.sb-wide-btn[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
@media (max-width: 1099px) { .sb-wide-btn, [data-wide].btn { display: none; } }
.game-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
[data-wide].btn[aria-pressed="true"] { border-color: var(--gold); }

/* Online nu med "spiller nu" */
.online-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.online-list li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ol-av { position: relative; display: inline-flex; flex: none; }
.ol-dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #7d8297; box-shadow: 0 0 0 2px var(--panel); }
.is-playing .ol-dot { background: var(--green); box-shadow: 0 0 0 2px var(--panel), 0 0 8px rgba(118,176,74,.8); }
.ol-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ol-text .user-link { font-weight: 700; font-size: 14px; }
.ol-status { font-size: 12.5px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ol-status a { color: #9BD07A; font-weight: 600; }
.ol-status a:hover { color: #B5E296; }

/* Kompakte rangeringer i hoejre panel */
.sb-rank li.sb-rank-plain { background: none; padding: 3px 8px; }
.sb-rank li.sb-rank-plain .sb-rank-av { box-shadow: none; }
.sb-rank li.sb-rank-plain .sb-rank-val { font-size: 14px; color: var(--text2); }

/* Shoutbox: hoejden foelger antallet af beskeder (hoejst ca. 300 px) */
.shouts { height: auto; min-height: 56px; max-height: 300px; }
.shouts.shouts-tall { height: auto; max-height: 580px; }
@media (max-width: 600px) { .shouts { height: auto; max-height: 300px; } .shouts.shouts-tall { height: auto; max-height: 480px; } }

/* Spilkort i midten: aldrig for smaa */
.shell .home-games .card-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
@media (min-width: 1700px) { .shell .home-games .card-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
@media (max-width: 560px) { .shell .home-games .card-grid, .shell .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Ingen vandret scrolling */
html, body { overflow-x: hidden; }
.ov-table .num, .ov-table .ov-user { white-space: nowrap; }
.stage { max-width: 100%; }

/* Kompakt topbar paa tablet/mobil */
@media (max-width: 900px) {
  .topbar-inner { gap: 10px; padding-top: 10px; padding-bottom: 10px; flex-wrap: nowrap; }
  .search-top { display: none; }
  .admin-link, .btn-join { display: none; }
  .logo-text { font-size: 18px; }
  .topbar-right { gap: 6px; flex: 1 1 auto; flex-wrap: nowrap; }
}
@media (max-width: 520px) {
  .logo-text { display: none; }
  .btn-logout { padding: 0 10px; height: 38px; font-size: 13px; }
  .topbar-right .btn-icon, .sb-toggle { width: 38px; height: 38px; }
}

/* Sidepanelerne fylder hele hoejden paa desktop */
@media (min-width: 1100px) { .sb-left { height: 100vh; max-height: none; } }
@media (min-width: 1400px) { .sb-right { height: 100vh; max-height: none; } }
/* Faste kolonner, saa midten bliver i midten, ogsaa naar paneler er skjult */
.sb-left { grid-column: 1; grid-row: 1; }
.shell-main { grid-column: 2; grid-row: 1; }
.sb-right { grid-column: 3; grid-row: 1; }
@media (max-width: 1099px) { .shell-main { grid-column: 1; } }

/* ===== Identitet: logo GamerHytten.dk (pixel-controller) ===== */
/* Controlleren vises altid i hele multipla af pixelgrafikken (16x8): 4x / 3x / 2x - aldrig strakt */
.logo { gap: 12px; }
.logo-mark { display: block; width: 80px; height: auto; flex: 0 0 auto; }
.logo-text { font-family: var(--font-arcade); font-weight: 900; font-size: 28px; letter-spacing: -.015em; color: #f4f5fb; text-transform: none; white-space: nowrap; line-height: 1; }
.logo-text .lt-h { color: var(--orange); }
.logo-text .lt-dk { color: #A891EE; font-size: .74em; }
/* Sammenklappet venstremenu: kun pixel-controlleren */
@media (min-width: 1100px) { .sb-left-collapsed .logo-text { display: none; } }
@media (max-width: 900px) { .logo-text { font-size: 22px; } .logo-mark { width: 68px; } }
@media (max-width: 520px) {
  .logo { gap: 7px; min-width: 0; }
  .logo-text { display: inline; font-size: 17px; }
  .logo-mark { width: 56px; }
  .topbar-inner { gap: 8px; }
}
@media (max-width: 400px) {
  .logo-text { font-size: 15.5px; }
  .topbar-right .btn-icon[href="/indstillinger"] { display: none; }
}

/* ===== Velkomst ===== */
.welcome { align-items: flex-start; }
.welcome-main { flex: 1 1 520px; min-width: 0; }
.welcome .overview-title { font-size: 27px; line-height: 1.2; }
.welcome-tag { margin: 4px 0 0; font-family: var(--font-head); font-weight: 600; font-size: 15.5px; color: #A891EE; }
.welcome-text { margin: 6px 0 0; font-size: 14px; color: var(--text2); max-width: 880px; line-height: 1.5; }
.welcome-text strong { color: var(--text); }
.welcome-facts { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.welcome-facts li { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); background: var(--bar2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.welcome-facts a { color: var(--text); font-weight: 600; }
.welcome-facts a:hover { color: var(--orange); }
.welcome .overview-actions { align-items: center; padding-top: 4px; }
@media (max-width: 700px) {
  .welcome .overview-title { font-size: 21px; }
  .welcome-tag { font-size: 14px; }
  .welcome-text:not(.welcome-guest) { display: none; }
  .welcome-facts { gap: 5px; margin-top: 8px; }
  .welcome-facts li { display: block; white-space: normal; font-size: 12px; padding: 3px 10px; border-radius: 10px; }
  .welcome .overview-actions { gap: 6px; padding-top: 0; }
  .welcome .overview-actions .btn { height: 34px; padding: 0 12px; font-size: 13px; }
  .welcome .overview-actions .btn-about { display: none; }
}

/* ===== Om GamerHytten ===== */
.about-hero { display: flex; gap: 24px; align-items: center; margin-top: 18px; }
.about-hero h1 { margin: 0; }
.about-hero-mark { flex: 0 0 auto; display: grid; place-items: center; width: 160px; height: 104px; border-radius: 16px; background: var(--bar2); border: 1px solid var(--line); }
.about-hero-mark .logo-mark { width: 140px; }
.about-stats { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.about-stats li { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; }
.about-stats strong { font-size: 24px; color: var(--c); font-family: var(--font-head); }
.about-stats span { font-size: 13px; color: var(--muted); }
.about-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.about-card { border-top: 3px solid var(--c); }
.about-card h2 { font-size: 19px; margin: 0 0 8px; }
.about-card p { margin: 0 0 8px; line-height: 1.55; color: var(--text2); }
.about-cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px !important; }
@media (max-width: 600px) { .about-hero { flex-direction: column; align-items: flex-start; gap: 12px; } .about-grid { grid-template-columns: 1fr; } }

@media (max-width: 360px) { .logo-mark { width: 46px; } .logo-text { font-size: 14px; } }
/* Controlleren ved velkomsten paa forsiden */
.welcome-title-row { display: flex; align-items: center; gap: 14px; }
.welcome-title-row .logo-mark { width: 64px; }
@media (max-width: 700px) { .welcome-title-row .logo-mark { display: none; } }
@media (max-width: 520px) {
  .topbar-right .btn-primary, .topbar-right .btn-ghost:not(.btn-icon) { height: 38px; padding: 0 12px; font-size: 13px; }
  .topbar-right { flex: 0 0 auto; margin-left: auto; }
}

/* Neon-logoet (N2): fast 5:3-format, ingen filtre fra CSS */
.logo-mark { height: auto; aspect-ratio: 5 / 3; object-fit: contain; }
.topbar .logo-mark { margin: -4px 0; }

/* ===== v5.8 – farveaccenter: tynde topkanter i samme orange som velkomstboksen ===== */
/* Kun topkanten faar farve – resten af rammen forbliver diskret */
.shoutbox            { border-color: var(--line); border-top: 3px solid var(--orange); }
.feat-daily          { border-top: 3px solid var(--gold); }
.feat-weekly         { border-top: 3px solid var(--violet); }
.sb-box              { border-top: 3px solid var(--line2); }
.sb-online           { border-top-color: var(--orange); }
.sb-records          { border-top-color: var(--gold); }
.sb-firsts           { border-top-color: var(--orange); }
.sb-winner           { border-color: var(--line); border-top-color: var(--violet); }
.sb-active           { border-top-color: var(--gold); }
.toplist             { border-top: 3px solid var(--orange); }
.mine                { border-top: 3px solid var(--violet); }
.podium-panel        { border-top: 3px solid var(--gold); }
.table-wrap          { border-top: 3px solid var(--orange); }
.profile-head        { border-top: 3px solid var(--orange); }
.about-hero          { border-top: 3px solid var(--orange); }

/* Diskret orange markering ved overskrifterne i spilsektionerne */
.home-games .section-head {
  padding-bottom: 8px;
  background: linear-gradient(90deg, rgba(224,137,46,.55), rgba(224,137,46,.12) 45%, transparent 75%) left bottom / 100% 1px no-repeat;
}
.home-games .section-head h2::before {
  content: ""; display: inline-block; width: 4px; height: .82em; margin-right: 10px; vertical-align: -1px;
  border-radius: 2px; background: linear-gradient(180deg, #F2A65A, var(--orange));
  box-shadow: 0 0 10px rgba(224,137,46,.45);
}

/* Spilkort: stadig moerke, med orange kant og blød glød ved hover */
.card { transition: transform .12s, border-color .15s, box-shadow .15s; }
.card:hover, .card:focus-visible {
  border-color: rgba(224,137,46,.6);
  box-shadow: 0 0 0 1px rgba(224,137,46,.22), 0 10px 26px -6px rgba(224,137,46,.28);
}
@media (hover: none) { .card:active { border-color: rgba(224,137,46,.6); } }

/* Cloudflare Turnstile paa oprettelsessiden */
.turnstile-box { margin: 6px 0 14px; min-height: 65px; }
.turnstile-box .cf-turnstile { width: 100%; }

/* Smilies i shoutboxen */
.shout .smiley { font-size: 1.2em; line-height: 1; vertical-align: -2px; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.smiley-wrap { position: relative; flex: 0 0 auto; }
.smiley-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid #2a2d44; background: var(--input); font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.smiley-btn:hover, .smiley-btn[aria-expanded="true"] { border-color: rgba(224,137,46,.6); box-shadow: 0 0 0 1px rgba(224,137,46,.2); }
.smiley-panel { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 30; width: 318px; display: flex; flex-direction: column; background: var(--panel2); border: 1px solid var(--line2); border-top: 3px solid var(--orange); border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.5); overflow: hidden; }
.smiley-panel[hidden] { display: none; }
.smiley-tabs { display: flex; gap: 2px; padding: 6px 6px 0; border-bottom: 1px solid var(--line); }
.smiley-tab { flex: 1; height: 34px; border: 0; border-radius: 8px 8px 0 0; background: transparent; font-size: 19px; cursor: pointer; opacity: .55; border-bottom: 2px solid transparent; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.smiley-tab:hover { opacity: .85; }
.smiley-tab.on { opacity: 1; border-bottom-color: var(--orange); background: rgba(224,137,46,.08); }
.smiley-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 6px 8px 8px; max-height: 214px; overflow-y: auto; overscroll-behavior: contain; }
.smiley-grid[hidden] { display: none; }
.smiley-grid-title { grid-column: 1 / -1; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 2px 2px 4px; }
.smiley-grid button { height: 34px; border: 0; border-radius: 8px; background: transparent; font-size: 21px; cursor: pointer; padding: 0; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.smiley-grid button:hover, .smiley-grid button:focus-visible { background: rgba(224,137,46,.16); outline: none; }
@media (max-width: 520px) { .smiley-panel { width: 286px; right: -56px; } .smiley-grid { grid-template-columns: repeat(7, 1fr); } .smiley-grid button { font-size: 20px; } }

/* ===== Kommentarer & anmeldelser ===== */
.comments { margin-top: 16px; border-top: 3px solid var(--orange); display: flex; flex-direction: column; gap: 14px; }
.comments-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.comments-head h2 { font-size: 20px; margin: 0; display: flex; align-items: center; gap: 8px; }
.comments-count { font-size: 13px; font-weight: 700; color: var(--orange); background: rgba(224,137,46,.12); border: 1px solid rgba(224,137,46,.35); border-radius: 999px; padding: 1px 9px; }
.comments-head .stars-view { vertical-align: -2px; }
.comment-form { display: flex; gap: 12px; align-items: flex-start; }
.comment-form-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.comment-form textarea { width: 100%; min-height: 76px; resize: vertical; border-radius: 10px; border: 1px solid #2a2d44; background: var(--input); color: var(--text); font: inherit; padding: 10px 12px; line-height: 1.45; }
.comment-form textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.comment-form-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.comment-form-tools { display: flex; align-items: center; gap: 8px; }
.comment-guest { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--bar2); border: 1px solid var(--line); }
.comment-guest .muted { flex: 1; min-width: 180px; }
.comments-empty { margin: 0; }
.comment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.comment { display: flex; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--line); }
.comment.mine { background: linear-gradient(90deg, rgba(224,137,46,.06), transparent 60%); border-radius: 10px; }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.comment-meta .stars-view svg { vertical-align: -2px; }
.comment-body p { margin: 4px 0 0; line-height: 1.5; color: var(--text2); overflow-wrap: anywhere; }
.comment-body .smiley { font-size: 1.2em; line-height: 1; vertical-align: -2px; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.comment-del { margin: 0 0 0 auto; }
.comment-del button { background: none; border: 0; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 6px; border-radius: 6px; }
.comment-del button:hover { color: #fff; background: rgba(201,96,72,.5); }
.comments-more { align-self: center; }
@media (max-width: 560px) {
  .comment-form > .avatar, .comment-form > img:first-of-type { display: none; }
  .comment-form-bar { flex-direction: column; align-items: stretch; }
  .comment-form-tools { justify-content: flex-end; }
}

/* ===== Rapportér spil ===== */
.report-btn { margin-left: auto; }
.report-btn svg { color: var(--gold); }
.report-btn.reported { border-color: rgba(216,177,66,.5); color: var(--gold); }
.report-ok { margin-top: -6px; }
.report-page { max-width: 680px; margin: 0 auto; }
.report-box { border-top: 3px solid var(--gold); display: flex; flex-direction: column; gap: 16px; }
.report-game { display: flex; gap: 14px; align-items: center; }
.report-game h1 { margin: 0; font-size: 26px; }
.report-game p { margin: 2px 0 0; }
.report-form { display: flex; flex-direction: column; gap: 16px; }
.report-form fieldset { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.report-form legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.report-reason { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bar2); cursor: pointer; font-size: 14px; }
.report-reason:hover { border-color: var(--line2); }
.report-reason:has(input:checked) { border-color: rgba(224,137,46,.7); background: rgba(224,137,46,.08); }
.report-reason input { accent-color: var(--orange); }
.report-form textarea { width: 100%; resize: vertical; border-radius: 10px; border: 1px solid #2a2d44; background: var(--input); color: var(--text); font: inherit; padding: 10px 12px; }
.report-actions { display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 560px) { .report-form fieldset { grid-template-columns: 1fr; } }

/* ===== Admin: rapporter og kommentarer ===== */
.nav-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--orange); color: #1a1205; font-size: 12px; font-weight: 800; }
.report-list { display: flex; flex-direction: column; gap: 12px; }
.report-item { border-top: 3px solid var(--st); display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; }
.report-item-head { display: flex; gap: 12px; align-items: center; }
.report-item-head .grow { display: flex; flex-direction: column; min-width: 0; }
.report-title { font-weight: 700; font-size: 17px; }
.report-status { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--st); border: 1px solid var(--st); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.report-reason-tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--gold); background: rgba(216,177,66,.1); border: 1px solid rgba(216,177,66,.35); border-radius: 8px; padding: 3px 9px; }
.report-item-body p { margin: 8px 0; color: var(--text2); }
.report-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.report-actions-admin { flex-wrap: wrap; }
.btn-danger-text { color: #E58A76; }
.btn-danger-text:hover { color: #fff; background: rgba(201,96,72,.5); }
.admin-comment { max-width: 520px; overflow-wrap: anywhere; }

/* Systembeskeder i shoutboxen (fx "Spil rettet!") */
.shout-system { background: linear-gradient(90deg, rgba(224,137,46,.10), rgba(138,111,214,.06) 55%, transparent); box-shadow: inset 3px 0 0 var(--orange); }
.shout-sys-av { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 50%; background: #0e0f1a; border: 1px solid rgba(224,137,46,.45); }
.shout-sys-av img { width: 26px; height: auto; display: block; }
.shout-sys-name { color: var(--orange); font-weight: 800; }
.shout-sys-tag { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #A891EE; border: 1px solid rgba(138,111,214,.5); border-radius: 4px; padding: 0 4px; font-weight: 700; }
.shout-system p strong { color: var(--text); }
.shout-sys-game { font-weight: 700; }
.shout-sys-user { font-weight: 600; color: #A891EE; }
.shout-sys-user:hover { color: var(--orange); }

/* Topbaren: hvem er online */
.live-users { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.live-user { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 2px; border-radius: 999px; color: var(--text2); text-decoration: none !important; }
.live-users:not(.with-names) .live-user { padding: 0; margin-right: -6px; }
.live-users:not(.with-names) .live-user .avatar { box-shadow: 0 0 0 2px var(--bar2); }
.live-user:hover { background: rgba(224,137,46,.10); color: var(--text); }
.live-av { position: relative; display: inline-flex; }
.live-av .avatar { font-size: 11px !important; }
.live-av i { position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: #8b90a8; box-shadow: 0 0 0 2px var(--bar2); }
.live-user.is-playing .live-av i { background: var(--green); }
.live-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.live-more { margin-left: 10px; font-size: 12px; font-weight: 700; color: var(--text2); background: var(--input); border: 1px solid var(--line2); border-radius: 999px; padding: 2px 8px; text-decoration: none !important; }
.live-more:hover { color: var(--orange); border-color: rgba(224,137,46,.5); }
@media (max-width: 700px) {
  .live-name { display: none; }
  .live-users.with-names .live-user { padding: 0; }
  .live-users { gap: 2px; }
}
.live-user .flag, .live-user img[class*="flag"] { flex: 0 0 auto; }
@media (max-width: 700px) { .live-users .live-user > :not(.live-av) { display: none; } }

/* =====================================================================
   Spilside v6 – spillet er hovedfokus
   ===================================================================== */
.gp-head { display: flex; flex-direction: column; gap: 8px; margin: 2px 0 14px; }
.gp-head h1 { margin: 0; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.15; }
.gp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; color: var(--text2); }
.gp-meta-item { white-space: nowrap; }
.gp-meta-rec { color: var(--text2); text-decoration: none !important; }
.gp-meta-rec:hover { color: var(--orange); }
.gp-banner { margin-bottom: 14px; }

.gp-cq { container-type: inline-size; }
.gp-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.gp-main { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.gp-side { min-width: 0; }
@container (min-width: 1150px) {
  .gp-layout { grid-template-columns: minmax(0, 1fr) 330px; }
  .gp-side { position: sticky; top: 12px; }
}

/* Spilrammen: scene + vaerktoejslinje i et samlet kort */
.gp-frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--panel);
            box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(224,137,46,.05); }
.gp-stage-wrap { display: flex; justify-content: center; background: #05060b !important; }
/* Altid spillets eget format: bredden begraenses af skaermhoejden, saa hele spillet kan ses */
.gp-frame .stage { --chrome: 245px; width: min(100%, calc((100svh - var(--chrome)) * var(--r, 1.3333)));
                   min-width: min(100%, 300px); aspect-ratio: var(--r, 1.3333); max-height: none; margin: 0 auto;
                   border: 0; border-radius: 0; box-shadow: none; }
.gp-frame .stage:fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; }
@media (max-width: 700px) { .gp-frame .stage { --chrome: 150px; } }

.gp-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap;
              padding: 8px 10px; border-top: 1px solid var(--line); background: linear-gradient(180deg, #161828, #121320); }
.gp-tb-group { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; min-width: 0; }
.gp-tb-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 10px;
             border: 1px solid var(--line2); background: var(--input); color: var(--text); font: inherit; font-size: 14px;
             font-weight: 600; cursor: pointer; text-decoration: none !important; white-space: nowrap;
             transition: border-color .15s, background .15s, color .15s; }
.gp-tb-btn:hover { border-color: rgba(224,137,46,.6); color: #fff; }
.gp-tb-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.gp-fs { background: var(--orange); border-color: var(--orange); color: #1a1205; }
.gp-fs:hover { background: #F09A3E; border-color: #F09A3E; color: #1a1205; }
.gp-wide[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.gp-tb-sep { width: 1px; height: 24px; background: var(--line2); }
.gp-pill { font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(201,79,132,.18); color: #F0A6C6; }
.gp-toolbar .fav-btn.on { border-color: rgba(201,79,132,.55); background: rgba(201,79,132,.12); }
.gp-toolbar .rate { margin-left: 0; gap: 8px; }
.gp-toolbar .report-btn { margin-left: 0; }
.gp-toolbar .report-btn svg { color: var(--gold); }
.gp-toolbar .report-btn.reported { border-color: rgba(216,177,66,.5); color: var(--gold); }
.gp-toolbar .social-error { flex-basis: 100%; order: 3; }
@media (max-width: 1099px) { .gp-wide { display: none; } }
@media (max-width: 760px) {
  .gp-tb-label, .gp-toolbar .fav-label, .gp-toolbar .rate-avg { display: none; }
  .gp-tb-btn { padding: 0 11px; }
  .gp-toolbar { padding: 7px 8px; }
}

/* Highscores */
.hs { padding: 0; overflow: hidden; border-top: 3px solid var(--gold); }
.hs-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 14px 16px 4px; }
.hs-head h2 { margin: 0; font-size: 19px; display: flex; align-items: center; gap: 8px; }
.hs-other { margin: 6px 14px 0; display: flex; align-items: center; gap: 7px; font-size: 13px; padding: 6px 10px;
            border-radius: 10px; background: var(--bar2); border: 1px solid var(--line); min-width: 0; }
.hs-other-label { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.hs-other-score { margin-left: auto; color: var(--gold); white-space: nowrap; }
.hs-podium { list-style: none; margin: 0; padding: 26px 12px 8px; display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; }
.pod { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; min-width: 0;
       padding: 12px 6px 10px; border-radius: 14px; border: 1px solid var(--line); grid-row: 1; }
.pod-1 { grid-column: 2; padding-top: 20px; }
.pod-2 { grid-column: 1; }
.pod-3 { grid-column: 3; }
.pod-gold   { --mc: #D8B142; background: linear-gradient(180deg, rgba(216,177,66,.20), rgba(216,177,66,.03)); border-color: rgba(216,177,66,.45); }
.pod-silver { --mc: #AEB5C4; background: linear-gradient(180deg, rgba(174,181,196,.14), rgba(174,181,196,.02)); border-color: rgba(174,181,196,.35); }
.pod-bronze { --mc: #C98A55; background: linear-gradient(180deg, rgba(201,138,85,.16), rgba(201,138,85,.02)); border-color: rgba(201,138,85,.38); }
.pod-crown { position: absolute; top: -15px; font-size: 22px; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.pod-av { position: relative; display: inline-flex; margin-bottom: 4px; }
.pod-av .avatar { box-shadow: 0 0 0 3px var(--mc); border-radius: 50%; }
.pod-no { position: absolute; right: -6px; bottom: -6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
          background: var(--mc); color: #141414; font-size: 12px; font-weight: 800; box-shadow: 0 0 0 2px var(--panel); }
.pod-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 13px; }
.pod-name a { color: var(--text); }
.pod-score { font-family: var(--font-arcade); color: var(--mc); font-size: 16px; line-height: 1.1; overflow-wrap: anywhere; }
.pod-1 .pod-score { font-size: 19px; }
.pod-when { font-size: 11.5px; }
.pod.is-me { outline: 2px solid var(--orange); outline-offset: 1px; }
.hs-list { list-style: none; margin: 0; padding: 4px 8px 8px; }
.hs-list li { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; }
.hs-list li:hover { background: rgba(255,255,255,.03); }
.hs-list li.is-me, .hs-mine { box-shadow: inset 3px 0 0 var(--orange); }
.hs-list li.is-me { background: rgba(224,137,46,.10); }
.hs-rank { flex: 0 0 24px; text-align: center; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.hs-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.hs-who > a, .hs-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-score { white-space: nowrap; font-variant-numeric: tabular-nums; }
.hs-you { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #1a1205;
          background: var(--orange); border-radius: 4px; padding: 1px 5px; vertical-align: 1px; }
.pod .hs-you { margin-top: 2px; }
.hs-mine { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); background: rgba(224,137,46,.05); }
.hs-mine .hs-score { color: var(--orange); }
.hs-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px; text-align: center; }
.hs-empty-icon { font-size: 34px; line-height: 1; margin-bottom: 4px; }
/* Mellembredde: highscores under spillet, podie og liste ved siden af hinanden */
@container (min-width: 720px) and (max-width: 1149px) {
  .hs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .hs-head, .hs-other, .hs-mine, .hs-empty { grid-column: 1 / -1; }
  .hs-list { padding-top: 22px; }
}

/* Kommentarer + Om spillet */
.gp-lower { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 20px; align-items: start; }
@container (min-width: 900px) { .gp-lower { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); } }
.gp-lower .comments { margin-top: 0; gap: 12px; }
.gp-lower .comments-head h2 { font-size: 19px; }
.gp-lower .comment-form textarea { min-height: 44px; transition: min-height .15s; }
.gp-lower .comment-form:focus-within textarea, .gp-lower .comment-form textarea:not(:placeholder-shown) { min-height: 92px; }
.gp-lower .comment-form:not(:focus-within) textarea:placeholder-shown + .comment-form-bar { display: none; }
.gp-lower .comment { padding: 10px 4px; }
.gp-about { border-top: 3px solid var(--violet); }
.gp-about h2 { font-size: 19px; margin: 0 0 8px; }
.gp-about h3 { font-size: 14px; margin: 12px 0 4px; color: var(--text); }
.gp-desc { margin: 0; color: var(--text2); line-height: 1.55; max-height: 16em; overflow: auto; }
.gp-controls { margin: 0; line-height: 1.5; }
.gp-facts { margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.gp-facts > div { border-left: 3px solid var(--line2); padding-left: 10px; }
.gp-facts > div:nth-child(1) { border-color: var(--orange); }
.gp-facts > div:nth-child(2) { border-color: var(--pink); }
.gp-facts > div:nth-child(3) { border-color: var(--violet); }
.gp-facts > div:nth-child(4) { border-color: var(--green); }
.gp-facts dt { font-size: 12.5px; color: var(--muted); }
.gp-facts dd { margin: 0; font-weight: 600; font-size: 14px; }

/* Lignende spil */
.gp-similar { margin-top: 28px; }
.sim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 14px; }
.sim-card { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--panel); border: 1px solid var(--line);
            color: var(--text); text-decoration: none !important; transition: transform .15s, border-color .15s, box-shadow .15s; }
.sim-card:hover, .sim-card:focus-visible { transform: translateY(-3px); border-color: rgba(224,137,46,.6);
            box-shadow: 0 0 0 1px rgba(224,137,46,.22), 0 12px 28px -8px rgba(224,137,46,.3); outline: none; }
.sim-img { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.sim-blur { position: absolute; inset: -24px; background-size: cover; background-position: center; filter: blur(18px) saturate(1.4); opacity: .5; }
.sim-img img { position: relative; width: 60%; max-height: 80%; height: auto; object-fit: contain; border-radius: 12px;
               box-shadow: 0 8px 24px rgba(0,0,0,.5); transition: transform .2s; }
.sim-card:hover .sim-img img { transform: scale(1.06); }
.sim-img .card-letter { position: relative; font-size: 48px; }
.sim-type { position: absolute; top: 8px; left: 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; padding: 2px 7px;
            border-radius: 6px; background: rgba(8,9,15,.75); color: #cfd2e6; }
.sim-play { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
            background: var(--orange); color: #1a1205; font-size: 13px; opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s; }
.sim-card:hover .sim-play, .sim-card:focus-visible .sim-play { opacity: 1; transform: none; }
.sim-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; min-width: 0; }
.sim-title { font-size: 14.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.sim-stats { display: flex; gap: 10px; }
.sim-rec { color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim-rec b { color: var(--gold); }
@media (max-width: 560px) { .sim-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.gp-lower .comment-form textarea:placeholder-shown { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-lower .comment-form:focus-within textarea { white-space: pre-wrap; }

/* =====================================================================
   Spilside v6.1 – titel/info i hoejre kolonne, vaerktoejslinje over spillet
   ===================================================================== */
.gp-layout { grid-template-areas: "info" "main" "side"; }
.gp-info { grid-area: info; min-width: 0; }
.gp-main { grid-area: main; }
.gp-side { grid-area: side; }
@container (min-width: 1150px) {
  .gp-layout { grid-template-columns: minmax(0, 1fr) 330px; grid-template-rows: auto 1fr;
               grid-template-areas: "main info" "main side"; row-gap: 14px; }
  .gp-side { position: static; align-self: start; }
  .gp-info { align-self: start; }
}

/* Spilinfo: kompakt kort i hoejre kolonne */
.gp-info { display: flex; flex-direction: column; gap: 8px; background: var(--panel); border: 1px solid var(--line);
           border-top: 3px solid var(--orange); border-radius: 16px; padding: 12px 16px 14px; }
.gp-crumbs { margin: 0; font-size: 12.5px; }
.gp-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; min-width: 0; }
.gp-crumbs li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.gp-crumbs li + li::before { content: "›"; color: var(--muted); }
.gp-crumbs li[aria-current] { color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.gp-title { margin: 0; font-size: clamp(20px, 1.6vw, 25px); line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; }
.gp-info .gp-meta { gap: 6px 12px; font-size: 13.5px; }
.gp-info .chip { font-size: 12.5px; padding: 3px 10px; }
.gp-record { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 10px; background: rgba(216,177,66,.08);
             border: 1px solid rgba(216,177,66,.28); color: var(--text); text-decoration: none !important; min-width: 0; }
.gp-record:hover { border-color: rgba(216,177,66,.6); }
.gp-record-icon { font-size: 18px; line-height: 1; }
.gp-record-who { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; flex: 1; }
.gp-record-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-record-score { color: var(--gold); font-family: var(--font-arcade); white-space: nowrap; }
.gp-record-none { background: var(--bar2); border-color: var(--line); }

/* Smal visning: titel foer spillet, kompakt paa een-to linjer */
@container (max-width: 1149px) {
  .gp-info { padding: 10px 14px 12px; border-radius: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
  .gp-crumbs, .gp-title, .gp-info .gp-meta { grid-column: 1; }
  .gp-record { grid-column: 2; grid-row: 1 / span 3; }
}
@container (max-width: 640px) {
  .gp-info { display: flex; padding: 8px 12px 10px; gap: 6px; }
  .gp-record { padding: 5px 9px; }
  .gp-title { font-size: 20px; }
}

/* Vaerktoejslinjen OVER spillet - ca. 44 px hoej */
.gp-toolbar { border-top: 0; border-bottom: 1px solid var(--line); padding: 5px 8px; min-height: 44px;
              background: linear-gradient(180deg, #181a2b, #131422); }
.gp-tb-btn { height: 34px; padding: 0 11px; font-size: 13.5px; border-radius: 9px; }
.gp-tb-sep { height: 22px; }
.gp-toolbar .star svg { width: 19px; height: 19px; }
.gp-toolbar .rate-avg { font-size: 12.5px; }
/* Mindre "chrome" over spillet nu, hvor overskriften er flyttet */
.gp-frame .stage { --chrome: 200px; }
@media (max-width: 1099px) { .gp-frame .stage { --chrome: 175px; } }
@media (max-width: 700px)  { .gp-frame .stage { --chrome: 140px; } .gp-toolbar { justify-content: space-between; } }
