/*
 * Mellow Creator Studio 4
 * A single, late-loading studio presentation layer. It replaces the historical
 * stack of page-specific colour patches with semantic surfaces and predictable
 * component geometry. Game logic remains in studio-live.js.
 */

html[data-site-theme] .studio-body{
  --st-page:var(--v4-page,var(--site-bg,#06131d));
  --st-surface:var(--v4-surface,var(--site-surface,#0a202d));
  --st-surface-2:var(--v4-surface-2,var(--site-surface-2,#102c3a));
  --st-surface-3:color-mix(in srgb,var(--st-surface-2) 74%,var(--st-surface));
  --st-text:var(--v4-text,var(--text,#f6fbfd));
  --st-muted:var(--v4-muted,var(--muted,#91aebd));
  --st-accent:var(--ui-accent,#5bd7ff);
  --st-accent-rgb:var(--ui-accent-rgb,91,215,255);
  --st-line:var(--ui-line,rgba(91,215,255,.18));
  --st-line-strong:var(--ui-line-strong,rgba(91,215,255,.4));
  --st-gold:var(--ui-gold,#efb735);
  --st-positive:#46d9a0;
  --st-danger:#ff7184;
  --st-shadow:0 22px 65px rgba(0,0,0,.2);
  --st-radius:22px;
  background:
    radial-gradient(circle at 12% -12%,rgba(var(--st-accent-rgb),.14),transparent 31%),
    linear-gradient(180deg,color-mix(in srgb,var(--st-page) 94%,#000),var(--st-page))!important;
  color:var(--st-text)!important;
}

html[data-theme-mode=light] .studio-body{--st-shadow:0 20px 55px rgba(31,61,77,.12)}
html[data-site-theme] .studio-body :where(button,input,select,textarea){font-family:inherit}
html[data-site-theme] .studio-body :where(button,a){-webkit-tap-highlight-color:transparent}
html[data-site-theme] .studio-body .skip:not(:focus){top:0!important;transform:translateY(-160%)!important}
html[data-site-theme] .studio-body .skip:focus{top:12px!important;transform:none!important}

/* Shell */
html[data-site-theme] .studio-shell{width:min(1680px,calc(100% - 36px))!important;padding:18px 0 34px!important}
html[data-site-theme] .studio-header{
  min-height:64px!important;margin:0 0 14px!important;padding:10px 16px!important;
  border:1px solid var(--st-line)!important;border-radius:18px!important;
  background:color-mix(in srgb,var(--st-surface) 90%,transparent)!important;
  box-shadow:0 12px 38px rgba(0,0,0,.12)!important;backdrop-filter:blur(22px)!important
}
html[data-site-theme] .studio-brand{gap:10px!important;color:var(--st-text)!important}
html[data-site-theme] .studio-brand img{width:42px!important;height:42px!important;border-radius:13px!important;box-shadow:0 8px 20px rgba(0,0,0,.22)}
html[data-site-theme] .studio-brand span{font-size:.94rem!important;letter-spacing:-.02em}
html[data-site-theme] .studio-user{color:var(--st-muted)!important}
html[data-site-theme] .studio-main{padding:0!important}

html[data-site-theme] .live-first.studio-layout{grid-template-columns:82px minmax(0,1fr)!important;grid-template-areas:"side work"!important;gap:14px!important;align-items:start!important}
html[data-site-theme] .live-first .studio-work{grid-area:work!important;display:grid!important;gap:12px!important;min-width:0!important}
html[data-site-theme] .live-first .studio-side{
  grid-area:side!important;position:sticky!important;top:14px!important;width:82px!important;min-width:82px!important;
  max-height:calc(100dvh - 28px)!important;padding:9px!important;overflow:auto!important;scrollbar-width:none;
  border:1px solid var(--st-line)!important;border-radius:21px!important;background:color-mix(in srgb,var(--st-surface) 94%,transparent)!important;
  box-shadow:var(--st-shadow)!important;backdrop-filter:blur(22px)!important
}
html[data-site-theme] .live-first .studio-side::-webkit-scrollbar{display:none}
html[data-site-theme] .live-first .studio-identity{display:grid!important;justify-items:center!important;padding:1px 0 8px!important;border:0!important}
html[data-site-theme] .live-first .studio-identity img{width:46px!important;height:46px!important;border-radius:14px!important}
html[data-site-theme] .live-first .studio-identity div{display:none!important}
html[data-site-theme] .live-first .live-side-status{display:grid!important;place-items:center!important;width:46px!important;height:42px!important;margin:0 auto 8px!important;padding:0!important;border-radius:13px!important;background:var(--st-surface-2)!important}
html[data-site-theme] .live-first .live-side-status>div{display:none!important}
html[data-site-theme] .live-first .studio-side nav{display:grid!important;gap:5px!important;padding:0!important}
html[data-site-theme] .live-first .studio-side nav button,
html[data-site-theme] .live-first .studio-settings-link{
  display:grid!important;place-items:center!important;width:100%!important;min-height:47px!important;padding:0!important;
  border:1px solid transparent!important;border-radius:13px!important;background:transparent!important;color:var(--st-muted)!important;
  box-shadow:none!important;font-size:0!important;transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease!important
}
html[data-site-theme] .live-first .studio-side nav button>span,
html[data-site-theme] .live-first .studio-settings-link>span{font-size:1.05rem!important}
html[data-site-theme] .live-first .studio-side nav button:hover,
html[data-site-theme] .live-first .studio-settings-link:hover{border-color:var(--st-line)!important;background:color-mix(in srgb,var(--st-accent) 8%,var(--st-surface))!important;color:var(--st-text)!important;transform:translateY(-1px)}
html[data-site-theme] .live-first .studio-side nav button.active{
  border-color:color-mix(in srgb,var(--st-accent) 58%,transparent)!important;
  background:linear-gradient(145deg,color-mix(in srgb,var(--st-accent) 18%,var(--st-surface)),color-mix(in srgb,var(--st-accent) 7%,var(--st-surface)))!important;
  color:var(--st-accent)!important;box-shadow:inset 0 1px rgba(255,255,255,.08),0 9px 24px rgba(0,0,0,.16)!important
}
html[data-site-theme] .live-first .studio-settings-link{margin-top:7px!important}
html[data-site-theme] .live-first .studio-settings-link b{display:none!important}

/* Global studio surfaces */
html[data-site-theme] .studio-toolbar,
html[data-site-theme] .studio-server-context,
html[data-site-theme] .studio-section,
html[data-site-theme] .live-command{
  margin:0!important;border:1px solid var(--st-line)!important;border-radius:var(--st-radius)!important;
  background:var(--st-surface)!important;color:var(--st-text)!important;box-shadow:0 18px 52px rgba(0,0,0,.14)!important;overflow:hidden!important
}
html[data-site-theme] .studio-toolbar{
  position:relative!important;display:flex!important;align-items:center!important;min-height:82px!important;padding:15px 20px!important;
  background:radial-gradient(circle at 92% 0,rgba(var(--st-accent-rgb),.16),transparent 40%),var(--st-surface)!important
}
html[data-site-theme] .studio-toolbar h1{margin:3px 0 0!important;font-size:clamp(1.35rem,2.1vw,1.95rem)!important;letter-spacing:-.035em}
html[data-site-theme] .studio-toolbar>div>span{color:var(--st-accent)!important;font-size:.68rem!important;letter-spacing:.14em!important}
html[data-site-theme] .studio-server-context{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;min-height:76px!important;padding:13px 17px!important}
html[data-site-theme] .studio-server-context select{min-width:310px!important;min-height:44px!important;background:var(--st-surface-2)!important}
html[data-site-theme] .studio-section>header,
html[data-site-theme] .game-control-room>header{
  position:relative!important;inset:auto!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;
  margin:0!important;padding:20px 22px!important;border:0!important;border-bottom:1px solid var(--st-line)!important;
  background:linear-gradient(90deg,rgba(var(--st-accent-rgb),.075),transparent 60%)!important
}
html[data-site-theme] .studio-section>header h2,
html[data-site-theme] .game-control-room>header h2{margin:4px 0!important;color:var(--st-text)!important;font-size:clamp(1.28rem,2vw,1.85rem)!important;letter-spacing:-.025em}
html[data-site-theme] .studio-section>header p,
html[data-site-theme] .game-control-room>header p{max-width:760px!important;margin:3px 0 0!important;color:var(--st-muted)!important;line-height:1.7!important}
html[data-site-theme] .studio-section>header span,
html[data-site-theme] .game-control-room>header span{color:var(--st-accent)!important;font-size:.66rem!important;font-weight:900!important;letter-spacing:.1em}
html[data-site-theme] .studio-body :where(.studio-primary,.game-launch){min-height:46px!important;border:1px solid color-mix(in srgb,var(--st-accent) 62%,transparent)!important;border-radius:13px!important;background:var(--st-accent)!important;color:color-mix(in srgb,var(--st-page) 92%,#000)!important;box-shadow:0 12px 28px rgba(var(--st-accent-rgb),.2)!important;font-weight:900!important;cursor:pointer}
html[data-site-theme] .studio-body :where(.studio-ghost,.game-actions button:not(.studio-primary),.wheel-form-actions button:not(.studio-primary),.host-control-actions button,.overlay-actions button,.overlay-actions a){min-height:44px!important;border:1px solid var(--st-line-strong)!important;border-radius:12px!important;background:var(--st-surface-2)!important;color:var(--st-text)!important;box-shadow:none!important;font-weight:800!important;cursor:pointer}

/* Game catalogue */
html[data-site-theme] .studio-catalogue-v4{padding:0!important;background:var(--st-surface)!important}
html[data-site-theme] .studio-catalogue-v4>.game-hub-head{display:flex!important;grid-template-columns:none!important;min-height:0!important;padding:24px clamp(20px,2.3vw,34px)!important;background:linear-gradient(90deg,rgba(var(--st-accent-rgb),.075),transparent 60%)!important}
html[data-site-theme] .studio-catalogue-v4>.game-hub-head::after{content:none!important;display:none!important}
html[data-site-theme] .studio-catalogue-v4>.game-hub-head>div{grid-column:auto!important;grid-row:auto!important}
html[data-site-theme] .game-hub-head>div:first-child{max-width:780px}
html[data-site-theme] .game-hub-stats{display:grid;grid-template-columns:repeat(2,minmax(106px,1fr));gap:8px;flex:0 0 auto}
html[data-site-theme] .game-hub-stats article{display:grid;gap:2px;min-width:112px;padding:12px 14px;border:1px solid var(--st-line)!important;border-radius:15px;background:color-mix(in srgb,var(--st-surface-2) 84%,transparent)!important;text-align:center}
html[data-site-theme] .game-hub-stats b{color:var(--st-text)!important;font-size:1.15rem}
html[data-site-theme] .game-hub-stats small{color:var(--st-muted)!important;font-size:.64rem}
html[data-site-theme] .studio-catalogue-v4 .live-game-workspace{display:grid!important;grid-template-columns:minmax(0,1.48fr) minmax(330px,.52fr)!important;gap:14px!important;align-items:start!important;padding:14px!important}
html[data-site-theme] .studio-catalogue-v4 .game-browser{padding:0!important;border:1px solid var(--st-line)!important;border-radius:19px!important;background:color-mix(in srgb,var(--st-surface-2) 44%,var(--st-surface))!important;box-shadow:none!important;overflow:hidden!important}
html[data-site-theme] .game-browser-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 17px;border-bottom:1px solid var(--st-line);background:color-mix(in srgb,var(--st-surface-2) 58%,var(--st-surface))}
html[data-site-theme] .game-browser-head div{display:grid;gap:2px}
html[data-site-theme] .game-browser-head span{color:var(--st-accent);font-size:.62rem;font-weight:900;letter-spacing:.12em}
html[data-site-theme] .game-browser-head b{color:var(--st-text);font-size:.86rem}
html[data-site-theme] .game-browser-head small{color:var(--st-muted);font-size:.67rem}
html[data-site-theme] .game-tile-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;padding:12px!important}
html[data-site-theme] .game-tile-grid .game-tile{
  --game-color:#61d6ff;position:relative!important;isolation:isolate!important;display:grid!important;grid-template-rows:auto 112px auto!important;gap:10px!important;
  min-height:238px!important;padding:13px!important;overflow:hidden!important;border:1px solid var(--st-line)!important;border-radius:18px!important;
  background:linear-gradient(155deg,color-mix(in srgb,var(--st-surface-2) 70%,var(--st-surface)),var(--st-surface))!important;
  color:var(--st-text)!important;text-align:start!important;box-shadow:none!important;cursor:pointer!important;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease!important
}
html[data-site-theme] .game-tile-grid .game-tile:before{content:'';position:absolute;z-index:-1;inset:-55% 42% 52% -28%;border-radius:50%;background:color-mix(in srgb,var(--game-color) 16%,transparent);filter:blur(8px);pointer-events:none}
html[data-site-theme] .game-tile-grid .game-tile:hover{z-index:2;border-color:color-mix(in srgb,var(--game-color) 62%,var(--st-line))!important;transform:translateY(-4px)!important;box-shadow:0 18px 36px rgba(0,0,0,.2)!important}
html[data-site-theme] .game-tile-grid .game-tile.selected{border-color:var(--game-color)!important;background:linear-gradient(150deg,color-mix(in srgb,var(--game-color) 11%,var(--st-surface-2)),var(--st-surface))!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--game-color) 18%,transparent),0 18px 36px rgba(0,0,0,.17)!important}
html[data-site-theme] .game-tile-grid .game-tile.selected:after{content:'✓';position:absolute;top:10px;inset-inline-start:10px;display:grid;place-items:center;width:26px;height:26px;border-radius:9px;background:var(--game-color);color:#06131d;font:900 .78rem Arial}
html[data-site-theme] .game-tile-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px}
html[data-site-theme] .game-tile-meta em{padding:4px 8px;border-radius:999px;background:color-mix(in srgb,var(--game-color) 13%,var(--st-surface));color:var(--game-color);font-size:.61rem;font-style:normal;font-weight:900}
html[data-site-theme] .game-tile-meta i{color:var(--st-muted);font-size:.6rem;font-style:normal}
html[data-site-theme] .game-tile-copy{display:grid;gap:3px;padding-inline-end:25px}
html[data-site-theme] .game-tile-copy strong{color:var(--st-text)!important;font-size:.84rem!important;line-height:1.4}
html[data-site-theme] .game-tile-copy small{display:-webkit-box;overflow:hidden;color:var(--st-muted)!important;font-size:.65rem;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:2}
html[data-site-theme] .game-tile-arrow{position:absolute;inset-inline-end:14px;bottom:13px;color:var(--game-color);font-size:.82rem;opacity:.75}

/* CSS-built game art. No bitmap mockups, fixed geometry, scales cleanly. */
html[data-site-theme] .game-art{--game-color:#61d6ff;position:relative;display:grid!important;place-items:center;width:100%;height:112px!important;min-height:0!important;overflow:hidden;border:1px solid color-mix(in srgb,var(--game-color) 22%,var(--st-line))!important;border-radius:15px!important;background:radial-gradient(circle at 52% 0,color-mix(in srgb,var(--game-color) 17%,transparent),transparent 52%),linear-gradient(160deg,color-mix(in srgb,var(--st-surface-2) 72%,#000),color-mix(in srgb,var(--st-surface) 88%,#000))!important;box-shadow:inset 0 1px rgba(255,255,255,.06),inset 0 -24px 35px rgba(0,0,0,.12)!important;perspective:900px}
html[data-site-theme] .game-art-large{height:228px!important;border-radius:18px!important}
html[data-site-theme] .game-art-index{position:absolute;top:8px;inset-inline-end:9px;color:color-mix(in srgb,var(--game-color) 72%,var(--st-text));font:800 .55rem/1 Arial;letter-spacing:.11em;opacity:.74}
html[data-site-theme] .game-art-scene{position:relative;display:grid;place-items:center;width:82%;height:74%;transform:rotateX(5deg);transform-style:preserve-3d}
html[data-site-theme] .game-art-large .game-art-scene{width:74%;height:72%;transform:scale(1.26) rotateX(4deg)}
html[data-site-theme] .tone-cyan{--game-color:#50d8ee}.tone-violet{--game-color:#a88cff}.tone-blue{--game-color:#5fa8ff}.tone-emerald{--game-color:#48d6a2}.tone-rose{--game-color:#ff7791}.tone-amber{--game-color:#f4b943}.tone-indigo{--game-color:#8294ff}.tone-purple{--game-color:#bd75ef}.tone-teal{--game-color:#45c7c0}.tone-orange{--game-color:#ff9966}.tone-yellow{--game-color:#e9cd58}.tone-green{--game-color:#6ccf78}.tone-sky{--game-color:#69c9f0}.tone-pink{--game-color:#ef86be}
html[data-site-theme] .art-key-row{display:flex;gap:5px;direction:rtl}
html[data-site-theme] .art-key-row i,html[data-site-theme] .art-options i{display:grid;place-items:center;width:32px;height:34px;border:1px solid color-mix(in srgb,var(--game-color) 35%,var(--st-line));border-radius:9px;background:linear-gradient(145deg,color-mix(in srgb,var(--game-color) 17%,var(--st-surface-2)),var(--st-surface));color:var(--st-text);box-shadow:0 6px 0 color-mix(in srgb,var(--game-color) 18%,#041019);font-style:normal;font-weight:900}
html[data-site-theme] .game-art-large .art-key-row i,html[data-site-theme] .game-art-large .art-options i{width:38px;height:40px}
html[data-site-theme] .art-caret{position:absolute;bottom:6px;width:58%;height:2px;border-radius:9px;background:linear-gradient(90deg,transparent,var(--game-color),transparent)}
html[data-site-theme] .art-gallows{position:relative;width:78px;height:48px;border-inline-start:3px solid var(--game-color);border-top:3px solid var(--game-color)}
html[data-site-theme] .art-gallows:after{content:'';position:absolute;top:0;inset-inline-start:10px;width:2px;height:20px;background:var(--game-color)}
html[data-site-theme] .art-gallows i{position:absolute;top:18px;inset-inline-start:2px;width:18px;height:18px;border:2px solid var(--game-color);border-radius:50%}
html[data-site-theme] .art-gallows b{position:absolute;top:37px;inset-inline-start:9px;width:2px;height:18px;background:var(--game-color)}
html[data-site-theme] .art-slots{position:absolute;bottom:0;display:flex;gap:5px}.art-slots i{width:15px;height:2px;border-radius:2px;background:color-mix(in srgb,var(--game-color) 68%,var(--st-text))}
html[data-site-theme] .art-question{color:var(--game-color);font-size:2.4rem;line-height:1;text-shadow:0 9px 24px color-mix(in srgb,var(--game-color) 34%,transparent)}
html[data-site-theme] .art-options{position:absolute;bottom:2px;display:flex;gap:6px}.art-options i{width:27px;height:28px;font-size:.7rem}
html[data-site-theme] .art-chain{display:flex;align-items:center;gap:5px;direction:rtl}.art-chain i{padding:7px 9px;border:1px solid var(--st-line);border-radius:9px;background:var(--st-surface);color:var(--st-text);font-size:.61rem;font-style:normal}.art-chain b{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:var(--game-color);color:#07131c;font-size:.7rem}
html[data-site-theme] .art-verdict{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}.art-verdict i{display:grid;place-items:center;height:48px;border-radius:12px;background:color-mix(in srgb,var(--game-color) 14%,var(--st-surface));color:var(--game-color);box-shadow:0 8px 22px rgba(0,0,0,.16);font-size:.7rem;font-style:normal;font-weight:900}.art-verdict i:last-child{--game-color:#ff7184}
html[data-site-theme] .art-bolt{display:grid;place-items:center;width:58px;height:58px;border:1px solid color-mix(in srgb,var(--game-color) 42%,transparent);border-radius:50%;background:var(--st-surface);color:var(--game-color);font:900 1.35rem Arial;box-shadow:0 0 0 7px color-mix(in srgb,var(--game-color) 9%,transparent),0 12px 28px rgba(0,0,0,.22)}
html[data-site-theme] .art-timer{position:absolute;bottom:4px;width:62%;height:3px;border-radius:99px;background:linear-gradient(90deg,var(--game-color) 66%,var(--st-line) 66%)}
html[data-site-theme] .art-symbols{display:flex;align-items:center;gap:8px;color:var(--game-color);font-size:1.65rem}.art-symbols i{font-style:normal}.art-symbols b{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:var(--game-color);color:#07131c;font-size:.85rem}
html[data-site-theme] .art-shuffle i:nth-child(1){transform:translateY(7px) rotate(4deg)}.art-shuffle i:nth-child(2){transform:translateY(-4px) rotate(-3deg)}.art-shuffle i:nth-child(3){transform:translateY(4px) rotate(3deg)}.art-shuffle i:nth-child(4){transform:translateY(-6px) rotate(-4deg)}
html[data-site-theme] .art-category{display:flex;align-items:center;gap:10px}.art-category>strong{display:grid;place-items:center;width:50px;height:50px;border-radius:14px;background:var(--game-color);color:#07131c;font-size:1.4rem;box-shadow:0 12px 25px color-mix(in srgb,var(--game-color) 22%,transparent)}.art-category span{display:grid;gap:5px}.art-category i{padding:5px 10px;border:1px solid var(--st-line);border-radius:8px;background:var(--st-surface);color:var(--st-text);font-size:.59rem;font-style:normal}
html[data-site-theme] .art-podium{display:flex;align-items:end;gap:5px}.art-podium i{display:grid;place-items:center;width:32px;height:40px;border-radius:8px 8px 4px 4px;background:color-mix(in srgb,var(--game-color) 15%,var(--st-surface-2));color:var(--game-color);font-style:normal;font-weight:900}.art-podium i:nth-child(2){height:58px;background:var(--game-color);color:#07131c}.art-podium i:nth-child(3){height:31px}
html[data-site-theme] .art-monogram{position:relative;z-index:2;color:var(--game-color);font-size:1.3rem;text-shadow:0 10px 28px color-mix(in srgb,var(--game-color) 38%,transparent)}
html[data-site-theme] .art-orbit{position:absolute;width:72px;height:72px;border:1px solid color-mix(in srgb,var(--game-color) 38%,transparent);border-radius:50%;transform:rotateX(65deg)}
html[data-site-theme] .art-phrase{position:absolute;bottom:6px;display:flex;gap:4px}.art-phrase i{width:22px;height:3px;border-radius:5px;background:color-mix(in srgb,var(--game-color) 54%,var(--st-line))}
html[data-site-theme] .art-scan{position:absolute;width:78px;height:52px;border:1px solid color-mix(in srgb,var(--game-color) 38%,transparent);border-radius:14px}.art-scan:after{content:'';position:absolute;inset-inline:8px;top:50%;height:1px;background:var(--game-color);box-shadow:0 0 12px var(--game-color)}
html[data-site-theme] .art-odd i:nth-child(2){transform:translateY(-8px);border-color:var(--game-color);color:var(--game-color)}

/* Builder */
html[data-site-theme] .studio-catalogue-v4 .game-builder{position:sticky!important;top:14px!important;display:grid!important;gap:11px!important;padding:15px!important;border:1px solid var(--st-line)!important;border-radius:19px!important;background:color-mix(in srgb,var(--st-surface-2) 55%,var(--st-surface))!important;box-shadow:none!important}
html[data-site-theme] .game-builder-label{display:grid;grid-template-columns:auto 1fr;gap:1px 8px;align-items:center;padding:1px 2px 4px}
html[data-site-theme] .builder-live-dot{grid-row:1/3;width:9px;height:9px;border-radius:50%;background:var(--st-positive);box-shadow:0 0 0 5px color-mix(in srgb,var(--st-positive) 14%,transparent)}
html[data-site-theme] .game-builder-label b{font-size:.78rem}.game-builder-label small{color:var(--st-muted);font-size:.61rem}
html[data-site-theme] .studio-catalogue-v4 .game-preview{display:grid!important;gap:10px!important;padding:0 0 13px!important;border:0!important;border-bottom:1px solid var(--st-line)!important;text-align:start!important}
html[data-site-theme] .game-preview-copy{display:grid;gap:2px}.game-preview-copy>span{color:var(--st-accent)!important;font-size:.6rem!important;font-weight:900!important;letter-spacing:.08em}.game-preview-copy h3{margin:0!important;color:var(--st-text)!important;font-size:1.32rem!important}.game-preview-copy p{margin:0!important;color:var(--st-muted)!important;font-size:.69rem!important;line-height:1.6!important}
html[data-site-theme] .automatic-bank-card{display:grid!important;grid-template-columns:auto 1fr!important;gap:10px!important;padding:12px!important;border:1px solid var(--st-line)!important;border-radius:14px!important;background:var(--st-surface)!important}
html[data-site-theme] .bank-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:color-mix(in srgb,var(--st-accent) 12%,var(--st-surface-2));color:var(--st-accent);font:900 1.15rem Arial}
html[data-site-theme] .automatic-bank-card b{color:var(--st-text)!important;font-size:.72rem}.automatic-bank-card p{margin:3px 0 0!important;color:var(--st-muted)!important;font-size:.62rem!important;line-height:1.55!important}
html[data-site-theme] .round-setup-fields{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
html[data-site-theme] .round-setup-fields label{display:grid!important;gap:6px!important;color:var(--st-muted)!important;font-size:.64rem!important;font-weight:800!important}
html[data-site-theme] .round-setup-fields :where(input,select){width:100%!important;min-height:43px!important;padding:8px 10px!important;border-color:var(--st-line-strong)!important;background:var(--st-surface)!important;color:var(--st-text)!important}
html[data-site-theme] .game-actions-full{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}
html[data-site-theme] .game-actions-full .game-launch{grid-column:1/-1!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:0 15px!important}
html[data-site-theme] .game-actions-full button{width:100%!important;margin:0!important;padding:8px 10px!important;font-size:.67rem!important}
html[data-site-theme] .game-setup-note{margin:0!important;padding:9px 10px!important;border-radius:11px!important;background:color-mix(in srgb,var(--st-positive) 7%,var(--st-surface))!important;color:var(--st-muted)!important;font-size:.62rem!important;line-height:1.55!important}.game-setup-note b{color:var(--st-positive)!important}

/* Other studio tools share the same hierarchy */
html[data-site-theme] .wheel-studio-grid{gap:14px!important;padding:14px!important}
html[data-site-theme] .wheel-showcase,html[data-site-theme] .wheel-controls{border:1px solid var(--st-line)!important;border-radius:19px!important;background:color-mix(in srgb,var(--st-surface-2) 44%,var(--st-surface))!important;box-shadow:none!important}
html[data-site-theme] .wheel-controls{padding:16px!important}
html[data-site-theme] .wheel-result,html[data-site-theme] .wheel-source-note,html[data-site-theme] .wheel-roster,html[data-site-theme] .keyword-callout,html[data-site-theme] .participant-grid,html[data-site-theme] .active-poll,html[data-site-theme] .poll-form,html[data-site-theme] .question-spotlight,html[data-site-theme] .question-queue{border-color:var(--st-line)!important;background:var(--st-surface)!important;color:var(--st-text)!important}
html[data-site-theme] .live-gate,html[data-site-theme] .interaction-idle{min-height:330px!important;color:var(--st-muted)!important}
html[data-site-theme] .live-comment-feed,html[data-site-theme] .join-workspace,html[data-site-theme] .participant-grid,html[data-site-theme] .question-layout{padding:16px!important}
html[data-site-theme] .live-comment-feed article,html[data-site-theme] .participant-grid article,html[data-site-theme] .question-queue button{border-color:var(--st-line)!important;background:var(--st-surface-2)!important;color:var(--st-text)!important}
html[data-site-theme] .overlay-control-grid{gap:12px!important;padding:14px!important}
html[data-site-theme] .overlay-link-card,html[data-site-theme] .overlay-current,html[data-site-theme] .overlay-settings,html[data-site-theme] .overlay-steps article{border-color:var(--st-line)!important;border-radius:18px!important;background:color-mix(in srgb,var(--st-surface-2) 54%,var(--st-surface))!important;color:var(--st-text)!important;box-shadow:none!important}
html[data-site-theme] .overlay-theme-choice>span,html[data-site-theme] .overlay-size-settings,html[data-site-theme] .celebration-audio-card{border-color:var(--st-line)!important;background:var(--st-surface)!important;color:var(--st-text)!important}
html[data-site-theme] .host-round-strip{gap:8px!important;padding:14px 16px 0!important}.host-round-strip article{border-color:var(--st-line)!important;border-radius:14px!important;background:var(--st-surface-2)!important;color:var(--st-text)!important}
html[data-site-theme] .host-game-grid{gap:12px!important;padding:12px 16px!important}.host-live-preview,.host-controls,.host-scoreboard{border-color:var(--st-line)!important;background:var(--st-surface)!important;color:var(--st-text)!important;box-shadow:none!important}

/* Every control surface mounted by studio-live.js follows the selected site
   palette.  Game art, the user-coloured wheel and the broadcast mini-preview
   stay independent because they are previews of the outgoing overlay. */
html[data-site-theme] .studio-body :where(
  .live-panel,.studio-boot-panel,.live-action-grid>*,.live-proof-grid>*,
  .keyword-form,.live-game-form,.game-fields,.random-round-content,
  .overlay-celebration-settings,.overlay-fields>label,.overlay-settings-head,
  .overlay-size-inputs>label,.overlay-size-presets,.overlay-toggles,
  .overlay-toggles>label,.celebration-preview-actions,.overlay-save-row,
  .room-center,.room-console,.room-create,.room-create-fields>label,
  .room-create-games>label>span,.room-share-grid>article,.room-code-card,
  .room-stage,.room-metrics,.room-moderation,.room-participants,
  .room-history,.studio-room-list>article,.room-manage-grid>*,
  .room-live-grid>*,.host-controls-title,.host-preview-head,
  .wheel-colors,.wheel-check,.wheel-controls-title,.wheel-page-head
){border-color:var(--st-line)!important;background:var(--st-surface)!important;color:var(--st-text)!important;box-shadow:none!important}
html[data-site-theme] .studio-body :where(
  .live-action-grid>*,.live-proof-grid>*,.room-create-games>label>span,
  .room-share-grid>article,.room-metrics>div>article,.room-participants article,
  .studio-room-list>article,.overlay-size-presets button,.overlay-toggles>label,
  .room-actions button:not(.studio-primary),.room-create-actions,
  .room-stage-head,.room-prompt,.room-result,.wheel-head-status
){border-color:var(--st-line)!important;background:var(--st-surface-2)!important;color:var(--st-text)!important}
html[data-site-theme] .studio-body :where(
  .live-action-grid p,.live-proof-grid small,.room-metrics small,
  .room-participants small,.studio-room-numbers,.overlay-settings-head p,
  .overlay-celebration-settings p,.celebration-preview-actions output
){color:var(--st-muted)!important}
html[data-site-theme] .studio-body :where(
  .overlay-size-inputs,.overlay-save-row,.celebration-preview-actions,
  .room-actions,.room-create-actions,.studio-hero-actions
){display:flex!important;flex-wrap:wrap!important;gap:8px!important}

/* Responsive behavior */
@media (max-width:1280px){
 html[data-site-theme] .studio-catalogue-v4 .live-game-workspace{grid-template-columns:minmax(0,1fr) 320px!important}
 html[data-site-theme] .game-tile-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width:980px){
 html[data-site-theme] .live-first.studio-layout{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"work"!important}
 html[data-site-theme] .live-first .studio-side{grid-area:auto!important;position:fixed!important;z-index:90!important;inset-block:10px!important;inset-inline-start:10px!important;top:auto!important;width:min(278px,calc(100vw - 20px))!important;min-width:0!important;max-height:calc(100dvh - 20px)!important;padding:12px!important;transform:translateX(120%)!important;transition:transform .2s ease!important}
 html[dir=rtl][data-site-theme] .live-first .studio-side{transform:translateX(-120%)!important}
 html[data-site-theme] .live-first .studio-side.open{transform:translateX(0)!important}
 html[data-site-theme] .live-first .studio-identity{display:flex!important;justify-content:flex-start!important;gap:10px!important}
 html[data-site-theme] .live-first .studio-identity div,html[data-site-theme] .live-first .live-side-status>div{display:block!important}
 html[data-site-theme] .live-first .live-side-status{display:flex!important;justify-content:flex-start!important;width:auto!important;height:auto!important;padding:10px!important}
 html[data-site-theme] .live-first .studio-side nav button,html[data-site-theme] .live-first .studio-settings-link{display:flex!important;justify-content:flex-start!important;gap:9px!important;padding:9px 11px!important;font-size:.75rem!important}
 html[data-site-theme] .live-first .studio-settings-link b{display:block!important}
 html[data-site-theme] .studio-menu{display:grid!important}
 html[data-site-theme] .studio-catalogue-v4 .live-game-workspace{grid-template-columns:1fr!important}
 html[data-site-theme] .studio-catalogue-v4 .game-builder{position:static!important}
}
@media (max-width:700px){
 html[data-site-theme] .studio-shell{width:min(100% - 16px,1680px)!important;padding-top:8px!important}
 html[data-site-theme] .studio-header{min-height:58px!important;padding:8px 11px!important}.studio-brand span{font-size:.8rem!important}
 html[data-site-theme] .studio-server-context{align-items:stretch!important;flex-direction:column!important}.studio-server-context select{min-width:0!important;width:100%!important}
 html[data-site-theme] .game-hub-head{align-items:flex-start!important;flex-direction:column!important}.game-hub-stats{width:100%!important}.game-hub-stats article{min-width:0!important}
 html[data-site-theme] .studio-catalogue-v4 .live-game-workspace{padding:8px!important}
 html[data-site-theme] .game-tile-grid{grid-template-columns:1fr 1fr!important;gap:7px!important;padding:8px!important}
 html[data-site-theme] .game-tile-grid .game-tile{grid-template-rows:auto 92px auto!important;min-height:214px!important;padding:10px!important;border-radius:15px!important}
 html[data-site-theme] .game-art{height:92px!important}.game-tile-copy strong{font-size:.76rem!important}.game-tile-copy small{font-size:.6rem!important}
 html[data-site-theme] .game-actions-full,html[data-site-theme] .round-setup-fields{grid-template-columns:1fr!important}.game-actions-full .game-launch{grid-column:auto!important}
}
@media (max-width:430px){
 html[data-site-theme] .game-tile-grid{grid-template-columns:1fr!important}
 html[data-site-theme] .game-tile-grid .game-tile{grid-template-columns:104px minmax(0,1fr)!important;grid-template-rows:auto auto!important;min-height:140px!important;align-items:center!important}
 html[data-site-theme] .game-tile-meta{grid-column:1/-1!important}.game-art{grid-column:1!important;grid-row:2!important;height:90px!important}.game-tile-copy{grid-column:2!important;grid-row:2!important;padding:0!important}.game-tile-arrow{display:none!important}
}
@media (prefers-reduced-motion:reduce){html[data-site-theme] .studio-body *,html[data-site-theme] .studio-body *:before,html[data-site-theme] .studio-body *:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}

/* Multi-platform streamer accounts */
html[data-site-theme] .stream-accounts-page{display:grid!important;gap:18px!important}
html[data-site-theme] .stream-accounts-page>header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;padding-bottom:18px!important;border-bottom:1px solid var(--site-line)!important}
html[data-site-theme] .stream-accounts-page>header h2,html[data-site-theme] .stream-accounts-page>header p{margin:0!important}html[data-site-theme] .stream-accounts-page>header span{color:var(--site-accent)!important;font-size:.7rem!important;font-weight:900!important}html[data-site-theme] .stream-accounts-page>header strong{display:grid!important;place-items:center!important;min-width:70px!important;height:48px!important;border:1px solid var(--site-line-strong)!important;border-radius:15px!important;background:var(--site-surface-2)!important;color:var(--site-accent)!important}
html[data-site-theme] .stream-account-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:start!important;gap:10px!important}
html[data-site-theme] .stream-account-card{position:relative!important;display:grid!important;grid-template-columns:56px minmax(0,1fr) minmax(210px,auto)!important;align-items:center!important;gap:16px!important;min-width:0!important;min-height:108px!important;padding:15px 18px!important;border:1px solid var(--site-line-strong)!important;border-radius:18px!important;background:var(--site-surface-2)!important;box-shadow:var(--site-shadow-sm)!important;overflow:hidden!important}
html[data-site-theme] .stream-account-card:before{content:""!important;position:absolute!important;inset-block:14px!important;inset-inline-start:0!important;width:3px!important;border-radius:999px!important;background:var(--site-text-muted)!important}html[data-site-theme] .stream-account-card.approved:before{background:var(--site-success)!important}html[data-site-theme] .stream-account-card.pending:before{background:var(--site-warning)!important}html[data-site-theme] .stream-account-card.rejected:before{background:var(--site-danger)!important}
html[data-site-theme] .stream-account-icon{display:grid!important;place-items:center!important;width:52px!important;height:52px!important;border:1px solid var(--site-line-strong)!important;border-radius:16px!important;background:var(--site-surface-3)!important;font-size:1.45rem!important;box-shadow:inset 0 1px 0 color-mix(in srgb,var(--site-text) 10%,transparent)!important}
html[data-site-theme] .stream-account-content{display:grid!important;grid-template-columns:minmax(170px,.7fr) minmax(0,1.3fr)!important;align-items:center!important;gap:18px!important;min-width:0!important}html[data-site-theme] .stream-account-identity{display:grid!important;justify-items:start!important;gap:3px!important;min-width:0!important;text-align:start!important}html[data-site-theme] .stream-account-card small,html[data-site-theme] .stream-account-card em{color:var(--site-text-muted)!important;font-size:.72rem!important;font-style:normal!important}html[data-site-theme] .stream-account-card b{max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;color:var(--site-text)!important;font-size:1rem!important}html[data-site-theme] .stream-account-card.approved em{color:var(--site-success)!important}html[data-site-theme] .stream-account-card.pending em{color:var(--site-warning)!important}html[data-site-theme] .stream-account-card.rejected em{color:var(--site-danger)!important}
html[data-site-theme] .stream-account-card .platform-capabilities{display:flex!important;align-items:center!important;align-content:center!important;gap:6px!important;margin:0!important}html[data-site-theme] .stream-account-card .platform-capabilities span{padding:5px 8px!important;background:var(--site-surface-1)!important;font-size:.64rem!important;white-space:nowrap!important}
html[data-site-theme] .stream-account-actions{display:flex!important;align-items:center!important;gap:7px!important;flex-wrap:wrap!important;justify-content:flex-end!important}html[data-site-theme] .stream-account-card button{min-height:36px!important;padding:7px 11px!important;border:1px solid var(--site-line-strong)!important;border-radius:10px!important;background:var(--site-surface-3)!important;color:var(--site-text)!important;font:800 .7rem Cairo!important;cursor:pointer!important;white-space:nowrap!important}html[data-site-theme] .stream-account-card button:hover{border-color:var(--site-accent)!important}html[data-site-theme] .stream-account-card button.danger-ghost{color:var(--site-danger)!important}
html[data-site-theme] .stream-account-add{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:end!important;gap:12px!important;padding:16px!important;border:1px solid var(--site-line)!important;border-radius:18px!important;background:var(--site-surface-1)!important}html[data-site-theme] .stream-account-add>div{display:grid!important;grid-template-columns:220px minmax(0,1fr)!important;gap:12px!important}html[data-site-theme] .stream-account-add label{display:grid!important;gap:7px!important;color:var(--site-text)!important;font-weight:800!important}html[data-site-theme] .stream-account-add input,html[data-site-theme] .stream-account-add select{box-sizing:border-box!important;width:100%!important;min-height:46px!important;border:1px solid var(--site-line-strong)!important;border-radius:12px!important;padding:9px 12px!important;background:var(--site-input)!important;color:var(--site-text)!important;font:inherit!important}html[data-site-theme] .stream-account-add output{grid-column:1/-1!important;min-height:20px!important;color:var(--site-danger)!important}
html[data-site-theme] .stream-account-note{display:flex!important;gap:12px!important;padding:14px 16px!important;border:1px solid color-mix(in srgb,var(--site-accent) 34%,var(--site-line))!important;border-radius:15px!important;background:color-mix(in srgb,var(--site-accent) 8%,var(--site-surface-1))!important}html[data-site-theme] .stream-account-note p{margin:0!important;color:var(--site-text-soft)!important;line-height:1.8!important}
html[data-site-theme] .stream-oauth-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}html[data-site-theme] .stream-oauth-button{display:grid!important;grid-template-columns:auto 1fr!important;align-items:center!important;gap:3px 12px!important;min-height:82px!important;padding:14px 16px!important;border:1px solid var(--site-line-strong)!important;border-radius:16px!important;background:var(--site-surface-2)!important;color:var(--site-text)!important;text-align:start!important;cursor:pointer!important}html[data-site-theme] .stream-oauth-button>span{grid-row:1/3!important;font-size:1.55rem!important}html[data-site-theme] .stream-oauth-button>b{font:900 .84rem Cairo!important}html[data-site-theme] .stream-oauth-button>small{color:var(--site-text-muted)!important;font:700 .68rem Cairo!important}html[data-site-theme] .stream-oauth-button:hover{border-color:var(--site-accent)!important;transform:translateY(-1px)!important}
@media(max-width:850px){html[data-site-theme] .stream-account-grid{grid-template-columns:1fr!important}html[data-site-theme] .stream-account-add{grid-template-columns:1fr!important}html[data-site-theme] .stream-account-add>div{grid-template-columns:1fr!important}}
@media(max-width:850px){html[data-site-theme] .stream-oauth-grid{grid-template-columns:1fr!important}}
@media(max-width:850px){html[data-site-theme] .stream-account-card{grid-template-columns:52px minmax(0,1fr)!important}html[data-site-theme] .stream-account-content{grid-template-columns:1fr!important;gap:10px!important}html[data-site-theme] .stream-account-actions{grid-column:1/-1!important;justify-content:stretch!important}html[data-site-theme] .stream-account-actions button{flex:1!important}}
@media(max-width:520px){html[data-site-theme] .stream-account-card{grid-template-columns:44px minmax(0,1fr)!important;gap:12px!important;padding:14px!important}html[data-site-theme] .stream-account-icon{width:42px!important;height:42px!important;border-radius:13px!important}html[data-site-theme] .stream-account-card .platform-capabilities span{font-size:.6rem!important}}
