/* Pixel cursors share geometry, not font glyphs. State rules remain in menu-cursor.js/CSS.
   7x9 integer-pixel art inside a 12x16 slot, with 8px to action text.
   This file must load after legacy cursor/type rules. */
:root{--pixel-cursor-ink:#343a3c;--pixel-cursor-solid:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%227%22%20height%3D%229%22%20viewBox%3D%220%200%207%209%22%3E%3Cg%20fill%3D%22black%22%3E%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%221%22%20width%3D%222%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%222%22%20width%3D%223%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%223%22%20width%3D%225%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%224%22%20width%3D%227%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%225%22%20width%3D%225%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%226%22%20width%3D%223%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%227%22%20width%3D%222%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");--pixel-cursor-hollow:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%227%22%20height%3D%229%22%20viewBox%3D%220%200%207%209%22%3E%3Cg%20fill%3D%22black%22%3E%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");--pixel-cursor-down:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%229%22%20height%3D%227%22%20viewBox%3D%220%200%209%207%22%3E%3Cg%20fill%3D%22black%22%3E%3Crect%20x%3D%228%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%220%22%20width%3D%221%22%20height%3D%222%22%2F%3E%3Crect%20x%3D%226%22%20y%3D%220%22%20width%3D%221%22%20height%3D%223%22%2F%3E%3Crect%20x%3D%225%22%20y%3D%220%22%20width%3D%221%22%20height%3D%225%22%2F%3E%3Crect%20x%3D%224%22%20y%3D%220%22%20width%3D%221%22%20height%3D%227%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%220%22%20width%3D%221%22%20height%3D%225%22%2F%3E%3Crect%20x%3D%222%22%20y%3D%220%22%20width%3D%221%22%20height%3D%223%22%2F%3E%3Crect%20x%3D%221%22%20y%3D%220%22%20width%3D%221%22%20height%3D%222%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}
.cursor-menu [data-menu-option]::before,
.primary::before,
.secondary::before,
.decline::before,
.option-card::before,
.combat-actions>details>summary::before,
.classic-choice button::before,
.node-page:has(.center-scene) .encounter-actions>.quiet-link::before,
.camp-actions .quiet-link::before,
.combat-menu button::before,
.node-types button::before,
.studio nav button::before,
.learn .result>button::before,
.exterior-enter::before,
.player-options button::before,
.player-confirm::before,
.title-screen>button::before,
.champion-title .title-actions button::before,
.review-actions button::before,
.export-actions a::before,
.export-actions button::before,
.transition-actions button::before,
.transition-overlay-controls .transition-continue::before,
.route .journey .choices button::before,
.route .journey .node-heading h2::before,
.prototype-tools>summary::before,
.combat-menu>summary::before,
.node-preview-menu>summary::before,
.review-choice-window .review-move-name i,
.journey-offers button>span,
.capture-portrait i,
.chapter-continue i{
 content:''!important;display:inline-block!important;box-sizing:content-box;
 width:12px!important;min-width:12px!important;height:16px!important;
 flex:0 0 12px!important;padding:0!important;border:0!important;
 margin:0 8px 0 0!important;vertical-align:middle;
 background:var(--pixel-cursor-ink)!important;
 -webkit-mask-image:var(--pixel-cursor-solid);mask-image:var(--pixel-cursor-solid);
 -webkit-mask-size:7px 9px;mask-size:7px 9px;
 -webkit-mask-position:2px 3px;mask-position:2px 3px;
 -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
 /* Inline marker elements retain semantic selection but cannot paint their old glyph. */
 font-size:0!important;line-height:0!important;color:transparent!important;text-shadow:none!important;
}
/* Exactly one spacing mechanism: cursor margin, not margin plus parent gap. */
.cursor-menu [data-menu-option],.player-confirm,.exterior-enter,.transition-continue,
.review-move-name,.journey-offers button,.primary,.secondary,.decline,.option-card{column-gap:0!important}
.champion-title .title-actions.cursor-menu [data-menu-option]{grid-template-columns:12px 4em;column-gap:8px!important}
.champion-title .title-actions.cursor-menu [data-menu-option]::before{margin:0!important;height:16px!important;align-self:center}
/* These markers are positioned against portraits or at the tail of dialogue, not before text. */
.player-options button::before,.capture-portrait i,.chapter-continue i{margin:0!important}
.player-options button::before{top:50%;transform:translateY(-50%)}
.capture-portrait i{left:-12px}
/* Empty marker cells reserve their width without looking selected. */
.review-choice-window .review-move-name i:empty,.journey-offers button>span:empty,.capture-portrait i:empty{visibility:hidden!important}
/* The source glyph is already replaced by a menu pseudo-element; never show both. */
.cursor-menu [data-menu-cursor-glyph]{display:none!important}
/* Route options deliberately retain hollow vs solid; retain the existing text hierarchy. */
.route .journey .choices button::before{visibility:visible!important;-webkit-mask-image:var(--pixel-cursor-hollow);mask-image:var(--pixel-cursor-hollow);margin:0!important}
.route .journey .choices button[aria-pressed=true]::before{-webkit-mask-image:var(--pixel-cursor-solid);mask-image:var(--pixel-cursor-solid)}
.route .journey .choices button{padding-left:20px!important}
.route .journey .node-heading h2::before{margin:0!important}
/* Disclosure is expansion, not a selected menu option. Same pixel family, downward when open. */
.prototype-tools[open]>summary::before,.combat-menu[open]>summary::before,.node-preview-menu[open]>summary::before,.combat-actions>details[open]>summary::before{
 -webkit-mask-image:var(--pixel-cursor-down);mask-image:var(--pixel-cursor-down);
 -webkit-mask-size:9px 7px;mask-size:9px 7px;-webkit-mask-position:1px 4px;mask-position:1px 4px;
}
/* Do not manufacture an active cursor on an unavailable command. */
.cursor-menu [data-menu-option]:disabled::before,.cursor-menu [data-menu-option][hidden]::before,
.primary:disabled::before,.secondary:disabled::before,.decline:disabled::before,.option-card:disabled::before,
.player-confirm:disabled::before,.exterior-enter:disabled::before,.transition-continue:disabled::before,
.review-actions button:disabled::before,.export-actions button:disabled::before{visibility:hidden!important}

/* Keep the empty viewport the same paper tone as short game pages. */
:root{background:#f3f1e9}
/* Production hides preview tools; the return action aligns with the content edge. */
@media(max-width:600px){.storage-page>header{padding-right:0}}
/* Nested sprite viewport must not inherit the full map SVG's 100% dimensions. */
.retro-map .chapter-walker>svg{width:16px;height:32px}
