/* カフェ風：クリーム地 × 深いグリーン × ラテ色。丸いフォントと、コーヒースリーブのようなチケット */
:root {
  color-scheme: light;
  --bg: #f7f1e8;          /* クリーム */
  --panel: #fffdf9;       /* カップの白 */
  --panel-2: #f1e7d9;     /* ミルクフォーム */
  --line: #e7dccd;
  --text: #2e2420;        /* エスプレッソ */
  --muted: #8b7b6e;
  --accent: #1f6b52;      /* 深いグリーン */
  --accent-deep: #17402f;
  --accent-soft: #e4efe8;
  --accent-ink: #ffffff;
  --latte: #c99f7a;
  --blush: #f4cfc8;
  --live: #e0685f;
  --ok: #2f9a6a;
  --warn: #d98a2b;
  --ng: #d4564d;
  --radius: 22px;
  --mono: 'Nunito', 'Zen Maru Gothic', system-ui, sans-serif;     /* 数字 */
  --display: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', system-ui, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
.wrap { max-width: 980px; margin: 0 auto; padding-inline: 16px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

/* ヘッダー */
.topbar { display: flex; justify-content: space-between; align-items: center; padding-block: 18px; font-size: 13px; gap: 12px; }
.brand { font-family: var(--display); font-weight: 900; font-size: 18px; letter-spacing: .06em; color: var(--accent-deep); display: inline-flex; align-items: center; gap: 8px; }
.brand::before {
  content: ''; width: 38px; height: 42px; flex: none;
  background: url('/reindeer-cookie.png') no-repeat center / contain;
}

.live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-weight: 700; font-size: 12px; color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.6s infinite; }
.live.off { color: var(--muted); background: var(--panel-2); }
.live.off i { background: var(--muted); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(224,104,95,.5); } 70% { box-shadow: 0 0 0 9px rgba(224,104,95,0); } 100% { box-shadow: 0 0 0 0 rgba(224,104,95,0); } }

/* ヒーロー：冬のグリーンに、さりげない星と雪 */
.hero {
  position: relative; overflow: hidden; margin-top: 4px;
  background: #264e3e; color: #fff; border-radius: 18px;
  padding: 40px 32px 34px; border: 0; border-top: 5px solid #963f38;
  box-shadow: none;
}
.hero > * { position: relative; z-index: 1; }
.eyebrow { font-family: var(--mono); font-weight: 800; font-size: 12px; letter-spacing: .14em; color: var(--accent); text-transform: uppercase; }
.hero .eyebrow { color: #e9d8b7; padding-right: 0; }
.hero h1 { font-family: var(--display); font-weight: 900; font-size: clamp(34px, 7vw, 64px); line-height: 1.12; letter-spacing: .01em; margin: 10px 0 10px; text-wrap: balance; }
.tagline { font-size: 17px; margin: 0 0 18px; opacity: .92; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 14px; color: rgba(255,255,255,.75); }
.meta b { color: #fff; font-weight: 700; }

.pulse-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.chip { font-size: 13px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; }
.chip b { font-family: var(--mono); font-weight: 800; color: var(--blush); font-size: 15px; }

/* 券種カード */
.section-title { font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: .04em; margin: 36px 0 14px; color: var(--accent-deep); }
.types { display: grid; gap: 14px; }
.type {
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
  background: var(--panel); border: 2px solid transparent; border-radius: var(--radius); padding: 20px 22px;
  box-shadow: 0 6px 18px -10px rgba(46,36,32,.25); transition: border-color .2s, transform .2s;
}
.type > div:first-child { min-width: 0; }
.type.picked { border-color: var(--accent); transform: translateY(-2px); }
.type h3 { margin: 0; font-size: 19px; font-weight: 900; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.type p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.price { font-family: var(--mono); font-size: 24px; font-weight: 800; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.price small { font-family: var(--display); font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.stock { margin-top: 10px; }
.bar { height: 10px; background: var(--panel-2); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--latte), var(--accent)); transition: width .6s ease; }
.stock-label { display: flex; justify-content: space-between; font-size: 12px; margin-top: 6px; color: var(--muted); }
.stock-label b { font-family: var(--mono); font-weight: 800; color: var(--text); font-size: 14px; }
.remain { display: inline-block; }
.remain.flash { animation: flash 1s; }
@keyframes flash { 0% { color: var(--live); transform: scale(1.35); } 100% { color: inherit; transform: none; } }
.type.changed { animation: pop .8s ease; }
@keyframes pop { 0% { box-shadow: 0 0 0 0 rgba(31,107,82,.45); } 100% { box-shadow: 0 0 0 14px rgba(31,107,82,0); } }
.badge { display: inline-block; font-size: 11px; padding: 2px 10px; border-radius: 999px; font-weight: 700; line-height: 1.6; }
.badge:empty { display: none; }
.badge.few { background: var(--blush); color: #9a3d33; }
.badge.out { background: var(--panel-2); color: var(--muted); }
.type.soldout { opacity: .6; box-shadow: none; }
.type.soldout .bar > span { background: var(--line); }

.stepper { width: 150px; display: flex; align-items: center; justify-content: space-between; gap: 6px; background: var(--panel-2); border-radius: 999px; padding: 5px; }
.stepper button {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--panel);
  color: var(--accent); font-size: 22px; font-weight: 700; cursor: pointer; line-height: 1; box-shadow: 0 2px 6px -2px rgba(46,36,32,.2);
}
.stepper button.plus:not(:disabled) { background: var(--accent); color: #fff; }
.stepper button:disabled { opacity: .35; cursor: default; box-shadow: none; }
.stepper output { font-family: var(--mono); font-weight: 800; font-size: 22px; min-width: 32px; text-align: center; }

/* 購入フォーム */
.checkout { margin: 28px 0 60px; background: var(--panel); border-radius: var(--radius); padding: 24px; box-shadow: 0 6px 18px -10px rgba(46,36,32,.25); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
input, textarea, select {
  width: 100%; margin-top: 6px; padding: 12px 16px; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 2px solid transparent; border-radius: 14px; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); background: var(--panel); }
.total-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.total { font-family: var(--mono); font-size: 32px; font-weight: 800; color: var(--accent-deep); }
.total small { font-family: var(--display); font-size: 13px; color: var(--muted); font-weight: 500; margin-right: 10px; }
.btn {
  appearance: none; border: 0; border-radius: 999px; padding: 15px 34px; font: inherit; font-weight: 900; font-size: 16px;
  background: var(--accent); color: var(--accent-ink); cursor: pointer; transition: transform .1s, opacity .2s, background .2s;
  box-shadow: 0 6px 14px -6px rgba(31,107,82,.6);
}
.btn:hover:not(:disabled) { background: var(--accent-deep); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .35; cursor: default; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--accent); border: 2px solid var(--accent); box-shadow: none; }
.btn.ghost:hover:not(:disabled) { background: var(--accent-soft); }
.btn.small { padding: 8px 18px; font-size: 13px; }
.btn:focus-visible, .stepper button:focus-visible, a:focus-visible { outline: 3px solid var(--latte); outline-offset: 2px; }
.fine { font-size: 12px; color: var(--muted); margin: 14px 0 0; }

.notice { padding: 12px 16px; border-radius: 14px; font-size: 14px; margin: 16px 0 0; }
.notice.err { background: #fbe4e1; color: #9a3d33; }
.notice.info { background: var(--accent-soft); color: var(--accent-deep); }
.demo-banner { background: var(--blush); color: #7a3a32; font-size: 13px; text-align: center; padding: 7px 16px; font-weight: 700; }

/* チケット（購入後）：コーヒースリーブ風 */
.ticket {
  background: var(--panel); color: var(--text); border-radius: 28px; overflow: hidden; max-width: 420px; margin: 0 auto 24px;
  box-shadow: 0 18px 40px -20px rgba(46,36,32,.45);
}
.ticket-head { background: var(--accent); color: #fff; padding: 22px 24px 20px; position: relative; }
.ticket-head .eyebrow { color: var(--blush); }
.ticket-head h2 { font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1.2; margin: 6px 0 2px; text-wrap: balance; }
.ticket-head::after { /* スリーブの帯 */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: repeating-linear-gradient(90deg, var(--latte) 0 14px, var(--panel-2) 14px 28px);
}
.ticket-body { padding: 22px 24px; display: grid; gap: 2px; font-size: 14px; margin: 0; position: relative; }
.ticket-body::before, .ticket-body::after {
  content: ''; position: absolute; bottom: -12px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg);
}
.ticket-body::before { left: -12px; } .ticket-body::after { right: -12px; }
.ticket-body dt { color: var(--muted); font-size: 11px; letter-spacing: .1em; font-family: var(--mono); font-weight: 800; }
.ticket-body dd { margin: 0 0 8px; font-weight: 700; font-size: 16px; }
.qr { display: grid; place-items: center; padding: 8px 24px 26px; border-top: 2px dashed var(--line); }
.qr .code { background: #fff; padding: 12px; border-radius: 18px; margin-top: 18px; box-shadow: inset 0 0 0 2px var(--panel-2); }
.qr canvas, .qr img { width: 200px !important; height: 200px !important; image-rendering: pixelated; display: block; }
.qr .mono { font-size: 11px; color: var(--muted); margin-top: 10px; word-break: break-all; text-align: center; }
.used-stamp { color: var(--ng); font-weight: 900; border: 3px solid var(--ng); padding: 4px 16px; border-radius: 999px; transform: rotate(-6deg); display: inline-block; margin-top: 16px; background: #fff; }

.center { text-align: center; }
.spinner { width: 30px; height: 30px; border: 4px solid var(--panel-2); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

footer { padding-block: 8px 40px; font-size: 12px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 640px) {
  .hero { padding: 32px 24px 28px; border-radius: 26px; }
  .type { grid-template-columns: 1fr; }
  .stepper { width: 100%; max-width: 180px; justify-self: end; }
  .fields { grid-template-columns: 1fr; }
  .total-row .btn { width: 100%; }
}

/* 人数選択のステップ */
.step { margin: 28px 0 0; background: var(--panel); border-radius: var(--radius); padding: 24px; box-shadow: 0 6px 18px -10px rgba(46,36,32,.25); }
.step.changed { animation: pop .8s ease; }
.step-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.step-head > div { flex: 1; min-width: 0; }
.step-head .section-title { margin: 2px 0 2px; }
.step-head .badge { margin-top: 6px; flex: none; }
.step-no {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-family: var(--mono); font-weight: 800; font-size: 16px;
}
.step-sub { margin: 0; color: var(--muted); font-size: 13px; }
.max-note { display: inline-block; vertical-align: middle; margin-left: 10px; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 12px; border-radius: 999px; letter-spacing: 0; }
.people { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.person {
  appearance: none; border: 2px solid var(--panel-2); background: var(--bg); color: var(--accent-deep);
  border-radius: 20px; padding: 14px 6px 10px; cursor: pointer; font: inherit;
  display: grid; justify-items: center; gap: 2px; transition: transform .15s, border-color .15s, background .15s;
}
.person:hover:not(:disabled) { border-color: var(--latte); transform: translateY(-2px); }
.person.on { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 16px -8px rgba(31,107,82,.7); }
.person:disabled { opacity: .4; cursor: default; }
.person:focus-visible { outline: 3px solid var(--latte); outline-offset: 2px; }
.person .figs { display: flex; gap: 2px; height: 20px; align-items: flex-end; flex-wrap: wrap; justify-content: center; max-width: 64px; }
.person .figs i { width: 7px; height: 14px; border-radius: 4px 4px 2px 2px; background: currentColor; opacity: .55; position: relative; }
.person .figs i::before { content: ''; position: absolute; left: 1px; top: -6px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.person b { font-family: var(--mono); font-weight: 800; font-size: 26px; line-height: 1.1; }
.person small { font-size: 12px; opacity: .8; }
.soldout-card { display: grid; gap: 4px; text-align: center; padding: 26px 16px; border-radius: 20px; background: var(--panel-2); }
.soldout-card b { font-size: 22px; color: var(--accent-deep); }
.soldout-card span { color: var(--muted); font-size: 14px; }
.step + .checkout { margin-top: 16px; }
.checkout.step { margin-bottom: 60px; }
@media (max-width: 640px) {
  .people { grid-template-columns: repeat(3, 1fr); }
  .step { padding: 20px 18px; }
}

/* 申し込みの流れ（ステップの状態） */
#flow { display: grid; gap: 16px; margin: 24px 0 60px; }
#flow .step { margin: 0; }
.step[data-state="locked"] { opacity: .45; box-shadow: none; }
.step[data-state="locked"] .step-body, .step[data-state="locked"] .badge { display: none; }
.step[data-state="locked"] .step-head { margin-bottom: 0; }
.step[data-state="done"] .step-body { display: none; }
.step[data-state="done"] .step-head { margin-bottom: 4px; }
.step[data-state="done"] .step-no { background: var(--accent); color: #fff; font-size: 0; }
.step[data-state="done"] .step-no::after { content: '✓'; font-size: 16px; }
.step-summary { display: none; margin: 0 0 0 48px; font-weight: 700; color: var(--accent-deep); overflow-wrap: anywhere; }
.step[data-state="done"] .step-summary { display: block; }
.link-btn { appearance: none; border: 0; background: none; color: var(--accent); font: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 4px; }
.step-head .link-btn { display: none; margin-top: 4px; }
.step[data-state="done"] .step-head .link-btn { display: inline-block; }
.step-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.code-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.code-input { flex: 1; min-width: 0; max-width: 260px; margin: 0; font-family: var(--mono); font-weight: 800; font-size: 28px; letter-spacing: .35em; text-align: center; padding: 10px 12px; }
.msg:empty { display: none; }
#allocHint.ok { color: var(--ok); font-weight: 700; }

.tt-list { display: grid; gap: 10px; }
.tt-row { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 18px; background: var(--bg); border: 2px solid transparent; flex-wrap: wrap; }
.tt-row.picked { border-color: var(--accent); background: var(--panel); }
.tt-row.soldout { opacity: .55; }
.tt-info { display: grid; gap: 2px; min-width: 0; }
.tt-info b { font-size: 17px; }
.tt-info .badge { justify-self: start; }
.tt-info small { color: var(--muted); font-size: 12px; }
.tt-price { font-family: var(--mono); font-weight: 800; font-size: 20px; color: var(--accent-deep); }
.tt-price small { font-family: var(--display); font-size: 11px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.tt-row .stepper { width: 140px; background: var(--panel-2); }

.status-chip { font-weight: 700; }
.status-chip::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; background: #8fe0b5; vertical-align: middle; }
.status-chip[data-s="few"]::before { background: var(--blush); }
.status-chip[data-s="soldout"]::before, .status-chip[data-s="closed"]::before { background: rgba(255,255,255,.5); }
.soldout-card.big { margin: 24px 0 60px; padding: 40px 16px; background: var(--panel); box-shadow: 0 6px 18px -10px rgba(46,36,32,.25); }
@media (max-width: 640px) {
  .step-summary { margin-left: 0; }
  .code-input { max-width: none; }
  .code-row .btn { width: 100%; }
  .step-actions .btn { width: 100%; }
}
.btn.line { background: #06c755; box-shadow: 0 6px 14px -6px rgba(6,199,85,.6); color: #fff; }
.btn.line:hover { background: #05a647; }
.step[data-state="done"] .step-sub { display: none; }
/* 購入手続き（最後のブロック） */
.step.final { display: grid; gap: 12px; text-align: center; }
.final-sum { display: flex; justify-content: center; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.final-sum:empty { display: none; }
.final-sum span { color: var(--muted); font-size: 14px; }
.final-sum b { font-family: var(--mono); font-weight: 800; font-size: 32px; color: var(--accent-deep); }
.step.final .btn { justify-self: center; min-width: min(100%, 320px); }
.step.final .fine { margin: 0; }
.step.final .msg { text-align: left; }

.hero .setup-note { margin: 12px 0 0; color: #f0dfbb; font-size: 13px; }

/* 購入ページ：生成り・モミの木の緑・落ち着いた赤 */
.ticket-purchase {
  --bg: #f6f3ec; --panel: #fffefa; --panel-2: #ede8de; --line: #dfd9ce;
  --text: #2d342e; --muted: #62685f; --accent: #264e3e; --accent-deep: #203e32;
  --accent-soft: #e8eee8; --latte: #af9365; --blush: #f0dfd8; --live: #963f38;
  --ok: #264e3e; --radius: 16px;
  --display: 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic', sans-serif;
  --mono: 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic', sans-serif;
  font-family: var(--display);
}
.ticket-purchase .wrap { max-width: 860px; }
.ticket-purchase .brand { font-size: 16px; font-weight: 700; letter-spacing: .08em; gap: 10px; }
.ticket-purchase .live { background: transparent; padding: 5px 0; color: var(--muted); font-weight: 500; }
.ticket-purchase .live i { animation: none; width: 6px; height: 6px; background: var(--accent); }
.ticket-purchase .hero h1 { font-size: clamp(26px, 4.5vw, 40px); line-height: 1.4; font-weight: 700; margin: 12px 0; }
.ticket-purchase .hero .eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .1em; }
.ticket-purchase .hero .tagline { font-size: 15px; line-height: 1.8; }
.ticket-purchase .hero .meta { display: grid; gap: 6px; color: #e1e8df; }
.ticket-purchase .hero .setup-note { font-size: 13px; color: #eee2cb; line-height: 1.8; }
.ticket-purchase .step { box-shadow: none; border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.ticket-purchase .step-no { border-radius: 8px; background: #963f38; color: white; font-weight: 600; }
.ticket-purchase .section-title { font-size: 20px; font-weight: 700; letter-spacing: 0; }
.ticket-purchase .step-sub { font-size: 14px; line-height: 1.8; }
.ticket-purchase .max-note { border-radius: 5px; font-size: 12px; padding: 2px 8px; }
.ticket-purchase .person { border: 1px solid #cfcfc3; border-radius: 10px; padding: 16px 6px 12px; background: var(--panel); }
.ticket-purchase .person.on { background: var(--accent); color: white; border: 2px solid var(--accent); box-shadow: none; transform: none; }
.ticket-purchase .person:hover:not(:disabled) { transform: none; border-color: var(--accent); }
.ticket-purchase .person b { font-weight: 700; }
.ticket-purchase .person .figs { display: none; }
.ticket-purchase .tt-list { gap: 14px; }
.ticket-purchase .tt-row { border-radius: 10px; border: 1px solid var(--line); padding: 20px; background: var(--panel); gap: 16px; }
.ticket-purchase .tt-row.picked { border: 2px solid var(--accent); padding: 19px; background: #f0f4ee; }
.ticket-purchase .tt-info { flex: 1 1 260px; gap: 6px; }
.ticket-purchase .tt-info b { font-size: 16px; font-weight: 700; }
.ticket-purchase .tt-info small { font-size: 13px; line-height: 1.8; }
.ticket-purchase .tt-price { font-size: 21px; font-weight: 700; }
.ticket-purchase .stepper { border-radius: 9px; width: 148px; flex: none; padding: 4px; }
.ticket-purchase .stepper button { width: 44px; height: 44px; border-radius: 7px; box-shadow: none; }
.ticket-purchase .stepper button.plus:not(:disabled) { background: #963f38; }
.ticket-purchase .btn { border-radius: 9px; box-shadow: none; font-weight: 700; }
.ticket-purchase #buy { background: #963f38; }
.ticket-purchase #buy:hover:not(:disabled) { background: #7c302b; }
.ticket-purchase input { border: 1px solid #c9cbbf; border-radius: 8px; background: #fffefa; }
.ticket-purchase input:focus { border: 2px solid var(--accent); }
.ticket-purchase .step[data-state="locked"] { opacity: 1; background: #f0eee7; }
.ticket-purchase .step[data-state="locked"] .step-no { background: #dfdfd6; color: #62685f; }
.ticket-purchase .step[data-state="locked"] .section-title { color: #62685f; }
.ticket-purchase .step.changed { animation: none; }
.ticket-purchase .btn.ghost.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.ticket-purchase .demo-banner { background: #ebe5db; color: #5d5146; font-size: 12px; font-weight: 400; }
@media (max-width: 640px) {
  .ticket-purchase .hero { border-radius: 14px; padding: 28px 22px; }
  .ticket-purchase .step { padding: 20px 16px; }
  .ticket-purchase .tt-row { padding: 16px; }
  .ticket-purchase .tt-row.picked { padding: 15px; }
  .ticket-purchase .tt-info { flex-basis: 100%; }
  .ticket-purchase .tt-row .stepper { margin-left: auto; }
}

.event-guide { margin: 24px 0; padding: 28px 30px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; font-size: 14px; line-height: 1.95; }
.event-guide h2 { margin: 0 0 14px; font-size: 20px; font-weight: 700; color: var(--accent-deep); }
.event-guide h3 { margin: 0 0 12px; font-size: 16px; font-weight: 700; color: var(--accent-deep); }
.event-guide p { margin: 0 0 12px; }
.event-guide .guide-small, .event-guide small { font-size: 13px; color: var(--muted); line-height: 1.8; }
.registration-note { margin: 20px 0 14px; border-left: 3px solid #963f38; background: #f5f1e9; padding: 16px 20px; }
.registration-note b { color: #7c302b; }
.registration-note ol { padding-left: 22px; margin: 8px 0; }
.registration-note p { margin-bottom: 0; }
.guide-section { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px; }
.event-facts, .event-schedule { display: grid; grid-template-columns: 80px minmax(0,1fr); column-gap: 18px; row-gap: 14px; margin: 0 0 16px; }
.event-facts dt, .event-schedule dt { font-weight: 700; color: var(--accent-deep); }
.event-facts dd, .event-schedule dd { margin: 0; }
.event-schedule small { display: block; }
.event-guide .schedule-title { margin-top: 22px; }
.purchase-notes ul { list-style: none; padding: 0; margin: 0; }
.purchase-notes li + li { margin-top: 16px; }
.purchase-notes li b { font-weight: 700; }
.purchase-notes li p { margin: 4px 0 0; }
@media (max-width:640px) { .event-guide { padding: 22px 18px; } .event-facts, .event-schedule { grid-template-columns: 64px minmax(0,1fr); column-gap: 12px; } .registration-note { padding: 14px; } }

.guide-ticket-list { display: grid; gap: 0; margin-top: 18px; }
.guide-ticket { padding: 20px 0; border-top: 1px solid var(--line); }
.guide-ticket h4 { margin: 0 0 6px; color: var(--accent-deep); font-size: 15px; font-weight: 700; }
.event-guide .guide-ticket-price { margin-bottom: 10px; font-size: 16px; font-weight: 700; }
.event-guide .guide-ticket p:last-child { margin-bottom: 0; }
.guide-ticket-limit { display: inline-block; margin-left: 6px; padding: 1px 7px; background: #f0dfd8; color: #7c302b; border-radius: 4px; font-size: 12px; font-weight: 500; }
.event-guide .help-invitation { margin-top: 12px; color: var(--accent-deep); border-left: 2px solid #af9365; padding-left: 14px; }
.purchase-notes li { padding: 18px 0; border-top: 1px solid var(--line); }
.purchase-notes li + li { margin-top: 0; }
.purchase-notes li p { margin-top: 8px; line-height: 2; }

.guide-ticket:last-child { border-bottom: 1px solid var(--line); }

.event-schedule { grid-template-columns: 112px minmax(0,1fr); }
@media (max-width:640px) { .event-schedule { grid-template-columns: 104px minmax(0,1fr); } }

.tt-info > small { white-space: pre-line; }
