main#app { position: relative; width: 360px; height: var(--H); margin: 0 auto; overflow: hidden; box-shadow: 2px 0 0 var(--ink), -2px 0 0 var(--ink); background: url('../../assets/ui/px-parchment.png') repeat; background-size: 32px 32px; }
.scr { position: absolute; inset: 0; display: flex; flex-direction: column; }
.scr > * { flex: none; }
.b-status { height: 28px; display: flex; align-items: center; gap: 8px; padding: 0 4px 0 8px; color: var(--white); background: url('../../assets/ui/px-stone.png') repeat; background-size: 32px 32px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.b-dots { display: inline-flex; align-items: center; gap: 3px; flex: none; }
.b-dots i { width: 9px; height: 9px; box-sizing: border-box; background: #1a110c; border: 2px solid var(--cream); }
.b-dots i.done { background: var(--amber); border-color: var(--amber); }
.b-dots i.now { background: var(--white); border-color: var(--amber); box-shadow: 0 0 0 1px var(--ink); }
.b-status .place { color: var(--cream); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.b-status .gauge { flex: 1; min-width: 24px; height: 8px; border: 1px solid var(--white); background: var(--ink); }
.b-status .gauge i { display: block; height: 100%; background: var(--purple); }
.b-status .gauge.full i { background: var(--amber); }
.b-status .sp { flex: 1; }
.b-status .gold { margin-left: auto; }
.b-status .gold small { color: var(--cream); margin-right: 2px; }
img.px.ic.coin { display: inline-block; width: 18px; height: 16px; image-rendering: pixelated; vertical-align: -2px; margin-right: 2px; }
.mk-sheet .big img.px.ic.coin, .rhead img.px.ic.coin { width: 36px; height: 32px; vertical-align: -3px; margin-right: 4px; }
.g-coin { font-style: normal; color: var(--amber); margin-right: 1px; }
.b-status .q { width: 24px; height: 22px; padding: 0; display: grid; place-items: center; box-shadow: none; border-width: 2px; line-height: 1; }
.b-status .q.on { background: var(--amber); border-color: var(--amber-d); }
.b-world { flex: 1 1 auto; position: relative; min-height: 0; overflow: hidden; border-bottom: 2px solid var(--ink); background: #8fc3e3; }
.w-sky { position: absolute; left: 0; right: 0; top: 0; background-repeat: repeat-y; background-position: center bottom; background-size: 100% auto; }
.w-sky .dim { position: absolute; left: 0; right: 0; background-repeat: repeat; background-size: 2px 2px; pointer-events: none; }
.w-sky .dim.d50 { top: 0; height: 33.4%; background-image: url('../../assets/ui/px-dither.png'); }
.w-sky .dim.d25 { top: 33.3%; height: 33.4%; background-image: url('../../assets/ui/px-dither25.png'); }
.w-sky .st-tint, .w-sky .st-depth { position: absolute; inset: 0; pointer-events: none; }
.b-world > .mk-stage { position: absolute; left: 0; right: 0; bottom: 0; width: 360px; height: 240px; }
.w-ui { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.w-ui > * { pointer-events: auto; }
.mk-stage > .st-bg, .mk-stage > .st-depth, .mk-stage > .st-fg { position: absolute; inset: 0; }
.mk-stage .st-bg > img, .mk-stage .st-bg > svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.mk-stage .st-bg > img { image-rendering: pixelated; }
.stage-svg image[href*="/boss/"], .stage-svg image[href*="/enemy/"] { image-rendering: pixelated; }
.mk-stage .st-bg > img.tall { position: absolute; left: 0; width: 100%; object-fit: fill; }
.mk-stage.tall .st-depth, .mk-stage.tall .st-bg > .st-tint { top: -75%; }
.w-sky.tall .dim { display: none; }
.mk-stage .st-depth, .w-sky .st-depth { background: #2b2350; mix-blend-mode: multiply; pointer-events: none; }
.st-tint { position: absolute; inset: 0; mix-blend-mode: multiply; pointer-events: none; }
.st-tint.v-night, .st-tint.v-moon { background: #1c2450; opacity: .55; }
.st-tint.v-forest { background: #2f5a2a; opacity: .25; }
.st-tint.v-rock { background: #7a6a5a; opacity: .2; }
.mk-stage svg { width: 100%; height: 100%; display: block; }
.mk-stage .st-fg > svg { overflow: visible; }
.mk-stage > canvas.st-cv { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.b-world.omen .mk-stage { animation: rumble .5s steps(5) 2; }
@keyframes rumble { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-1px, 0); } 40% { transform: translate(1px, -1px); } 60% { transform: translate(-1px, 1px); } 80% { transform: translate(1px, 0); } }
.b-log { height: 28px; margin: 0; padding: 4px 8px 0; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-hand { padding: 8px 8px 0; background: url('../../assets/ui/px-wood.png') repeat; background-size: 32px 32px; border-top: 2px solid var(--ink); box-shadow: inset 0 2px 0 #8e6238; }
.b-decide { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: url('../../assets/ui/px-wood.png') repeat; background-size: 32px 32px; }
.b-decide.one { grid-template-columns: 1fr; }
.b-hand + .b-decide { border-top: 0; }
.b-decide:not(.b-hand + .b-decide) { border-top: 2px solid var(--ink); }
.b-decide button { height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 0 6px; line-height: 1.2; }
.b-decide button small { white-space: nowrap; }
.b-decide button .die { color: var(--red); }
:where(.mk-sheet, .scr) img.ic { width: 18px; height: 18px; vertical-align: -3px; }
.pl { position: absolute; display: inline-flex; flex-direction: column; gap: 2px; padding: 3px 7px; background: var(--wood-d); color: var(--white); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); white-space: nowrap; font: inherit; text-align: left; border-radius: 0; cursor: pointer; }
button.pl:active:not(:disabled) { transform: none; box-shadow: 2px 2px 0 var(--ink); }
.pl .row { display: inline-flex; align-items: center; gap: 6px; }
.pl small { color: var(--cream); }
.pl .bar { display: inline-block; width: 64px; height: 8px; border: 1px solid var(--white); background: var(--ink); }
.pl .bar i { display: block; height: 100%; background: var(--green); }
.pl.hero { flex-direction: row; align-items: center; gap: 6px; background: #233a26; }
.pl.hero small { color: #cfe3c8; }
.pl.hero.low .bar i { background: var(--red); }
.pl.hero .keep { display: inline-flex; align-items: center; gap: 1px; }
.pl.hero.bagged { flex-direction: column; align-items: flex-start; gap: 2px; }
.pl .bagrow { gap: 6px; }
.pl .elc { display: inline-flex; align-items: flex-end; gap: 1px; }
.pl .elc svg.px-frame, .pl .elc img { height: 20px; width: auto; }
.pl .elc b { color: var(--amber-l); }
.pl .elc.pot b { color: var(--white); }
.pl .elc.pot .ic { width: 12px; height: 16px; }
.f-row svg.px-frame { height: 24px; width: auto; flex: none; }
.pl.foe .bar i { background: var(--red); }
.pl.boss { background: #3a1a22; }
.pl .ic, .tgi { width: 18px; height: 18px; display: inline-block; vertical-align: middle; image-rendering: pixelated; }
.pl .traits { display: inline-flex; gap: 3px; }
.pl .traits .ic { width: 20px; height: 20px; background: var(--parch); border: 1px solid var(--ink); padding: 1px; }
.tw { font-style: normal; }
.pl .tw { display: inline-block; padding: 0 3px; background: var(--parch); color: var(--ink); border: 1px solid var(--ink); line-height: 18px; }
.pl .tw.first { background: var(--red); color: var(--white); }
.pl.info { outline: 2px solid var(--amber); }
.pop { position: absolute; color: var(--red); font-size: var(--big); line-height: 1; pointer-events: none; text-shadow: 2px 2px 0 var(--white); animation: pop .7s steps(7) forwards; }
@keyframes pop { 0% { transform: translateY(0); opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(-24px); opacity: 0; } }
.hits { display: grid; grid-template-columns: repeat(3, 72px); margin: 0 -4px -2px; }
.pl.mob .hits, .hits.n1 { grid-template-columns: 72px; }
.hits.n2 { grid-template-columns: repeat(2, 72px); }
.hs { width: 72px; height: 40px; display: grid; place-items: center; padding: 0; background: none; border: 0; box-shadow: none; }
.hs:active:not(:disabled) { transform: none; }
.hc { display: inline-flex; align-items: center; gap: 2px; height: 24px; padding: 0 4px 0 3px; background: var(--parch); border: 2px solid var(--ink); box-shadow: 1px 1px 0 var(--ink); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.hc .k { font-size: 12px; color: var(--ink2); }
.hc svg { width: 12px; height: 12px; display: block; }
.hc.strong b { color: var(--red); }
.hc.set b { color: var(--ink2); text-decoration: line-through; }
.hc.set i { font-style: normal; }
.hc.set i::before { content: ''; display: inline-block; width: 6px; height: 7px; margin: 0 1px; background: var(--ink2); clip-path: polygon(0 2px, 3px 2px, 3px 0, 6px 3.5px, 3px 7px, 3px 5px, 0 5px); }
.hc.glow { border-color: var(--amber-d); background: var(--amber-l); box-shadow: 1px 1px 0 var(--amber-d), 0 0 0 2px var(--amber); }
.hc.dbl { box-shadow: 1px 1px 0 var(--ink), 0 0 0 2px var(--parch), 0 0 0 4px var(--ink); }
.hc.none b { color: var(--ink2); }
.hs.drop .hc { animation: drop .32s steps(4) both; }
.hs.drop.heavy .hc { animation-duration: .44s; }
@keyframes drop { 0% { transform: translateY(-28px); opacity: 0; } 60% { transform: translateY(2px); opacity: 1; } 100% { transform: translateY(0); } }
.hs.flash .hc, .cd.flash { animation: flash .3s steps(2) 1; }
@keyframes flash { 50% { box-shadow: 0 0 0 2px var(--amber), 1px 1px 0 var(--ink); background: var(--amber-l); } }
.cd { position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 4px 4px 3px; text-align: left; background: var(--parch); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); color: var(--ink); line-height: 1.2; }
.cd.hint { border-color: var(--amber-d); }
.cd.sel { border-color: var(--amber-d); background: var(--amber-l); transform: translateY(-2px); box-shadow: 2px 4px 0 var(--amber-d); }
.cd.off, .cd:disabled { background: var(--parch-d); color: var(--ink2); border-color: var(--ink2); box-shadow: 2px 2px 0 var(--ink2); }
.cd.off img.ic, .cd:disabled img.ic { filter: grayscale(1) contrast(.8); }
.cd img.ic { width: 22px; height: 22px; display: block; }
.cd .n { position: absolute; top: 3px; right: 3px; background: var(--ink); color: var(--white); padding: 0 5px; font-style: normal; }
.cd .to { position: absolute; top: -10px; left: -6px; background: var(--parch); color: var(--ink); padding: 0 4px; border: 2px solid var(--ink); line-height: 1.1; font-style: normal; }
.cd .on { display: inline-flex; gap: 2px; align-items: center; flex-wrap: wrap; }
.cd .on img.ic { width: 16px; height: 16px; }
.cd .on .tw { padding: 0 2px; border: 1px solid var(--ink); }
.cd .uses { color: var(--red); letter-spacing: 1px; }
.cd .die { color: var(--red); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 6px 0 8px; }
.cards.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards .cd { min-height: 70px; }
.cards .cd { width: 100%; }
.cards .cd b { white-space: nowrap; overflow: hidden; text-overflow: clip; max-width: 100%; }
.cd.deal { animation: deal .25s steps(5) both; animation-delay: calc(var(--d, 0) * 50ms); }
@keyframes deal { 0% { transform: translateY(48px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
.cd.fly { animation: fly .3s steps(5) forwards; }
@keyframes fly { 0% { transform: translateY(-2px); opacity: 1; } 100% { transform: translateY(-80px); opacity: 0; } }
.cd.kira { border-color: var(--amber-d); animation: kira 1.6s steps(1) 2; }
@keyframes kira { 0%, 100% { box-shadow: 2px 2px 0 var(--amber-d); } 25%, 50% { box-shadow: 2px 2px 0 var(--amber-d), 0 0 0 2px var(--amber); } }
.cd.kira::before, .cd.kira::after { content: ''; position: absolute; width: 4px; height: 4px; background: var(--white); box-shadow: 0 -4px 0 var(--amber), 0 4px 0 var(--amber), -4px 0 0 var(--amber), 4px 0 0 var(--amber); opacity: 0; animation: spark 1.6s steps(1) 2; }
.cd.kira::before { left: 6px; top: 26px; }
.cd.kira::after { right: 10px; bottom: 10px; animation-delay: .4s; }
@keyframes spark { 0%, 100% { opacity: 0; } 20%, 45% { opacity: 1; } }
.cd.kira.deal { animation: deal .25s steps(5) both, kira 1.6s steps(1) .25s 2; }
.bag { display: flex; gap: 6px; align-items: stretch; }
.bag .cd { flex: 1 1 0; align-items: center; justify-content: space-between; text-align: center; min-height: 86px; }
.bag .cd.mini { flex: 0 0 62px; padding: 4px 2px 3px; justify-content: center; gap: 3px; }
.bag .cd.pot { border-color: var(--blue); box-shadow: 2px 2px 0 var(--blue); }
.bag .cd.pot b { color: var(--blue); }
.bag .cd.pot .pw { color: var(--ink2); line-height: 1; }
.bag .cd.pot .pw b { color: var(--blue); }
.bag .cd.pot .ic, .bagline .pill svg.ic { width: 22px; height: 28px; object-fit: contain; }
.bagline .pill svg.ic { width: 14px; height: 18px; }
:is(.bag, .elx-list) .cd.elx { border-color: var(--amber-d); box-shadow: 2px 2px 0 var(--amber-d); }
:is(.bag, .elx-list) .cd.elx.sel { box-shadow: 2px 4px 0 var(--amber-d); }
:is(.bag, .elx-list) .cd.elx .nm { line-height: 1; white-space: nowrap; overflow: hidden; max-width: 100%; }
:is(.bag, .elx-list) .cd.elx .pw { line-height: 1; white-space: nowrap; }
:is(.bag, .elx-list) .cd.elx .pw b { font-size: var(--mid); color: var(--amber-d); }
:is(.bag, .elx-list) .cd.elx .q { position: absolute; bottom: -2px; right: 2px; color: var(--ink); }
:is(.bag, .elx-list) .cd.elx.used { border-color: var(--ink2); box-shadow: 2px 2px 0 var(--ink2); background: var(--parch-d); color: var(--ink2); }
:is(.bag, .elx-list) .cd .vs { height: 32px; display: flex; align-items: flex-end; justify-content: center; }
:is(.bag, .elx-list) .cd .vs svg.px-frame { height: 32px; width: auto; }
:is(.bag, .elx-list) .cd .vs img, .bag .cd .vs > svg:not(.px-frame) { height: 32px; width: 24px; object-fit: contain; }
.bag .cd.endure img.ic { width: 24px; height: 24px; }
.bag .cd.list { justify-content: center; gap: 4px; }
.bag .cd.list .grid { display: grid; grid-template-columns: repeat(3, 10px); gap: 2px; }
.bag .cd.list .grid i { width: 10px; height: 12px; background: var(--amber); border: 1px solid var(--amber-d); }
.bag .cd.list .grid i.e { background: var(--parch); }
.kill { position: absolute; top: -10px; right: -4px; display: inline-flex; align-items: center; gap: 2px; padding: 0 3px; background: var(--green); color: var(--white); box-shadow: 1px 1px 0 var(--ink); font-style: normal; font-size: 13px; line-height: 16px; }
.kill img { width: 14px; height: 14px; }
.lv { display: inline-flex; gap: 2px; vertical-align: middle; }
.lv i { width: 6px; height: 8px; border: 1px solid var(--amber-d); background: var(--white); }
.lv i.on { background: var(--amber); }
.mk-sheet-wrap { position: absolute; inset: 0; z-index: 50; display: flex; align-items: flex-end; background: url('../../assets/ui/px-dither.png') repeat; background-size: 2px 2px; cursor: pointer; }
.mk-sheet-wrap.clear { background: none; }
.mk-sheet { width: 100%; max-height: 92%; overflow-y: auto; overscroll-behavior: contain; cursor: auto; background: url('../../assets/ui/px-parchment.png') repeat; background-size: 32px 32px; border-top: 2px solid var(--ink); box-shadow: 0 -2px 0 var(--amber-d); padding: 10px 8px calc(10px + env(safe-area-inset-bottom)); }
.mk-sheet h2 { margin: 0 0 6px; font-size: var(--fs); }
.mk-sheet h2 small { margin-left: 6px; }
.mk-sheet p { margin: 4px 0; }
.mk-sheet .hint, .hint { color: var(--ink2); }
.mk-sheet > button, .mk-sheet .wide { width: 100%; margin-top: 8px; }
.mk-sheet .two { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; margin-top: 8px; }
.mk-sheet .two > button { margin: 0; min-height: 48px; }
.mk-sheet button small { display: block; }
.mk-sheet .big { font-size: var(--big); line-height: 1; }
.mk-sheet .row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.mk-label { color: var(--ink2); margin: 6px 0 2px; }
.trait { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.trait > img, .trait > .tgi { width: 28px; height: 28px; flex: none; }
.trait > .tw { flex: none; min-width: 28px; text-align: center; padding: 0 3px; border: 2px solid var(--ink); background: var(--parch); }
.trait .t { display: flex; flex-direction: column; }
.f-row { display: flex; align-items: baseline; gap: 6px; margin: 4px 0; }
.f-row b { min-width: 2.5em; text-align: right; }
.g-say { margin: 6px 0; color: var(--ink2); }
.pours { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.pours button { padding: 6px 2px; display: flex; flex-direction: column; align-items: center; }
.g-pour-main { display: flex; flex-direction: column; align-items: center; min-height: 56px; }
.g-pour-main small { display: flex !important; align-items: center; gap: 4px; }
.elx-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.elx-list .cd { align-items: center; text-align: center; min-height: 86px; }
.elx-list .cd .pw b { font-size: var(--mid); color: var(--amber-d); }
.g-title2 { position: absolute; inset: 0; z-index: 5; background: #1a1520; }
.g-title2 .t-frame { position: absolute; inset: 0; overflow: hidden; container-type: inline-size; }
.g-title2 .t-art { position: absolute; inset: 0; background-image: var(--title-art, none); background-position: center top, center top, center; background-size: 100% 100%, auto 87.5%, 100% 100%; background-repeat: no-repeat; image-rendering: pixelated; }
.g-title2 .t-fade { position: absolute; left: 0; right: 0; top: 74%; bottom: 0; background: url('../../assets/ui/px-dither.png') repeat; background-size: 2px 2px; }
.g-title2 .t-fade::after { content: ''; position: absolute; left: 0; right: 0; top: 40%; bottom: 0; background: #1a1520; }
.g-title2 .t-top { position: absolute; left: 0; right: 0; top: calc(1.25% + env(safe-area-inset-top)); display: flex; flex-direction: column; align-items: center; text-align: center; }
.g-title2 .t-logo { width: 83cqw; max-height: 46cqw; object-fit: contain; image-rendering: pixelated; }
.g-title2 .t-concept { margin: 4px 0 0; font-size: var(--fs); color: #f4f0ff; white-space: nowrap; text-shadow: 2px 2px 0 #000; }
.g-title2 .t-bottom { position: absolute; left: 0; right: 0; bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.g-title2 .t-btn { min-width: 200px; height: 56px; }
.g-title2 .t-lang { position: absolute; z-index: 2; top: calc(8px + env(safe-area-inset-top)); right: 8px; height: 32px; display: flex; align-items: center; gap: 4px; padding: 0 8px; color: var(--white); background: var(--wood-d); border-color: var(--ink); font-size: 14px; }
.g-title2 .t-kicker { display: flex; align-items: center; gap: 4px; color: #cfc8e4; }
.g-title2 .t-kicker img { width: 16px; height: 16px; }
.g-title2 .t-note { color: #8f86a8; }
.g-home .b-world { background: #3a2416 url('../../assets/ui/px-wood.png') repeat; background-size: 32px 32px; }
.g-map .b-world { background: #2f5a2a; }
.g-pic { position: absolute; left: 0; bottom: 0; width: 360px; height: 540px; isolation: isolate; }
.g-map .g-pic { bottom: auto; top: 0; }
.g-map .g-pic > img.px { image-rendering: pixelated; }
.g-pic > img.px.cover, .g-pic > svg.px-ph { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.g-pic-fg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.over-top { position: absolute; top: 0; left: 0; right: 0; z-index: 30; height: 36px; display: flex; align-items: center; gap: 6px; padding: 4px 6px 0; pointer-events: none; }
.over-top > * { pointer-events: auto; }
.over-top .g-gold, .over-top .mat { display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 6px; color: var(--white); background: var(--wood-d); border: 2px solid var(--ink); white-space: nowrap; }
.over-top .mat img.px.ic { width: 18px; height: 18px; }
.over-top .mats { display: inline-flex; gap: 4px; overflow: hidden; min-width: 0; flex: 0 1 auto; }
.over-top > * { flex: none; white-space: nowrap; }
.over-top .ico { margin-left: auto; display: flex; gap: 6px; }
.over-top .ico button, .over-top .back { height: 32px; min-width: 32px; padding: 0 6px; color: var(--white); background: var(--wood-d); border-color: var(--ink); }
.over-top .ico button.icon { display: grid; place-items: center; padding: 0 4px; } 
.over-br { position: absolute; right: 6px; bottom: 6px; z-index: 30; display: flex; }
.over-br button.on { background: var(--amber); border-color: var(--amber-d); }
.toast { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 31; padding: 4px 8px; background: var(--wood-d); color: var(--white); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); animation: toast 4s steps(1) forwards; pointer-events: none; }
.toast.hot { background: var(--amber); color: var(--ink); border-color: var(--amber-d); box-shadow: 2px 2px 0 var(--amber-d); }
@keyframes toast { 0%, 90% { opacity: 1; } 100% { opacity: 0; } }
.g-hot { position: absolute; background: transparent; border: 2px dashed transparent; box-shadow: none; padding: 0; }
.g-hot:active:not(:disabled) { transform: none; }
.g-hot:focus-visible { outline: 2px solid var(--amber); }
.g-hsay { position: absolute; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; padding: 4px 8px; background: rgba(29, 26, 31, 0.82); color: var(--white); text-align: center; pointer-events: none; }
.g-hsay.on { animation: toast 5s steps(1) forwards; }
.g-slot { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 0; background: transparent; border: 0; box-shadow: none; }
.g-slot:active:not(:disabled) { transform: translateY(2px); box-shadow: none; }
.g-slot .art { flex: 1 1 100%; width: 100%; height: 100%; min-height: 0; display: flex; align-items: flex-end; justify-content: center; }
.g-slot .art > svg, .g-slot .art > img { max-width: 92%; max-height: 100%; }
.g-slot.empty .art { align-items: center; font-size: var(--big); color: var(--white); }
.pm::after { content: ''; position: absolute; left: 50%; top: -12px; width: 8px; height: 6px; margin-left: -4px; background: var(--amber); clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(1px 1px 0 var(--ink)); pointer-events: none; animation: bob 1.6s steps(2) infinite; z-index: 5; }
.pm.tr::after { left: auto; right: 6px; top: 6px; }
.g-slot.pm::after { top: 4px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(2px); } }
.g-slot.young .art { filter: brightness(.7); }
.g-slot.locked { pointer-events: none; }
.g-slot.locked .art { align-items: center; font-size: var(--big); color: var(--cream); }
.g-slot.glow1 .art { filter: drop-shadow(0 0 2px var(--amber-l)); }
.g-slot.glow2 .art { filter: drop-shadow(0 0 2px var(--amber-l)) drop-shadow(0 0 2px var(--amber)); }
.g-home .g-slot, .g-home .g-hot { z-index: 2; }
.g-cover { position: absolute; pointer-events: none; }
.g-cover > img.px { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.g-row-cover { position: absolute; pointer-events: none; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; box-shadow: none; background: none; }
.g-row-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.g-row-cover.wall { background: url('../../assets/ui/px-dither.png') repeat; background-size: 2px 2px; }
button.g-row-cover { pointer-events: auto; }
button.g-row-cover:active:not(:disabled) { transform: none; }
.g-tag { display: inline-block; padding: 0 6px; background: var(--parch); color: var(--ink); border: 2px solid var(--ink); font-style: normal; }
.g-tag.hot { background: var(--amber); border-color: var(--amber-d); }
.g-tag.ng { background: var(--red); color: var(--white); border-color: var(--red); }
.g-row-cover .g-tag { position: relative; }
.g-cab-bottle { position: absolute; pointer-events: none; display: flex; align-items: flex-end; justify-content: center; padding: 0; background: none; border: 0; box-shadow: none; }
.g-cab-bottle > svg, .g-cab-bottle > img { max-width: 100%; max-height: 100%; }
.g-cabinet .g-cab { position: absolute; left: 14%; right: 14%; top: 22%; bottom: 14%; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 30%; gap: 3%; align-items: end; pointer-events: none; }
.g-cabinet .g-cab i { display: block; height: 100%; }
.g-cabinet .g-deco { position: absolute; left: 0; right: 0; bottom: 1%; display: flex; gap: 3px; justify-content: center; }
.g-deco-item img.ic, .g-deco-item i { width: 20px; height: 20px; display: inline-grid; place-items: center; background: var(--amber); font-style: normal; }
.g-win-tint { position: absolute; mix-blend-mode: multiply; pointer-events: none; }
.g-win-tint.p-dusk { background: #f2a875; opacity: .35; }
.g-win-tint.p-night { background: #1c2450; opacity: .55; }
.g-win-tint.p-day { background: #bfe0f2; mix-blend-mode: screen; opacity: .45; }
.g-node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0; background: transparent; border: 0; box-shadow: none; }
.g-node:active:not(:disabled) { transform: translate(-50%, -50%); }
.g-node b { position: relative; width: 32px; height: 32px; display: grid; place-items: center; background: var(--parch); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.g-node small { background: var(--wood-d); color: var(--white); padding: 0 6px; white-space: nowrap; }
.g-node.done b { background: var(--amber-l); }
.g-node.sel b { background: var(--amber); border-color: var(--amber-d); box-shadow: 2px 2px 0 var(--amber-d); }
.g-node.locked b { background: var(--parch-d); color: var(--ink2); border-color: var(--ink2); box-shadow: 2px 2px 0 var(--ink2); }
.g-node.soon small { background: var(--ink2); } 
.g-node.area { aspect-ratio: 1 / 1; justify-content: center; }
.g-node.weekly b { background: #3f4672; color: #fff4cf; }
.g-node:disabled { background: none; border: 0; box-shadow: none; }
.shelf3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.shelf3.many { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.shelf3 .cd { align-items: center; text-align: center; }
.shelf3 .pk-slot { position: relative; display: grid; min-width: 0; }
.shelf3 .pk-slot > .cd { min-width: 0; }
.shelf3 .pk-q { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; padding: 0; display: grid; place-items: center; font-size: 14px; line-height: 1; color: var(--ink); background: var(--parch); border: 2px solid var(--ink); border-radius: 50%; }
.g-terms { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; margin: 2px 0 4px; }
.g-term { display: inline-flex; align-items: center; gap: 3px; min-height: 24px; padding: 1px 8px; background: var(--parch); color: var(--ink); border: 2px solid var(--ink); font-size: 14px; line-height: 1.2; }
.g-term img.px.ic { width: 20px; height: 20px; object-fit: contain; image-rendering: pixelated; margin-left: -4px; }
.g-terms-legend { margin: 4px 14px; font-size: 13px; color: var(--ink2); }
.g-terms-legend > div { display: flex; gap: 6px; }
.g-terms-legend dt { flex: none; font-weight: bold; color: var(--ink); }
.g-terms-legend dt::after { content: '：'; }
html[lang='en'] .g-terms-legend dt::after { content: ': '; }
.g-terms-legend dd { margin: 0; }
.shelf3.many .pk-q { width: 20px; height: 20px; font-size: 12px; top: 2px; right: 2px; }
.shelf3 .art { width: 52px; height: 60px; display: flex; align-items: flex-end; justify-content: center; }
.shelf3 .art > svg, .shelf3 .art > img { max-width: 100%; max-height: 100%; }
.shelf3.many .art { width: 36px; height: 40px; }
.shelf3 .cd.young { opacity: 1; }
.bagline { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; flex-wrap: wrap; }
.bagline .pill { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border: 2px solid var(--ink); background: var(--parch); }
.bagline .pill svg.px-frame, .bagline .pill img { height: 20px; width: auto; }
.handbtn { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; margin-top: 8px; }
.handbtn .mini { display: inline-flex; gap: 6px; align-items: center; }
.handbtn .mini img { width: 18px; height: 18px; vertical-align: -3px; }
.g-gate { margin: 4px 0; padding: 2px 6px; border: 2px solid var(--green); background: var(--parch); }
.g-gate.ng { border-color: var(--red); }
.g-gate small { display: block; color: var(--ink2); font-size: 12px; }
.g-gate img.ic, .g-guide img.ic { width: 18px; height: 18px; vertical-align: -3px; }
.g-guide { margin-top: 6px; }
.b-pick { padding: 4px 8px 8px; }
.b-pick h2 { margin: 0 0 4px; font-size: var(--fs); }
.offers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.offer { padding: 6px 8px; gap: 2px; }
.offer .boss { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; }
.offer .boss .bn { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.offer .boss .hp { color: var(--ink2); display: flex; flex-wrap: wrap; column-gap: 6px; } 
.offer .boss .hp .fs { white-space: nowrap; }
.offer .boss .hp b { color: var(--ink); }
.offer .boss img { width: 22px; height: 22px; }
.offer .row { display: inline-flex; align-items: center; gap: 6px; }
.offer .row img { width: 20px; height: 20px; }
.offer .mult { font-size: var(--big); line-height: 1; color: var(--amber-d); }
.offer .gm { display: inline-flex; align-items: center; gap: 2px; }
.offer .row .gm img.coin { width: 24px; height: 20px; }
.offer .g-tag.ng { align-self: flex-start; }
.offer.ng:not(.sel) { background: var(--parch-d); }
.g-tag.warn { background: #d9822b; color: var(--white); border-color: #a85a12; }
.offer .g-tag.warn { align-self: flex-start; }
.g-tag.tip { background: #3f7a3a; color: var(--white); border-color: #2a5527; }
.offer .g-tag.tip { align-self: flex-start; }
.offer .hp b.die { color: var(--red); }
.b-pick { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.b-pick .handbtn { margin-top: 6px; }
.b-log.sh-log { display: flex; gap: 12px; }
.sh-log .lg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sh-log .sec { flex: none; }
.road.sh-road { height: 14px; margin: 0 10px 4px 4px; }
.b-pick .sh-q { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 4px; }
.b-pick .sh-q h2 { margin: 0; }
.b-pick .sh-elx { height: 26px; padding: 0 10px; font-size: 14px; line-height: 1; }
.sh-elx-row { display: flex; gap: 10px; align-items: flex-start; padding: 6px 4px; border-top: 2px solid var(--parch-d); }
.sh-elx-row .art { flex: none; width: 56px; height: 70px; display: flex; align-items: flex-end; justify-content: center; }
.sh-elx-row .art > svg, .sh-elx-row .art > img { max-width: 100%; max-height: 100%; }
.sh-elx-row .txt { flex: 1; min-width: 0; }
.sh-elx-row .txt p { margin: 2px 0 0; }
.sh-elx-row .g-terms { justify-content: flex-start; margin: 2px 0 0; }
.road .seg.next { background: repeating-linear-gradient(90deg, var(--amber) 0 5px, var(--parch-d) 5px 9px); }
.b-decide button small.stake { color: var(--red); margin-top: 0; }
.handbtn.row1 { flex-direction: row; justify-content: center; gap: 10px; min-height: 40px; padding: 4px 10px; }
.mk-result .b-rest { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.notice .g-say { margin: 0; color: inherit; }
.notice { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 4px 8px; background: var(--amber); color: var(--ink); border-top: 2px solid var(--amber-d); }
.rhead { position: absolute; left: 8px; bottom: 8px; z-index: 4; color: var(--white); background: var(--wood-d); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); padding: 4px 10px; }
.rhead small { color: var(--cream); }
.rhead .big { font-size: 48px; line-height: 1; color: var(--amber); }
.mk-result.dead .rhead .big { color: var(--white); }
.b-rest { padding: 0 8px 6px; }
.road { display: grid; grid-template-columns: repeat(var(--n, 6), 1fr); align-items: center; height: 20px; margin: 10px 10px 0 4px; }
.road .seg { position: relative; height: 4px; background: var(--parch-d); }
.road .seg.walked { background: var(--amber); }
.road .seg.here:not(.end) { background: linear-gradient(90deg, var(--amber) 50%, var(--parch-d) 50%); }
.road .seg i.boss { position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; transform: translateY(-50%) rotate(45deg); background: var(--white); border: 2px solid var(--ink2); z-index: 1; }
.road .seg i.boss.won { background: var(--amber); border-color: var(--amber-d); }
.road .seg.here::before { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; background: var(--amber-d); border: 2px solid var(--white); transform: translate(-50%, -50%); z-index: 2; }
.road .seg.here.end::before { left: 100%; }
.road .flag { position: absolute; right: -4px; bottom: 6px; width: 8px; height: 10px; background: var(--amber-d); clip-path: polygon(0 0, 100% 25%, 0 50%); }
.roadcap { display: flex; justify-content: space-between; margin: 2px 2px 0; color: var(--ink2); }
.roadcap .best { color: var(--amber-d); }
.rbag { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; flex-wrap: wrap; }
.rbag .btl { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; margin: 0; }
.rbag .btl svg.px-frame, .rbag .btl img, .rbag .btl > svg { height: 32px; width: auto; max-width: 30px; }
.rbag .btl.used { filter: grayscale(1); }
.rbag .btl.back { animation: toShelf .6s steps(6) .3s both; }
@keyframes toShelf { 0% { transform: translateY(-16px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
.rbag .mat { display: inline-flex; align-items: center; gap: 2px; }
.rgrow { margin: 6px 0 0; padding: 4px 6px; border: 2px solid var(--wood-d); background: var(--parch); }
.rgrow p { margin: 0; }
.rgrow .gr-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 8px; }
.rgrow .gr-head > * { white-space: nowrap; }
.rgrow .gr-head small { color: var(--ink2); }
.rgrow .gr-chips { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 2px; }
.rgrow .gr-chip b { color: var(--green); }
.rgrow .gr-up { margin-top: 2px; color: var(--amber-d); font-weight: bold; }
.g-runs { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px 10px; color: var(--ink2); }
.g-runs span:first-child { color: var(--green); }
.rbag .mat img { width: 20px; height: 20px; }
.news { margin: 4px 0 0; padding: 2px 6px; background: var(--wood-d); color: var(--white); border: 2px solid var(--ink); }
.news img.ic { width: 16px; height: 16px; vertical-align: -2px; }
.g-bottle-big { width: 120px; height: 150px; margin: 0 auto; display: flex; align-items: flex-end; justify-content: center; }
.g-bottle-big > svg, .g-bottle-big > img { max-width: 100%; max-height: 100%; }
.g-center { text-align: center; }
.g-brews { display: grid; gap: 6px; }
.g-brew { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; padding: 4px 8px; }
.g-brew .art { grid-row: span 2; width: 48px; height: 52px; display: flex; align-items: flex-end; justify-content: center; }
.g-brew .art > svg, .g-brew .art > img { max-width: 100%; max-height: 100%; }
.g-brew .art.shadow { filter: brightness(0) opacity(.4); }
.g-brew img.ic { width: 18px; height: 18px; vertical-align: -3px; }
.g-xchg { display: block; width: 100%; margin: 0 0 6px; text-align: left; }
.g-cabpic { position: relative; width: 240px; height: 360px; margin: 0 auto; }
.g-cabpic > img.px.cover { position: absolute; inset: 0; width: 100%; height: 100%; }
.g-cabsheet .g-cab-bottle { pointer-events: auto; }
.g-cabsheet .g-cab-bottle.sel { outline: 2px solid var(--amber); }
.g-story { margin: 8px 0 0; padding: 4px 8px; background: var(--parch); border: 2px solid var(--ink); }
.g-deco-list, .g-used { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 6px; }
.g-deco-list { grid-template-columns: 1fr 1fr; }
.g-deco-list img.ic { width: 18px; height: 18px; vertical-align: -3px; }
.g-used li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: center; }
.g-used li .art { display: block; height: 56px; }
.g-used li small { display: block; }
.g-board { position: relative; width: 300px; height: 450px; margin: 0 auto; }
.g-board > img.px.cover { position: absolute; inset: 0; width: 100%; height: 100%; }
.g-board-panel { position: absolute; display: flex; align-items: flex-start; overflow: hidden; }
.g-board-list { list-style: none; margin: 0; padding: 4px 8px; width: 100%; color: #3a2614; }
.g-board-list li { display: grid; grid-template-columns: 22px calc(20px + 3em) 1fr; align-items: center; gap: 4px; padding: 1px 0; }
.g-board-list li small { display: none; }
.g-board-list li.none { display: block; }
.g-board-list img.ic { width: 18px; height: 18px; }
.g-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin: 0 0 6px; }
.g-tabs > button { margin: 0; min-height: 36px; }
.g-tabs > button.on { background: var(--amber); border-color: var(--amber-d); box-shadow: 2px 2px 0 var(--amber-d); }
.g-tabs2 > button { min-height: 32px; }
.g-board-sheet h3 { margin: 4px 0; font-size: var(--fs-s, 13px); color: var(--ink2); font-weight: normal; }
.g-rank-list { list-style: none; margin: 4px 0; padding: 0; max-height: 360px; overflow-y: auto; }
.g-rank-list li { margin: 0 0 3px; }
.g-rank-list li > button { width: 100%; margin: 0; display: grid; grid-template-columns: 26px 1fr auto auto 12px; align-items: center; gap: 4px; text-align: left; padding: 4px 6px; min-height: 36px; }
.g-rank-list li > button i { font-style: normal; text-align: center; }
.g-rank-list li > button img.ic { width: 20px; height: 20px; }
.g-rank-list li > button .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-rank-list li > button .go { color: var(--ink2); }
.g-rank-list li.me > button { background: var(--amber-l); border-color: var(--amber-d); }
.g-rank-list li.sep { margin-top: 8px; }
.g-rank-list li.none { padding: 8px 4px; color: var(--ink2); }
.star { color: #c9902b; }
.g-rank-who { margin: 4px 0; font-size: var(--fs); }
.g-rank-shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 6px 0; }
.g-rank-shelf .slot { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 64px; background: rgba(90, 60, 30, 0.12); border: 2px solid var(--ink2); padding: 2px; }
.g-rank-shelf .slot.empty { border-style: dashed; opacity: 0.5; }
.g-rank-shelf .slot .bt { max-height: 52px; }
.g-rank-shelf .slot small { font-size: 11px; }
.g-deco-item img.ic { width: 18px; height: 18px; }
.mk-dev h2 { margin: 0 0 4px; }
.mk-dev .row button { padding: 2px 8px; }
.mk-dev button.on { background: var(--amber); border-color: var(--amber-d); box-shadow: 2px 2px 0 var(--amber-d); }
.mk-dev small { display: inline; }
.mk-sheet button.danger { background: var(--red); color: var(--white); border-color: var(--ink); box-shadow: 2px 2px 0 var(--ink); } 
.g-tts { display: grid; gap: 6px; }
.g-tt { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.g-tt.on { border-color: var(--amber-d); background: var(--amber-l); }
.g-tt.locked { padding: 4px 8px; border: 2px dashed var(--ink2); color: var(--ink2); }
.g-tt img.ic, .g-title img.ic { width: 18px; height: 18px; vertical-align: -3px; }
.g-title { width: 100%; margin-top: 8px; text-align: left; }
.off { cursor: default; }
@media (prefers-reduced-motion: reduce) { .cd.deal, .cd.kira, .cd.kira::before, .cd.kira::after, .hs.drop .hc, .b-world.omen .mk-stage, .pm::after { animation: none; } }
.net-note { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 999; margin: 0; padding: 2px 8px; background: var(--ink); color: var(--white); border: 2px solid var(--amber); pointer-events: none; max-width: 360px; text-align: center; }
.net-gate { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; gap: 18px; padding: 24px; text-align: center; color: var(--white); background: var(--wood-d); }
.net-gate p { margin: 0; line-height: 1.7; }
.net-gate button { justify-self: center; min-width: 160px; padding: 10px 16px; }
.upd-note { position: fixed; top: 44px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 10px; color: var(--ink); background: var(--parch); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); white-space: nowrap; }
.upd-note button { padding: 2px 8px; }
.test-badge { position: fixed; right: 2px; bottom: 2px; z-index: 998; margin: 0; padding: 0 4px; background: var(--red); color: var(--white); font-size: 10px; line-height: 14px; opacity: 0.85; pointer-events: none; }
.cd.elx.hot { border-color: var(--amber-d); box-shadow: 2px 2px 0 var(--amber-d), 0 0 0 2px var(--amber-l); }
.kirafx { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.kirafx b { position: absolute; width: 4px; height: 4px; background: var(--white); box-shadow: 0 -4px 0 var(--amber), 0 4px 0 var(--amber), -4px 0 0 var(--amber), 4px 0 0 var(--amber); opacity: 0; animation: spark 1.6s steps(1) 2; }
.kirafx b:first-child { left: 14%; top: 16%; }
.kirafx b:last-child { right: 14%; bottom: 20%; animation-delay: .4s; }
.rkept { position: relative; }
.rkept .g-tag { margin-left: 6px; vertical-align: middle; }
.g-slot .tw { position: absolute; right: 18%; top: 22%; width: 4px; height: 4px; background: var(--white); box-shadow: 0 -3px 0 var(--amber-l), 0 3px 0 var(--amber-l), -3px 0 0 var(--amber-l), 3px 0 0 var(--amber-l); opacity: 0; pointer-events: none; animation: twinkle 5s steps(1) infinite; }
.px-over { animation: pxOver 2.8s ease-in-out infinite; }
@keyframes pxOver { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .px-over { animation: none; } }
@keyframes twinkle { 0%, 100% { opacity: 0; } 2%, 8% { opacity: 1; } 9% { opacity: 0; } }
.g-cab-bottle.premium > img, .g-cab-bottle.premium > svg, .g-cab-bottle.premium .px { filter: drop-shadow(1px 0 0 #f2c14e) drop-shadow(-1px 0 0 #f2c14e) drop-shadow(0 1px 0 #f2c14e) drop-shadow(0 -1px 0 #f2c14e); }
@media (prefers-reduced-motion: reduce) { .kirafx b, .g-slot .tw { animation: none; opacity: 0; } }
.b-world > canvas.st-cv.cut { position: absolute; z-index: 40; pointer-events: none; }
.g-home .g-lips { z-index: 3; }
.g-ribbon { position: absolute; z-index: 4; pointer-events: none; }
.g-ribbon img.ribbon { display: block; width: 100%; height: 100%; }
.g-favbtn { display: flex; align-items: center; justify-content: center; gap: 6px; }
.g-favbtn img.ribbon { width: 25px; height: 20px; flex: none; }
.g-fav-ph { font-style: normal; color: #c43b52; }
.g-build { position: absolute; z-index: 4; display: flex; align-items: flex-end; justify-content: center; padding: 0; background: none; border: 0; box-shadow: none; }
.g-build:active:not(:disabled) { transform: translateY(2px); }
.g-build .g-tag, .g-row-cover .g-tag { white-space: nowrap; } 
.std-wrap { position: fixed; inset: 0; z-index: 70; justify-content: center; }
.std-wrap .mk-sheet { max-width: 360px; }
.std-wrap .mk-sheet p { margin: 4px 0; }
.std-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 6px 0; }
.std-choices button.on { background: var(--amber); border-color: var(--amber-d); box-shadow: 2px 2px 0 var(--amber-d); }
.std-text, .std-other { width: 100%; box-sizing: border-box; font: inherit; color: var(--ink); background: var(--white); border: 2px solid var(--ink); padding: 4px 6px; resize: vertical; }
.std-msg:empty { display: none; }
.std-link { display: inline-block; font: inherit; color: var(--ink); text-decoration: none; background: var(--parch); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); padding: 2px 8px; }
.std-wrap p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.mk-dev .row button svg.px-ico, .std-wrap svg.px-ico { vertical-align: -2px; }
.b-status .std-bug { display: grid; place-items: center; background: var(--wood-d); }
.std-survey { border: 2px solid var(--ink); background: var(--parch); padding: 6px 8px; margin: 6px 0; box-shadow: 2px 2px 0 var(--ink); }
.std-survey p { margin: 2px 0 6px; }
.std-survey small { display: block; margin-top: 4px; color: var(--ink2); }
.std-recnote { top: 84px; white-space: normal; width: min(330px, calc(100vw - 32px)); box-sizing: border-box; }
.std-recnote button { white-space: nowrap; flex-shrink: 0; }
.g-gear { background: none; border: none; box-shadow: none; padding: 0; }
.g-gear .bar { position: absolute; left: 2%; right: 2%; top: 0; height: 5%; min-height: 4px; background: #5e3a1e; border: 2px solid #2a1c14; box-sizing: border-box; }
.g-gear .hang { position: absolute; left: 0; right: 0; top: 3%; display: flex; justify-content: space-between; align-items: flex-start; padding: 0 2%; }
.g-gear .it svg, .g-gear .it img { display: block; width: 100%; height: auto; }
.g-gear .it.no { opacity: 0.38; filter: grayscale(0.7); }
.g-gear-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 8px; align-items: center; border: 2px solid var(--ink); background: var(--parch); box-shadow: 2px 2px 0 var(--ink); padding: 6px 8px; margin: 6px 0; }
.g-gear-row .art { display: grid; place-items: center; }
.g-gear-row .art { justify-self: center; }
.g-gear-row .art img { display: block; width: 100%; height: auto; }
.g-gear-row .tx b { display: block; }
.g-gear-row .lv .dots { letter-spacing: 1px; margin-right: 4px; }
.g-gear-row button { min-width: 84px; padding: 4px 6px; }
.g-gear-row button small { display: block; }
.bag.nc { min-height: 86px; }
.bag.nc .nc-note, .bag.nc .nc-empty { flex: 0 0 auto; align-self: center; color: var(--white); text-shadow: 1px 1px 0 var(--ink); font-size: var(--fs); line-height: 1.3; padding: 0 4px; }
.bag.nc .nc-empty { flex: 1 1 0; text-align: center; }
.bag.nc .nc-note { max-width: 5.5em; }
.acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 6px 0 8px; }
.acts .cd.act { min-height: 70px; align-items: center; justify-content: center; text-align: center; gap: 2px; }
.acts .cd.act b { white-space: nowrap; }
.acts .cd.act small { line-height: 1.15; word-break: keep-all; }
.acts .cd.act small.die { color: var(--red); }
.acts .cd.act .ic, .acts .cd.act img.ic { width: 22px; height: 24px; object-fit: contain; }
.acts .cd.act.pot { border-color: var(--blue); box-shadow: 2px 2px 0 var(--blue); }
.acts .cd.act.pot b { color: var(--blue); }
.acts .cd.act.heal { border-color: #b2456e; box-shadow: 2px 2px 0 #b2456e; }
.acts .cd.act.heal b { color: #b2456e; }
.acts .cd.act.off { opacity: .55; box-shadow: none; }
.acts .cd.act.pot.off small { color: var(--ink); opacity: 1; }
.b-decide .nc-hint { height: 56px; margin: 0; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); text-shadow: 1px 1px 0 var(--ink); line-height: 1.3; }
.healic { display: inline-flex; filter: hue-rotate(115deg) saturate(1.3); }
.pouch { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4px 6px; margin: 6px 0 0; }
.pouch > .hint { grid-column: 1 / -1; }
.pouch .step { display: flex; align-items: center; gap: 4px; padding: 2px 4px; border: 2px solid var(--ink); background: var(--parch); min-width: 0; }
.pouch .step .nm { flex: 1 1 auto; min-width: 0; white-space: normal; word-break: keep-all; line-height: 1.05; }
.pouch .step button { flex: 0 0 30px; }
.pouch .step button { width: 30px; height: 30px; padding: 0; }
.pouch .step b { min-width: 1.4em; text-align: center; }
.pouch .step svg.ic, .pouch .step img { width: 16px; height: 20px; object-fit: contain; }
.g-bst { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; padding: 0 6px; background: rgba(43, 26, 14, .78); color: var(--white); border: 2px solid var(--ink); line-height: 1.6; font-size: var(--fs); }
.g-bst i { font-style: normal; color: #f3d38a; margin-left: 4px; }
.g-bst i.g-hg { margin: 0 2px 0 0; color: var(--white); }
.g-bst .ic { width: 14px; height: 14px; }
.g-boosts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 4px 0 8px; }
.g-boosts button { display: flex; flex-direction: column; align-items: center; padding: 4px 2px; line-height: 1.2; }
.g-boosts button small { color: var(--ink2); }
.lf-ui { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.lf-shelf { position: absolute; left: 6px; top: 6px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.lf-row { display: flex; align-items: center; gap: 4px; min-height: 26px; padding: 2px 9px 2px 4px; border-radius: 14px; background: rgba(26, 17, 12, .78); border: 1px solid rgba(255, 246, 224, .25); color: var(--white); font-size: 14px; white-space: nowrap; transition: opacity .4s, transform .4s; }
.lf-row img.px.ic { width: 22px; height: 20px; object-fit: contain; image-rendering: pixelated; }
.lf-row img.px.ic.hg { width: 11px; height: 17px; }
.lf-row small { color: #f0d9a8; font-size: 12px; margin-left: 2px; }
.lf-row em { font-style: normal; margin-left: 4px; }
.lf-row.hot { background: var(--amber); color: var(--ink); border-color: #fff6c0; box-shadow: 0 0 6px 2px rgba(255, 230, 140, .8); }
.lf-row.hot small { color: #3a2414; }
.lf-row.bump { animation: lf-bump .22s ease-out; }
@keyframes lf-bump { 0% { transform: scale(1.15); } 100% { transform: scale(1); } }
.lf-row.out { opacity: 0; transform: translateX(-12px); }
.lf-tag { position: absolute; right: 30px; top: 4px; padding: 1px 6px; background: #1a110c; color: var(--amber); border: 1px solid var(--amber); font-size: 13px; transition: opacity .4s; }
.lf-goal { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; display: flex; align-items: center; gap: 6px; padding: 1px 10px; background: rgba(26, 17, 12, .82); color: var(--white); border: 2px solid var(--amber); font-size: 15px; transition: opacity .4s; }
.lf-goal img.px.ic { width: 18px; height: 18px; object-fit: contain; image-rendering: pixelated; }
.lf-goal img.px.ic.coin { width: 18px; height: 16px; }
.lf-goal b { color: var(--amber); font-weight: normal; }
.lf-tag.out, .lf-goal.out { opacity: 0; }
.b-status .gold .gn { display: inline-block; }
.b-status .gold .gn.bump { animation: lf-bump .18s ease-out; }
.b-world.lf-shake .mk-stage { animation: rumble .3s steps(3) 1; }
.hero-hop { animation: hero-hop .95s cubic-bezier(.3, .7, .4, 1) 1 both; }
@keyframes hero-hop { 0% { transform: translateY(0); } 22% { transform: translateY(-6px); } 42% { transform: translateY(0); } 60% { transform: translateY(-3px); } 76%, 100% { transform: translateY(0); } }
.b-decide .lf-keep { display: block; font-size: 12px; line-height: 1.2; margin-top: 2px; }
.b-decide .lf-keep img.px.ic.coin { width: 14px; height: 12px; vertical-align: -1px; }
@media (prefers-reduced-motion: reduce) { .lf-row.bump, .b-status .gold .gn.bump, .b-world.lf-shake .mk-stage, .hero-hop { animation: none; } }
