/* The entrance belongs to SKETCH! and leads into either room theme. */
.theme-entry {
 height:var(--sketch-screen-height,100dvh); display:grid; align-content:center; justify-items:center;
 gap:clamp(12px,3vh,36px); padding:3vh 5vw; color:#152e26;
 background:radial-gradient(ellipse at 0% 0%,#d4f0df,transparent 50%),#f2f7f3;
 font-family:system-ui,sans-serif; text-align:center;
}
.theme-entry header img {height:clamp(38px,8vh,92px);max-width:55vw;object-fit:contain}
.theme-entry section {width:min(1024px,100%)}
.theme-entry h1 {margin:0 0 3vh;color:#173e30;font:700 clamp(23px,3.5vw,54px)/1.1 system-ui,sans-serif;letter-spacing:-.045em;text-shadow:none}
.theme-options {display:grid;grid-template-columns:1fr 1fr;gap:clamp(10px,2.5vw,30px)}
.theme-choice {
 display:flex;flex-direction:column;align-items:stretch;border:2px solid #c3d4cb;border-radius:18px;
 padding:6px 6px clamp(9px,2vh,20px);background:white;color:#103c2b;cursor:pointer;text-align:left;
 box-shadow:0 8px 25px #18392812;font-family:system-ui,sans-serif;
}
.theme-choice strong,.theme-choice small{margin:0 .8rem}
.theme-choice strong{font-size:clamp(18px,2.4vw,36px);letter-spacing:-.03em;margin-top:1.1vh}
.theme-choice small{font-size:clamp(12px,1.2vw,18px);color:#466356;margin-top:.25em}
.theme-preview{height:min(27vh,240px);display:block;border-radius:12px;background-position:center;background-size:cover}
.classic-preview{background-image:url('/assets/intro/atelier-poster-v2.webp')}
.light-preview{background-image:url('/assets/lichtstudio-preview.webp')}
html[data-sketch-ui] body .theme-choice:focus,
html[data-sketch-ui] body .theme-choice.tv-focused{outline:3px solid #0c6647!important;outline-offset:3px!important;border-color:#fff!important;box-shadow:0 8px 30px #143f2e25!important}

/* Additional specificity keeps all overrides inside the selected theme. */
html:root[data-sketch-ui="lichtstudio"] {
 --ui-ink:#123329;--ui-muted:#426254;--ui-line:#c7dbcf;--ui-paper:#f5fbf6;--ui-card:white;
 --ui-accent:#0b6243;--ui-accent-soft:#ddf2e4;--ui-paper-texture:#f7fcf8;--ui-focus:#127552;
 --ui-pad-shadow:0 5px 22px #1c492414;--ui-button-shadow:none;--ui-purple-face:#0c5038;--ui-purple-shadow:none;
 --muted:#466355;--ink:#15352a;--purple:#0b6243;--cream:#f8fcf7;
}
html:root[data-sketch-ui="lichtstudio"] body{color:var(--ui-ink);background:radial-gradient(ellipse at top left,#d9f0e2,transparent 58%),#edf6ef;font-family:'Studio',system-ui,sans-serif}
html:root[data-sketch-ui="lichtstudio"] body::after{display:none}
html:root[data-sketch-ui="lichtstudio"] body :is(.panel,.paper,.book-sheet,.board-overlay,.sk-dialog-surface,.audio-card,.selection-card,.tip-card,.callout-card,.finale-awards,.light-awards,.avatar-editor){
 color:var(--ui-ink);background:var(--ui-paper-texture);border:1px solid var(--ui-line);border-radius:16px;box-shadow:var(--ui-pad-shadow);text-shadow:none}
html:root[data-sketch-ui="lichtstudio"] body :is(.eyebrow,.muted,.sk-kicker,.award-kicker,.finale-subtitle,.mobile-rules,.my-profile,.gallery-heading,.selection-timer,.role-head,.book-status,.page-caption span,.page-caption strong,.photo-comparison figcaption,.turn-badge small,#album-save-status){color:var(--ui-muted);text-shadow:none}
html:root[data-sketch-ui="lichtstudio"] body :is(.tape,.sk-board-binding,.book-cover,.page-stack,.book-binding,.flip-sheet,.paper-top,.cinema-lights){display:none}
html:root[data-sketch-ui="lichtstudio"] body .sk-dialog-surface::before,html:root[data-sketch-ui="lichtstudio"] body .tv-board::after,html:root[data-sketch-ui="lichtstudio"] body .board-wrap::before,html:root[data-sketch-ui="lichtstudio"] body .finale-awards::before{display:none}
html:root[data-sketch-ui="lichtstudio"] body :is(.btn,.btn.soft,.btn.ghost,.tool-btn,.badge,.pill,.winner-choice,.difficulty-card,.lobby-main .player-tile,.sk-select-chevron,.text-field,.letter-cell,.avatar-upload .btn,.voice-modes button,.gallery-controls .btn){
 background:#fff;color:var(--ui-ink);border:1px solid var(--ui-line);border-radius:12px;box-shadow:none;text-shadow:none;transform:none}
html:root[data-sketch-ui="lichtstudio"] body :is(.btn,.tool-btn,.difficulty-card):hover:not(:disabled){background:#e5f4e9;color:#123a29;border-color:#92bca2}
html:root[data-sketch-ui="lichtstudio"] body :is(.btn.purple,.btn.primary,#start-game,#restart,#stop-round,#confirm-winner,.difficulty-card[aria-pressed="true"],.btn[aria-pressed="true"],.winner-choice.selected){
 background:#0b5139;color:white;border:1px solid #0b5139;box-shadow:none;text-shadow:none}
html:root[data-sketch-ui="lichtstudio"] body :is(#start-game,.btn.purple,.btn.primary,#stop-round):hover:not(:disabled){background:#096046;color:white}
html:root[data-sketch-ui="lichtstudio"] body .difficulty-card[aria-pressed="true"] :is(small,span,strong){color:white}
html:root[data-sketch-ui="lichtstudio"] body :is(.btn:disabled,#start-game:disabled,#confirm-winner:disabled){background:#dfebe3;color:#53695d;border-color:#cfddd3;box-shadow:none;text-shadow:none}
html:root[data-sketch-ui="lichtstudio"] body :is(.btn,button,a,input,summary):focus-visible,html:root[data-sketch-ui="lichtstudio"] body .tv-focused{outline:3px solid #007445!important;outline-offset:2px!important;border-color:#fff!important;box-shadow:0 0 0 2px white!important}
html:root[data-sketch-ui="lichtstudio"] body .sk-dialog,html:root[data-sketch-ui="lichtstudio"] body .modal:not(.atelier-intro){background:#102d23c9}
html:root[data-sketch-ui="lichtstudio"] body .sk-dialog-heading,html:root[data-sketch-ui="lichtstudio"] body .sk-dialog-footer{border-color:var(--ui-line)}
html:root[data-sketch-ui="lichtstudio"] body .sk-dialog-heading h2,html:root[data-sketch-ui="lichtstudio"] body .sk-dialog-content h3,html:root[data-sketch-ui="lichtstudio"] body .word-options .btn,html:root[data-sketch-ui="lichtstudio"] body .word-options .btn strong{color:var(--ui-ink)}
html:root[data-sketch-ui="lichtstudio"] body .tv-shell .top-actions .btn{min-width:0;padding:6px 14px;background:#fff;color:#123329;border:1px solid var(--ui-line);box-shadow:none}
html:root[data-sketch-ui="lichtstudio"] body .tv-footer .publisher-corner,html:root[data-sketch-ui="lichtstudio"] body .publisher-corner{background:transparent;border:0;box-shadow:none}
html:root[data-sketch-ui="lichtstudio"] body .tv-notice-dock .spoken-welcome{background:#e1efe4;color:#143e2c;border:0;max-height:42px;padding:5px 12px}
html:root[data-sketch-ui="lichtstudio"] body .tv-footer,html:root[data-sketch-ui="lichtstudio"] body .tv-notice-dock{height:38px;min-height:38px}
html:root[data-sketch-ui="lichtstudio"] body .tv-footer .publisher-corner{width:62px}
html:root[data-sketch-ui="lichtstudio"] body .lobby-main{border-top:1px solid var(--ui-line);gap:clamp(8px,1.5vh,18px)}
html:root[data-sketch-ui="lichtstudio"] body .lobby-main .lobby-heading p{display:block;margin:4px 0;color:var(--ui-muted)}
html:root[data-sketch-ui="lichtstudio"] body .lobby-roster{flex:1;min-height:0}
html:root[data-sketch-ui="lichtstudio"] body .lobby-main .player-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(4px,1vh,12px)}
html:root[data-sketch-ui="lichtstudio"] body .lobby-main .player-tile .avatar{border:0;box-shadow:none}
html:root[data-sketch-ui="lichtstudio"] body .lobby-main .player-tile.empty{background:transparent;border-style:dashed}
html:root[data-sketch-ui="lichtstudio"] body .lobby-main .lobby-bottom{margin-top:auto;align-items:center}
html:root[data-sketch-ui="lichtstudio"] body .light-settings{flex:1;min-height:0;overflow:auto;padding:4px;display:grid;align-content:start;gap:clamp(6px,1.4vh,16px)}
html:root[data-sketch-ui="lichtstudio"] body .light-settings .photo-setup-row{display:grid}
html:root[data-sketch-ui="lichtstudio"] body .light-settings .photo-setup-row .btn{font-size:clamp(12px,1.35vw,18px);min-height:38px;padding:6px 10px}
html:root[data-sketch-ui="lichtstudio"] body :is(.join-card .room-code,.sk-qr-frame,.sk-start-emblem,.sk-start-arrow){background:#e3f1e7;color:#164633;border:1px solid #cbdfd1;box-shadow:none}
html:root[data-sketch-ui="lichtstudio"] body .light-settings-toggle{min-width:128px}
html:root[data-sketch-ui="lichtstudio"] body[data-view="tv"] .tv-game-shell,html:root[data-sketch-ui="lichtstudio"] body[data-view="tv"] .cinema-shell{padding:8px max(12px,1.4vw);gap:5px}
html:root[data-sketch-ui="lichtstudio"] body .tv-game-shell>.topbar{gap:clamp(8px,1.2vw,22px);min-height:48px;background:#0b5039;border-radius:14px;color:white;padding:4px 12px}
html:root[data-sketch-ui="lichtstudio"] body .tv-game-shell .brand{width:clamp(75px,9vw,135px);height:38px;flex-shrink:1}
html:root[data-sketch-ui="lichtstudio"] body .tv-game-shell .tv-turn-line{flex:1;min-width:0;justify-content:flex-start;gap:16px}
html:root[data-sketch-ui="lichtstudio"] body .tv-turn-line #turn-head{flex:0 1 auto}
html:root[data-sketch-ui="lichtstudio"] body .tv-turn-line .turn-badge small,html:root[data-sketch-ui="lichtstudio"] body .tv-game-actions,html:root[data-sketch-ui="lichtstudio"] body .tv-game-actions strong{color:#e3f5e8}
html:root[data-sketch-ui="lichtstudio"] body .tv-turn-line .timer,html:root[data-sketch-ui="lichtstudio"] body .drawer-game .timer{border:0;border-radius:22px;background:#eaf7ef;color:#0c5139;height:36px;min-width:52px;width:auto;padding:3px 10px;box-shadow:none;font-variant-numeric:tabular-nums}
html:root[data-sketch-ui="lichtstudio"] body .timer.urgent:not(.frozen){background:#b93030;color:white}
html:root[data-sketch-ui="lichtstudio"] body .tv-game-shell .game-layout{display:flex;flex:1;min-height:0;gap:0}
html:root[data-sketch-ui="lichtstudio"] body .tv-drawing-stage{width:100%;gap:3px}
html:root[data-sketch-ui="lichtstudio"] body .tv-sheet-area{background:#fffdf5;border:1px solid #cbddd0;border-radius:12px;overflow:hidden}
html:root[data-sketch-ui="lichtstudio"] body .tv-game-shell .tv-board{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
html:root[data-sketch-ui="lichtstudio"] body .tv-board .board-overlay{inset:0;border-radius:0}
html:root[data-sketch-ui="lichtstudio"] body .tv-sheet-clue{display:flex;align-items:center;justify-content:center;gap:12px;min-height:26px}
html:root[data-sketch-ui="lichtstudio"] body .tv-sheet-clue small{margin:0;color:#426254}
html:root[data-sketch-ui="lichtstudio"] body .tv-sheet-clue .letter-cell{font-size:clamp(14px,2vh,22px);height:clamp(22px,3.5vh,36px);width:clamp(16px,2.7vh,28px)}
html:root[data-sketch-ui="lichtstudio"] body .board-overlay{background:#f2faf4f5}
html:root[data-sketch-ui="lichtstudio"] body .timer.frozen{background:#ecdbb7;color:#4e411e}
html:root[data-sketch-ui="lichtstudio"] body .drawer-game{max-width:none;display:flex;flex-direction:column;gap:4px;padding:4px max(4px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left))}
html:root[data-sketch-ui="lichtstudio"] body .drawer-game>.game-top{min-height:32px}
html:root[data-sketch-ui="lichtstudio"] body .drawer-game .turn-badge .avatar{width:28px;height:28px}
html:root[data-sketch-ui="lichtstudio"] body .drawer-game>.secret-word{min-height:32px;background:#d8edde;border:0;border-radius:10px;box-shadow:none;padding:4px 12px}
html:root[data-sketch-ui="lichtstudio"] body .secret-word strong{color:#0c5139}
html:root[data-sketch-ui="lichtstudio"] body .drawer-game>.board-wrap,html:root[data-sketch-ui="lichtstudio"] body .player-game .board-wrap{padding:0;background:#fffdf5;border:1px solid var(--ui-line);border-radius:12px;box-shadow:none}
html:root[data-sketch-ui="lichtstudio"] body .drawer-game .drawing-board{max-width:100%;max-height:100%;box-shadow:none;border-radius:0}
html:root[data-sketch-ui="lichtstudio"] body .player-game .board-overlay{inset:0}
html:root[data-sketch-ui="lichtstudio"] body .light-drawer-dock{position:relative;display:flex;align-items:center;justify-content:space-between;gap:6px;flex:none}
html:root[data-sketch-ui="lichtstudio"] body .light-quick-tools{display:flex;gap:4px;align-items:center}
html:root[data-sketch-ui="lichtstudio"] body .light-tools-toggle{width:auto;padding:6px 9px;font-size:13px}
html:root[data-sketch-ui="lichtstudio"] body .light-tools-toggle::before{content:'';width:14px;height:14px;flex:none;background:var(--current-ink);border:1px solid #789485;border-radius:50%}
html:root[data-sketch-ui="lichtstudio"] body .light-drawer-dock .drawer-stop{position:static;flex:1;display:flex;align-items:center;flex-direction:row-reverse;gap:5px;margin:0}
html:root[data-sketch-ui="lichtstudio"] body .light-drawer-dock .stop-button{width:auto;flex:1;min-height:46px;margin:0;padding:6px 12px;font-size:18px}
html:root[data-sketch-ui="lichtstudio"] body .light-drawer-dock .stop-button small,html:root[data-sketch-ui="lichtstudio"] body .light-drawer-dock #reveal-hint small{display:none}
html:root[data-sketch-ui="lichtstudio"] body .light-drawer-dock .hint-tools{flex:0 1 auto;align-items:center;gap:1px}
html:root[data-sketch-ui="lichtstudio"] body #reveal-hint{border:1px solid var(--ui-line);background:white;box-shadow:none;min-height:38px;color:#154f36}
html:root[data-sketch-ui="lichtstudio"] body .light-tool-tray{position:absolute;z-index:8;bottom:calc(100% + 6px);left:0;width:min(100%,430px);padding:12px;border:1px solid var(--ui-line);border-radius:14px;background:#fff;box-shadow:0 8px 32px #123d2926}
html:root[data-sketch-ui="lichtstudio"] body .light-tool-tray .swatches{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
html:root[data-sketch-ui="lichtstudio"] body .light-tool-tray .swatch{width:31px;height:31px;justify-self:center}
html:root[data-sketch-ui="lichtstudio"] body .light-tool-tray .tools{margin:0 0 7px}
html:root[data-sketch-ui="lichtstudio"] body .drawer-game:has(.judging) .light-drawer-dock{display:none}
html:root[data-sketch-ui="lichtstudio"] body .drawer-game:has(.judging){height:auto;min-height:100dvh}
html:root[data-sketch-ui="lichtstudio"] body .finale-stage:has(.gallery-stage){display:flex;min-width:0;align-items:stretch;padding:0}
html:root[data-sketch-ui="lichtstudio"] body .finale-stage .gallery-stage{flex:1}
html:root[data-sketch-ui="lichtstudio"] body .gallery-stage{animation:none}
html:root[data-sketch-ui="lichtstudio"] body .gallery-heading{color:#365c49;margin:0 4px 5px}
html:root[data-sketch-ui="lichtstudio"] body .notebook{margin:0;filter:none;perspective:none;transform:none}
html:root[data-sketch-ui="lichtstudio"] body .book-sheet{padding:8px;box-shadow:none}
html:root[data-sketch-ui="lichtstudio"] body .photo-comparison{gap:8px}
html:root[data-sketch-ui="lichtstudio"] body .photo-comparison figure{background:white;border:1px solid #d4e4d9;border-radius:12px;padding:6px;overflow:hidden}
html:root[data-sketch-ui="lichtstudio"] body .photo-frame{background:#eff6f0}
html:root[data-sketch-ui="lichtstudio"] body .photo-frame img,html:root[data-sketch-ui="lichtstudio"] body .photo-comparison canvas{object-fit:contain}
html:root[data-sketch-ui="lichtstudio"] body .photo-comparison figcaption{font:700 clamp(14px,1.25vw,22px)/1.25 system-ui,sans-serif}
html:root[data-sketch-ui="lichtstudio"] body .page-caption{margin:4px 0 0;padding:4px 5px 0}
html:root[data-sketch-ui="lichtstudio"] body .book-status:empty{display:none}
html:root[data-sketch-ui="lichtstudio"] body .gallery-controls{gap:6px}
html:root[data-sketch-ui="lichtstudio"] body :is(.finale-awards h1,.finale-awards h1 em,.podium-person strong,.podium-person span,.finale-standings .score-row .points){color:#184a34}
html:root[data-sketch-ui="lichtstudio"] body .light-awards{text-align:center;padding:10px}
html:root[data-sketch-ui="lichtstudio"] body .light-awards .cinema-medal{width:50px;height:50px;margin:auto}
html:root[data-sketch-ui="lichtstudio"] body .light-awards .cinema-podium{max-width:650px;margin:auto}
html:root[data-sketch-ui="lichtstudio"] body .light-awards .score-list{color:#194530}
html:root[data-sketch-ui="lichtstudio"] body [hidden]{display:none!important}
@media (orientation:landscape) and (max-height:650px){
 html:root[data-sketch-ui="lichtstudio"] body .drawer-game:not(:has(.judging)){display:grid;grid-template-columns:minmax(0,1fr) clamp(160px,25vw,225px);grid-template-rows:auto auto minmax(0,1fr);gap:4px 8px}
 html:root[data-sketch-ui="lichtstudio"] body .drawer-game>.board-wrap{grid-column:1;grid-row:1/4;height:100%}
 html:root[data-sketch-ui="lichtstudio"] body .drawer-game>.game-top,html:root[data-sketch-ui="lichtstudio"] body .drawer-game>.secret-word,html:root[data-sketch-ui="lichtstudio"] body .light-drawer-dock{grid-column:2}
 html:root[data-sketch-ui="lichtstudio"] body .drawer-game>.secret-word{grid-row:2}
 html:root[data-sketch-ui="lichtstudio"] body .light-drawer-dock{grid-row:3;flex-direction:column;align-items:stretch;justify-content:flex-end}
 html:root[data-sketch-ui="lichtstudio"] body .light-drawer-dock .drawer-stop{flex:none}
 html:root[data-sketch-ui="lichtstudio"] body .light-tool-tray{bottom:0;left:auto;right:calc(100% + 6px);width:260px;max-width:55vw}
 html:root[data-sketch-ui="lichtstudio"] body .drawer-game>.connection-banner:not(.hidden){position:absolute;top:0;left:0;z-index:8}
}
@media(max-width:1050px){
 html:root[data-sketch-ui="lichtstudio"] body .tv-game-shell .top-actions{gap:5px}
 html:root[data-sketch-ui="lichtstudio"] body .tv-game-shell .top-actions .btn{font-size:13px;padding:6px 9px}
 html:root[data-sketch-ui="lichtstudio"] body .tv-game-shell .tv-game-actions>span{display:none}
}
@media(max-width:700px){
 html:root[data-sketch-ui="lichtstudio"] body.album-viewing .has-photos .photo-comparison{grid-template-columns:1fr}
 html:root[data-sketch-ui="lichtstudio"] body.album-viewing .book-sheet{overflow:visible}
 html:root[data-sketch-ui="lichtstudio"] body.album-viewing .book-sheet canvas,html:root[data-sketch-ui="lichtstudio"] body.album-viewing .photo-frame{width:100%;height:auto;aspect-ratio:4/3;min-height:0}
}
