/* The hero's signature is a playable Neural Goban, framed as an app in motion.
   Match the current app: navy, turquoise, iris, and black/white stone materials. */
.release-31 .hero { overflow: clip; }
#app-demo-stage.demo-ready { padding-bottom: 86px; }
#app-demo-stage.demo-ready .phone-screen { aspect-ratio: 660 / 1500; }
#app-demo-stage .match-card { pointer-events: none; }
#app-demo-stage .match-card-top strong { color: #59e3d6; }
#app-demo-stage.demo-ready .match-card-top { top: 13%; left: -14%; width: 190px; min-width: 0; }
#app-demo-stage.demo-ready .match-card-bottom { display: none; }
#app-demo-stage.demo-ready .phone-hero { transform: rotate(2deg); transition: transform .4s; }
#app-demo-stage.demo-ready .phone-hero:focus-within,
#app-demo-stage.demo-ready .phone-hero:hover { transform: rotate(0); }
.demo-controls { position: absolute; bottom: 4px; width: min(100%, 390px); text-align: center; z-index: 6; }
.demo-controls[hidden] { display: none; }
.demo-scenes { display: flex; padding: 5px; border: 1px solid #59e3d640; border-radius: 15px; background: #0c1728; gap: 3px; }
.demo-scenes button { flex: 1; min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: #b9c8d8; font: 700 12px var(--body); cursor: pointer; white-space: nowrap; position: relative; }
.demo-scenes button[aria-pressed="true"] { color: #07101e; background: #59e3d6; }
.demo-scenes #demo-pause { flex: 0 0 42px; color: #59e3d6; font-size: 18px; }
.demo-controls p { margin: 10px 0 0; color: #9aaec3; font: 10px var(--mono); letter-spacing: .03em; }
#app-demo-stage button:focus-visible { outline: 2px solid #edab4a; outline-offset: 3px; z-index: 4; }
.demo-app { height: 100%; display: flex; flex-direction: column; padding: 17px 12px 9px; color: #f5f8ff; background: #080f19; font: 12px/1.4 var(--body); container-type: inline-size; }
.demo-statusbar { display: flex; justify-content: space-between; font-weight: 800; padding: 0 9px 10px; font-size: 11px; }
.demo-statusbar::after { content: ""; position: absolute; top: 12px; left: 36%; width: 28%; height: 21px; border-radius: 20px; background: #02050a; }
.demo-statusbar span:last-child { color: #59e3d6; letter-spacing: 2px; }
.demo-app-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 3px; }
.demo-preview { color: #59e3d6; border: 1px solid #59e3d645; border-radius: 5px; padding: 3px 5px; font: 9px var(--mono); letter-spacing: .05em; }
.demo-mode-line { display: flex; justify-content: flex-end; align-items: center; margin-bottom: 5px; }
.demo-mode-title { font: 700 19px var(--body); letter-spacing: -.5px; }
.demo-timer { color: #59e3d6; font: 500 10px var(--mono); }
.demo-players { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: stretch; margin-bottom: 8px; }
.demo-player { display: grid; grid-template-columns: 26px minmax(0, 1fr) 13px; gap: 5px; align-items: center; padding: 7px 0 9px; border-bottom: 2px solid #28464a; }
.demo-player.active { border-color: #59e3d6; }
.demo-avatar { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #59e3d680; border-radius: 50%; background: #e5eeee; color: #455157; font: 700 10px var(--body); }
.demo-player.active .demo-avatar { box-shadow: 0 0 0 1px #59e3d680; }
.demo-player strong { display: block; font-size: 10px; font-weight: 600; }
.demo-player small { grid-column: 1 / -1; color: #a9bbc8; font: 8px var(--mono); margin-top: 3px; }
.demo-player-stone { display: block; width: 13px; height: 13px; border-radius: 50%; box-shadow: 0 1px 3px #0007; }
.demo-board-wrap { display: flex; flex: 1; flex-direction: column; min-height: 0; position: relative; padding: 11px 9px; border: 1px solid #59e3d680; border-radius: 16px; background: #193138; box-shadow: inset 0 0 30px #07101e50; }
.demo-board { display: grid; flex: 1; min-height: 0; grid-template-columns: repeat(11, 1fr); grid-auto-rows: minmax(0, 1fr); position: relative; }
.demo-cell[hidden] { display: none; }
.demo-cell { padding: 0; min-width: 0; min-height: 0; border: 0; border-radius: 0; background: transparent; cursor: crosshair; position: relative; display: grid; place-items: center; }
.demo-cell::before { content: ""; position: absolute; inset: 0; background: linear-gradient(#59e3d642, #59e3d642) center / 1px 100% no-repeat, linear-gradient(90deg, #59e3d642, #59e3d642) center / 100% 1px no-repeat; }
.demo-cell:hover { background: #59e3d61a; }
.demo-stone { position: relative; z-index: 1; width: 86%; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 2px 4px #0009; animation: demo-place .28s both; }
.demo-stone.black, .demo-player-stone.black { background: radial-gradient(circle at 32% 25%, #626566 0%, #292b2c 28%, #121415 68%, #070909 100%); border: 1px solid #8b9290; box-shadow: inset 0 0 0 1px #ffffff15, 0 2px 4px #0008; }
.demo-stone.white, .demo-player-stone.white { background: radial-gradient(circle at 32% 25%, #fff 0%, #f5f6f3 40%, #d5d9d7 100%); border: 1px solid #aeb7b4; box-shadow: inset 0 0 0 1px #fff9, 0 2px 4px #0008; }
.demo-cell.last .demo-stone { outline: 2px solid #edab4a; outline-offset: 1px; }
.demo-cell.won .demo-stone { outline: 2px solid #59e3d6; outline-offset: 1px; box-shadow: 0 0 12px #59e3d680; }
.demo-cell.hint::after { content: ""; position: absolute; inset: 9%; border: 1px dashed #edab4a; border-radius: 50%; animation: demo-breathe 1.4s infinite; }
.demo-board-caption { color: #a3bbca; font: 8px var(--mono); display: flex; justify-content: space-between; margin: 9px 1px 0; letter-spacing: .05em; }
.demo-result { display: flex; align-items: center; gap: 9px; min-height: 53px; margin-top: 8px; padding: 7px 9px; background: #111f30; border: 1px solid #314454; border-radius: 10px; }
.demo-result-icon { font-size: 24px; color: #59e3d6; }
.demo-result strong { display: block; font-size: 12px; }
.demo-result small { display: block; color: #a9bacb; font-size: 10px; margin-top: 2px; }
.demo-result.is-win { border-color: #59e3d670; background: #143137; }
.demo-action { width: 100%; min-height: 44px; border: 1px solid #59e3d680; border-radius: 10px; margin-top: 10px; color: #59e3d6; background: #59e3d610; font: 700 11px var(--body); cursor: pointer; }
.demo-action:hover { background: #59e3d625; }
.demo-tour-progress { height: 2px; flex-shrink: 0; background: #2b3b50; margin: 10px 0 8px; overflow: hidden; }
.demo-tour-progress span { display: block; height: 100%; background: #59e3d6; width: 0; transition: width 1s linear; }
.demo-home-indicator { width: 34%; height: 3px; flex-shrink: 0; background: #a2b4c1; border-radius: 5px; margin: 8px auto 0; }
.demo-arena { flex: 1; }
.demo-arena[hidden], .demo-board-wrap[hidden], .demo-players[hidden] { display: none; }
.demo-arena-banner { padding: 4px 8px 8px; text-align: center; }
.demo-arena-banner span { font-size: 21px; color: #edab4a; }
.demo-arena-banner h3 { font: 700 19px var(--display); margin: 3px 0; letter-spacing: -.8px; }
.demo-arena-banner p { color: #9eb1c7; margin: 0; font-size: 10px; }
.demo-arena-stats { display: flex; justify-content: space-around; border-block: 1px solid #34485c; padding: 12px 0; margin-bottom: 14px; }
.demo-arena-stats strong { display: block; color: #59e3d6; font: 18px var(--mono); }
.demo-arena-stats span { text-align: center; color: #9eb1c7; font-size: 8px; }
.demo-rank-list { position: relative; height: 176px; }
.demo-rank-row { position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 10px; border-bottom: 1px solid #314153; transition: transform .65s cubic-bezier(.2,.8,.2,1); }
.demo-rank-row.is-you { background: #16353d; border: 1px solid #59e3d650; border-radius: 8px; }
.demo-rank-row > span { color: #839bb1; font: 11px var(--mono); width: 18px; }
.demo-rank-row strong { font-size: 12px; flex: 1; }
.demo-rank-row small { color: #edab4a; font: 10px var(--mono); }
.demo-rank-row b { color: #59e3d6; font: 15px var(--mono); }
.demo-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes demo-place { from { transform: scale(.35); opacity: .3; } to { transform: scale(1); opacity: 1; } }
@keyframes demo-breathe { 50% { opacity: .25; transform: scale(.8); } }
@media (max-width: 1100px) {
  #app-demo-stage.demo-ready .match-card-top { left: -3%; top: 6%; }
  #app-demo-stage.demo-ready .match-card-bottom { right: -3%; bottom: 21%; }
}
@media (min-width: 761px) and (max-width: 1350px) {
  #app-demo-stage.demo-ready .match-card { display: none; }
}
@media (max-width: 760px) {
  #app-demo-stage.demo-ready { margin-top: 15px; padding-bottom: 88px; min-height: 760px; }
  #app-demo-stage.demo-ready .phone-hero { width: min(340px, calc(100vw - 48px)); transform: none; }
  #app-demo-stage.demo-ready .match-card { display: none; }
  .demo-controls { width: min(360px, 100%); }
}
@media (max-width: 370px) {
  #app-demo-stage.demo-ready { min-height: 680px; }
  .demo-app { padding-inline: 10px; }
  .demo-app-header { margin-bottom: 10px; }
  .demo-mode-title { font-size: 15px; }
  .demo-player { gap: 4px; }
  .demo-avatar { width: 24px; height: 24px; }
  .demo-arena-banner { padding-block: 8px; }
  .demo-arena-banner h3, .demo-arena-banner > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #app-demo-stage *, #app-demo-stage *::after { animation: none !important; transition: none !important; }
  #app-demo-stage.demo-ready .phone-hero { transform: none; }
}
