/* 見た目はポップなレシート。黄色の台の上に、太枠と影の付いた紙を置く。明るい表示・暗い表示で色は変えない */
:root {
  color-scheme: light;
  --bg: #ffd84a;            /* 台 */
  --on-bg: #1d1a16;
  --on-bg-sub: #6b5a1a;
  --accent: #ff5436;        /* 押すボタンと合計 */
  --on-accent: #ffffff;
  --ok: #22c58b;            /* チェック欄を押したとき */
  --paper: #faf8f1;
  --ink: #26221d;
  --sub: #6d665c;
  --dash: #b9b3a6;          /* 紙の上の点線 */
  --red: #d3261c;           /* はんこと至急 */
  --on-red: #ffffff;
  --edge: #26221d;
  --font: "DotGothic16", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", system-ui, sans-serif;
  --display: "Dela Gothic One", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif; /* 見出しの太い字 */
  --soft: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.45, .64, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html, body { margin: 0; }
html { background: var(--bg); }
body {
  max-width: 560px;
  margin-inline: auto;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  overflow-x: clip; /* ちぎれて出ていく行で横に動かないようにする */
  padding-bottom: calc(160px + var(--pile-h, 0px) + env(safe-area-inset-bottom));
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, p, ul { margin: 0; padding: 0; font-weight: 400; }
ul { list-style: none; }

/* 読み上げ用。画面には出さない */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 自作アイコン。線で描き、重なる所は紙の色で塗って隠す */
.icon { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon .f { fill: var(--paper); }

/* 見出し部分 */
.top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: calc(12px + env(safe-area-inset-top)) 18px 10px;
  background: var(--bg);
  color: var(--on-bg);
}
.top h1 { flex: none; font-size: 22px; letter-spacing: .06em; white-space: nowrap; }
.count { min-width: 0; margin-left: auto; color: var(--on-bg-sub); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.gear {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -6px -10px -6px -4px;
  color: var(--on-bg);
  transition: rotate .35s var(--spring);
}
.gear:active { rotate: 90deg; }
.gear svg { width: 22px; height: 22px; }

/* 買えた割合の帯 */
.progress { flex-basis: 100%; height: 4px; background: repeating-linear-gradient(90deg, var(--on-bg-sub) 0 4px, transparent 4px 8px); overflow: hidden; }
.progress span { display: block; width: 0; height: 100%; background: var(--on-bg); transition: width .5s steps(10, end); }

/* リストは1枚の紙。上下の端をギザギザに切る */
#list {
  position: relative;
  margin: 14px 14px 0;
  padding: 16px 14px 18px;
  background: var(--paper);
}
#list::before, #list::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background:
    linear-gradient(-45deg, var(--paper) 6px, transparent 0) left bottom / 12px 12px repeat-x,
    linear-gradient(45deg, var(--paper) 6px, transparent 0) left bottom / 12px 12px repeat-x;
}
#list::before { top: -8px; }
#list::after { bottom: -8px; transform: scaleY(-1); }

.slip-head { padding-bottom: 10px; border-bottom: 1px dashed var(--ink); text-align: center; }
.slip-date { color: var(--sub); font-size: 13px; }
.slip-total { font-size: 18px; font-weight: 700; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.barcode {
  height: 34px;
  margin: 18px 34px 0;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 10px, var(--ink) 10px 13px, transparent 13px 15px);
}

.group { padding-top: 12px; }
.group-head { display: flex; align-items: center; gap: 8px; min-height: 34px; }
.group-head h2 { font-size: 15px; letter-spacing: .06em; }
.group-head h2::before { content: "＊ "; }
.group-head h2::after { content: " ＊"; }
.group-count { color: var(--sub); font-size: 12px; font-variant-numeric: tabular-nums; }
.group-head .plain { margin-left: auto; }
.g-urgent .group-head h2, .g-urgent .group-count { color: var(--red); }

/* 品物は印字した1行。点線で区切る */
.row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 60px;
  padding: 6px 0;
  background: var(--paper);
  border-bottom: 1px dashed var(--dash);
}
.row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 0;
  text-align: left;
}
.row-body:active { opacity: .6; }
.emoji { flex: none; width: 36px; height: 36px; padding: 2px; }
.thumb { flex: none; width: 36px; height: 36px; object-fit: cover; border: 1.5px solid var(--ink); }
.row-text { min-width: 0; display: flex; flex-direction: column; }
.name { font-size: 16px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.meta { margin-top: 1px; color: var(--sub); font-size: 12px; overflow-wrap: anywhere; }

/* 至急は赤い字と札で示す */
.row.urgent .name { color: var(--red); }
.row.urgent .name::after {
  content: "至急";
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  background: var(--red);
  color: var(--on-red);
  font-size: 11px;
  line-height: 1.5;
  vertical-align: 2px;
}

/* 購入済みにする四角いチェック欄 */
.buy-btn {
  flex: none;
  order: 1; /* 個数が変わっても位置が動かないよう、いちばん右に置く */
  position: relative;
  width: 46px;
  height: 46px;
}
.buy-btn::before { content: ""; position: absolute; inset: 2px; border: 2px solid var(--ink); }
.buy-btn::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 18px;
  width: 9px;
  height: 16px;
  border: solid var(--ink);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(42deg);
}
.buy-btn:active::before { background: var(--ink); }
.buy-btn:active::after { border-color: var(--paper); }

.back-btn { flex: none; min-height: 44px; padding: 0 6px; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* 個数。1個のときは「−」を隠して、行をすっきりさせる */
.stepper { flex: none; display: flex; align-items: center; height: 36px; }
.step { position: relative; width: 34px; height: 36px; font-size: 18px; font-weight: 700; line-height: 1; }
.step::after { content: ""; position: absolute; inset: -4px 0; } /* 押せる範囲を44pxにする */
.step:active { background: var(--ink); color: var(--paper); }
.step:disabled { color: var(--sub); opacity: .4; cursor: default; }
.step:first-child:disabled { display: none; }
.qty { display: inline-block; min-width: 22px; text-align: center; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* 購入済みは横線を引き、はんこを押す */
.row.bought { min-height: 52px; }
.row.bought .name { color: var(--sub); font-weight: 400; }
/* 横線は左から引けるよう、文字の背景に描く。2行になっても各行に線が入る */
.row.bought .name-text { background: linear-gradient(currentColor, currentColor) 0 55% / 100% 1.5px no-repeat; }
.row.bought .emoji, .row.bought .thumb { opacity: .55; }
.stamp {
  position: absolute;
  top: 50%;
  right: 50px;
  translate: 0 -50%;
  rotate: -12deg;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  font-size: 15px;
  font-weight: 700;
  pointer-events: none;
}

.empty { padding: 26px 8px 8px; text-align: center; color: var(--sub); font-size: 14px; }
.empty-title { margin-bottom: 6px; color: var(--ink); font-size: 18px; letter-spacing: .06em; }

/* 売り場の見出し */
.aisle { padding: 10px 0 4px; color: var(--sub); font-size: 12px; letter-spacing: .04em; border-bottom: 1px dashed var(--dash); }
.aisle::before { content: "－ "; }
.aisle::after { content: " －"; }

/* そろそろ買い時 */
.due-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 8px; border-bottom: 1px dashed var(--dash); }
.due-item { display: flex; align-items: stretch; border: 1px dashed var(--ink); }
.due-add { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px 0 8px; font-size: 14px; font-weight: 700; }
.due-add .icon { flex: none; width: 24px; height: 24px; }
.due-add:active, .due-skip:active { background: var(--ink); color: var(--paper); }
.due-add:active .icon .f { fill: var(--ink); }
.due-days { color: var(--sub); font-size: 12px; font-weight: 400; }
.due-skip { width: 38px; min-height: 44px; color: var(--sub); }

/* 下の入力欄 */
.dock {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 2;
  transform: translateX(-50%);
  width: 100%;
  max-width: 560px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 2px dashed var(--on-bg-sub);
}
.suggest { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; }
.chip { flex: none; display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px 0 8px; background: var(--paper); font-size: 15px; }
.chip .icon { flex: none; width: 24px; height: 24px; }
.chip:active { background: var(--ink); color: var(--paper); }
.chip:active .icon .f { fill: var(--ink); }

/* 至急・入力・追加を1本の紙にまとめる */
.bar { display: flex; align-items: center; gap: 4px; height: 54px; padding: 5px; background: var(--paper); }
.bar:focus-within { outline: 2px solid var(--on-bg); outline-offset: 2px; }
.bar input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 6px;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 16px; /* 16px未満だと iPhone で画面が拡大される */
}
.bar input::placeholder { color: var(--sub); font-size: 14px; }

.add-btn { flex: none; height: 44px; padding: 0 18px; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 700; }
.add-btn:active { background: var(--red); color: var(--on-red); }
.add-btn.wide { width: 100%; height: 48px; margin-top: 12px; }
.link-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }

.urgent-toggle { flex: none; min-height: 44px; padding: 0 12px; border: 1.5px dashed var(--sub); color: var(--sub); font-size: 14px; font-weight: 700; }
.urgent-toggle[aria-pressed="true"] { background: var(--red); border: 1.5px solid var(--red); color: var(--on-red); }

.quick { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; margin-top: 8px; }
.quick-btn { min-height: 44px; padding: 0 14px; border: 1.5px solid var(--on-bg); color: var(--on-bg); font-size: 14px; font-weight: 700; }
.quick-btn.primary, .quick-btn:active { background: var(--on-bg); color: var(--bg); }
.quick-btn.primary:active { background: var(--bg); color: var(--on-bg); }

/* 下から出る画面。レシートのように印字されて出てくる。上の端はギザギザ */
.sheet {
  width: 100%;
  max-width: 560px;
  max-height: 86dvh;
  margin: auto auto 0;
  padding: 26px 16px calc(16px + env(safe-area-inset-bottom));
  background:
    linear-gradient(-45deg, var(--paper) 6px, transparent 0) left top / 12px 8px repeat-x,
    linear-gradient(45deg, var(--paper) 6px, transparent 0) left top / 12px 8px repeat-x,
    linear-gradient(var(--paper), var(--paper)) left 8px / 100% calc(100% - 8px) no-repeat;
  color: var(--ink);
  border: 0;
}
.sheet::backdrop { background: rgba(18, 20, 24, .62); }
.sheet[open] { animation: sheet-up .38s steps(12, end); }
.sheet[open]::backdrop, .game[open]::backdrop { animation: fade-in .24s ease-out; }
.sheet-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--ink); }
.sheet-head h2 { flex: 1; font-size: 19px; letter-spacing: .05em; overflow-wrap: anywhere; }
.plain { min-height: 44px; padding: 0 6px; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.plain.small { min-height: 34px; font-size: 12px; }
.hint { color: var(--sub); font-size: 14px; }

.tabs { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 12px; }
.tab { flex: none; min-height: 40px; padding: 0 12px; color: var(--sub); font-size: 14px; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); font-weight: 700; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 86px;
  padding: 8px 4px;
  border: 1px dashed var(--dash);
}
.tile[aria-pressed="true"] { background: var(--ink); border: 1px solid var(--ink); color: var(--paper); }
.tile[aria-pressed="true"] .icon .f { fill: var(--ink); }
.tile[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 3px; right: 6px; font-size: 13px; font-weight: 700; }
.tile-emoji { width: 34px; height: 34px; }
.tile-name { font-size: 13px; line-height: 1.25; overflow-wrap: anywhere; }

.field { display: block; margin-top: 12px; color: var(--sub); font-size: 13px; }
.field input, .field select {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: 2px;
  padding: 0 4px;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  font-size: 16px;
}
.field input:focus, .field select:focus { outline: 0; border-bottom-color: var(--red); }
.detail-photo { display: block; width: 100%; max-height: 42dvh; object-fit: contain; border: 2px solid var(--ink); }
.detail-actions { display: flex; gap: 8px; margin-top: 16px; }
.danger { flex: 1; min-height: 44px; border: 2px solid var(--red); color: var(--red); font-size: 14px; font-weight: 700; }
.danger:active { background: var(--red); color: var(--on-red); }

/* 下は買った品のアイコンが落ちて溜まるので、お知らせは上に出す */
.toast {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 3;
  top: calc(6px + env(safe-area-inset-top));
  width: calc(100% - 28px);
  max-width: 532px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 4px 8px 4px 14px;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--paper);
  font-size: 14px;
  font-weight: 700;
}
.toast button { flex: none; min-height: 44px; padding: 0 8px; text-decoration: underline; text-underline-offset: 3px; }

/* 横スクロールの帯は指で動かすのでバーを出さない */
.tabs, .suggest { scrollbar-width: none; }

.code {
  margin: 6px 0 0;
  padding: 14px 12px;
  border: 2px dashed var(--ink);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
  overflow-wrap: anywhere;
}
.app-info { margin-top: 14px; font-size: 12px; }
.error { margin-top: 10px; color: var(--red); font-size: 14px; font-weight: 700; }

/* 準備画面の選択肢 */
.choice { margin-top: 12px; padding: 12px; border: 1px dashed var(--ink); }
.choice h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }

/* 押したときの反応と、キーボード操作の目印 */
button, .link-btn { transition: transform .1s ease; }
button:not(:disabled):active, .link-btn:active { transform: scale(.96); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* 買った品のアイコンの溜まり場。指の操作は下の画面へ通す */
.pile {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  pointer-events: none;
}
.pile-ball { position: absolute; top: 0; left: 0; will-change: transform; }
.pile-face { position: relative; display: block; width: 100%; height: 100%; }
/* アイコンは world.js が1枚の絵に描く。CSS の影で描くと、動くたびに描き直して重くなる */
.pile-sticker { position: absolute; }
img.pile-face { object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 2px var(--paper); } /* 写真は背景を抜けないので丸く切る */
.pile-count {
  position: absolute;
  top: -2px; /* 下に置くと入力欄に隠れる */
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--red);
  color: var(--on-red);
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

/* かごおとし */
.game {
  width: 100%;
  max-width: 560px;
  height: 100dvh;
  max-height: none;
  margin: 0 auto;
  padding: calc(8px + env(safe-area-inset-top)) 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--bg);
  color: var(--on-bg);
  border: 0;
}
.game[open] { display: flex; flex-direction: column; gap: 6px; animation: game-in .3s var(--soft); }
.game-head { display: flex; align-items: center; gap: 8px; }
.game-head h2 { font-size: 19px; letter-spacing: .05em; white-space: nowrap; }
.game-score { flex: 1; margin: 0; font-size: 18px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.game-score small { color: var(--on-bg-sub); font-size: 12px; font-weight: 400; }
#gameScore { display: inline-block; }
.game-info { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; color: var(--on-bg-sub); font-size: 13px; }
.game-field {
  position: relative;
  flex: none;
  width: 100%;
  aspect-ratio: 1 / 1.1; /* 縦長だと積み上がらないので、箱に近い形にする */
  max-height: calc(100dvh - 180px);
  margin-block: auto;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.game-line { /* ここを越えると終わりの線 */
  position: absolute;
  top: 84px;
  left: 0;
  right: 0;
  border-top: 2px dashed var(--red);
  opacity: .6;
}
/* 物の色。同じ色同士がくっつく。隣の段階と見分けやすいよう、色みを離す */
[data-level="0"] { --ring: #1673e6; }
[data-level="1"] { --ring: #0e9c4d; }
[data-level="2"] { --ring: #f5bd00; }
[data-level="3"] { --ring: #f46a00; }
[data-level="4"] { --ring: #e0142c; }
[data-level="5"] { --ring: #8b2fd6; }
[data-level="6"] { --ring: #ff5cb3; }
[data-level="7"] { --ring: #00bcd4; }
[data-level="8"] { --ring: #80491f; }
[data-level="9"] { --ring: #a4d000; }
[data-level="10"] { --ring: var(--edge); }
.game-field img.pile-face { box-shadow: 0 0 0 1px #fff, 0 0 0 4px var(--ring); } /* 写真は丸いふち */
.game-bonus {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  color: var(--red);
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  animation: bonus-up 1.4s var(--soft) forwards;
}
@keyframes bonus-up {
  from { transform: translate(-50%, -30%) scale(.7); opacity: 0; }
  20% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
  to { transform: translate(-50%, -160%) scale(1); opacity: 0; }
}
.game-legend { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; font-size: 14px; font-weight: 700; }
.game-steps { display: flex; align-items: center; gap: 3px; }
.game-steps i { width: 13px; height: 13px; background: var(--ring); border-radius: 50%; }
#gameNext { flex: none; display: flex; align-items: center; gap: 4px; padding: 1px 8px; border: 2.5px solid var(--ring); color: var(--on-bg); font-weight: 700; }
#gameNext:empty { display: none; }
#gameNext .icon { width: 22px; height: 22px; }
#gameNext .icon .f { fill: var(--bg); }
.game-guide { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-left: 1px dashed var(--dash); }
.game-aim { z-index: 1; }
.game-empty { position: absolute; inset: 40% 24px auto; color: var(--sub); font-size: 14px; text-align: center; }
.game-end {
  position: absolute;
  inset: 30% 24px auto;
  z-index: 2;
  padding: 18px;
  background: var(--paper);
  border: 2px solid var(--ink);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}
.game-end p { margin: 0; }
.game-end-title { font-size: 22px; letter-spacing: .06em; }
.game-hint { margin: 0; color: var(--on-bg-sub); font-size: 12px; text-align: center; }

/* 全部買えたときに降る紙くずと、大きなはんこ */
.scraps { position: fixed; inset: 0; z-index: 5; overflow: hidden; pointer-events: none; }
.scraps i { position: absolute; top: 0; width: 9px; height: 14px; }
.big-stamp {
  position: absolute;
  top: 38%;
  left: 50%;
  translate: -50% -50%;
  rotate: -10deg;
  padding: 10px 18px;
  border: 4px solid var(--red);
  border-radius: 12px;
  background: var(--paper);
  color: var(--red);
  font-family: var(--font);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
}

/* 画面の出入り。品物の増減は motion.js が担当する */
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes game-in { from { transform: scale(.94); opacity: 0; } }

/* ---------- ポップにする上書き（令和8年11月14日）。上のレシートの形に、色・太枠・ずらした影を足す ---------- */
/* アイコンを色付きに */
.icon .f { fill: var(--c, var(--paper)); }
.row.bought .emoji { opacity: .45; }

/* 見出しは太い字 */
.top h1, .slip-total, .group-head h2, .sheet-head h2, .game-head h2, .empty-title, .game-end-title { font-family: var(--display); font-weight: 400; }
.group-head h2::before, .group-head h2::after { content: none; }
.group-head h2 { padding: 2px 8px; background: var(--bg); color: var(--on-bg); }
.g-urgent .group-head h2 { background: var(--red); color: #fff; }

/* 紙にずらした影 */
#list { filter: drop-shadow(5px 6px 0 var(--ink)); }
.slip-total { color: var(--accent); font-size: 22px; }

/* チェック欄。押すと緑で埋まる */
.buy-btn::before { background: #fff; border-width: 2.5px; border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); }
.buy-btn:active::before { background: var(--ok); }
.buy-btn:active::after { border-color: var(--ink); }
.step { border-radius: 8px; }

/* 入力欄とボタン。太枠とずらした影 */
.bar { border: 2.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.bar:focus-within { outline: 0; }
.add-btn { background: var(--accent); color: var(--on-accent); border: 2px solid var(--ink); border-radius: 10px; }
.urgent-toggle { border-radius: 10px; }
.quick-btn { background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); }
.quick-btn.primary { background: var(--accent); color: var(--on-accent); }
.quick-btn:active, .add-btn:active, .buy-btn:active::before { transform: translate(2px, 2px); box-shadow: none; }
.dock { border-top: 0; }
.chip { border: 2px solid var(--ink); border-radius: 10px; box-shadow: 2px 2px 0 var(--ink); }

/* 定番 */
.tab { border-radius: 10px; color: var(--ink); }
.tab[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.tile { border: 2px solid var(--ink); border-radius: 12px; background: #fff; box-shadow: 3px 3px 0 var(--ink); }
.tile[aria-pressed="true"] { background: var(--bg); color: var(--ink); border-color: var(--ink); }
.tile[aria-pressed="true"] .icon .f { fill: var(--c); }

/* ゲーム */
.game-field { box-shadow: inset 0 0 0 2.5px var(--ink), 5px 6px 0 var(--ink); }
#gameNext .icon .f { fill: var(--c); }
.progress span { background: var(--accent); }
