.wf2-page {
  --bright: #edf4ff;
  --soft: #aabfda;
  background: radial-gradient(ellipse at 70% 0%, #142840, #0b1323 58%);
  color: var(--bright);
  min-height: 100dvh;
}
.wf2-page .player-identity h1 { margin: 0; }
.wf2-page #player-card {
  border: 1px solid #2f4c6c;
  border-radius: 15px;
  background: #132138;
}
.wf2-page select, .wf2-button {
  border: 1px solid #57749c;
  border-radius: 8px;
  background: #172d49;
  color: #edf5ff;
  font: inherit;
}
.wf2-button { min-height: 44px; padding: 7px 12px; font-weight: 750; cursor: pointer; }
.wf2-page button:disabled { opacity: .5; cursor: not-allowed; }
.wf2-page button:focus-visible, .wf2-page summary:focus-visible { outline: 2px solid #aacfff; outline-offset: 3px; }
.wf2-page .screen-frame { width: min(100%, 960px); margin: auto; }
.wf2-page .apk-panel { grid-template-columns: minmax(0, 1fr); }
.wf2-page .apk-panel #forget-game { justify-self: start; }
.wf2-page .apk-panel small, .wf2-page .small { color: var(--soft); font-size: 13px; }
.wf2-page .screen-frame:has(.apk-overlay:not([hidden])) { min-height: 330px; }
.wf2-developer-input summary, #runtime-details summary { cursor: pointer; }
.wf2-developer-input .file-button { display: block; margin-top: 7px; }
.wf2-page #play-stage { position: relative; }
.wf2-page #game-wrap { width: 100%; }
.wf2-page #game {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 3;
  background: #030711;
  image-rendering: pixelated;
  touch-action: none;
}
.wf2-page #play-stage.immersive {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  color: var(--bright);
  background: #02050c;
}
.wf2-page #play-stage.immersive #game-wrap { width: var(--frame-width); height: var(--frame-height); }
.wf2-page #play-stage.immersive #game { width: 100%; height: 100%; }
.wf2-page.immersive-open { overflow: hidden; }
.wf2-page #stats { color: #b4d1f4; font-size: 12px; font-variant-numeric: tabular-nums; }
.wf2-page #cache-warning { color: #ffe0a5; }
#runtime-details { margin-top: 14px; padding: 9px 12px; border: 1px solid #385576; border-radius: 9px; }
#runtime-log { overflow: auto; max-height: 12em; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
.wf2-page #mapping-panel .map-create-actions:has([data-op="new-joystick"][hidden]) { grid-template-columns: 1fr; }

.wf2-page .player-dialog .panel-body { font-size: 14px; }
.wf2-page .save-row { display:flex; align-items:center; gap:10px; border-bottom:1px solid #304864; }
.wf2-page .save-row-detail { color:var(--soft); font-size:12px; }
.wf2-page .player-dialog .save-toolbar button, .wf2-page .player-dialog .save-secondary button { border:1px solid #52749a; border-radius:8px; background:#1b3554; color:#edf5ff; cursor:pointer; }
.wf2-page .player-dialog .save-toolbar .danger { border-color:#bc5b70; background:#542437; }
.wf2-page #backup-panel section { margin-top:20px; }
.wf2-page #backup-panel section h2 { font-size:18px; }
.wf2-page #wf2-cloud-conflict { margin-top:12px; padding:12px; border:1px solid #bd975f; border-radius:9px; background:#322b24; }
