:root {
  --forest-950: #102b20;
  --forest-900: #173b2a;
  --forest-800: #23543a;
  --forest-700: #35704c;
  --lime: #c6d88a;
  --cream: #f7f1df;
  --paper: #fffaf0;
  --gold: #efbd4b;
  --ink: #263229;
  --muted: #728076;
  --line: rgba(22, 61, 42, 0.13);
  color: var(--ink);
  background: var(--cream);
  font-family: "Avenir Next", Avenir, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
html { min-width: 320px; background: var(--cream); }
body { min-width: 320px; min-height: 100vh; margin: 0; overflow-x: hidden; background: radial-gradient(circle at 8% 2%, rgba(126,162,90,.16), transparent 28rem), radial-gradient(circle at 92% 82%, rgba(239,189,75,.13), transparent 30rem), var(--cream); user-select: none; -webkit-user-select: none; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, canvas:focus-visible { outline: 3px solid rgba(239,189,75,.78); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }

.harvest-page { width: min(1440px, calc(100% - 42px)); min-height: 100vh; margin: 0 auto; padding: clamp(24px, 4vw, 54px) 0 26px; }
.back-link { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-decoration: none; }
.back-link span { color: var(--forest-700); font-size: 1rem; }
.game-header { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin: clamp(30px, 5vw, 60px) 0 26px; }
.eyebrow, .section-kicker, .page-footer { letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--forest-700); font-size: .66rem; font-weight: 850; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(239,189,75,.18); }
.game-header h1 { margin-top: 14px; color: var(--forest-950); font-size: clamp(3rem, 7vw, 6.2rem); font-weight: 850; letter-spacing: -.09em; line-height: .88; }
.game-header h1 span { color: var(--forest-700); }
.game-tagline { margin-top: 17px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 650; }
.header-share-button { display: inline-flex; min-height: 47px; align-items: center; gap: 9px; margin-bottom: 3px; padding: 10px 16px; border: 1px solid rgba(28,75,47,.18); border-radius: 15px; color: #fff; background: var(--forest-800); box-shadow: 0 12px 28px rgba(20,58,37,.16); cursor: pointer; font-size: .76rem; font-weight: 900; letter-spacing: .03em; }
.header-share-button[hidden] { display: none; }
.header-share-button span { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 8px; color: var(--forest-950); background: var(--gold); font-size: .9rem; }
.header-share-button:hover { background: var(--forest-900); transform: translateY(-1px); }

.game-shell { display: grid; grid-template-columns: 330px minmax(0, 1fr); height: clamp(720px, 76svh, 815px); min-height: 0; overflow: hidden; border: 1px solid rgba(26,66,43,.13); border-radius: 28px; background: rgba(255,255,255,.58); box-shadow: 0 26px 70px rgba(42,67,37,.14); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.shop-panel { position: relative; z-index: 20; display: flex; height: 100%; min-height: 0; flex-direction: column; overflow: hidden; color: #f9f3de; background: linear-gradient(160deg, #214d35, #153625 62%, #102c20); box-shadow: 18px 0 60px rgba(8,27,18,.18); }
.shop-panel::before { position: absolute; inset: 0; pointer-events: none; content: ""; opacity: .12; background-image: radial-gradient(circle at 20% 12%, #fff 0 1px, transparent 1px), radial-gradient(circle at 84% 78%, #fff 0 1px, transparent 1px); background-size: 42px 42px, 58px 58px; }
.shop-header { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 17px 14px; flex: 0 0 auto; }
.shop-heading { min-width: 0; }
.section-kicker { display: block; color: var(--lime); font-size: .57rem; font-weight: 850; }
.shop-header h2 { margin-top: 4px; color: #fff; font-size: 1.16rem; }
.wallet { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; min-width: 128px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(6,25,15,.27); }
.coin-mark { width: 25px; height: 25px; border: 3px solid #f9d777; border-radius: 50%; color: transparent; background: var(--gold); box-shadow: inset 0 0 0 2px rgba(134,82,16,.22), 0 4px 12px rgba(0,0,0,.18); }
.wallet small { display: block; color: rgba(255,255,255,.55); font-size: .56rem; font-weight: 800; letter-spacing: .06em; }
.wallet strong { display: block; max-width: 90px; margin-top: 2px; overflow: hidden; color: #fff; font-size: 1rem; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.shop-tabs { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; padding: 0 17px 12px; flex: 0 0 auto; border-bottom: 1px solid rgba(255,255,255,.08); }
.shop-tabs button { display: grid; min-height: 43px; place-items: center; border: 0; border-radius: 11px; color: rgba(255,255,255,.62); background: transparent; cursor: pointer; font-size: 1.05rem; }
.shop-tabs button:hover { color: #fff; background: rgba(255,255,255,.06); }
.shop-tabs button.is-active { color: var(--forest-950); background: var(--gold); box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.shop-list { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-height: 0; align-content: start; flex: 1 1 0; padding: 13px 17px 22px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: rgba(255,255,255,.2) transparent; }
.shop-card { position: relative; display: grid; min-width: 0; min-height: 118px; padding: 12px 8px; place-items: center; border: 1px solid rgba(255,255,255,.09); border-radius: 15px; color: #fff; background: rgba(255,255,255,.055); cursor: pointer; text-align: center; transition: border-color 150ms ease, transform 150ms ease, background 150ms ease; }
.shop-card:hover { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.09); transform: translateY(-1px); }
.shop-card.is-locked { color: rgba(255,255,255,.62); }
.shop-card-icon { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 15px; font-size: 1.85rem; background: rgba(255,255,255,.08); }
.shop-art { display: block; width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 4px 3px rgba(0,0,0,.24)); }
.shop-card-title { display: flex; min-width: 0; max-width: 100%; align-items: baseline; justify-content: center; gap: 5px; }
.shop-card h3 { min-width: 0; overflow: hidden; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.shop-card-title strong { flex: 0 0 auto; color: var(--gold); font-size: .73rem; white-space: nowrap; }
.shop-lock { position: absolute; top: 8px; right: 8px; font-size: .72rem; }
.shop-empty { grid-column: 1 / -1; padding: 24px 12px 8px; color: rgba(255,255,255,.55); font-size: .75rem; text-align: center; }
.shop-footer { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 12px 17px 16px; flex: 0 0 auto; border-top: 1px solid rgba(255,255,255,.08); }
.text-button { padding: 0; border: 0; color: rgba(255,255,255,.48); background: none; cursor: pointer; font-size: .66rem; text-decoration: none; }
.text-button:hover { color: #fff; }

.farm-panel { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; width: 100%; height: 100%; min-width: 0; min-height: 0; padding: 0; overflow: hidden; background: #f6f4e5; }
.farm-canvas-shell { position: relative; width: 100%; height: 100%; min-height: 0; max-height: none; overflow: hidden; border: 0; border-bottom: 4px solid #4e3b2c; border-radius: 0; background: #86aa67; box-shadow: inset 0 -8px 20px rgba(41,30,19,.12); }
#phaser-farm-layer { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
#phaser-farm-layer canvas { display: block; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; }
#farm-canvas { position: absolute; z-index: 2; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; user-select: none; pointer-events: auto; }
#farm-canvas.is-phaser-rendered { opacity: 0; }
#phaser-farm-layer.is-unavailable { display: none; }
#phaser-farm-layer.is-unavailable ~ #farm-canvas { pointer-events: auto; opacity: 1; }
#farm-canvas:focus-visible { outline: 4px solid rgba(239,189,75,.8); outline-offset: -5px; }
@media (pointer: fine) { #farm-canvas { cursor: crosshair; } }
.readonly-banner { position: absolute; z-index: 12; top: 14px; left: 50%; display: flex; width: min(440px, calc(100% - 28px)); align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px 10px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 16px; color: #fff; background: rgba(17,48,32,.92); box-shadow: 0 12px 34px rgba(12,35,23,.28); backdrop-filter: blur(12px); transform: translateX(-50%); }
.readonly-banner[hidden] { display: none; }
.readonly-banner div { display: grid; gap: 1px; }
.readonly-banner span { color: var(--gold); font-size: .54rem; font-weight: 900; letter-spacing: .16em; }
.readonly-banner strong { font-size: .76rem; }
.readonly-banner a { flex: 0 0 auto; padding: 8px 10px; border-radius: 9px; color: var(--forest-950); background: var(--gold); font-size: .64rem; font-weight: 900; text-decoration: none; }
.land-popover { position: absolute; z-index: 8; right: 14px; bottom: 14px; display: grid; grid-template-columns: 37px 1fr auto; align-items: center; gap: 9px 11px; width: min(370px, calc(100% - 28px)); padding: 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 18px; color: #fff; background: rgba(17,48,32,.94); box-shadow: 0 18px 45px rgba(12,35,23,.34); backdrop-filter: blur(12px); }
.land-popover[hidden] { display: none; }
.land-state-icon { display: grid; grid-row: span 2; width: 37px; height: 37px; place-items: center; border-radius: 11px; background: rgba(255,255,255,.1); }
.land-popover h3 { font-size: .82rem; }
.land-popover p { margin-top: 3px; color: rgba(255,255,255,.63); font-size: .65rem; line-height: 1.35; }
.land-popover > strong { color: var(--gold); font-size: .84rem; }
.land-popover-close { position: absolute; top: 4px; right: 5px; border: 0; color: rgba(255,255,255,.58); background: none; cursor: pointer; font-size: 1.05rem; }
.land-buy-button { grid-column: 2 / -1; min-height: 35px; border: 0; border-radius: 10px; color: #2d2916; background: var(--gold); cursor: pointer; font-size: .68rem; font-weight: 900; }
.land-buy-button:disabled { color: rgba(255,255,255,.45); background: rgba(255,255,255,.1); cursor: not-allowed; }
.action-confirm-popover { position: absolute; z-index: 9; bottom: 14px; left: 14px; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 11px 13px; width: min(410px, calc(100% - 28px)); padding: 15px; border: 1px solid rgba(255,226,124,.5); border-radius: 18px; color: #fff; background: rgba(17,48,32,.96); box-shadow: 0 18px 45px rgba(12,35,23,.38); backdrop-filter: blur(12px); }
.action-confirm-popover[hidden] { display: none; }
.action-confirm-art { display: grid; width: 48px; height: 48px; place-items: center; align-self: center; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 13px; background: rgba(255,255,255,.1); font-size: 1.65rem; }
.action-confirm-art .shop-art { width: 44px; height: 44px; }
.action-confirm-copy { min-width: 0; padding-right: 16px; }
.action-confirm-copy > p { color: var(--gold); font-size: .58rem; font-weight: 900; letter-spacing: .08em; }
.action-confirm-copy h3 { margin-top: 2px; font-size: .86rem; }
.action-confirm-copy > span { display: block; margin-top: 4px; color: rgba(255,255,255,.68); font-size: .66rem; line-height: 1.45; }
.action-confirm-close { position: absolute; top: 4px; right: 5px; border: 0; color: rgba(255,255,255,.58); background: none; cursor: pointer; font-size: 1.05rem; }
.action-confirm-actions { display: flex; grid-column: 1 / -1; gap: 8px; }
.action-confirm-actions button { min-height: 36px; flex: 1; border: 0; border-radius: 10px; cursor: pointer; font-size: .68rem; font-weight: 900; }
.action-confirm-cancel { color: rgba(255,255,255,.74); background: rgba(255,255,255,.1); }
.action-confirm-button { color: #2d2916; background: var(--gold); }
.action-confirm-button:disabled { color: rgba(255,255,255,.45); background: rgba(255,255,255,.1); cursor: not-allowed; }

.quickbar-wrap { display: flex; gap: 8px; width: 100%; min-width: 0; margin: 0; padding: 13px 14px 14px; overflow: hidden; border-top: 1px solid rgba(255,255,255,.45); background: transparent; }
.quickbar { display: flex; gap: 8px; width: 0; min-width: 0; min-height: 67px; padding: 0; flex: 1 1 auto; overflow-x: auto; overflow-y: hidden; border: 0; border-radius: 0; background: transparent; box-shadow: none; scrollbar-width: thin; overscroll-behavior-x: contain; touch-action: pan-x; cursor: grab; }
.quickbar:active { cursor: grabbing; }
.quick-item { position: relative; display: grid; flex: 0 0 52px; height: 48px; padding: 3px; place-items: center; border: 1px solid rgba(38,72,44,.12); border-radius: 13px; color: var(--forest-900); background: #f9f6e9; cursor: pointer; font-size: 1.42rem; }
.quick-art { display: block; width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(47,35,22,.18)); }
.quick-item:hover { background: #fff; transform: translateY(-1px); }
.quick-item.is-equipped, .quick-item.is-selected { border-color: var(--forest-700); box-shadow: inset 0 0 0 2px var(--forest-700), 0 4px 10px rgba(43,86,55,.13); }
.quick-item small { position: absolute; right: -3px; bottom: -3px; min-width: 18px; padding: 2px 4px; border-radius: 99px; color: #1f2e22; background: var(--gold); font-size: .58rem; font-weight: 900; }
.quick-item .installed-dot { position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; border: 2px solid var(--paper); border-radius: 50%; background: #58a66c; }
.quick-divider { flex: 0 0 1px; align-self: stretch; margin: 2px; background: var(--line); }
.quick-cancel { color: #a3453c; font-size: 1.15rem; font-weight: 900; }
.readonly-quickbar { display: flex; width: 100%; align-items: center; justify-content: center; color: var(--forest-700); font-size: .72rem; font-weight: 800; letter-spacing: .02em; text-align: center; }
.mobile-shop-button { display: none; flex: 0 0 auto; min-width: 68px; border: 1px solid var(--line); border-radius: 16px; color: #fff; background: var(--forest-800); cursor: pointer; font-size: .72rem; font-weight: 850; }

.toast { position: fixed; z-index: 100; bottom: 24px; left: 50%; max-width: min(90vw, 420px); padding: 11px 17px; border-radius: 999px; color: #fff; background: rgba(19,52,35,.94); box-shadow: 0 12px 35px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: opacity 160ms ease, transform 160ms ease; font-size: .75rem; font-weight: 750; text-align: center; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.game-dialog { width: min(calc(100% - 36px), 470px); padding: 0; border: 0; border-radius: 24px; color: var(--ink); background: var(--paper); box-shadow: 0 26px 90px rgba(7,28,18,.42); }
.game-dialog::backdrop { background: rgba(9,35,23,.68); backdrop-filter: blur(7px); }
.game-dialog form { position: relative; padding: 30px; text-align: center; }
.dialog-icon { display: block; font-size: 2.5rem; }
.dialog-kicker { margin: 12px 0 6px; color: var(--forest-700); font-size: .65rem; font-weight: 900; letter-spacing: .16em; }
.game-dialog h2 { color: var(--forest-900); font-family: Georgia, "Noto Serif TC", serif; font-size: 2rem; }
.game-dialog p { margin-top: 8px; color: var(--muted); font-size: .8rem; line-height: 1.65; }
.dialog-primary { width: 100%; min-height: 47px; margin-top: 18px; border: 0; border-radius: 13px; color: #fff; background: var(--forest-800); cursor: pointer; font-weight: 850; }
.dialog-primary:disabled { color: #8b958e; background: #e4e8de; cursor: not-allowed; }
.dialog-close { position: absolute; top: 13px; right: 13px; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 1.3rem; }
.shop-dialog-art { display: grid; width: 86px; height: 86px; margin: 0 auto 14px; place-items: center; border-radius: 22px; background: #edf1df; font-size: 2.4rem; }
.shop-dialog-art .shop-art { width: 74px; height: 74px; filter: drop-shadow(0 7px 5px rgba(47,35,22,.2)); }
.event-dialog-art { display: grid; width: 132px; height: 132px; margin: 0 auto 12px; place-items: end center; border-radius: 34px; background: linear-gradient(145deg, #fff5c9, #e3f0c9); overflow: hidden; }
.event-dialog-art img { width: 124px; height: 124px; object-fit: contain; filter: drop-shadow(0 9px 6px rgba(47,35,22,.22)); }
.shop-dialog-price { display: block; margin-top: 14px; color: #a66e17; font-size: 1.15rem; }
.device-action-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 20px; }
.device-action-actions button { min-height: 45px; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; font-size: .74rem; font-weight: 850; }
.device-recall-button { color: var(--forest-800); background: #eef1dc; }
.device-sell-button { color: #a3453c; background: #fff1ec; }
.offline-result { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 20px 0; }
.offline-result div { padding: 14px; border-radius: 14px; background: #eef1dc; }
.offline-result small { display: block; color: var(--muted); font-size: .65rem; }
.offline-result strong { display: block; margin-top: 4px; color: var(--forest-800); font-size: 1.2rem; }
.setting-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: .82rem; font-weight: 700; }
.setting-row input { width: 20px; height: 20px; accent-color: var(--forest-700); }
.save-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.save-actions button { min-height: 42px; border: 1px solid var(--line); border-radius: 12px; color: var(--forest-800); background: #f2f1e4; cursor: pointer; font-size: .72rem; font-weight: 800; }
.save-actions .danger-button { grid-column: 1 / -1; color: #a3453c; background: #fff1ec; }
.share-link-field { display: grid; gap: 7px; margin-top: 18px; text-align: left; }
.share-link-field[hidden] { display: none; }
.share-link-field span { color: var(--muted); font-size: .68rem; font-weight: 800; }
.share-link-row { display: grid; grid-template-columns: minmax(0, 1fr) 43px; gap: 7px; }
.share-link-field input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--forest-900); background: #f2f1e4; font-size: .72rem; user-select: text; -webkit-user-select: text; }
.share-copy-button { display: grid; width: 43px; min-height: 42px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: #fff; background: var(--forest-800); cursor: pointer; }
.share-copy-button[hidden] { display: none; }
.share-copy-button:hover { background: var(--forest-900); }
.share-copy-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.share-status { min-height: 21px; color: var(--forest-700) !important; font-weight: 750; }
.share-status.is-error { color: #a3453c !important; }
.share-actions { margin-top: 8px; }
.share-actions button { display: grid; width: 100%; min-height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: .72rem; font-weight: 800; }
.share-actions button[hidden] { display: none; }
.share-actions .danger-button { color: #a3453c; background: #fff1ec; }
.share-dialog.is-busy form { opacity: .72; pointer-events: none; }
.dialog-link { display: grid; place-items: center; text-decoration: none; }
.asset-note { margin-bottom: 0; font-size: .66rem !important; }
.shop-backdrop { position: fixed; z-index: 18; inset: 0; background: rgba(8,27,17,.55); backdrop-filter: blur(4px); }
.shop-backdrop[hidden] { display: none; }
.page-footer { display: flex; align-items: center; gap: 16px; margin-top: 22px; color: var(--muted); font-size: .56rem; font-weight: 850; }
.footer-rule { flex: 1; height: 1px; background: rgba(27,67,43,.13); }

body.is-readonly .game-shell { grid-template-columns: minmax(0, 1fr); }
body.is-readonly .shop-panel, body.is-readonly .mobile-shop-button, body.is-readonly .header-share-button, body.is-readonly #puzzle-account-root { display: none !important; }
body.is-readonly .quickbar { min-height: 55px; }

@media (max-width: 980px) {
  .game-shell { display: block; height: auto; min-height: 0; overflow: visible; }
  .shop-panel { position: fixed; inset: 0 auto 0 0; z-index: 30; width: min(88vw, 370px); height: 100dvh; transform: translateX(-105%); transition: transform 220ms ease; }
  .shop-panel.is-open { transform: translateX(0); }
  .farm-panel { grid-template-rows: minmax(560px, 690px) auto; height: auto; min-height: 0; border-radius: 28px; }
  .farm-canvas-shell { width: 100%; min-height: min(74svh, 690px); max-height: 690px; }
  .mobile-shop-button { display: block; }
}

@media (max-width: 620px) {
  .harvest-page { width: 100%; padding-top: 18px; }
  .back-link { margin-left: 10px; }
  .game-header { display: block; margin: 27px 10px 20px; }
  .game-header h1 { font-size: clamp(2.65rem, 14vw, 4.4rem); }
  .header-share-button { min-height: 43px; margin-top: 18px; margin-bottom: 0; padding: 9px 13px; }
  .game-shell { width: 100%; border-right: 0; border-left: 0; border-radius: 0; }
  .farm-panel { grid-template-rows: 66svh auto; min-height: 0; padding: 0; border-radius: 0; }
  .farm-canvas-shell { min-height: 66svh; max-height: 66svh; border-bottom-width: 3px; border-radius: 0; box-shadow: inset 0 -7px 16px rgba(41,30,19,.14); }
  .land-popover, .action-confirm-popover { right: max(8px, env(safe-area-inset-right)); bottom: 8px; left: max(8px, env(safe-area-inset-left)); width: auto; max-width: none; max-height: calc(100% - 16px); min-width: 0; overflow-y: auto; }
  .readonly-banner { top: 8px; width: calc(100% - 16px); gap: 8px; }
  .readonly-banner strong { font-size: .69rem; }
  .readonly-banner a { padding: 7px 8px; font-size: .59rem; }
  .quickbar-wrap { min-width: 0; margin: 0; padding: 9px max(8px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); overflow: hidden; }
  .quickbar { width: 0; max-width: 100%; min-height: 62px; padding: 0; flex: 1 1 auto; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; touch-action: pan-x; -webkit-overflow-scrolling: touch; }
  .quickbar::-webkit-scrollbar { display: none; }
  .quick-item { flex: 0 0 clamp(43px, 14vw, 47px); height: 46px; scroll-snap-align: start; }
  .quick-art { width: clamp(34px, 11vw, 38px); height: clamp(34px, 11vw, 38px); }
  .mobile-shop-button { min-width: clamp(58px, 19vw, 68px); }
  .page-footer { margin-right: 10px; margin-left: 10px; padding-bottom: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
