.hero-actions{align-items:center}
.hero h1{font-size:52px}
.demo-invitation{display:flex;align-items:center;justify-content:space-between;gap:32px;padding:38px max(24px,calc((100vw - 1120px)/2));border-top:1px solid #33423d;border-bottom:1px solid #33423d;background:#19211f}
.demo-invitation h2{max-width:620px;margin:0;font-size:27px;line-height:1.3}
.demo-invitation>div>p:last-child{margin:9px 0 0;color:#bbc7c0;font-size:14px}
.demo-invitation .button{flex:none}
.demo-page{min-height:100vh;background:#101413;color:#eff1e9}
.demo-main{max-width:1160px;margin:0 auto;padding:38px 24px 0;overflow:visible}
.demo-intro{padding-bottom:30px;border-bottom:1px solid #303a35}
.demo-back{display:inline-flex;align-items:center;gap:8px;margin-bottom:29px;color:#bac6bf;text-decoration:none;font-size:12px;font-weight:700}
.demo-back:hover,.demo-footer a:hover{color:#c6ec91}
.demo-intro-row{display:flex;align-items:end;justify-content:space-between;gap:30px}
.demo-intro h1{max-width:760px;margin:0;font-size:42px;line-height:1.15}
.demo-lead{max-width:670px;margin:13px 0 0;color:#aebbb3;font-size:14px;line-height:1.8}
.demo-model{display:flex;align-items:center;gap:11px;min-width:190px;padding:12px 14px;border:1px solid #39453d;border-radius:6px;background:#171d19}
.demo-model>div{display:grid;gap:3px}
.demo-model small{color:#87958b;font:700 9px Consolas,monospace}
.demo-model strong{color:#f2f1e8;font:800 15px Consolas,monospace}
.demo-model-dot{width:9px;height:9px;border-radius:50%;background:#99d99a;box-shadow:0 0 0 4px rgba(153,217,154,.12)}
.demo-model-tag{margin-left:auto;padding:4px 6px;border:1px solid #4a5b4c;border-radius:3px;color:#c6ec91;font:700 8px Consolas,monospace}
.demo-games{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:24px 0 38px}
.demo-game{min-width:0;padding:18px;border:1px solid #36413b;border-radius:7px;background:#171d19}
.demo-game-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:15px;border-bottom:1px solid #2c3630}
.demo-game-title{display:flex;align-items:center;gap:12px;min-width:0}
.game-index{display:grid;place-items:center;flex:none;width:32px;height:32px;border:1px solid #778f61;border-radius:5px;color:#c6ec91;font:700 11px Consolas,monospace}
.game-index-coral{border-color:#9e655c;color:#ff9b88}
.demo-game-title h2{margin:0;color:#f1f0e8;font-size:17px;line-height:1.3}
.demo-game-title p{margin:3px 0 0;color:#909e94;font-size:11px}
.game-actions{display:flex;gap:7px;flex:none}
.game-actions .button{min-height:34px;padding:6px 11px;font-size:11px}
.demo-game .button.primary{border-color:#c6ec91;color:#172014;background:#c6ec91}
.demo-game .button.primary:hover{border-color:#d9f5ad;background:#d9f5ad}
.demo-game .button.quiet{min-height:34px;padding:6px 10px;color:#c9d1c8;background:#202722;font-size:11px}
.demo-game button:disabled{cursor:not-allowed;opacity:.42;transform:none}
.game-stage{display:grid;grid-template-columns:minmax(0,1fr) 105px;align-items:center;justify-items:center;gap:18px;min-height:345px;padding:18px 8px}
.tetris-stage{min-height:430px}
.game-stage canvas{display:block;width:min(100%,320px);height:auto;border:1px solid #3a4740;border-radius:4px;background:#10171b;image-rendering:pixelated}
.tetris-stage canvas{width:min(100%,240px)}
.game-telemetry{align-self:stretch;display:flex;flex-direction:column;justify-content:center;width:100%;gap:7px}
.telemetry-item{display:grid;gap:3px;padding:9px 8px;border:1px solid #303a34;border-radius:4px;background:#141a16}
.telemetry-item span{color:#8e9b91;font-size:10px}
.telemetry-item strong{color:#eff1e9;font:800 16px Consolas,monospace}
.telemetry-item .telemetry-unit{font-size:13px}
.telemetry-rule{height:1px;margin:6px 0;background:#344037}
.telemetry-label{margin:0;color:#89968d;font-size:10px}
.action-log{min-height:32px;color:#c6ec91;font-size:11px;font-weight:750;line-height:1.5}
.action-log.is-fallback{color:#ffac8d}
.thinking-mark{display:flex;gap:4px;align-items:center;height:12px;opacity:0}
.thinking-mark i{width:4px;height:4px;border-radius:50%;background:#c6ec91}
.is-thinking .thinking-mark{opacity:1}
.is-thinking .thinking-mark i{animation:thinking-pulse .9s ease-in-out infinite alternate}
.is-thinking .thinking-mark i:nth-child(2){animation-delay:.15s}
.is-thinking .thinking-mark i:nth-child(3){animation-delay:.3s}
@keyframes thinking-pulse{to{opacity:.25;transform:translateY(-3px)}}
.game-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:12px;border-top:1px solid #2c3630;color:#839087;font-size:10px}
.live-indicator{display:inline-flex;align-items:center;gap:7px;color:#adb9af}
.live-indicator:before{content:"";width:7px;height:7px;border-radius:50%;background:#829087}
.live-indicator.active{color:#c6ec91}
.live-indicator.active:before{background:#a9dd88;box-shadow:0 0 0 3px rgba(169,221,136,.12)}
.live-indicator.thinking:before{background:#f1cc7b;animation:status-blink .8s ease-in-out infinite alternate}
.live-indicator.fallback{color:#ffac8d}
.live-indicator.fallback:before{background:#ff947e}
.live-indicator.ready:before{background:#829087}
@keyframes status-blink{to{opacity:.35}}
.demo-footer{display:flex;align-items:center;gap:20px;padding:17px 0 22px;border-top:1px solid #303a35;color:#839087;font-size:10px}
.demo-footer span{margin-right:auto}
.demo-footer a{color:#c0cbc1;text-decoration:none}
.demo-page .model-nav{padding-left:max(24px,calc((100vw - 1112px)/2));padding-right:max(24px,calc((100vw - 1112px)/2));background:rgba(16,20,19,.95);border-color:#303a35}
.demo-page .nav-links a:hover,.demo-page .nav-links a.active{border-color:#596c50;background:#222c23;color:#c6ec91}
@media(max-width:860px){.hero h1{font-size:44px}.demo-games{grid-template-columns:1fr}.demo-main{max-width:700px}.demo-model{min-width:170px}.demo-invitation{padding-left:24px;padding-right:24px}}
@media(max-width:600px){
  .demo-page .model-nav{gap:8px;padding:10px 14px}
  .demo-page .brand b{font-size:11px}
  .demo-page .brand img{width:32px;height:32px}
  .demo-page .nav-links{gap:0}
  .demo-page .nav-links a{flex:none;padding:5px 4px;font-size:10px;white-space:nowrap}
  .demo-page .nav-links a:nth-child(1),.demo-page .nav-links a:nth-child(2){display:inline-flex}
  .demo-main{padding:25px 14px 0}
  .demo-back{margin-bottom:20px}
  .demo-intro-row{align-items:flex-start;flex-direction:column;gap:18px}
  .demo-intro h1{font-size:32px}
  .demo-lead{font-size:13px}
  .demo-model{width:100%}
  .demo-games{gap:12px;padding:16px 0 28px}
  .demo-game{padding:13px}
  .demo-game-head{align-items:flex-start;flex-direction:column}
  .game-actions{width:100%}
  .game-actions .button{flex:1}
  .game-stage{grid-template-columns:minmax(0,1fr) 82px;gap:9px;min-height:0;padding:16px 0}
  .tetris-stage{min-height:0}
  .game-stage canvas{width:100%}
  .tetris-stage canvas{width:min(100%,200px)}
  .telemetry-item{padding:7px 6px}
  .telemetry-item strong{font-size:14px}
  .action-log{font-size:10px}
  .game-foot{align-items:flex-start;flex-direction:column}
  .demo-footer{flex-wrap:wrap;gap:10px 14px}
  .demo-footer span{width:100%}
  .demo-invitation{align-items:flex-start;flex-direction:column;gap:18px;padding:30px 16px}
  .demo-invitation h2{font-size:23px}
  .demo-page footer{justify-content:flex-start}
}
@media(max-width:560px){.hero h1{font-size:38px}}
@media(max-width:360px){
  .model-nav{gap:6px;padding-right:10px;padding-left:10px}
  .model-nav .brand{gap:6px}
  .model-nav .brand img{width:28px;height:28px}
  .model-nav .brand b{font-size:9px}
  .model-nav .nav-links{gap:0}
  .model-nav .nav-links a{flex:none;padding:5px 4px;font-size:9px;white-space:nowrap}
}
@media(prefers-reduced-motion:reduce){.demo-page *, .demo-page *:before,.demo-page *:after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}}
