/* ===========================================================
   2026 OUTRUN100
   設計主張：跑道即結構。分道線、起跑格紋、計時器數字。
   =========================================================== */

:root {
  --track:  #E4571F;   /* 跑道橘紅 */
  --flame:  #F5821F;   /* 主橘 */
  --beam:   #FFC629;   /* 提示黃 */
  --sky:    #9FDCF2;   /* 天空藍 */
  --ink:    #1B1F23;   /* 近黑 */
  --chalk:  #FFF9F0;   /* 暖白 */
  --paper:  #FFFFFF;
  --muted:  #6D7681;
  --line:   rgba(27,31,35,.12);

  --display: 'Anton', 'Noto Sans TC', sans-serif;
  --zh: 'Noto Sans TC', -apple-system, 'PingFang TC', sans-serif;
  --mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1080px;
  --r: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--zh);
  color: var(--ink);
  background: var(--chalk);
  line-height: 1.75;
  font-size: 16px;
}
img, svg { max-width: 100%; }
a { color: var(--track); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 跑道分道牌：全站共用的結構標記 ---------- */
.lane-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-weight: 700; font-size: 12px;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  background: var(--ink); color: var(--beam);
}
.lane-tag.on-dark { background: rgba(255,255,255,.16); color: #fff; }
.lane-tag b { color: #fff; font-weight: 700; }

/* ---------- 標題 ---------- */
.h-display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: .92;
  text-transform: uppercase;
}
.h-zh { font-family: var(--zh); font-weight: 900; line-height: 1.35; letter-spacing: .01em; }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(255,198,41,.35), transparent 60%),
    linear-gradient(168deg, var(--flame) 0%, var(--track) 62%, #C4400F 100%);
  color: #fff;
  overflow: hidden;
  padding: 22px 0 0;
}
/* 跑道分道線：斜向白線，真實的賽道紋理而非裝飾漸層 */
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    100deg, rgba(255,255,255,.09) 0 2px, transparent 2px 74px);
  pointer-events: none;
}
.hero > * { position: relative; }

.brandbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  color: rgba(255,255,255,.85);
}
.brandbar .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--beam); }

.hero-main { padding: 40px 0 34px; }

.wordmark {
  font-family: var(--display);
  font-size: clamp(58px, 15.5vw, 178px);
  line-height: .82;
  letter-spacing: -.01em;
  margin: 0;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 6px 0 rgba(0,0,0,.14);
}
.wordmark .hundred { color: var(--beam); }

.hero-dates {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(14px, 2.5vw, 19px); letter-spacing: .16em;
  margin: 16px 0 0; color: rgba(255,255,255,.95);
}
.hero-dates .arrow { color: var(--beam); margin: 0 8px; }

.hero-slogan {
  margin: 18px 0 0;
  font-family: var(--zh); font-weight: 900;
  font-size: clamp(21px, 4.4vw, 36px); line-height: 1.35;
}
.hero-slogan em { font-style: normal; color: var(--beam); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--zh); font-weight: 900; font-size: 16px;
  padding: 15px 30px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 5px 0 rgba(0,0,0,.22); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 7px 0 rgba(0,0,0,.22); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.22); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-solid { background: var(--track); color: #fff; box-shadow: 0 5px 0 #A93A0E; }
.btn-solid:hover { transform: translateY(-2px); }
.btn-solid:active { transform: translateY(2px); box-shadow: 0 2px 0 #A93A0E; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------- SIGNATURE：100 格跑道條 ---------- */
.laneband { padding: 0 0 26px; }
.laneband-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: .16em; color: rgba(255,255,255,.85); margin-bottom: 9px;
}
.lanegrid {
  display: grid;
  grid-template-columns: repeat(100, 1fr);
  gap: 2px;
}
.lanegrid .cell {
  aspect-ratio: 1 / 5;
  border-radius: 1px;
  background: rgba(255,255,255,.26);
}
.lanegrid .cell.gate {
  background: repeating-linear-gradient(45deg, #fff 0 3px, var(--ink) 3px 6px);
  box-shadow: 0 0 0 1.5px rgba(0,0,0,.4);
}
.lanegrid .cell.lit { background: var(--beam); }
.laneband-legend {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px;
  font-size: 12.5px; font-weight: 500;
  color: rgba(255,255,255,.9);
}
.laneband-legend span { display: inline-flex; align-items: center; gap: 7px; }
.laneband-legend i { width: 11px; height: 11px; border-radius: 2px; display: inline-block; }
.lg-gate { background: repeating-linear-gradient(45deg, #fff 0 3px, var(--ink) 3px 6px); }
.lg-day { background: rgba(255,255,255,.32); }

@media (prefers-reduced-motion: no-preference) {
  .lanegrid .cell { animation: lightup .5s both; }
  @keyframes lightup { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* ===========================================================
   區塊
   =========================================================== */
.section { padding: 76px 0; }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { max-width: 660px; margin-bottom: 34px; }
.section-head h2 {
  font-family: var(--zh); font-weight: 900;
  font-size: clamp(26px, 4.4vw, 38px); line-height: 1.3; margin: 14px 0 10px;
}
.section-head p { color: var(--muted); margin: 0; font-size: 16.5px; }

/* ---------- 賽制：真實的天數序列，不是抽象編號 ---------- */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.step {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 22px; position: relative; overflow: hidden;
}
.section-alt .step { background: var(--chalk); }
.step::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--flame);
}
.step.is-gate::before { background: repeating-linear-gradient(45deg, var(--ink) 0 5px, #fff 5px 10px); }
.step-day {
  font-family: var(--mono); font-weight: 700; font-size: 12px;
  letter-spacing: .17em; color: var(--track); text-transform: uppercase;
}
.step h3 { font-family: var(--zh); font-weight: 900; font-size: 19px; margin: 8px 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- 獎勵：票券造型，呼應餐飲品牌 ---------- */
.prizes { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ticket {
  position: relative; background: var(--ink); color: #fff;
  border-radius: var(--r); padding: 30px 28px 28px; overflow: hidden;
}
.ticket.gold { background: linear-gradient(150deg, var(--flame), var(--track)); }
/* 票根鋸齒 */
.ticket::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -9px; height: 18px;
  background: radial-gradient(circle at 9px 9px, var(--chalk) 8px, transparent 8.5px) repeat-x;
  background-size: 22px 18px;
}
.section-alt .ticket::after { background-color: transparent;
  background-image: radial-gradient(circle at 9px 9px, var(--paper) 8px, transparent 8.5px); }
.ticket-tier {
  font-family: var(--display); font-size: 46px; line-height: 1;
  color: var(--beam); letter-spacing: .01em;
}
.ticket-tier small { font-family: var(--zh); font-size: 15px; font-weight: 900; color: #fff; margin-left: 8px; letter-spacing: 0; }
.ticket h3 { font-family: var(--zh); font-weight: 900; font-size: 20px; margin: 14px 0 8px; }
.ticket p { margin: 0; color: rgba(255,255,255,.82); font-size: 15px; }
.ticket ul { margin: 14px 0 0; padding-left: 18px; color: rgba(255,255,255,.75); font-size: 13.5px; line-height: 1.85; }

/* ---------- 數字列 ---------- */
.counters { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 30px; }
.counter { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 18px; }
.section-alt .counter { background: var(--chalk); }
.counter b { display: block; font-family: var(--mono); font-weight: 700; font-size: 30px; line-height: 1.1; color: var(--track); }
.counter span { font-size: 13.5px; color: var(--muted); }

/* ---------- 表單 ---------- */
.form-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  padding: 34px 30px; box-shadow: 0 14px 44px rgba(27,31,35,.07);
}
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: 14.5px; }
.field label .req { color: var(--track); margin-left: 3px; }
.field .hint { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: var(--zh); font-size: 16px; color: var(--ink);
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 11px;
  background: var(--chalk); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--flame); background: var(--paper); outline: none;
  box-shadow: 0 0 0 3px rgba(245,130,31,.18);
}
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 6px 0 20px; }
.consent input { width: 19px; height: 19px; margin-top: 3px; flex: none; accent-color: var(--track); }
.consent a { font-weight: 700; }

.msg { border-radius: 12px; padding: 14px 16px; font-size: 14.5px; margin-bottom: 16px; line-height: 1.7; }
.msg-ok { background: #e9f8ef; border: 1px solid #a9dfc0; color: #1c6b3f; }
.msg-err { background: #fdecea; border: 1px solid #f2b8b2; color: #9b2318; }
.msg-info { background: #eef6fd; border: 1px solid #b9d9f2; color: #1c4f7c; }
.msg a { word-break: break-all; }

details.legal { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
details.legal summary { cursor: pointer; font-weight: 700; color: var(--ink); }
details.legal p { margin: 10px 0 0; line-height: 1.85; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px;
}
.section-alt .faq details { background: var(--chalk); }
.faq summary { cursor: pointer; font-weight: 900; font-size: 16.5px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: 'Q'; font-family: var(--mono); color: var(--track); font-weight: 700; margin-right: 10px; }
.faq p { margin: 10px 0 0 26px; color: var(--muted); font-size: 15px; }

/* ---------- 頁尾 ---------- */
.foot { background: var(--ink); color: rgba(255,255,255,.62); padding: 46px 0 40px; font-size: 14px; }
.foot strong { color: #fff; display: block; font-size: 16px; margin-bottom: 8px; }
.foot a { color: var(--beam); }
.foot-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ===========================================================
   個人打卡頁
   =========================================================== */
.appbar {
  background: var(--ink); color: #fff; padding: 14px 0;
  position: sticky; top: 0; z-index: 20;
}
.appbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.appbar .mark { font-family: var(--display); font-size: 22px; letter-spacing: .02em; }
.appbar .mark span { color: var(--beam); }
.appbar .who { font-size: 13.5px; color: rgba(255,255,255,.7); }
.appbar button {
  background: none; border: 1px solid rgba(255,255,255,.3); color: #fff;
  border-radius: 999px; padding: 7px 15px; font-size: 13px; cursor: pointer; font-family: var(--zh);
}
.appbar button:hover { background: rgba(255,255,255,.12); }

.me-hero {
  background: linear-gradient(155deg, var(--flame), var(--track));
  color: #fff; padding: 34px 0 58px;
}
.me-top { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-end; justify-content: space-between; }
.me-count { font-family: var(--display); font-size: clamp(64px, 15vw, 120px); line-height: .85; }
.me-count small { font-family: var(--zh); font-size: 18px; font-weight: 900; margin-left: 10px; }
.me-sub { font-size: 15px; color: rgba(255,255,255,.9); margin-top: 6px; }

.checkin-card {
  background: var(--paper); border-radius: 20px; padding: 26px 24px;
  box-shadow: 0 14px 44px rgba(27,31,35,.1); margin: -44px auto 0; position: relative; z-index: 5;
}
.checkin-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.checkin-row .grow { flex: 1 1 200px; }
.btn-checkin {
  font-size: 19px; padding: 20px 40px; width: 100%;
  background: var(--track); color: #fff; border: none; border-radius: 999px;
  font-family: var(--zh); font-weight: 900; cursor: pointer; box-shadow: 0 6px 0 #A93A0E;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-checkin:hover:not([disabled]) { transform: translateY(-2px); box-shadow: 0 8px 0 #A93A0E; }
.btn-checkin:active:not([disabled]) { transform: translateY(3px); box-shadow: 0 3px 0 #A93A0E; }
.btn-checkin[disabled] { background: #cfd6dd; color: #7c858e; box-shadow: none; cursor: not-allowed; }

.mini-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin-top: 22px; }
.mini { background: var(--chalk); border-radius: 12px; padding: 15px 16px; border: 1px solid var(--line); }
.mini b { display: block; font-family: var(--mono); font-weight: 700; font-size: 24px; color: var(--track); line-height: 1.15; }
.mini span { font-size: 12.5px; color: var(--muted); }

/* 100 格打卡跑道 */
.trackgrid {
  display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px;
  max-width: 520px;
}
.trackgrid .day {
  aspect-ratio: 1; border-radius: 6px; background: #E7EBEF;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; font-weight: 700; color: #9aa3ac;
  border: 1.5px solid transparent;
}
.trackgrid .day.done { background: var(--flame); color: #fff; border-color: var(--track); }
.trackgrid .day.today { border-color: var(--ink); border-width: 2.5px; }
.trackgrid .day.gate { box-shadow: inset 0 0 0 2.5px var(--ink); }
.trackgrid .day.gate.done { background: var(--beam); color: var(--ink); }
.trackgrid .day.future { opacity: .55; }

.grid-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.grid-legend span { display: inline-flex; align-items: center; gap: 7px; }
.grid-legend i { width: 13px; height: 13px; border-radius: 3px; display: inline-block; border: 1.5px solid transparent; }

.reward-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.reward-item {
  border: 1px solid var(--line); border-radius: var(--r); padding: 20px;
  background: var(--paper); display: flex; flex-direction: column; gap: 8px;
}
.reward-item.locked { opacity: .68; background: var(--chalk); }
.reward-item .code { font-family: var(--mono); font-weight: 700; font-size: 19px; letter-spacing: .1em; color: var(--track); }
.reward-item .tier { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--muted); font-weight: 700; }

/* ===========================================================
   餐券頁
   =========================================================== */
.coupon-body { background: var(--chalk); font-family: var(--zh); margin: 0; padding: 26px 16px 50px; }
.coupon-wrap { max-width: 400px; margin: 0 auto; }
.coupon-card {
  background: var(--paper); border-radius: 20px; padding: 30px 26px 26px;
  box-shadow: 0 16px 46px rgba(27,31,35,.12); text-align: center; position: relative; overflow: hidden;
}
.coupon-card::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 7px;
  background: repeating-linear-gradient(45deg, var(--track) 0 9px, var(--beam) 9px 18px);
}
.coupon-top { margin-top: 6px; }
.coupon-brand { font-family: var(--display); font-size: 30px; letter-spacing: .01em; }
.coupon-tier { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--track); font-weight: 700; margin-top: 4px; }
.coupon-prize { font-weight: 900; font-size: 19px; margin: 16px 0 20px; line-height: 1.5; }
.coupon-qr { display: flex; justify-content: center; }
.coupon-qr svg { border-radius: 10px; }
.coupon-code {
  font-family: var(--mono); font-weight: 700; font-size: 26px; letter-spacing: .16em;
  margin: 16px 0 4px; color: var(--ink);
}
.coupon-owner { font-size: 13.5px; color: var(--muted); }
.coupon-live {
  display: inline-block; margin-top: 14px; background: #e9f8ef; color: #1c6b3f;
  border: 1px solid #a9dfc0; border-radius: 999px; padding: 6px 16px; font-size: 13px; font-weight: 700;
}
.coupon-stamp {
  margin-top: 16px; border: 2.5px dashed #c33; color: #c33; border-radius: 12px;
  padding: 10px; font-weight: 900; font-size: 18px; transform: rotate(-3deg);
}
.coupon-stamp span { display: block; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .06em; }
.coupon-card.is-redeemed { filter: grayscale(.55); }
.coupon-terms {
  text-align: left; margin: 22px 0 0; padding-left: 18px;
  font-size: 12.5px; color: var(--muted); line-height: 1.9;
}
.coupon-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.coupon-hint { text-align: center; font-size: 13px; color: var(--muted); margin: 16px 0 6px; }
.coupon-back { display: block; text-align: center; font-size: 14px; font-weight: 700; }
.coupon-void h1 { font-size: 21px; margin: 12px 0 8px; }
.coupon-void p { color: var(--muted); font-size: 15px; }
.coupon-emoji { font-size: 42px; }

/* ===========================================================
   後臺
   =========================================================== */
.admin-body { background: #F2F5F8; }
.admin-shell { max-width: 1180px; margin: 0 auto; padding: 26px 20px 70px; }
.admin-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; margin-bottom: 18px;
}
.admin-card h2 { font-size: 17px; font-weight: 900; margin: 0 0 14px; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); }
.kpi { background: var(--chalk); border: 1px solid var(--line); border-radius: 12px; padding: 15px; }
.kpi b { display: block; font-family: var(--mono); font-weight: 700; font-size: 25px; color: var(--track); }
.kpi span { font-size: 12.5px; color: var(--muted); }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th, table.data td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
table.data th { font-size: 12px; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
table.data tbody tr:hover { background: var(--chalk); }
.table-scroll { overflow-x: auto; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; font-family: var(--mono); }
.pill.sent { background: #e9f8ef; color: #1c6b3f; }
.pill.failed { background: #fdecea; color: #9b2318; }
.pill.pending { background: #fff4e0; color: #8a5a10; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 96px; }
.bars i { flex: 1; background: var(--flame); border-radius: 2px 2px 0 0; min-height: 2px; display: block; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row-actions input, .row-actions select {
  font-family: var(--zh); font-size: 15px; padding: 11px 13px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--chalk);
}

@media (max-width: 640px) {
  .section { padding: 54px 0; }
  .form-card { padding: 26px 20px; }
  .lanegrid { grid-template-columns: repeat(50, 1fr); }
  .lanegrid .cell { aspect-ratio: 1 / 2.6; }
  .hero-dates { letter-spacing: .08em; font-size: 13px; }
  .laneband-head { font-size: 10.5px; letter-spacing: .1em; }
  .trackgrid { gap: 5px; }
  .trackgrid .day { font-size: 9.5px; border-radius: 5px; }
}

/* ===========================================================
   版面工具類
   CSP 不允許 inline style 屬性，所有版面微調都在這裡命名。
   =========================================================== */
.wrap-md   { max-width: 760px; }
.wrap-sm   { max-width: 720px; }
.wrap-xs   { max-width: 440px; }
.w-full    { width: 100%; }
.text-right { text-align: right; }
.mt-6  { margin-top: 6px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-14 { margin-bottom: 14px; }
.pt-44 { padding-top: 44px; }
.h2-sm { font-size: 24px; }
.section-head.tight { margin-bottom: 20px; }
.muted-note { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.tiny-note  { font-size: 12px; color: var(--muted); margin-top: 8px; }
.linkmark   { text-decoration: none; color: #fff; }

/* 打卡頁欄位（與 .field input 同一套外觀，但獨立擺放） */
.ci-input {
  width: 100%; font-family: var(--zh); font-size: 15px;
  padding: 12px 13px; border: 1.5px solid var(--line);
  border-radius: 11px; background: var(--chalk); color: var(--ink);
}
.ci-input:focus {
  border-color: var(--flame); background: var(--paper); outline: none;
  box-shadow: 0 0 0 3px rgba(245,130,31,.18);
}
.appbar-right { display: flex; align-items: center; gap: 12px; }
.gate-panel { max-width: 440px; margin: 0 auto; text-align: center; padding: 16vh 20px; }
.gate-panel h1 { font-size: 22px; font-weight: 900; }
.gate-panel p { color: var(--muted); line-height: 1.8; }

/* 圖例色塊 */
.lg-done { background: var(--flame); border-color: var(--track); }
.lg-open { background: #E7EBEF; }
.lg-mile { background: #E7EBEF; box-shadow: inset 0 0 0 2px var(--ink); }
.lg-today { background: #E7EBEF; border-color: var(--ink); border-width: 2px; }

/* 已報名區塊 */
.login-title { margin: 0 0 6px; font-weight: 900; font-size: 18px; }
.login-desc  { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; }

/* 獎勵卡內文 */
.reward-prize { color: var(--muted); font-size: 14px; }
.reward-left  { font-size: 13.5px; }
.reward-note  { font-size: 13px; }
.reward-note.sent   { color: #1c6b3f; }
.reward-note.hold   { color: #8a5a10; }
.reward-note.used   { color: #9b2318; }
.reward-item .btn   { align-self: flex-start; margin-top: 6px; }

/* 後臺 */
.admin-login { max-width: 400px; margin: 8vh auto; }
.admin-card .btn-ghost { color: var(--ink); border-color: var(--line); }
.in-wide { min-width: 240px; }
.in-mid  { min-width: 230px; }
.in-narrow { min-width: 170px; }
.in-tiny { width: 90px; }
.mono { font-family: var(--mono); }
table.data caption.empty { color: var(--muted); padding: 16px; caption-side: bottom; text-align: left; }

@media (max-width: 380px) {
  /* 極窄螢幕：跑道條改成 4 列 25 格，避免格線最小寬度撐破版面 */
  .lanegrid { grid-template-columns: repeat(25, 1fr); }
  .lanegrid .cell { aspect-ratio: 1 / 2; }
}
