/* PHYSICAL CLUB スタンプカード — 値はすべて DESIGN.md から */
:root {
  --bg: #FFF3F6;
  --surface: #FFFFFF;
  --text: #3A1A20;
  --muted: #7A5960;
  --line: #F3D9E0;
  --main: #660111;
  --main-2: #8E0321;
  --accent: #D11F5E;
  --pink: #FA68A3;      /* ロゴのハートの色 */
  --pink-soft: #FFE1EB;

  --k-kin: #F8AA6D;   --d-kin: #FE8940;
  --k-dx: #FBF296;    --d-dx: #E3C21A;
  --k-dance: #F9A9C9; --d-dance: #FA68A3;
  --k-hiit: #D41A30;  --d-hiit: #DC1620;
  --k-st: #B9D8EF;    --d-st: #3799F3;
  --k-ori: #DCCDF2;   --d-ori: #8F6FD1;

  --gap-in: 8px;
  --gap-between: 20px;
  --gap-section: 44px;
  --gutter: 16px;
  --r: 20px;
  --r-s: 14px;

  --f-num: "Quicksand", "Zen Maru Gothic", system-ui, sans-serif;
  --f-script: "Yellowtail", cursive;
  --f-ja: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;

  --tabs-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: url(paper.svg), linear-gradient(180deg, #FFDCE8 0, #FFEAF0 220px, var(--bg) 520px);
  background-repeat: repeat, no-repeat;
  background-size: 360px 360px, 100% 100%;
  color: var(--text);
  font-family: var(--f-ja);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.7;
  font-feature-settings: "palt" 0;
  line-break: strict;
  text-wrap: pretty;
  padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + var(--gap-section));
}
body.no-tabs { padding-bottom: var(--gap-section); }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 4px solid #000; outline-offset: 2px; box-shadow: 0 0 0 2px #FFD43D; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ヘッダー: ロゴの地のグラデ（実測 #560008 → #8E0321） */
.masthead {
  background: linear-gradient(100deg, #560008 0%, #660111 45%, var(--main-2) 100%);
  color: #fff;
  text-align: center;
  padding: 14px var(--gutter) 12px;
}
.masthead__logo {
  display: block;
  width: 210px;
  height: auto;
  margin: 0 auto;
}
/* 登録のあとは細いヘッダー（主役の回数と台紙を上に出す） */
body.compact .masthead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px var(--gutter); min-height: 60px;
}
body.compact .masthead__logo { width: 112px; margin: 0; }
body.compact .masthead__sub { margin: 0; letter-spacing: .2em; }
.masthead__sub {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3em;
  margin-top: 2px;
  opacity: .92;
}

.wrap { max-width: 560px; margin: 0 auto; padding: 0 var(--gutter); }
.loading { padding: var(--gap-section) 0; color: var(--muted); text-align: center; }

/* 見出しと章 */
.sec { margin-top: var(--gap-section); }
.sec:first-child { margin-top: 28px; }
.h2 { font-size: 24px; font-weight: 700; line-height: 1.35; letter-spacing: .02em; }
.h3 { font-size: 18px; font-weight: 700; line-height: 1.4; }
.lead { color: var(--muted); margin-top: var(--gap-in); }
.note { font-size: 13px; color: var(--muted); line-height: 1.6; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* 月の切り替え */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: 3px; }
.seg button {
  min-width: 64px; min-height: 44px; padding: 0 12px;
  border: 0; background: transparent; border-radius: 999px;
  font-weight: 700; font-size: 16px; color: var(--muted);
}
.seg button[aria-pressed="true"] { background: linear-gradient(120deg, #560008, var(--main) 50%, var(--main-2)); color: #fff; }

/* 面 */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }

/* ボタン */
.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 0; border-radius: 999px;
  background: linear-gradient(120deg, #D42A66 0%, #C8114A 55%, #B30E43 100%); color: #fff;
  font-weight: 700; font-size: 16px; letter-spacing: .04em; line-height: 1.3;
  text-decoration: none;
}
.btn:hover { background: linear-gradient(120deg, #C2205A, #A80E3E); }
.btn--sub { background: var(--surface); color: var(--main); border: 1px solid var(--main); }
.btn--sub:hover { background: var(--pink-soft); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.linkbtn {
  border: 0; background: none; padding: 12px 4px; min-height: 44px;
  color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px;
}

/* 入力 */
.field { display: block; }
.field__label { display: block; font-weight: 700; margin-bottom: var(--gap-in); }
.input {
  width: 100%; min-height: 56px; padding: 12px 16px;
  border: 1.5px solid #B58A95; border-radius: var(--r-s); background: var(--surface);
  font-size: 18px;
}
.input:hover { border-color: var(--text); }
.err { color: #B0002A; font-weight: 700; margin-top: var(--gap-in); }

/* ===== 登録 ===== */
.welcome { padding-top: 32px; }
.welcome__script { font-size: 26px; margin-bottom: 8px; }
.welcome__catch { font-size: 24px; font-weight: 700; line-height: 1.45; }
.welcome__catch em { font-style: normal; color: var(--main); }
.welcome__text { margin-top: var(--gap-between); }
.welcome form { margin-top: 28px; display: grid; gap: var(--gap-between); }
.howto { margin-top: var(--gap-section); counter-reset: step; display: grid; gap: 14px; padding: 0; list-style: none; }
.howto li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.howto li::before {
  counter-increment: step; content: counter(step);
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--pink); color: #fff; font-family: var(--f-num); font-weight: 700; font-size: 15px;
}
.howto b { display: block; }

/* ===== スタンプを押す ===== */
.press { padding-top: 28px; }
.press__card { padding: 24px 20px; text-align: center; }
.press__date { font-family: var(--f-num); font-weight: 700; font-size: 20px; color: var(--main); letter-spacing: .02em; }
.press__kind { margin-top: 12px; }
.press__btn { margin-top: 24px; min-height: 60px; font-size: 18px; }
.press__msg { margin-top: var(--gap-between); text-align: left; }

.done { text-align: center; padding: 32px 20px 28px; }
.done__nice { font-family: var(--f-script); position: relative; z-index: 1; font-size: 40px; line-height: 1; color: #D1306A; margin-bottom: 10px; }
.done__seal { position: relative; width: 132px; height: 132px; margin: 0 auto; }
.done__label { margin-top: 18px; font-size: 18px; font-weight: 700; }
.done__k { margin-top: var(--gap-between); font-weight: 700; color: var(--muted); }
.done__num { font-family: var(--f-num); font-weight: 700; font-size: 64px; line-height: 1; color: var(--main); margin-top: 4px; }
.done__num .g { background: linear-gradient(160deg, var(--main) 20%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-right: 2px; }
.minisheet { display: grid; grid-template-columns: repeat(7, 34px); justify-content: center; gap: 4px; margin: 14px auto 0; }
.minisheet b { font-size: 12px; font-weight: 700; color: var(--muted); line-height: 1.4; }
.minisheet span { display: flex; justify-content: center; align-items: center; gap: 2px; min-height: 16px; }
.minisheet i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--dot); background: var(--surface); }
.minisheet i.is-on { background: var(--dot); border-color: var(--dot); }
.minisheet i.is-now { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--main); }
.done__num small { font-family: var(--f-ja); font-size: 18px; font-weight: 700; margin-left: 4px; color: var(--text); }
.done__sub { margin-top: 10px; color: var(--muted); }
.done__award { margin-top: var(--gap-between); padding: 14px 16px; border-radius: var(--r-s); background: linear-gradient(120deg, #560008, var(--main) 45%, var(--main-2)); color: #fff; font-weight: 700; }
.done__award span { display: block; font-size: 13px; font-weight: 400; opacity: .9; }
.done .btn { margin-top: 24px; }

/* ===== スタンプ（台紙の丸） ===== */
.stamp {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--dot, var(--line)); background: var(--surface);
  padding: 0;
}
.stamp__t { font-family: var(--f-num); font-weight: 600; font-size: 12px; line-height: 1; color: var(--text); letter-spacing: -.01em; }
.stamp.is-past { border: 0; background: #F6DFE6; }
.stamp.is-past .stamp__t { color: var(--muted); }
.stamp.is-on { background: linear-gradient(150deg, var(--kc) 0%, var(--dot) 70%); border: 0; box-shadow: inset 0 0 0 3px rgba(255,255,255,.5); }
.stamp.is-on svg { width: 22px; height: 22px; color: #fff; margin-top: 1px; }
.stamp.is-open { border-width: 3.5px; }
.stamp.is-sel { outline: 2px solid var(--text); outline-offset: 3px; }

.stamp--big { width: 132px; height: 132px; }
.stamp--big.is-on { box-shadow: inset 0 0 0 8px rgba(255,255,255,.45); }
.stamp--big svg { width: 64px !important; height: 64px !important; margin-top: 4px; }
.stamp--big.is-new { animation: seal 240ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes seal { from { transform: scale(1.25); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .stamp--big.is-new { animation: none; } }

.k-kin { --kc: var(--k-kin); --dot: var(--d-kin); }
.k-dx { --kc: var(--k-dx); --dot: var(--d-dx); }
.k-dance { --kc: var(--k-dance); --dot: var(--d-dance); }
.k-hiit { --kc: var(--k-hiit); --dot: var(--d-hiit); }
.k-st { --kc: var(--k-st); --dot: var(--d-st); }
.k-ori { --kc: var(--k-ori); --dot: var(--d-ori); }

/* 種目の札 */
.chip {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--kc); color: var(--text);
  font-size: 13px; font-weight: 700; line-height: 1.4; white-space: nowrap;
}
.chip.k-hiit { color: #fff; }
.chip--lg { font-size: 16px; padding: 6px 14px; }

/* ===== 自分のカード ===== */
.me { margin-top: 24px; }
.me__hello { font-weight: 700; }
.score { display: flex; align-items: flex-end; gap: 14px; margin-top: 14px; }
.score__num { font-family: var(--f-num); font-weight: 700; font-size: 64px; line-height: .9; color: var(--main); letter-spacing: -.02em;
  background: linear-gradient(160deg, var(--main) 20%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-right: 2px; }
.score__unit { font-size: 18px; font-weight: 700; color: var(--text); margin-left: 2px; }
.score__of { color: var(--muted); padding-bottom: 6px; }
.next { margin-top: var(--gap-between); display: grid; gap: 6px; }
.next__row { display: grid; grid-template-columns: 6.8em minmax(0, 1fr); gap: 10px; align-items: baseline; }
.next__k { font-size: 13px; font-weight: 700; color: var(--muted); }
.next__v { font-weight: 700; }
.next__v b { color: var(--main); }
.next__hint { grid-column: 2; font-size: 13px; font-weight: 500; color: var(--muted); line-height: 1.6; }
.next__v b.num { font-family: var(--f-num); font-weight: 700; font-size: 22px; line-height: 1; margin: 0 2px; }
.nw { white-space: nowrap; display: inline-block; }

.sheet { margin-top: var(--gap-between); padding: 12px 4px 14px; }
.sheet__head, .sheet__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.sheet__head span {
  text-align: center; font-family: var(--f-num); font-weight: 600; font-size: 12px;
  color: var(--muted); letter-spacing: .08em; padding-bottom: 6px; border-bottom: 1px solid var(--line);
}
.sheet__head span:nth-child(6), .sheet__head span:nth-child(7) { color: var(--main); }
.day { min-height: 0; padding: 4px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); }
.sheet__grid .day:nth-last-child(-n+7) { border-bottom: 0; }
.day__n { font-family: var(--f-num); font-weight: 600; font-size: 13px; line-height: 20px; color: var(--muted); min-width: 22px; height: 20px; text-align: center; border-radius: 10px; }
.day.is-today .day__n { background: var(--accent); color: #fff; }
.day.is-empty .day__n { visibility: hidden; }
.day.is-thin { min-height: 0; padding-bottom: 6px; }

.detail { margin-top: 12px; min-height: 52px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.detail__lab { flex-basis: 100%; font-size: 13px; color: var(--muted); line-height: 1.4; }
.detail__when { font-family: var(--f-num); font-weight: 700; }
.detail__state { flex-basis: 100%; font-weight: 700; font-size: 13px; color: var(--muted); }
.detail__state.is-open { color: var(--accent); }

.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: var(--gap-in); padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; background: var(--dot); display: inline-block; }
.legend i.mark { width: 18px; height: 18px; display: inline-grid; place-items: center; background: linear-gradient(150deg, var(--k-dance), var(--d-dance)); }
.legend i.mark svg { width: 10px; height: 10px; color: #fff; }
.legend i.miss { width: 18px; height: 18px; background: #F6DFE6; box-shadow: inset 0 0 0 1px #D9B4BF; }
.legend i.sel { width: 14px; height: 14px; background: transparent; outline: 2px solid var(--text); outline-offset: 1px; }

/* 種目別 */
.bars { margin-top: var(--gap-between); display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name val" "track track"; gap: 6px 12px; align-items: baseline; }
.bar__name { grid-area: name; }
.bar__val { grid-area: val; }
.bar__track { grid-area: track; }
.bar__name { font-size: 16px; font-weight: 700; line-height: 1.4; }
.bar__track { height: 12px; border-radius: 999px; background: #F8E4EA; overflow: hidden; }
.bar__track, .bar__fill { display: block; }
.bar__fill { height: 100%; background: var(--dot); border-radius: 999px; }
.bar__val { font-family: var(--f-num); font-weight: 600; font-size: 16px; text-align: right; white-space: nowrap; }

/* ごほうび */
.awards { margin-top: var(--gap-between); padding: 0; list-style: none; display: grid; gap: 0; }
.award { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.award:last-child { border-bottom: 1px solid var(--line); }
.award__ring {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px dashed #E0C2CB; color: #8E6A73;
  font-family: var(--f-num); font-weight: 700; font-size: 18px;
}
.award.is-got .award__ring { border: 0; background: var(--pink); color: #fff; }
.award__name { font-weight: 700; line-height: 1.4; }
.award__desc { font-size: 13px; color: var(--muted); }
.award__state { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.award.is-got .award__state { color: var(--main); }
.award.is-next .award__state { color: var(--accent); }

.foot { margin-top: var(--gap-section); text-align: center; }

/* ===== みんな ===== */
.stats { display: flex; gap: 28px; margin-top: var(--gap-between); }
.stat__v { font-family: var(--f-num); font-weight: 700; font-size: 32px; line-height: 1; color: var(--main); }
.stat__v small { font-family: var(--f-ja); font-size: 16px; font-weight: 700; color: var(--text); margin-left: 2px; }
.stat__k { font-size: 13px; color: var(--muted); margin-top: 6px; }

.rank { margin-top: var(--gap-between); padding: 4px 0; list-style: none; }
.rank__row {
  display: grid; grid-template-columns: 2.6em minmax(0, 1fr) auto; gap: 2px 12px; align-items: center;
  padding: 9px 16px; border-top: 1px solid var(--line);
}
.rank__row:first-child { border-top: 0; }
.rank__no { font-family: var(--f-num); font-weight: 700; font-size: 18px; color: var(--muted); }
.rank__row.is-top .rank__no { color: var(--main); }
.rank__name { font-weight: 700; overflow-wrap: anywhere; line-height: 1.45; }
.rank__me { display: inline-block; margin-left: 8px; padding: 0 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; vertical-align: 2px; }
.rank__n { font-family: var(--f-num); font-weight: 700; font-size: 22px; text-align: right; }
.rank__n small { font-family: var(--f-ja); font-size: 13px; font-weight: 700; margin-left: 2px; }
.rank__bar { grid-column: 2 / 4; height: 6px; border-radius: 999px; background: #F8E4EA; overflow: hidden; }
.rank__bar i { display: block; height: 100%; background: var(--pink); border-radius: 999px; }
.rank__dots { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: 2px; }
.rank__dots i { width: 7px; height: 7px; border-radius: 50%; background: #EBD3DA; }
.rank__dots i.is-future { background: transparent; box-shadow: inset 0 0 0 1px #E2C6CE; }
.rank__dots i.is-on { background: var(--dot); }
.rank__row.is-me { background: var(--pink-soft); }
.rank__row.is-me .rank__bar i { background: var(--accent); }
.rank__more { padding: 12px 16px; border-top: 1px solid var(--line); }

/* ===== スケジュール ===== */
.today { margin-top: var(--gap-between); padding: 14px 16px 8px; border: 2px solid var(--main); }
.today__h { font-size: 18px; font-weight: 700; color: var(--text); }
.days__h { margin-top: var(--gap-section); }
.days { margin-top: var(--gap-in); padding: 0 16px; }
.past .days { margin-top: 12px; }
.sday { padding: 8px 0 6px; }
.sday + .sday { border-top: 1px solid var(--line); }
.past { margin-top: var(--gap-between); }
.past summary {
  display: flex; align-items: center; justify-content: center; min-height: 52px;
  border: 1px solid var(--main); border-radius: 999px; background: var(--surface);
  color: var(--main); font-weight: 700; cursor: pointer; list-style: none;
}
.past summary::-webkit-details-marker { display: none; }
.past[open] summary { margin-bottom: 0; }
.sday__h { display: flex; align-items: baseline; gap: 2px; padding: 6px 0 0; }
.sday__d { font-family: var(--f-num); font-weight: 700; font-size: 18px; }
.sday__w { font-weight: 700; color: var(--muted); }
.sday__w.is-we { color: var(--main); }
.sday__tag { margin-left: auto; font-size: 13px; font-weight: 700; color: #fff; background: var(--accent); padding: 0 8px; border-radius: 6px; }
.sday.is-past { opacity: .62; }
.lrow { display: grid; grid-template-columns: 3.4em minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; }
.today .lrow + .lrow { border-top: 1px dashed var(--line); }
.lrow__t { font-family: var(--f-num); font-weight: 700; font-size: 16px; }
.lrow__k { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; }
.lrow__cnt { font-size: 13px; color: var(--muted); white-space: nowrap; }
.lrow__st { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; text-align: right; }
.lrow__st.is-on { color: var(--muted); }
.lrow__st.is-open { color: var(--accent); }

/* ===== 下のタブ ===== */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabs__btn {
  height: var(--tabs-h); border: 0; background: transparent;
  font-weight: 700; font-size: 16px; color: var(--muted);
  position: relative;
}
.tabs__btn[aria-current="page"] { color: var(--main); }
.tabs__btn[aria-current="page"]::before {
  content: ""; position: absolute; top: 10px; bottom: 10px; left: 14%; right: 14%; border-radius: 999px; background: linear-gradient(120deg, #FFD3E2, var(--pink-soft)); z-index: -1;
}
.tabs__btn { z-index: 0; }

/* 確認の小窓 */
.dialog { border: 0; border-radius: var(--r); padding: 24px 20px; max-width: min(420px, calc(100vw - 32px)); color: var(--text); }
.dialog::backdrop { background: rgba(0,0,0,.6); }
.dialog p + p { margin-top: var(--gap-in); }
.dialog .btns { display: grid; gap: 10px; margin-top: var(--gap-between); }

/* PC */
@media (min-width: 768px) {
  .masthead { padding: 18px var(--gutter) 14px; }
  .masthead__logo { width: 240px; }
  .score__num { font-size: 72px; }
  .h2 { font-size: 26px; }
  .stamp { width: 48px; height: 48px; }
  .stamp__t { font-size: 13px; }
  .day { min-height: 80px; }
  .tabs { left: 50%; right: auto; width: 560px; transform: translateX(-50%); border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; }
}

/* ===== 参考サイトから: 大きな淡い丸・手描きの波線 ===== */
/* 大きな淡い丸（goodbuff の色面の丸）。主役の数字・スタンプの後ろにだけ置く */
.score { position: relative; isolation: isolate; }
.score::before {
  content: ""; position: absolute; z-index: -1; left: -46px; top: -40px; width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #FFD0E0, rgba(255,208,224,0) 70%);
}
.done__seal::before {
  content: ""; position: absolute; inset: -12px; border-radius: 50%; background: var(--pink-soft);
}
.done__seal .stamp { position: relative; }
.welcome { position: relative; isolation: isolate; }
.welcome::before {
  content: ""; position: absolute; z-index: -1; right: -16px; top: 40px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle at 45% 45%, #FFD0E0, rgba(255,208,224,0) 70%);
}
/* 手描きの波線（koboyo「wavy-underline」）。章の見出しの下に1本 */
.wave { display: block; width: 92px; height: 10px; margin-top: 8px;
  background: linear-gradient(90deg, #FF9EC2, var(--accent));
  -webkit-mask: url(wavy.svg) no-repeat left center / contain; mask: url(wavy.svg) no-repeat left center / contain; }
.welcome__script { margin-left: -2px; }
/* 黄色だけは白い地の上で輪・点が見えにくいので、輪と点の色を濃くする（塗りは明るいまま） */
.stamp.k-dx:not(.is-on):not(.is-past) { border-color: #A88B00; }
.legend .k-dx i { background: #A88B00; }

.prize { margin-top: var(--gap-in); padding: 10px 14px; border-radius: var(--r-s); background: var(--surface); border: 1px dashed var(--pink); font-weight: 700; color: var(--main); }
.foot .note { text-align: left; display: inline-block; }
.minisheet i.is-past { border: 0; background: #F6DFE6; box-shadow: inset 0 0 0 1px #D9B4BF; }

/* ===== 登録画面（見本・名前の案内・使い方・戻り方） ===== */
body:not(.compact) .masthead { padding: 10px var(--gutter) 8px; }
body:not(.compact) .masthead__logo { width: 168px; }
.welcome { padding-top: 24px; }
.stampnote { margin-bottom: var(--gap-between); padding: 12px 14px; border-radius: var(--r-s); background: var(--surface); border: 1px solid var(--line); }
.welcome__catch { font-size: 28px; line-height: 1.4; }
.sample { position: relative; margin-top: var(--gap-between); padding: 16px 8px 14px; }
.sample__tag { position: absolute; top: 12px; right: 12px; padding: 2px 10px; border-radius: 999px; background: var(--text); color: #fff; font-size: 13px; font-weight: 700; }
.sample__top { display: flex; align-items: flex-end; gap: 12px; padding: 0 8px 12px; }
.sample__top .score__num { font-size: 52px; }
.sample__of { color: var(--muted); font-size: 13px; line-height: 1.6; padding-bottom: 4px; }
.sample__award { color: var(--text); font-weight: 700; font-size: 16px; }
.sample__grid .day { border-bottom: 0; }
.sample__cap { padding: 4px 8px 0; font-size: 13px; color: var(--muted); }
.field__help { display: block; color: var(--muted); margin-bottom: 10px; line-height: 1.7; }
.howto__h { margin-top: var(--gap-section); }
.howto { margin-top: var(--gap-between); }
.back__h { margin-top: var(--gap-section); }
.back { margin: var(--gap-in) 0 0; padding-left: 1.2em; color: var(--text); display: grid; gap: 8px; }
.sample__top > p:first-child { white-space: nowrap; }

/* ===== 絵（koboyo の手描き線画を mask で着色） ===== */
.ico { display: inline-block; flex-shrink: 0; width: 1.25em; height: 1.25em; vertical-align: -0.25em;
  background: currentColor; -webkit-mask: var(--ico) no-repeat center / contain; mask: var(--ico) no-repeat center / contain; }
.chip .ico { margin-right: 4px; }
.legend li .ico, .bar__name .ico { color: var(--dot); margin-right: 6px; }
.legend .k-dx .ico, .bar__name.k-dx .ico { color: #A88B00; }
.bar__name { display: inline-flex; align-items: center; }
.mascot { display: block; background: #C8336F;
  -webkit-mask: var(--ico) no-repeat center / contain; mask: var(--ico) no-repeat center / contain; }
.mascot--score { width: 92px; height: 72px; margin-left: auto; align-self: center; background: var(--pink); }
.done__seal { position: relative; }
.mascot--done { position: absolute; z-index: 2; right: -84px; bottom: -14px; width: 88px; height: 88px; background: var(--pink); }
.mascots { display: flex; justify-content: center; align-items: flex-end; gap: 18px; margin-top: var(--gap-section); }
.mascots .mascot { width: 84px; height: 84px; background: var(--pink); }
.mascots .mascot:nth-child(2) { width: 104px; height: 70px; background: #C8336F; }
.mascots--one .mascot { width: 110px; height: 110px; }
.legend li .ico { width: 18px; height: 18px; border-radius: 0; background: var(--dot); }
.legend .k-dx .ico { background: #A88B00; }
.bar__name .ico { width: 28px; height: 28px; margin-right: 8px; }
.legend li .ico { width: 22px; height: 22px; }
.chip .ico { width: 1.35em; height: 1.35em; }
