/* Approved FRLG menu tiles. Functional pixel sprites stay sprites. */
:root{--blue:#354437;--line:#b8bcb1}
button,summary{border-radius:0!important;box-shadow:none!important;transition:none!important}
button:active:not(:disabled){transform:none}
button:focus-visible,summary:focus-visible{outline:2px dashed #263b31;outline-offset:2px}
button:not(.ball):not(.secret):not([data-node-member]):not([data-step]):not([data-expand]):not(.skill-option),summary{min-height:44px}
.primary,.secondary,.decline,.option-card,.quiet-link,.map-head button,.combat-actions>button,.combat-actions>details>summary,#close,[data-close-party],.order-buttons button{border:6px solid transparent!important;border-image:url('assets/choice-frame.png') 8 fill stretch!important;background:transparent!important;color:#343a3c!important;padding:4px 10px;line-height:20px;font-weight:400}
.decline{color:#91484c!important}
.primary:before,.secondary:before,.decline:before,.option-card:before,.combat-actions>details>summary:before{content:'▸';display:inline-block;width:16px;flex:none}
button:disabled{opacity:.5;filter:grayscale(1)}
button:hover:not(:disabled),summary:hover{color:#182b20!important}
.classic-choice button:before{content:'▸'}
.studio,.studio nav,.studio nav [aria-pressed=true],dialog,.combat-menu>div,.combat-items>div,.node-preview-menu nav{border-radius:0!important;box-shadow:none!important;background:#fffef5!important}
dialog,.combat-menu>div,.combat-items>div,.node-preview-menu nav{border:8px solid transparent!important;border-image:url('assets/choice-frame.png') 8 fill stretch!important;image-rendering:pixelated}
dialog::backdrop{background:#17221c66;backdrop-filter:none}
.studio nav button[aria-pressed=true],.node-types button[aria-pressed=true],.combat-menu button[aria-pressed=true]{background:transparent!important;color:#202a22}.studio nav button[aria-pressed=true]:before,.node-types button[aria-pressed=true]:before,.combat-menu button[aria-pressed=true]:before{content:'▸';margin-right:4px}
.skill-list,.new-move,.result-card,.rest-layout,.encounter-card{border-radius:0!important;box-shadow:none!important;background:#fffef5!important}
.skill-list,.new-move{border:8px solid transparent;border-image:url('assets/choice-frame.png') 8 fill stretch}
.skill-option{background:transparent!important}.skill-option[aria-pressed=true]{outline:2px solid #50664e;outline-offset:-3px}
.radio{border-radius:0!important}.radio:has(+*){border-radius:0}
.roster-line,.sortable-member,.ordered-skills,.ordered-skills>div{border-radius:0!important;box-shadow:none!important}.roster-line>button,.skill-option{min-height:44px}
.combat-console{border:8px solid transparent!important;border-image:url('assets/choice-frame.png') 8 fill stretch!important;border-radius:0!important;box-shadow:none!important;background:#fffef5!important}
.combat-skills{border:8px solid transparent!important;border-image:url('assets/move-list-frame.png') 5 fill stretch!important;background:transparent!important;image-rendering:pixelated;padding:3px 6px!important}
.combat-actions{background:#fffef5!important;padding:4px 6px!important;gap:8px}
.combat-actions>button,.combat-actions>details>summary{padding:0 6px!important;font-size:16px!important}
.combat-actions .primary{flex:1}
.combat-party{border-top:2px solid #aab4a3;border-bottom:0;background:#fffef5!important}
.combat-party button{border-radius:0!important}.combat-party button[aria-pressed=true]{color:#253b2b!important}
.combat-arena{border-radius:0!important}
@media(max-width:360px){.combat-actions>button,.combat-actions>details>summary{font-size:12px!important;padding:0 2px!important}.combat-actions>button:before,.combat-actions>details>summary:before{width:10px}.primary,.secondary,.decline,.quiet-link{padding:3px 5px}.order-buttons button{padding:0;min-width:44px}}
/* Related commands share one menu, rather than one framed card per command. */
.combat-actions{border:8px solid transparent;border-image:url('assets/choice-frame.png') 8 fill stretch;image-rendering:pixelated;gap:4px!important;padding:0!important}
.combat-actions>button,.combat-actions>details>summary{border:0!important;border-image:none!important;white-space:nowrap;padding:0 4px!important;font-size:14px!important}
.combat-actions>button:before,.combat-actions>details>summary:before{width:10px}
@media(max-width:360px){.combat-actions>button,.combat-actions>details>summary{font-size:12px!important;padding:0 1px!important}}
.route .steps button{width:44px;height:44px;min-width:44px}
.route .steps button:focus-visible{outline:2px dashed #253b2b;outline-offset:2px}
.route .journey,.route .journey:has(.choices){grid-template-rows:44px 56px;height:126px}
.route .journey:has(.choices) .choices{height:56px!important}
.route .choices button{min-height:44px!important}
#party-dialog>.party-heading+p{display:none}
@media(max-width:360px){.route .journey{padding-left:5px;padding-right:5px}.route .steps{gap:0}}
.decline:hover:not(:disabled){color:#79383d!important}
.prototype-tools>summary,.combat-menu>summary,.node-preview-menu>summary{color:#343a3c!important;line-height:20px;padding:6px 8px;min-height:44px;display:flex;align-items:center;gap:6px}
.prototype-tools>summary:before,.combat-menu>summary:before,.node-preview-menu>summary:before{content:'▸'}
.prototype-tools[open]>summary:before,.combat-menu[open]>summary:before,.node-preview-menu[open]>summary:before{content:'▾'}
.prototype-tools>summary{border:6px solid transparent!important;border-image:url('assets/choice-frame.png') 8 fill stretch!important;background:transparent!important}
.bag-title{display:flex;align-items:center;gap:6px}.original-bag{display:inline-block;flex:none;width:24px;height:24px;background:url('assets/bag-male.png') no-repeat 0 0 / 24px 96px;image-rendering:pixelated}
@media(max-width:680px){.original-bag{width:20px;height:20px;background-size:20px 80px}}
.combat-arena .caught-sprite{margin:0 auto 4px}.combat-arena .result-card .encounter-actions{padding:0;margin:6px 0;gap:4px}.combat-arena .result-card{padding:6px 8px}.combat-arena .result-card h2{margin:4px 0}.combat-arena .result-card p{line-height:1.45;margin:4px 0}.combat-arena.has-result{background:#fffef5}
@media(max-width:360px){.combat-arena .result-card .encounter-actions{display:grid;grid-template-columns:1fr;gap:2px}.combat-arena .result-card .encounter-actions button{padding:0 4px;font-size:12px;min-height:44px}.combat-arena .caught-sprite{width:32px;height:32px}}
/* Frames identify windows, not every click target. */
.primary,.secondary,.decline,.option-card,.quiet-link,.map-head button,#close,[data-close-party],.order-buttons button,.route .node-heading .primary{border:0!important;border-image:none!important;background:transparent!important;box-shadow:none!important;min-height:44px}
.primary,.secondary,.decline,.quiet-link{padding:4px 8px}
.order-buttons button{min-width:44px;padding:0}.order-buttons button:not(:disabled):hover{background:#edf0e5!important}
button:focus-visible,summary:focus-visible{outline:2px dashed #263b31!important;outline-offset:1px!important}
.prototype-tools>summary{border:0!important;border-image:none!important;background:#f3f1e9!important}
.route .choices{border:0!important;border-image:none!important;background:transparent!important;padding:0!important}
.route .choices button[aria-pressed=true]{color:#253b2b!important}
.encounter-actions,.rest-options,.reward-options{border:0!important;border-image:none!important}
.rest-options .option-card+.option-card,.reward-options .option-card+.option-card{border-top:1px solid #b8bcb1!important}
.rest-layout{border:8px solid transparent!important;border-image:url('assets/choice-frame.png') 8 fill stretch!important}
.new-move{border:0!important;border-image:none!important;border-bottom:1px solid #b8bcb1!important;background:transparent!important}
/* Recovery changes content, not the surrounding page geometry. */
.node-page:not(:has(.center-scene)) .rest-layout{min-height:350px;padding:12px}
.node-page .rest-symbol{margin:0 0 8px;height:32px}
.node-page .rest-layout .encounter-actions{padding:4px 0 0;margin:4px 0}
.node-page .rest-layout .option-card{padding:4px 0;min-height:70px}
.node-page .rest-layout h2{font-size:20px;line-height:26px}
#party-dialog{scrollbar-gutter:stable}
.node-page:not(:has(.center-scene)) .rest-layout{min-height:370px}
.recovery-slot{min-height:156px;display:flex;flex-direction:column;justify-content:center}.recovery-slot>.primary{align-self:center}.node-page:has(.center-scene) .recovery-slot{min-height:110px}.recovery-slot .rest-options{width:100%}.center-scene{aspect-ratio:3/2}
.node-page:not(:has(.center-scene)) .rest-layout .encounter-actions{min-height:102px;display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center}
.node-page{position:relative}.node-page>.node-preview-menu{position:absolute;top:8px;right:78px;z-index:8}.node-page>.node-preview-menu[open]{background:#fffef5}
