:root{color-scheme:light;--paper:#f7f6f2;--ink:#202020;--muted:#706b60;--line:#e1dccf;--accent:#ffd54a;--accent-soft:#fff4c7;font-family:Arial,Helvetica,sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink)}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #947000;outline-offset:5px}button{touch-action:manipulation}[hidden]{display:none!important}.icon-library{position:absolute;width:0;height:0;overflow:hidden}.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.topbar{height:94px;padding:0 4.2vw;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.brand{display:flex;gap:11px;align-items:center;color:var(--ink);text-decoration:none;font-size:31px;font-weight:800;letter-spacing:-1.8px}.brand-dot{color:#c18f00}.brand-studio{font-weight:400;margin-left:5px;letter-spacing:-1.3px}.brand-logo{display:block;width:40px;height:40px;object-fit:contain;flex-shrink:0}.top-note{font-size:12px;display:flex;gap:8px;align-items:center;color:#6f6550}.status-dot{width:6px;height:6px;border-radius:50%;background:#c18f00;display:inline-block;flex-shrink:0}.edition{font-size:12px;display:flex;align-items:center;gap:15px;color:var(--muted)}.edition .icon{width:17px;height:17px}
.workspace{max-width:1550px;padding:48px 4.2vw 32px;margin:auto;display:grid;grid-template-columns:295px minmax(0,1fr);gap:58px}.eyebrow{font-size:12px;font-weight:700;letter-spacing:1.6px;display:flex;align-items:center;gap:9px}.small-star{font-size:18px;font-weight:400}h1{font-size:53px;line-height:1.05;letter-spacing:-3px;margin:24px 0 16px;font-weight:500}h1 em{font-family:Georgia,serif;font-weight:400;letter-spacing:-3.7px}.intro{font-size:14px;line-height:1.65;color:var(--muted);margin:0 0 29px}
.voice-card{background:var(--accent-soft);border:1px solid #e5d79f;border-radius:18px;padding:19px 22px;text-align:center;position:relative}.voice-card-top{display:flex;justify-content:space-between;align-items:center;text-align:left;font-size:12px;letter-spacing:1.2px;font-weight:700}.icon-button{width:31px;height:31px;display:grid;place-items:center;background:transparent;border:0;color:var(--ink);border-radius:7px;flex-shrink:0}.icon-button:hover{background:#f0e4b7}.voice-card-top .icon{width:16px;height:16px}.voice-visual{height:145px;position:relative;display:flex;align-items:center;justify-content:center;margin-top:1px}.record{z-index:1;width:88px;height:88px;display:grid;place-items:center;border:0;border-radius:50%;background:var(--ink);color:var(--accent);box-shadow:0 0 0 8px #fff9e680;transition:background .2s,transform .2s}.record:not(:disabled):hover{transform:scale(1.06);background:#353535}.mic-icon{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}.record-square{display:none;width:22px;height:22px;border-radius:5px;background:currentColor}.orbit{position:absolute;border:1px solid #e4cf87;border-radius:50%;pointer-events:none}.orbit-one{width:137px;height:137px}.orbit-two{width:178px;height:105px;transform:rotate(-32deg)}.orbit-star{position:absolute;z-index:2;background:var(--accent-soft);color:#947000}.star-one{top:19px;right:45px;font-size:22px}.star-two{bottom:20px;left:40px;font-size:27px}.voice-card strong{display:block;font-size:16px;letter-spacing:-.2px;font-weight:500;margin:6px 0 8px}.voice-card p{font-size:12px;line-height:1.7;color:#786e59;margin:0}.waveform{height:32px;display:flex;align-items:center;justify-content:center;gap:4px;margin:13px auto 6px}.waveform i{display:block;width:2px;height:5px;background:#d0b45f;border-radius:2px}.waveform i:nth-child(3n){height:12px}.waveform i:nth-child(4n){height:19px}.waveform i:nth-child(5n){height:9px}.voice-disclosure{font-size:12px;color:#857b63}.recording .record{background:#ffd54a;color:#202020;box-shadow:0 0 0 8px #ffd54a50}.recording .mic-icon{display:none}.recording .record-square{display:block}.recording .waveform i,.busy .waveform i{animation:wave .7s ease-in-out infinite alternate;background:#b88600}.waveform i:nth-child(2n){animation-delay:.2s}.waveform i:nth-child(3n){animation-delay:.4s}@keyframes wave{to{height:24px}}.stop-button{margin:4px 0 10px;border:1px solid #d9c991;border-radius:20px;padding:7px 13px;background:none;font-size:12px;color:#6a5830;display:block;width:100%}
.cost-card{margin-top:21px;border:1px solid var(--line);border-radius:14px;padding:17px 18px 0;overflow:hidden}.cost-heading{display:flex;justify-content:space-between;align-items:center;font-size:12px;letter-spacing:1.3px;font-weight:700;color:var(--muted)}.currency{border:1px solid var(--line);border-radius:4px;padding:3px 4px;font-size:12px}.cost-value{display:flex;align-items:center;gap:12px;margin:14px 0 18px;font-size:35px;font-weight:400;letter-spacing:-1.5px;font-variant-numeric:tabular-nums}.cost-note{font-size:12px;font-weight:400;line-height:1.5;letter-spacing:0;color:#8a816c}details{border-top:1px solid var(--line);margin:0 -18px}summary{display:flex;align-items:center;gap:7px;list-style:none;padding:11px 18px;cursor:pointer;font-family:monospace;font-size:12px}summary::-webkit-details-marker{display:none}.model-dot{width:5px;height:5px;background:#c18f00;border-radius:50%}.chevron{margin-left:auto;color:#867c65}.cost-breakdown{padding:0 18px 13px;color:var(--muted);font-size:12px;line-height:1.5}.cost-breakdown>div{display:flex;justify-content:space-between;padding:4px 0}.cost-breakdown b{font-weight:400;font-variant-numeric:tabular-nums}.cost-breakdown p{font-size:12px;margin:9px 0 0}.cost-breakdown p:last-child{color:#976147}.local-note{text-align:center;font-size:12px;color:#8a816c;margin:16px 0}.tiny-lock{font-size:12px;margin-right:4px}
.game-panel{min-width:0}.game-heading{display:flex;align-items:center;justify-content:space-between;height:71px;margin-bottom:18px}.game-heading .eyebrow{color:#827a68;font-size:12px;letter-spacing:1.5px}h2{font-size:26px;font-weight:400;letter-spacing:-.8px;margin:8px 0 0}.preview-actions{display:flex;align-items:center;gap:10px}.preview-badge{font-size:12px;letter-spacing:.8px;display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:20px;padding:8px 10px;margin-right:8px}.preview-actions .icon{width:17px;height:17px}.preview-shell{height:435px;min-height:340px;border-radius:18px;background:#101010;position:relative;overflow:hidden;border:7px solid #282828;box-shadow:0 16px 36px #2020200d}.preview-shell iframe{width:100%;height:100%;border:0;display:block}.preview-loading{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;color:#ede8dc;background:radial-gradient(ellipse at 50% 0%,#3c3422,transparent 70%),#101010;text-align:center}.preview-planet{color:var(--accent);font-size:78px}.preview-loading h3{font:italic 26px Georgia,serif;margin:14px 0 8px}.preview-loading p{font-size:12px;color:#978e7a}.preview-shell:fullscreen{border-radius:0;height:100vh;width:100vw}.preview-caption{display:flex;justify-content:space-between;align-items:center;margin:15px 0 31px;color:#8b826b}.preview-caption>span:first-child{display:flex;align-items:center;gap:7px;font-size:12px;letter-spacing:.8px}.caption-square{width:6px;height:6px;border:1px solid #b0a27c}.preview-caption>span:last-child{font-size:12px;color:#8b7d5e}.hand-arrow{margin-left:8px;font-size:16px}
.conversation{border:1px solid var(--line);border-radius:14px;overflow:hidden}.conversation-heading{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid var(--line)}.conversation-heading h3{margin:0;font-size:14px;letter-spacing:-.25px;font-weight:500}.saved-label{font-size:12px;letter-spacing:.8px;color:#8b826d;display:flex;align-items:center;gap:6px}.conversation-body{max-height:245px;min-height:172px;overflow-y:auto;padding:23px 22px;scrollbar-width:thin;scrollbar-color:#d7c78e transparent}.empty-conversation{display:flex;gap:17px;position:relative}.chat-mascot{width:37px;height:30px;border-radius:45% 45% 35% 35%;background:#fff0b0;display:block;flex-shrink:0;position:relative;margin-top:2px}.chat-mascot i{position:absolute;width:3px;height:5px;border-radius:2px;background:var(--ink);top:11px;left:11px}.chat-mascot i+i{left:22px}.empty-conversation strong{font-size:13px;font-weight:500}.empty-conversation p{font-size:12px;color:#8b826d;margin:6px 0 18px}.try-saying{font-size:12px;color:#998e72;letter-spacing:1.2px}.empty-conversation blockquote{margin:7px 0 0;color:#8b7b53;font:italic 14px Georgia,serif;max-width:360px;line-height:1.5}.empty-star{font-size:38px;margin-left:auto;align-self:center;color:#d9b849;padding-right:15px}.activity{display:flex;align-items:center;gap:8px;background:#f2efe5;border-top:1px solid var(--line);padding:13px 21px;font-size:12px;color:#7b7057;min-height:41px}.activity-dot{width:5px;height:5px;flex-shrink:0;background:#c18f00;border-radius:50%}.activity-label{margin-left:auto;font-size:12px;letter-spacing:.8px;white-space:nowrap;padding-left:12px}.busy .activity-dot{animation:blink 1s infinite}@keyframes blink{50%{opacity:.3}}.notice{font-size:12px;line-height:1.6;padding:13px 22px;background:#fff0c2;color:#725521;border-bottom:1px solid #e2ce94}.message{display:flex;gap:13px;margin-bottom:22px;align-items:flex-start}.message:last-child{margin-bottom:0}.message-avatar{width:28px;height:28px;display:grid;place-items:center;background:#f2e7b9;border-radius:9px;font-size:12px;font-weight:bold;flex-shrink:0}.message.user .message-avatar{background:#eae6db;color:#8c826d}.message-copy{min-width:0;flex:1}.message-meta{display:flex;align-items:center;gap:10px;font-size:12px;letter-spacing:.5px;color:#7b7057;font-weight:600;margin:1px 0 6px}.message-meta time{font-size:12px;color:#a19780;font-weight:400;letter-spacing:0}.message p{font-size:13px;line-height:1.65;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.page-footer{max-width:1550px;margin:0 auto;padding:0 4.2vw 24px;display:flex;justify-content:space-between;font-size:12px;color:#998e72}.page-footer strong{font:italic 12px Georgia,serif;color:#8d7845}.page-footer>span:last-child{font-family:monospace;font-size:12px;letter-spacing:1.2px}
@media(min-width:1500px){.preview-shell{height:510px}.workspace{gap:75px}}@media(max-width:1100px){.workspace{gap:30px;grid-template-columns:260px minmax(0,1fr);padding-top:32px}h1{font-size:47px}.preview-shell{height:405px}.edition{display:none}.preview-badge{display:none}.activity-label{display:none}.empty-star{display:none}}@media(max-width:760px){.topbar{height:74px;padding:0 6vw}.brand{font-size:26px}.top-note{font-size:12px;max-width:140px}.workspace{padding:25px 6vw;display:flex;flex-direction:column;gap:26px}.creative-panel{display:grid;grid-template-columns:1fr 1fr;column-gap:18px}.creative-panel>.eyebrow{grid-column:1/-1}h1{font-size:38px;letter-spacing:-2px;margin:17px 0 0;align-self:center}h1 em{letter-spacing:-2.5px}.intro{display:none}.voice-card{grid-column:2;grid-row:2/5;padding:13px 10px}.voice-card-top{font-size:12px}.voice-visual{height:112px}.record{width:68px;height:68px}.orbit-one{width:105px;height:105px}.orbit-two{width:130px;height:80px}.star-one{right:8px;top:13px}.star-two{left:8px;bottom:12px}.voice-card strong{font-size:12px}.voice-card p{font-size:12px}.voice-disclosure{font-size:12px}.cost-card{margin-top:19px;padding:12px 12px 0}.cost-heading{font-size:12px;letter-spacing:.6px}.cost-value{font-size:26px;margin:10px 0 12px;gap:7px}.cost-note{font-size:12px}.cost-card details{margin:0 -12px}summary{padding:9px 12px;font-size:12px}.local-note{font-size:12px;align-self:start;margin:10px 0 0}.game-heading{height:48px;margin-bottom:15px}h2{font-size:23px}.preview-shell{height:370px;border-width:5px;border-radius:14px}.preview-caption{margin-bottom:22px}.preview-caption>span:first-child{font-size:12px}.preview-caption>span:last-child{font-size:12px}.conversation-heading{padding:15px}.conversation-body{padding:20px 15px}.empty-conversation{gap:10px}.empty-conversation blockquote{font-size:13px}.saved-label{font-size:12px}.activity{padding:12px 15px}.page-footer{padding:0 6vw 20px}.page-footer>span:last-child{font-size:12px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
@media(max-width:760px){.preview-shell{height:510px}}
#reload-studio{margin:12px 0}
#record{position:relative;overflow:visible;transform:none;box-shadow:none;width:44px;height:44px;background:#29291f;color:#ffe17c}
#record .mic-icon,#record .voice-stop-icon,#record .voice-play-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#record .mic-icon{width:26px;height:26px}
#record .voice-play-icon{transform:translateX(-2px)}
#record .voice-stop-icon,#record .voice-play-icon{display:none}
#record[data-mode=recording] .mic-icon{display:block;position:relative;z-index:1}
#record[data-mode=busy] .mic-icon,#record[data-mode=playback] .mic-icon,#record[data-mode=replay] .mic-icon{display:none}
#record[data-mode=replay] .voice-play-icon{display:block}
#voice-animation{position:absolute;width:96px;height:96px;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none}
#record[data-mode=busy] #voice-animation{width:52.8px;height:52.8px}
#record:is([data-mode=busy],[data-mode=playback]):is(:hover,:focus-visible) #voice-animation{visibility:hidden}
#record:is([data-mode=busy],[data-mode=playback]):is(:hover,:focus-visible) .voice-stop-icon{display:block}
.voice-card{min-height:96px;padding:12px 14px!important;gap:6px 18px!important;grid-template-columns:minmax(0,1fr) 60px!important}
.voice-card #record-hint,.voice-card .microphone-help summary,.voice-card .microphone-help p,.voice-card .microphone-help input,.voice-card .microphone-help a{font-size:12px!important}
@media(hover:none){#record:is([data-mode=busy],[data-mode=playback]) .voice-stop-icon{display:block;width:10px;height:10px}#record:is([data-mode=busy],[data-mode=playback]) #voice-animation{opacity:.5}}
.microphone-help{margin-top:14px;text-align:left;font-size:12px;line-height:1.6}
.microphone-help summary{cursor:pointer;text-align:center;text-decoration:underline;text-underline-offset:3px}
.microphone-help input{width:100%;box-sizing:border-box;padding:8px;font:12px monospace;border:1px solid currentColor;border-radius:6px;background:transparent;color:inherit}
.microphone-help button{margin:8px 0;padding:6px 10px;font:inherit;border:1px solid currentColor;border-radius:6px;background:transparent;color:inherit;cursor:pointer}
.microphone-help a{color:inherit}.microphone-help [role=status]{display:block}
.rules-card{display:flex;flex-direction:column;min-height:0;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.rules-card{overflow:visible}
.rules-hint{border-radius:0 0 11px 11px}
.game-switcher{position:relative;flex:1 1 auto;min-width:0;border:0;margin:0}
.game-switcher summary{display:flex;align-items:center;gap:6px;padding:4px 6px;margin:-4px -6px;border-radius:7px;font-family:inherit;font-size:18px;line-height:1.3;font-weight:600;letter-spacing:-.3px}
.game-switcher summary:hover,.game-switcher[open] summary{background:#ece9df}
.game-switcher summary #game-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.game-switcher-chevron{width:18px;height:18px;flex:none;fill:currentColor}
.game-switcher[open] .game-switcher-chevron{transform:rotate(180deg)}
.game-menu{position:absolute;z-index:20;top:calc(100% + 10px);right:0;width:min(280px,calc(100vw - 24px));max-height:calc(100dvh - 40px);overflow:auto;scrollbar-gutter:stable;padding:6px;background:var(--paper);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 30px #20202025}
.game-menu-label{padding:7px 9px;color:var(--muted);font-size:12px;font-weight:600}
.game-menu button{display:flex;align-items:center;gap:8px;width:100%;min-height:36px;padding:8px 9px;border:0;border-radius:7px;background:transparent;text-align:left;color:var(--ink);font-size:12px;overflow-wrap:anywhere}
.game-menu button:hover:not(:disabled){background:#ece9df}
.game-menu button[aria-current=true]{background:var(--accent-soft);font-weight:600}
.game-menu button span{margin-left:auto;color:var(--muted);font-size:12px;font-weight:400}
.game-menu #create-game{border-top:1px solid var(--line);border-radius:0 0 7px 7px;margin-top:5px;padding-top:10px}
.game-menu svg{width:18px;height:18px;flex:none;fill:currentColor}
.rules-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:14px 14px 0;flex-shrink:0}
.rules-heading h2{flex:1 1 auto;min-width:0;margin:0;font-size:18px;line-height:1.3;font-weight:600;letter-spacing:-.3px;overflow-wrap:anywhere}
.players-badge{flex-shrink:0;border:1px solid var(--line);border-radius:20px;padding:4px 7px;font-size:12px;color:var(--muted);white-space:nowrap}
.rules-content{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d7c78e transparent;padding:12px 14px}
.rules-content:focus-visible{outline:2px solid #947000;outline-offset:-3px}
.rules-description{margin:0 0 12px;color:var(--muted);font-size:12px;line-height:1.6}
.rules-list{display:grid;gap:12px;margin:0;padding-left:15px;font-size:12px;line-height:1.6}
.rules-list li{padding-left:3px;overflow-wrap:anywhere}.rules-list li::marker{color:#c18f00}
.rules-hint{flex-shrink:0;margin:0;padding:10px 14px;border-top:1px solid var(--line);background:var(--accent-soft);color:#6f6550;font-size:12px;line-height:1.5}
.portrait-message{display:none}
@media(orientation:portrait){
  html,body{width:100%;height:100%;height:100dvh;overflow:hidden}
  body{display:grid;place-items:center;padding:24px}
  body>:not(.portrait-message){display:none!important}
  .portrait-message{display:block;margin:0;text-align:center;font-size:clamp(18px,4vw,28px);line-height:1.5}
}
@media(orientation:landscape){
  html{height:100%;overflow:hidden}
  body{height:100vh;height:100dvh;overflow:hidden;display:grid;grid-template-rows:48px minmax(0,1fr)}
  .topbar{height:auto;padding:0 18px;gap:12px}
  .brand{font-size:24px;gap:9px}
  .top-note{font-size:12px;max-width:none}
  .workspace{width:100%;max-width:none;min-height:0;padding:8px;margin:0;display:grid;grid-template-columns:minmax(0,1fr) clamp(180px,23vw,320px);grid-template-rows:minmax(0,1fr);gap:0}
  .creative-panel{grid-column:2;grid-row:1;min-width:0;min-height:0;display:flex;flex-direction:column;gap:10px}
  .voice-card{flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) 48px;grid-column:auto;grid-row:auto;align-items:center;gap:4px 12px;padding:12px;border-radius:12px;text-align:left}
  .voice-visual{grid-column:2;grid-row:1/3;min-height:60px;height:60px;margin:0}
  #record{width:56px;height:56px}
  .record{width:44px;height:44px;box-shadow:0 0 0 4px #fff9e680}
  .mic-icon{width:21px;height:21px}.record-square{width:16px;height:16px;border-radius:4px}
  .recording .record{box-shadow:0 0 0 4px #ffd54a50}
  .voice-card #record-hint{grid-column:1;grid-row:1;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
  .stop-button{grid-column:1/-1;margin:4px 0 0;padding:5px 8px;font-size:12px}
  .microphone-help{grid-column:1;grid-row:2;margin:0;border:0;font-size:12px;min-width:0}
  .microphone-help summary{justify-content:flex-start;padding:4px 0;font-size:12px}
  .voice-model{grid-column:1;grid-row:2;justify-self:start;display:flex;align-items:center;gap:5px;min-width:0;max-width:100%;color:#6f6550;font-size:12px}
  .voice-model #coding-model{max-width:none;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .microphone-popover{position:absolute;z-index:20;right:0;bottom:calc(100% + 8px);width:min(340px,calc(100vw - 16px));max-height:calc(100dvh - 120px);overflow:auto;scrollbar-gutter:stable;border:1px solid var(--line);border-radius:10px;padding:14px;background:var(--paper);box-shadow:0 8px 30px #20202025;text-align:left;color:var(--ink)}
  .microphone-popover strong{display:block;font-size:14px;font-weight:600;margin:0 0 8px}
  .microphone-help[open] .microphone-popover p{margin:8px 0}
  .cost-card{flex-shrink:0;position:relative;overflow:visible;margin:0;padding:10px 12px 0;border-radius:10px}
  .cost-heading{font-size:12px;letter-spacing:.8px}.currency{padding:1px 3px}
  .cost-value{font-size:26px;margin:4px 0 6px;gap:8px}.cost-note{font-size:12px}
  .cost-card details{margin:0 -12px}.cost-card summary{padding:7px 12px;font-size:12px}
  #coding-model{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .cost-breakdown{position:absolute;z-index:10;right:calc(100% + 8px);top:0;width:260px;max-height:calc(100dvh - 80px);overflow:auto;padding:12px;background:var(--paper);border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 30px #20202025}
  .rules-card{flex:1 1 auto}.rules-content{flex:1 1 auto}
  .game-panel{grid-column:1;grid-row:1;display:flex;min-width:0;min-height:0}
  .preview-shell{flex:1 1 auto;display:flex;flex-direction:column;min-width:0;min-height:0;height:auto;border-width:2px;border-radius:10px 0 0 10px;container-type:inline-size}
  .preview-toolbar{flex-shrink:0;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;min-height:42px;padding:4px 10px;background:#282828;border-bottom:1px solid #45413b;color:#b0aca2;font-size:12px}
  .preview-players,#player-options{display:flex;align-items:center;justify-content:center;gap:5px}
  .preview-players{gap:10px;white-space:nowrap;font-size:12px}
  #player-options{gap:2px;padding:3px;border:1px solid #4a4740;border-radius:9px;background:#1d1d1d}
  #player-options button{min-width:30px;height:28px;padding:2px 7px;border:1px solid transparent;border-radius:6px;background:transparent;color:#e8e5dc;font-size:12px;font-weight:600;text-indent:-.25px;transition:background .15s,border-color .15s,color .15s}
  #player-options button[data-players="1"]{text-indent:-.5px}
  #player-options button:hover:not(:disabled):not([aria-pressed=true]){background:#45413b;border-color:#696257;color:#fff}
  #player-options button[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:var(--ink)}
  #player-options button[aria-pressed=true]:hover:not(:disabled){background:#ffe077;border-color:#ffe077}
  #player-options button:disabled{opacity:1;color:#77736b;cursor:not-allowed}
  #player-options button:focus-visible{outline:2px solid #ffe077;outline-offset:1px}
  .preview-actions{gap:4px;justify-self:end}
  .preview-actions .icon-button{display:flex;align-items:center;justify-content:center;gap:6px;width:auto;padding:0 8px;color:#f1eee5;font-size:12px}
  .preview-actions .icon-button:hover{background:#45413b}
  #reset .icon{transform:translateX(1px)}
  #expand .icon{transform:translateX(.5px)}
  .preview-shell iframe{flex:1 1 auto;min-height:0;height:0}
  .preview-loading{top:42px}
  .notice{position:absolute;z-index:5;left:8px;right:8px;bottom:8px;max-height:40%;overflow:auto;padding:8px 12px;font-size:12px;border:1px solid #e2ce94;border-radius:8px}
}
@media(orientation:landscape) and (max-height:480px){
  body{grid-template-rows:38px minmax(0,1fr)}
  .workspace{padding:4px;gap:0}
  .topbar{padding-left:10px;padding-right:10px}.brand-logo{width:32px;height:32px}
  .creative-panel{gap:6px}.voice-card{padding:8px 10px!important;gap:2px 8px;grid-template-columns:minmax(0,1fr) 40px}
  .voice-visual{height:52px;min-height:52px}#record{width:48px;height:48px}
  .voice-card #record-hint{font-size:12px}.microphone-help summary{font-size:12px}
  .cost-card{padding-top:6px}.cost-value{font-size:22px;margin:2px 0}.cost-card summary{padding-top:5px;padding-bottom:5px}
  .microphone-popover{max-height:min(calc(100dvh - 100px),calc(100dvh - 100% - 24px))}
  .rules-heading{padding:9px 10px 0}.rules-heading h2{font-size:14px}.players-badge{font-size:12px;padding:3px 5px}
  .rules-content{padding:8px 10px}.rules-list{font-size:12px;line-height:1.5;gap:8px}
  .rules-hint{padding:7px 10px;font-size:12px}
  .preview-toolbar{padding:3px 6px;min-height:38px}
  .preview-loading{top:38px}
}

#coding-effort{white-space:nowrap;flex-shrink:0;color:var(--muted)}
.brand-studio{margin-left:1px}
@media(orientation:landscape){
  .creative-panel{gap:0}
  .rules-card{border-radius:12px 12px 0 0;border-bottom:0}
  .voice-card{border-radius:0 0 12px 0}
  .preview-actions .icon-button{width:32px;padding:0}
}
.cost-breakdown{cursor:auto}
.cost-breakdown p{line-height:1.5}
.cost-breakdown p:first-child{margin-top:0}
.cost-breakdown .cost-billing-note{color:var(--muted)}
.cost-breakdown #incomplete-cost{color:#976147}

@container (max-width:650px){
  .preview-actions .icon-button span,.preview-players>span:first-child{display:none}
  .preview-actions .icon-button{width:28px;padding:0}
  .preview-toolbar{gap:4px}
  .preview-players{gap:3px}
  #player-options{gap:1px;padding:2px}
  #player-options button{min-width:24px;padding:2px 4px;font-size:12px}
}

@media(orientation:landscape){
  .chevron{width:16px;height:16px;flex:none;fill:currentColor;display:block}
  .preview-loading{position:static;flex:1 1 auto;min-height:0;padding:16px}
  .preview-loading p{max-width:36rem;line-height:1.5}
  .rules-content,.cost-breakdown,.microphone-help[open],.notice{scrollbar-gutter:stable}
  .rules-card{background:#faf9f5}
  .rules-heading{padding:16px 14px 0}
  .game-switcher summary{color:var(--ink);font-weight:700}
  .players-badge{background:#f1efe8;border-color:#e6e1d5;color:#655f52}
  .rules-content{padding:14px;scrollbar-color:#c9b979 transparent}
  .rules-description{font-size:13px;line-height:1.55;color:#655f52}
  .rules-list{font-size:13px;line-height:1.5;gap:10px;color:#30302d}
  .voice-card{background:#fff5cc;border-color:#e6d99f}
  .voice-model{color:#756940}
  .microphone-help summary{text-decoration-color:#ad9a62;text-underline-offset:4px}
  .preview-toolbar{background:#252524;border-color:#403e38}
  .preview-loading p{color:#b7af9d}
}

@media(orientation:landscape) and (max-height:360px){
  .cost-heading{display:none}
  .rules-hint{display:none}
}

@media(orientation:landscape){
  body{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
  .workspace{grid-column:1;grid-row:1}
  .game-panel{flex-direction:column;gap:0;container-type:inline-size}
  .game-panel > .topbar{flex:0 0 auto;min-height:40px;padding:4px 10px;gap:10px;border:0;background:var(--paper);color:var(--ink)}
  .topbar .brand{font-size:20px;gap:6px;color:inherit;white-space:nowrap}
  .topbar .brand-logo{width:28px;height:28px}
  .header-widgets{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0}
  .header-widgets .top-note{flex-shrink:0;white-space:nowrap;color:var(--muted)}
  .header-widgets .cost-card{display:flex;align-items:center;padding:4px 8px;border:1px solid var(--line);border-radius:7px;background:transparent;min-width:0}
  .header-widgets .cost-heading{display:flex;gap:5px;color:var(--muted)}
  .header-widgets .currency{border-color:var(--line)}
  .header-widgets .cost-value{margin:0;gap:5px;font-size:16px;font-weight:600;letter-spacing:-.3px;line-height:1.25;white-space:nowrap}
  .cost-currency{font-size:12px;font-weight:600;letter-spacing:.03em;color:var(--muted)}
  .header-widgets .cost-note{display:none}
  .header-widgets .cost-card details{margin:0;min-width:0;border:0}
  .header-widgets .cost-card summary{padding:4px 0;font-size:12px;gap:5px}
  .header-widgets #coding-model{max-width:100px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .header-widgets .cost-breakdown{top:calc(100% + 8px);right:0;width:min(300px,calc(100vw - 36px));max-height:calc(100dvh - 110px)}
  .preview-loading{top:42px}
}

@media(orientation:landscape) and (max-height:480px){
  .game-panel{gap:0}
  .preview-loading{top:38px}
  .rules-heading{padding:9px 10px 0}
  .rules-content{padding:8px 10px}
  .rules-description,.rules-list{font-size:12px}
}

@container (max-width:650px){
  .topbar .brand{font-size:16px;gap:4px}
  .topbar .brand-logo{width:22px;height:22px}
  .header-widgets{gap:8px}
  .header-widgets .currency{display:none}
  .header-widgets #coding-model{max-width:65px}
  .header-widgets .cost-value{font-size:16px}
  .header-widgets .top-note{font-size:12px;gap:4px}
}
