  html, body { margin: 0; height: 100%; background: #0a0b0c; overflow: hidden; }
  canvas { display: block; width: 100vw; height: 100vh; height: 100dvh; touch-action: none; }
  button { font: inherit; }
  #wait { position: fixed; inset: 0; display: grid; place-items: center; color: #8a9a96; font: 14px/1.6 system-ui, sans-serif; letter-spacing: .1em; }
  #bgm { position: fixed; right: max(16px, env(safe-area-inset-right)); top: max(16px, env(safe-area-inset-top)); width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgba(220,240,232,.25); background: rgba(10,14,16,.55); color: rgba(220,240,232,.55); font-size: 18px; cursor: pointer; backdrop-filter: blur(6px); transition: color .3s, border-color .3s; }
  #info { position: fixed; right: calc(max(16px, env(safe-area-inset-right)) + 54px); top: max(16px, env(safe-area-inset-top)); width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgba(220,240,232,.25); background: rgba(10,14,16,.55); color: rgba(220,240,232,.55); font: italic 600 17px/1 Georgia, serif; cursor: pointer; backdrop-filter: blur(6px); }
  #info[aria-expanded="true"] { color: #d8f5ea; border-color: rgba(216,245,234,.6); }
  #about { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; background: rgba(4,7,8,.45); }
  #about[hidden] { display: none; }
  #about .sheet { position: relative; width: min(420px, 100%); max-height: min(78vh, 640px); overflow-y: auto; box-sizing: border-box; padding: 22px 56px 16px 22px; border-radius: 14px;
    background: rgba(9,13,15,.92); backdrop-filter: blur(12px); border: 1px solid rgba(220,240,232,.14); color: #cfe0da; font: 13px/1.75 system-ui, sans-serif; }
  #about h2 { margin: 0 0 4px; font-size: 16px; font-weight: 600; letter-spacing: .12em; color: #e4f5ee; }
  #about h3 { margin: 18px 0 2px; font-size: 13px; font-weight: 600; color: #b9cfc7; letter-spacing: .06em; }
  #about p, #about dl { margin: 0 0 6px; color: #a9bfb7; }
  #about dl { display: grid; grid-template-columns: 7em 1fr; gap: 2px 12px; }
  #about dd { margin: 0; }
  #about a { color: #cfeee2; }
  #about .x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 16px; border: 1px solid rgba(220,240,232,.22); background: none; color: #b9cfc7; font-size: 16px; cursor: pointer; }
  #about .date { margin-top: 14px; font-size: 11.5px; color: #7f978f; }
  #bgm[aria-pressed="true"] { color: #d8f5ea; border-color: rgba(216,245,234,.6); }
  #open { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(16px, env(safe-area-inset-bottom)); height: 44px; padding: 0 22px; border-radius: 22px;
    border: 1px solid rgba(220,240,232,.3); background: rgba(10,14,16,.6); color: #d8f0e6; font: 500 14px/1 system-ui, sans-serif; letter-spacing: .08em; cursor: pointer; backdrop-filter: blur(6px); }
  #tray { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 0 max(14px, env(safe-area-inset-bottom)); background: rgba(9,13,15,.88); backdrop-filter: blur(10px);
    border-top: 1px solid rgba(220,240,232,.12); color: #dcebe5; font: 13px/1.5 system-ui, sans-serif; }
  #tray header { display: flex; align-items: center; gap: 8px; padding: 0 16px 10px; }
  #tabs { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
  #tabs button { background: none; border: 0; color: #8fa49d; height: 34px; padding: 0 12px; border-radius: 17px; cursor: pointer; white-space: nowrap; font-size: 13px; }
  #tabs button[aria-selected="true"] { background: rgba(207,238,226,.14); color: #e4f5ee; }
  #tray header > button { background: none; border: 1px solid rgba(220,240,232,.22); color: #b9cfc7; border-radius: 16px; height: 32px; padding: 0 12px; cursor: pointer; font-size: 12.5px; white-space: nowrap; }
  #close { width: 32px; padding: 0 !important; font-size: 16px !important; }
  .row-cards { display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 4px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .group { color: #7f978f; font-size: 11.5px; letter-spacing: .1em; padding: 2px 16px 6px; }
  .card { flex: 0 0 148px; scroll-snap-align: start; position: relative; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(220,240,232,.1); padding: 8px 10px 10px; display: flex; flex-direction: column; }
  .card.on { border-color: rgba(207,238,226,.55); background: rgba(207,238,226,.07); }
  .card img, .card svg { width: 128px; height: 84px; object-fit: contain; display: block; margin: 0 auto 4px; }
  .card h3 { margin: 0; font-size: 13px; font-weight: 600; }
  .card p { margin: 2px 0 8px; color: #93aaa2; font-size: 11.5px; line-height: 1.45; flex: 1; }
  .card .ctl { display: flex; align-items: center; gap: 6px; }
  .card .n { color: #93aaa2; font-size: 11.5px; font-variant-numeric: tabular-nums; flex: 1; }
  .card .ctl button { height: 30px; min-width: 30px; padding: 0 10px; border-radius: 15px; border: 0; background: #cfeee2; color: #0d2a22; font: 600 12.5px/1 system-ui, sans-serif; cursor: pointer; }
  .card .ctl .sub { background: rgba(255,255,255,.1); color: #cfe3dc; padding: 0; }
  .card .ctl button:disabled { background: rgba(255,255,255,.07); color: #66786f; cursor: default; }
  .card .buy { position: absolute; top: 6px; right: 8px; font-size: 10.5px; color: #7f978f; text-decoration: none; }
  .card .buy:hover { color: #cfeee2; text-decoration: underline; }
  .pr { margin-right: 3px; padding: 0 3px; border: 1px solid currentColor; border-radius: 3px; font-size: 9px; }
