/* デジコインの画面（2026-11-24 夜に作り直し）。部品は src/views/coin-zone.tsx、画面は src/routes/coins.tsx・board.tsx・shop.tsx。
   考え方: デジ大のほかのページと同じ部品（白いカード・ゴシック・緑のボタン・グラデーションのタブ・数字のタイル）で作る。
   金色を使うのは「コインそのもの」だけ（コインの印・残高の数字・＋枚数）。地の色・見出し・ボタンには使わない。
   クラスは cz- ではじめる。 */
:root {
  --cz-gold: #a16207;        /* 数字・＋枚数（白地で読める濃さ） */
  --cz-gold-dark: #854d0e;
  --cz-gold-soft: #fefce8;
  --cz-gold-line: #fde68a;
  --cz-coin-face: radial-gradient(circle at 35% 30%, #fff7d1 0%, #f5c84b 45%, #c98a12 100%);
  --cz-line: #e6e9f0;
}

/* ===== コインの印（小）。中の輪は、デジ大のロゴと同じ「右上があいた輪」 ===== */
.coin-dot, .coin-pill-mark { flex: none; display: inline-block; width: 22px; height: 22px; border-radius: 50%; position: relative;
  background: var(--cz-coin-face); box-shadow: inset 0 0 0 1px rgba(161, 98, 7, .35), 0 1px 2px rgba(161, 98, 7, .3); }
.coin-dot::after, .coin-pill-mark::after, .coin-card .coin-mark::after { content: ""; position: absolute; inset: 27%; border: 2px solid rgba(255, 252, 235, .96); border-radius: 50%;
  border-right-color: transparent; transform: rotate(-30deg); }

/* ===== 右上の残高の札（全ページのヘッダー） ===== */
.coin-pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 7px; margin-left: 6px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--text) !important; text-decoration: none; font-weight: 700; white-space: nowrap; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.coin-pill b { font-size: 14.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.coin-pill small { font-size: 11.5px; font-weight: 700; color: var(--sub); }
.nav .coin-pill { padding: 0 12px 0 7px; border-radius: 999px; }
.coin-pill:hover, .nav .coin-pill:hover { background: var(--cz-gold-soft); border-color: var(--cz-gold-line); }
.coin-pill[aria-current="page"], .nav .coin-pill[aria-current="page"] { background: var(--cz-gold-soft); border-color: #f5c84b; box-shadow: 0 2px 8px rgba(161, 98, 7, .14); }
.coin-pill:focus-visible { outline: 3px solid var(--ring-focus); outline-offset: 2px; }
.header-mini .coin-pill { display: inline-flex; min-width: 0; height: 34px; padding: 0 10px 0 6px; margin: 0; border-radius: 999px; color: var(--text); font-size: 13px; }
.header-mini .coin-pill[aria-current="page"] { background: var(--cz-gold-soft); color: var(--text); }
.header-mini .coin-pill b { font-size: 14px; }

/* ===== 枠：上のタブ・見出し ===== */
.cz { min-width: 0; }
.cz-tabs { display: flex; align-items: center; gap: 6px; margin: 0 0 22px; padding: 6px; border: 1px solid var(--cz-line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-1); }
.cz-tabs-name { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px 0 8px; border-right: 1px solid var(--line); font-size: 14px; font-weight: 800; white-space: nowrap; }
.cz-tabs-list { flex: 1; min-width: 0; display: flex; gap: 4px; padding: 3px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cz-tabs-list::-webkit-scrollbar { display: none; }
.cz-tabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 8px; color: var(--sub); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s; }
.cz-tabs a:hover { background: var(--surface); color: var(--text); }
.cz-tabs a[aria-current="page"] { color: #fff; background: var(--brand-gradient); box-shadow: 0 4px 12px rgba(37, 99, 235, .25); }
.cz-tabs a:focus-visible, .cz-chips a:focus-visible { outline: 3px solid var(--ring-focus); outline-offset: 2px; }
.cz-tabs a:last-child { margin-left: auto; }
.cz-tabs-badge { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #be123c; color: #fff; font-size: 11.5px; font-weight: 800; line-height: 1; }
.cz-tabs a[aria-current="page"] .cz-tabs-badge { background: #fff; color: #9f1239; }

.cz-back { margin: 0 0 6px; font-size: 14px; }
.cz-back a { display: inline-block; padding: 6px 0; color: var(--sub); text-decoration: none; }
.cz-back a:hover { color: var(--accent); }
.cz-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.cz-title { margin: 0; font-size: 26px; line-height: 1.4; overflow-wrap: anywhere; }
.cz-lead { margin: 4px 0 0; color: var(--sub); font-size: 14.5px; line-height: 1.7; }
.cz-head-side { flex: none; padding-top: 6px; }
.cz-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px 0 8px; border: 1px solid var(--cz-line); border-radius: 999px; background: #fff; color: var(--text); font-size: 13px; font-weight: 700; white-space: nowrap; }
.cz-chip b { color: var(--cz-gold); font-size: 15px; font-variant-numeric: tabular-nums; }

/* ===== カード・並び ===== */
.cz-card { position: relative; margin: 0 0 16px; padding: 20px 22px; border: 1px solid var(--cz-line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-1); min-width: 0; }
.cz-card-flush { padding: 0; overflow: hidden; }
.cz-grid { display: grid; gap: 16px; margin: 0 0 16px; }
.cz-grid > .cz-card, .cz-grid > .cz-stack { margin: 0; }
.cz-grid-hero, .cz-grid-main { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.cz-grid-main { align-items: start; }
.cz-stack { display: flex; flex-direction: column; gap: 16px; }
.cz-stack > .cz-card { margin: 0; }
.stat-tiles.cz-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 16px; }
.cz-row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cz-h2 { margin: 0 0 10px; display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; line-height: 1.5; }
.cz-h2::before { content: ""; flex: none; width: 6px; height: 19px; border-radius: 3px; background: var(--brand-gradient); }
.cz-section { margin: 30px 0 12px; }
.cz-kind { margin: 0 0 2px; color: var(--accent); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.cz-sub { margin: 0 0 10px; color: var(--sub); font-size: 14px; line-height: 1.75; }
.cz-label { margin: 0; color: var(--sub); font-size: 13.5px; font-weight: 700; }
.cz-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 6px 0 0; color: var(--sub); font-size: 13px; }
.cz-more { display: inline-block; color: var(--accent); font-size: 14px; font-weight: 700; text-decoration: none; padding: 6px 0; }
.cz-more a { color: inherit; text-decoration: none; }
.cz-more:hover, .cz-more a:hover { text-decoration: underline; }
.cz-count { margin: 0 0 10px; color: var(--sub); font-size: 13px; }
.cz-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 22px; text-align: center; color: var(--sub); }
.cz-empty .ico-svg { color: var(--accent); }
.cz-empty p { margin: 0; }
.cz .btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.cz .btn .ico-svg { flex: none; }

/* 札 */
.cz-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; font-size: 12px; font-weight: 700; white-space: nowrap; }
.cz-tag-ok { background: var(--ok-soft); border-color: #a7f3d0; color: #065f46; }
.cz-tag-warn { background: var(--warn-soft); border-color: #fde68a; color: #92400e; }
.cz-tag-use, .cz-tag-quiet { background: var(--surface); border-color: var(--line); color: #4b5563; }

/* しぼりこみ（課題ボードの .bd-tabs と同じ形） */
.cz-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.cz-chips a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.cz-chips a:hover { background: var(--surface); }
.cz-chips a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.cz-filter-row { margin-top: 22px; }
.cz .bd-tabs a { display: inline-flex; align-items: center; min-height: 38px; }

/* ===== ダッシュボード ===== */
/* 残高（主役）。白いカードに、コインのうしろだけ金色の明かり */
.cz-hero { display: flex; flex-direction: column; padding: 26px 30px 22px; border-radius: 20px; overflow: hidden;
  background: radial-gradient(380px 280px at 88% 36%, rgba(245, 200, 75, .22), rgba(245, 200, 75, 0) 70%), #fff; }
.cz-hero-body { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.cz-hero-num { min-width: 0; }
.cz-hero-label { margin: 0; color: var(--sub); font-size: 14px; font-weight: 700; line-height: 1.6; }
.cz-balance { margin: 2px 0 0; display: flex; align-items: baseline; gap: 6px; color: var(--cz-gold); }
.cz-balance b { font-size: 68px; line-height: 1.15; font-weight: 900; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.cz-balance span { font-size: 17px; font-weight: 800; color: var(--cz-gold-dark); }
.cz-balance-md b { font-size: 40px; }
.cz-coin { flex: none; width: 156px; height: 156px; margin-right: 8px; display: grid; place-items: center; }
.cz-coin svg { width: 148px; height: 148px; filter: drop-shadow(0 10px 16px rgba(161, 98, 7, .25)); }
.cz-hero-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cz-hero-note { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--sub); font-size: 12.5px; line-height: 1.7; }

/* つぎはここ */
.cz-next { display: flex; flex-direction: column; }
.cz-next-title { margin: 0 0 6px; font-size: 19px; font-weight: 800; line-height: 1.5; overflow-wrap: anywhere; }
.cz-next-reward { margin: 2px 0 10px; font-size: 24px; font-weight: 900; color: var(--cz-gold); font-variant-numeric: tabular-nums; line-height: 1.3; }
.cz-next-reward small { margin-left: 4px; font-size: 13px; font-weight: 800; color: var(--cz-gold-dark); }
.cz-next-foot { margin-top: auto; padding-top: 8px; }
.cz-progress-label { display: flex; justify-content: space-between; margin: 14px 0 6px; color: var(--sub); font-size: 13px; }
.cz-progress { height: 8px; border-radius: 99px; background: #eef0f4; overflow: hidden; }
.cz-progress span { display: block; height: 100%; border-radius: 99px; background: var(--brand-gradient); }

/* コインの動き */
.cz-acts { list-style: none; margin: 0 0 16px; padding: 0; }
.cz-act { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.cz-act:first-child { border-top: 0; }
.cz-act-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.cz-act-text { flex: 1; min-width: 0; }
.cz-act-text b { display: block; font-size: 14.5px; line-height: 1.5; }
.cz-act-text small { display: block; color: var(--sub); font-size: 12.5px; line-height: 1.5; overflow-wrap: anywhere; }
.cz-act-amt { flex: none; font-size: 17px; font-weight: 800; color: var(--cz-gold); font-variant-numeric: tabular-nums; }
.cz-act-amt small { margin-left: 2px; font-size: 11.5px; }
.cz-act-amt.is-minus { color: #4b5563; }

/* 合言葉 */
.cz-code { margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.cz-code-field { display: block; }
.cz-code-label { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-weight: 700; font-size: 14.5px; }
.cz-code-label .ico-svg { color: var(--accent); }
.cz-code-row { display: flex; gap: 8px; }
.cz-code-row input { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; font: inherit; font-size: 16px; }
.cz-code-row input:focus { outline: 2px solid var(--accent-line); border-color: var(--accent); }
.cz-code-row .btn { flex: none; }
.cz-code-note { display: block; margin-top: 8px; color: var(--sub); font-size: 12.5px; line-height: 1.6; }

/* 次の特別勉強会・ログインボーナス */
.cz-ev-mini { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; }
.cz-date { flex: none; display: inline-grid; place-items: center; min-width: 58px; padding: 6px 8px; border: 1px solid var(--cz-line); border-radius: 12px; background: #fff; text-align: center; line-height: 1.15; font-size: 13px; font-weight: 700; }
.cz-date small { font-size: 11.5px; color: var(--accent); font-weight: 700; }
.cz-date b { font-size: 24px; font-variant-numeric: tabular-nums; }
.cz-daily { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; }
.cz-daily > div { flex: 1; min-width: 0; line-height: 1.6; }
.cz-daily b { display: block; font-size: 14.5px; }
.cz-daily-tag { margin-top: 4px; }

/* もらい方 */
.cz-earn { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.cz-earn li > a, .cz-earn li > div { display: flex; align-items: center; gap: 10px; height: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); text-decoration: none; }
.cz-earn li > a { transition: border-color .15s, box-shadow .15s; }
.cz-earn li > a:hover { border-color: var(--accent-line); box-shadow: 0 4px 14px rgba(4, 120, 87, .1); }
.cz-earn li > a:focus-visible { outline: 3px solid var(--ring-focus); outline-offset: 2px; }
.cz-earn-amt { flex: none; font-weight: 800; color: var(--cz-gold); font-variant-numeric: tabular-nums; }

/* ===== 表（履歴・ランキング） ===== */
.cz-table-cap { margin: 0; padding: 12px 20px; color: var(--sub); font-size: 13px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cz-table-cap b { color: var(--text); }
.cz-card-flush .table-scroll { border: 0; border-radius: 0; }
.cz-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cz-table th { padding: 10px 20px; background: var(--surface); color: #4b5563; font-size: 13px; font-weight: 700; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
.cz-table td { padding: 13px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cz-table tr:last-child td { border-bottom: 0; }
.cz-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cz-table .nowrap { white-space: nowrap; }
.cz-cell-note { display: block; color: var(--sub); font-size: 12.5px; }
.cz-amt { font-weight: 800; color: var(--cz-gold); font-size: 16px; }
.cz-amt.is-minus { color: #4b5563; }
.cz-amt small { font-size: 12px; }
.cz-rank-no { width: 72px; }
.cz-rank-no span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); color: #374151; font-weight: 800; font-variant-numeric: tabular-nums; }
.cz-rank tr.is-top1 .cz-rank-no span { background: #fbbf24; color: #78350f; }
.cz-rank tr.is-top2 .cz-rank-no span { background: #e5e7eb; color: #374151; }
.cz-rank tr.is-top3 .cz-rank-no span { background: #fed7aa; color: #7c2d12; }
.cz-rank tr.is-me td { background: var(--accent-soft); }
.cz-rank-who { display: flex; align-items: center; gap: 10px; }
.cz-rank-who > span:last-child { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; overflow-wrap: anywhere; font-weight: 600; }
.cz-avatar { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #eef2ff; color: #3730a3; font-weight: 800; font-size: 14px; }
.cz-sum { margin: 14px 0 0; }
.cz-sum > div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.cz-sum dt { color: var(--sub); }
.cz-sum dd { margin: 0; font-weight: 800; color: var(--cz-gold); font-variant-numeric: tabular-nums; }
.cz-sum > div.is-use dd { color: #4b5563; }
.cz-sum-lg > div { font-size: 15px; padding: 12px 0; }
.cz-sum-lg dd { color: var(--text); font-weight: 700; text-align: right; }
.cz .coin-rules > li::marker { color: var(--accent); }

/* ===== 課題ボード ===== */
.cz-intro.is-done { border-color: var(--accent-line); }
.cz-tasks { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.cz-task { margin: 0; display: flex; flex-direction: column; }
.cz-task.is-done { border-color: var(--accent-line); }
.cz-task-title { margin-top: 6px; font-size: 17px; font-weight: 800; color: var(--text); text-decoration: none; line-height: 1.5; overflow-wrap: anywhere; }
.cz-task-title:hover { color: var(--accent); text-decoration: underline; }
.cz-task-desc { margin-top: 6px; }
.cz-task-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: auto 0 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.cz-task-foot .cz-sub { margin: 0; font-size: 12.5px; }
.cz-task-reward { font-size: 21px; font-weight: 900; color: var(--cz-gold); font-variant-numeric: tabular-nums; }
.cz-task-reward small { margin-left: 3px; font-size: 12px; font-weight: 800; color: var(--cz-gold-dark); }

/* ===== コインを使う（商品） ===== */
.cz-perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.cz-perk { margin: 0; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.cz-perk-visual { position: relative; display: grid; place-items: center; height: 140px; background: linear-gradient(120deg, #ecfdf5 0%, #eff6ff 55%, #f5f3ff 100%); border-bottom: 1px solid var(--line); }
.cz-perk-visual img { width: 100%; height: 100%; object-fit: cover; }
.cz-perk-ico { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: #fff; color: var(--accent); box-shadow: var(--shadow-1); }
.cz-perk-tags { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; }
.cz-perk-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.cz-perk-name { font-size: 17px; font-weight: 800; color: var(--text); text-decoration: none; line-height: 1.5; overflow-wrap: anywhere; }
.cz-perk-name:hover { color: var(--accent); text-decoration: underline; }
.cz-perk-desc { margin-top: 6px; }
.cz-perk-price { margin: 2px 0 10px; font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.3; }
.cz-perk-price small { margin-left: 3px; font-size: 13px; }
.cz-perk-coin { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: auto 0 10px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--sub); font-size: 13.5px; }
.cz-perk-coin b { font-size: 17px; font-weight: 800; color: var(--cz-gold); }
.cz-perk-pay { margin: 0 0 10px; font-size: 13px; }

.cz .shop-pay-card > .btn { margin-top: 16px; }

.cz-perk-name, .cz-task-title, .cz-ev-title { display: block; padding: 4px 0; }
/* ===== 特別勉強会 ===== */
.cz-evs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cz-ev { margin: 0; display: flex; align-items: center; gap: 18px; padding: 18px 22px; }
.cz-ev.is-joined { border-color: var(--accent-line); }
.cz-ev .cz-date { min-width: 66px; padding: 8px; }
.cz-ev .cz-date b { font-size: 28px; }
.cz-ev-body { flex: 1; min-width: 0; }
.cz-ev-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 4px; }
.cz-ev-title { font-size: 17px; font-weight: 800; color: var(--text); text-decoration: none; line-height: 1.5; overflow-wrap: anywhere; }
.cz-ev-title:hover { color: var(--accent); text-decoration: underline; }
.cz-ev-desc { margin: 4px 0 0; }
.cz-ev > .btn { flex: none; }

/* ===== ホームのカード（デジ大のホームに置く。public/coins.css の上書き） ===== */
.coin-card { border: 1px solid var(--cz-line); border-radius: 18px; box-shadow: var(--shadow-1);
  background: radial-gradient(320px 150px at 0% 0%, rgba(245, 200, 75, .18), rgba(245, 200, 75, 0) 70%), #fff; }
.coin-card .coin-mark { background: var(--cz-coin-face); box-shadow: inset 0 0 0 1px rgba(161, 98, 7, .35), 0 2px 6px rgba(161, 98, 7, .25); }
.coin-card .coin-mark-lg { width: 50px; height: 50px; }
.coin-card .coin-mark-lg::after { border-width: 4px; }
.coin-card-label { color: var(--sub); }
.coin-card-balance { color: var(--cz-gold-dark); }
.coin-card-balance b { font-size: 32px; font-weight: 900; color: var(--cz-gold); }
.coin-card-rank { border-color: #ddd6fe; background: #f5f3ff; color: #5b21b6; }
.coin-card-more { border-color: var(--line); color: var(--text); }
.coin-card-links { border-top-color: var(--line); background: transparent; }
.coin-card-links a { color: var(--accent-dark); }
.coin-card-links a + a { border-left-color: var(--line); }
.coin-card-links a:hover { background: var(--accent-soft); }
@media (max-width: 640px) { .coin-card-links a:nth-child(n+3) { border-top-color: var(--line); } }

/* ===== スマホ・タブレット ===== */
@media (max-width: 900px) {
  .cz-grid-hero, .cz-grid-main { grid-template-columns: minmax(0, 1fr); }
  .cz-tabs-name { display: none; }
  .cz-tabs a:last-child { margin-left: 0; }
}
@media (max-width: 760px) {
  .coin-pill { margin-left: 0; }
  .cz-tabs { margin: 0 -8px 16px; padding: 4px; border-radius: 12px; }
  .cz-tabs a { min-height: 42px; padding: 0 11px; font-size: 13.5px; }
  .cz-tabs a .ico-svg { display: none; }
  .cz-title { font-size: 23px; }
  .cz-head { flex-direction: column; gap: 8px; margin-bottom: 14px; }
  .cz-head-side { padding-top: 0; }
  .cz-card { padding: 16px; border-radius: 14px; margin-bottom: 12px; }
  .cz-card-flush, .cz-perk { padding: 0; }
  .cz-grid { gap: 12px; margin-bottom: 12px; }
  .cz-stack { gap: 12px; }
  .cz-hero { padding: 18px 16px; border-radius: 16px; }
  .cz-balance b { font-size: 48px; }
  .cz-balance-md b { font-size: 36px; }
  .cz-coin { width: 92px; height: 92px; margin-right: 0; }
  .cz-coin svg { width: 86px; height: 86px; }
  .cz-hero-foot .btn { flex: 1 1 140px; }
  .stat-tiles.cz-stats { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 12px; }
  .cz-table th, .cz-table td { padding: 11px 12px; }
  .cz-table-cap { padding: 11px 12px; }
  .cz-rank-no { width: 50px; }
  /* 履歴はスマホでは 1 件ずつの段に（内容と枚数を上、日時と種類を下） */
  .cz-history, .cz-history tbody { display: block; }
  .cz-history thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cz-history tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .cz-history tr:last-child { border-bottom: 0; }
  .cz-history td { display: block; padding: 0; border: 0; }
  .cz-history td:nth-child(1) { grid-area: 2 / 1; color: var(--sub); font-size: 12.5px; }
  .cz-history td:nth-child(2) { grid-area: 1 / 1; font-weight: 700; overflow-wrap: anywhere; }
  .cz-history td:nth-child(3) { grid-area: 2 / 2; text-align: right; }
  .cz-history td:nth-child(4) { grid-area: 1 / 2; }
  .cz-rank .cz-avatar { display: none; }
  .cz-ev { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .cz-ev > .btn { width: 100%; }
  .cz-code-row { flex-direction: column; }
  .cz-code-row .btn { width: 100%; }
  .cz-earn { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 430px) {
  .header-mini .coin-pill small { display: none; }
  .header-mini .coin-pill { padding: 0 9px 0 5px; }
}
@media (max-width: 380px) {
  .cz-balance b { font-size: 42px; }
  .cz-coin { width: 76px; height: 76px; }
  .cz-coin svg { width: 72px; height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .coin-pill, .cz-tabs a, .cz-earn li > a { transition: none; }
}

/* ===== コインの絵（2026-11-24・オーナーが選んだ「11 ひらめきの星」の金貨の画像） ===== */
.coin-dot, .coin-pill-mark, .coin-card .coin-mark, .coin-mark {
  background: url(/coin/digicoin-48.webp) center / contain no-repeat; box-shadow: none; border-radius: 50%; }
.coin-card .coin-mark-lg, .coin-mark-lg { background-image: url(/coin/digicoin-112.webp); }
.coin-dot::after, .coin-pill-mark::after, .coin-card .coin-mark::after, .coin-mark::after { content: none; display: none; }
.cz-coin img { width: 148px; height: 148px; display: block; filter: drop-shadow(0 10px 18px rgba(120, 80, 10, .28)); }
@media (max-width: 760px) { .cz-coin img { width: 86px; height: 86px; } }
@media (max-width: 380px) { .cz-coin img { width: 72px; height: 72px; } }

/* 2026-11-25: いま受け付け中の合言葉（名前・期間・枚数・受け取ったか） */
.cz-open-codes { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line, #e5e7eb); }
.cz-open-codes-h { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-weight: 700; font-size: 14.5px; }
.cz-open-codes ul { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 8px; }
.cz-open-codes li { padding: 10px 12px; border: 1px solid var(--line, #e5e7eb); border-radius: 10px; background: #fff; display: grid; gap: 2px; }
.cz-open-codes li.is-claimed { background: #f8fafc; }
.cz-oc-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.cz-oc-meta { font-size: 13px; color: var(--sub, #6b7280); }
.cz-oc-meta b { color: #92400e; }

/* 2026-11-27: コインの決まりの「大事なこと」 */
.coin-keypoints { border: 2px solid #f59e0b; background: #fffbeb; margin-bottom: 14px; }
.coin-keypoints ul { margin: 6px 0 0; padding-left: 1.2em; line-height: 1.9; font-weight: 700; }
