:root { --fg: #1a1a1a; --muted: #666; --ok: #0a7a3a; --ng: #c0261d; --warn: #b86e00; --bg: #fafaf7; font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--fg); background: var(--bg); line-height: 1.6; }
main.narrow { max-width: 560px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font-size: 1.5rem; line-height: 1.3; } h1 small { font-size: 1rem; color: var(--muted); }
.note { font-size: .9rem; color: var(--muted); }
button { font: inherit; padding: .5em 1em; border-radius: 8px; border: 1px solid #333; background: #fff; cursor: pointer; }
button.big { font-size: 1.3rem; padding: .7em 1.2em; background: #111; color: #fff; }
input, select { font: inherit; padding: .4em; }
ul.slots { list-style: none; padding: 0; }
.slot { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid #ddd; }
.slot-time { font-size: 1.3rem; font-weight: bold; min-width: 4em; } .slot-left { color: var(--muted); min-width: 6em; }
.slot.closed { opacity: .5; } form.buy { display: flex; gap: 8px; margin-left: auto; }
.ticket { text-align: center; } .ticket-slot { font-size: 1.4rem; font-weight: bold; margin: 0; } .ticket-count { font-size: 1.2rem; }
.qr svg { width: min(80vw, 320px); height: auto; border: 1px solid #ddd; }
.ticket-code strong { font-family: ui-monospace, monospace; font-size: 1.4rem; letter-spacing: .1em; }
.ticket-status.ng, .ng strong { color: var(--ng); } .badge { background: #eee; border-radius: 4px; padding: 0 .4em; font-size: .9rem; }
/* 入口 */
.gate-body { background: #111; color: #fff; } main.gate { max-width: 720px; margin: 0 auto; padding: 8px; }
.gate-head { display: flex; gap: 12px; align-items: baseline; } .gate-head .who { color: #aaa; font-size: .8rem; } #clock { margin-left: auto; font-size: 1.4rem; }
.scanner { position: relative; text-align: center; } video { width: 100%; max-height: 38vh; object-fit: cover; background: #000; border-radius: 8px; }
.scanner button { position: absolute; inset: 0; margin: auto; width: 60%; height: 4em; }
.manual { display: flex; gap: 8px; margin: 8px 0; } .manual input { flex: 1; }
.result { border-radius: 12px; padding: 16px; min-height: 40vh; } .result .verdict { font-size: 3rem; font-weight: 900; margin: 0; line-height: 1.2; }
.result.idle { background: #333; } .result.ok { background: var(--ok); } .result.other_slot { background: var(--warn); }
.result.already_admitted, .result.refunded, .result.not_found { background: var(--ng); }
.result.admitted_now { background: var(--ok); } .result.reissued { background: var(--warn); } .result.unknown { background: #5a4a00; border: 4px dashed #ffd400; }
/* 判定が出ているあいだは映像を小さくし、入場のボタンを画面の中に入れる */
main.gate.deciding video { max-height: 15vh; }
.result button.big, .result .next { min-height: 48px; }
.result .detail { font-size: 1.2rem; margin: .3em 0; } .result .detail.big, .result .count { font-size: 1.6rem; font-weight: bold; }
.result .note-big { font-size: 1.4rem; background: rgba(0,0,0,.3); padding: .3em .6em; border-radius: 6px; display: inline-block; }
.admit-row { display: flex; gap: 8px; margin: 12px 0; } .count-select { font-size: 1.4rem; }
.result button.big { background: #fff; color: #111; } .result .next { margin-top: 16px; font-size: 1.2rem; }
.entries { font-size: .9rem; } .entries .undone { text-decoration: line-through; opacity: .7; } button.small { font-size: .8rem; padding: .1em .5em; }
/* 管理 */
main.admin { max-width: 1100px; margin: 0 auto; padding: 16px; } main.admin header { display: flex; gap: 12px; align-items: baseline; }
table { border-collapse: collapse; font-size: .9rem; } th, td { border: 1px solid #ccc; padding: 2px 6px; text-align: left; }
tr.over td { background: #fdd; } form.inline { display: inline-flex; gap: 4px; } form.inline input[type=number] { width: 5em; }
form.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; align-items: end; }
.check { border-left: 6px solid; padding: 4px 12px; } .check.ok { border-color: var(--ok); } .check.ng { border-color: var(--ng); background: #fff4f4; }
.flash { background: #fff7d6; padding: 8px; border-radius: 6px; } .mono { font-family: ui-monospace, monospace; } .small { font-size: .8rem; } .lookup { border: 1px solid #ccc; padding: 8px; margin: 8px 0; }
pre { white-space: pre-wrap; font-size: .8rem; }
main.print { padding: 8px; } main.print td.box { width: 3em; } tr.ng td { background: #eee; text-decoration: line-through; }
@media print { main.print { font-size: 10pt; } }
/* 試験環境の帯（Sandbox だけ） */
.env-banner { background: repeating-linear-gradient(45deg, #ffd400, #ffd400 12px, #1a1a1a 12px, #1a1a1a 24px); text-align: center; padding: 6px 8px; }
.env-banner span { display: inline-block; background: #ffd400; color: #1a1a1a; font-weight: bold; padding: 2px 10px; border-radius: 4px; font-size: .9rem; }
/* 券種 */
.types ul { padding-left: 1.2em; } .check-note { display: inline-block; margin-left: .5em; font-size: .85rem; background: #fff3c4; border: 1px solid #b86e00; border-radius: 4px; padding: 0 .4em; }
form.buy select[name=type] { max-width: 12em; }
.ticket-type { font-size: 1.6rem; font-weight: bold; margin: .2em 0; }
.ticket-check { font-weight: bold; background: #fff3c4; border: 2px solid #b86e00; border-radius: 8px; padding: .4em .8em; }
.result .ticket-type { font-size: 2.2rem; font-weight: 900; margin: .2em 0; }
.result .check-required { background: #fff; color: #111; border: 6px solid #ffd400; border-radius: 10px; padding: 8px 12px; margin: 8px 0; }
.result .check-required .check-title { font-size: 2.2rem; font-weight: 900; margin: 0; }
.result .check-required .check-detail { font-size: 1.1rem; margin: .2em 0 0; }
tr.inactive td { color: #999; }
a.button { display: inline-block; text-decoration: none; padding: .7em 1.2em; border-radius: 8px; background: #111; color: #fff; }
/* お客さん向けの画面。展示の LP（kotoha-site の /exhibition/2027 の Shell.astro・開催情報のチケット）に合わせる:
   森の緑の地・生成りの角丸の板・黄緑の差し色、本文は Zen Old Mincho、数字と英字はしっぽり明朝 B1（/static/vendor/fonts.css）。
   色の値は LP の --ex-* と同じ。LP の色が変わったら、ここも合わせる */
body.public {
  --ex-green: #0f3a2a; --ex-green-2: #17503a; --ex-green-3: #23694c; --ex-deep: #092619;
  --ex-lime: #d7f05c; --ex-cream: #f4ecd6; --ex-paper: #fbf6e9; --ex-ink: #1d1a15; --ex-red: #e3262f;
  --ex-f: "Zen Old Mincho", "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --ex-f-display: "Shippori Mincho B1", var(--ex-f);
  --ex-radius: 24px; --ex-edge: 8px;
  display: flex; flex-direction: column; gap: var(--ex-edge); min-height: 100vh;
  padding: 0 var(--ex-edge) var(--ex-edge);
  background: var(--ex-green); color: var(--ex-cream);
  font-family: var(--ex-f); font-weight: 500; font-size: 16px; line-height: 1.8; letter-spacing: .06em;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 720px) { body.public { --ex-radius: 32px; --ex-edge: 16px; } }
body.public .env-banner { margin: 0 calc(var(--ex-edge) * -1); }
body.public :is(h1, h2, p, dd, li) { word-break: auto-phrase; }
body.public :is(a, button, label, select, input):focus-visible { outline: 3px solid var(--ex-lime); outline-offset: 3px; border-radius: 4px; }
/* 生成り・黄緑の板の上では、黄緑の輪が見えないので墨にする */
body.public :is(.sheet, .ticket-card) :is(a, button, label, select, input):focus-visible { outline-color: var(--ex-ink); }
body.public a { color: inherit; text-underline-offset: 4px; }
body.public .num { font-family: var(--ex-f-display); font-weight: 800; letter-spacing: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 上のバー（LP と同じく、ロゴは生成りの色で抜く） */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 8px 6px; }
.site-logo { display: block; color: var(--ex-cream); }
.logo-mark { display: block; width: 96px; aspect-ratio: 480 / 106; background: currentColor; -webkit-mask: url(/static/logo.png) center / contain no-repeat; mask: url(/static/logo.png) center / contain no-repeat; }
.back-lp { min-height: 44px; display: inline-flex; align-items: center; gap: .4em; padding: 8px 16px; border: 1px solid rgba(244, 236, 214, .5); border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none; line-height: 1.3; }
.back-lp::before { content: "←"; }
.back-lp:hover { background: var(--ex-cream); color: var(--ex-green); }

/* 中身 */
.public-main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--ex-edge); }
.intro { padding: 28px 12px 20px; text-align: center; }
body.public .tag { margin: 0; color: var(--ex-lime); font-family: var(--ex-f-display); font-weight: 800; font-size: 14px; letter-spacing: .24em; }
body.public .intro h1 { margin: 10px 0 0; color: var(--ex-cream); font-weight: 900; font-size: clamp(24px, 6vw, 34px); line-height: 1.45; letter-spacing: .08em; }
body.public .intro h1 small { display: block; margin-top: 6px; color: var(--ex-cream); opacity: .85; font-weight: 700; font-size: 15px; letter-spacing: .12em; }
.steps { display: flex; justify-content: center; gap: 6px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 13px; font-weight: 700; }
.steps li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border-radius: 999px; background: rgba(244, 236, 214, .1); color: rgba(244, 236, 214, .75); }
.steps li b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(244, 236, 214, .2); font-family: var(--ex-f-display); font-weight: 800; font-size: 12px; letter-spacing: 0; }
.steps li[aria-current] { background: var(--ex-lime); color: var(--ex-ink); }
.steps li[aria-current] b { background: var(--ex-ink); color: var(--ex-lime); }
.steps li.done b { background: var(--ex-cream); color: var(--ex-green); }

/* 生成りの板 */
.sheet { margin: 0; padding: 28px 22px; border-radius: var(--ex-radius); background: var(--ex-paper); color: var(--ex-ink); }
@media (min-width: 720px) { .sheet { padding: 36px 44px; } }
body.public .sheet h2 { margin: 0 0 14px; font-weight: 900; font-size: 18px; letter-spacing: .12em; color: var(--ex-green); }
body.public .note { margin: 12px 0 0; color: rgba(29, 26, 21, .72); font-size: 13.5px; line-height: 1.8; }
.lead-note { margin: 4px 12px 16px; font-size: 13.5px; line-height: 1.9; color: rgba(244, 236, 214, .85); text-align: center; }
.check-note { display: inline-block; margin-left: .6em; padding: 1px 8px; border: 1px solid var(--ex-green-3); border-radius: 6px; color: var(--ex-green-3); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; vertical-align: .1em; }

/* 大きな日付（LP の開催情報と同じ） */
.big-date { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; color: var(--ex-green); }
.big-date b { font-size: 40px; line-height: 1; }
.big-date small { padding: 2px 8px; border-radius: 6px; background: var(--ex-green); color: var(--ex-cream); font-size: 12px; letter-spacing: .1em; align-self: center; }
.big-date .time { margin-left: 6px; }

/* 券種の一覧 */
.types ul { margin: 0; padding: 0; list-style: none; }
.types li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 0; border-top: 2px dashed rgba(29, 26, 21, .18); }
.types li:first-child { border-top: 0; padding-top: 0; }
.types li strong { font-weight: 900; font-size: 17px; }
.types .price { margin-left: auto; font-weight: 700; }
.types .price b { font-size: 26px; margin-right: 2px; color: var(--ex-green); }
.types .price small { font-size: 12px; }
.types .check-note { margin-left: 0; }

/* 日ごとの枠 */
body.public .day h2 { margin-bottom: 8px; }
body.public ul.slots { margin: 0; padding: 0; }
body.public .slot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 0; border-bottom: 0; border-top: 2px dashed rgba(29, 26, 21, .18); }
body.public .slot-time { font-size: 28px; line-height: 1; min-width: 3.2em; color: var(--ex-ink); }
body.public .slot-left { min-width: 0; font-size: 13.5px; font-weight: 700; color: var(--ex-green-3); }
body.public .slot.closed .slot-left { color: rgba(29, 26, 21, .72); }
/* スマホでは券種・枚数・ボタンを1行にし、券種の欄を伸ばす */
body.public form.buy { display: flex; flex: 1 1 100%; min-width: 0; gap: 6px; margin-left: 0; }
body.public form.buy .pill { flex: none; padding: 10px 18px; }
body.public form.buy select[name=type] { flex: 1; min-width: 0; max-width: none; }
@media (min-width: 720px) { body.public form.buy { flex: 0 1 auto; margin-left: auto; } body.public form.buy select[name=type] { max-width: 16em; } }
body.public select { min-height: 44px; font: inherit; font-weight: 700; font-size: 16px; letter-spacing: 0; color: var(--ex-ink); background: #fff; border: 1.5px solid var(--ex-ink); border-radius: 999px; padding: 8px 28px 8px 12px; min-width: 0;
  -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231d1a15' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }

/* ボタン（LP のチケットのボタンと同じ、墨の丸いボタン） */
body.public .pill { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .7em; padding: 10px 22px; border: 0; border-radius: 999px; background: var(--ex-ink); color: var(--ex-cream); font: inherit; font-weight: 900; font-size: 15px; letter-spacing: .1em; line-height: 1.3; cursor: pointer; }
body.public .pill:hover { background: var(--ex-green); }
body.public .pill.primary { width: 100%; padding: 17px 24px; font-size: 16px; }
body.public .pill.primary:hover { background: var(--ex-green-3); }

/* チケットの形の板（LP の開催情報と同じ。左が中身、ミシン目の右が半券）。スマホではミシン目を横にする */
.ticket-card { position: relative; display: grid; grid-template-columns: 1fr; color: var(--ex-ink); filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .3)); margin: 4px 0; }
.ticket-main, .ticket-stub { position: relative; background: var(--ex-paper); }
.ticket-main { padding: 28px 24px 26px; border-radius: var(--ex-radius) var(--ex-radius) 0 0;
  -webkit-mask: radial-gradient(circle 16px at 0 100%, transparent 15px, #000 16px) left / 51% 100% no-repeat, radial-gradient(circle 16px at 100% 100%, transparent 15px, #000 16px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 16px at 0 100%, transparent 15px, #000 16px) left / 51% 100% no-repeat, radial-gradient(circle 16px at 100% 100%, transparent 15px, #000 16px) right / 51% 100% no-repeat; }
.ticket-stub { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 26px 24px 28px; border-radius: 0 0 var(--ex-radius) var(--ex-radius); text-align: center;
  background-color: var(--ex-lime); background-image: linear-gradient(90deg, var(--ex-ink) 50%, transparent 50%); background-size: 14px 2px; background-repeat: repeat-x; background-position: 0 0;
  -webkit-mask: radial-gradient(circle 16px at 0 0, transparent 15px, #000 16px) left / 51% 100% no-repeat, radial-gradient(circle 16px at 100% 0, transparent 15px, #000 16px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 16px at 0 0, transparent 15px, #000 16px) left / 51% 100% no-repeat, radial-gradient(circle 16px at 100% 0, transparent 15px, #000 16px) right / 51% 100% no-repeat; }
@media (min-width: 720px) {
  .ticket-card { grid-template-columns: 1fr 250px; }
  .ticket-main { padding: 36px 40px 34px 44px; border-radius: var(--ex-radius) 0 0 var(--ex-radius);
    -webkit-mask: radial-gradient(circle 16px at 100% 0, transparent 15px, #000 16px) top / 100% 51% no-repeat, radial-gradient(circle 16px at 100% 100%, transparent 15px, #000 16px) bottom / 100% 51% no-repeat;
    mask: radial-gradient(circle 16px at 100% 0, transparent 15px, #000 16px) top / 100% 51% no-repeat, radial-gradient(circle 16px at 100% 100%, transparent 15px, #000 16px) bottom / 100% 51% no-repeat; }
  .ticket-stub { padding: 32px 24px; border-radius: 0 var(--ex-radius) var(--ex-radius) 0;
    background-image: linear-gradient(var(--ex-ink) 50%, transparent 50%); background-size: 2px 14px; background-repeat: repeat-y;
    -webkit-mask: radial-gradient(circle 16px at 0 0, transparent 15px, #000 16px) top / 100% 51% no-repeat, radial-gradient(circle 16px at 0 100%, transparent 15px, #000 16px) bottom / 100% 51% no-repeat;
    mask: radial-gradient(circle 16px at 0 0, transparent 15px, #000 16px) top / 100% 51% no-repeat, radial-gradient(circle 16px at 0 100%, transparent 15px, #000 16px) bottom / 100% 51% no-repeat; }
  .ticket-card.is-ticket { grid-template-columns: 1fr 300px; }
}
.t-label { margin: 0; font-weight: 900; font-size: 13px; letter-spacing: .24em; color: var(--ex-green-3); }
.t-date { margin: 6px 0 0; }
.t-date .big-date b { font-size: clamp(40px, 11vw, 56px); }
.t-rows { display: grid; gap: 10px; margin: 20px 0 0; padding-top: 18px; border-top: 2px dashed rgba(29, 26, 21, .25); }
.t-rows div { display: grid; grid-template-columns: 4em 1fr; align-items: baseline; }
.t-rows dt { font-weight: 900; font-size: 13px; letter-spacing: .2em; color: var(--ex-green-3); }
.t-rows dd { margin: 0; font-weight: 900; font-size: 17px; line-height: 1.6; }
.total { display: flex; align-items: baseline; gap: 4px; margin: 2px 0 0; line-height: 1; }
.total b { font-size: clamp(48px, 13vw, 60px); }
.total span { font-weight: 900; font-size: 20px; }
.tax { margin: 6px 0 0; font-weight: 700; font-size: 13px; }

/* 返金のルールと同意 */
body.public .policy { border: 2px solid var(--ex-ink); }
body.public .policy ul { margin: 0; padding-left: 1.2em; }
body.public .policy li { font-weight: 700; line-height: 1.9; }
body.public .policy li + li { margin-top: 6px; }
form.confirm { display: flex; flex-direction: column; gap: 16px; }
label.agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 900; line-height: 1.7; cursor: pointer; }
label.agree input { flex: none; width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--ex-green); }
p.back { margin: 8px 0 16px; text-align: center; font-weight: 700; font-size: 14px; }
.message p.back { margin-bottom: 0; text-align: left; }
.message h1 { margin: 0 0 10px; font-weight: 900; font-size: 22px; color: var(--ex-green); }

/* チケット */
.is-ticket .t-date { margin-top: 0; }
body.public .ticket-type { font-size: 20px; margin: 0; }
body.public .ticket-count { font-size: 17px; }
body.public .badge { display: inline-block; margin-left: .4em; padding: 0 .5em; border-radius: 6px; background: var(--ex-green); color: var(--ex-cream); font-size: 13px; }
body.public .ticket-check { margin: 16px 0 0; padding: 10px 14px; background: transparent; border: 2px solid var(--ex-green-3); border-radius: 12px; font-weight: 900; color: var(--ex-green); }
/* QR は入口で読むので、白地と余白を必ず残す */
body.public .qr { padding: 12px; border-radius: 14px; background: #fff; line-height: 0; }
body.public .qr svg { width: min(64vw, 240px); height: auto; border: 0; }
body.public .ticket-code { margin: 14px 0 0; font-weight: 700; font-size: 13px; letter-spacing: .1em; }
body.public .ticket-code small { display: block; margin-top: 2px; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
body.public .ticket-code strong { display: block; font-family: var(--ex-f-display); font-weight: 800; font-size: 26px; letter-spacing: .12em; }
body.public .ticket-status { margin: 6px 0 0; padding: 2px 14px; border-radius: 999px; background: var(--ex-ink); color: var(--ex-lime); font-weight: 900; font-size: 14px; letter-spacing: .1em; }
body.public .ticket-status.ng { background: var(--ex-red); color: #fff; }
.is-void .ticket-main { opacity: .6; }

/* 下のバー（LP と同じ、深い緑の板） */
.site-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 20px 24px; border-radius: var(--ex-radius); background: var(--ex-deep); color: rgba(244, 236, 214, .85); font-size: 12.5px; }
.site-foot p { margin: 0; }
.site-foot ul { display: flex; flex-wrap: wrap; gap: 2px 18px; margin: 0; padding: 0; list-style: none; }
.site-foot a { display: inline-block; padding: 12px 0; text-decoration: underline; }
@media (max-width: 719px) { .site-foot { justify-content: center; text-align: center; } .site-foot ul { justify-content: center; } }

/* ---- チケットの演出（client/ticket3d.ts） ---- */
/* 3D のみーもんを描く場所。チケットの板と、その上の 150px（みーもんが立つ）。押せるものの邪魔をしない */
.ticket-card { isolation: isolate; }
.mm-canvas { position: absolute; left: 0; top: -150px; width: 100%; height: calc(100% + 150px); pointer-events: none; z-index: 3; opacity: 0; transition: opacity .4s; }
.mm-canvas.is-ready { opacity: 1; }
/* みーもんがのぞく場所を、はじめから空けておく（3D を読み込んだあとにチケットがずれない。入口で QR をかざしている最中に動かさない） */
.ticket-card.is-ticket:not(.is-void) { margin-top: 96px; }
.ticket-stub[hidden] { display: none; }
/* 全員が入場したら、半券（QR）を切り離した形にする */
.ticket-card.is-used { grid-template-columns: 1fr; }
.ticket-card.is-used .ticket-main { border-radius: var(--ex-radius); -webkit-mask: none; mask: none; }
.used-stamp:empty { display: none; }
.used-stamp { margin: 18px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--ex-lime); font-weight: 900; line-height: 1.7; }
.used-stamp b { display: block; font-size: 22px; color: var(--ex-green); letter-spacing: .1em; }
/* 切り離す動き：ぴりっと震えてから、ミシン目を軸に回って落ちる */
@keyframes tear-wide { 0% { transform: none; } 8% { transform: translateX(3px) rotate(.6deg); } 16% { transform: translateX(-2px) rotate(-.4deg); } 24% { transform: translateX(2px); } 100% { transform: translate(60px, 220px) rotate(24deg); opacity: 0; } }
@keyframes tear-narrow { 0% { transform: none; } 8% { transform: translateY(3px) rotate(.5deg); } 16% { transform: translateY(-2px) rotate(-.4deg); } 24% { transform: translateY(2px); } 100% { transform: translate(40px, 260px) rotate(-14deg); opacity: 0; } }
.is-tearing .ticket-stub { animation: tear-narrow 1.3s cubic-bezier(.5, 0, .7, .4) forwards; transform-origin: 100% 0; }
@media (min-width: 720px) { .is-tearing .ticket-stub { animation-name: tear-wide; transform-origin: 0 0; } }
@media (prefers-reduced-motion: reduce) { .is-tearing .ticket-stub { animation: none; } }

/* 確認画面のチケットの上から顔を出すみーもん（LP の開催情報と同じ絵。public/static/3d/meemon-card.webp）。買う画面は WebGL を使わず、絵1枚で軽く */
.ticket-card.has-peek { margin-top: 104px; }
.mm-peek { position: absolute; right: 18%; bottom: calc(100% - 26px); z-index: 2; width: 84px; height: auto; pointer-events: none; animation: mm-bob 3s ease-in-out infinite; }
@media (min-width: 720px) { .mm-peek { right: 70px; width: 104px; } }
@keyframes mm-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .mm-peek { animation: none; } }

/* チケットを保存する案内（kotoha からメールは届かない） */
body.public .keep { border: 2px solid var(--ex-lime); }
body.public .keep h2 { color: var(--ex-ink); }
body.public .keep ul { margin: 8px 0 0; padding-left: 1.2em; font-weight: 700; line-height: 1.8; }
body.public .keep p { margin: 10px 0 0; }

/* 日付を選ぶボタン（1日ずつ出す） */
.dates ul { display: flex; gap: 6px; margin: 0; padding: 2px 2px 8px; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.dates a { display: flex; flex-direction: column; align-items: center; min-width: 64px; min-height: 44px; padding: 8px 10px; border-radius: 16px; background: rgba(244, 236, 214, .1); color: var(--ex-cream); text-decoration: none; line-height: 1.2; }
.dates a b { font-size: 20px; }
.dates a span { font-size: 12px; font-weight: 700; }
.dates a small { margin-top: 2px; font-size: 11px; font-weight: 700; opacity: .85; }
.dates a[aria-current] { background: var(--ex-lime); color: var(--ex-ink); }
.dates a.is-full:not([aria-current]) { opacity: .55; }
/* 確認画面の、読んでほしい注意 */
form.confirm ul.must { margin: 4px 0 0; padding-left: 1.2em; font-size: 14px; line-height: 1.8; }
form.confirm ul.must li + li { margin-top: 6px; }
form.confirm button[disabled] { opacity: .6; cursor: wait; }
