/* The original turn RPG uses the same cabinet, with its loadout outside. */
.screen.core-open #coreDepthGame[data-mode=rpg]{padding:10px;gap:8px;overflow:hidden;}
#coreDepthGame[data-mode=rpg] .core-depth-grid{position:relative;display:block!important;flex:1 1 auto!important;min-height:0!important;height:0;}
#coreDepthGame[data-mode=rpg] .core-arena-shell{display:flex;flex-direction:column;position:relative;min-height:0!important;height:100%;padding:0!important;overflow:hidden!important;gap:0!important;background:#030805;}
#coreDepthGame[data-mode=rpg] :is(.core-sidecar,.core-foot,.core-global,.core-player-hud,.core-render-badge,.core-arcade-cards){display:none!important;}
#coreDepthGame[data-mode=rpg] .core-enemy-head{flex:none;min-height:0;padding:8px 12px;gap:8px;}
#coreDepthGame[data-mode=rpg] #coreEnemyName{font-size:18px;line-height:1.15;}
#coreDepthGame[data-mode=rpg] :is(.core-enemy-mods,.core-range-readout){display:none;}
#coreDepthGame[data-mode=rpg] .core-enemy-stage{flex:1 1 auto!important;min-height:0!important;height:0!important;aspect-ratio:auto!important;max-height:none!important;margin:0!important;border:0;}
#coreDepthGame[data-mode=rpg] .core-enemy-stage canvas{position:absolute;inset:0;width:100%;height:100%;min-height:0;}
#coreDepthGame[data-mode=rpg] .core-hp-line{flex:none;min-height:15px;padding:2px 12px;margin:0;font-size:10px;}
#coreDepthGame[data-mode=rpg] :is(.core-combat-readout,.core-status-effects){display:none!important;}
#coreDepthGame[data-mode=rpg] .core-rpg-intent{flex:none;min-width:0;padding:7px 12px;border-top:1px solid #4c4831;border-bottom:1px solid #27392c;background:linear-gradient(110deg,#1a1a10,#0a120d);color:#d7d0ad;font:11px/1.35 'Courier New',monospace;}
#coreDepthGame[data-mode=rpg] .core-rpg-intent-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-width:0;}
#coreDepthGame[data-mode=rpg] .core-rpg-intent-title{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0;font-size:11px;font-weight:700;letter-spacing:.015em;}
#coreDepthGame[data-mode=rpg] .core-rpg-intent-damage{flex:none;color:#edcf92;font-size:11px;white-space:nowrap;}
#coreDepthGame[data-mode=rpg] .core-rpg-intent :is(.core-rpg-intent-tell,.core-rpg-intent-hint){margin:2px 0 0;line-height:1.3;font-size:10px;}
#coreDepthGame[data-mode=rpg] .core-rpg-intent-tell{color:#9cac9d;}
#coreDepthGame[data-mode=rpg] .core-rpg-intent-hint{color:#cfdfcf;}
#coreDepthGame[data-mode=rpg] .core-rpg-intent[data-kind=recovery]{background:linear-gradient(110deg,#132719,#0a120d);border-top-color:#3e694a;}
#coreDepthGame[data-mode=rpg] .core-rpg-intent[data-turn=enemy]{border-top-color:#82634c;}
#coreDepthGame[data-mode=rpg] .core-rpg-intent[data-focus=ready]~.core-command-grid [data-core-action=attack]{color:#e8d8a5;border-color:#96804d;}
#coreDepthGame[data-mode=rpg] .core-turn-copy{display:flex;align-items:baseline;gap:9px;}
#coreDepthGame[data-mode=rpg] #coreTurnTitle{font-size:12px;}
#coreDepthGame[data-mode=rpg] #coreTurnDetail{font-size:10px;}
#coreDepthGame[data-mode=rpg] #coreThreatSummary{font-size:10px;margin:0;}
#coreDepthGame[data-mode=rpg] #coreRecordChase{display:none;}
#coreDepthGame[data-mode=rpg] .core-vitals{flex:none;gap:2px;margin:0;padding:5px 12px;}
#coreDepthGame[data-mode=rpg] .core-vital-row{font-size:10px;min-height:12px;}
#coreDepthGame[data-mode=rpg] .core-command-grid{flex:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:6px 10px;margin:0;background:#07100b;}
#coreDepthGame[data-mode=rpg] .core-command-grid button{min-height:45px;min-width:0;padding:5px;font-size:11px;}
#coreDepthGame[data-mode=rpg] .core-command-grid button b{font-size:11px;}
#coreDepthGame[data-mode=rpg] .core-command-grid button span{font-size:9px;line-height:1.3;}
#coreDepthGame[data-mode=rpg] .core-command-grid[inert]{opacity:.45;}
#coreDepthGame[data-mode=rpg] .core-control-strip{flex:none;min-height:28px;padding:5px 12px;}
#coreDepthGame[data-mode=rpg] .core-control-strip :is(b,small,span){font-size:11px;}
#coreDepthGame[data-mode=rpg] .core-status-effects{flex:none;padding:3px 12px;font-size:10px;}
#coreDepthGame[data-mode=rpg] #coreRunGate{display:flex;position:static!important;flex:1;min-height:0;flex-direction:column;align-items:center;justify-content:center;text-align:center;margin:0;border:0;padding:16px;overflow:auto;background:radial-gradient(ellipse at center,#0d1b12,#030805);}
#coreDepthGame[data-mode=rpg] #coreModeDescription{font-size:13px;line-height:1.65;max-width:48ch;color:#bdcec1;}
#coreDepthGame[data-mode=rpg] #coreStartRun{min-width:190px;min-height:44px;margin-top:14px;}
#coreDepthGame[data-mode=rpg][data-rpg-phase=ready] .core-arena-shell>:not(.core-legacy-bar):not(#coreRunGate){display:none!important;}
#coreDepthGame[data-mode=rpg][data-rpg-phase=reward] .core-arena-shell>:is(.core-enemy-stage,.core-enemy-head,.core-hp-line,.core-combat-readout){display:none!important;}
#coreDepthGame[data-mode=rpg] .core-choice-panel{flex:1;min-height:0;margin:0;padding:12px;overflow:auto;overscroll-behavior:contain;}
#coreDepthGame[data-mode=rpg] .core-choice-panel :is(button,.core-loot-card){min-height:42px;}
#coreDepthGame[data-mode=rpg] .core-choice-panel :is(b,strong){font-size:12px;}
#coreDepthGame[data-mode=rpg] .core-choice-panel :is(span,small,em){font-size:11px;}
#coreDepthGame[data-mode=rpg] [hidden]{display:none!important;}
.core-rpg-guide{margin:14px 0 0;padding:14px 0 0;border-top:1px solid #344939;color:#b3c9b9;font:12px/1.55 'Courier New',monospace;}
.core-rpg-guide[hidden]{display:none!important;}
.core-rpg-guide h3{margin:0 0 9px;color:#d3d5ad;font-size:11px;letter-spacing:.08em;}
.core-rpg-guide p{margin:8px 0;}
.core-rpg-guide dl{display:grid;gap:10px;margin:12px 0;}
.core-rpg-guide dt{color:#d3ddc9;font-size:11px;font-weight:700;}
.core-rpg-guide dd{margin:3px 0 0;}
.core-rpg-guide-note{color:#a8b7a6;font-size:11px;}
@container core-screen (max-width:600px){
  .screen.core-open #coreDepthGame[data-mode=rpg]{padding:4px;gap:4px;}
  #coreDepthGame[data-mode=rpg] .core-enemy-head{padding:3px 6px;}
  #coreDepthGame[data-mode=rpg] .core-entity-id{display:flex;align-items:center;gap:5px;}
  #coreDepthGame[data-mode=rpg] #coreEnemyTier{display:none;}
  #coreDepthGame[data-mode=rpg] .core-stage-meta{display:flex;align-items:center;gap:5px;}
  #coreDepthGame[data-mode=rpg] #coreEnemyName{font-size:12px;}
  #coreDepthGame[data-mode=rpg] .core-enemy-head :is(span,b){font-size:9px;}
  #coreDepthGame[data-mode=rpg] .core-combat-readout{display:none;}
  #coreDepthGame[data-mode=rpg] :is(#coreTurnDetail,#coreThreatSummary){display:none;}
  #coreDepthGame[data-mode=rpg] #coreTurnTitle{font-size:10px;}
  #coreDepthGame[data-mode=rpg] .core-hp-line{min-height:10px;padding:1px 6px;font-size:8px;}
  #coreDepthGame[data-mode=rpg] .core-vitals{padding:3px 6px;gap:1px;}
  #coreDepthGame[data-mode=rpg] .core-vital-row{font-size:8px;min-height:9px;display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;}
  #coreDepthGame[data-mode=rpg] .core-vital-row.xp{display:none;}
  #coreDepthGame[data-mode=rpg] .core-command-grid{padding:3px 5px;gap:3px;}
  #coreDepthGame[data-mode=rpg] .core-command-grid button{min-height:32px;padding:4px 2px;}
  #coreDepthGame[data-mode=rpg] .core-command-grid button b{font-size:9px;}
  #coreDepthGame[data-mode=rpg] .core-command-grid button :is(span,i){display:none;}
  #coreDepthGame[data-mode=rpg] .core-rpg-intent{padding:4px 6px;}
  #coreDepthGame[data-mode=rpg] .core-rpg-intent-heading{gap:5px;}
  #coreDepthGame[data-mode=rpg] :is(.core-rpg-intent-title,.core-rpg-intent-damage){font-size:9px;line-height:1.3;}
  #coreDepthGame[data-mode=rpg] .core-rpg-intent-tell{display:none;}
  #coreDepthGame[data-mode=rpg] .core-rpg-intent .core-rpg-intent-hint{font-size:9px;line-height:1.3;margin-top:2px;}
  #coreDepthGame[data-mode=rpg] .core-control-strip{min-height:22px;padding:3px 6px;}
  #coreDepthGame[data-mode=rpg] .core-control-strip :is(b,small,span){font-size:9px;}
  #coreDepthGame[data-mode=rpg] .core-choice-panel{padding:7px;}
  #coreDepthGame[data-mode=rpg] #coreModeDescription{font-size:11px;line-height:1.5;}

  /* Two compact shared rows leave the creature room inside a phone-sized CRT. */
  #coreDepthGame[data-mode=rpg]:is([data-rpg-phase=player],[data-rpg-phase=windup],[data-rpg-phase=resolving]) .core-arena-shell{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:32px minmax(0,1fr) 17px auto auto;align-items:stretch;}
  #coreDepthGame[data-mode=rpg] .core-arena-shell>.core-legacy-bar{grid-column:2;grid-row:1;justify-content:flex-end;min-height:32px;padding:0 4px;gap:3px;border-bottom:0;}
  #coreDepthGame[data-mode=rpg] .core-arena-shell>.core-legacy-bar>span{display:none;}
  #coreDepthGame[data-mode=rpg] .core-arena-shell>.core-legacy-bar button{min-height:28px;padding:4px 5px;font-size:9px;}
  #coreDepthGame[data-mode=rpg] .core-arena-shell>.core-enemy-head{grid-column:1;grid-row:1;flex-direction:column;justify-content:center;gap:1px;padding:2px 6px;overflow:hidden;}
  #coreDepthGame[data-mode=rpg] .core-enemy-head .core-entity-id{display:block;min-width:0;width:100%;}
  #coreDepthGame[data-mode=rpg] .core-enemy-head #coreEnemyName{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;line-height:1.15;letter-spacing:.025em;}
  #coreDepthGame[data-mode=rpg] .core-enemy-head .core-stage-meta{gap:5px;line-height:1;}
  #coreDepthGame[data-mode=rpg] .core-enemy-head .core-stage-meta :is(span,b){font-size:8px;line-height:1;letter-spacing:0;}
  #coreDepthGame[data-mode=rpg] .core-arena-shell>.core-enemy-stage{grid-column:1/-1;grid-row:2;height:100%!important;}
  #coreDepthGame[data-mode=rpg] .core-arena-shell>.core-hp-line{grid-column:1;grid-row:3;min-width:0;min-height:0;padding:2px 4px;gap:4px;font-size:8px;}
  #coreDepthGame[data-mode=rpg] .core-hp-line b{font-size:8px;white-space:nowrap;}
  #coreDepthGame[data-mode=rpg] .core-arena-shell>.core-vitals{grid-column:2;grid-row:3;min-width:0;padding:2px 4px;border:0;}
  #coreDepthGame[data-mode=rpg] .core-vitals .core-vital-row{grid-template-columns:auto minmax(12px,1fr) auto;gap:4px;line-height:1;}
  #coreDepthGame[data-mode=rpg] .core-vital-row b{font-size:8px;white-space:nowrap;}
  #coreDepthGame[data-mode=rpg] .core-arena-shell>.core-rpg-intent{grid-column:1/-1;grid-row:4;}
  #coreDepthGame[data-mode=rpg] .core-arena-shell>.core-command-grid{grid-column:1/-1;grid-row:5;padding:2px 4px;border:0;}
}
