@font-face { font-family: ShopPixel; src: url('./shop-assets/determination.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: ShopChinese; src: url('./shop-assets/dialogue-chinese.woff2') format('woff2'); font-display: swap; }
:root { --shop-pixel: ShopPixel, ShopChinese, 'Microsoft YaHei', sans-serif; --shop-muted: #b4aab7; --frame-size: clamp(18px, 2.2vw, 32px); }
[hidden] { display: none !important; }
body { background: #000; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid #d2bad5; outline-offset: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shop-ui { display: grid; grid-template-columns: minmax(0, 5.4fr) minmax(144px, 1fr); min-height: clamp(300px, 25vw, 480px); color: #f5f3f4; font: 400 clamp(21px, 2vw, 30px)/1.55 var(--shop-pixel); }
.dialogue { position: relative; min-width: 0; padding: clamp(28px, 3vw, 46px); background: #000; }
.dialogue::before { content: ''; position: absolute; inset: 0; border: var(--frame-size) solid transparent; border-image: url('./shop-assets/dialogue.png') 64 stretch; image-rendering: pixelated; pointer-events: none; }
.shop-panel { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; scroll-margin-block: 16px; }
.panel-heading { display: flex; align-items: baseline; gap: 12px 24px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 24px; }
.panel-heading h2 { margin: 0; color: var(--shop-muted); font: inherit; font-size: .68em; }
.shop-view { min-width: 0; }
.dialogue-message { display: flex; align-items: baseline; gap: .65em; margin: 0; }
.dialogue-message::before { content: '*'; color: #f2f0f3; }
.about-line { color: var(--shop-muted); font-size: .75em; margin: 12px 0 20px 1.65em; }
.text-control { display: inline-flex; align-items: center; min-height: 44px; border: 0; border-radius: 0; padding: 2px 0; background: none; color: #d7c2d9; text-underline-offset: 5px; text-decoration: underline; font: inherit; font-size: .65em; }
.text-control:hover { color: #fff; }
.shop-actions { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 22px 16px; }
.shop-menu { width: fit-content; max-width: 100%; display: grid; gap: 0; }
.shop-menu > * { position: relative; display: flex; align-items: center; justify-content: center; min-height: 52px; width: 100%; padding: 3px 8px; border: 0; border-radius: 0; background: none; color: #fff; text-align: center; text-decoration: none; font: 400 clamp(24px, 2.35vw, 36px)/1.4 var(--shop-pixel); white-space: nowrap; }
.shop-menu > *::before { content: ''; position: absolute; top: calc(50% - 10px); left: -20px; width: 20px; height: 20px; background: url('./shop-assets/soul.png') center / contain no-repeat; image-rendering: pixelated; visibility: hidden; }
.shop-menu > [data-cursor]::before { visibility: visible; }
.attachment-count { margin: 16px 0 0; font-size: .8em; font-variant-numeric: tabular-nums; }
.keyboard-hint { margin: 8px 0 0; font-size: 12px; color: #9a919d; font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif; }
.category-list, .file-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.category-list { max-width: 440px; }
.category-list button, .file-list button { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; width: 100%; padding: 8px 12px; border: 0; border-radius: 0; background: none; color: #f5f3f4; text-align: left; min-height: 44px; font: inherit; font-size: .8em; }
.category-list button:hover, .file-list button:hover { background: #1a151c; }
.category-list .category-count, .file-size { color: var(--shop-muted); font-size: .8em; white-space: nowrap; }
.file-name { min-width: 0; overflow-wrap: anywhere; }
.file-list { max-height: 330px; overflow-y: auto; scrollbar-color: #b0a0b3 #151018; scrollbar-width: thin; }
.file-title { margin: 0 0 16px; overflow-wrap: anywhere; }
.file-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 20px; margin: 0 0 16px; font-size: .65em; }
.file-facts dt { color: var(--shop-muted); }
.file-facts dd { margin: 0; overflow-wrap: anywhere; }
.file-checksum { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .65em; }
.file-checksum > span { color: var(--shop-muted); }
.file-checksum code { flex-basis: 100%; font: 13px/1.7 Consolas, monospace; overflow-wrap: anywhere; user-select: all; }
.file-checksum .text-control { font-size: inherit; }
.download-file { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 0; margin: 12px 24px 0 0; font-size: .8em; text-underline-offset: 6px; }
@media (max-width: 700px) {
  .shop-screen { min-height: 100svh; min-height: 100dvh; display: flex; flex-direction: column; }
  .scene { flex: 1 0 260px; }
  .shop-ui { grid-template-columns: minmax(0, 1fr); min-height: 0; font-size: 22px; }
  .shop-actions { grid-column: 1; grid-row: 2; padding: 18px 22px max(18px, env(safe-area-inset-bottom)); }
  .shop-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 4px 10px; }
  .shop-menu > * { justify-content: flex-start; min-height: 48px; padding-left: 36px; padding-right: 4px; text-align: left; font-size: 24px; }
  .shop-menu > *::before { left: 4px; }
  .attachment-count { margin-top: 8px; font-size: 16px; }
  .keyboard-hint { display: none; }
  .shop-panel { grid-column: 1; grid-row: 1; min-height: 0; padding: 22px 26px; }
  .panel-heading { margin-bottom: 12px; }
  .category-list button, .file-list button { font-size: 18px; }
  .about-line { font-size: 17px; margin-left: 0; }
  .text-control, .file-facts, .file-checksum { font-size: 16px; }
}
@media (hover: none) { .keyboard-hint { display: none; } }
