/* 阿倫優惠電子票：共用樣式（跟 alanjapan.com 首頁同一套配色與字型） */
:root {
  --cream: #FDF6EC;
  --warm-orange: #E8622A;
  --deep-orange: #C4451A;
  --warm-brown: #5C3A1E;
  --soft-sand: #F2E4CC;
  --text-dark: #2C1810;
  --text-mid: #7A5C44;
  --text-light: #B89B85;
  --card-bg: #FFFBF5;
  --border: #E8D5BB;
  --ok: #2F7D4F;
  --bad: #B3372F;
  --serif: 'Noto Serif TC', serif;
  --sans: 'Zen Kaku Gothic New', -apple-system, 'Hiragino Sans', 'Microsoft JhengHei', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--cream);
  color: var(--text-dark);
  font-family: var(--sans);
  line-height: 1.7;
  min-height: 100vh;
}
a { color: var(--warm-orange); }
button, input, select { font: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--warm-orange); outline-offset: 2px;
}

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(253,246,236,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: 54px; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { font-family: var(--serif); font-weight: 900; font-size: 1.02rem; color: var(--warm-brown); text-decoration: none; }
.logo span { color: var(--warm-orange); }
.topbar-link { font-size: .8rem; color: var(--text-mid); text-decoration: none; }

.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px 56px; }

/* hero */
.hero {
  background: var(--warm-brown);
  color: var(--cream);
  padding: 36px 16px 40px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 15% 40%, rgba(232,98,42,0.22) 0%, transparent 55%),
    radial-gradient(circle at 85% 15%, rgba(196,69,26,0.16) 0%, transparent 45%);
}
.hero > * { position: relative; }
.label { font-size: .7rem; letter-spacing: .4em; color: var(--warm-orange); margin-bottom: .5rem; }
.hero h1 { font-family: var(--serif); font-weight: 900; font-size: clamp(1.7rem, 7vw, 2.3rem); line-height: 1.25; }
.hero h1 span { color: var(--warm-orange); }
.hero p { color: var(--text-light); font-size: .9rem; margin-top: .6rem; }

.h2 { font-family: var(--serif); font-weight: 900; font-size: 1.2rem; color: var(--warm-brown); margin: 28px 0 4px; }
.hint { font-size: .82rem; color: var(--text-mid); }

/* cards & form */
.card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.store-opt {
  display: block; position: relative; cursor: pointer;
  background: #fff; border: 1.5px solid var(--border); border-radius: 14px; padding: 14px 14px 14px 46px;
  transition: border-color .15s, background .15s;
}
.store-opt input { position: absolute; left: 16px; top: 18px; width: 20px; height: 20px; accent-color: var(--warm-orange); }
.store-opt:has(input:checked) { border-color: var(--warm-orange); background: #FFF8F1; }
.store-opt .meta { font-size: .72rem; color: #9a8a7c; letter-spacing: .04em; }
.store-opt .name { font-family: var(--serif); font-weight: 900; font-size: 1.08rem; line-height: 1.35; }
.store-opt .ja { font-size: .78rem; color: #888; }
.offer-pill {
  display: inline-block; margin-top: 6px;
  background: #FFF5EC; border: 1.5px solid #F5C998; border-radius: 8px;
  padding: 3px 10px; font-size: .85rem; font-weight: 700; color: var(--warm-brown);
}
.store-opt .hours { font-size: .75rem; color: var(--text-mid); margin-top: 6px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.field label { font-size: .85rem; font-weight: 700; color: var(--warm-brown); }
.field input {
  width: 100%; padding: 13px 14px; font-size: 16px;
  background: #fff; border: 1.5px solid var(--border); border-radius: 10px; color: var(--text-dark);
}
.field input:focus { border-color: var(--warm-orange); outline: none; }
.small { font-size: .75rem; color: var(--text-mid); }

.btn {
  display: block; width: 100%; text-align: center; cursor: pointer;
  background: var(--warm-orange); color: #fff; border: 0; border-radius: 10px;
  padding: 14px 16px; font-weight: 700; font-size: 1rem; letter-spacing: .05em; text-decoration: none;
  transition: background .2s, transform .15s;
}
.btn:hover { background: var(--deep-orange); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { background: var(--text-light); cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--warm-brown); border: 1.5px solid var(--border); }
.btn.ghost:hover { background: var(--soft-sand); }
.btn.brown { background: var(--warm-brown); }

.err { color: var(--bad); font-size: .88rem; font-weight: 700; margin-top: 10px; min-height: 1.2em; }
.notice {
  background: #fff; border-left: 4px solid var(--warm-orange); border-radius: 0 10px 10px 0;
  padding: 12px 14px; font-size: .86rem; color: var(--text-mid); margin-top: 16px;
}
.notice b { color: var(--text-dark); }

.steps { counter-reset: s; list-style: none; display: grid; gap: 10px; margin-top: 12px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; }
.steps li::before {
  content: counter(s); flex: 0 0 26px; height: 26px; border-radius: 50%;
  background: var(--warm-orange); color: #fff; font-weight: 700; font-size: .8rem;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.steps small { display: block; color: var(--text-mid); font-size: .76rem; }

.mytix { display: grid; gap: 8px; margin-top: 10px; }
.mytix a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
  text-decoration: none; color: var(--text-dark);
}
.mytix .s { font-family: var(--mono); font-size: .82rem; color: var(--text-mid); }
.mytix .go { color: var(--warm-orange); font-weight: 700; font-size: .85rem; white-space: nowrap; }

.foot { text-align: center; font-size: .72rem; color: var(--text-light); margin-top: 40px; }
.loading { text-align: center; color: var(--text-mid); padding: 40px 0; font-size: .9rem; }
