/* M44: separate navigation tiles and coherent illustrated controls. */
body .workspace .surface button:where(:not(.nav-art-button):not(.item-slot):not(.empty-slot):not(.enemy):not([data-offer]):not([data-loot]):not([data-preview-type]):not([data-shop-quality]):not([data-quality]):not(.route-banner):not(.ostoya-feature):not(.sale-preview):not(.ostoya-pin):not(.adventure-node):not(.adv-node)){background-image:linear-gradient(135deg,#d8bd7420,transparent 45%),linear-gradient(180deg,#304132,#15251b);background-position:center;background-size:cover;color:#e8d5a5;text-shadow:0 1px 4px #000;border-radius:10px;box-shadow:0 4px 12px #0002}
body .workspace .surface button:not(.item-slot):not(.enemy):not(.ostoya-pin):not(.adventure-node)::before{pointer-events:none}
.workspace nav{border:0;background:transparent;box-shadow:none;backdrop-filter:none;border-radius:0;padding:6px 0;gap:12px;justify-content:center}
.workspace nav button.nav-art-button{flex:1;max-width:192px;min-height:88px;flex-direction:column;gap:4px;padding:10px 12px;border:1px solid #bba37166;border-radius:12px;background:linear-gradient(140deg,#12281df2,#08150ddd);box-shadow:0 6px 16px #0005}
.workspace nav .nav-art-button img{width:44px;height:44px;object-fit:contain;background:transparent}
.workspace nav .nav-art-button .nav-caption{display:block;color:#e4d3aa;font-size:13px}
.workspace nav button.nav-art-button.active{background:linear-gradient(140deg,#344b30ed,#122a1eea);border-color:#dec38b;box-shadow:0 0 0 1px #c5ab6333,0 6px 16px #0005}
.workspace nav .nav-art-button.active::after{display:none}
.workspace nav button.nav-art-button.active{background-blend-mode:normal;outline:1px solid #c8ab6966;outline-offset:2px}
body .ostoya-entry.ostoya-feature{position:relative;isolation:isolate;display:flex;align-items:flex-end;min-height:240px;width:100%;padding:24px;margin:4px 0 24px;text-align:left;overflow:hidden;border:1px solid #bda370aa;border-radius:15px;background:#132219;box-shadow:0 10px 28px #0005}
.ostoya-feature>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 45%;border:0;z-index:-2}
.ostoya-feature::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#081a11dc,#081a1130),linear-gradient(0deg,#081a11b8,transparent)}
.ostoya-entry .ostoya-entry-copy{display:flex;flex-direction:column;gap:9px;color:#ead7ad;text-shadow:0 2px 6px #000}
.ostoya-entry-copy>strong{font:600 40px/1.15 var(--font-display)}
.ostoya-entry-copy>small{font-size:12px;color:#d8c99f}.ostoya-entry-copy>span{font-size:17px;color:#e2e7d7}
.smith-portrait{min-height:190px;display:flex;align-items:flex-end;padding:26px;border-color:#bca16d77;background:linear-gradient(90deg,#0a1b13ee,#0b1d1380 65%,#0b1d1340),url('/thumb/720/art/borun.webp') center 38%/cover;border-radius:15px}
.smith-portrait>div{max-width:65%;text-shadow:0 2px 5px #000}.smith-portrait h2{color:#efd7a4}.smith-portrait p{color:#d7dfca;max-width:50ch}
.smith-modes{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 22px}.smith-modes button{min-height:88px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:7px}.smith-modes strong{font-size:19px}.smith-modes small{font-size:12px;color:#d3d8bd}.smith-modes [aria-pressed=true]{outline:1px solid #d6bc82;outline-offset:2px}
.divine-forge{padding:22px;background:linear-gradient(130deg,#1a3020dd,#0b1c13d9);border:1px solid #bf9b5870;border-radius:14px}
.divine-forge .recipe-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.divine-forge .divine-piece{padding:14px 10px;text-align:center;background:#102317b3;border:1px solid #a98f5155;border-radius:10px;display:flex;flex-direction:column;align-items:center}
.divine-piece .detail-art{width:100%;height:140px;object-fit:contain}.divine-piece h4{font-size:17px;margin:10px 0}.divine-piece p{font-size:12px}.divine-piece button{margin-top:auto;font-size:12px;width:100%}
.sales-panel .sale-heading{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;margin:16px 0}.sale-heading h3{margin:0}.sale-heading small{color:#b9c5ae}
.sale-filters{margin-bottom:14px}.sale-filters>summary{min-height:44px;padding:12px;cursor:pointer;background:#15271baa;border-bottom:1px solid #aa94543d;border-radius:8px}
.sale-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.sale-toolbar button{font-size:13px;min-height:44px}.sale-toolbar .primary{margin-left:auto}
.sale-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.sale-card{position:relative;border:1px solid #79906855;border-bottom:2px solid var(--quality-color,#bfa56c);background:#112319cc;border-radius:12px;padding:10px;min-width:0;display:flex;flex-direction:column;gap:8px}.sale-card.chosen{outline:2px solid #d5b771;background:#273b25}
.sale-select{display:flex;align-items:center;gap:8px;font-size:12px;min-height:44px;cursor:pointer;color:#d4c39b}.sale-select input{width:22px;height:22px;accent-color:#b59b5f;margin:0}
body .sale-card .sale-preview{display:flex;align-items:center;flex-direction:column;gap:7px;min-width:0;padding:0;background:transparent;border:0;box-shadow:none;color:#dddec9;text-align:center}.sale-preview img{width:100%;height:110px;object-fit:contain}.sale-preview strong{font-size:14px}.sale-preview small{font-size:11px;color:#c7c9b7}.sale-card>button[data-sale-one]{width:100%;font-size:12px;margin-top:auto;min-height:44px;padding:10px 4px}.sale-reason{font-size:11px;color:#b4bda7;line-height:1.4}
.building-benefit{padding:10px 14px;background:#1834239c;border-left:2px solid #c6ab70;color:#e7d2a0}
@media(min-width:1101px){.ostoya-entry.ostoya-feature{min-height:270px}.ostoya-feature>img{object-position:center 47%}}
@media(max-width:1000px){.divine-forge .recipe-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sale-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.workspace nav{padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));gap:7px;border:0;background:transparent;box-shadow:none}.workspace nav button.nav-art-button{min-height:60px;height:60px;padding:4px;max-width:80px;border-radius:10px}.workspace nav .nav-art-button img{height:48px;width:48px;max-width:100%}.workspace nav .nav-art-button .nav-caption{display:none}.workspace nav .nav-art-button.active{outline-offset:0}.ostoya-entry.ostoya-feature{min-height:215px;padding:20px}.ostoya-entry-copy>strong{font-size:34px}.smith-portrait{min-height:155px;padding:20px}.smith-portrait>div{max-width:85%}.smith-portrait h2{font-size:31px}.smith-portrait p{font-size:13px}.smith-modes{gap:9px}.smith-modes button{padding:14px 10px;min-height:90px}.smith-modes strong{font-size:15px}.divine-forge{padding:15px}.divine-forge .recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.divine-piece .detail-art{height:115px}.sale-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.sale-toolbar button{flex:1;min-width:120px}.sale-toolbar .primary{flex-basis:100%;margin:0}.sale-card{padding:8px}.sale-preview img{height:95px}}
@media(prefers-reduced-motion:reduce){.workspace nav button{transition:none}}

.workspace nav button.nav-art-button,.workspace nav button.nav-art-button.active{background-image:linear-gradient(#0a160db8,#0a160de8),var(--nav-scene);background-size:cover;background-position:center}

.smith-portrait{display:grid;grid-template-columns:minmax(0,1fr) 156px;gap:24px;min-height:150px;padding:18px 24px;background-position:center 18%}.smith-portrait>div{max-width:100%}.smith-portrait .borun-portrait{width:156px;height:150px;object-fit:cover;object-position:center 20%;border-radius:10px;border:1px solid #ad996755}.smith-portrait p{margin-bottom:0}
.divine-forge>.divine-bonuses{background:#11281d;border:1px solid #a88e5144}
@media(max-width:720px){.smith-portrait{grid-template-columns:minmax(0,1fr) 100px;gap:12px;padding:14px;min-height:145px}.smith-portrait .borun-portrait{width:100px;height:140px}.smith-portrait p{font-size:12px}.smith-portrait h2{font-size:28px}.sale-toolbar button[data-sale-common]{flex:0 1 auto}.sales-panel .sale-toolbar{margin:8px 0}.sales-panel .sale-heading{gap:4px}}
/* The larger Ostoja entrance still leaves the first backpack row in reach. */
@media(max-width:720px){.screen-equipment .scene-heading{min-height:64px;padding:12px 16px;margin-bottom:12px}.screen-equipment .scene-heading .eyebrow{display:none}.screen-equipment .scene-heading h2{font-size:24px;line-height:1.2;margin:0}body .screen-equipment .ostoya-entry.ostoya-feature{min-height:215px;margin-bottom:16px}.screen-equipment .equipment-help{margin-bottom:10px}.screen-equipment .bag-filters{margin-bottom:10px}}

/* Compact in-game confirmation: one decision, no browser alert. */
dialog.game-confirm{box-sizing:border-box;width:min(360px,calc(100vw - 28px));max-height:calc(100svh - 32px);padding:20px;border:1px solid #b9a16b;border-radius:14px;background:linear-gradient(140deg,#28392b,#101d15);color:#eadfc5;box-shadow:0 14px 60px #0009;overflow:auto}
dialog.game-confirm::backdrop{background:#07100b70}dialog.game-confirm h3{font:600 20px/1.3 var(--font-display);color:#e8ca8e;margin:0 0 10px}dialog.game-confirm p{font-size:15px;line-height:1.55;margin:0 0 16px}.game-confirm-actions{display:flex;gap:10px;flex-wrap:wrap}.game-confirm-actions button{flex:1;min-height:44px;padding:10px;font-size:14px}.portrait-retry{position:absolute;z-index:5;top:45%;left:8%;width:84%;font-size:12px;min-height:44px}
