/* V5 layout boundaries: title, actor, nameplate, controls and notices each occupy a real box. */
body.player-v25-body.v25-lobby-body .game-lobby.lobby-layout-v5 {
 display:grid!important;grid-template-columns:minmax(190px,.75fr) minmax(0,1.65fr) minmax(205px,.8fr)!important;
 grid-template-areas:"left center right"!important;grid-template-rows:auto!important;align-items:center!important;
 gap:clamp(12px,2vw,26px)!important;height:auto!important;min-height:0!important;overflow:visible!important;padding:20px!important;
}
body.player-v25-body.v25-lobby-body .game-lobby.lobby-layout-v5 > .lobby-center {
 display:grid!important;grid-area:center!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto!important;
 position:relative!important;inset:auto!important;order:0!important;align-content:start!important;align-items:center!important;justify-items:center!important;
 width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;gap:12px!important;
}
body.player-v25-body.v25-lobby-body .game-lobby.lobby-layout-v5 > .lobby-center > .lobby-world-title {
 display:block!important;position:static!important;inset:auto!important;grid-row:1!important;order:0!important;transform:none!important;
 width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;margin:0!important;padding:0 8px!important;text-align:center!important;
}
body.player-v25-body.v25-lobby-body .game-lobby.lobby-layout-v5 .lobby-world-title > small,
body.player-v25-body.v25-lobby-body .game-lobby.lobby-layout-v5 .lobby-mobile-welcome,
body.player-v25-body.v25-lobby-body .game-lobby.lobby-layout-v5 .lobby-character-aura {display:none!important}
body.player-v25-body.v25-lobby-body .game-lobby.lobby-layout-v5 .lobby-world-title .lobby-logo {
 display:block!important;width:calc(var(--art-lobby-logo-width,220)*1px)!important;max-width:90%!important;height:auto!important;max-height:150px!important;
 object-fit:contain!important;margin:0 auto!important;padding:0!important;
}
body.player-v25-body.v25-lobby-body .game-lobby.lobby-layout-v5 .lobby-title-welcome {display:block!important;margin:8px 0 0!important;font-size:12px!important;line-height:1.5!important}
body.player-v25-body.v25-lobby-body .game-lobby.lobby-layout-v5 > .lobby-center > .lobby-character {
 display:block!important;position:relative!important;inset:auto!important;grid-row:2!important;order:1!important;
 width:100%!important;max-width:100%!important;height:calc(var(--art-lobby-stage-height,520)*1px)!important;min-height:0!important;
 margin:0!important;padding:0!important;transform:none!important;background-size:contain!important;background-position:center bottom!important;background-repeat:no-repeat!important;
}
body.player-v25-body.v25-lobby-body .game-lobby.lobby-layout-v5 > .lobby-center > .lobby-ground-name {
 display:grid!important;position:relative!important;inset:auto!important;grid-row:3!important;order:2!important;
 left:auto!important;bottom:auto!important;transform:none!important;translate:none!important;width:min(380px,100%)!important;max-width:100%!important;
 height:auto!important;min-height:136px!important;margin:0!important;padding:calc(var(--art-lobby-name-inset,34)*1px) 28px 22px!important;
 align-content:center!important;box-sizing:border-box!important;gap:8px!important;background-size:100% 100%!important;
}
body.player-v25-body.v25-lobby-body .game-lobby.lobby-layout-v5 .lobby-ground-name .lobby-name-row {margin:0!important;min-height:34px!important;align-items:center!important}
body.player-v25-body.v25-lobby-body .game-lobby.lobby-layout-v5 > .lobby-left,
body.player-v25-body.v25-lobby-body .game-lobby.lobby-layout-v5 > .lobby-right {
 display:block!important;position:relative!important;inset:auto!important;transform:none!important;width:100%!important;max-width:none!important;
 height:auto!important;min-height:0!important;margin:0!important;align-self:center!important;box-sizing:border-box!important;
}
body.player-v25-body.v25-lobby-body .game-lobby.lobby-layout-v5 > .lobby-left {grid-area:left!important;order:4!important}
body.player-v25-body.v25-lobby-body .game-lobby.lobby-layout-v5 > .lobby-right {grid-area:right!important;order:3!important}

/* The image is its own landscape stage. Logo and form never cover the action. */
body.auth-v25-body .auth-v25-hero.auth-login-hero {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;min-height:0!important;min-width:0!important;height:auto!important;overflow:visible!important;align-content:center!important}
body.auth-v25-body .auth-login-hero .login-scene-brand {display:grid;place-items:center;min-width:0}
body.auth-v25-body .auth-login-hero .auth-hero-logo {width:min(220px,60%)!important;max-width:100%!important;max-height:130px!important;height:auto!important;margin:0 auto!important;object-fit:contain!important}
body.auth-v25-body .auth-login-hero .auth-login-scene {position:relative;isolation:isolate;aspect-ratio:3/2;min-width:0;overflow:hidden;border:1px solid #c4a46b88;border-radius:12px;background:#0b1524;box-shadow:0 16px 36px #0007}
body.auth-v25-body .auth-login-hero .login-scene-image {display:block;width:100%;height:100%;max-width:100%;margin:0;object-fit:contain;transform-origin:50% 53%}
.login-scene-light,.login-scene-embers {position:absolute;inset:0;pointer-events:none;opacity:0}
.login-scene-light {background:radial-gradient(ellipse at 52% 42%,#ffc97524,transparent 52%);mix-blend-mode:screen}
.login-scene-embers i {position:absolute;bottom:-5%;left:16%;width:3px;height:3px;border-radius:50%;background:#ffd08a;box-shadow:0 0 8px #ef8148;--ember-delay:0s}
.login-scene-embers i:nth-child(2){left:31%;--ember-delay:-2s}.login-scene-embers i:nth-child(3){left:45%;--ember-delay:-4s}.login-scene-embers i:nth-child(4){left:63%;--ember-delay:-1s}.login-scene-embers i:nth-child(5){left:77%;--ember-delay:-5s}.login-scene-embers i:nth-child(6){left:88%;--ember-delay:-3s}
.login-scene-moving .login-scene-image {animation:login-scene-pan var(--login-pan-duration,24s) ease-in-out infinite alternate}
.login-scene-moving .login-scene-light {opacity:1;animation:login-fire-light 5s ease-in-out infinite alternate}
.login-scene-moving .login-scene-embers {opacity:1}.login-scene-moving .login-scene-embers i {animation:login-ember-rise 7s linear var(--ember-delay) infinite}
.login-scene-low .login-scene-embers {display:none}.login-scene-low .login-scene-light {animation:none;opacity:.4}
body.auth-v25-body .auth-login-hero .login-scene-caption {position:static;margin:0!important;padding:0 10px;text-align:center;font-size:13px!important;line-height:1.7;color:#e4d3b4!important}
@keyframes login-scene-pan {from{transform:scale(1)}to{transform:scale(1.015)}}
@keyframes login-fire-light {from{opacity:.18}to{opacity:.65}}
@keyframes login-ember-rise {0%{transform:translate(0,0);opacity:0}15%{opacity:.7}100%{transform:translate(-25px,-230px);opacity:0}}
body.auth-login-v5 .auth-v25-card .auth-v25-field input {color:#fff0d5!important;-webkit-text-fill-color:#fff0d5!important;caret-color:#f3cc78!important;background:#0b1524!important}
body.auth-login-v5 .auth-v25-card .auth-v25-field input:-webkit-autofill {-webkit-box-shadow:0 0 0 1000px #0b1524 inset!important;-webkit-text-fill-color:#fff0d5!important}

/* Anchor buttons must occupy a complete line instead of wrapping their text boxes. */
body.admin-body .map-config-card .map-config-links {display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;margin:14px 0!important;min-width:0!important}
body.admin-body .map-config-card .map-config-links > a.btn {display:flex!important;position:static!important;align-items:center!important;justify-content:center!important;float:none!important;transform:none!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:42px!important;height:auto!important;padding:10px 12px!important;margin:0!important;white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.5!important;text-align:center!important}
body.admin-body .map-config-card .row-actions {display:flex!important;flex-wrap:wrap!important;align-items:stretch!important;gap:8px!important}
body.admin-body .map-config-card .row-actions > button {flex:1 1 150px!important;min-width:0!important;white-space:normal!important;line-height:1.5!important;height:auto!important;margin:0!important}
body.admin-body .stage-default-note {line-height:1.7;overflow-wrap:anywhere}

/* Show the entire transparent enemy, not a cropped CSS background. */
body.player-v25-body .journey-detail .journey-detail-cover.journey-preview-v5 {display:grid!important;place-items:center!important;position:relative!important;height:230px!important;min-height:0!important;background-image:none!important;background-color:#0b1423!important;overflow:hidden!important}
body.player-v25-body .journey-preview-v5 > img {display:block!important;width:100%!important;height:100%!important;min-height:0!important;object-fit:contain!important;object-position:center!important;padding:8px!important;box-sizing:border-box!important}
body.player-v25-body .journey-preview-v5 > img[hidden] {display:none!important}
body.player-v25-body .journey-preview-v5 > img.journey-preview-scene {object-fit:cover!important;padding:0!important}
body.player-v25-body #resultModal > .modal-box.battle-result-v5 {position:relative!important;box-sizing:border-box!important;width:min(480px,calc(100vw - 28px))!important;max-width:100%!important;max-height:calc(100dvh - 48px)!important;overflow:auto!important;padding:28px!important;border:1px solid #b89550!important;border-radius:14px!important;background:#0c1626!important;background-image:none!important;box-shadow:0 24px 80px #000a!important}
body.player-v25-body #resultModal > .battle-result-v5::before,
body.player-v25-body #resultModal > .battle-result-v5::after {content:none!important;display:none!important}
body.player-v25-body .battle-result-v5 > h2 {margin:0 0 12px!important;font-size:24px!important;line-height:1.4!important;color:#ffe2a2!important}
body.player-v25-body .battle-result-v5 .notice {position:static!important;width:100%!important;box-sizing:border-box!important;margin:14px 0!important;overflow-wrap:anywhere!important}
body.player-v25-body .battle-result-actions {display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;margin-top:22px!important}
body.player-v25-body .battle-result-actions > .battle-continue {display:flex!important;align-items:center!important;justify-content:center!important;min-height:52px!important;padding:12px 18px!important;font-size:18px!important;font-weight:700!important;line-height:1.5!important;color:#221a10!important;background:linear-gradient(110deg,#ffe7a3,#d3a34b)!important;border:1px solid #ffe4a0!important;border-radius:10px!important;box-shadow:0 0 24px #dfb85c38!important;white-space:normal!important}
body.player-v25-body .battle-result-actions > .battle-return {display:flex!important;align-items:center!important;justify-content:center!important;min-height:44px!important;padding:8px 12px!important;font-size:13px!important;line-height:1.5!important;color:#c6cbd4!important;background:transparent!important;border:1px solid transparent!important;box-shadow:none!important;text-decoration:underline!important;white-space:normal!important}
body.player-v25-body .battle-result-actions > a:focus-visible {outline:2px solid #fff0c4!important;outline-offset:3px!important}

@media(max-width:1000px){
 body.player-v25-body.v25-lobby-body .game-lobby.lobby-layout-v5 {grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"center" "right" "left"!important;padding:14px!important;gap:18px!important}
 body.player-v25-body.v25-lobby-body .game-lobby.lobby-layout-v5 > .lobby-center {max-width:640px!important;justify-self:center!important}
 body.player-v25-body.v25-lobby-body .game-lobby.lobby-layout-v5 > .lobby-left,
 body.player-v25-body.v25-lobby-body .game-lobby.lobby-layout-v5 > .lobby-right {max-width:640px!important;justify-self:center!important;align-self:start!important;padding:14px!important}
 body.player-v25-body.v25-lobby-body .game-lobby.lobby-layout-v5 > .lobby-right {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 body.player-v25-body.v25-lobby-body .game-lobby.lobby-layout-v5 > .lobby-right > .lobby-panel-title {grid-column:1/-1!important}
}
@media(max-width:700px){
 body.player-v25-body .player-game-shell {padding-top:0!important}
 body.player-v25-body .player-game-shell > .player-hud.player-hud-v5 {position:relative!important;inset:auto!important;transform:none!important;width:100%!important;max-width:none!important;margin:0!important}
 body.player-v25-body .player-game-shell > .player-hud.player-hud-v5 {display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;grid-template-areas:"profile profile" "balance install"!important;gap:8px!important;height:auto!important;min-height:0!important;padding:8px!important;align-items:stretch!important}
 body.player-v25-body .player-hud.player-hud-v5 > .hud-profile {grid-area:profile!important;display:flex!important;width:100%!important;max-width:none!important;min-width:0!important;min-height:54px!important;margin:0!important;padding:8px 12px!important;box-sizing:border-box!important;gap:10px!important}
 body.player-v25-body .player-hud.player-hud-v5 .hud-player-copy {min-width:0!important;flex:1!important}
 body.player-v25-body .player-hud.player-hud-v5 .hud-player-copy > b {display:block!important;max-width:100%!important;font-size:15px!important;line-height:1.4!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
 body.player-v25-body .player-hud.player-hud-v5 .hud-player-copy > small {font-size:12px!important;line-height:1.5!important}
 body.player-v25-body .player-hud.player-hud-v5 > .hud-coin {grid-area:balance!important;display:grid!important;grid-template-columns:28px minmax(0,1fr) auto!important;width:100%!important;max-width:none!important;min-width:0!important;min-height:48px!important;gap:9px!important;margin:0!important;padding:8px 10px!important;box-sizing:border-box!important}
 body.player-v25-body .player-hud.player-hud-v5 .hud-coin > span:nth-child(2) {min-width:0!important}
 body.player-v25-body .player-hud.player-hud-v5 .hud-coin b {font-size:15px!important;line-height:1.4!important;white-space:normal!important;overflow-wrap:anywhere!important}
 body.player-v25-body .player-hud.player-hud-v5 .hud-coin .hud-coin-plus {min-height:32px!important;font-size:12px!important;padding:5px 8px!important;gap:5px!important}
 body.player-v25-body .player-hud.player-hud-v5 > .hud-install {grid-area:install!important;position:static!important;transform:none!important;align-self:stretch!important;min-width:66px!important;width:auto!important;max-width:110px!important;min-height:48px!important;height:auto!important;margin:0!important;padding:8px 12px!important;border-radius:8px!important;font-size:12px!important;line-height:1.4!important;white-space:normal!important}
 body.player-v25-body .player-hud.player-hud-v5 > .hud-brand-logo,
 body.player-v25-body .player-hud.player-hud-v5 > .hud-logout {display:none!important}
 body.player-v25-body.v25-lobby-body .player-stage {height:auto!important;min-height:0!important;padding-bottom:95px!important;overflow:visible!important}
 body.player-v25-body.v25-lobby-body .game-lobby.lobby-layout-v5 {padding:12px 10px!important;gap:16px!important}
 body.player-v25-body.v25-lobby-body .game-lobby.lobby-layout-v5 > .lobby-center {display:grid!important;gap:10px!important;height:auto!important;min-height:0!important}
 body.player-v25-body.v25-lobby-body .game-lobby.lobby-layout-v5 .lobby-world-title .lobby-logo {width:calc(var(--art-lobby-logo-width-mobile,170)*1px)!important;max-height:115px!important}
 body.player-v25-body.v25-lobby-body .game-lobby.lobby-layout-v5 > .lobby-center > .lobby-character {height:calc(var(--art-lobby-stage-height-mobile,380)*1px)!important;min-height:0!important;width:100%!important;max-width:100%!important}
 body.player-v25-body.v25-lobby-body .game-lobby.lobby-layout-v5 > .lobby-center > .lobby-ground-name {width:100%!important;min-height:136px!important;padding:calc(var(--art-lobby-name-inset-mobile,32)*1px) 24px 22px!important;margin:0!important}
 body.player-v25-body.v25-lobby-body .game-lobby.lobby-layout-v5 > .lobby-left,
 body.player-v25-body.v25-lobby-body .game-lobby.lobby-layout-v5 > .lobby-right {width:100%!important;padding:12px!important}
 body.auth-v25-body .auth-v25-hero.auth-login-hero {gap:10px!important;margin-bottom:20px!important}
 body.auth-v25-body .auth-login-hero .auth-hero-logo {width:170px!important;max-height:110px!important}
 body.auth-v25-body .auth-login-hero .login-scene-caption {font-size:12px!important}
}
@media(prefers-reduced-motion:reduce){.login-scene-moving .login-scene-image,.login-scene-moving .login-scene-light,.login-scene-moving .login-scene-embers i{animation:none!important}.login-scene-embers{display:none!important}}

body.admin-body .defaults-links {display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
body.admin-body .defaults-links a.btn {display:inline-flex;align-items:center;min-height:40px;white-space:normal;line-height:1.5;margin:0}
body.admin-body .defaults-fields {display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;margin:16px 0;min-width:0}
body.admin-body .defaults-fields label {display:grid;gap:6px;min-width:0}
body.admin-body .defaults-fields input,body.admin-body .defaults-fields select,body.admin-body .defaults-fields textarea {box-sizing:border-box;width:100%;min-width:0}
body.admin-body .defaults-save-bar {position:sticky;bottom:0;z-index:10;display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:16px;margin-top:20px;background:#171429;border:1px solid #cba860;border-radius:12px}
body.admin-body .defaults-save-bar button {white-space:normal;line-height:1.5;min-height:48px}
body.admin-body .defaults-table-wrap {overflow:auto;max-height:55vh;margin:16px 0}
body.admin-body .defaults-table-wrap td {max-width:420px;white-space:normal;overflow-wrap:anywhere}
body.admin-body details.admin-card > summary {cursor:pointer;padding:12px 0;line-height:1.5;font-weight:700}
