/* Game launch shell follows the redesign palette and production interaction model. */
#game-launch.modal { padding: 12px; z-index: 210; }
#game-launch .game-shell-box.modal-box {
  display: flex; flex-direction: column; width: min(1480px, calc(100vw - 24px));
  max-width: none; height: min(900px, calc(100dvh - 24px)); max-height: none;
  overflow: hidden; background: #081422; border: 1px solid var(--border-strong);
}
#game-launch .game-shell-box.is-immersive { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
.gsp-bar { min-height: 58px; display: flex; align-items: center; gap: 10px; padding: 6px 14px; background: var(--modal-head); border-bottom: 1px solid var(--border); }
.gsp-icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 9px; background: var(--chip); color: var(--text); cursor: pointer; }
.gsp-icon:hover,.gsp-icon:focus-visible { color: var(--primary-light); border-color: var(--primary); outline: none; }
.gsp-icon svg { width: 19px; height: 19px; }
.gsp-title { min-width: 0; flex: 1; }
.gsp-title h3 { margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 800 14px var(--font-display); color: var(--text-strong); }
.gsp-title span { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
.gsp-balance { flex: none; color: var(--primary-light); font-weight: 800; font-variant-numeric: tabular-nums; font-size: 13px; }
.gsp-stage { position: relative; flex: 1; min-height: 0; background: #08111f; }
.gsp-stage iframe { display: block; width: 100%; height: 100%; border: 0; background: #08111f; }
.gsp-loading,.gsp-error { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; background: #081422; color: var(--text); }
.gsp-loading strong,.gsp-error strong { font-size: 19px; color: var(--primary-light); }
.gsp-loading small,.gsp-error p { max-width: 420px; color: var(--muted); line-height: 1.5; }
.gsp-spinner { width: 42px; height: 42px; border: 3px solid #ffffff2d; border-top-color: var(--primary-light); border-radius: 50%; animation: gsp-spin .8s linear infinite; }
@keyframes gsp-spin { to { transform: rotate(360deg); } }
.gsp-error > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.gsp-error button,.gsp-soft button { padding: 10px 14px; border-radius: 8px; background: var(--chip); color: var(--text); border: 1px solid var(--border); cursor: pointer; }
.gsp-error button:first-child,.gsp-soft button { background: var(--primary); color: #091321; border-color: var(--primary); font-weight: 800; }
.gsp-soft { position: absolute; z-index: 3; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(560px, calc(100% - 32px)); display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--modal); box-shadow: var(--shadow-card); color: var(--text); font-size: 12px; }
.gsp-loading[hidden],.gsp-error[hidden],.gsp-soft[hidden],.gsp-balance[hidden] { display: none !important; }
@media (max-width: 919px) {
  #game-launch.modal { padding: 0; align-items: center; }
  #game-launch .game-shell-box.modal-box { width: min(640px, calc(100vw - 18px)); height: min(76dvh, 680px); max-height: none; border-radius: 14px; }
  #game-launch .game-shell-box.is-immersive { width: 100vw; height: 100dvh; border-radius: 0; }
  .gsp-bar { min-height: 54px; padding: 6px 8px; gap: 7px; }
  .gsp-icon { width: 34px; height: 34px; }
  .gsp-title h3 { font-size: 12px; }
  .gsp-title span { font-size: 10px; }
  .gsp-balance { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .gsp-spinner { animation-duration: 2s; } }
