/* Spillehyggen. Farverig legestue. Ren CSS, ingen frameworks. */
:root{
  --radius:1rem;
  --ink:#2b211c; --cream:#fff4e0; --coral:#ff8a6b; --mint:#8fdcc0; --sun:#ffd447;
  --cork:#eebd86; --wood:#b5764a;
  --background:var(--cream); --card:#fffcf4; --foreground:var(--ink);
  --muted:#fde6c4; --muted-foreground:#5a483e; --border:var(--ink); --outline:var(--ink);
  --table:var(--coral); --on-table:var(--ink); --ochre:var(--sun);
  --ivory:#fffaf0; --ivory-edge:#e9cfa5; --danger:#b8392a; --success:#17704d;
  --pop:5px 5px 0 var(--outline); --pop-sm:3px 3px 0 var(--outline);
  --font-sans:"Lexend",system-ui,sans-serif;
  --font-display:"DynaPuff","Lexend",system-ui,sans-serif;
  color-scheme:light;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:18px;-webkit-text-size-adjust:100%;color-scheme:light}
body{background:var(--background);color:var(--foreground);font-family:var(--font-sans);line-height:1.6;min-height:100vh;display:flex;flex-direction:column}
img,svg{max-width:100%}
a{color:inherit;text-decoration:none}
ul,ol{list-style:none}
button,input{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0}
h1,h2,h3,.font-display{font-family:var(--font-display);font-weight:700;letter-spacing:0;line-height:1.15}
:focus-visible{outline:4px solid var(--coral);outline-offset:3px}
[hidden]{display:none!important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.site-main{flex:1}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:56px;padding:0 1.4rem;border-radius:999px;font-weight:700;border:3px solid var(--outline);background:var(--card);color:var(--foreground);box-shadow:var(--pop-sm);transition:transform .15s,box-shadow .15s;text-align:center}
.btn:hover{transform:translate(-2px,-2px);box-shadow:5px 5px 0 var(--outline)}
.btn:active{transform:translate(2px,2px);box-shadow:0 0 0 var(--outline)}
.btn-accent{background:var(--sun);color:var(--ink)}
.panel{background:var(--card);border:3px solid var(--outline);border-radius:20px;box-shadow:var(--pop)}

/* ===== Farverig legestue: shared site shell ===== */
.tone-coral{--tone:var(--coral)}.tone-mint{--tone:var(--mint)}.tone-sun{--tone:var(--sun)}.tone-card{--tone:var(--ivory)}
.dommer{display:block;overflow:visible}
.dm-shadow{fill:color-mix(in oklab,var(--ink) 22%,transparent)}
.dm-ink{stroke:var(--ink)}
.dm-side{fill:var(--coral);stroke:var(--ink);stroke-width:5;stroke-linejoin:round}
.dm-face{fill:var(--ivory);stroke:var(--ink);stroke-width:6}
.dm-eye{fill:var(--ink)}.dm-glint{fill:var(--ivory)}
.dm-cheek{fill:var(--coral);opacity:.75}
.dm-crown{fill:var(--sun);stroke:var(--ink);stroke-width:5;stroke-linejoin:round}
.wave{display:block;width:100%;height:46px;margin-bottom:-1px}
.wave-flip{transform:scaleY(-1);margin:-1px 0 0}
.site-logo-mark .logo-die{fill:var(--coral);stroke:var(--outline);stroke-width:3}
.site-logo-mark .logo-pip{fill:var(--ink)}

.site-header{background:var(--background);border-bottom:3px solid var(--outline);position:relative;z-index:30}
.site-header-inner{max-width:1200px;margin:auto;display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;padding:14px 22px}
.site-logo{display:flex;align-items:center;gap:10px;margin-right:auto;font-family:var(--font-display);font-weight:700;font-size:1.65rem;min-height:56px}
.site-logo:hover .site-logo-mark{transform:rotate(-14deg)}
.site-logo-mark{transition:transform .25s}
.site-nav{display:flex;gap:8px}
.site-nav a{display:inline-flex;align-items:center;min-height:52px;padding:0 18px;border-radius:999px;font-weight:700;border:3px solid transparent}
.site-nav a:hover{border-color:var(--outline)}
.site-nav a.is-active{background:var(--sun);color:var(--ink);border-color:var(--outline);box-shadow:var(--pop-sm);transform:rotate(-2deg)}
.site-theme{padding:0 16px}

.site-main h1:not(.h-title)::after{content:"";display:block;width:150px;height:16px;margin-top:12px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 16'%3E%3Cpath d='M3 10c12-8 22 6 34-1s22-7 34 0 22 7 34 0 22-7 34 0 8 3 8 3' fill='none' stroke='%23ff8a6b' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat}

.site-footer{margin-top:80px;color:var(--cream)}
.site-footer-wave{color:#2b211c}
.site-footer-inner{background:#2b211c;padding:26px 22px 48px}
.site-footer-inner>*{max-width:1200px;margin-inline:auto}
.site-footer-brand{display:flex;align-items:center;gap:16px;font-size:1.4rem}
.site-footer-dommer{width:76px;transform:rotate(-8deg)}
.site-footer .dm-face{stroke:#120c09}
.site-footer nav{display:flex;flex-wrap:wrap;gap:6px 28px;margin-top:18px;font-weight:700}
.site-footer nav a{display:inline-flex;align-items:center;min-height:48px;text-decoration:underline;text-decoration-color:var(--coral);text-decoration-thickness:3px;text-underline-offset:6px}
.site-footer-note{margin-top:10px;color:#f4dcc0}

.crumbs{max-width:1200px;margin:22px auto 14px;padding:0 22px;display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-weight:700}
.crumbs a{display:inline-flex;align-items:center;min-height:48px;padding:0 16px;border:3px solid var(--outline);border-radius:999px;background:var(--card);box-shadow:var(--pop-sm)}
.crumbs a:nth-of-type(2){background:var(--mint);color:var(--ink);transform:rotate(-2deg)}
.crumbs-here{padding:8px 16px;background:var(--sun);color:var(--ink);border:3px solid var(--outline);border-radius:12px;transform:rotate(1.5deg)}
.game-frame{background-color:var(--cream);background-image:radial-gradient(rgba(43,33,28,.06) 1.2px,transparent 1.4px);background-size:22px 22px}
.game-frame iframe{background:transparent;color-scheme:light}
html{color-scheme:light}

.judge-fab{position:fixed;right:18px;bottom:18px;z-index:40;width:96px;height:96px;padding:6px;border-radius:28px;background:var(--mint);border:3px solid var(--outline);box-shadow:var(--pop)}
.judge-fab .dommer{width:100%;height:100%}
.judge-fab-label{position:absolute;right:76px;top:-26px;white-space:nowrap;background:var(--ivory);color:var(--ink);border:3px solid var(--outline);border-radius:16px 16px 4px 16px;padding:4px 12px;font-family:var(--font-display);font-size:1rem;transform:rotate(-4deg)}
.judge-panel{position:fixed;inset-inline:12px;bottom:128px;z-index:40;display:flex;flex-direction:column;max-height:72vh;overflow:hidden;background:var(--card);border:3px solid var(--outline);border-radius:24px;box-shadow:7px 7px 0 var(--outline)}
@media(min-width:640px){.judge-panel{left:auto;right:22px;width:430px}}
.judge-head{display:flex;align-items:center;gap:12px;padding:12px 14px;background:var(--coral);color:var(--ink);border-bottom:3px solid var(--outline)}
.judge-head-dommer{width:64px;transform:rotate(-6deg)}
.judge-close{width:56px;height:56px;border-radius:999px;font-size:2rem;font-weight:700;border:3px solid var(--outline);background:var(--ivory)}
.judge-note{padding:10px 16px;background:var(--sun);color:var(--ink);font-weight:700;border-bottom:3px solid var(--outline)}
.judge-msgs{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px}
.judge-form{display:flex;gap:8px;padding:12px;border-top:3px solid var(--outline)}
.judge-form input{flex:1;min-width:0;min-height:56px;border:3px solid var(--outline);border-radius:999px;padding:0 18px;background:var(--background);font-size:1rem}
.bubble{max-width:88%;padding:12px 18px;border:3px solid var(--outline);font-size:1rem;line-height:1.5;color:var(--ink);box-shadow:var(--pop-sm)}
.bubble-me{margin-left:auto;background:var(--sun);border-radius:22px 22px 6px 22px}
.bubble-dommer{background:var(--ivory);border-radius:22px 22px 22px 6px}

/* ===== Forside ===== */
.home{overflow-x:clip}
.home h2{font-size:clamp(2.1rem,4.5vw,3.2rem);line-height:1.1}
.h-hero{max-width:1200px;margin:auto;padding:40px 22px 60px;display:grid;grid-template-columns:1.05fr .95fr;gap:24px;align-items:center}
.h-kicker{display:inline-block;background:var(--mint);color:var(--ink);font-family:var(--font-display);font-size:1.3rem;padding:6px 18px;border:3px solid var(--outline);border-radius:14px;transform:rotate(-3deg);box-shadow:var(--pop-sm)}
.h-title{margin-top:18px;font-size:clamp(3.2rem,7.4vw,5.6rem);line-height:1}
.h-title span{color:var(--coral);-webkit-text-stroke:3px var(--outline);paint-order:stroke fill;display:inline-block;transform:rotate(-2deg) translateY(4px)}
.h-lead{margin-top:20px;font-size:clamp(1.35rem,2.4vw,1.7rem);font-weight:700;line-height:1.3;max-width:30ch}
.h-promise{margin-top:14px;color:var(--muted-foreground);font-size:1.1rem;max-width:36ch}
.h-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:26px}
.h-cta{min-height:64px;font-size:1.15rem;padding:0 28px}
.h-stage{position:relative;aspect-ratio:1/1;max-width:500px;width:100%;margin:auto}
.h-dommer{position:absolute;width:74%;left:12%;top:20%;transform:rotate(6deg)}
.h-bubble{position:absolute;left:0;top:0;z-index:2;max-width:17ch;background:var(--ivory);color:var(--ink);border:3px solid var(--outline);border-radius:28px;padding:14px 22px;font-size:clamp(1.25rem,2.2vw,1.6rem);line-height:1.2;box-shadow:var(--pop);transform:rotate(-4deg)}
.h-bubble::after{content:"";position:absolute;left:62%;bottom:-22px;width:30px;height:30px;background:var(--ivory);border-right:3px solid var(--outline);border-bottom:3px solid var(--outline);transform:skewY(30deg) rotate(30deg)}
.h-sticker{position:absolute;z-index:2;font-family:var(--font-display);color:var(--ink);border:3px solid var(--outline);box-shadow:var(--pop-sm);font-size:1.1rem}
.h-sticker-1{right:2%;top:16%;background:var(--sun);width:96px;height:96px;border-radius:50%;display:grid;place-items:center;transform:rotate(12deg)}
.h-sticker-2{left:0;bottom:10%;background:var(--mint);padding:8px 16px;border-radius:12px;transform:rotate(-7deg)}
.h-sticker-3{right:0;bottom:2%;background:var(--coral);padding:8px 16px;border-radius:999px;transform:rotate(5deg)}
.h-spark{position:absolute;left:8%;top:40%;width:44px;color:var(--sun)}

.wave-coral{color:var(--coral)}
.h-daily{background-color:var(--coral);background-image:repeating-linear-gradient(0deg,color-mix(in oklab,#fff 22%,transparent) 0 26px,transparent 26px 52px),repeating-linear-gradient(90deg,color-mix(in oklab,#fff 22%,transparent) 0 26px,transparent 26px 52px);color:var(--ink);padding:24px 22px 56px}
.h-head{max-width:1200px;margin:0 auto 32px}
.h-head p{font-size:1.15rem;margin-top:8px;max-width:44ch}
.h-daily .h-head{text-align:center}.h-daily .h-head p{margin-inline:auto}
.h-date{display:inline-block;background:var(--ivory);border:3px solid var(--outline);border-radius:10px;padding:2px 14px;font-weight:700;transform:rotate(2deg);margin-bottom:10px}
.h-table{max-width:1100px;margin:auto;display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-end;gap:36px 52px}
.h-obj{display:flex;flex-direction:column;align-items:center;gap:18px;transition:transform .2s}
.h-obj:hover{transform:translateY(-6px) rotate(-1deg)}
.h-tag{display:flex;flex-direction:column;align-items:center;text-align:center;background:var(--ivory);border:3px solid var(--outline);border-radius:16px;padding:10px 18px;box-shadow:var(--pop-sm);min-width:190px}
.h-tag strong{font-size:1.35rem;line-height:1.2}
.h-tag em{font-style:normal;font-weight:700;margin-top:6px;padding:4px 14px;border-radius:999px;background:var(--sun);border:2px solid var(--outline)}
.h-obj-kabale .h-tag{transform:rotate(3deg)}.h-obj-sudoku .h-tag{transform:rotate(-2deg)}.h-obj-mahjong .h-tag{transform:rotate(2deg)}
.obj-card{position:relative;width:180px;height:252px;background:var(--ivory);border:3px solid var(--outline);border-radius:18px;box-shadow:var(--pop);transform:rotate(-8deg);color:#c8392a}
.obj-card-heart{position:absolute;width:84px;left:50%;top:50%;transform:translate(-50%,-50%)}
.obj-card-corner{position:absolute;left:12px;top:8px;display:flex;flex-direction:column;align-items:center;font-family:var(--font-display);font-size:1.8rem;line-height:1}
.obj-card-corner svg{width:22px}
.obj-card-corner-low{left:auto;top:auto;right:12px;bottom:8px;transform:rotate(180deg)}
.obj-sheet{width:270px;aspect-ratio:1;display:grid;grid-template-columns:repeat(3,1fr);background:var(--ivory);border:3px solid var(--outline);box-shadow:var(--pop);transform:rotate(3deg);background-image:linear-gradient(transparent 96%,color-mix(in oklab,var(--ink) 12%,transparent) 96%);background-size:100% 30px}
.obj-sheet span{display:grid;place-items:center;border:1.5px solid color-mix(in oklab,var(--ink) 35%,transparent);font-family:var(--font-display);font-size:2.2rem;color:var(--ink)}
.obj-sheet span:nth-child(odd){color:#1f6b8f}
.obj-tile{position:relative;width:172px;height:226px;margin-top:70px}
.obj-peek{position:absolute;width:150px;left:12px;top:-82px;z-index:0;transform:rotate(-4deg)}
.obj-tile-face{position:relative;z-index:1;width:100%;height:100%;background:var(--ivory);border:3px solid var(--outline);border-radius:22px;box-shadow:8px 10px 0 var(--ivory-edge),11px 13px 0 var(--outline);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;transform:rotate(-2deg)}
.obj-tile-face i{width:52px;height:52px;border-radius:50%;border:7px solid var(--coral);outline:3px solid var(--outline)}
.obj-tile-face i:nth-child(2){border-color:#2f9c73}

.h-band{position:relative;z-index:2;margin:-6px -20px 0;padding:22px 30px;background:var(--mint);color:var(--ink);border-block:3px solid var(--outline);text-align:center;font-size:clamp(1.3rem,2.6vw,1.9rem);transform:rotate(-1.6deg)}

.h-all{max-width:1200px;margin:auto;padding:70px 22px 40px}
.h-fridge{display:grid;grid-template-columns:repeat(6,1fr);grid-auto-rows:150px;grid-auto-flow:dense;gap:22px}
.h-magnet{position:relative;display:flex;flex-direction:column;justify-content:flex-end;gap:6px;padding:18px;background:var(--tone);color:var(--ink);border:3px solid var(--outline);border-radius:20px;box-shadow:var(--pop);transform:rotate(var(--tilt));transition:transform .2s,box-shadow .2s}
.h-magnet::before{content:"";position:absolute;top:-11px;left:50%;width:22px;height:22px;border-radius:50%;background:var(--ink);box-shadow:inset -4px -4px 0 #5a483e;translate:-50% 0}
.h-magnet span{font-size:1.3rem;line-height:1.15}
.h-magnet-glyph{width:58px;height:58px;margin-bottom:auto}
.h-magnet:hover{transform:rotate(0) scale(1.03);box-shadow:8px 8px 0 var(--outline)}
.h-big{grid-column:span 2;grid-row:span 2}.h-big .h-magnet-glyph{width:130px;height:130px}.h-big span{font-size:2rem}
.h-tall{grid-row:span 2}.h-tall .h-magnet-glyph{width:90px;height:90px}
.h-wide{grid-column:span 2;flex-direction:row;align-items:center;justify-content:flex-start;gap:16px}.h-wide .h-magnet-glyph{margin:0}
.h-small{border-radius:50% 50% 20px 20px;align-items:center;text-align:center}.h-small .h-magnet-glyph{margin:6px auto auto}
.h-small span{font-size:1.1rem}

.h-rules{max-width:1200px;margin:auto;padding:40px 22px}
.h-board{display:grid;grid-template-columns:300px 1fr;gap:30px;padding:34px;background-color:var(--cork);background-image:radial-gradient(color-mix(in oklab,var(--ink) 18%,transparent) 1.5px,transparent 2px),radial-gradient(color-mix(in oklab,#fff 25%,transparent) 1px,transparent 2px);background-size:18px 18px,23px 23px;border:12px solid var(--wood);outline:3px solid var(--outline);border-radius:24px;box-shadow:var(--pop);color:var(--ink)}
.h-board-intro{background:var(--ivory);border:3px solid var(--outline);padding:22px;border-radius:6px;transform:rotate(-2deg);box-shadow:var(--pop-sm);align-self:start}
.h-board-intro h2{font-size:2.1rem}
.h-board-intro p{margin:10px 0 18px}
.h-notes{display:flex;flex-wrap:wrap;gap:26px 22px;align-content:start}
.h-note{position:relative;display:flex;flex-direction:column;justify-content:center;width:172px;min-height:132px;padding:22px 16px 14px;background:var(--tone);border:3px solid var(--outline);box-shadow:var(--pop-sm);transform:rotate(var(--tilt));transition:transform .2s}
.h-note::before{content:"";position:absolute;top:-10px;left:50%;width:22px;height:22px;border-radius:50%;background:#d93a2b;border:3px solid var(--outline);translate:-50% 0}
.h-note strong{font-size:1.35rem;line-height:1.1;overflow-wrap:anywhere}
.h-note span{font-weight:700;margin-top:6px;text-decoration:underline;text-underline-offset:4px}
.h-note:hover{transform:rotate(0) translateY(-4px)}
.h-note-lead{width:min(100%,360px);min-height:170px;padding-left:120px}
.h-note-lead strong{font-size:2rem}
.h-note-dommer{position:absolute;left:8px;top:50%;width:104px;translate:0 -50%;rotate:-8deg}

.h-chat{max-width:1100px;margin:auto;padding:50px 22px;display:grid;grid-template-columns:280px 1fr;gap:36px;align-items:center}
.h-chat-dommer{width:100%;max-width:280px;margin:auto;transform:rotate(-6deg)}
.h-chat-thread{display:flex;flex-direction:column;gap:14px}
.h-chat-thread h2{margin-bottom:8px}
.h-chat-thread .bubble{font-size:1.15rem;max-width:min(90%,520px)}
.h-chat-thread .bubble-dommer{margin-left:0}
.h-chat-thread .btn{align-self:flex-start;margin-top:8px}
.h-chat-note{color:var(--muted-foreground);font-weight:700}
.h-trust{max-width:1200px;margin:20px auto 0;padding:0 22px;display:flex;flex-wrap:wrap;justify-content:center;gap:16px}
.h-trust li{background:var(--tone);color:var(--ink);font-weight:700;padding:10px 20px;border:3px solid var(--outline);border-radius:999px;box-shadow:var(--pop-sm)}
.h-trust li:nth-child(1){rotate:-2deg}.h-trust li:nth-child(2){rotate:1.5deg}.h-trust li:nth-child(3){rotate:-1deg}

@keyframes lg-bob{0%,100%{translate:0 0}50%{translate:0 -12px}}
@keyframes lg-wiggle{0%,100%{rotate:0deg}25%{rotate:-3deg}75%{rotate:3deg}}
@keyframes lg-peek{0%,70%,100%{translate:0 0}80%,92%{translate:0 -18px}}
@keyframes lg-pop{0%{scale:.6;opacity:0}70%{scale:1.08}100%{scale:1;opacity:1}}
@media (prefers-reduced-motion:no-preference){
  .h-dommer{animation:lg-bob 3.8s ease-in-out infinite}
  .h-bubble{animation:lg-pop .6s cubic-bezier(.3,1.6,.6,1) both .2s}
  .h-sticker-1{animation:lg-wiggle 3s ease-in-out infinite}
  .obj-peek{animation:lg-peek 5s ease-in-out infinite}
  .h-magnet:hover .h-magnet-glyph,.h-note:hover strong{animation:lg-wiggle .45s ease-in-out}
  .judge-fab:hover .dommer{animation:lg-wiggle .45s ease-in-out}
  .bubble{animation:lg-pop .45s cubic-bezier(.3,1.6,.6,1) both}
}
@media (prefers-reduced-motion:reduce){
  .h-obj,.h-magnet,.h-note,.site-logo-mark{transition:none}
}

@media (max-width:1100px){
  .h-fridge{grid-template-columns:repeat(4,1fr)}
  .h-board{grid-template-columns:1fr}
  .h-fridge>:last-child{grid-column:span 4;grid-row:span 1;flex-direction:row;align-items:center;justify-content:flex-start;gap:16px}
  .h-fridge>:last-child .h-magnet-glyph{width:70px;height:70px;margin:0}
  .h-board-intro{max-width:520px}
}
@media (max-width:860px){
  .h-hero{grid-template-columns:1fr;padding-top:28px}
  .h-stage{max-width:440px}
  .h-chat{grid-template-columns:1fr;text-align:left}
  .h-chat-dommer{max-width:200px}
}
@media (max-width:600px){
  .site-header-inner{padding:10px 14px}
  .site-logo{font-size:1.35rem}
  .site-nav{order:3;width:100%;justify-content:space-between}
  .site-nav a{padding:0 14px}
  .h-hero{padding-inline:16px}
  .h-sticker-1{width:80px;height:80px;font-size:1rem}
  .h-table{gap:30px}
  .obj-card{width:150px;height:210px}
  .obj-sheet{width:220px}.obj-sheet span{font-size:1.8rem}
  .h-fridge{grid-template-columns:repeat(2,1fr);grid-auto-rows:140px;gap:20px 16px}
  .h-wide{flex-direction:column;align-items:flex-start;gap:6px}
  .h-fridge>:last-child{grid-column:span 2}
  .h-big .h-magnet-glyph{width:96px;height:96px}
  .h-all,.h-rules,.h-daily{padding-inline:14px}
  .h-board{padding:18px;border-width:8px}
  .h-notes{gap:22px 14px}
  .h-note{width:calc(50% - 8px)}
  .h-note-lead{width:100%}
  .judge-fab{width:80px;height:80px}
  .judge-fab-label{display:none}
  .judge-panel{bottom:110px}
}
.crumbs:has(+ .game-frame){background-color:var(--cream);background-image:radial-gradient(rgba(43,33,28,.06) 1.2px,transparent 1.4px);background-size:22px 22px;margin-bottom:0}

/* ===== Tekstsider, regler og dommer ===== */
.wrap{max-width:860px;margin:0 auto;padding:48px 22px 0}
.wrap-narrow{max-width:760px}
.page-title{font-size:clamp(2.3rem,6vw,3.6rem)}
.lead{margin-top:14px;font-size:1.2rem;color:var(--muted-foreground)}
.prose p{margin-top:14px;font-size:1.1rem}
.prose h2{margin-top:34px;font-size:1.7rem}
.prose ul{margin-top:10px;list-style:disc;padding-left:1.4em}
.prose li{margin-top:6px}

.search-label{display:block;margin-top:32px;font-weight:700}
.search{margin-top:8px;width:100%;min-height:64px;border:3px solid var(--outline);border-radius:999px;background:var(--card);padding:0 24px;font-size:1.15rem;box-shadow:var(--pop-sm)}
.rule-list{margin-top:24px;overflow:hidden}
.rule-list li+li{border-top:3px dashed var(--ivory-edge)}
.rule-list a{display:flex;flex-wrap:wrap;align-items:center;gap:4px 22px;min-height:68px;padding:12px 22px;transition:background .15s}
.rule-list a:hover{background:var(--muted)}
.rule-list .rl-name{margin-right:auto;font-size:1.2rem;font-weight:700;font-family:var(--font-display)}
.rule-list .rl-meta{color:var(--muted-foreground)}
.rule-list .rl-soon{font-size:.85rem;font-weight:700;padding:2px 12px;border-radius:999px;background:var(--muted);border:2px solid var(--outline)}
.rule-list .rl-ready{background:var(--mint)}
.rule-empty{padding:20px 22px;color:var(--muted-foreground)}

.checked{display:inline-block;border:3px solid var(--success);color:var(--success);border-radius:18px;padding:8px 16px;line-height:1.35;font-weight:700;background:var(--card)}
.facts{margin-top:24px;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.facts div{padding:14px 16px}
.facts div:nth-child(1){background:var(--mint);transform:rotate(-1.5deg)}
.facts div:nth-child(2){background:var(--sun);transform:rotate(1deg)}
.facts div:nth-child(3){background:var(--coral);transform:rotate(-.5deg)}
.facts dt{font-weight:700;font-size:.95rem}
.facts dd{font-family:var(--font-display);font-size:1.4rem}

.dispute{margin-top:44px;padding:26px;background:var(--card);border:4px solid var(--outline);border-radius:24px;box-shadow:var(--pop)}
.dispute h2{font-size:2rem}
.dispute>p{color:var(--muted-foreground);margin-top:4px}
.dq{margin-top:14px;border:3px solid var(--outline);border-radius:18px;background:var(--ivory);overflow:hidden}
.dq>button{display:flex;width:100%;min-height:68px;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;text-align:left;font-size:1.12rem;font-weight:700}
.dq>button span{font-size:1.8rem;line-height:1;flex:none}
.dq-body{padding:0 20px 20px;display:grid;gap:12px}
.dq-yn{font-family:var(--font-display);font-size:1.7rem}
.dq-box{padding:14px 16px;border-radius:14px;border:3px solid var(--outline)}
.dq-box b{display:block}
.dq-off{background:var(--mint)}
.dq-house{background:var(--sun)}
.dq-ask{justify-self:start;min-height:52px;font-size:1rem}

.board-sec{margin-top:52px;display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center}
.board-sec svg{width:100%;max-width:380px;filter:drop-shadow(5px 5px 0 var(--outline));border-radius:14px}
.board-sec h2,.steps h2,.house h2{font-size:2rem}
.board-sec p{margin-top:12px}
.steps{margin-top:52px}
.steps ol{margin-top:16px;display:grid;gap:12px}
.steps li{display:flex;align-items:center;gap:16px;padding:14px 18px;font-size:1.08rem}
.steps li b{flex:none;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--coral);border:3px solid var(--outline);font-family:var(--font-display)}
.house{margin-top:52px}
.house>p{color:var(--muted-foreground);margin-top:4px}
.switches{margin-top:16px}
.switches label{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:68px;padding:12px 20px;cursor:pointer;font-size:1.1rem}
.switches label+label{border-top:3px dashed var(--ivory-edge)}
.switches input{appearance:none;-webkit-appearance:none;flex:none;position:relative;width:68px;height:38px;border-radius:999px;border:3px solid var(--outline);background:var(--muted);cursor:pointer;transition:background .2s}
.switches input::after{content:"";position:absolute;top:3px;left:3px;width:26px;height:26px;border-radius:50%;background:var(--card);border:3px solid var(--outline);transition:left .2s}
.switches input:checked{background:var(--success)}
.switches input:checked::after{left:31px}
.ourrules{margin-top:20px;max-width:460px;padding:22px 24px;background:var(--coral);transform:rotate(-1.5deg)}
.ourrules p:first-child{font-family:var(--font-display);font-size:1.5rem}
.ourrules ul{margin-top:10px;list-style:disc;padding-left:1.3em}
.ourrules .small{margin-top:12px;font-size:.9rem}

.judge-fab{position:fixed;right:18px;bottom:18px}
.judge-who{margin-right:auto}
.judge-who p:first-child{font-family:var(--font-display);font-size:1.5rem;line-height:1.1}
.judge-who p+p{font-size:1rem}
.bubble.wait{opacity:.7}
.judge-form .btn{min-height:56px}
.judge-limit{padding:0 16px 8px;font-size:.85rem;color:var(--muted-foreground)}

.notfound{text-align:center}
.notfound .dommer{width:200px;margin:30px auto 0;transform:rotate(-8deg)}
.notfound .btn{margin-top:22px}

@media (max-width:700px){
  .board-sec{grid-template-columns:1fr}
  .facts{grid-template-columns:1fr 1fr;gap:10px}
  .facts div:nth-child(3){grid-column:1/-1}
  .facts dd{font-size:1.1rem}
  .dispute{padding:18px 14px}
}

/* Detaljer til statisk version */
.dq summary{display:flex;min-height:68px;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;font-size:1.12rem;font-weight:700;cursor:pointer;list-style:none}
.dq summary::-webkit-details-marker{display:none}
.dq summary span::before{content:"+";font-size:1.9rem;line-height:1}
.dq[open] summary span::before{content:"\2212"}
.h-soon{align-self:flex-start;font-style:normal;font-size:.85rem;font-weight:700;padding:2px 10px;border-radius:999px;background:var(--ivory);border:2px solid var(--outline)}
.h-magnet.is-soon{cursor:default}
.h-magnet.is-soon .h-magnet-glyph{opacity:.75}
.h-wide .h-soon{margin-left:auto}
.game-frame iframe{display:block;width:100%;border:0;min-height:max(900px,100vh)}
.judge-panel[hidden]{display:none!important}
.h-note strong{overflow-wrap:normal;word-break:normal;hyphens:auto;font-size:1.2rem}
.crumbs-inline{padding:0;margin:0 0 18px}
.goal{margin-top:22px;padding:16px 20px;font-size:1.1rem;background:var(--ivory)}
.extra{margin-top:52px}
.extra h2{font-size:2rem}
.extra>p{margin-top:10px}
.facts-list{margin-top:14px;padding:6px 0}
.facts-list li{padding:10px 20px 10px 46px;position:relative}
.facts-list li+li{border-top:3px dashed var(--ivory-edge)}
.facts-list li::before{content:"";position:absolute;left:18px;top:19px;width:14px;height:14px;border-radius:50%;background:var(--coral);border:2px solid var(--outline)}
.faq .dq-body p{font-size:1.05rem}
.source{margin-top:40px;font-size:.95rem;color:var(--muted-foreground)}
.rule-kat{padding:14px 22px 8px;font-family:var(--font-display);font-size:1.3rem;background:var(--sun);border-top:3px solid var(--outline)!important}
.rule-kat:first-child{border-top:0!important}
.related{margin-top:48px;margin-bottom:24px}
.related h2{font-family:var(--font-display);font-size:1.8rem;margin-bottom:14px}
.rel-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}
.rel-card{display:flex;flex-direction:column;gap:4px;padding:18px 22px;text-decoration:none;color:var(--ink);transition:transform .15s}
.rel-card:hover{transform:translate(-2px,-3px)}
.rel-0{background:var(--mint)}.rel-1{background:var(--sun)}
.rel-kat{font-size:.9rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.rel-name{font-family:var(--font-display);font-size:1.45rem;line-height:1.2}
.rel-go{font-weight:700;text-decoration:underline;text-underline-offset:3px}
@media (prefers-reduced-motion:reduce){.rel-card{transition:none}}
/* Køleskab med 14 spil: 3 store, 1 bred, 10 små = 24 felter, går op i 6, 4 og 2 kolonner */
.h-fridge{grid-auto-rows:150px}
.h-sq{grid-column:span 1;grid-row:span 1}
.h-sq .h-magnet-glyph{width:58px;height:58px}
.h-sq span{font-size:1.15rem}
.h-fridge>:last-child{grid-column:auto!important;grid-row:auto!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-end!important;gap:6px!important}
.h-fridge>:last-child .h-magnet-glyph{width:58px!important;height:58px!important;margin:0 0 auto!important}
@media (max-width:1100px) and (min-width:641px){.h-fridge{grid-template-columns:repeat(4,1fr)}}
@media (max-width:640px){.h-fridge{grid-template-columns:repeat(2,1fr);grid-auto-rows:140px}.h-sq span{font-size:1.05rem}}
