/* Hinged cases, paper and interchangeable trays, shared by the two desktop activities. */
.pastimes.workroom {
  --case:#244249; --case-deep:#173039; --case-light:#49676b; --gold-edge:#b3935a;
  --felt:#3c6657; --ink:#203a3a; --sheet-ratio:.75; --paint-zoom:1;
  width:100%; max-width:1680px; margin:auto; color:var(--ink);
  padding:calc(var(--site-header-height) + 12px) clamp(10px,2.2vw,36px) 12px;
  font:500 14px/1.35 var(--sans);
}
.workroom.paint-room { --case:#294554; --case-deep:#1c313d; --case-light:#57717d; }
.workroom .desk-window {
  display:grid; grid-template-rows:auto auto minmax(0,1fr) auto; min-width:0;
  height:max(455px,calc(100dvh - var(--site-header-height) - var(--site-footer-height) - 24px));
  overflow:hidden; isolation:isolate; border:1px solid #233330; border-radius:11px;
  background:var(--case); box-shadow:0 2px 3px #19272445,0 12px 26px -10px #1b29276b,0 0 0 1px #ffe9bc;
}
.workroom .desk-bar { display:flex; align-items:center; gap:15px; min-height:44px; padding:5px 14px;
  background:linear-gradient(175deg,#ffffff15,transparent 42%),linear-gradient(var(--case-light),var(--case) 65%,var(--case-deep));
  color:#fff6df; border-top:1px solid #ffffff5c; border-bottom:2px solid var(--gold-edge); }
.desk-brand { display:flex; gap:10px; align-items:center; margin-right:auto; }
.workroom h1 { margin:0; }
.pastimes.workroom .desk-bar h1 { color:inherit; font:600 clamp(21px,2.15vw,31px)/1 var(--serif); letter-spacing:-.02em; text-shadow:0 1px 1px #15282c; }
.desk-icon { display:inline-block; flex:none; width:16px; height:16px; }
.desk-badge { display:grid; place-items:center; height:28px; width:29px; color:#f2d398; border:1px solid #a99367; border-radius:6px; box-shadow:inset 0 1px 2px #102525,0 1px #ffffff30; }
.desk-badge .desk-icon { width:19px; height:19px; }
.workroom .desk-back { font-size:13px; color:#f1e9d6; text-decoration:underline; text-underline-offset:3px; }
.desk-expand { display:grid; place-items:center; width:32px; height:30px; color:#fff2d6; background:#0e25264d; border:1px solid #a1ab975c; border-radius:4px; }
.desk-expand:hover { background:#73867a55; }
.workroom .desk-toolbar { display:flex; align-items:center; gap:10px; padding:7px 15px; color:#34413a; border-bottom:1px solid #5a5945;
  background:repeating-linear-gradient(0deg,#ffffff0a 0 1px,transparent 1px 3px),linear-gradient(#f2eddb,#ded6be); box-shadow:inset 0 1px #fff8e8; }
.desk-choice,.key-pair,.clue-actions,.zoom-choice { display:inline-flex; align-items:center; gap:7px; }
.desk-choice { min-width:0; }
.desk-choice>span,.workroom .paint-drawer legend,.workroom .plate-rack h2,.workroom [data-brush-size] { font:700 11px/1.25 var(--sans); letter-spacing:.075em; text-transform:uppercase; }
.workroom .desk-choice select,.workroom .zoom-choice select { min-width:0; max-width:100%; padding:5px 25px 5px 8px; height:32px; border-radius:4px; border:1px solid #817b63;
  color:#273b37; background-color:#fff9ea; box-shadow:inset 0 1px 3px #53472b2b,0 1px #fffae5; font:650 13px var(--sans); cursor:pointer; }
.workroom .desk-key { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:32px; padding:5px 12px; border:1px solid #8c8164; border-bottom-color:#74664d; border-radius:5px;
  background:linear-gradient(#fff9e7,#e8dfc6 85%,#d6ccae); color:#30413c; font:650 13px/1.25 var(--sans); text-shadow:0 1px #fffae5;
  box-shadow:inset 0 1px #fffef6,0 1px 1px #4f483552; cursor:pointer; }
.workroom .desk-key:hover:enabled { filter:brightness(1.055); }
.workroom .desk-key:active:enabled,.workroom .desk-key[aria-pressed=true] { box-shadow:inset 0 2px 3px #162b3090; background:linear-gradient(var(--case-deep),var(--case)); border-color:#2b4443; color:#fff7e1; text-shadow:none; }
.workroom .desk-key:disabled { opacity:.45; cursor:default; }
.workroom .desk-key.desk-accent { background:linear-gradient(#486660,#2e4d48); border-color:#253e38; color:#fffae8; text-shadow:0 1px #173530; box-shadow:inset 0 1px #9caf99,0 1px 2px #564e3f60; }
.workroom .key-pair { gap:3px; }
.workroom .print-key,.workroom [data-save-image] { margin-left:auto; }
.workroom .desk-status { display:flex; align-items:center; gap:12px; min-height:33px; padding:3px 12px; color:#37423c; background:linear-gradient(#e8e3d0,#dcd5be); border-top:1px solid #998d6e; box-shadow:inset 0 1px #fffae4; font:550 12px/1.25 var(--sans); }
.workroom .desk-status>span:first-child { flex:1; }
.workroom .desk-status [role=status]:not(:empty)::before { content:''; display:inline-block; width:6px; height:6px; margin-right:6px; border-radius:100%; background:#447357; box-shadow:inset 0 1px 1px #283f35; vertical-align:middle; }
.zoom-choice { border-left:1px solid #a59a7a; padding-left:10px; gap:4px; }
.workroom .zoom-choice select { height:25px; font-size:12px; padding:0 2px; border:0; box-shadow:none; background:transparent; }
.desk-expanded { position:fixed; z-index:65; inset:0; max-width:none!important; margin:0!important; padding:0!important; background:var(--case); overflow:auto; }
.workroom.desk-expanded .desk-window { height:100dvh; border:0; border-radius:0; }
body:has(.desk-expanded) { overflow:hidden; }
body:has(.desk-expanded) :is(.site-header,.site-footer,.skip) { visibility:hidden; }
.workroom :focus-visible { outline:2px solid #b87020; outline-offset:2px; }
.painting-bench { display:grid; grid-template-columns:161px minmax(0,1fr) 171px; min-height:0; }
.paint-drawer,.plate-rack { min-height:0; overflow:auto; background:linear-gradient(90deg,#a2927017,transparent 9%,#fff8e633 85%,#99886022),#e3dcc6; }
.paint-drawer { display:flex; flex-direction:column; padding:17px 13px 10px; gap:22px; border-right:1px solid #665e4d; }
.workroom .paint-drawer legend,.workroom .plate-rack h2,.workroom [data-brush-size] { color:#414739; margin:0 0 9px; }
.paint-tools { display:grid; gap:5px; }
.workroom .paint-tools .desk-key { justify-content:flex-start; padding:8px 12px; min-height:37px; }
.workroom [data-brush-size]:not([hidden]) { display:grid; gap:8px; }
.workroom [data-brush-size] input { width:100%; accent-color:#406270; }
.paint-wells { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:8px; background:linear-gradient(135deg,#b8aa87,#d2c7a7); border:1px solid #9b8c68; border-radius:7px; box-shadow:inset 1px 2px 3px #786c4c58,0 1px #f9f2d8; }
.workroom .paint-wells button { width:100%; aspect-ratio:1; padding:0; border:2px solid #dcd3b6; border-radius:50%; outline:none;
  background:radial-gradient(ellipse at 35% 26%,#ffffff55,transparent 42%),radial-gradient(ellipse at 63% 65%,transparent 38%,#00000033),var(--swatch);
  box-shadow:inset 1px 2px 3px #282f3670,0 1px 1px #6a6045,0 -1px 1px #9e906e; cursor:pointer; }
.workroom .paint-wells button[aria-pressed=true],.workroom .paint-wells button:focus-visible { outline:2px solid #204a58; outline-offset:1px; }
.colour-mixer { display:flex; align-items:center; gap:8px; margin-top:9px; font-size:13px; cursor:pointer; }
.colour-mixer input { width:31px; height:25px; padding:1px; border:1px solid #837756; border-radius:4px; background:#eee7cf; cursor:pointer; }
.paint-pdf { display:flex; align-items:center; gap:7px; margin-top:auto; color:#364943; text-decoration:underline; text-underline-offset:3px; font-size:12px; }
.paint-viewport,.puzzle-viewport { min-width:0; min-height:0; overflow:auto; container-type:size; overscroll-behavior:contain; scrollbar-color:#a69d82 #dcd6c4; }
.paint-viewport { background:linear-gradient(115deg,#6b829350,#263a4660),url('/assets/images/blaat-laeder.webp') center / 540px; box-shadow:inset 0 2px 10px #182b32aa; }
.paint-mat,.puzzle-mat { min-width:100%; min-height:100%; width:max-content; height:max-content; display:grid; place-items:center; padding:20px; }
.drawing-sheet { position:relative; width:calc(min(100cqw - 40px,(100cqh - 40px)*var(--sheet-ratio))*var(--paint-zoom)); background:white;
  box-shadow:0 1px 1px #45443c,1px 3px #e2dcc9,2px 4px #bcb5a5,2px 6px #eee8db,3px 8px 13px #101f2b73; }
.drawing-sheet canvas { display:block; width:100%; height:auto; touch-action:none; cursor:crosshair; }
.drawing-sheet::before { content:''; position:absolute; z-index:1; pointer-events:none; width:clamp(35px,16%,76px); height:9px; border:1px solid #7d673e; border-radius:4px 4px 2px 2px; top:-5px; left:50%; transform:translateX(-50%);
  background:linear-gradient(#a28a54,#e5d6a7 23%,#ad9157 38%,#c8b479 72%,#8c7347); box-shadow:0 2px 3px #30241359; }
.plate-rack { display:flex; flex-direction:column; overflow:hidden; padding:15px 0 0; border-left:1px solid #605d50; }
.workroom .plate-rack h2 { padding:0 14px 7px; margin-bottom:0; }
.plate-list { overflow:auto; padding:3px 9px 12px; scrollbar-width:thin; }
.plate-list button { width:100%; display:flex; gap:9px; align-items:center; text-align:left; padding:7px 5px; border:1px solid transparent; border-bottom-color:#b7ae95; color:#344139; cursor:pointer; }
.plate-list button[aria-pressed=true] { background:#fff6dd; border-color:#ad9b72; border-radius:5px; }
.plate-list button:hover { background:#f4ecd7; }
.plate-list img { flex:none; width:46px; height:57px; object-fit:contain; background:#fffef8; padding:2px; box-shadow:0 1px 3px #3c382e78; }
.plate-list span { font:600 12px/1.25 var(--sans); }
.plate-list small { display:block; margin-bottom:3px; font-size:10px; font-variant-numeric:tabular-nums; color:#666647; }

.puzzle-bench { display:grid; grid-template-columns:minmax(0,1fr) clamp(288px,30%,450px); min-height:0; }
.puzzle-board { display:grid; grid-template-rows:minmax(0,1fr) auto; min-height:0; min-width:0; }
.puzzle-viewport { background:radial-gradient(ellipse at 37% 27%,#68897240,transparent 74%),linear-gradient(115deg,#215a38c9,#234735ed),url('/assets/images/blaat-laeder.webp') center / 510px; box-shadow:inset 0 2px 10px #172e2899; }
.puzzle-mat { padding:20px; }
.cross-sheet { position:relative; padding:16px; border:1px solid #d6cdb2; border-radius:2px;
  background:#faf4e6 url('/assets/images/papir.webp') repeat 0 0 / 560px;
  box-shadow:0 1px 1px #736c55,1px 3px #e3dac1,2px 4px #9c9376,2px 6px #e6dec7,3px 8px 11px #0d241b63; }
.cross-sheet::before,.cross-sheet::after { content:''; position:absolute; width:24px; height:9px; top:-3px; background:linear-gradient(0deg,#c7ac6baf,#dfcd98c9); border-inline:1px dotted #aa945d; transform:rotate(-19deg); box-shadow:0 1px 1px #594a2430; pointer-events:none; }
.cross-sheet::before { left:-7px; }.cross-sheet::after { right:-7px; transform:rotate(19deg); }
.workroom [data-cross-grid] {
  --unit:var(--cross-zoom,min(54px,(100cqw - 78px)/var(--cols),(100cqh - 78px)/var(--rows)));
  width:calc(var(--cols)*var(--unit)); grid-auto-rows:var(--unit); margin:0;
}
.workroom .cross-square { aspect-ratio:auto; height:100%; background:#fffcf3; outline-color:#697368; }
.workroom .cross-square.current-word { background:#f1dc9d; }
.workroom .cross-square.current-cell { outline:2px solid #285850; outline-offset:-2px; background:#c8deca; }
.workroom .cross-square.wrong { box-shadow:inset 0 -4px #ad3239; }
.workroom .cross-square small { font-size:clamp(7px,calc(var(--unit)*.24),12px); }
.workroom .cross-square input { font:650 clamp(15px,calc(var(--unit)*.57),29px)/1 var(--sans); padding-top:4px; }
.cross-reading { display:flex; align-items:center; gap:6px; padding-right:11px; background:linear-gradient(#faf4df,#ebe1c5); border-top:1px solid #aa976e; }
.cross-reading .active-slip { flex:1; border:0; background:transparent; box-shadow:none; }
.active-slip { display:flex; align-items:center; gap:12px; min-height:57px; padding:7px clamp(13px,2vw,28px); background:linear-gradient(#faf4df,#ebe1c5); border-top:1px solid #aa976e; box-shadow:inset 0 1px #fffdef; }
.active-slip>div { min-width:0; }
.active-slip small { display:block; margin-bottom:2px; font:700 10px/1.3 var(--sans); color:#635b42; letter-spacing:.07em; text-transform:uppercase; }
.active-slip span:not(.clue-picture) { font:600 clamp(17px,1.65vw,23px)/1.15 var(--serif); }
.clue-book { display:grid; grid-template-rows:auto minmax(0,1fr) auto; min-height:0; overflow:hidden; border-left:5px double #8d7754; background:#f8f1de; }
.notebook-head { padding:12px 17px 0; border-bottom:1px solid #b6a987; background:linear-gradient(90deg,#c9bc92 0,#ede3c6 4%,#f2ead4 90%,#e3d9ba); }
.notebook-head h2 { margin:0 0 9px; font:600 clamp(23px,2vw,31px)/1 var(--serif); color:#32483e; }
.clue-tabs { display:flex; gap:5px; }
.workroom .clue-tabs .desk-key { min-height:30px; border-bottom:0; border-radius:5px 5px 0 0; padding:5px 11px; }
.workroom .clue-tabs .desk-key[aria-pressed=true] { background:linear-gradient(#527263,#385749); }
.notebook-pages { min-height:0; overflow:auto; padding:5px 12px 10px 16px; scrollbar-width:thin; background:linear-gradient(90deg,#d5c7a5 0,#fbf5e7 4%,#f7f0dc); }
.notebook-pages section[hidden] { display:none; }
.notebook-pages h3 { display:none; }
.notebook-pages ol { list-style:none; margin:0; padding:0; }
.notebook-pages li { border-bottom:1px solid #cfc7ae; }
.notebook-pages button { display:flex; align-items:center; width:100%; min-height:38px; padding:6px; gap:9px; border-left:3px solid transparent; color:#293e37; text-align:left; cursor:pointer; }
.notebook-pages button[aria-pressed=true] { background:#e5dab8; border-left-color:#426853; }
.notebook-pages button:hover { background:#ece5cc; }
.notebook-pages button>strong { flex:none; min-width:20px; font:700 14px var(--serif); }
.notebook-pages button>span:not(.clue-picture) { flex:1; font:500 14px/1.3 var(--sans); }
.notebook-pages button small { color:#5b6658; font-size:12px; white-space:nowrap; }
.clue-picture { flex:none; display:grid; place-items:center; width:37px; height:37px; overflow:hidden; border:1px solid #bead80; border-radius:4px; background:linear-gradient(135deg,#fff9e6,#e2d7b8); color:#314f4e; box-shadow:0 1px 2px #3e422c26; }
.clue-portrait { height:100%; width:100%; object-fit:cover; object-position:center 32%; }
.clue-sketch { width:76%; height:76%; }
.active-slip .clue-picture { width:39px; height:39px; }
.clue-actions { gap:7px; padding:9px 12px; border-top:1px solid #aa9f80; background:#e8dfc6; }
.cross-progress { white-space:nowrap; font-variant-numeric:tabular-nums; }
@media(max-width:950px) {
  .painting-bench { grid-template-columns:139px minmax(0,1fr) 136px; }
  .paint-drawer { padding-inline:9px; }.plate-list { padding-inline:5px; }.plate-list button{gap:6px;}
}
@media(max-width:720px) {
  .pastimes.workroom { padding:calc(var(--site-header-height) + 6px) max(5px,env(safe-area-inset-right)) 8px max(5px,env(safe-area-inset-left)); }
  .workroom .desk-window { height:auto; min-height:0; border-radius:7px; display:block; }
  .workroom .desk-bar { min-height:39px; gap:10px; padding:4px 9px; }
  .desk-brand { gap:6px; }.desk-badge { width:24px; height:24px; }.desk-badge .desk-icon { width:16px; height:16px; }
  .workroom .desk-back { font-size:12px; }.desk-expand { width:30px; height:30px; }
  .workroom .desk-toolbar { gap:6px; padding:6px; flex-wrap:wrap; }.workroom .desk-key { padding:5px 7px; gap:4px; }
  .desk-choice { gap:4px; }.desk-choice>span { font-size:10px; }.workroom .desk-choice select { padding:3px 2px; }
  .workroom .motif-choice { width:100%; }.motif-choice select { flex:1; }
  .painting-bench { display:flex; flex-direction:column; }
  .paint-drawer { display:flex; flex-direction:row; flex-wrap:wrap; align-items:center; gap:6px 12px; padding:7px; overflow:visible; border-right:0; border-bottom:1px solid #625e4c; }
  .workroom .paint-drawer legend,.workroom .paint-drawer [data-brush-size] { margin:0 0 3px; font-size:10px; }
  .paint-tools { display:flex; gap:3px; }.workroom .paint-tools .desk-key { display:grid; justify-items:center; justify-content:center; min-height:37px; padding:3px 6px; font-size:11px; }
  .paint-box { flex:1; }.paint-wells { display:grid; grid-template-columns:repeat(5,minmax(17px,1fr)); max-width:188px; gap:3px; padding:4px 6px; }
  .workroom .paint-wells button { height:21px; width:21px; justify-self:center; }.colour-mixer { margin:3px 0 0; font-size:11px; gap:4px; }.colour-mixer input { height:19px; width:24px; }
  .workroom [data-brush-size]:not([hidden]) { order:4; width:100%; grid-template-columns:auto minmax(80px,160px); align-items:center; margin:0; }
  .paint-pdf { margin:0 0 0 auto; font-size:11px; flex-direction:column; gap:2px; max-width:49px; text-align:center; }
  .paint-viewport { height:clamp(300px,55svh,590px); flex:none; }.plate-rack { display:none; }
  .drawing-name { display:none; }
  .workroom .desk-status { min-height:32px; gap:6px; padding:3px 7px; font-size:11px; }.zoom-choice { padding-left:4px; }
  .puzzle-bench { display:block; }.puzzle-viewport { height:clamp(290px,49svh,520px); }.puzzle-board { display:block; }
  .active-slip { min-height:47px; padding:5px 10px; }
  .clue-book { border-left:0; border-top:3px double #a18e64; }
  .notebook-head { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:7px 10px 0; }.notebook-head h2 { font-size:21px; margin-bottom:4px; }
  .notebook-pages { min-height:90px; max-height:36svh; padding-inline:8px; }.clue-actions { padding:6px 10px; }
  .desk-expanded .desk-window { height:auto!important; min-height:100dvh; }
}
@media(max-width:405px) {
  .cross-room .desk-choice>span { position:absolute; clip-path:inset(50%); width:1px; height:1px; overflow:hidden; }
  .cross-room .desk-toolbar { gap:4px; }.cross-room .desk-toolbar .desk-key { font-size:12px; padding-inline:5px; }
  .cross-room .print-key { width:34px; }.cross-room .print-key span { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; }
  .desk-toolbar .desk-icon { width:14px; height:14px; }
}
@media print {
  body:has(.cross-room),body:has(.cross-room) #main,.pastimes.cross-room,.cross-room.desk-expanded { position:static!important; display:block; height:auto; min-height:0; margin:0; padding:0!important; width:auto; max-width:none; overflow:visible; color:black; background:white; }
  .cross-room .desk-window,.cross-room .puzzle-bench,.cross-room .puzzle-board,.cross-room .puzzle-viewport,.cross-room .puzzle-mat,.cross-room .cross-sheet,.cross-room .clue-book,.cross-room .notebook-pages { display:block; position:static; height:auto; min-height:0; max-height:none; width:auto; min-width:0; border:0; overflow:visible; padding:0; margin:0; box-shadow:none; background:white; container-type:normal; }
  .cross-room :is(.desk-badge,.desk-toolbar,.desk-back,.desk-expand,.desk-status,.notebook-head,.clue-actions,.cross-reading),.cross-room .cross-sheet::before,.cross-room .cross-sheet::after { display:none!important; }
  .cross-room .desk-bar { display:block; border:0; padding:0; margin:0 0 4mm; background:white; color:black; }
  .cross-room .desk-bar::before { content:'Fest i Hvalen'; font:10pt var(--sans); }
  .pastimes.cross-room .desk-bar h1 { color:black; text-shadow:none; font-size:23pt; }
  .cross-room [data-cross-grid] { --unit:min(10mm,calc(177mm / var(--cols)),calc(226mm / var(--rows))); width:calc(var(--cols)*var(--unit)); margin:4mm auto 6mm; break-inside:avoid; }
  .cross-room .cross-square,.cross-room .cross-square.current-word,.cross-room .cross-square.current-cell,.cross-room .cross-square.wrong { background:white; outline:.24mm solid black; outline-offset:-.12mm; box-shadow:none; }
  .cross-room .cross-square input { visibility:hidden; }
  .cross-room .cross-square small { color:black; font-size:min(7.5pt,calc(var(--unit)*.28)); }
  .cross-room .notebook-pages { display:block; columns:2; column-gap:8mm; }
  .cross-room .notebook-pages section,.cross-room .notebook-pages section[hidden] { display:block!important; }
  .cross-room .notebook-pages h3 { display:block; color:black; font-size:15pt; margin:0 0 2mm; break-after:avoid; }
  .cross-room .notebook-pages li { break-inside:avoid; border-bottom:.15mm solid #bbb; }
  .cross-room .notebook-pages button,.cross-room .notebook-pages button[aria-pressed=true] { background:white; border:0; min-height:0; gap:2mm; padding:1.4mm 0; color:black; }
  .cross-room .notebook-pages button>span:not(.clue-picture) { font:10.5pt/1.25 var(--sans); }.cross-room .notebook-pages button>strong { min-width:5mm; color:black; }
  .cross-room .clue-picture { width:8mm; height:8mm; border:.2mm solid #777; background:white; box-shadow:none; color:black; }
  .cross-room[data-large=true] .clue-book { break-before:page; }
  .cross-room[data-large=true] .notebook-pages button { padding:.65mm 0; }
  .cross-room[data-large=true] .clue-picture { width:7.5mm; height:7.5mm; }
  .cross-room[data-large=true] .clue-book::before { content:'Fest i Hvalen · Ledetråde'; display:block; margin-bottom:4mm; font:600 17pt var(--serif); }
}

/* The lobby opens onto the original shipboard stage and character artwork. */
.pastimes[data-activity="quiz"] { max-width:1180px; padding-top:calc(var(--site-header-height) + clamp(16px,3vw,34px)); }
.pastimes[data-activity="quiz"] .download-heading { margin-bottom:18px; }
.pastimes[data-activity="quiz"] .quiz-panel { width:100%; max-width:none; display:grid; grid-template-columns:minmax(190px,.8fr) minmax(0,1fr); padding:0; overflow:hidden; border-color:#a18c61; box-shadow:0 8px 20px #1d353329,inset 0 1px #fff6da; }
.quiz-poster { position:relative; min-height:270px; overflow:hidden; border-right:3px double #be9f64; background:#182130 url('/assets/karaoke/sets/diskotek.webp') center / cover; }
.quiz-poster img { position:absolute; bottom:3%; height:85%; width:63%; object-fit:contain; object-position:center bottom; filter:drop-shadow(2px 5px 4px #090c18); }
.quiz-poster .poster-host { left:0; z-index:1; }.quiz-poster .poster-guest { right:0; height:70%; }
.quiz-signup { align-self:center; padding:clamp(17px,3vw,39px); }
body:has(.quiz-show[open]) { overflow:hidden; }
dialog.quiz-show { --show-gold:#f3ce88; position:fixed; inset:0; margin:0; padding:0; width:100%; max-width:none; height:100dvh; max-height:none; border:0; border-radius:0; overflow:auto; color:#fff5dc; color-scheme:dark; background:#0c1c25; font:500 15px/1.4 var(--sans); }
.quiz-show::backdrop { background:#0b171e; }
.show-stage { position:relative; isolation:isolate; display:grid; grid-template-rows:auto minmax(0,1fr) auto; min-height:100%; padding:max(14px,env(safe-area-inset-top)) clamp(12px,4.7vw,94px) max(12px,env(safe-area-inset-bottom)); }
.show-stage::before { content:''; z-index:-2; position:absolute; inset:0; background:linear-gradient(#0b111952 0%,#05151c26 50%,#09131b88),url('/assets/karaoke/sets/diskotek.webp') center 47% / cover; }
.show-stage::after { content:''; position:absolute; z-index:-1; inset:0; pointer-events:none; background:radial-gradient(ellipse at 23% 54%,#ffd19222,transparent 34%),linear-gradient(90deg,#09131b44,transparent 24%,transparent 76%,#08131b55); }
.show-header,.show-console { display:flex; align-items:center; gap:clamp(10px,1.8vw,25px); }
.show-header { padding:2px 0 12px; border-bottom:1px solid #e6c38280; text-shadow:0 2px 6px #05090c; }
.show-header h2 { color:var(--show-gold); margin:0 auto 0 0; font:600 clamp(24px,3vw,42px)/1 var(--serif); letter-spacing:-.035em; }
.show-score { display:flex; gap:8px; align-items:center; color:#ffe9b9; }
.show-score span,.host-desk>span,.quiz-show .quiz-position { font:700 11px/1.3 var(--sans); color:#edcf93; text-transform:uppercase; letter-spacing:.13em; }
.show-score strong { min-width:38px; padding:2px 8px; font:700 25px/1.15 var(--sans); color:#241e18; text-align:center; font-variant-numeric:tabular-nums; text-shadow:0 1px #fff1bd; border:1px solid #caa86a; border-radius:4px; background:linear-gradient(#f5dfae,#e8c78a 48%,#bb9c65 50%,#e6cb9a 54%,#d8bb86); box-shadow:0 2px 4px #050b0b80; }
.show-exit,.sound-desk button { display:inline-flex; align-items:center; gap:5px; padding:6px 10px; min-height:33px; color:#fff2cd; font:650 13px var(--sans); border:1px solid #c8ae789c; border-radius:5px; background:#142328eb; }
.quiz-show svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.show-floor { display:grid; grid-template-columns:minmax(0,.63fr) minmax(0,1.37fr); align-items:center; column-gap:clamp(18px,4vw,85px); width:min(100%,1310px); margin:auto; padding:clamp(13px,2.5vh,30px) 0; }
.show-host { display:flex; flex-direction:column; align-items:center; align-self:stretch; justify-content:end; min-width:0; }
.host-spot { display:grid; place-items:end center; min-height:0; width:100%; position:relative; }
.host-spot::after { content:''; position:absolute; z-index:-1; bottom:1.5%; left:15%; right:10%; height:6%; border-radius:50%; background:#0c1017b3; filter:blur(8px); }
.host-spot img { display:block; object-fit:contain; object-position:center bottom; height:clamp(205px,43svh,465px); width:100%; filter:drop-shadow(3px 5px 7px #13111c); }
.host-desk { width:min(100%,310px); padding:12px 12px 15px; text-align:center; border:1px solid #b59b68; border-top:4px ridge #cfb177; border-radius:4px 4px 10px 10px; background:linear-gradient(110deg,#274c55f5,#142e39f5); box-shadow:inset 0 0 0 3px #1f353b,0 6px 12px #070f1a85; }
.host-desk>span { display:block; font-size:10px; }.host-desk strong { display:block; color:#ffdf9f; font:600 clamp(25px,2.5vw,37px)/1.15 var(--serif); }
.host-desk p { color:#fff0d0; margin:4px auto 0; max-width:33ch; font:500 clamp(13px,1.1vw,16px)/1.35 var(--sans); }
.show-board { min-width:0; position:relative; padding:clamp(20px,2.8vw,48px); border:1px solid #9c794e; border-radius:12px;
  background:radial-gradient(ellipse at 15% 0,#32525ce8,transparent 70%),linear-gradient(145deg,#18333aed,#0e252cf5);
  box-shadow:inset 0 0 0 3px #213439,inset 0 0 0 4px #b9975d,0 8px 24px #07121d99; }
.show-board::before { position:absolute; content:''; top:-3px; left:10%; right:10%; height:5px; background:radial-gradient(circle,#fff1b9 1px,#eec475 2px,transparent 3px) center / 21px 5px; filter:drop-shadow(0 0 3px #ffbe65aa); pointer-events:none; }
.quiz-show .quiz-position { margin:0 0 10px; color:#f6d693; }
.show-board h2 { font:600 clamp(25px,3.15vw,48px)/1.07 var(--serif); color:#fff7e5; letter-spacing:-.025em; margin:0 0 clamp(12px,2.1vh,22px); }
.show-board h2:focus { outline:none; }
.show-answers { display:grid; gap:8px; }
.show-answers button { display:flex; align-items:center; gap:12px; width:100%; min-height:44px; padding:7px 12px; text-align:left; border:1px solid #a19069; border-radius:6px; background:linear-gradient(95deg,#fff2d5,#e9dbb8); color:#283c3f; font:650 clamp(14px,1.2vw,18px)/1.25 var(--sans); box-shadow:inset 0 1px #fff9e6,0 2px 3px #091c2370; }
.show-answers button b { display:grid; flex:none; place-items:center; width:26px; height:26px; color:#604b28; border:1px solid #ae976d; border-radius:50%; background:#f0deba; font:650 16px var(--serif); }
.show-answers button>span { flex:1; }
.show-answers button:hover:enabled { background:#fff5d9; border-color:#fbe1a5; }
.show-answers button:disabled { opacity:1; cursor:default; }
.show-answers .is-correct { background:linear-gradient(100deg,#c3e4bc,#a9cfc0); color:#173e32; border-color:#b8e5b9; }
.show-answers .is-wrong { background:#f0c6b6; color:#542e26; border-color:#e1ad93; }
.quiz-show .quiz-explanation { margin:12px 0; color:#f6eed9; font:500 clamp(13px,1.04vw,16px)/1.45 var(--sans); }
.quiz-show .quiz-explanation a { color:#ffe19a; white-space:normal; }
.show-next { display:inline-flex; align-items:center; gap:12px; padding:9px 15px; min-height:38px; border-radius:5px; border:1px solid #e8ca8e;
  background:linear-gradient(#ffe7a9,#d7b06c); color:#283839; font:700 14px var(--sans); box-shadow:inset 0 1px #fff4c9,0 2px 4px #0918208a; }
.show-console { justify-content:space-between; flex-wrap:wrap; padding:8px 12px; border:1px solid #897b57; border-radius:6px; background:linear-gradient(#273c42f5,#142930f5); box-shadow:inset 0 1px #7b897770; }
.round-lights,.sound-desk,.sound-desk label { display:flex; gap:7px; align-items:center; }
.round-lights span { display:grid; place-items:center; width:23px; height:23px; border-radius:50%; color:#d6d0b9; background:#152830; border:1px solid #798276; font:600 12px var(--sans); }
.round-lights .lamp-current { color:#312d22; background:#efd497; border-color:#fff1b9; box-shadow:0 0 5px #ffdc9b5c; }.round-lights .lamp-right { color:#17362d; background:#a6cfad; }.round-lights .lamp-miss { color:#442b22; background:#dfb398; }
.sound-desk button { gap:7px; min-height:29px; padding:4px 9px; font-size:12px; }
.sound-desk button[hidden] { display:none; }
.sound-desk button::before { content:''; width:7px; height:7px; border-radius:50%; background:#75817b; border:1px solid #90978b; }
.sound-desk button[aria-pressed=true]::before { background:#f6d285; border-color:#ffe4a5; box-shadow:0 0 5px #ffd17899; }
.sound-desk label { margin-left:5px; color:#f4dca9; gap:5px; }.sound-desk input { width:clamp(55px,9vw,120px); accent-color:#e7c684; }
.show-console [data-audio-status]:empty { display:none; }.show-console [data-audio-status]:not(:empty) { flex-basis:100%; color:#ffe5a6; font-size:12px; }
.final-tally { color:#f5cf82; text-shadow:0 3px #4f4b37; font:600 clamp(72px,11vw,160px)/1 var(--serif); margin:8px 0 16px; }
.final-tally small { font-size:.38em; color:#f2ddb5; }.quiz-show.is-finale .show-board { background:radial-gradient(ellipse at 23% 10%,#506458f4,transparent 85%),#17353e; }
.quiz-show :is(button,input,a):focus-visible { outline:3px solid #ffdc84; outline-offset:3px; }
@media(prefers-reduced-motion:no-preference) {
  .quiz-show[open] .show-floor { animation:quiz-entrance .35s ease-out; }
  .show-answers .is-correct { animation:quiz-answer .3s ease-out; }
  .show-board.is-question .show-answers button { animation:quiz-entrance .25s both; }
  .show-board.is-question .show-answers button:nth-child(2) { animation-delay:.04s; }
  .show-board.is-question .show-answers button:nth-child(3) { animation-delay:.08s; }
  .quiz-show.is-finale .show-stage::after { background:radial-gradient(ellipse at 20% 46%,#ffd59545,transparent 50%),radial-gradient(ellipse at 88% 18%,#dfbb6f40,transparent 49%); animation:quiz-entrance .65s ease-out; }
  .quiz-show.is-finale .final-tally { animation:quiz-entrance .4s ease-out; }
  @keyframes quiz-entrance { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }
  @keyframes quiz-answer { 50% { transform:translateX(3px); } }
}
@media(max-width:700px) {
  .pastimes[data-activity="quiz"] .quiz-panel { grid-template-columns:1fr; }.quiz-poster { min-height:130px; height:22svh; border-right:0; border-bottom:3px double #b59865; }.quiz-poster .poster-host { left:13%; width:45%; }.quiz-poster .poster-guest { right:13%; width:45%; }
  .show-stage { display:flex; flex-direction:column; gap:8px; padding:8px max(7px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(7px,env(safe-area-inset-left)); }.show-header { padding:4px 3px 7px; gap:9px; }.show-header h2 { font-size:25px; }.show-score strong { min-width:29px; font-size:19px; }.show-exit { min-height:31px; padding:4px 7px; }
  .show-floor { display:flex; flex:1; flex-direction:column; justify-content:center; gap:7px; padding:0; margin:0 auto; }
  .show-host { display:grid; grid-template-columns:minmax(65px,23%) 1fr; align-items:end; margin:0 auto; width:min(100%,460px); }
  .host-spot img { height:clamp(69px,13svh,115px); }.host-desk { width:100%; text-align:left; padding:6px 9px; border-top-width:2px; }.host-desk>span { font-size:9px; }.host-desk strong { font-size:21px; }.host-desk p { font-size:12px; max-width:none; margin:1px 0; }
  .show-board { width:100%; padding:15px 13px; }.show-board h2 { font-size:clamp(23px,5.7vw,32px); margin-bottom:11px; }.quiz-show .quiz-position { margin-bottom:6px; font-size:10px; }
  .show-answers { gap:5px; }.show-answers button { min-height:39px; gap:8px; padding:6px 8px; }.show-answers button b { height:23px; width:23px; }
  .quiz-show .quiz-explanation { margin:8px 0; }.show-console { gap:5px; padding:6px; }.round-lights,.sound-desk { gap:3px; }.round-lights span { width:18px; height:18px; font-size:10px; }.sound-desk button { padding:3px 5px; gap:4px; }.sound-desk input { width:49px; }.sound-desk label { margin-left:1px; }.sound-desk label svg { width:13px; }
}
@media(max-height:575px) and (min-width:701px) { .host-spot img { height:180px; }.show-stage { padding-block:6px; }.show-board { padding:13px 18px; }.show-board h2 { font-size:25px; }.show-answers button { min-height:32px; padding-block:3px; }.show-floor { padding-block:7px; }.show-header { padding-bottom:5px; } }

.show-console .music-credit { margin-left:auto; color:#efdfba; font:italic 500 14px/1.2 var(--serif); }
.show-console .music-credit::before { content:'♫'; margin-right:5px; font-style:normal; }
@media (max-width:700px) {
  .show-console .music-credit { order:3; flex-basis:100%; text-align:right; font-size:12px; }
  .sound-desk { flex-wrap:wrap; justify-content:flex-end; }
}
