/* One atelier: layered sketchpads, enamel controls and a single amber focus ring. */
html[data-sketch-ui] {
 --ui-ink:#32243c;
 --ui-muted:#736779;
 --ui-paper:#fff5e4;
 --ui-card:#fffdf8;
 --ui-line:#dccbb7;
 --ui-accent:#704093;
 --ui-accent-soft:#eee5f3;
 --ui-focus:#efc66d;
 --ui-radius:20px;
 --ui-control-height:48px;
 --ui-control-font:16px;
 --ui-paper-texture:radial-gradient(ellipse at 48% 44%,#fffaf2c9 0,#fffaf2a6 52%,#fffaf266 100%),url('/assets/atelier-sketchbook.webp') var(--ui-paper);
 --ui-pad-shadow:inset 0 2px 0 #fffef9,inset 0 -1px 0 #dac3a8,0 2px 0 #eedcc5,0 3px 0 #bba287,0 5px 0 #fff0da,0 6px 0 #b59a7d,0 8px 0 #614c69,0 16px 26px #160b2c66;
 --ui-button-shadow:inset 0 2px 1px #fffef9,inset 0 -2px 1px #d6c1a9,inset 2px 0 3px #ffffff85,0 2px 0 #c4aa91,0 4px 0 #8c7283,0 6px 0 #49314f,0 9px 12px #3a25432b;
 --ui-purple-face:radial-gradient(ellipse at 30% 0,#edcfff65,transparent 65%),linear-gradient(180deg,#a575c6,#8050a7 48%,#623380 52%,#70408f);
 --ui-purple-shadow:inset 0 2px 1px #eed1ff,inset 0 -2px 2px #492266,inset 2px 0 4px #ecd6ff40,0 2px 0 #a577c2,0 4px 0 #542969,0 6px 0 #35203d,0 10px 14px #3f245645;
}
html[data-sketch-ui] body {
 background-color:#211825;
 background-position:center;
 color:#f7f3eb;
}
html[data-sketch-ui] body .btn,
html[data-sketch-ui] body .btn.ghost,
html[data-sketch-ui] body .btn.soft,
html[data-sketch-ui] body .ya5-menu-trigger,
html[data-sketch-ui] body .sk-dialog button,
html[data-sketch-ui] body .sk-dialog a.btn {
 display:inline-flex;align-items:center;justify-content:center;gap:10px;
 min-height:var(--ui-control-height);padding:11px 18px;margin:0;
 border:1px solid #cdb6a1;border-top-color:#fffef6;border-radius:14px;
 background:linear-gradient(180deg,#fffef8,#fff6e8 48%,#efe0ca);color:var(--ui-ink);
 --ui-control-shadow:var(--ui-button-shadow);
 box-shadow:var(--ui-control-shadow);text-shadow:0 1px 0 #fff9ec;
 font:700 var(--ui-control-font)/1.25 'Studio',system-ui,sans-serif;
 text-align:center;letter-spacing:0;transform:none;filter:none;isolation:auto;
 transition:background .15s,border-color .15s,box-shadow .15s;cursor:pointer;
}
html[data-sketch-ui] body .btn:before,
html[data-sketch-ui] body .btn:after {display:none;}
html[data-sketch-ui] body .btn:hover:not(:disabled),
html[data-sketch-ui] body .ya5-menu-trigger:hover {background:linear-gradient(#fffef8,#f5e7fa);border-color:#bca0ce;transform:none;filter:none;}
html[data-sketch-ui] body .btn:active:not(:disabled) {--ui-control-shadow:inset 0 2px 4px #4e315b30,0 2px 0 #6f577a,0 4px 5px #32243c20;transform:none;box-shadow:var(--ui-control-shadow);}
html[data-sketch-ui] body .btn.purple,
html[data-sketch-ui] body .btn.primary,
html[data-sketch-ui] body #start-game,
html[data-sketch-ui] body #restart {background:var(--ui-purple-face);color:#fffaf7;border-color:#cca6e5;border-bottom-color:#613681;--ui-control-shadow:var(--ui-purple-shadow);box-shadow:var(--ui-control-shadow);text-shadow:0 2px 2px #39204c;}
html[data-sketch-ui] body .btn.primary:hover:not(:disabled),
html[data-sketch-ui] body .btn.purple:hover:not(:disabled),
html[data-sketch-ui] body #start-game:hover:not(:disabled) {background:radial-gradient(ellipse at 30% 0,#f4dcff85,transparent 65%),linear-gradient(180deg,#b98cdb,#9465ba 48%,#764496 52%,#8555a5);}
html[data-sketch-ui] body .btn:disabled,
html[data-sketch-ui] body .sk-dialog button:disabled {opacity:1;filter:none;background:linear-gradient(#f3eeed,#e3d8dc);color:#8c8091;border-color:#dcd2df;--ui-control-shadow:inset 0 1px #fff9f2,0 3px 0 #b4a2aa,0 5px 7px #3a254319;box-shadow:var(--ui-control-shadow);cursor:default;}
html[data-sketch-ui] body .btn[aria-pressed="true"],
html[data-sketch-ui] body .winner-choice.selected,
html[data-sketch-ui] body .tool-btn.active {background:linear-gradient(#f5e9ff,#dfc8ec);color:#60357f;border:2px solid var(--ui-accent);--ui-control-shadow:inset 0 1px #fff6ff,inset 0 -2px #c1a5d0,0 3px 0 #9b78ac,0 5px 0 #57415f,0 8px 10px #3a25431f;box-shadow:var(--ui-control-shadow);}
html[data-sketch-ui] body #reveal-hint {background:linear-gradient(#f5e9ff,#dfc8ec);color:var(--ui-accent);border:1px solid #bea4cc;--ui-control-shadow:var(--ui-button-shadow);box-shadow:var(--ui-control-shadow);border-radius:14px;}
/* A lit enamel rim replaces the heavy black/yellow outline. Selection stays visible. */
html[data-sketch-ui] body button:focus,
html[data-sketch-ui] body a:focus,
html[data-sketch-ui] body input:focus,
html[data-sketch-ui] body select:focus,
html[data-sketch-ui] body textarea:focus,
html[data-sketch-ui] body summary:focus,
html[data-sketch-ui] body [tabindex="0"]:focus,
html[data-sketch-ui] body .tv-focused,
html[data-sketch-ui] body #ya5-illustrated-guide button:focus,
html[data-sketch-ui] body #ya5-game-menu button:focus,
html[data-sketch-ui] body #ya5-trial-message button:focus,
html[data-sketch-ui] body #ya5-trial-message input:focus,
html[data-sketch-ui] body #ya5-trial-message a:focus {
 outline:0!important;border-color:#e0ac4a!important;
 box-shadow:inset 0 0 0 2px #fff0b8,0 0 0 2px #e6b455,0 0 0 4px #fff0bc85,0 0 22px #f6c96570,var(--ui-control-shadow,0 2px 5px #32243c20)!important;transform:none!important;filter:none!important;
}
html[data-sketch-ui] body .text-field,
html[data-sketch-ui] body select,
html[data-sketch-ui] body .sk-dialog input,
html[data-sketch-ui] body .sk-dialog textarea {
 min-height:var(--ui-control-height);padding:10px 14px;border:1px solid #cbbbd3;
 border-radius:12px;background:linear-gradient(#f2e7d8,#fffdf7 40%);color:var(--ui-ink);
 --ui-control-shadow:inset 0 2px 4px #80674425,0 2px 0 #fffef8;
 box-shadow:var(--ui-control-shadow);font:600 var(--ui-control-font)/1.3 'Studio',system-ui,sans-serif;
}
html[data-sketch-ui] body .panel,
html[data-sketch-ui] body .paper {background:var(--ui-paper-texture);color:var(--ui-ink);border:2px solid #a18194;border-top:6px solid #956ba1;border-radius:var(--ui-radius);box-shadow:var(--ui-pad-shadow);transform:none;}
html[data-sketch-ui] body .panel .muted,
html[data-sketch-ui] body .paper .muted {color:var(--ui-muted);}
html[data-sketch-ui] body .sk-dialog,
html[data-sketch-ui] body .modal,
html[data-sketch-ui] body #ya5-game-menu,
html[data-sketch-ui] body #ya5-illustrated-guide,
html[data-sketch-ui] body #ya5-trial-message {
 position:fixed;inset:0;display:grid;place-items:center;padding:24px;
 background:radial-gradient(ellipse at 50% 35%,#58406e70,transparent 75%),#1b1425e8;color:var(--ui-ink);box-sizing:border-box;
 font:16px/1.5 'Studio',system-ui,sans-serif;
}
html[data-sketch-ui] body .modal {z-index:2147483570;}
html[data-sketch-ui] body #ya5-game-menu {z-index:2147483590;}
html[data-sketch-ui] body #ya5-illustrated-guide {z-index:2147483600;}
html[data-sketch-ui] body #ya5-trial-message {z-index:2147483646;}
html[data-sketch-ui] body .sk-dialog-holder {width:min(780px,100%);}
html[data-sketch-ui] body .sk-dialog-surface {
 width:min(820px,100%);max-height:calc(var(--sketch-screen-height,100vh) - 48px);
 display:flex;flex-direction:column;overflow:hidden;padding:24px;gap:0;
 position:relative;border:2px solid #a18194;border-top-color:#b397bd;border-radius:24px;background:var(--ui-paper-texture);
 box-shadow:var(--ui-pad-shadow),0 30px 80px #100b1d80;box-sizing:border-box;color:var(--ui-ink);
}
html[data-sketch-ui] body .sk-dialog-surface:before {content:'';position:absolute;inset:0 0 auto;height:10px;background:repeating-linear-gradient(90deg,transparent 0 24px,#2d1c3850 25px 27px,#d6bbd978 28px 29px,transparent 30px 46px),linear-gradient(90deg,#57315f,#9970ad 45%,#57315f);box-shadow:inset 0 2px 1px #c1a0ce,0 2px 3px #4b254528;pointer-events:none;}
html[data-sketch-ui] body .sk-dialog-holder .sk-dialog-surface {width:100%;}
html[data-sketch-ui] body .sk-dialog-heading {display:flex;align-items:center;justify-content:space-between;gap:20px;flex:none;padding:4px 0 20px;border-bottom:1px solid var(--ui-line);box-shadow:0 1px 0 #fffaf0;}
html[data-sketch-ui] body .sk-dialog-heading h2 {font-size:30px;line-height:1.2;letter-spacing:-.7px;color:var(--ui-ink);margin:5px 0 0;text-shadow:0 2px 0 #fff9ee;}
html[data-sketch-ui] body .sk-kicker {display:block;line-height:1.3;color:var(--ui-accent);font-size:10px;font-weight:800;letter-spacing:2px;}
html[data-sketch-ui] body .sk-close {min-width:44px;width:44px;min-height:44px;padding:0;font-size:25px;flex:none;}
html[data-sketch-ui] body .sk-dialog-content {min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px 6px;scroll-padding:10px;}
html[data-sketch-ui] body .sk-dialog-content p,
html[data-sketch-ui] body #ya5-game-menu .sk-dialog-content p {font-size:15px;line-height:1.5;color:var(--ui-muted);margin:0 0 14px;}
html[data-sketch-ui] body .sk-dialog-footer {display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;padding:16px 0 6px;border-top:1px solid var(--ui-line);box-shadow:inset 0 1px 0 #fffaf0;}
html[data-sketch-ui] body .sk-remote-note {font-size:11px;line-height:1.45;color:var(--ui-muted);max-width:230px;}
html[data-sketch-ui] body .sk-footer-actions {display:flex;align-items:center;justify-content:flex-end;gap:12px;}
html[data-sketch-ui] body .sk-menu-grid {display:grid;grid-template-columns:1fr 1fr;gap:16px 14px;padding-bottom:6px;}
html[data-sketch-ui] body #ya5-game-menu .sk-menu-grid .btn {display:flex;justify-content:flex-start;text-align:left;min-height:78px;width:100%;padding:14px;gap:14px;}
html[data-sketch-ui] body .sk-menu-icon {display:grid;place-items:center;width:40px;height:40px;flex:none;background:radial-gradient(circle at 35% 20%,#ae82c5,#6e438c 75%);color:#fff5df;border:1px solid #cda7df;border-bottom-color:#653b7c;border-radius:12px;box-shadow:inset 0 1px 1px #ead4fb,0 2px 0 #553768,0 4px 6px #60407035;font-size:22px;text-shadow:0 2px 1px #4b2b60;}
html[data-sketch-ui] body .sk-menu-label strong {display:block;font-size:16px;}
html[data-sketch-ui] body .sk-menu-label small {display:block;font-size:12px;font-weight:500;color:var(--ui-muted);margin-top:4px;}
html[data-sketch-ui] body .sk-confirm-actions {display:flex;justify-content:flex-end;gap:12px;margin-top:24px;}
html[data-sketch-ui] body .sk-confirm-actions .btn:last-child {background:var(--ui-purple-face);color:white;border-color:#cca6e5;--ui-control-shadow:var(--ui-purple-shadow);text-shadow:0 2px 2px #39204c;}
html[data-sketch-ui] body .audio-settings {display:grid;grid-template-columns:1fr 1.55fr;gap:16px;}
html[data-sketch-ui] body .audio-card {padding:18px;border:1px solid var(--ui-line);border-top-color:#fffef9;border-radius:16px;background:linear-gradient(135deg,#fffdf8,#f7ead8);box-shadow:inset 0 1px white,0 2px 0 #d8c1a8,0 4px 0 #f8ead6,0 5px 0 #c6aa91,0 8px 12px #69507520;overflow:visible;max-height:none;}
html[data-sketch-ui] body .audio-card h3 {font-size:18px;margin:0 0 14px;}
html[data-sketch-ui] body .audio-card>.btn {width:100%;margin:0 0 12px;}
html[data-sketch-ui] body .audio-card p {font-size:13px;line-height:1.4;margin:10px 0;}
html[data-sketch-ui] body .voice-modes,
html[data-sketch-ui] body .voice-actions {display:grid;grid-template-columns:1fr 1fr;gap:14px 12px;}
html[data-sketch-ui] body .voice-modes .btn,
html[data-sketch-ui] body .voice-actions .btn {font-size:14px;padding:10px;}
html[data-sketch-ui] body #voice-diagnostics {font-size:11px;max-height:42px;overflow:auto;overflow-wrap:anywhere;}
html[data-sketch-ui] body .sk-qr-layout {display:grid;grid-template-columns:minmax(190px,260px) 1fr;gap:28px;align-items:center;}
html[data-sketch-ui] body .sk-qr-frame {position:relative;padding:16px;background:#fffefb;border:1px solid #d4c1ad;border-radius:16px;text-align:center;box-shadow:inset 0 1px white,0 2px 0 #e8d6bf,0 4px 0 #b59f8a,0 8px 16px #6b487b24;}
html[data-sketch-ui] body .sk-qr-frame .qr {width:100%;height:auto;aspect-ratio:1;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;}
html[data-sketch-ui] body .sk-qr-frame figcaption {font-size:12px;color:var(--ui-muted);margin-top:12px;}
html[data-sketch-ui] body .sk-setup-steps {list-style:none;padding:0;margin:0;display:grid;gap:18px;counter-reset:steps;}
html[data-sketch-ui] body .sk-setup-steps li {display:flex;align-items:flex-start;gap:12px;color:var(--ui-ink);font-size:16px;line-height:1.45;counter-increment:steps;}
html[data-sketch-ui] body .sk-setup-steps li:before {content:counter(steps);display:grid;place-items:center;width:28px;height:28px;flex:none;background:linear-gradient(#f5e9ff,#dfc8ec);color:var(--ui-accent);border:1px solid #c1a3cf;box-shadow:inset 0 1px #fff6ff,0 2px 0 #b092c0;border-radius:50%;font-size:13px;font-weight:800;}
html[data-sketch-ui] body .sk-connection-status {padding:12px 14px;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-accent-soft);font-size:13px;margin:20px 0 0!important;color:var(--ui-accent)!important;}

/* Whole TV scene stays in its viewport. No transformed page or absolute logo. */
html[data-sketch-ui] body[data-view="tv"] {height:var(--sketch-screen-height,100vh);min-height:0;overflow:hidden;}
html[data-sketch-ui] body[data-view="tv"] #app {height:100%;overflow:hidden;}
html[data-sketch-ui] body[data-view="tv"] .tv-shell {
 width:100%;max-width:none;height:var(--sketch-screen-height,100vh);
 padding:24px 3.2vw 18px;display:flex;flex-direction:column;gap:16px;
 margin:0;transform:none!important;overflow:hidden;
}
html[data-sketch-ui] body .tv-shell>.topbar {flex:none;margin:0;min-height:60px;}
html[data-sketch-ui] body .tv-shell .brand {width:220px;height:60px;}
html[data-sketch-ui] body .topbar .brand {display:flex;flex-direction:column;align-items:flex-start;justify-content:center;}
html[data-sketch-ui] body .brand img {width:100%;height:100%;object-fit:contain;object-position:left center;}
html[data-sketch-ui] body .brand small {display:none;}
html[data-sketch-ui] body .top-actions {gap:12px;}
html[data-sketch-ui] body .top-actions .pill {display:none;}
html[data-sketch-ui] body .tv-shell .top-actions .btn,
html[data-sketch-ui] body .tv-shell .ya5-menu-trigger {min-width:150px;min-height:48px;background:linear-gradient(#fffdf5,#f7ebd9 48%,#e1cbb1);color:var(--ui-ink);border:1px solid #cbb398;border-top-color:#fffdf6;font-size:16px;padding:11px 18px;--ui-control-shadow:var(--ui-button-shadow);box-shadow:var(--ui-control-shadow);}
html[data-sketch-ui] body .tv-shell>.connection-banner {flex:none;margin:0;}
html[data-sketch-ui] body .lobby-layout {flex:1;min-height:0;display:grid;grid-template-columns:minmax(250px,29%) minmax(0,1fr);gap:20px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;align-items:stretch;}
html[data-sketch-ui] body .join-card {position:relative;padding:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;align-self:stretch;border-radius:var(--ui-radius);background:var(--ui-paper-texture);border-top:8px solid #956ba1;}
html[data-sketch-ui] body .join-card:before {content:'';position:absolute;top:0;left:14px;right:14px;height:4px;border-radius:0 0 3px 3px;background:linear-gradient(#e2cde8,#77517f);pointer-events:none;}
html[data-sketch-ui] body .join-card:after {display:block;content:'';position:absolute;top:1px;left:calc(50% - 29px);right:auto;width:58px;height:16px;pointer-events:none;border:1px solid #8c623e;border-radius:4px;background:linear-gradient(#705139,#e8c58d 30%,#ae7b44 48%,#f2dbaa 60%,#967044);box-shadow:inset 0 1px #ffe9b7,0 2px 0 #6d5439,0 4px 5px #63442644;}
html[data-sketch-ui] body .join-card .tape {display:none;}
html[data-sketch-ui] body .join-heading {width:100%;text-align:left;}
html[data-sketch-ui] body .join-heading h2 {font-size:27px;line-height:1.2;margin:5px 0 0;letter-spacing:-.6px;}
html[data-sketch-ui] body .join-card .sk-qr-frame {width:100%;max-width:340px;margin:0;}
html[data-sketch-ui] body .join-room {width:100%;text-align:center;}
html[data-sketch-ui] body .join-room span {display:block;font-size:12px;color:var(--ui-muted);margin-bottom:6px;}
html[data-sketch-ui] body .join-card .room-code {display:block;margin:0;padding:12px;border-radius:10px;border:1px solid #c2a17a;border-top-color:#fff1ca;background:repeating-linear-gradient(96deg,#ba884b09 0 1px,transparent 1px 5px),linear-gradient(#fff0c0,#eed092);color:#4f3552;box-shadow:inset 0 1px #fff8df,0 2px 0 #c4a77b,0 4px 0 #8d745f,0 7px 10px #74545a20;font-size:33px;line-height:1.1;letter-spacing:6px;transform:none;text-shadow:0 1px #fff5d1;}
html[data-sketch-ui] body .join-card .join-url {font-size:12px;color:var(--ui-muted);margin:0;line-height:1.3;}
html[data-sketch-ui] body .lobby-main {min-height:0;padding:24px;display:flex;flex-direction:column;gap:14px;overflow:hidden;border-top:5px solid #8e619d;}
html[data-sketch-ui] body .lobby-heading {position:relative;padding-bottom:10px;border-bottom:1px dashed #bfa98f;}
html[data-sketch-ui] body .lobby-heading h1 {font-size:34px;letter-spacing:-1px;line-height:1.15;margin:0;text-shadow:0 2px #fffaf0;}
html[data-sketch-ui] body .lobby-heading p {font-size:14px;margin:8px 0 0;color:var(--ui-muted);}
html[data-sketch-ui] body .lobby-roster {min-height:0;flex:1;display:flex;flex-direction:column;justify-content:center;}
html[data-sketch-ui] body .section-line {margin:0 0 10px;}
html[data-sketch-ui] body .section-line h3 {font-size:17px;}
html[data-sketch-ui] body .section-line span {color:var(--ui-muted);font-size:12px;}
html[data-sketch-ui] body .lobby-main .player-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;}
html[data-sketch-ui] body .lobby-main .player-tile {display:grid;grid-template-columns:36px minmax(0,1fr) 28px;gap:8px;padding:10px 8px;min-width:0;min-height:60px;border:1px solid var(--ui-line);border-top-color:#fffef9;background:linear-gradient(#fffdf8,#f1e4d0);border-radius:12px;box-shadow:inset 0 1px white,0 2px 0 #d6bda5,0 4px 5px #6f4b3520;opacity:1;}
html[data-sketch-ui] body .lobby-main .player-tile .avatar {width:36px;height:36px;border-radius:11px;border:2px solid white;box-shadow:0 0 0 1px var(--ui-line);font-size:16px;}
html[data-sketch-ui] body .lobby-main .player-tile h3 {font-size:14px;color:var(--ui-ink);max-width:none;line-height:1.15;}
html[data-sketch-ui] body .lobby-main .player-tile .small {font-size:10px;margin-top:4px;color:var(--ui-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
html[data-sketch-ui] body .lobby-main .player-tile.offline {background:linear-gradient(#f0eaed,#e2d8e1);}
html[data-sketch-ui] body .lobby-main .player-tile.empty {grid-template-columns:36px 1fr;border-style:dashed;background:transparent;}
html[data-sketch-ui] body .lobby-main .player-tile.empty .avatar {background:var(--ui-accent-soft);color:var(--ui-accent);border:0;box-shadow:none;}
html[data-sketch-ui] body .lobby-main .player-tile [data-kick] {margin:0!important;min-width:28px;width:28px;height:32px;min-height:32px!important;padding:0!important;font-size:21px;background:transparent;border:0;box-shadow:none;}
html[data-sketch-ui] body .difficulty-picker {margin:0;padding:0;flex:none;}
html[data-sketch-ui] body .difficulty-picker legend {font-size:14px;color:var(--ui-ink);margin:0 0 8px;padding:0;}
html[data-sketch-ui] body .difficulty-options {gap:10px;}
html[data-sketch-ui] body .difficulty-card {min-height:76px;padding:12px 28px 12px 12px;border:1px solid var(--ui-line);border-top-color:#fffef9;border-radius:12px;background:linear-gradient(#fffdf8,#f5e9d8);color:var(--ui-ink);text-align:left;transform:none;--ui-control-shadow:inset 0 1px #fffef9,0 2px 0 #d8bfa6,0 4px 0 #a78c84,0 6px 8px #6b487b18;box-shadow:var(--ui-control-shadow);}
html[data-sketch-ui] body .difficulty-card strong {font-size:16px;white-space:normal;line-height:1.15;}
html[data-sketch-ui] body .difficulty-card span {font-size:12px;color:var(--ui-muted);margin-top:5px;}
html[data-sketch-ui] body .difficulty-card small {display:none;}
html[data-sketch-ui] body .difficulty-card[aria-pressed="true"] {background:linear-gradient(#f6eaff,#dfc8ec);border:2px solid var(--ui-accent);padding:11px 27px 11px 11px;--ui-control-shadow:inset 0 1px #fff6ff,0 2px 0 #bea2cc,0 4px 0 #8d6a9f,0 6px 8px #6b487b18;}
html[data-sketch-ui] body .difficulty-card:focus,
html[data-sketch-ui] body .difficulty-card.tv-focused {color:var(--ui-ink);}
html[data-sketch-ui] body .difficulty-card[aria-pressed="true"]:focus,
html[data-sketch-ui] body .difficulty-card[aria-pressed="true"].tv-focused {border-color:var(--ui-accent);}
html[data-sketch-ui] body .difficulty-check {top:8px;right:9px;width:17px;height:17px;border-radius:50%;background:var(--ui-accent);color:white;font-size:11px;line-height:17px;text-align:center;}
html[data-sketch-ui] body .photo-setup-row {display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0;flex:none;}
html[data-sketch-ui] body #photo-lobby-status {display:none;}
html[data-sketch-ui] body .lobby-bottom {display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:0;padding:14px 0 6px;border-top:1px solid var(--ui-line);flex:none;flex-wrap:nowrap;}
html[data-sketch-ui] body .settings {display:flex;gap:12px;min-width:0;}
html[data-sketch-ui] body .settings label {font-size:11px;color:var(--ui-muted);margin-bottom:6px;}
html[data-sketch-ui] body .settings select {font-size:14px;width:100%;min-width:140px;}
html[data-sketch-ui] body .settings .sk-select-trigger {min-width:140px;min-height:var(--ui-control-height);width:100%;padding:10px 12px;justify-content:space-between;font-size:14px;gap:10px;}
html[data-sketch-ui] body .sk-select-chevron {display:grid;place-items:center;width:22px;height:22px;border-radius:7px;border:1px solid #c7af96;box-shadow:inset 0 1px #fffef2;background:linear-gradient(#f9e9d3,#dfc8a9);font-size:21px;line-height:1;flex:none;}
html[data-sketch-ui] body .sk-picker-modal .sk-dialog-surface {width:min(780px,100%);}
html[data-sketch-ui] body .sk-picker-grid {display:grid;gap:16px 12px;padding:8px 0 10px;}
html[data-sketch-ui] body .sk-picker-duration {grid-template-columns:repeat(3,minmax(0,1fr));}
html[data-sketch-ui] body .sk-picker-cycles {grid-template-columns:repeat(5,minmax(0,1fr));}
html[data-sketch-ui] body .sk-picker-option {position:relative;flex-direction:column;gap:5px;min-height:92px;padding:14px 12px;}
html[data-sketch-ui] body .sk-picker-option strong {font-size:30px;line-height:1;}
html[data-sketch-ui] body .sk-picker-option span {font-size:13px;font-weight:500;}
html[data-sketch-ui] body .sk-picker-option i {display:none;position:absolute;top:8px;right:8px;width:19px;height:19px;background:var(--ui-accent);color:white;border-radius:50%;font-size:12px;font-style:normal;line-height:19px;}
html[data-sketch-ui] body .sk-picker-option[aria-pressed="true"] i {display:block;}
html[data-sketch-ui] body #start-hint {margin:0!important;font-size:12px;color:var(--ui-muted);}
html[data-sketch-ui] body #start-game {min-width:240px;min-height:64px;padding:10px 14px;justify-content:space-between;gap:12px;border:2px solid #e1c0fa;border-bottom-color:#692d94;border-radius:19px;background:radial-gradient(ellipse at 25% 0,#f3ddffb0 0,#bf84ef40 44%,transparent 46%),linear-gradient(180deg,#b482ef,#8844d8 48%,#7630c9 52%,#5b20a6);--ui-control-shadow:inset 0 2px 1px #f4deff,inset 0 -3px 2px #401968,inset 3px 0 4px #efd6ff66,inset -2px 0 3px #32135e60,0 2px 0 #bd95ea,0 5px 0 #612f87,0 8px 0 #32163f,0 13px 18px #3f245650;box-shadow:var(--ui-control-shadow);}
html[data-sketch-ui] body .sk-start-emblem {display:grid;place-items:center;flex:none;width:38px;height:38px;border:1px solid #fff1c5;border-radius:12px;background:linear-gradient(#fff5d1,#e8c493);color:#613584;box-shadow:inset 0 1px white,0 2px 0 #a88a67,0 4px 5px #37115440;text-shadow:none;}
html[data-sketch-ui] body .sk-start-emblem svg {width:23px;height:23px;}
html[data-sketch-ui] body .sk-start-label {display:block;text-align:left;}
html[data-sketch-ui] body .sk-start-label strong {display:block;font-size:20px;line-height:1.15;}
html[data-sketch-ui] body .sk-start-label small {display:block;font-size:10px;font-weight:500;line-height:1.2;letter-spacing:.3px;margin-top:4px;color:#f2def9;}
html[data-sketch-ui] body .sk-start-arrow {display:grid;place-items:center;flex:none;width:20px;height:28px;}
html[data-sketch-ui] body .sk-start-arrow svg {width:20px;height:20px;}
html[data-sketch-ui] body #start-game:disabled {color:#4d2c5c;border-color:#e4d1ef;border-bottom-color:#a086ad;background:radial-gradient(ellipse at 30% 0,#fff3ff80,transparent 65%),linear-gradient(#dac7e6,#c4abd5 48%,#b79ac9 52%,#c5add5);--ui-control-shadow:inset 0 2px 1px #f8ecff,inset 0 -2px 2px #a387b6,0 2px 0 #c9b0d7,0 4px 0 #9a7da9,0 7px 0 #6e547a,0 10px 14px #63497525;text-shadow:0 1px #ecdff2;}
html[data-sketch-ui] body #start-game:disabled .sk-start-label small {color:#4d2c5c;}
html[data-sketch-ui] body #start-game:disabled .sk-start-arrow {color:#4d2c5c;}
html[data-sketch-ui] body #start-game:disabled .sk-start-emblem {background:linear-gradient(#f3e9f4,#d5c0df);border-color:#fff4fc;box-shadow:inset 0 1px #fff8fe,0 2px 0 #b39ac0,0 4px 5px #76538725;}
html[data-sketch-ui] body #start-game:active:not(:disabled) {--ui-control-shadow:inset 0 2px 4px #39204c70,inset 0 -1px #ae81c9,0 2px 0 #583066,0 4px 6px #3f24563b;}
html[data-sketch-ui] body .tv-footer {flex:none;min-height:58px;display:flex;align-items:center;gap:24px;}
html[data-sketch-ui] body .tv-notice-dock {flex:1;min-width:0;min-height:58px;height:58px;display:flex;align-items:center;gap:16px;margin:0;overflow:hidden;}
html[data-sketch-ui] body .tv-notice-dock .spoken-welcome {position:static;inset:auto;transform:none;z-index:auto;flex:1;min-width:0;width:auto;max-width:none;max-height:56px;margin:0;padding:10px 16px;border:1px solid #b8a4c850;border-radius:12px;background:#30243eeb;box-shadow:none;color:#f6ecdf;font-size:16px;line-height:1.4;text-align:left;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
html[data-sketch-ui] body .spoken-welcome:empty {visibility:hidden;}
html[data-sketch-ui] body .tv-hint-notice {display:none;align-items:center;gap:12px;max-width:420px;padding:10px 14px;background:var(--ui-paper);color:var(--ui-ink);border:1px solid var(--ui-line);border-radius:12px;box-shadow:none;}
html[data-sketch-ui] body .tv-hint-notice.is-visible {display:flex;}
html[data-sketch-ui] body .tv-hint-notice strong,
html[data-sketch-ui] body .tv-hint-notice small {display:block;}
html[data-sketch-ui] body .tv-hint-notice strong {font-size:15px;}
html[data-sketch-ui] body .tv-hint-notice small {font-size:11px;margin-top:3px;}
html[data-sketch-ui] body .hint-notice-icon {font-size:25px;color:var(--ui-accent);}
html[data-sketch-ui] body .tv-footer .publisher-corner {position:static;inset:auto;flex:none;width:88px;margin:0;padding:5px 8px;border:1px solid #d7c1a9;border-radius:10px;background:linear-gradient(#fffdf3,#eddbc4);box-shadow:inset 0 1px white,0 2px 0 #a18982,0 4px 5px #1d142530;line-height:0;}
html[data-sketch-ui] body .tv-game-shell>.game-top {flex:none;margin:0;}
/* Give the sheet the full middle of the TV; round information lives beside it. */
html[data-sketch-ui] body .tv-game-shell .game-layout {flex:1;min-height:0;grid-template-columns:minmax(0,1fr) clamp(240px,21vw,300px);grid-template-rows:minmax(0,1fr);gap:20px;align-items:stretch;}
html[data-sketch-ui] body .tv-drawing-stage {min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;}
html[data-sketch-ui] body .tv-game-shell .tv-board {flex:none;min-width:0;min-height:0;width:100%;height:100%;max-width:100%;max-height:100%;padding:10px 10px 10px 44px;display:grid;place-items:center;overflow:visible;isolation:isolate;border-radius:10px;}
html[data-sketch-ui] body .tv-board:before {display:none;}
html[data-sketch-ui] body .tv-board:after {content:'';position:absolute;inset:10px 10px 10px 27px;z-index:0;pointer-events:none;background:#fffdf5;border-radius:3px 7px 7px 3px;box-shadow:inset 1px 0 3px #9d896526,0 2px 0 #e8dfcf,0 4px 0 #b9a894,0 6px 0 #eee2d1,0 8px 8px #49301e44;}
html[data-sketch-ui] body .tv-board .drawing-board {position:relative;z-index:1;width:auto;height:auto;max-width:100%;max-height:100%;border-radius:0 5px 5px 0;box-shadow:none;}
html[data-sketch-ui] body .tv-board .board-overlay {inset:10px 10px 10px 44px;z-index:4;border-radius:0 5px 5px 0;}
html[data-sketch-ui] body .sk-board-binding {position:absolute;z-index:3;inset:16px auto 16px 6px;width:44px;display:flex;flex-direction:column;justify-content:space-around;pointer-events:none;}
html[data-sketch-ui] body .sk-board-binding i {display:block;flex:none;width:44px;height:clamp(28px,4.8vh,52px);background:url('/assets/sketchbook-ring.svg') center/100% 100% no-repeat;}
html[data-sketch-ui] body .tv-game-shell .side-panel {padding:18px;gap:12px;overflow:auto;}
html[data-sketch-ui] body .tv-round-status {flex:none;padding-bottom:14px;border-bottom:1px solid var(--ui-line);}
html[data-sketch-ui] body .tv-turn-line {display:flex;align-items:center;justify-content:space-between;gap:8px;}
html[data-sketch-ui] body .tv-turn-line #turn-head {min-width:0;flex:1;}
html[data-sketch-ui] body .tv-turn-line .turn-badge {gap:9px;}
html[data-sketch-ui] body .tv-turn-line .turn-badge>div {min-width:0;}
html[data-sketch-ui] body .tv-turn-line .turn-badge strong {font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
html[data-sketch-ui] body .tv-round-status .turn-badge small {color:var(--ui-muted);font-size:11px;line-height:1.35;}
html[data-sketch-ui] body .tv-game-shell .side-panel .avatar.sm {flex:none;width:40px;height:40px;border-radius:12px;}
html[data-sketch-ui] body .tv-turn-line .timer {flex:none;width:62px;min-width:62px;height:62px;font-size:26px;border-width:3px;}
html[data-sketch-ui] body .tv-round-status .word-clue {margin-top:14px;font-size:15px;letter-spacing:0;}
html[data-sketch-ui] body .tv-round-status .word-clue small {color:var(--ui-muted);font-size:9px;letter-spacing:1px;}
html[data-sketch-ui] body .tv-round-status .letter-boxes {gap:6px 10px;}
html[data-sketch-ui] body .tv-round-status .letter-word {gap:3px;}
html[data-sketch-ui] body .tv-round-status .letter-cell {width:22px;height:29px;font-size:18px;}
html[data-sketch-ui] body .tv-game-shell .side-panel>.row {flex:none;}
html[data-sketch-ui] body .tv-game-shell .side-panel .score-list {flex:1;min-height:0;display:flex;flex-direction:column;justify-content:flex-start;gap:2px;overflow:auto;}
html[data-sketch-ui] body .tv-game-shell .score-row {flex:none;gap:7px;padding:4px 0;border-bottom-color:#bba89640;}
html[data-sketch-ui] body .tv-game-shell .score-row .name {font-size:14px;}
html[data-sketch-ui] body .tv-game-shell .score-row .rank {color:var(--ui-muted);}
html[data-sketch-ui] body .tv-game-shell .score-row .points {color:var(--ui-accent);}
html[data-sketch-ui] body .tv-callout {flex:none;border-top:1px solid var(--ui-line);padding-top:12px;}
html[data-sketch-ui] body .tv-callout h3 {font-size:14px;margin-bottom:7px;}
html[data-sketch-ui] body .tv-callout .chat {max-height:66px;font-size:12px;line-height:1.45;color:var(--ui-muted);}
html[data-sketch-ui] body .tv-game-shell .tv-game-actions {justify-content:space-between;font-size:12px;color:var(--ui-muted);min-height:30px;gap:8px;}
html[data-sketch-ui] body .tv-game-shell .tv-game-actions strong {color:var(--ui-ink);}
html[data-sketch-ui] body .tv-game-shell #next-turn {min-height:36px;padding:6px 12px;font-size:12px;}
/* The same polished wire and punched holes bind the finale and saved albums. */
html[data-sketch-ui] body .book-binding {top:-18px;height:48px;}
html[data-sketch-ui] body .book-binding i {width:36px;height:48px;border:0;border-radius:0;box-shadow:none;transform:none;background:url('/assets/sketchbook-ring.svg') center/100% 100% no-repeat;}
html[data-sketch-ui] body .side-panel {min-height:0;overflow:auto;padding:20px;}
html[data-sketch-ui] body .tv-game-actions {flex:none;margin:0;min-height:44px;gap:16px;flex-wrap:nowrap;padding:0;color:#f5ecdf;}
html[data-sketch-ui] body .cinema-shell>.topbar {height:auto;}
html[data-sketch-ui] body .cinema-shell .finale-stage {flex:1;min-height:0;}

/* Gallery overview is a collection of cards, not one giant gold button. */
html[data-sketch-ui] body .album-shell {padding:28px 4vw;max-width:1540px;}
html[data-sketch-ui] body .album-shell>.topbar {margin-bottom:24px;}
html[data-sketch-ui] body .album-shell .brand {width:220px;height:60px;}
html[data-sketch-ui] body #album-list {padding:28px;}
html[data-sketch-ui] body #album-list h1 {font-size:32px;letter-spacing:-.7px;margin:0 0 10px;}
html[data-sketch-ui] body #album-list>p {font-size:15px;color:var(--ui-muted);}
html[data-sketch-ui] body .album-shell #albums {display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px;margin-top:24px;}
html[data-sketch-ui] body .album-card {align-items:flex-start;text-align:left;min-height:135px;padding:20px;gap:10px;background:var(--ui-paper-texture);}
html[data-sketch-ui] body .album-card .album-card-icon {display:grid;place-items:center;width:44px;height:44px;border:1px solid #c1a3cf;border-radius:10px;background:linear-gradient(#f0ddfa,#d2b5e2);box-shadow:inset 0 1px #fcf1ff,0 2px 0 #b194c1;font-size:27px;color:var(--ui-accent);}
html[data-sketch-ui] body .album-card strong {font-size:18px;}
html[data-sketch-ui] body .album-card span {font-size:13px;color:var(--ui-muted);}
/* One continuous sketchbook sheet. The ivory wash keeps graphite behind labels quiet. */
html[data-sketch-ui] body .panel,
html[data-sketch-ui] body .paper,
html[data-sketch-ui] body .sk-dialog-surface,
html[data-sketch-ui] body .join-card,
html[data-sketch-ui] body .album-card {
 background-size:100% 100%,cover;background-repeat:no-repeat;background-position:center;
}
/* A tall QR sheet shows the illustrated margin instead of cropping to empty paper. */
html[data-sketch-ui] body .join-card {background-position:center,right center;}
html[data-sketch-ui] body .gallery-controls .btn {min-height:44px;font-size:14px;padding:10px 15px;}
html[data-sketch-ui] body .album-viewing .album-shell {height:var(--sketch-screen-height,100vh);padding:24px 3.2vw 18px;}
html[data-sketch-ui] body #album-share-panel {position:fixed;inset:0;width:auto;max-width:none;max-height:none;margin:0;transform:none;padding:24px;background:#1b1425e8;box-shadow:none;border:0;border-radius:0;z-index:2147483570;}
html[data-sketch-ui] body #album-qr {width:100%;height:auto;}
html[data-sketch-ui] body .gallery-share-actions {display:grid;gap:12px;}
html[data-sketch-ui] body .sk-guide .sk-dialog-surface {width:min(1080px,100%);}
html[data-sketch-ui] body .yg-chapter {width:100%;margin:0 0 18px;}
html[data-sketch-ui] body .yg-stage {display:grid;grid-template-columns:.9fr 1.1fr;gap:24px;min-height:0;align-items:center;overflow:auto;padding:6px;}
html[data-sketch-ui] body .yg-stage figure {margin:0;}
html[data-sketch-ui] body .yg-stage svg {width:100%;height:auto;max-height:34vh;display:block;border-radius:16px;}
html[data-sketch-ui] body .yg-stage figcaption {font-size:10px;color:var(--ui-muted);margin-top:10px;}
html[data-sketch-ui] body .yg-stage article {padding:10px;border-radius:12px;}
html[data-sketch-ui] body .yg-stage h3 {font-size:21px;color:var(--ui-ink);margin:0 0 12px;}
html[data-sketch-ui] body .yg-stage p {font-size:14px;line-height:1.5;}
html[data-sketch-ui] body .yg-count {font-size:13px;color:var(--ui-muted);white-space:nowrap;}
html[data-sketch-ui] body .phone-connect {padding:28px;}
html[data-sketch-ui] body .phone-connect h1 {font-size:28px;letter-spacing:-.6px;}
html[data-sketch-ui] body .phone-connect p {font-size:15px;color:var(--ui-muted);}
html[data-sketch-ui] body .sk-trial-actions {display:grid;grid-template-columns:1fr 1fr;gap:12px;}
html[data-sketch-ui] body .sk-trial-form {display:grid;gap:12px;margin:18px 0;}

/* Preserve room for 8 players and TV overscan at ordinary 720p / 540p viewports. */
@media(max-height:800px) and (min-width:850px) {
 html[data-sketch-ui] {--ui-control-height:44px;--ui-control-font:15px;}
 html[data-sketch-ui] body[data-view="tv"] .tv-shell {padding:18px 3vw 14px;gap:12px;}
 html[data-sketch-ui] body .tv-shell>.topbar {min-height:50px;}
 html[data-sketch-ui] body .tv-shell .brand {width:190px;height:50px;}
 html[data-sketch-ui] body .album-shell .brand {width:190px;height:50px;}
 html[data-sketch-ui] body .lobby-main {padding:18px;gap:8px;}
 html[data-sketch-ui] body .lobby-heading h1 {font-size:28px;}
 html[data-sketch-ui] body .lobby-heading {padding-bottom:6px;}
 html[data-sketch-ui] body .lobby-heading p {display:none;}
 html[data-sketch-ui] body .lobby-main .player-tile {min-height:48px;padding:6px;grid-template-columns:32px minmax(0,1fr) 26px;gap:6px;}
 html[data-sketch-ui] body .lobby-main .player-tile .avatar {width:32px;height:32px;}
 html[data-sketch-ui] body .lobby-main .player-tile [data-kick] {width:26px;min-width:26px;}
 html[data-sketch-ui] body .lobby-main .player-tile.empty {grid-template-columns:32px 1fr;}
 html[data-sketch-ui] body .difficulty-card {min-height:64px;padding:9px 25px 9px 10px;}
 html[data-sketch-ui] body .difficulty-card[aria-pressed="true"] {padding:8px 24px 8px 9px;}
 html[data-sketch-ui] body .difficulty-card strong {font-size:15px;}
 html[data-sketch-ui] body .lobby-bottom {padding-top:10px;}
 html[data-sketch-ui] body #start-game {min-width:214px;min-height:52px;padding:8px 12px;gap:10px;border-radius:15px;}
 html[data-sketch-ui] body .sk-start-label strong {font-size:17px;}
 html[data-sketch-ui] body .sk-start-emblem {width:30px;height:30px;border-radius:9px;}
 html[data-sketch-ui] body .sk-start-emblem svg {width:20px;height:20px;}
 html[data-sketch-ui] body #start-hint {display:none;}
 html[data-sketch-ui] body .join-card {padding:20px;gap:12px;}
 html[data-sketch-ui] body .join-card .sk-qr-frame {max-width:280px;padding:12px;}
 html[data-sketch-ui] body .tv-footer,
 html[data-sketch-ui] body .tv-notice-dock {height:52px;min-height:52px;}
}
@media(max-height:620px) and (min-width:850px) {
 html[data-sketch-ui] {--ui-control-height:40px;--ui-control-font:14px;}
 html[data-sketch-ui] body[data-view="tv"] .tv-shell {padding:12px 2.5vw;gap:6px;}
 html[data-sketch-ui] body .tv-shell>.topbar {min-height:44px;}
 html[data-sketch-ui] body .tv-shell .brand {width:175px;height:44px;}
 html[data-sketch-ui] body .tv-shell .top-actions .btn,
 html[data-sketch-ui] body .tv-shell .ya5-menu-trigger {min-height:40px;font-size:14px;}
 html[data-sketch-ui] body .lobby-layout {gap:14px;grid-template-columns:minmax(220px,28%) minmax(0,1fr);}
 html[data-sketch-ui] body .lobby-main {padding:12px;gap:6px;}
 html[data-sketch-ui] body .lobby-heading h1 {font-size:24px;}
 html[data-sketch-ui] body .lobby-heading {padding-bottom:5px;}
 html[data-sketch-ui] body .section-line {margin-bottom:6px;}
 html[data-sketch-ui] body .section-line h3 {font-size:14px;}
 html[data-sketch-ui] body .lobby-main .player-tile {min-height:40px;padding:5px;grid-template-columns:28px minmax(0,1fr) 24px;gap:4px;}
 html[data-sketch-ui] body .lobby-main .player-tile .avatar {width:28px;height:28px;}
 html[data-sketch-ui] body .lobby-main .player-tile h3 {font-size:12px;}
 html[data-sketch-ui] body .lobby-main .player-tile .small {font-size:9px;margin-top:2px;}
 html[data-sketch-ui] body .difficulty-picker legend {font-size:12px;margin-bottom:5px;}
 html[data-sketch-ui] body .difficulty-card {min-height:52px;padding-top:6px;padding-bottom:6px;}
 html[data-sketch-ui] body .difficulty-card[aria-pressed="true"] {padding-top:5px;padding-bottom:5px;}
 html[data-sketch-ui] body .difficulty-card strong {font-size:13px;}
 html[data-sketch-ui] body .difficulty-card span {font-size:10px;margin-top:3px;}
 html[data-sketch-ui] body .lobby-bottom {padding-top:6px;gap:10px;}
 html[data-sketch-ui] body #start-game {min-width:178px;min-height:44px;padding:7px 10px;gap:8px;border-radius:13px;}
 html[data-sketch-ui] body .sk-start-label strong {font-size:15px;}
 html[data-sketch-ui] body .sk-start-label small {display:none;}
 html[data-sketch-ui] body .sk-start-emblem {width:26px;height:26px;}
 html[data-sketch-ui] body .sk-start-arrow {display:none;}
 html[data-sketch-ui] body .settings {gap:8px;}
 html[data-sketch-ui] body .settings select {min-width:112px;font-size:12px;}
 html[data-sketch-ui] body .settings .sk-select-trigger {min-width:122px;font-size:12px;padding:8px 9px;gap:6px;}
 html[data-sketch-ui] body .settings label {font-size:10px;margin-bottom:4px;}
 html[data-sketch-ui] body .photo-setup-row {display:none;}
 html[data-sketch-ui] body #start-hint {display:none;}
 html[data-sketch-ui] body .join-card {padding:14px;gap:10px;}
 html[data-sketch-ui] body .join-heading h2 {font-size:23px;}
 html[data-sketch-ui] body .join-card .sk-qr-frame {max-width:210px;padding:10px;}
 html[data-sketch-ui] body .join-card .sk-qr-frame figcaption,
 html[data-sketch-ui] body .join-card .join-heading .sk-kicker,
 html[data-sketch-ui] body .join-card .join-url {display:none;}
 html[data-sketch-ui] body .join-card .room-code {font-size:28px;padding:9px;}
 html[data-sketch-ui] body .tv-footer,
 html[data-sketch-ui] body .tv-notice-dock {height:44px;min-height:44px;}
 html[data-sketch-ui] body .tv-notice-dock .spoken-welcome {font-size:13px;padding:6px 12px;max-height:42px;}
 html[data-sketch-ui] body .sk-dialog-surface {padding:18px;max-height:calc(var(--sketch-screen-height,100vh) - 28px);}
 html[data-sketch-ui] body .sk-dialog,
 html[data-sketch-ui] body .modal,
 html[data-sketch-ui] body #ya5-game-menu,
 html[data-sketch-ui] body #ya5-illustrated-guide,
 html[data-sketch-ui] body #ya5-trial-message {padding:14px;}
 html[data-sketch-ui] body .sk-dialog-heading {padding-bottom:12px;}
 html[data-sketch-ui] body .sk-dialog-heading h2 {font-size:24px;}
 html[data-sketch-ui] body .sk-dialog-content {padding:14px 6px;}
 html[data-sketch-ui] body .sk-dialog-footer {padding-top:12px;}
 html[data-sketch-ui] body #ya5-game-menu .sk-menu-grid .btn {min-height:64px;padding:10px;}
 html[data-sketch-ui] body .audio-card {padding:12px;}
 html[data-sketch-ui] body .audio-card h3 {font-size:16px;margin-bottom:10px;}
 html[data-sketch-ui] body .audio-card p {margin:7px 0;font-size:12px;}
 html[data-sketch-ui] body .sk-qr-layout {grid-template-columns:200px 1fr;gap:24px;}
 html[data-sketch-ui] body .sk-picker-option {min-height:74px;padding:10px;}
 html[data-sketch-ui] body .sk-picker-option strong {font-size:24px;}
}
@media(max-width:849px) {
 html[data-sketch-ui] body .lobby-layout {grid-template-columns:minmax(200px,30%) 1fr;gap:12px;}
 html[data-sketch-ui] body .lobby-main {padding:16px;gap:10px;}
 html[data-sketch-ui] body .lobby-main .player-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
 html[data-sketch-ui] body .lobby-heading p {display:none;}
 html[data-sketch-ui] body .audio-settings {grid-template-columns:1fr;}
 html[data-sketch-ui] body .sk-remote-note {display:none;}
 html[data-sketch-ui] body .sk-dialog-footer {justify-content:flex-end;}
 html[data-sketch-ui] body .sk-dialog {padding:16px;}
 html[data-sketch-ui] body .sk-dialog-surface {padding:18px;}
 html[data-sketch-ui] body .sk-qr-layout {grid-template-columns:1fr;gap:20px;}
 html[data-sketch-ui] body .sk-qr-layout .sk-qr-frame {width:220px;max-width:100%;margin:auto;}
 html[data-sketch-ui] body .sk-menu-grid {grid-template-columns:1fr;}
 html[data-sketch-ui] body .sk-picker-cycles {grid-template-columns:repeat(2,minmax(0,1fr));}
 html[data-sketch-ui] body .yg-stage {grid-template-columns:1fr;}
 html[data-sketch-ui] body .album-shell {padding:20px;}
}
@media(prefers-reduced-motion:reduce) {html[data-sketch-ui] body .btn {transition:none;}}
@media(max-height:800px) {
 html[data-sketch-ui] body .tv-game-shell .game-layout {gap:16px;grid-template-columns:minmax(0,1fr) clamp(220px,21vw,270px);}
 html[data-sketch-ui] body .tv-game-shell .side-panel {padding:14px;gap:8px;}
 html[data-sketch-ui] body .tv-game-shell .side-panel .avatar.sm {width:30px;height:30px;border-radius:9px;}
 html[data-sketch-ui] body .tv-turn-line .timer {width:50px;min-width:50px;height:50px;font-size:22px;}
 html[data-sketch-ui] body .tv-round-status {padding-bottom:10px;}
 html[data-sketch-ui] body .tv-round-status .word-clue {margin-top:10px;}
 html[data-sketch-ui] body .tv-round-status .letter-cell {width:19px;height:25px;font-size:16px;}
 html[data-sketch-ui] body .tv-game-shell .score-row {padding:2px 0;}
 html[data-sketch-ui] body .tv-game-shell .score-row .name {font-size:13px;}
 html[data-sketch-ui] body .tv-callout {padding-top:8px;}
 html[data-sketch-ui] body .tv-callout h3 {display:none;}
 html[data-sketch-ui] body .tv-callout .chat {max-height:40px;font-size:11px;}
 html[data-sketch-ui] body .book-binding {top:-14px;height:40px;}
 html[data-sketch-ui] body .book-binding i {width:30px;height:40px;}
}
@media(max-height:620px) {
 html[data-sketch-ui] body .tv-game-shell .side-panel {padding:10px;gap:6px;}
 html[data-sketch-ui] body .tv-game-shell .side-panel .avatar.sm {width:24px;height:24px;border-radius:7px;}
 html[data-sketch-ui] body .tv-turn-line .timer {width:40px;min-width:40px;height:40px;font-size:19px;}
 html[data-sketch-ui] body .tv-turn-line .turn-badge strong {font-size:14px;}
 html[data-sketch-ui] body .tv-round-status {padding-bottom:7px;}
 html[data-sketch-ui] body .tv-round-status .word-clue {margin-top:7px;}
 html[data-sketch-ui] body .tv-game-shell .score-row {padding:1px 0;}
 html[data-sketch-ui] body .tv-game-shell .score-row .name {font-size:12px;}
 html[data-sketch-ui] body .tv-callout {display:none;}
}

/* Letters sit above a slightly smaller sheet, inside the fixed TV scene. */
html[data-sketch-ui] body .tv-drawing-stage {flex-direction:column;gap:12px;}
html[data-sketch-ui] body .tv-sheet-area {flex:1;min-height:0;min-width:0;width:100%;display:flex;align-items:center;justify-content:center;}
html[data-sketch-ui] body .tv-sheet-clue {flex:none;width:100%;margin:0;text-align:center;font-size:20px;letter-spacing:0;}
html[data-sketch-ui] body .tv-sheet-clue .letter-boxes {justify-content:center;gap:6px 12px;}
html[data-sketch-ui] body .tv-sheet-clue small {font-size:10px;letter-spacing:1px;margin-bottom:6px;}
html[data-sketch-ui] body .voice-modes button[aria-pressed="true"] {border-color:#ead398;background:linear-gradient(#8c69a5,#563769);color:#fff6e4;box-shadow:inset 0 1px #fff5,0 0 0 2px #e5c88c;}
html[data-sketch-ui] body .timer.urgent:not(.frozen) {animation:sk-countdown-glow 1s ease-in-out infinite;color:white;}
@keyframes sk-countdown-glow {
 0%,100% {background:#bb0017;border-color:#ff354b;box-shadow:0 0 16px #ff001f,0 0 38px #ff001fbf;transform:scale(1);}
 50% {background:#ff071c;border-color:#fff0ee;box-shadow:0 0 28px #ff001f,0 0 75px #ff001f;transform:scale(1.06);}
}
/* A separate rear lighting layer leaves the opaque drawing paper untouched. */
html[data-sketch-ui] body.countdown-warning::before {content:'';position:fixed;inset:0;z-index:0;pointer-events:none;background:radial-gradient(ellipse at 72% 40%,#ff001bba 0%,#ed001275 45%,#b8000840 100%);box-shadow:inset 0 0 15vw #ff001ba6;animation:sk-atelier-warning 1s ease-in-out infinite;}
html[data-sketch-ui] body #app {position:relative;z-index:1;}
@keyframes sk-atelier-warning {0%,100% {opacity:.3;}50% {opacity:1;}}
@media (prefers-reduced-motion:reduce) {html[data-sketch-ui] body.countdown-warning::before {animation:none;opacity:.5;}html[data-sketch-ui] body .timer.urgent:not(.frozen) {animation:none;background:#df001b;border-color:#ff5265;box-shadow:0 0 22px #ff001faa;}}
@media (max-height:620px) {html[data-sketch-ui] body .tv-drawing-stage {gap:6px;}html[data-sketch-ui] body .tv-sheet-clue .letter-cell {width:22px;height:29px;font-size:18px;}}

html[data-sketch-ui] body .voice-choice-grid {display:flex;flex-wrap:wrap;gap:10px;margin:8px 0 16px;}
html[data-sketch-ui] body .voice-choices h4 {margin:12px 0 6px;}
html[data-sketch-ui] body .voice-choice-grid button[aria-pressed="true"] {border-color:#ead398;background:#563769;color:#fff6e4;box-shadow:0 0 0 2px #e5c88c;}
/* One screen for sound, selection and a real playback test. */
html[data-sketch-ui] body .audio-modal .sk-dialog-surface,
html[data-sketch-ui] body .audio-picker-modal .sk-dialog-surface,
html[data-sketch-ui] body .audio-more-modal .sk-dialog-surface {width:min(1060px,94vw);max-height:calc(100dvh - 28px);padding:18px 22px;}
html[data-sketch-ui] body .audio-modal .sk-dialog-content,
html[data-sketch-ui] body .audio-picker-modal .sk-dialog-content,
html[data-sketch-ui] body .audio-more-modal .sk-dialog-content {overflow:visible;padding:14px 5px;}
html[data-sketch-ui] body .audio-dashboard {display:grid;grid-template-columns:1fr 1.3fr 1.2fr;gap:14px;}
html[data-sketch-ui] body .audio-dashboard .audio-card {padding:14px;min-width:0;display:flex;flex-direction:column;gap:10px;}
html[data-sketch-ui] body .audio-dashboard h3 {margin:0 0 3px;font-size:18px;}
html[data-sketch-ui] body .audio-dashboard .btn {width:100%;margin:0;min-height:48px;padding:9px 12px;font-size:14px;}
html[data-sketch-ui] body .audio-dashboard p {margin:0;font-size:12px;line-height:1.35;}
html[data-sketch-ui] body .audio-field {position:relative;text-align:left;display:block;padding-right:28px!important;}
html[data-sketch-ui] body .audio-field small {display:block;font-size:10px;opacity:.75;}
html[data-sketch-ui] body .audio-field strong {display:block;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
html[data-sketch-ui] body .audio-field>span {position:absolute;right:12px;top:18px;}
html[data-sketch-ui] body #voice-status {min-height:32px;}
html[data-sketch-ui] body #voice-test-result {height:64px;overflow:hidden;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;}
html[data-sketch-ui] body .audio-choice-grid {display:grid;grid-template-columns:1fr 1fr;gap:12px;}
html[data-sketch-ui] body .audio-choice-grid .btn {min-height:54px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
html[data-sketch-ui] body .audio-choice-grid [aria-pressed="true"] {background:#563769;color:#fff6e4;border-color:#ead398;}
html[data-sketch-ui] body .audio-choice-pages {display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:16px;}
html[data-sketch-ui] body .audio-more-actions {display:grid;grid-template-columns:1fr 1fr;gap:14px;}
html[data-sketch-ui] body .audio-detail {overflow-wrap:anywhere;max-height:100px;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;margin-top:16px;}
@media(max-height:620px){
 html[data-sketch-ui] body .audio-modal .sk-dialog-heading,
 html[data-sketch-ui] body .audio-picker-modal .sk-dialog-heading,
 html[data-sketch-ui] body .audio-more-modal .sk-dialog-heading {padding-bottom:10px;}
 html[data-sketch-ui] body .audio-modal .sk-dialog-heading h2,
 html[data-sketch-ui] body .audio-picker-modal .sk-dialog-heading h2,
 html[data-sketch-ui] body .audio-more-modal .sk-dialog-heading h2 {font-size:24px;}
 html[data-sketch-ui] body .audio-modal .sk-dialog-footer,
 html[data-sketch-ui] body .audio-picker-modal .sk-dialog-footer,
 html[data-sketch-ui] body .audio-more-modal .sk-dialog-footer {padding-top:10px;}
 html[data-sketch-ui] body .audio-dashboard .audio-card {padding:10px;gap:8px;}
 html[data-sketch-ui] body .audio-dashboard h3 {font-size:15px;}
 html[data-sketch-ui] body .audio-dashboard .btn {min-height:42px;font-size:12px;}
}
@media(max-width:650px){html[data-sketch-ui] body .audio-dashboard {grid-template-columns:1fr;}html[data-sketch-ui] body[data-view="tv"] .audio-dashboard {grid-template-columns:1fr 1.3fr 1.2fr;gap:6px;}html[data-sketch-ui] body .audio-choice-grid .btn {font-size:12px;}}

html[data-sketch-ui] body .atelier-intro {position:fixed;inset:0;z-index:1000;background:#191623;display:flex;align-items:center;justify-content:center;padding:0;overflow:hidden;}
html[data-sketch-ui] body .atelier-film {width:100%;height:100%;object-fit:contain;background:#191623;}
html[data-sketch-ui] body .atelier-film-footer {position:absolute;inset:auto 0 0;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 5vw;background:linear-gradient(transparent,#17131ee8);color:#fff3dc;}
html[data-sketch-ui] body .atelier-film-footer small {display:block;font-size:11px;letter-spacing:3px;margin-bottom:8px;}
html[data-sketch-ui] body .atelier-film-footer strong {font-size:clamp(18px,2.2vw,30px);}
html[data-sketch-ui] body .atelier-film-footer .btn {min-height:48px;font-size:15px;}
html[data-sketch-ui] body .atelier-film-actions {display:flex;align-items:center;gap:12px;}
html[data-sketch-ui] body .atelier-film-actions [hidden] {display:none;}
@media(max-width:650px){html[data-sketch-ui] body .atelier-film-footer {padding:16px;gap:10px;}html[data-sketch-ui] body .atelier-film-footer strong {font-size:16px;}html[data-sketch-ui] body .atelier-film-actions {flex-wrap:wrap;justify-content:flex-end;gap:6px;}}

html[data-sketch-ui] body .countdown-audio-modal {max-width:none;}
html[data-sketch-ui] body .countdown-audio-settings {display:grid;gap:12px;max-width:620px;margin:auto;}
html[data-sketch-ui] body .countdown-audio-settings p {margin:0;font-size:14px;}
html[data-sketch-ui] body .countdown-voices {display:grid;grid-template-columns:1fr 1fr;gap:12px;}
html[data-sketch-ui] body .countdown-audio-settings .btn {min-height:48px;}
html[data-sketch-ui] body .countdown-volume {display:grid;grid-template-columns:72px 1fr 72px;gap:16px;align-items:center;text-align:center;}
html[data-sketch-ui] body .countdown-volume output {font-size:24px;font-weight:700;}
html[data-sketch-ui] body .countdown-voices [aria-pressed="true"] {box-shadow:inset 0 0 0 3px #916c49;}

html[data-sketch-ui] body .countdown-toggles {display:grid;grid-template-columns:1fr 1fr;gap:12px;}
@media(max-height:650px){
 html[data-sketch-ui] body .countdown-audio-settings {gap:8px;}
 html[data-sketch-ui] body .countdown-audio-settings .btn {min-height:42px;}
 html[data-sketch-ui] body .countdown-audio-settings p {font-size:12px;}
}
