/* A tactile drawing studio. Motion is coordinated in studio.js. */
:root {
  --font-title: 'Trebuchet MS', 'Arial Rounded MT Bold', 'Inter', sans-serif;
  --font-game: 'Inter', 'Segoe UI', sans-serif;
  --bg-space: #eee8dc;
  --bg-stage: #e8e1d4;
  --bg-card: #fffcf5;
  --bg-card-inner: #f1ecdf;
  --bg-card-hover: #e8e1d3;
  --text-white: #473f4b;
  --text-light: #625b64;
  --text-muted: #766e77;
  --text-dim: #827a81;
  --text-dark: #473f4b;
  --pop-purple: #827298;
  --pop-cyan: #658982;
  --pop-magenta: #b96b65;
  --pop-yellow: #ac8141;
  --pop-green: #668462;
  --pop-orange: #bd7b54;
  --border-glass: 1px solid #ded6c9;
  --border-glass-light: 1px solid #cfc5b6;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --studio-shadow: 0 8px 0 #ddd4c633, 0 20px 50px #78654b0d;
}
html { font-size: 17.5px; }
html, body { background: var(--bg-space); color: var(--text-white); font-size: 1rem; }
body { background-image: radial-gradient(#b5a99a38 .8px, transparent .8px); background-size: 22px 22px; }
input { user-select: text; }
button, input { font-family: var(--font-game); }
button { touch-action: manipulation; }
button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid #9b88b7; outline-offset: 4px; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #c7bdaf; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }
.game-ambient-layer, .ambient-stage-ticker-wrap, .holo-flank-display,
.hud-corner-bracket, .header-telemetry-badge, .screen-laser-wipe,
.tactical-hud-reticle, .screen-glow-tab, .hud-audio-bars { display: none !important; }
.app-header { position: absolute; top: 14px; right: max(20px, env(safe-area-inset-right)); z-index: 120; height: auto; width: auto; padding: 0; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; }
.app-header[hidden] { display: none !important; }
.app-header { display: flex; align-items: center; gap: 10px; }
.header-help-button { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border: 1px solid #dfd5c7; border-radius: 50%; background: #fffcf5; color: #80668e; font: 800 1.2rem var(--font-title); cursor: pointer; transition: background .2s ease, transform .2s ease; }
.header-help-button[hidden] { display: none; }
.header-help-button:hover { background: #eee5f1; transform: translateY(-2px); }
.header-profile-button { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 5px 13px 5px 6px; border: 1px solid #dfd5c7; border-radius: 999px; background: #fffcf5; color: #62556b; box-shadow: 0 3px 0 #ddd4c644; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.header-profile-button:hover { transform: translateY(-2px); border-color: #cbbad6; box-shadow: 0 5px 12px #67567012; }
.header-profile-avatar { display: grid; place-items: center; width: 34px; height: 34px; padding: 2px; border-radius: 50%; background: #eee5f1; }
.header-profile-name { max-width: min(28vw, 170px); overflow: hidden; color: #584d5d; font-size: .8rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.profile-settings-icon-wrap { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 27px; border: 1px solid #e8dfd3; border-radius: 50%; background: #f5efe5; color: #8c7899; transition: background .2s ease, transform .25s ease; }
.profile-settings-icon { display: block; color: inherit; }
.header-profile-button:hover .profile-settings-icon-wrap { background: #eee5f1; transform: rotate(45deg); }
.brand-icon-wrap { width: 40px; height: 40px; border-radius: 14px; background: #ece5f1; color: #827298; border: 1px solid #d9cfe3; box-shadow: none; transform: rotate(-6deg); }
.brand-title { color: #473f4b; letter-spacing: -.03em; font-size: 1.2rem; }
.brand-tagline { color: #827a81; font-size: .6rem; letter-spacing: .09em; margin-top: 3px; }
.header-actions { gap: 8px; }
.arcade-action-btn { background: #f5f0e7; color: #625b64; border: 1px solid #ded6c9; border-radius: 12px; height: 36px; box-shadow: none; backdrop-filter: none; font-size: .72rem; }
.arcade-action-btn:hover { background: #eae1ee; color: #625271; border-color: #cdbed8; box-shadow: none; transform: translateY(-2px); }
.app-container { width: 100%; height: 100dvh; max-width: none; padding: 0; isolation: isolate; }
.game-screen { position: absolute !important; inset: 0; width: 100%; height: 100%; min-width: 0; will-change: auto; overflow-x: hidden; overflow-y: auto !important; padding: 76px clamp(14px, 3vw, 48px) 28px; }
.game-screen.active { display: flex; animation: none !important; opacity: 1; }
.game-screen.screen-leaving { display: flex; z-index: -1; pointer-events: none; animation: none !important; }
.game-screen > * { min-width: 0; }
#screen-home { padding: 76px clamp(20px, 5vw, 80px) 36px; justify-content: flex-start; align-items: stretch; }
#screen-home::before, #screen-home::after { display: none; }
.home-stage-arena { width: 100%; max-width: 1180px; min-height: 100%; height: auto; margin: auto; perspective: none; display: flex; align-items: center; }
.game-entry-wrapper { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 490px); align-items: center; gap: clamp(30px, 5vw, 80px); max-width: none; width: 100%; animation: none; }
.home-hero-banner { align-items: flex-start; text-align: left; gap: 12px; width: 100%; }
.hero-badge-subtitle { color: #8b7766; letter-spacing: .16em; font-size: .7rem; text-shadow: none; }
.hero-title-splatter-wrap { padding: 0; animation: none; text-align: left; }
.title-paint-splatter-svg { display: none; }
.hero-game-title { position: relative; font-family: var(--font-title); color: #4b4255; font-size: clamp(4.6rem, 7vw, 7.4rem); font-weight: 900; font-style: normal; line-height: .94; letter-spacing: -.065em; background: none; -webkit-text-fill-color: currentColor; text-shadow: none; filter: none; animation: none; }
.hero-game-title span { color: #8d7c9c; }
.hero-game-title .hero-fake-word { color: #4b4255; }
.hero-painter-word { color: #8d7c9c; }
.hero-i-letter { position: relative; display: inline-block; color: transparent; }
.hero-game-title .hero-dot-traveler { position: absolute; left: 50%; top: .08em; width: .14em; height: .14em; margin-left: -.07em; border-radius: 50%; background: #c08c69; z-index: 1; pointer-events: none; will-change: transform, filter; }
.hero-game-title .hero-dot-trail { position: absolute; left: 50%; top: .08em; width: .14em; height: .14em; margin-left: -.07em; border-radius: 50%; background: #c08c69; z-index: 0; opacity: 0; pointer-events: none; will-change: transform, opacity; }
.hero-game-title .hero-dot-trail { position: absolute; left: 50%; top: .08em; width: .14em; height: .14em; margin-left: -.07em; border-radius: 50%; background: #c08c69; z-index: 0; opacity: 0; pointer-events: none; will-change: transform, opacity; }
.studio-hero-copy { color: #817581; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.65; margin-top: 7px; }
.studio-facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: .7rem; color: #867a77; }
.studio-facts span { display: flex; align-items: center; gap: 7px; }
.studio-facts span::before { content: ''; width: 5px; height: 5px; background: #ba9d73; border-radius: 50%; }
.studio-illustration { width: 100%; max-width: 460px; height: 250px; position: relative; margin-top: 16px; }
.studio-paper { position: absolute; width: 270px; height: 180px; top: 20px; left: 68px; background: #fffcf5; border: 1px solid #ded3c4; border-radius: 5px; box-shadow: 0 10px 0 #d9cfbe44, 0 15px 35px #76654f12; transform: rotate(-7deg); }
.studio-paper::before { content: ''; width: 75px; height: 23px; position: absolute; left: 100px; top: -11px; background: #d9b8887a; transform: rotate(5deg); }
.studio-paper svg { width: 100%; height: 150px; }
.studio-paper > span { position: absolute; bottom: 10px; left: 28px; font-family: Georgia, serif; font-style: italic; color: #a59b90; font-size: .7rem; }
.studio-character { position: absolute; width: 94px; height: 94px; padding: 4px; border-radius: 28px; border: 3px solid #fffcf5; box-shadow: 0 7px 0 #826a5010; animation: studioBob 6s ease-in-out infinite; }
.character-fox { left: 9px; top: 34px; background: #f1d6b9; rotate: -12deg; }
.character-cat { right: 20px; top: 5px; background: #e4dcea; rotate: 13deg; animation-delay: -2s; }
.character-frog { right: 30px; bottom: 3px; background: #dce6c8; rotate: -6deg; animation-delay: -4s; }
.studio-doodle { position: absolute; color: #c39c62; font-size: 2rem; }
.doodle-star { left: 27px; bottom: 38px; rotate: 12deg; }
.doodle-wave { right: 12px; top: 114px; color: #b3a3c2; rotate: 25deg; }
.studio-note { position: absolute; left: 72px; bottom: 6px; font: italic .85rem Georgia, serif; color: #8b796f; rotate: -4deg; }
@keyframes studioBob { 50% { transform: translateY(-6px); } }
.entry-card { color: #473f4b; background: #fffcf5; border: 1px solid #dcd1c1; border-radius: 25px; max-width: 100%; padding: 25px; gap: 17px; box-shadow: var(--studio-shadow); backdrop-filter: none; animation: none; }
.entry-card::before, .cosmic-launch-btn::after { display: none; }
.studio-entry-heading { order: -3; }
.studio-eyebrow { color: #9b8774; font-size: .61rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.studio-entry-heading h2 { font-family: var(--font-title); font-size: 1.6rem; letter-spacing: -.04em; margin-top: 5px; font-weight: 800; }
.tab-switch { width: 100%; border: 0; background: #f0eade; padding: 5px; border-radius: 13px; gap: 5px; }
.tab-btn { color: #8a7e80; background: transparent; border: 1px solid transparent; min-height: 40px; padding: 8px 10px; font-size: .85rem; border-radius: 10px; }
.tab-btn.active { color: #655570; background: #fffcf5; border-color: #e3d9ca; box-shadow: 0 2px 5px #75604a0e; }
.tab-btn:hover { color: #655570; background: #f9f4ed; }
.tab-btn svg { width: 15px; height: 15px; }
.studio-avatar-picker { display: none !important; }
.studio-avatar-preview { width: 76px; height: 76px; flex-shrink: 0; border-radius: 20px; background: #e8dfed; padding: 5px; border: 1px solid #d4c6df; }
.studio-avatar-choices { min-width: 0; flex: 1; }
.studio-avatar { display: block; width: 100%; height: 100%; }
.avatar-options { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin-top: 6px; }
.avatar-option { cursor: pointer; border: 1px solid transparent; border-radius: 10px; padding: 1px; background: transparent; aspect-ratio: 1; min-width: 0; transition: transform .25s ease, background .25s ease, border-color .25s ease; }
.avatar-option:hover { background: #fffaf3; transform: translateY(-3px) rotate(-4deg); }
.avatar-option[aria-pressed="true"] { background: #fffaf3; border-color: #a894b9; box-shadow: 0 2px 0 #c5b1d3; }
.card-briefing-hint { font-size: .75rem; line-height: 1.6; color: #8c807d; text-align: left; }
.form-group { gap: 15px; width: 100%; }
.input-block { gap: 7px; }
.form-label { color: #83777b; font-size: .66rem; letter-spacing: .06em; }
.form-label svg { width: 14px; height: 14px; }
.text-input { width: 100%; min-height: 46px; padding: 11px 14px; color: #473f4b; background: #fffefa; border: 1px solid #d9cebd; border-radius: 12px; font-size: .9rem; }
.text-input:focus { background: #fff; border-color: #ac98bb; box-shadow: 0 0 0 3px #ad97bd22; }
.text-input::placeholder { color: #aa9e98; font-family: var(--font-game); letter-spacing: 0; }
.color-swatches { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 7px; overflow: visible; background: transparent; border: 0; padding: 3px 0; box-shadow: none; width: 100%; }
.color-dot { width: 100%; height: auto; aspect-ratio: 1; min-width: 0; max-width: 34px; padding: 0; background: var(--jar-color); border-radius: 50%; border: 4px solid #fffcf5; box-shadow: 0 0 0 1px #e0d6c8; filter: saturate(.68); transition: transform .25s ease, box-shadow .25s ease; }
.color-dot > * { display: none !important; }
.color-dot.active { transform: translateY(-2px); box-shadow: 0 0 0 2px #877294; background: var(--jar-color); filter: saturate(.68); }
.color-dot.active::after { content: '✓'; display: grid; place-items: center; color: #fff; font-size: .7rem; height: 100%; text-shadow: 0 1px 2px #473f4b; }
.color-dot:hover { transform: translateY(-3px); filter: saturate(.8); }
.game-mode-grid { gap: 9px; }
.mode-card { padding: 12px 10px; background: #f5efe5; border: 1px solid #e0d5c5; border-radius: 13px; box-shadow: none; }
.mode-card:hover { background: #f0e8f1; transform: translateY(-2px); }
.mode-card.active { background: #ede5f0; border-color: #b9a4c8; box-shadow: none; }
.mode-card .mode-text strong { color: #6b6170; font-size: .78rem; }
.mode-card .mode-text span { color: #91858c; font-size: .61rem; line-height: 1.4; }
.mode-card.active .mode-text strong, .mode-card.active .mode-icon { color: #7d678c; }
.mode-icon { color: #aa9986; }
.mode-card-watermark { display: none; }
.cosmic-launch-btn, .primary-btn, .finish-stroke-btn { background: #887398; color: #fffcf5; border: 1px solid #786488; border-radius: 14px; box-shadow: 0 4px 0 #6f5e7c; font-family: var(--font-game); font-size: .9rem; font-weight: 700; letter-spacing: .01em; text-transform: none; min-height: 48px; transition: transform .25s ease, background .25s ease, box-shadow .25s ease; }
.cosmic-launch-btn:hover, .primary-btn:hover, .finish-stroke-btn:hover { background: #9480a3; border-color: #786488; box-shadow: 0 5px 0 #6f5e7c; transform: translateY(-2px); }
.cosmic-launch-btn:active, .primary-btn:active, .finish-stroke-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #6f5e7c; }
button:disabled { cursor: not-allowed; transform: none !important; }
.secondary-btn { color: #76677d; background: #f2ebf0; border: 1px solid #d6c9da; border-radius: 12px; box-shadow: none; }
.secondary-btn:hover { color: #66516f; background: #e8dfea; border-color: #b7a3c4; box-shadow: none; transform: translateY(-2px); }
.lobby-dashboard { gap: 22px; }
.lobby-title { color: #53465d; font-size: 2rem; letter-spacing: -.04em; text-shadow: none; }
.lobby-subtitle { color: #887b7e; }
.lobby-player-counter { background: #fffcf5; border-color: #ded1bf; box-shadow: none; }
.counter-num { color: #675474; }
.counter-label { color: #8d7c79; }
.lobby-player-counter .counter-icon { color: #9980a9; }
.lobby-columns-grid { grid-template-columns: minmax(250px, .7fr) minmax(0, 1.6fr); gap: 20px; }
.lobby-box-card { background: #fffcf5; border: 1px solid #dfd3c3; border-radius: 22px; box-shadow: var(--studio-shadow); }
.card-section-header { border-color: #e7ddcf; background: transparent; }
.section-title { color: #756180; font-size: .8rem; letter-spacing: .08em; }
.section-icon { color: #9c85aa; }
.section-hint { color: #a09287; font-size: .64rem; }
.room-code-bezel-plate, .room-code-capsule, .lock-room-row { background: #f2ebdf; border: 1px solid #e1d4c1; box-shadow: none; }
.room-code-digits { color: #7a648a; text-shadow: none; font-family: var(--font-title); letter-spacing: .15em; }
.room-code-capsule:hover, .copy-invite-chip:hover { border-color: #b9a3c8; color: #7a648a; box-shadow: none; }
.copy-invite-chip { color: #8c779b; background: #fffcf5; border-color: #ded1c0; }
.room-status-footer { color: #71886b; background: #eef1e7; border-color: #dce1d3; }
.room-status-footer.is-locked { color: #ac7d5d; background: #f3e7d9; }
.roster-hero-card, .roster-slot-card.is-occupied { background: #f1eaf3; border: 1px solid #dfd1e4; box-shadow: none; }
.roster-hero-card:hover, .roster-slot-card.is-occupied:hover { background: #e9deed; border-color: #bda8cc; box-shadow: none; transform: translateY(-2px); }
.roster-hero-name, .roster-slot-name { color: #66516f; }
.roster-slot-card { height: auto; min-height: 116px; padding: 10px 8px; gap: 7px; }
.roster-slot-name { display: block; max-width: calc(100% - 4px); font-size: .76rem; line-height: 1.25; }
.roster-hero-role, .roster-slot-label { color: #9a8b9b; }
.roster-crest-shield { width: 60px; height: 60px; border: none !important; border-radius: 16px; clip-path: none; background: #e2d5e7; padding: 2px; box-shadow: none; }
.roster-slot-avatar, .player-avatar-circle, .dock-avatar-dot { background: #e8dfed !important; border: 1px solid #d7c9de !important; box-shadow: none !important; padding: 2px; overflow: visible; }
.roster-slots-grid { grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); }
.roster-slot-points { font-family: var(--font-game); font-size: .65rem; padding: 3px 7px; gap: 4px; white-space: nowrap; }
.roster-slot-points svg { width: 12px; height: 12px; }
.roster-slot-card.is-empty { background: #faf6ee; border: 1px dashed #dfd3c3; }
.roster-slot-icon { color: #c5b6a5; }
.roster-you-pill, .badge-host, .roster-pts-chip { color: #8e739e; background: #e5d9ea; border-color: #d9c9e1; box-shadow: none; }
.settings-grid-layout { gap: 10px; }
.modifier-tile-card { background: #f6f1e8; border: 1px solid #e9dfd0; border-radius: 14px; box-shadow: none; }
.modifier-tile-card:hover { background: #ede5f0; border-color: #c6b2d2; box-shadow: none; }
.mod-title { color: #8c807d; font-size: .64rem; line-height: 1.5; }
.mod-icon-wrap { color: #a891b5; background: #eae0ed; }
.mod-val-num { color: #8e739e; text-shadow: none; }
.mod-val-yes { color: #748c69; text-shadow: none; }
.mod-val-no { color: #b67d69; text-shadow: none; }
.mod-cycle-btn { color: #a18aaf; background: #e9dfee; border-color: #d9c9e2; }
.drawing-arena { min-height: 400px; width: 100%; max-width: 1260px; margin: 0 auto; gap: 14px; }
.top-players-dock { flex-shrink: 0; background: #fffcf5; border: 1px solid #e1d5c5; border-radius: 18px; box-shadow: none; padding: 9px 14px; }
.player-dock-pill { background: #f2ecdf; border: 1px solid #e6dac9; border-radius: 14px; box-shadow: none; }
.player-dock-pill.is-active-drawer { background: #e5eddf; border-color: #a6b896; box-shadow: 0 0 0 2px #bacba066; animation: none; }
.dock-player-name { color: #78697f; }
.dock-score-badge, .dock-you-badge { color: #a08b78; background: #fffaf1; }
.dock-avatar-dot { width: 35px; height: 35px; }
.tactical-drawer-status { background: #748c69; color: #fffaf1; border: 0; box-shadow: none; }
.tactical-live-dot { box-shadow: none; background: #e1ead8; }
.arena-status-capsule, .mission-prompt-pill, .arena-timer-pill, .arena-round-badge { background: #fffcf5; color: #78677f; border: 1px solid #e1d5c5; box-shadow: none; border-radius: 13px; }
.arena-turn-indicator { color: #76677d; }
.arena-timer-pill.urgent { background: #f5e0d8; color: #b37061; border-color: #d6a08e; box-shadow: none; animation: none; }
.active-pulse-dot { background: #93a47e; box-shadow: none; }
.prompt-tag { color: #a18870; }
.studio-easel-container { min-height: 150px; padding: 0; }
.canvas-stage-wrapper { background: #fffaf0; border: 2px solid #d4c1a3; border-radius: 18px; padding: 9px; box-shadow: 0 7px 0 #ddcebb; }
.canvas-stage-wrapper.is-drawing-live { background: #fffaf0; border: 2px solid #a9b894; box-shadow: 0 7px 0 #c9d5ba; animation: none; }
.canvas-tuff-live-tag { background: #edf0e4; color: #7a906f; border-color: #c7d3ba; box-shadow: none; }
.tuff-live-ping { background: #95aa82; box-shadow: none; }
.canvas-overlay-banner { background: #8b7799e8; color: #fffaf2; border: 0; border-radius: 12px; box-shadow: none; font-size: .75rem; }
.arena-bottom-dock { flex-shrink: 0; gap: 12px; }
.reaction-btn { color: #847187; background: #fffcf5; border: 1px solid #ded1c0; box-shadow: none; border-radius: 13px; }
.reaction-btn:hover { background: #e8ddeb; border-color: #bca5ca; box-shadow: none; transform: translateY(-3px); }
.voting-container { width: 100%; max-width: 1260px; margin: 0 auto; gap: 18px; }
.voting-header { gap: 8px; }
.voting-title { color: #6a5478; text-shadow: none; font-size: clamp(1.5rem, 3vw, 2.3rem); letter-spacing: -.03em; }
.voting-subtitle { color: #918187; font-size: .8rem; max-width: 630px; margin-inline: auto; }
.voting-badge, .voting-timer-pill { color: #9d825f; background: #f8efdf; border-color: #e5d2b4; box-shadow: none; }
.voting-split-stage { min-height: 260px; overflow: visible; }
.voting-showcase-card, .results-showcase-card { background: #fffcf5; border: 1px solid #ddceba; border-radius: 20px; box-shadow: var(--studio-shadow); }
.showcase-title, .showcase-icon { color: #a28b6b; text-shadow: none; }
.showcase-canvas-wrapper, .results-canvas-wrapper { background: #fff; border: 1px solid #e9dfd0; border-radius: 12px; }
.replay-strokes-btn { color: #8c749c; background: #f0e7f3; border-color: #d7c6df; border-radius: 10px; box-shadow: none; }
.replay-strokes-btn:hover { color: #78598d; background: #e7d9ed; border-color: #bda4cc; box-shadow: none; }
.skip-vote-marquee { background: #f2ead9; color: #a58a62; border: 1px solid #decdb0; border-radius: 14px; box-shadow: none; }
.skip-progress-track { background: #e8dbc6; }
.skip-progress-fill { background: #b4a3c2; }
.skip-vote-marquee.has-voted-skip { background: #eae0ef; border-color: #bda8cc; }
.vote-candidate-card { background: #fffcf5; border: 1px solid #ded1c0; border-radius: 18px; box-shadow: 0 4px 0 #ddd0be88; }
.vote-candidate-card:hover { background: #f4eaf5; border-color: #bea6cf; box-shadow: 0 6px 0 #d6c3e0; transform: translateY(-3px) rotate(-1deg); }
.vote-candidate-card.voted-for { background: #e9dcee; border-color: #a88bbd; box-shadow: 0 4px 0 #c8b0d5; }
.suspect-polaroid { background: #f0e8db; border: 0; border-radius: 14px; }
.suspect-name { color: #7d658c; }
.vote-stamp-pill { color: #ad9480; background: #f4eadf; border-color: #deccbc; box-shadow: none; }
.vote-stamp-pill.stamped { color: #85669b; background: #dccbe7; border-color: #b899ca; box-shadow: none; }
.topic-card, .guess-card { width: min(100%, 510px); align-self: center; margin: auto; }
.role-reveal-card { background: #fffcf5; border: 1px solid #d7c6df; border-top: 4px solid #ab92bc; max-width: 430px; }
.role-icon-box { background: #f0e7f3; color: #9b80ae; border-color: #d7c6df; box-shadow: none; border-radius: 20px; }
.role-title { color: #8e729f; text-shadow: none; }
.role-secret-dossier, .dossier-box { background: #f3ede1; border: 1px solid #e1d2bc; border-radius: 16px; box-shadow: none; }
.dossier-category, .dossier-label { color: #a08870; }
.dossier-word { color: #8d759e; text-shadow: none; font-family: var(--font-title); overflow-wrap: anywhere; }
.role-countdown-footer { color: #998b87; }
.bracket-symbol, .hud-beacon-pulse { display: none; }
.hud-beacon-text { color: #a08870; font-family: var(--font-game); font-size: .64rem; letter-spacing: .1em; text-shadow: none; }
.announcer-hud-bracket { border: 0; background: transparent; }
.hud-badge-live { color: #a08870; background: transparent; border: 0; box-shadow: none; }
.winner-title, .dossier-word, .guess-card h2 { font-style: normal; text-transform: none; }
.modifier-tile-card, .vote-candidate-card { text-align: left; cursor: pointer; font-family: var(--font-game); }
.vote-candidate-card { text-align: center; }
.modifier-tile-card:disabled { cursor: default; opacity: 1; }
.modifier-tile-card:disabled:hover { background: #f6f1e8; border-color: #e9dfd0; }
.guess-card.impostor-caught-glow { border-color: #d5a08a; box-shadow: var(--studio-shadow); animation: none; }
.guess-siren-badge { box-shadow: none; animation: none; }
.results-card { width: min(100%, 900px); max-height: none; overflow: visible; margin-block: auto; }
.results-card.results-victory-glow, .results-card.results-defeat-glow { border-color: #c4b0d1 !important; box-shadow: var(--studio-shadow) !important; }
.winner-title { color: #8b729b; font-family: var(--font-title); text-shadow: none !important; filter: none; font-size: clamp(1.7rem, 4vw, 2.9rem); }
.winner-reason { color: #95858b; }
.scoreboard-container { background: #f6f0e5; border: 1px solid #e5d7c4; border-radius: 16px; }
.scoreboard-header { color: #9c8566; background: #efe5d4; border-color: #dfceb5; text-shadow: none; }
.scoreboard-row { background: #fffcf5; border-color: #e9dfd0; box-shadow: none; }
.scoreboard-row.is-me-row { background: #ede4f1; border-color: #cbb6d7; }
.score-player-name { color: #7c638c; }
.score-number { color: #99815f; text-shadow: none; }
.rank-badge { background: #efe5d4; color: #a18865; box-shadow: none; }
.rules-card { width: min(100%, 610px); max-height: calc(100dvh - 48px); overflow-y: auto; }
.rules-card-item { background: #f5efe4; border: 1px solid #e4d6c2; color: #8e7d76; box-shadow: none; }
.rules-card-item h4 { color: #80668e; }
.rules-card-item p { color: #8e7d76; }
.icon-close-btn { color: #9b888d; background: #f0e8dc; border-color: #e1d3c0; }
.modal-overlay { background: #77697d5c; backdrop-filter: blur(6px); padding: 24px; }
#modalRules { z-index: 150; }
.studio-settings-overlay { justify-content: flex-end; align-items: stretch; padding: 12px; z-index: 140; background: #463b4930; }
.studio-settings-card { width: min(420px, calc(100vw - 28px)); max-height: calc(100dvh - 24px); height: 100%; overflow-y: auto; align-items: stretch; gap: 16px; padding: clamp(22px, 4vw, 32px); border-radius: 24px; }
.studio-settings-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 4px; }
.studio-settings-heading h2 { margin-top: 5px; font: 800 1.8rem var(--font-title); letter-spacing: -.04em; }
#closeStudioSettings { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; border: 1px solid #e0d4e6; border-radius: 50%; background: #f1eaf4; color: #80668e; transition: background .2s ease, transform .2s ease; }
#closeStudioSettings:hover { background: #e6d9ed; color: #66516f; transform: rotate(90deg); }
.studio-setting-label { display: block; margin-bottom: -9px; color: #83777b; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.settings-avatar-options { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 12px; background: #f6f0e6; border-radius: 16px; }
.settings-avatar-options { max-height: 236px; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #b6a98f transparent; }
.studio-face-colors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.studio-face-colors label { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; padding: 7px 9px; border: 1px solid #e6ddcf; border-radius: 12px; color: #62556b; background: #fbf7ed; font-size: .72rem; font-weight: 650; }
.studio-face-colors input[type="color"] { width: 30px; height: 30px; flex: 0 0 30px; padding: 2px; border: 1px solid #d9d0c3; border-radius: 9px; background: white; cursor: pointer; }
.studio-settings-colors { padding: 6px 0; }
.studio-settings-preferences { display: grid; gap: 9px; margin-top: 3px; }
.studio-preference { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 15px; background: #f6f0e6; border: 1px solid #e6ddcf; border-radius: 14px; cursor: pointer; }
.studio-preference strong, .studio-preference small { display: block; }.studio-preference strong { color: #62556b; font-size: .82rem; }.studio-preference small { margin-top: 4px; color: #94878b; font-size: .68rem; }
.studio-preference input { appearance: none; -webkit-appearance: none; position: relative; width: 52px; height: 28px; flex: 0 0 52px; margin: 0; border: 1px solid #c9beac; border-radius: 999px; background: #d7cebe; cursor: pointer; transition: background .22s ease, border-color .22s ease; }
.studio-preference input::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fffcf5; box-shadow: 0 1px 3px #67547530; transition: transform .22s ease; }
.studio-preference input:checked { background: #a690b6; border-color: #8d729f; }
.studio-preference input:checked::before { transform: translateX(24px); }
.studio-save-button { display: flex; align-items: center; justify-content: center; gap: 10px; flex-shrink: 0; min-height: 48px; padding: 12px 18px; border: 1px solid #80698e; border-radius: 14px; background: #887398; color: #fffcf5; font: 750 .9rem var(--font-game); box-shadow: 0 3px 0 #685574; cursor: pointer; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.studio-save-button:hover { background: #7c668d; transform: translateY(-1px); }
.studio-save-button:active { transform: translateY(2px); box-shadow: 0 1px 0 #685574; }
.studio-rules-button { min-height: 44px; }.studio-settings-saved { margin-top: auto; color: #9a8b88; font-size: .69rem; text-align: center; }
.studio-reduced-motion *, .studio-reduced-motion *::before, .studio-reduced-motion *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
.modal-overlay .entry-card { max-height: calc(100dvh - 48px); overflow-y: auto; }
.esports-announcer-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; background: #eee8dced !important; backdrop-filter: blur(6px); pointer-events: auto; animation: none !important; }
.esports-announcer-overlay::before, .esports-announcer-overlay::after { display: none !important; }
.studio-announcement-card { width: min(100%, 560px); padding: 34px; border-radius: 30px; border: 1px solid #d6c6de; background: #fffcf5; box-shadow: 0 9px 0 #ddd1e2, 0 24px 65px #6c537c19; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.studio-announcement-icon { font-size: 2rem; color: #c4a16b; }
.titan-digit-display { font-family: var(--font-title); font-size: clamp(3rem, 9vw, 5.8rem) !important; line-height: 1.1; font-weight: 900; color: #947ba5 !important; background: none !important; -webkit-text-fill-color: currentColor !important; -webkit-text-stroke: 0; text-shadow: none !important; filter: none !important; font-style: normal; text-transform: none; letter-spacing: -.05em; overflow-wrap: anywhere; max-width: 100%; animation: none !important; }
#countdownCaption { color: #a08b7e; font-size: .9rem; line-height: 1.6; }
.studio-announcement-dots { display: flex; gap: 7px; margin-top: 9px; }
.studio-announcement-dots i { width: 7px; height: 7px; border-radius: 50%; background: #dac9e2; animation: studioDot 1.2s ease-in-out infinite; }
.studio-announcement-dots i:nth-child(2) { animation-delay: .15s; }.studio-announcement-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes studioDot { 50% { transform: translateY(-5px); background: #a68cbb; } }
.floating-reaction-badge { background: #fffcf5; border-color: #c7b1d4; box-shadow: 0 4px 0 #dac8e3; }
.titan-timer-digit { text-shadow: none !important; }
.active-pulse-dot { background: #93a47e !important; box-shadow: none !important; }
.tactical-status-text { color: #fffaf1; text-shadow: none; }
.arena-top-bar .titan-timer-digit { color: inherit; }
.studio-toast { position: fixed; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 500; padding: 14px 20px; width: max-content; max-width: calc(100vw - 32px); background: #fffcf5; color: #80658f; border: 1px solid #cdb8d9; border-radius: 16px; box-shadow: 0 5px 0 #dac8e3; font-size: .85rem; line-height: 1.5; }
.winner-reason strong { color: #b17868 !important; }
.winner-title > span { color: #b08d5b !important; }
.score-row { background: #fffaf1; border: 1px solid #e5d7c4; box-shadow: none; }
.score-row.is-me { background: #eee3f1; border-color: #c4acd2; }
.score-name { color: #7b638a; }
.score-pts { color: #9b825e; text-shadow: none; }
.rank-badge.rank-1, .rank-badge.rank-2, .rank-badge.rank-3 { background: #f0e0c2; color: #a38c68; border-color: #d7c09a; box-shadow: none; }
.rules-card-item strong { color: #80668e; }
.rule-text { color: #8e7d76; }
.room-code-hint, .lock-room-label { color: #998778; }
.room-code-tag, .lock-room-title { color: #8c7794; }
.lock-room-hint { color: #a18f84; }
.toggle-slider { background: #d7cebe; border: 1px solid #c9beac; box-shadow: none; }
.toggle-slider::before { background: #fffcf5; box-shadow: 0 2px 4px #8a755c25; }
.toggle-switch-wrapper input:checked + .toggle-slider { background: #a690b6; border-color: #8d729f; box-shadow: none; }
.roster-slot-icon { background: #ede5d7; color: #b7a791; border-color: #e1d2bf; box-shadow: none; }
.room-code-bezel-plate::before, .room-code-bezel-plate::after, .bezel-screw { display: none; }
.player-score-name { color: #80658f; }
.player-total-stars { color: #a38a64; text-shadow: none; }
.score-row-first { background: #f4ead5; border-color: #dfc99e; box-shadow: none; }
.score-row.is-me-row { background: #eee3f1; border-color: #c4acd2; }
.rank-gold, .rank-silver, .rank-bronze, .rank-default { background: #eee2ca; color: #9a8060; border-color: #d6c09d; box-shadow: none; }
.points-gained-badge { background: #f0e8da; color: #a1927d; }
.points-gained-badge.has-gained { background: #e3ecda; color: #82956e; border-color: #c3d1b6; }
.rule-item-box { background: #f5efe4; border-color: #e3d5c2; }
.rule-icon { color: #8d729f; }
.winner-title { background: none !important; -webkit-text-fill-color: currentColor !important; }
.guess-title, #guessScreenTitle { color: #b17868 !important; text-shadow: none !important; }
#guessScreenSirenBadge { color: #b17868 !important; background: #f2e2d6 !important; border-color: #d9bba4 !important; }
.results-action-footer { flex-wrap: wrap; gap: 12px; }
@media (min-width: 761px) and (max-height: 820px) {
  #screen-home { padding-block: 22px; }
  .entry-card { gap: 12px; padding: 22px; }
  .studio-avatar-picker { padding: 8px 12px; }
  .studio-avatar-preview { width: 62px; height: 62px; }
  .form-group { gap: 12px; }
  .card-briefing-hint { font-size: .69rem; }
  .studio-illustration { height: 220px; margin-top: 8px; }
  .hero-game-title { font-size: clamp(4.6rem, 6.5vw, 6.4rem); }
}
@media (min-width: 1450px) { .game-entry-wrapper { grid-template-columns: minmax(0, 1fr) 510px; }.entry-card { padding: 30px; } }
@media (max-width: 1000px) {
  .game-entry-wrapper { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 30px; }
  #screen-home { padding: 28px; }
  .hero-game-title { font-size: clamp(3.7rem, 7.2vw, 6rem); }
  .studio-illustration { scale: .88; transform-origin: left center; margin-right: -25px; }
  .lobby-columns-grid { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.4fr); }
  .voting-split-stage { flex-direction: column; overflow: visible; flex: none; }
  .voting-showcase-card { flex: none; min-height: 280px; }
  .voting-selection-column { flex: none; overflow: visible; }
  .vote-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); overflow: visible; }
}
@media (max-width: 760px) {
  .app-header { top: 10px; right: 12px; }.app-container { height: 100dvh; }
  .game-entry-wrapper { grid-template-columns: 1fr; gap: 26px; max-width: 500px; margin: auto; }
  .home-hero-banner { align-items: center; text-align: center; gap: 8px; }
  .hero-title-splatter-wrap { text-align: center; }.hero-game-title { font-size: clamp(3.2rem, 14vw, 5rem); }
  .hero-game-title br { display: none; }.hero-game-title .hero-painter-word { margin-left: .15em; }
  .studio-hero-copy { font-size: .93rem; line-height: 1.5; }.studio-hero-copy br { display: none; }
  .studio-illustration { display: none; }.studio-facts { justify-content: center; gap: 14px; font-size: .65rem; }
  #screen-home { padding: 68px 18px 36px; }.home-stage-arena { align-items: flex-start; }
  .entry-card { padding: 22px; }.studio-entry-heading h2 { font-size: 1.5rem; }
  .avatar-options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }.avatar-option { width: 42px; height: 42px; justify-self: center; }
  .lobby-columns-grid { display: flex; flex-direction: column; }.lobby-right-col, .lobby-left-col { height: auto; overflow: visible; }
  .settings-grid-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lobby-top-banner { align-items: flex-start; }.lobby-title { font-size: 1.7rem; }
  .lobby-player-counter { padding: 6px 10px; }.section-hint { max-width: 90px; text-align: right; }
  .roster-hero-card { flex-wrap: wrap; gap: 10px; padding: 12px; }.roster-hero-main { min-width: 0; }.roster-hero-name { overflow-wrap: anywhere; }.roster-hero-title-row { flex-wrap: wrap; gap: 4px; }.roster-hero-actions { margin-left: auto; }
  .arena-top-bar { align-items: stretch; gap: 8px; }.arena-status-capsule { min-width: 0; flex: 1; flex-direction: column; align-items: flex-start; gap: 5px; padding: 8px 10px; }
  .mission-prompt-pill { border: 0; padding: 0; background: transparent; }.arena-turn-indicator { font-size: .7rem; }
  .prompt-tag { font-size: .68rem; overflow-wrap: anywhere; }.arena-round-badge { display: none; }
  .arena-bottom-dock { flex-wrap: wrap; justify-content: center; }.arena-bottom-dock > div:first-child { display: contents; }
  .reaction-btn { width: 36px; height: 36px; }.finish-stroke-btn { min-height: 40px; padding: 8px 13px; font-size: .78rem; }
  .canvas-overlay-banner { max-width: calc(100% - 16px); font-size: .65rem; padding: 6px 10px; }
  .drawing-arena { min-height: 350px; }.top-players-dock { padding: 7px 9px; }.player-dock-pill { padding: 6px 9px; }
  .studio-easel-container { padding-block: 0 8px; }.canvas-stage-wrapper { width: 100%; height: auto; max-height: 100%; padding: 6px; }
  .voting-header { padding: 0; }.voting-container { height: auto; }.voting-showcase-card { min-height: 230px; }
  .vote-grid { grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 10px; }.vote-candidate-card { padding: 12px; }
  .reveal-dossier-grid { gap: 8px; }.dossier-box { padding: 12px; }.dossier-word { font-size: 1.5rem; }
  .showcase-title { font-size: .58rem; }.showcase-tag { gap: 5px; flex-wrap: wrap; }.replay-strokes-btn { font-size: .65rem; padding: 6px 8px; flex-shrink: 0; }
.results-card { margin-top: 0; padding: 20px; gap: 14px; }.results-actions-row { flex-wrap: wrap; }
  .modal-overlay { padding: 16px; }.rules-card, .modal-overlay .entry-card { max-height: calc(100dvh - 32px); }
  .studio-announcement-card { padding: 26px; }
  .studio-settings-overlay { align-items: flex-end; justify-content: center; padding: 0; }
  .studio-settings-card { width: 100%; height: min(88dvh, 760px); max-height: 88dvh; padding: 24px 20px max(20px, env(safe-area-inset-bottom)); border-radius: 25px 25px 0 0; }
}

/* StarVaxo Mini Gaming Center */
#screen-hub { overflow-y: auto !important; padding: clamp(34px, 6vh, 68px) clamp(18px, 6vw, 88px) 28px; background: #f2ede3; }
#screen-hub::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .45; background-image: radial-gradient(#c9bda9 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(to bottom, #000 0%, transparent 90%); }
.hub-shell { position: relative; z-index: 1; display: flex; flex-direction: column; width: min(100%, 1120px); min-height: min(690px, calc(100dvh - 96px)); margin: auto; }
.hub-topline { display: flex; align-items: center; gap: 10px; color: #8d7c6b; font-size: .67rem; font-weight: 800; letter-spacing: .13em; }
.hub-brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: #fffaf2; background: #81718e; font-size: .7rem; letter-spacing: -.05em; }
.hub-topline-divider { height: 16px; width: 1px; background: #d4c8b8; }
.hub-version { margin-left: 3px; padding: 5px 8px; border: 1px solid #d8cbbb; border-radius: 999px; color: #85758f; font-size: .58rem; letter-spacing: .08em; }
.hub-welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: clamp(42px, 9vh, 96px) 0 clamp(44px, 8vh, 82px); }
.hub-eyebrow { margin: 0 0 9px; color: #9c826a; font-size: .65rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hub-welcome h1 { margin: 0; color: #4b4255; font-family: var(--font-title); font-size: clamp(2.25rem, 5vw, 4.8rem); line-height: 1.02; letter-spacing: -.065em; font-weight: 850; }
.hub-welcome h1 span { color: #8d7c9c; }
.hub-intro { margin: 14px 0 0; color: #827a81; font-size: clamp(.9rem, 1.35vw, 1.04rem); }
.hub-count { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; color: #928477; font-size: .61rem; font-weight: 800; letter-spacing: .11em; white-space: nowrap; }
.hub-count strong { color: #81718e; font-family: var(--font-title); font-size: 1.4rem; letter-spacing: -.04em; }
.hub-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.hub-section-heading .hub-eyebrow { margin-bottom: 4px; }
.hub-section-heading h2 { margin: 0; color: #51485b; font-family: var(--font-title); font-size: 1.25rem; letter-spacing: -.035em; }
.hub-shelf-note { color: #9b9187; font-size: .73rem; }
.hub-game-card { display: grid; grid-template-columns: minmax(220px, 34%) minmax(0, 1fr) auto; align-items: center; gap: clamp(19px, 3vw, 38px); width: 100%; padding: clamp(15px, 2vw, 22px); border: 1px solid #e0d4c4; border-radius: 23px; background: #fffcf5; color: inherit; text-align: left; box-shadow: 0 12px 30px #6252440d, 0 2px 0 #fff inset; cursor: pointer; transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease; }
.hub-game-card:hover { transform: translateY(-4px); border-color: #cbbbd5; box-shadow: 0 18px 34px #62524416, 0 2px 0 #fff inset; }
.hub-game-art { position: relative; display: grid; place-items: center; min-height: 205px; overflow: hidden; border-radius: 16px; background: #eee7dd; }
.hub-game-art::before, .hub-game-art::after { content: ''; position: absolute; width: 150px; height: 150px; border-radius: 50%; background: #e4d8e7; opacity: .7; }
.hub-game-art::before { left: -70px; bottom: -88px; }.hub-game-art::after { right: -75px; top: -90px; background: #e1e7d4; }
.hub-art-paper { position: relative; z-index: 1; display: grid; place-items: center; width: 72%; aspect-ratio: 1.48; padding: 11px; transform: rotate(-5deg); border: 1px solid #ddd1c2; border-radius: 6px; background: #fffcf5; box-shadow: 0 8px 0 #c6bbaa55, 0 14px 24px #66594518; }
.hub-art-paper svg { width: 100%; }
.hub-art-character { position: absolute; z-index: 2; display: grid; place-items: center; width: 60px; height: 60px; padding: 3px; border: 3px solid #fffcf5; border-radius: 20px; background: #f1d6b9; box-shadow: 0 5px 0 #6554441c; }
.hub-art-character .studio-avatar { display: block; width: 100%; height: 100%; }
.hub-art-fox { bottom: 16px; left: 15px; rotate: -12deg; }.hub-art-cat { top: 12px; right: 14px; background: #e4dcea; rotate: 10deg; }
.hub-art-spark { position: absolute; z-index: 3; top: 20px; left: 22px; color: #b38b63; font-size: 1.5rem; }
.hub-game-info { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.hub-game-kicker { color: #9c826a; font-size: .6rem; font-weight: 800; letter-spacing: .12em; }
.hub-game-info > strong { color: #4b4255; font-family: var(--font-title); font-size: clamp(1.75rem, 3vw, 2.6rem); line-height: 1; letter-spacing: -.06em; }
.hub-game-info > span:nth-of-type(2) { max-width: 470px; color: #817880; font-size: .87rem; line-height: 1.65; }
.hub-game-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
.hub-game-tags i { padding: 6px 9px; border: 1px solid #e7ded1; border-radius: 999px; color: #8a7d82; background: #faf5ec; font-size: .61rem; font-style: normal; font-weight: 700; }
.hub-game-launch { display: inline-flex; align-items: center; gap: 11px; justify-self: end; padding: 11px 14px; border-radius: 12px; color: #fffaf2; background: #81718e; font-size: .72rem; font-weight: 800; white-space: nowrap; transition: background .2s ease, transform .2s ease; }
.hub-game-card:hover .hub-game-launch { background: #6d5d79; transform: translateX(2px); }
.hub-game-launch b { font-size: 1.05rem; font-weight: 500; }
.hub-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: auto; padding-top: 40px; color: #9a9087; font-size: .68rem; }
.hub-footer-status { display: inline-flex; align-items: center; gap: 8px; font-size: .59rem; font-weight: 800; letter-spacing: .1em; }
.hub-footer-status i { width: 7px; height: 7px; border-radius: 50%; background: #83a181; }
.hub-back-button { position: absolute; z-index: 3; top: 17px; left: clamp(16px, 3vw, 46px); display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border: 1px solid #e0d5c7; border-radius: 999px; color: #6e6177; background: #fffcf5; font-size: .72rem; font-weight: 700; cursor: pointer; }
.hub-back-button:hover { border-color: #cbbbd5; background: #f6f0e9; }
@media (max-width: 720px) {
  #screen-hub { padding: 76px 16px 22px; }
  .hub-shell { min-height: calc(100dvh - 98px); }
  .hub-topline { gap: 7px; font-size: .55rem; letter-spacing: .1em; }
  .hub-brand-mark { width: 27px; height: 27px; }
  .hub-version { font-size: .5rem; }
  .hub-welcome { align-items: flex-start; margin: 48px 0 38px; }
  .hub-welcome h1 { max-width: 520px; font-size: clamp(2.35rem, 9vw, 3.7rem); }
  .hub-intro { max-width: 400px; line-height: 1.55; }
  .hub-count { display: none; }
  .hub-section-heading h2 { font-size: 1.1rem; }
  .hub-shelf-note { max-width: 110px; text-align: right; font-size: .63rem; }
  .hub-game-card { grid-template-columns: 1fr auto; gap: 15px; padding: 12px; border-radius: 18px; }
  .hub-game-art { grid-column: 1 / -1; min-height: 165px; }
  .hub-art-paper { width: 57%; }
  .hub-art-character { width: 51px; height: 51px; }
  .hub-game-info { gap: 8px; }
  .hub-game-kicker { font-size: .53rem; }
  .hub-game-info > strong { font-size: 1.7rem; }
  .hub-game-info > span:nth-of-type(2) { font-size: .75rem; }
  .hub-game-tags { gap: 5px; }
  .hub-game-tags i { padding: 5px 7px; font-size: .54rem; }
  .hub-game-launch { gap: 6px; padding: 9px 10px; font-size: .62rem; }
  .hub-footer { padding-top: 28px; font-size: .61rem; }
  .hub-footer-status { font-size: .5rem; }
  .hub-back-button { top: 12px; left: 12px; }
}
@media (max-width: 420px) {
  .hub-game-card { grid-template-columns: 1fr; }
  .hub-game-launch { justify-self: stretch; justify-content: center; }
  .hub-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (max-width: 380px) {
  .header-profile-button { gap: 6px; min-height: 40px; padding: 4px 10px 4px 5px; }.header-profile-avatar { width: 29px; height: 29px; }.header-profile-name { max-width: 110px; font-size: .72rem; }.profile-settings-icon-wrap { width: 23px; height: 23px; flex-basis: 23px; }.profile-settings-icon { width: 14px; }
  #screen-home { padding-inline: 12px; }.entry-card { padding: 17px; }.studio-avatar-picker { gap: 9px; padding: 9px; }.studio-avatar-preview { width: 57px; height: 57px; }
  .avatar-options { gap: 3px; }.studio-entry-heading h2 { font-size: 1.3rem; }.color-swatches { gap: 4px; }
  .mode-card { padding: 10px 7px; }.mode-card-content { gap: 5px; }.mode-text strong { font-size: .7rem !important; }.mode-icon svg { width: 17px; height: 17px; }
  .studio-facts { gap: 9px; font-size: .59rem; }.hero-game-title { font-size: 3rem; }
}
@media (max-height: 560px) and (min-width: 761px) {
  #screen-home { padding-block: 24px; }.studio-illustration { height: 180px; scale: .8; }.studio-hero-copy { margin-top: 0; }
  .drawing-arena { min-height: 290px; gap: 8px; }.game-screen { padding-block: 14px; }.top-players-dock { padding-block: 5px; }.arena-bottom-dock { gap: 6px; }
}

/* SMGC library launcher layout */
#screen-hub { overflow: auto !important; padding: 16px; background: #eee9df; }
#screen-hub::before { opacity: .28; background-size: 24px 24px; }
.hub-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 18px; width: min(100%, 1540px); min-height: calc(100dvh - 32px); margin: 0 auto; }
.hub-sidebar { display: flex; flex-direction: column; min-width: 0; padding: 22px 14px 14px; border: 1px solid #e0d7c9; border-radius: 22px; background: #faf7f0; box-shadow: 0 8px 22px #6053430a; }
.hub-sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 25px; color: #4b4255; }
.hub-sidebar-brand > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.hub-sidebar-brand strong { font-family: var(--font-title); font-size: 1rem; letter-spacing: -.04em; }
.hub-sidebar-brand small { color: #8c8180; font-size: .65rem; }
.hub-brand-mark { flex: 0 0 37px; width: 37px; height: 37px; border: 1px solid #d7cadf; border-radius: 12px; color: #665876; background: #eee7f0; font-size: .78rem; font-weight: 900; }
.hub-sidebar-label { padding: 0 10px; color: #a09383; font-size: .58rem; font-weight: 800; letter-spacing: .14em; }
.hub-nav-item { display: flex; align-items: center; gap: 10px; min-height: 42px; margin-top: 5px; padding: 0 10px; border: 1px solid transparent; border-radius: 11px; color: #81777c; background: transparent; font: 600 .76rem var(--font-game); text-align: left; cursor: pointer; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.hub-nav-item:hover { color: #594e61; background: #f1ece4; }
.hub-nav-item.is-active { color: #5b4f68; border-color: #e3d9e9; background: #f0eaf3; }
.hub-nav-item b { display: grid; place-items: center; width: 22px; height: 22px; margin-left: auto; border-radius: 8px; color: #796a84; background: #e6ddea; font-size: .64rem; }
.hub-nav-icon { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 8px; color: #907da0; background: #f0eaf2; font-size: 1rem; }
.hub-sidebar-rule { height: 1px; margin: 16px 8px 17px; background: #e9e0d4; }
.hub-sidebar-note { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; margin-top: auto; padding: 15px 13px; border: 1px solid #e7decf; border-radius: 14px; background: #f4efe5; }
.hub-note-stamp { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; color: #a77e58; background: #eadcc7; }
.hub-sidebar-note strong { color: #605365; font-family: var(--font-title); font-size: .79rem; }
.hub-sidebar-note > span:last-child { color: #8c817e; font-size: .65rem; line-height: 1.55; }
.hub-sidebar-footer { display: flex; align-items: center; gap: 7px; margin-top: 14px; padding: 0 5px; color: #9a8f86; font-size: .55rem; font-weight: 800; letter-spacing: .1em; }
.hub-footer-dot, .hub-game-footnote > span { width: 7px; height: 7px; border-radius: 50%; background: #829c7b; }
.hub-main { display: flex; flex-direction: column; min-width: 0; padding: 25px clamp(18px, 3.2vw, 46px) 15px; border: 1px solid #e0d7c9; border-radius: 22px; background: #f7f3eb; box-shadow: 0 8px 22px #6053430a; }
.hub-welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 26px; padding: 5px 150px 0 0; }
.hub-eyebrow { margin: 0 0 7px; color: #9b836f; font-size: .59rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hub-welcome h1 { margin: 0; color: #4b4255; font-family: var(--font-title); font-size: clamp(1.8rem, 3.1vw, 3rem); line-height: 1.08; letter-spacing: -.06em; font-weight: 850; }
.hub-welcome h1 span { color: #8b7797; }
.hub-intro { margin: 8px 0 0; color: #827a81; font-size: .81rem; }
.hub-count { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; margin: 0 0 3px; padding: 9px 11px; border: 1px solid #e5dbcd; border-radius: 12px; color: #8e817b; background: #fbf8f1; font-size: .54rem; font-weight: 800; letter-spacing: .08em; line-height: 1.4; }
.hub-count strong { color: #857293; font-family: var(--font-title); font-size: 1.2rem; letter-spacing: -.04em; }
.hub-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 11px; }
.hub-section-heading .hub-eyebrow { margin-bottom: 3px; }
.hub-section-heading h2, .hub-quick-heading h2 { margin: 0; color: #51485b; font-family: var(--font-title); font-size: 1.15rem; letter-spacing: -.035em; }
.hub-library-count { padding: 6px 9px; border: 1px solid #e4dbcf; border-radius: 999px; color: #897e7d; background: #fbf8f1; font-size: .61rem; }
.hub-feature-card { display: grid; grid-template-columns: minmax(250px, .9fr) minmax(0, 1.1fr); min-height: 300px; overflow: hidden; border: 1px solid #e1d6c7; border-radius: 18px; background: #fffcf5; box-shadow: 0 7px 20px #5146330a; }
.hub-game-art { min-height: 300px; margin: 13px; overflow: hidden; border-radius: 14px; background: #eee7dd; }
.hub-art-topline { position: absolute; z-index: 4; top: 14px; right: 14px; left: 14px; display: flex; justify-content: space-between; color: #928270; font-size: .51rem; font-weight: 800; letter-spacing: .1em; }
.hub-art-paper { width: 65%; padding: 10px; transform: rotate(-6deg); }
.hub-art-paper > span { position: absolute; bottom: 9px; left: 12px; color: #9b8d80; font: italic .6rem Georgia, serif; }
.hub-art-character { width: 60px; height: 60px; animation: studioBob 6s ease-in-out infinite; }
.hub-art-caption { position: absolute; z-index: 2; right: 13px; bottom: 12px; left: 13px; color: #998d80; font-size: .5rem; font-weight: 800; letter-spacing: .12em; text-align: center; }
.hub-game-info { align-self: center; gap: 12px; padding: 25px clamp(20px, 3vw, 38px); }
.hub-game-kicker { display: inline-flex; align-items: center; gap: 8px; color: #9a806c; font-size: .55rem; }
.hub-game-kicker i { width: 4px; height: 4px; border-radius: 50%; background: #b9a48a; }
.hub-game-info > h2 { margin: 0; color: #4b4255; font-family: var(--font-title); font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: .98; letter-spacing: -.065em; }
.hub-game-info > p { max-width: 470px; margin: 0; color: #817880; font-size: .78rem; line-height: 1.65; }
.hub-game-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1px; }
.hub-game-tags span { padding: 6px 8px; border: 1px solid #e7ded1; border-radius: 999px; color: #887c7d; background: #faf5ec; font-size: .54rem; font-weight: 700; }
.hub-game-launch { display: inline-flex; align-items: center; justify-content: center; gap: 10px; align-self: flex-start; min-height: 40px; margin-top: 1px; padding: 0 14px; border: 0; border-radius: 11px; color: #fffaf2; background: #81718e; font: 700 .72rem var(--font-game); cursor: pointer; transition: transform .18s ease, background .18s ease; }
.hub-game-launch:hover { transform: translateY(-2px); background: #6d5d79; }
.hub-game-launch b { font-size: 1rem; font-weight: 500; }
.hub-game-footnote { display: inline-flex; align-items: center; gap: 7px; color: #9b9088; font-size: .57rem; }
.hub-quick-start { margin-top: clamp(22px, 4vh, 38px); }
.hub-quick-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.hub-quick-heading .hub-eyebrow { margin-bottom: 3px; }
.hub-quick-heading > span { color: #9a9087; font-size: .63rem; }
.hub-quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hub-quick-card { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 12px; border: 1px solid #e4dbcf; border-radius: 13px; color: inherit; background: #fbf8f1; text-align: left; cursor: pointer; transition: border-color .18s ease, transform .18s ease, background .18s ease; }
.hub-quick-card:hover { transform: translateY(-2px); border-color: #cdbdd6; background: #fffdf9; }
.hub-quick-icon { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #755f86; background: #ede5f1; font-size: 1.2rem; }
.hub-join-icon { color: #a07757; background: #f1e7d8; }
.hub-quick-card > span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hub-quick-card strong { color: #5a4f62; font-size: .7rem; }
.hub-quick-card small { overflow: hidden; color: #918680; font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
.hub-quick-card > b { margin-left: auto; color: #9d8aaa; font-size: .92rem; font-weight: 500; }
.hub-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; color: #9b9189; font-size: .58rem; }
.hub-footer > span:last-child { font-weight: 800; letter-spacing: .1em; }.hub-footer i { margin-left: 3px; color: #a98b6b; font-style: normal; }
#screen-hub .hub-topline, #screen-hub .hub-version, #screen-hub .hub-shelf-note { display: none; }
@media (max-width: 980px) {
  .hub-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 12px; }
  .hub-main { padding-inline: 20px; }
  .hub-sidebar { padding-inline: 10px; }
  .hub-feature-card { grid-template-columns: minmax(205px, .82fr) minmax(0, 1.18fr); }
  .hub-game-info { padding-inline: 19px; }
}
@media (max-width: 720px) {
  #screen-hub { padding: 10px; }
  .hub-layout { display: flex; flex-direction: column; gap: 10px; min-height: calc(100dvh - 20px); }
  .hub-sidebar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 16px; }
  .hub-sidebar-brand { padding: 0; }.hub-sidebar-brand strong { font-size: .83rem; }.hub-sidebar-brand small { font-size: .57rem; }.hub-sidebar-brand .hub-brand-mark { width: 32px; height: 32px; flex-basis: 32px; }
  .hub-sidebar-label, .hub-sidebar-rule, .hub-sidebar-note, .hub-sidebar-footer, #hubCreateRoomBtn, #hubJoinRoomBtn { display: none; }
  .hub-nav-item.is-active { min-height: 34px; margin: 0; padding: 0 8px; font-size: .65rem; }
  .hub-nav-icon { width: 20px; height: 20px; }.hub-nav-item b { width: 19px; height: 19px; }
  .hub-main { flex: 1; padding: 20px 15px 12px; border-radius: 17px; }
  .hub-welcome { align-items: flex-start; margin-bottom: 19px; padding: 0 0 0; }
  .hub-welcome h1 { max-width: 430px; font-size: clamp(1.8rem, 7vw, 2.45rem); }
  .hub-welcome .hub-intro { max-width: 340px; font-size: .7rem; line-height: 1.5; }
  .hub-count { display: none; }
  .hub-section-heading h2, .hub-quick-heading h2 { font-size: 1.02rem; }
  .hub-library-count { font-size: .53rem; }
  .hub-feature-card { grid-template-columns: 1fr; }
  .hub-game-art { min-height: 190px; margin: 9px 9px 0; }
  .hub-art-paper { width: 55%; }
  .hub-art-character { width: 48px; height: 48px; }
  .hub-game-info { gap: 9px; padding: 17px; }
  .hub-game-info > h2 { font-size: 2rem; }.hub-game-info > p { font-size: .7rem; }
  .hub-quick-start { margin-top: 23px; }
  .hub-quick-heading > span { display: none; }
  .hub-quick-grid { gap: 7px; }.hub-quick-card { gap: 7px; padding: 9px; }.hub-quick-icon { flex-basis: 29px; width: 29px; height: 29px; }.hub-quick-card strong { font-size: .62rem; }.hub-quick-card small { font-size: .52rem; }
  .hub-footer { padding-top: 15px; font-size: .52rem; }
}
@media (max-width: 390px) {
  .hub-quick-grid { grid-template-columns: 1fr; }
}

/* Clearer studio hub finish; keep the existing content and layout intact. */
#screen-hub { padding: clamp(22px, 3.2vh, 38px) clamp(20px, 5.2vw, 76px) 24px; background: #f4f5f0; color: #283a33; }
#screen-hub::before { opacity: .55; background-image: radial-gradient(#a9b7a9 1px, transparent 1px), radial-gradient(ellipse at 90% 0%, #e6e9ddbb, transparent 32%); background-size: 32px 32px, auto; mask-image: linear-gradient(to bottom, #000 0%, transparent 82%); }
.hub-shell { width: min(100%, 1180px); min-height: calc(100dvh - 62px); }
.hub-topline { color: #68796f; font-size: .64rem; letter-spacing: .12em; }
.hub-brand-mark { border-color: #315d4d; border-radius: 11px; background: #315d4d; }
.hub-topline-divider { background: #d0d8d0; }
.hub-welcome { gap: 26px; margin: clamp(48px, 8vh, 72px) 0 clamp(34px, 5.5vh, 48px); }
.hub-eyebrow { color: #8b705b; font-size: .61rem; letter-spacing: .15em; }
.hub-welcome h1 { max-width: 970px; color: #293e35; font-family: var(--font-game), system-ui, sans-serif; font-size: clamp(2.55rem, 5.3vw, 4.45rem); line-height: 1.02; letter-spacing: -.07em; font-weight: 800; }
.hub-welcome h1 span { color: #a7654d; font-style: normal; }
.hub-intro { margin-top: 12px; color: #66766d; line-height: 1.55; }
.hub-count { padding: 10px 13px; border-color: #dce2d8; border-radius: 13px; color: #587061; background: #fbfcf8; }
.hub-count strong { color: #315d4d; }
.hub-section-heading { margin-bottom: 12px; }
.hub-section-heading h2 { color: #344b3f; font-family: var(--font-game), system-ui, sans-serif; font-size: 1.18rem; font-weight: 750; letter-spacing: -.035em; }
.hub-shelf-note { color: #718076; }
.hub-game-card { gap: clamp(18px, 2.5vw, 30px); padding: clamp(13px, 1.6vw, 19px); border-color: #e1e5dc; border-radius: 20px; background: #fffefa; box-shadow: 0 1px 2px #23352c0c, 0 12px 32px #23352c0b; }
.hub-game-card:hover { transform: translateY(-2px); border-color: #cbd8ca; box-shadow: 0 2px 5px #23352c10, 0 18px 38px #23352c12; }
.hub-game-art { min-height: 218px; border-color: #d5dfd1; background: linear-gradient(145deg, #e8eee4, #dfe8dc); }
.hub-game-art::before { background: #ceddca; }
.hub-art-paper { border-color: #e1d9c9; border-radius: 8px; box-shadow: 0 5px 0 #53634a14, 0 14px 25px #40513b12; transform: rotate(-3deg); }
.hub-game-card:hover .hub-art-paper { transform: rotate(-1deg) translateY(-2px); }
.hub-art-character { width: 55px; height: 55px; border-radius: 17px; box-shadow: 0 3px 8px #33433416; }
.hub-game-info { gap: 10px; }
.hub-game-kicker { color: #8b705b; letter-spacing: .1em; }
.hub-game-info > strong { color: #2d493a; font-family: var(--font-game), system-ui, sans-serif; font-size: clamp(1.9rem, 3.2vw, 2.65rem); font-weight: 780; letter-spacing: -.065em; }
.hub-game-info > span:nth-of-type(2) { color: #64736a; font-size: .8rem; line-height: 1.6; }
.hub-game-tags { gap: 6px; }
.hub-game-tags i { padding: 5px 8px; border-color: #e0e7dd; color: #5b7163; background: #f2f5ef; font-size: .57rem; }
.hub-game-launch { min-height: 42px; border: 1px solid #315d4d; border-radius: 11px; color: white; background: #315d4d; font-size: .66rem; }
.hub-game-card:hover .hub-game-launch { background: #244b3d; }
.hub-game-launch b { color: #dce8d8; }
.hub-footer { color: #738076; font-size: .62rem; }
.hub-footer-status { color: #55705f; }
.hub-footer-status i { background: #64876d; }
.hub-back-button { border-color: #dce3d8; color: #456451; background: #fffefa; }
.hub-back-button:hover { border-color: #bdcdbd; background: #f5f8f1; }
.hub-game-card:focus-visible, .hub-back-button:focus-visible { outline: 3px solid #638d73; outline-offset: 3px; }
@media (max-width: 900px) {
  .hub-welcome h1 { max-width: 740px; font-size: clamp(2.45rem, 5.7vw, 4rem); }
  .hub-game-card { grid-template-columns: minmax(190px, 32%) minmax(0, 1fr); }
  .hub-game-art { grid-row: span 2; min-height: 200px; }
  .hub-game-launch { justify-self: start; }
}
@media (max-width: 720px) {
  .hub-welcome { margin: 43px 0 30px; }
  .hub-welcome h1 { font-size: clamp(2.55rem, 10vw, 3.8rem); }
  .hub-game-card { grid-template-columns: 1fr auto; }
  .hub-game-art { grid-row: auto; }
}
@media (max-width: 360px) {
  .hub-topline { gap: 5px; font-size: .48rem; letter-spacing: .07em; }
  .hub-game-info > strong { font-size: 1.6rem; }
  .hub-game-tags i { font-size: .49rem; }
}
@media (max-width: 420px) {
  .hub-game-card { grid-template-columns: 1fr; }
  .hub-game-launch { justify-self: stretch; }
  .hub-footer { align-items: flex-start; flex-direction: column; }
}
@supports (padding: env(safe-area-inset-bottom)) {
  .game-screen { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
  .app-header { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
}
@media (prefers-reduced-motion: reduce) {
  /* Shared screen transitions are bypassed in JavaScript for reduced motion. */
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Same SMGC home composition, restyled as a cozy tabletop art studio. */
#screen-hub { overflow-y: auto !important; padding: 26px clamp(18px, 5vw, 72px) 24px; background: #e6ecdf; color: #34483c; }
#screen-hub::before { opacity: .32; background-image: radial-gradient(#9ba88f 1px, transparent 1px), radial-gradient(ellipse at 85% 8%, #f0d6ab88, transparent 30%), radial-gradient(ellipse at 8% 78%, #c3d2bd88, transparent 34%); background-size: 27px 27px, auto, auto; mask-image: linear-gradient(to bottom, #000 0%, transparent 100%); }
.hub-shell { display: flex; flex-direction: column; width: min(100%, 1160px); min-height: calc(100dvh - 50px); height: auto; margin: auto; }
.hub-topline { display: flex; align-items: center; gap: 10px; color: #6f8170; font-size: .66rem; font-weight: 800; letter-spacing: .13em; }
.hub-topline, #screen-hub .hub-topline { display: flex; }
.hub-brand-mark { display: grid; flex: 0 0 33px; place-items: center; width: 33px; height: 33px; border: 1px solid #42614c; border-radius: 12px; color: #fbf5e8; background: #466650; font-size: .72rem; font-weight: 900; letter-spacing: -.04em; }
.hub-topline-divider { width: 1px; height: 17px; background: #b7c1ae; }
.hub-version { display: inline-flex; align-items: center; justify-content: center; padding: 5px 8px; border: 1px solid #bfccb8; border-radius: 999px; color: #6c816f; font-size: .55rem; letter-spacing: .08em; }
.hub-welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin: clamp(43px, 8vh, 76px) 0 clamp(35px, 6vh, 52px); padding: 0; }
.hub-eyebrow { margin: 0 0 9px; color: #b27558; font-size: .62rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.hub-welcome h1 { max-width: 850px; margin: 0; color: #354d3e; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: .99; letter-spacing: -.065em; font-weight: 700; }
.hub-welcome h1 span { color: #ba7257; font-style: italic; }
.hub-intro { margin: 13px 0 0; color: #697a6d; font-size: clamp(.88rem, 1.3vw, 1.02rem); }
.hub-count { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; margin: 0 0 4px; padding: 11px 14px; border: 1px solid #486550; border-radius: 14px; color: #f6efdf; background: #466650; font-size: .58rem; font-weight: 800; letter-spacing: .1em; }
.hub-count strong { color: #f2d2a4; font-family: Georgia, serif; font-size: 1.55rem; letter-spacing: -.05em; }
.hub-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 13px; }
.hub-section-heading .hub-eyebrow { margin-bottom: 4px; }
.hub-section-heading h2 { margin: 0; color: #3e5545; font-family: Georgia, 'Times New Roman', serif; font-size: 1.45rem; letter-spacing: -.035em; }
.hub-shelf-note { color: #7e8b7b; font-size: .7rem; }
.hub-game-card { display: grid; grid-template-columns: minmax(230px, 34%) minmax(0, 1fr) auto; align-items: center; gap: clamp(18px, 3vw, 34px); width: 100%; padding: clamp(14px, 1.8vw, 20px); border: 1px solid #d5c9ae; border-radius: 23px; color: #35483c; background: #fbf6e9; text-align: left; box-shadow: 0 5px 0 #d3c6ae, 0 18px 35px #42554113, inset 0 1px #fffdf6; cursor: pointer; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.hub-game-card:hover { transform: translateY(-3px); border-color: #b8a58a; box-shadow: 0 8px 0 #d3c6ae, 0 24px 40px #4255411c, inset 0 1px #fffdf6; }
.hub-game-art { position: relative; display: grid; place-items: center; min-height: 230px; overflow: hidden; border: 1px solid #c8cdb8; border-radius: 16px; background: #dce4d2; }
.hub-game-art::before { content: ''; position: absolute; width: 190px; height: 190px; right: -65px; bottom: -115px; border-radius: 50%; background: #c6d2ba; }
.hub-game-art::after { content: '✳'; position: absolute; top: 19px; left: 21px; color: #c5875f; font-size: 1.5rem; }
.hub-art-paper { position: relative; z-index: 1; display: grid; place-items: center; width: 70%; aspect-ratio: 1.55; padding: 12px; border: 1px solid #d9cdb9; border-radius: 5px; background: #fffaf0; box-shadow: 0 7px 0 #53634a20, 0 16px 24px #40513b18; transform: rotate(-5deg); transition: transform .35s ease; }
.hub-game-card:hover .hub-art-paper { transform: rotate(-2deg) translateY(-2px); }
.hub-art-paper svg { width: 100%; }
.hub-art-character { position: absolute; z-index: 2; display: grid; place-items: center; width: 58px; height: 58px; padding: 3px; border: 3px solid #fffaf0; border-radius: 19px; background: #eed3b5; box-shadow: 0 5px 0 #52614722; animation: studioBob 6s ease-in-out infinite; }
.hub-art-character .studio-avatar { display: block; width: 100%; height: 100%; }
.hub-art-fox { left: 13px; bottom: 14px; rotate: -10deg; }.hub-art-cat { right: 13px; top: 13px; background: #e6dced; rotate: 9deg; }
.hub-art-spark { display: none; }
.hub-game-info { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; padding: 10px 0; }
.hub-game-kicker { color: #a66f55; font-size: .57rem; font-weight: 800; letter-spacing: .12em; }
.hub-game-info > strong { color: #364d3e; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; letter-spacing: -.06em; }
.hub-game-info > span:nth-of-type(2) { max-width: 450px; color: #718073; font-size: .84rem; line-height: 1.65; }
.hub-game-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 1px; }
.hub-game-tags i { padding: 6px 9px; border: 1px solid #dce1d2; border-radius: 999px; color: #6d806f; background: #edf0e6; font-size: .6rem; font-style: normal; font-weight: 700; }
.hub-game-launch { display: inline-flex; align-items: center; justify-content: center; gap: 10px; justify-self: end; min-height: 43px; padding: 0 14px; border: 1px solid #3e5b47; border-radius: 12px; color: #fff8e9; background: #466650; font-size: .69rem; font-weight: 800; white-space: nowrap; transition: transform .18s ease, background .18s ease; }
.hub-game-card:hover .hub-game-launch { transform: translateX(2px); background: #354e3d; }
.hub-game-launch b { color: #efd3a8; font-size: 1.05rem; font-weight: 500; }
.hub-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: auto; padding-top: 36px; color: #788777; font-size: .65rem; }
.hub-footer-status { display: inline-flex; align-items: center; gap: 8px; color: #647b68; font-size: .56rem; font-weight: 800; letter-spacing: .1em; }
.hub-footer-status i { width: 7px; height: 7px; border-radius: 50%; background: #7d9a78; }
.hub-back-button { color: #49634d; border-color: #c6d0bd; background: #f5f5e9; }
@media (max-width: 720px) {
  #screen-hub { padding: 18px 14px 20px; }
  .hub-shell { min-height: calc(100dvh - 38px); }
  .hub-topline { gap: 7px; font-size: .54rem; letter-spacing: .1em; }
  .hub-brand-mark { flex-basis: 29px; width: 29px; height: 29px; border-radius: 10px; }
  .hub-welcome { align-items: flex-start; margin: 48px 0 34px; }
  .hub-welcome h1 { max-width: 560px; font-size: clamp(2.75rem, 11vw, 4.25rem); }
  .hub-intro { max-width: 430px; font-size: .84rem; line-height: 1.55; }
  .hub-count { display: none; }
  .hub-section-heading h2 { font-size: 1.2rem; }
  .hub-shelf-note { max-width: 130px; text-align: right; font-size: .6rem; }
  .hub-game-card { grid-template-columns: 1fr auto; gap: 13px; padding: 11px; border-radius: 19px; }
  .hub-game-art { grid-column: 1 / -1; min-height: 165px; }
  .hub-art-paper { width: 55%; }
  .hub-art-character { width: 48px; height: 48px; }
  .hub-game-info { gap: 8px; padding: 7px 3px 5px; }
  .hub-game-kicker { font-size: .51rem; }.hub-game-info > strong { font-size: 1.75rem; }.hub-game-info > span:nth-of-type(2) { font-size: .7rem; }
  .hub-game-tags { gap: 5px; }.hub-game-tags i { padding: 5px 7px; font-size: .52rem; }
  .hub-game-launch { min-height: 38px; padding: 0 10px; font-size: .6rem; }
  .hub-footer { padding-top: 28px; font-size: .58rem; }.hub-footer-status { font-size: .5rem; }
}
@media (max-width: 420px) {
  .hub-game-card { grid-template-columns: 1fr; }
  .hub-game-launch { justify-self: stretch; }
}

/* Art-club lounge finish: bold, warm, and unmistakably different without moving the layout. */
#screen-hub {
  color: #f7eddf;
  background: #392f3a;
}
#screen-hub::before {
  opacity: .8;
  background-image:
    radial-gradient(#f4d9bd28 1px, transparent 1px),
    radial-gradient(ellipse at 80% 12%, #76535a99, transparent 34%),
    radial-gradient(ellipse at 8% 84%, #674d4b88, transparent 38%);
  background-size: 30px 30px, auto, auto;
  mask-image: linear-gradient(to bottom, #000 0%, #000 76%, transparent 100%);
}
.hub-topline { color: #d9c5ae; }
.hub-brand-mark {
  border-color: #e6a274;
  color: #392f3a;
  background: #e6a274;
  box-shadow: 0 3px 0 #211c24;
}
.hub-topline-divider { background: #766573; }
.hub-version {
  border-color: #756371;
  color: #dbcabb;
  background: #493c49;
}
.hub-welcome h1 {
  color: #fff4e3;
  font-family: var(--font-game), system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: -.06em;
}
.hub-welcome h1 span { color: #e8a17e; font-style: normal; }
.hub-eyebrow, .hub-game-kicker { color: #e6a274; }
.hub-intro { color: #d3c2bd; }
.hub-count {
  border-color: #efc99d;
  color: #453641;
  background: #f2d4ae;
  box-shadow: 0 4px 0 #211c24;
}
.hub-count strong { color: #974d3d; }
.hub-section-heading h2 { color: #fff0dc; font-family: var(--font-game), system-ui, sans-serif; font-weight: 800; }
.hub-shelf-note { color: #c7b7b3; }
.hub-game-card {
  border-color: #e8c8a8;
  color: #3d333e;
  background: #fff4e3;
  box-shadow: 0 5px 0 #8f6151, 0 18px 38px #17131c42, inset 0 1px #fffaf0;
}
.hub-game-card:hover {
  border-color: #f2d9bc;
  box-shadow: 0 7px 0 #8f6151, 0 24px 46px #17131c55, inset 0 1px #fffaf0;
}
.hub-game-art {
  border-color: #d39c81;
  background: linear-gradient(145deg, #e8bca2, #d69f89);
}
.hub-game-art::before { background: #c78470; }
.hub-game-art::after { color: #9e493c; }
.hub-art-paper {
  border-color: #ead6bc;
  background: #fff9ed;
  box-shadow: 0 7px 0 #704c4330, 0 16px 24px #49332d29;
}
.hub-art-character { box-shadow: 0 5px 0 #49332d30; }
.hub-game-info > strong {
  color: #3d333e;
  font-family: var(--font-game), system-ui, sans-serif;
  font-weight: 850;
}
.hub-game-info > span:nth-of-type(2) { color: #695d62; }
.hub-game-tags i {
  border-color: #ead5bc;
  color: #76554c;
  background: #f8e9d5;
}
.hub-game-launch {
  border-color: #8b4338;
  color: #fff5e6;
  background: #984d3d;
  box-shadow: 0 3px 0 #6f372f;
}
.hub-game-card:hover .hub-game-launch { background: #813d35; }
.hub-game-launch b { color: #f4ce9e; }
.hub-footer { color: #cbbab2; }
.hub-footer-status { color: #e5c79e; }
.hub-footer-status i { background: #d69a6b; }
body:has(#screen-hub.active) .header-profile-button {
  border-color: #6e5b6c;
  color: #fff4e3;
  background: #4a3c4b;
  box-shadow: 0 4px 0 #211c24;
}
body:has(#screen-hub.active) .header-profile-button:hover {
  border-color: #967789;
  box-shadow: 0 6px 14px #17131c44;
}
body:has(#screen-hub.active) .header-profile-name { color: #fff4e3; }
body:has(#screen-hub.active) .header-profile-avatar { outline: 2px solid #e6a274; outline-offset: 1px; }
body:has(#screen-hub.active) .profile-settings-icon-wrap {
  border-color: #e6a274;
  color: #392f3a;
  background: #e6a274;
}
body:has(#screen-hub.active) .header-profile-button:hover .profile-settings-icon-wrap { background: #f0bb91; }
#screen-hub .hub-game-card:focus-visible { outline-color: #e6a274; }
@media (max-width: 720px) {
  #screen-hub .hub-topline-divider,
  #screen-hub .hub-topline > span:nth-of-type(4) { display: none; }
}

/* Make the room lobby readable at normal browser zoom. */
@media (max-width: 420px) {
  .app-header { padding: 0; gap: 6px; }
  .header-help-button { width: 38px; height: 38px; }
  .header-profile-name { max-width: 60px; }
}
#screen-lobby { padding: clamp(16px, 2vw, 28px); }
#screen-lobby .lobby-dashboard { max-width: 1380px; gap: 24px; }
#screen-lobby .lobby-top-banner { flex-wrap: wrap; gap: 16px; }
#screen-lobby .lobby-headline { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 16px; }
.lobby-back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #d6c9b8;
  border-radius: 999px;
  background: #fffcf5;
  color: #66516f;
  font: 700 .9rem var(--font-game), sans-serif;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.lobby-back-button:hover { background: #ece3ef; transform: translateX(-2px); }
.lobby-back-button:focus-visible { outline: 3px solid #bda8cc; outline-offset: 3px; }
#screen-lobby .lobby-title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
#screen-lobby .lobby-player-counter { margin-left: auto; min-height: 40px; }
#screen-lobby .counter-label { font-size: .8rem; }
#screen-lobby .lobby-columns-grid { grid-template-columns: minmax(260px, .62fr) minmax(0, 1.6fr); gap: 22px; }
#screen-lobby .lobby-right-col { gap: 20px; }
#screen-lobby .lobby-box-card { padding: 20px; gap: 16px; }
#screen-lobby .section-title { font-size: .9rem; }
#screen-lobby .section-hint { font-size: .78rem; }
#screen-lobby .room-code-tag { font-size: .82rem; }
#screen-lobby .room-code-digits { font-size: clamp(3rem, 5.8vw, 4.5rem); }
#screen-lobby .copy-invite-chip { font-size: .9rem; min-height: 40px; }
#screen-lobby .lock-room-title { font-size: 1rem; }
#screen-lobby .lock-room-hint { font-size: .85rem; line-height: 1.4; }
#screen-lobby .lock-room-row { display: grid; grid-template-columns: minmax(0, 1fr) 52px; gap: 4px 12px; }
#screen-lobby .lock-room-info { display: contents; }
#screen-lobby .lock-room-title { grid-column: 1 / -1; }
#screen-lobby .lock-room-hint { grid-column: 1; }
#screen-lobby .lock-room-row .toggle-switch-wrapper { grid-column: 2; grid-row: 2; }
#screen-lobby .toggle-switch-wrapper { flex: 0 0 52px; width: 52px; height: 28px; }
#screen-lobby .toggle-slider::before,
#screen-lobby input:checked + .toggle-slider::before { background: #fffcf5; box-shadow: 0 1px 3px #67547530; }
#screen-lobby .toggle-switch-wrapper input:focus-visible + .toggle-slider { outline: 3px solid #bda8cc; outline-offset: 3px; }
#screen-lobby .start-game-btn { min-height: 62px; font-size: 1.05rem; }
#screen-lobby .room-status-footer { font-size: .9rem; padding: 10px 8px; }
#screen-lobby .roster-hero-card { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; gap: 8px 14px; min-height: 104px; padding: 16px 18px; }
#screen-lobby .roster-hero-main { display: contents; }
#screen-lobby .roster-hero-details { grid-column: 2; min-width: 0; gap: 3px; }
#screen-lobby .roster-hero-title-row { flex-wrap: wrap; gap: 6px; }
#screen-lobby .roster-hero-name { overflow-wrap: anywhere; }
#screen-lobby .roster-hero-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
#screen-lobby .roster-hero-actions > * { white-space: nowrap; }
#screen-lobby .roster-hero-name { font-size: 1.25rem; }
#screen-lobby .roster-hero-role { font-size: .85rem; }
#screen-lobby .roster-crest-shield { grid-column: 1; grid-row: 1 / span 2; width: 70px; height: 70px; }
#screen-lobby .roster-slots-grid { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
#screen-lobby .roster-slot-name { font-size: .9rem; }
#screen-lobby .roster-slot-label { font-size: .75rem; }
#screen-lobby .roster-slot-points { font-size: .75rem; }
#screen-lobby .roster-pts-chip, #screen-lobby .badge-host { font-size: .82rem; }
#screen-lobby .settings-grid-layout { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
#screen-lobby .modifier-tile-card { min-height: 112px; padding: 12px; background: #fffcf6; }
#screen-lobby .mod-title { font-size: .88rem; line-height: 1.35; color: #776d73; }
#screen-lobby .mod-icon-wrap { width: 28px; height: 28px; background: transparent; border: 0; }
#screen-lobby .mod-tile-bot { background: transparent; }
#screen-lobby .mod-cycle-btn { background: transparent; border: 0; }
#screen-lobby .modifier-tile-card:hover .mod-cycle-btn { color: #80628e; }
#screen-lobby .modifier-tile-card:focus-visible { outline: 3px solid #bda8cc; outline-offset: 3px; }
#screen-lobby .mod-val { font-size: 1rem; }
@media (min-width: 1200px) {
  #screen-lobby .settings-grid-layout { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 761px) and (max-width: 900px) {
  #screen-lobby .settings-grid-layout { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #screen-lobby .roster-slots-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  #screen-lobby { padding: 16px 12px 28px; }
  #screen-lobby .lobby-dashboard { gap: 18px; }
  #screen-lobby .lobby-box-card { padding: 16px; }
  #screen-lobby .lobby-headline { gap: 12px; }
  #screen-lobby .lobby-title { font-size: 1.75rem; }
  #screen-lobby .section-hint { max-width: 110px; text-align: right; }
  #screen-lobby .settings-grid-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #screen-lobby .roster-hero-card { flex-wrap: wrap; gap: 12px; }
}

/* Keep the hub thumbnail and game illustration identical as the shared artwork moves. */
#screen-hub .hub-game-art,
#screen-home .studio-illustration {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 360px);
  height: auto;
  min-height: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  container-type: inline-size;
}
#screen-hub.active #launchFakePainterBtn .hub-game-art,
#screen-home.active .studio-illustration { view-transition-name: smgc-fake-painter-artwork; }
#screen-hub .hub-game-art { justify-self: center; }
#screen-home .studio-illustration { max-width: 360px; margin: 16px auto 0; scale: 1; transform: none; }
.shared-game-art::before {
  content: '';
  position: absolute;
  width: 72%;
  height: 72%;
  inset: 8% auto auto 9%;
  border-radius: 50%;
  background: #e9e0ed;
  opacity: 1;
}
.shared-game-art::after {
  content: '';
  position: absolute;
  inset: auto auto -42% -38%;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: #e0d7cb;
  opacity: .75;
}
.shared-art-paper {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72%;
  aspect-ratio: 1.48;
  padding: 3cqw;
  transform: rotate(-5deg);
  border: 1px solid #ead6bc;
  border-radius: 6px;
  background: #fff9ed;
  box-shadow: 0 7px 0 #704c4330, 0 16px 24px #49332d29;
}
.shared-art-paper svg { display: block; width: 100%; height: 100%; }
.shared-art-paper > span { position: absolute; bottom: 6%; left: 10%; color: #9b8d80; font: italic 3cqw Georgia, serif; }
.shared-art-character {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 17%;
  aspect-ratio: 1;
  padding: 1cqw;
  border: 1cqw solid #fff9ed;
  border-radius: 30%;
  background: #eed3b5;
  box-shadow: 0 5px 0 #49332d30;
  animation: studioBob 6s ease-in-out infinite;
}
.shared-art-character .studio-avatar { display: block; width: 100%; height: 100%; }
.shared-art-fox { left: 6%; bottom: 7%; rotate: -10deg; }
.shared-art-cat { right: 6%; top: 6%; background: #e6dced; rotate: 9deg; animation-delay: -2s; }
.shared-art-frog { right: 6%; bottom: 7%; background: #dce6c8; rotate: -6deg; animation-delay: -4s; }
.shared-art-spark,.shared-art-wave { position: absolute; z-index: 3; color: #b38b63; }
.shared-art-spark { left: 10%; top: 9%; font-size: 8cqw; rotate: 12deg; }
.shared-art-wave { right: 7%; bottom: 27%; color: #b3a3c2; font-size: 7.5cqw; rotate: 25deg; }
.shared-art-note { position: absolute; z-index: 3; left: 25%; right: 25%; bottom: 6%; color: #765c50; font: italic 3.2cqw Georgia, serif; text-align: center; rotate: -4deg; }
#screen-home .studio-illustration .shared-art-character { width: 17%; height: auto; }
.hero-fake-word, .hero-painter-word { display: inline-block; white-space: nowrap; }
#screen-home .home-hero-banner { container-type: inline-size; }
#screen-home .hero-title-splatter-wrap { width: 100%; }
@media (min-width: 761px) {
  #screen-home .hero-title-splatter-wrap { justify-content: flex-start; }
}
#screen-home .hero-game-title { font-size: clamp(2rem, 16cqw, 7.4rem); white-space: nowrap; }

/* A consistent, softer shape language across the hub and every game screen. */
.entry-card, .lobby-box-card, .hub-game-card, .hub-feature-card,
.hub-sidebar, .hub-main, .voting-showcase-card, .results-showcase-card,
.studio-announcement-card { border-radius: 30px; }
.tab-switch, .tab-btn, .text-input, .primary-btn, .secondary-btn,
.cosmic-launch-btn, .finish-stroke-btn, .start-game-btn, .studio-save-button,
.hub-game-launch, .arcade-action-btn, .replay-strokes-btn,
.arena-status-capsule, .mission-prompt-pill, .arena-timer-pill,
.arena-round-badge, .room-status-footer, .hub-count,
.vote-stamp-pill, .announcer-label { border-radius: 999px; }
.mode-card, .studio-preference, .studio-face-colors label, .settings-avatar-options,
.roster-hero-card, .roster-slot-card, .player-dock-pill, .top-players-dock,
.vote-candidate-card, .suspect-polaroid, .role-secret-dossier, .dossier-box,
.scoreboard-container, .rules-card-item, .hub-quick-card, .hub-sidebar-note,
.lock-room-row, .room-code-capsule, .room-code-bezel-plate,
.canvas-stage-wrapper, .showcase-canvas-wrapper, .results-canvas-wrapper,
.canvas-overlay-banner, .skip-vote-marquee, .studio-toast { border-radius: 24px; }
#screen-lobby .modifier-tile-card { border-radius: 24px; }
.avatar-option, .studio-avatar-preview, .roster-crest-shield, .roster-slot-avatar,
.studio-character, .hub-art-character, .shared-art-character,
.reaction-btn, .icon-close-btn, .brand-icon-wrap, .hub-brand-mark,
.hub-quick-icon, .hub-nav-icon, .hub-nav-item b, .hub-note-stamp,
.role-icon-box { border-radius: 50%; }
.studio-paper, .hub-art-paper, .shared-art-paper { border-radius: 20px; }
.studio-face-colors input[type="color"] { border-radius: 50%; overflow: hidden; }
.studio-face-colors input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
.studio-face-colors input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.studio-face-colors input[type="color"]::-moz-color-swatch { border: 0; border-radius: 50%; }
@media (max-width: 720px) {
  .studio-settings-card { border-radius: 30px 30px 0 0; }
}
#screen-hub.active #launchFakePainterBtn .hub-game-info > strong,
#screen-home.active .hero-game-title { view-transition-name: smgc-fake-painter-title; }
#screen-hub.active #launchFakePainterBtn .hub-game-kicker,
#screen-home.active .hero-badge-subtitle { view-transition-name: smgc-fake-painter-kicker; }
#screen-hub.active #launchFakePainterBtn .hub-game-launch,
#screen-home.active :is(#btnSubmitCreate, #btnSubmitJoin) { view-transition-name: smgc-fake-painter-action; }
#screen-hub.active #launchFakePainterBtn .hub-game-launch > span,
#screen-home.active :is(#btnSubmitCreate, #btnSubmitJoin) > span { view-transition-name: smgc-action-label; }
#screen-hub.active #launchFakePainterBtn .hub-game-launch > b,
#screen-home.active :is(#btnSubmitCreate, #btnSubmitJoin) > span > span { view-transition-name: smgc-action-arrow; }
#screen-home.active .studio-hero-copy { view-transition-name: smgc-opening-copy; }
#screen-home.active .entry-card { view-transition-name: smgc-opening-card; }
::view-transition-group(smgc-fake-painter-artwork) {
  animation-duration: 980ms;
  animation-timing-function: cubic-bezier(.18, .86, .2, 1);
}
::view-transition-group(smgc-fake-painter-title) {
  animation-duration: 820ms;
  animation-timing-function: cubic-bezier(.18, .86, .2, 1);
}
::view-transition-group(smgc-fake-painter-kicker),
::view-transition-group(smgc-fake-painter-action),
::view-transition-group(smgc-action-label),
::view-transition-group(smgc-action-arrow) {
  animation-duration: 780ms;
  animation-timing-function: cubic-bezier(.18, .86, .2, 1);
}
/* Carry the button above the arriving form, including while it crosses the card. */
::view-transition-group(smgc-fake-painter-action) { z-index: 10; }
::view-transition-group(smgc-action-label),
::view-transition-group(smgc-action-arrow) { z-index: 11; }
::view-transition-image-pair(smgc-fake-painter-action),
::view-transition-image-pair(smgc-action-label),
::view-transition-image-pair(smgc-action-arrow) { isolation: isolate; }
::view-transition-old(smgc-fake-painter-action),
::view-transition-new(smgc-fake-painter-action) { width: 100%; height: 100%; object-fit: fill; }
::view-transition-old(smgc-action-label),
::view-transition-new(smgc-action-label),
::view-transition-old(smgc-action-arrow),
::view-transition-new(smgc-action-arrow) { width: 100%; height: 100%; object-fit: contain; }
::view-transition-old(smgc-fake-painter-action),
::view-transition-old(smgc-action-label),
::view-transition-old(smgc-action-arrow) {
  animation: smgc-action-depart 780ms linear both;
  mix-blend-mode: plus-lighter;
}
::view-transition-new(smgc-fake-painter-action),
::view-transition-new(smgc-action-label),
::view-transition-new(smgc-action-arrow) {
  animation: smgc-action-arrive 780ms linear both;
  mix-blend-mode: plus-lighter;
}
::view-transition-old(smgc-action-label),
::view-transition-new(smgc-action-label) { animation-duration: 100ms; }
::view-transition-image-pair(smgc-fake-painter-artwork) {
  isolation: isolate;
  overflow: clip;
}
::view-transition-new(smgc-opening-copy) {
  animation: smgc-content-rise 480ms 210ms cubic-bezier(.18, .78, .22, 1) both;
}
::view-transition-new(smgc-opening-card) {
  animation: smgc-content-rise 560ms 300ms cubic-bezier(.18, .78, .22, 1) both;
}
::view-transition-old(root) {
  animation: smgc-hub-depart 560ms cubic-bezier(.4, 0, 1, 1) both;
}
::view-transition-new(root) {
  animation: smgc-game-arrive 760ms cubic-bezier(.18, .78, .22, 1) both;
}
@keyframes smgc-hub-depart {
  to { opacity: 0; transform: scale(.99); }
}
@keyframes smgc-game-arrive {
  from { opacity: 0; transform: scale(1.018); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes smgc-content-rise {
  from { opacity: 0; transform: translateY(26px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes smgc-action-depart { from { opacity: 1; } to { opacity: 0; } }
@keyframes smgc-action-arrive { from { opacity: 0; } to { opacity: 1; } }
/* Hub navigation uses one simple page fade in either direction. */
:root[data-smgc-transition="page"] * {
  view-transition-name: none !important;
}
:root[data-smgc-transition="page"]::view-transition-old(root) {
  animation: smgc-action-depart 220ms ease both;
}
:root[data-smgc-transition="page"]::view-transition-new(root) {
  animation: smgc-action-arrive 220ms ease both;
}
/* Mirror the opening timeline: reverse the paths, easing, and stagger. */
:root[data-smgc-transition="back"]::view-transition-group(smgc-fake-painter-artwork) {
  animation-timing-function: cubic-bezier(.8, 0, .82, .14);
}
:root[data-smgc-transition="back"]::view-transition-group(smgc-fake-painter-title) {
  animation-delay: 160ms;
  animation-timing-function: cubic-bezier(.8, 0, .82, .14);
}
:root[data-smgc-transition="back"]::view-transition-group(smgc-fake-painter-kicker),
:root[data-smgc-transition="back"]::view-transition-group(smgc-fake-painter-action),
:root[data-smgc-transition="back"]::view-transition-group(smgc-action-label),
:root[data-smgc-transition="back"]::view-transition-group(smgc-action-arrow) {
  animation-delay: 200ms;
  animation-timing-function: cubic-bezier(.8, 0, .82, .14);
}
:root[data-smgc-transition="back"]::view-transition-old(smgc-fake-painter-action),
:root[data-smgc-transition="back"]::view-transition-new(smgc-fake-painter-action),
:root[data-smgc-transition="back"]::view-transition-old(smgc-action-arrow),
:root[data-smgc-transition="back"]::view-transition-new(smgc-action-arrow) { animation-delay: 200ms; }
:root[data-smgc-transition="back"]::view-transition-old(smgc-action-label),
:root[data-smgc-transition="back"]::view-transition-new(smgc-action-label) { animation-delay: 880ms; }
:root[data-smgc-transition="back"]::view-transition-old(smgc-opening-copy) {
  animation: smgc-content-rise 480ms 290ms cubic-bezier(.18, .78, .22, 1) reverse both;
}
:root[data-smgc-transition="back"]::view-transition-old(smgc-opening-card) {
  animation: smgc-content-rise 560ms 120ms cubic-bezier(.18, .78, .22, 1) reverse both;
}
:root[data-smgc-transition="back"]::view-transition-old(root) {
  animation: smgc-game-arrive 760ms 220ms cubic-bezier(.18, .78, .22, 1) reverse both;
}
:root[data-smgc-transition="back"]::view-transition-new(root) {
  animation: smgc-hub-depart 560ms 420ms cubic-bezier(.4, 0, 1, 1) reverse both;
}
@media (prefers-reduced-motion: reduce) {
  :root[data-smgc-transition]::view-transition-group(*),
  :root[data-smgc-transition]::view-transition-old(*),
  :root[data-smgc-transition]::view-transition-new(*) { animation-duration: .01ms; animation-delay: 0ms; }
  ::view-transition-group(smgc-fake-painter-artwork),
  ::view-transition-group(smgc-fake-painter-title),
  ::view-transition-group(smgc-fake-painter-kicker),
  ::view-transition-group(smgc-fake-painter-action),
  ::view-transition-group(smgc-action-label),
  ::view-transition-group(smgc-action-arrow),
  ::view-transition-old(smgc-fake-painter-action),
  ::view-transition-new(smgc-fake-painter-action),
  ::view-transition-old(smgc-action-label),
  ::view-transition-new(smgc-action-label),
  ::view-transition-old(smgc-action-arrow),
  ::view-transition-new(smgc-action-arrow),
  ::view-transition-new(smgc-opening-copy),
  ::view-transition-new(smgc-opening-card),
  ::view-transition-old(root),
  ::view-transition-new(root) { animation-duration: .01ms; }
}

/* Keep the account chip anchored while the game moves underneath it. */
.header-profile-button { view-transition-name: smgc-profile; }
.profile-settings-icon-wrap { transition: background .25s ease; }
.header-profile-button:hover .profile-settings-icon-wrap { transform: none; }
.profile-settings-icon { width: 18px; height: 18px; }
::view-transition-group(smgc-profile) { animation: none; z-index: 100; }
::view-transition-old(smgc-profile) { display: none; }
::view-transition-new(smgc-profile) { animation: none; mix-blend-mode: normal; }

/* The same title, panel, canvas, roster and action paths connect each phase. */
:root[data-smgc-transition="game"] .game-screen.active :is(.hero-game-title, .lobby-title, .entry-title, #arenaTurnText, .voting-title, .winner-title) { view-transition-name: smgc-game-title; }
:root[data-smgc-transition="game"] #screen-home.active .home-hero-banner > .studio-hero-copy { view-transition-name: none; }
:root[data-smgc-transition="game"] #screen-home.active .hero-badge-subtitle { view-transition-name: none; }
:root[data-smgc-transition="game"] .game-screen.active :is(.home-entry-card, .room-marquee-card, .topic-card, .studio-easel-container, .voting-showcase-card, .vote-reveal-card, .guess-card, .results-card) { view-transition-name: smgc-game-stage; }
:root[data-smgc-transition="game"] #screen-home.active .entry-card { view-transition-name: smgc-game-stage; }
:root[data-smgc-transition="game"] .game-screen.active :is(.canvas-stage-wrapper, .showcase-canvas-wrapper, .results-canvas-wrapper) { view-transition-name: smgc-game-canvas; }
:root[data-smgc-transition="game"] #screen-lobby.active .lobby-right-col > .lobby-box-card:first-child,
:root[data-smgc-transition="game"] .game-screen.active :is(.top-players-dock, .vote-reveal-list) { view-transition-name: smgc-game-roster; }
:root[data-smgc-transition="game"] .game-screen.active :is(#btnSubmitCreate, #btnSubmitJoin, #btnStartGame, #btnSubmitTopic, #btnFinishStroke, #btnSkipVote, #btnSubmitFakeGuess, #btnPlayAgain) { view-transition-name: smgc-game-action; }
:root[data-smgc-transition="game"] #screen-home.active :is(#btnSubmitCreate, #btnSubmitJoin) { view-transition-name: smgc-game-action; }
:root[data-smgc-transition="game"] #screen-home.active :is(#btnSubmitCreate, #btnSubmitJoin) > span,
:root[data-smgc-transition="game"] #screen-home.active :is(#btnSubmitCreate, #btnSubmitJoin) > span > span { view-transition-name: none; }
::view-transition-group(smgc-game-title),
::view-transition-group(smgc-game-stage),
::view-transition-group(smgc-game-canvas),
::view-transition-group(smgc-game-roster),
::view-transition-group(smgc-game-action) { animation-duration: 780ms; animation-timing-function: cubic-bezier(.18, .86, .2, 1); }
::view-transition-group(smgc-game-title) { z-index: 10; }
::view-transition-group(smgc-game-action) { z-index: 11; }
::view-transition-old(smgc-game-title), ::view-transition-new(smgc-game-title) { width: 100%; height: 100%; object-fit: contain; animation-duration: 160ms; animation-delay: 180ms; mix-blend-mode: plus-lighter; }
::view-transition-old(smgc-game-stage), ::view-transition-old(smgc-game-roster), ::view-transition-old(smgc-game-action) { animation: smgc-panel-depart 540ms ease both; mix-blend-mode: plus-lighter; }
::view-transition-new(smgc-game-stage), ::view-transition-new(smgc-game-roster), ::view-transition-new(smgc-game-action) { animation: smgc-panel-arrive 540ms ease both; mix-blend-mode: plus-lighter; }
::view-transition-old(smgc-game-stage), ::view-transition-new(smgc-game-stage),
::view-transition-old(smgc-game-canvas), ::view-transition-new(smgc-game-canvas),
::view-transition-old(smgc-game-action), ::view-transition-new(smgc-game-action) { width: 100%; height: 100%; object-fit: fill; }
::view-transition-image-pair(smgc-game-canvas) { overflow: clip; isolation: isolate; }
:root[data-smgc-transition="game"]::view-transition-old(root) { animation: smgc-screen-depart 600ms cubic-bezier(.4, 0, .2, 1) both; }
:root[data-smgc-transition="game"]::view-transition-new(root) { animation: smgc-screen-arrive 780ms cubic-bezier(.18, .86, .2, 1) both; }
@keyframes smgc-panel-depart { 0%, 15% { opacity: 1; } 75%, 100% { opacity: 0; } }
@keyframes smgc-panel-arrive { 0%, 15% { opacity: 0; } 75%, 100% { opacity: 1; } }
@keyframes smgc-screen-depart { to { opacity: 0; transform: translateX(-32px) scale(.975); } }
@keyframes smgc-screen-arrive { from { opacity: 0; transform: translateX(40px) scale(1.025); } to { opacity: 1; transform: none; } }
:root[data-smgc-overlay-handoff] .game-screen.active :is(.hero-game-title, .lobby-title, .entry-title, #arenaTurnText, .voting-title, .winner-title, .entry-card, .home-entry-card, .room-marquee-card, .topic-card, .studio-easel-container, .voting-showcase-card, .guess-card, .results-card) { view-transition-name: none; }
:root[data-smgc-overlay-handoff="announcement"] #announcerCore,
:root[data-smgc-overlay-handoff="role"] .role-reveal-card { view-transition-name: smgc-game-stage; }
:root[data-smgc-overlay-handoff="announcement"] #countdownDigit,
:root[data-smgc-overlay-handoff="role"] #roleCardTitle { view-transition-name: smgc-game-title; }
:root[data-smgc-overlay-handoff="announcement"] #countdownOverlay,
:root[data-smgc-overlay-handoff="role"] #modalRoleReveal { view-transition-name: smgc-game-overlay; }
::view-transition-group(smgc-game-overlay) { z-index: 1; animation: none; }
::view-transition-group(smgc-game-canvas) { z-index: 2; }
::view-transition-group(smgc-game-stage) { z-index: 3; }
::view-transition-group(smgc-game-roster) { z-index: 4; }
::view-transition-old(smgc-game-overlay) { animation: smgc-overlay-depart 420ms ease-out both; mix-blend-mode: normal; }
@keyframes smgc-overlay-depart { to { opacity: 0; } }

/* Players and scores read as one clear line, without boxes inside more boxes. */
:root { --radius-pill: 999px; --radius-sm: 16px; }
.top-players-dock { height: auto; min-height: 64px; padding: 4px 0; gap: 10px; background: transparent; border: 0; box-shadow: none; scrollbar-width: thin; }
.player-dock-pill { display: grid; grid-template-columns: 42px minmax(0, auto) auto; grid-template-rows: auto auto; column-gap: 9px; row-gap: 0; min-height: 58px; padding: 8px 14px 8px 8px; border: 1px solid transparent; border-radius: 999px; background: transparent; box-shadow: none; transform: none; }
.player-dock-pill.is-active-drawer { background: #e7eddf; border-color: #c4d0b7; box-shadow: none; transform: none; }
.dock-avatar-dot { grid-column: 1; grid-row: 1 / span 2; width: 42px; height: 42px; border-radius: 50%; }
.dock-name-group { grid-column: 2; grid-row: 1 / span 2; min-width: 0; gap: 5px; }
.is-active-drawer .dock-name-group { grid-row: 1; align-self: end; }
.dock-player-name { font: 750 .86rem var(--font-game); color: #62536a; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.dock-you-badge { padding: 0; color: #94869a; background: transparent; font-size: .68rem; }
.dock-score-badge { grid-column: 3; grid-row: 1 / span 2; padding: 0 0 0 8px; display: inline-flex; align-items: center; gap: 4px; color: #a18a68; background: transparent; border: 0; font: 700 .78rem var(--font-game); }
.dock-score-badge svg { width: 13px; height: 13px; }
.tactical-drawer-status { grid-column: 2; grid-row: 2; padding: 0; gap: 5px; border: 0; background: transparent; color: #6b805d; box-shadow: none; }
.tactical-status-text { font: 750 .58rem var(--font-game); letter-spacing: .09em; }
.tactical-live-dot { background: #839b71; animation: none; }
.arena-top-bar { height: auto; min-height: 48px; gap: 16px; }
.arena-status-capsule { flex: 1; flex-wrap: wrap; padding: 0; gap: 5px 14px; border: 0; background: transparent; }
.arena-turn-indicator { color: #62516e; font-size: .88rem; white-space: normal; }
.mission-prompt-pill { padding: 0; border: 0; background: transparent; }
.prompt-tag { color: #96836c; font-size: .8rem; line-height: 1.4; }
.arena-timer-pill { min-height: 42px; padding: 8px 14px; font-size: 1rem; }
.arena-timer-pill .titan-timer-digit { font-family: var(--font-game); font-style: normal; font-size: 1.2rem; }
.arena-round-badge { padding: 0; border: 0; background: transparent; color: #93829c; }
.canvas-overlay-banner { border-radius: 999px; }
.scoreboard-container { flex: none; padding: 18px 0 0; gap: 10px; border: 0; border-top: 1px solid #e9dfd0; border-radius: 0; background: transparent; overflow: visible; }
.scoreboard-header { padding: 0 12px 8px; color: #806b8b; background: transparent; border: 0; font: 750 .78rem var(--font-game); letter-spacing: .08em; }
.scoreboard-rows-list { gap: 4px; padding: 0; overflow: visible; }
.score-row, .score-row-first { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; min-height: 66px; padding: 12px 14px; border: 0; border-radius: 22px; background: transparent; box-shadow: none; }
.score-row.is-me-row { background: #f0e9f4; border: 0; }
.score-player { display: grid; grid-template-columns: 34px 42px minmax(0, 1fr); align-items: center; gap: 12px; min-width: 0; }
.score-name-group { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 7px; min-width: 0; }
.player-avatar-circle { width: 42px !important; height: 42px !important; border-radius: 50%; }
.player-score-name { color: #6c567a; font: 750 .94rem var(--font-game); overflow-wrap: anywhere; }
.you-badge { background: transparent; border: 0; color: #99889f; font-size: .72rem; padding: 0; }
.rank-badge { width: 34px; height: 34px; min-width: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #aa9378; font: 750 .8rem var(--font-game); }
.rank-gold { background: #f3e7ce; color: #a17c3d; }
.score-points { display: flex; flex-direction: column-reverse; align-items: flex-end; justify-content: center; gap: 3px; }
.player-total-stars { color: #9c8055; font: 800 1.05rem var(--font-game); gap: 5px; }
.player-total-stars svg { width: 16px; height: 16px; }
.points-gained-badge, .points-gained-badge.has-gained { padding: 0; border: 0; background: transparent; color: #a79b9d; font: 650 .72rem var(--font-game); }
.points-gained-badge.has-gained { color: #789464; }

/* Each ballot lands beside its recipient, with one clear total at the edge. */
.vote-reveal-card { width: min(100%, 820px); max-width: 820px; margin: auto; padding: 28px; gap: 16px; }
.vote-reveal-card .entry-title { color: #65536f; font-size: clamp(1.5rem, 3vw, 2rem); }
.vote-reveal-description { margin: 0; color: #8f8192; font-size: .94rem; line-height: 1.5; }
.vote-reveal-list { display: grid; gap: 4px; width: 100%; }
.vote-reveal-row { display: grid; grid-template-columns: minmax(130px, .9fr) minmax(0, 1.6fr) 48px; align-items: center; gap: 14px; min-height: 72px; padding: 12px 8px; border-bottom: 1px solid #eee5da; }
.vote-reveal-row:last-child { border-bottom: 0; }
.vote-reveal-player { display: flex; align-items: center; gap: 10px; min-width: 0; color: #65536f; font-weight: 750; }
.vote-reveal-player > span:last-child { overflow-wrap: anywhere; }
.vote-reveal-avatar { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; background: #eee5f2; font-size: 1.4rem; }
.vote-reveal-avatar svg, .vote-reveal-token svg { width: 100%; height: 100%; }
.vote-reveal-tokens { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.vote-reveal-token { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; }
.vote-reveal-token.is-avatar { background: #f5efe5; box-shadow: 0 0 0 1px #e5dacd; }
.vote-reveal-token.is-anonymous::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: #93829e; }
.vote-reveal-tally { display: flex; flex-direction: column; align-items: center; color: #877092; }
.vote-reveal-tally strong { font-size: 1.6rem; line-height: 1.1; }
.vote-reveal-tally span { font-size: .72rem; color: #9a8b98; }
.vote-reveal-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: 0; color: #9a8b98; font-size: .8rem; }
@media (max-width: 600px) {
  .vote-reveal-card { padding: 20px; }
  .vote-reveal-row { grid-template-columns: minmax(0, 1fr) 48px; gap: 8px; }
  .vote-reveal-tally { grid-column: 2; grid-row: 1; }
  .vote-reveal-tokens { grid-column: 1 / -1; padding-left: 52px; }
  .vote-reveal-tokens:empty { display: none; }
}
@media (max-width: 760px) {
  .arena-status-capsule { padding: 0; gap: 3px; }
  .arena-turn-indicator { font-size: .76rem; }
  .prompt-tag { font-size: .72rem; }
  .top-players-dock { min-height: 60px; }
  .player-dock-pill { padding: 6px 10px 6px 6px; grid-template-columns: 36px minmax(0, auto) auto; gap: 0 7px; }
  .dock-avatar-dot { width: 36px; height: 36px; }
  .dock-player-name { font-size: .78rem; max-width: 110px; }
  .score-row { padding: 10px 8px; gap: 8px; }
  .score-player { grid-template-columns: 26px 36px minmax(0, 1fr); gap: 7px; }
  .rank-badge { width: 26px; height: 26px; font-size: .7rem; }
  .player-avatar-circle { width: 36px !important; height: 36px !important; }
  .player-score-name { font-size: .8rem; }
}

/* A pocket atlas for the GeoGuesser shelf card. */
.hub-game-card + .hub-game-card { margin-top: 22px; }
.geo-hub-card .geo-hub-art {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  border-color: #9db6a1;
  background: radial-gradient(circle at 70% 20%, #dce6cd 0, #b7cdb4 70%);
}
.geo-hub-art::before, .geo-hub-art::after { display: none; }
.geo-hub-art > svg { display: block; width: 100%; max-width: 350px; height: 210px; transition: transform .3s ease; }
.geo-hub-card:hover .geo-hub-art > svg { transform: translateY(-3px) rotate(-2deg); }
.geo-hub-art-note { position: relative; margin: -13px 0 15px; color: #3c6653; font: italic 14px Georgia, serif; }
.geo-hub-card .hub-game-kicker { color: #527b63; }
.geo-hub-card .hub-game-tags i { color: #52715b; background: #e8eedb; border-color: #ccd7be; }
.geo-hub-card .hub-game-launch { color: #fff7e7; background: #456752; border-color: #385842; box-shadow: 0 3px 0 #304d3c; }
.geo-hub-card:hover .hub-game-launch { background: #36543f; }
@media (max-width: 720px) {
  .geo-hub-art > svg { height: 166px; }
  .geo-hub-art-note { margin: -9px 0 12px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .geo-hub-card:hover .geo-hub-art > svg { transform: none; }
}
