:root {
  color-scheme: light;
  --cream: #fff9ec;
  --paper: #fffcf5;
  --ink: #28251e;
  --muted: #64574a;
  --green: #193e33;
  --green-light: #e5efe5;
  --red: #a52b33;
  --red-dark: #771e30;
  --gold: #f6d07c;
  --line: #e6d8c0;
  --jp: "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans CJK JP", sans-serif;
  --display: Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 18px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 15px/1.65 var(--jp); }
a { color: inherit; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:not(:disabled) { cursor: pointer; }
:focus-visible { outline: 3px solid #227357; outline-offset: 4px; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.svg-symbols, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 10px 17px; border: 1px solid transparent; border-radius: 999px; font-weight: 750; text-decoration: none; text-align: center; transition: background .16s, transform .16s; }
.button:active { transform: translateY(1px); }

.masthead { background: #fffaf0; border-bottom: 1px solid #f0e5cc; }
.masthead-inner { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; line-height: 1.15; text-decoration: none; color: var(--red-dark); }
.brand img { width: 40px; height: 40px; }
.brand strong { display: block; font-size: 22px; font-weight: 900; letter-spacing: -.045em; white-space: nowrap; }
.brand small { display: block; margin-top: 4px; color: #795048; font-size: 8px; font-weight: 750; letter-spacing: .1em; white-space: nowrap; }
.masthead nav { display: flex; align-items: center; gap: 22px; font-size: 13px; font-weight: 750; white-space: nowrap; }
.masthead nav a { text-decoration: none; }
.nav-menu { padding: 9px 0; }
.nav-menu:hover { color: var(--red); }
.nav-ticket { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 7px 13px; color: var(--green); border: 1px solid #d8dcc8; border-radius: 999px; }
.nav-ticket:hover { background: #eaf0e6; }
.nav-ticket .icon { width: 17px; height: 17px; }

.hero {
  overflow: hidden;
  color: #fff7e4;
  background:
    radial-gradient(circle at 20% 30%, #ffdca941 0 1px, transparent 1.7px) 0 0 / 47px 53px,
    radial-gradient(circle at 66% 44%, #ffe0ab30 0 1px, transparent 1.7px) 0 0 / 67px 71px,
    radial-gradient(ellipse at 76% 60%, #c54c42 0%, #9f2a35 46%, #7d2334 100%);
}
.hero-inner { min-height: 456px; display: grid; grid-template-columns: .91fr 1.09fr; align-items: center; gap: 12px; }
.hero-copy { position: relative; z-index: 1; padding: 37px 0 41px; }
.hero-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 5px; color: #ffdf9c; font-size: 11px; font-weight: 800; letter-spacing: .19em; }
.hero-kicker .icon { width: 17px; height: 17px; }
.hero h1 { margin: 0; font-size: clamp(38px, 5.4vw, 70px); font-weight: 950; letter-spacing: -.08em; line-height: 1.22; text-shadow: 0 4px #63202d; white-space: nowrap; }
.hero-subtitle { margin: 0 0 20px; font-size: clamp(15px, 2.02vw, 23px); font-weight: 750; letter-spacing: .04em; }
.hero-dates { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 4px 11px 4px 15px; border: 1px solid #f5cf83a5; border-radius: 10px; background: #631d2a6e; color: #fff2d0; font: 700 23px/1 var(--display); }
.hero-dates > span { white-space: nowrap; }
.hero-dates small { font: 750 9px/1 var(--jp); letter-spacing: .04em; }
.date-divider { display: inline-block; width: 10px; height: 1px; background: #f6cb7f; }
.hero-dates .date-tag { padding: 5px 7px; border-radius: 5px; background: var(--gold); color: #65262d; font: 800 10px/1 var(--jp); }
.hero-description { margin: 17px 0 19px; color: #fff1df; font-size: 14px; line-height: 1.9; }
.hero-actions { display: grid; justify-items: start; gap: 9px; }
.hero-button { min-height: 40px; padding-block: 6px; gap: 9px; background: #fff5df; color: #741f2b; padding-inline: 14px; box-shadow: 0 3px #61232d7a; }
.hero-button:hover { background: #ffe1a2; }
.hero-button:focus-visible { outline-color: #ffe49c; }
.hero-button .icon, .hero-extras-button .icon { width: 16px; height: 16px; }
.hero-extras-button { min-height: 40px; padding: 6px 14px; background: var(--green); color: var(--cream); font-size: 13px; }
.hero-extras-button:focus-visible { outline-color: #ffe49c; }
.hero-figure { margin: 0 -10px 0 -6px; }
.hero-figure img { width: 100%; height: auto; }

.season-strip { display: flex; min-height: 42px; align-items: center; justify-content: center; gap: clamp(12px, 2.8vw, 32px); padding: 6px 12px; border-bottom: 2px solid #b78950; background: var(--green); color: #fff5db; text-align: center; font-size: 12px; font-weight: 750; letter-spacing: .05em; }
.season-strip [aria-hidden] { color: var(--gold); }
.strip-word { color: #f1ce86; font: 800 10px/1.25 var(--jp); letter-spacing: .14em; white-space: nowrap; }

.menu-section, .crew-section { padding-block: 60px 54px; }
.section-heading { text-align: center; }
.eyebrow { margin: 0; color: #8d2b36; font-size: 11px; font-weight: 850; letter-spacing: .16em; line-height: 1.4; }
.section-heading .eyebrow { display: flex; align-items: center; justify-content: center; gap: 10px; }
.section-heading .eyebrow::before, .section-heading .eyebrow::after { content: ""; width: 18px; height: 1px; background: #c78c41; }
.section-heading h2 { margin: 5px 0 5px; color: var(--green); font-size: clamp(27px, 4vw, 41px); font-weight: 900; letter-spacing: -.045em; line-height: 1.4; }
.section-heading > p:last-child { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.shop-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 26px 0 17px; padding: 15px 17px; border: 1px solid #e1d0ac; border-radius: 15px; background: #fff0d5; }
.shop-status[data-state="open"] { border-color: #c7d7c2; background: #eaf2e7; }
.shop-status[data-state="used"], .shop-status[data-state="error"] { border-color: #e6bcb5; background: #fae6e2; }
.status-copy { display: flex; align-items: flex-start; gap: 10px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; margin: 8px 2px 0 3px; flex: none; background: #a66527; box-shadow: 0 0 0 3px #a665271f; }
[data-state="open"] .status-dot { background: #397350; box-shadow: 0 0 0 3px #39735026; }
[data-state="used"] .status-dot, [data-state="error"] .status-dot { background: var(--red); box-shadow: 0 0 0 3px #a52b3321; }
.status-copy strong { display: block; color: var(--green); font-size: 15px; font-weight: 850; }
[data-state="used"] .status-copy strong, [data-state="error"] .status-copy strong { color: #802632; }
.status-copy p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.preview-button { flex: none; background: var(--green); color: #fff9ea; min-height: 44px; padding: 8px 13px; font-size: 12px; }
.preview-button:hover { background: #285642; }
.preview-button .icon { width: 16px; height: 16px; }
.preview-controls { margin: 0 0 17px; padding: 13px 15px; background: #fffcf4; border: 1px dashed #ba955d; border-radius: 14px; }
.preview-heading, .preview-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.preview-heading p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.preview-label { color: var(--red-dark); font-weight: 850; font-size: 13px; }
.text-button { display: inline-flex; align-items: center; min-height: 40px; border: 0; background: none; color: #77353a; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; text-align: start; }
.text-button:disabled { opacity: .53; text-decoration: none; }
.preview-actions { margin-top: 8px; }
.preview-days { display: flex; flex-wrap: wrap; gap: 7px; }
.preview-days button { min-height: 44px; padding: 6px 12px; color: var(--green); font-weight: 800; font-size: 13px; white-space: nowrap; background: var(--paper); border: 1px solid #cad5c3; border-radius: 9px; }
.preview-days [aria-pressed="true"] { color: #fff9ea; background: var(--green); border-color: var(--green); }
.preview-notice { margin: 4px 0 0; color: #22553e; font-size: 12px; }

.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.menu-card { position: relative; display: flex; flex-direction: column; width: 100%; min-width: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: var(--paper); color: var(--ink); text-align: start; box-shadow: 0 3px 0 #9a6c3511; transition: transform .2s, box-shadow .2s, border-color .2s; }
.menu-card[data-menu="chicken"] { --card-color: #912936; --card-bg: #f9ded7; }
.menu-card[data-menu="nuggets"] { --card-color: #82510d; --card-bg: #f8e8bd; }
.menu-card[data-menu="special"] { --card-color: #22533e; --card-bg: #d9e9d8; }
.menu-card:not(:disabled):hover { transform: translateY(-3px); border-color: var(--card-color); box-shadow: 0 7px 0 #9a6c3520; }
.menu-card:not(:disabled):active { transform: translateY(0); }
.card-art { position: relative; display: grid; width: 100%; aspect-ratio: 2 / 1.1; place-items: center; overflow: hidden; background: var(--card-bg); }
.card-art img { width: 100%; height: 100%; object-fit: contain; }
.card-number { position: absolute; z-index: 1; top: 13px; left: 13px; display: grid; place-items: center; width: 32px; height: 29px; border: 1px solid currentColor; border-radius: 6px; color: var(--card-color); background: #fff9edb5; font: 800 14px/1 var(--display); }
.card-info { display: flex; flex-direction: column; gap: 4px; width: 100%; min-width: 0; min-height: 97px; padding: 15px 51px 14px 16px; }
.card-brand {
  align-self: flex-start;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--red-dark);
  color: #fff2d9;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}
.card-title { color: var(--card-color); font-size: clamp(16px, 2.02vw, 22px); font-weight: 900; letter-spacing: -.045em; line-height: 1.42; }
.card-description { color: var(--muted); font-size: 12px; line-height: 1.55; }
.card-drawn { color: var(--red-dark); font-size: 11px; font-weight: 800; }
.card-arrow { position: absolute; right: 13px; bottom: 27px; display: grid; place-items: center; width: 31px; height: 31px; color: #fff9eb; background: var(--card-color); border-radius: 50%; }
.card-arrow .icon { width: 16px; height: 16px; }
.menu-card:disabled .card-arrow { color: var(--card-color); background: var(--card-bg); }
.menu-card.already-drawn .card-arrow { color: var(--card-color); background: var(--card-bg); }
.menu-lineups { display: grid; gap: 6px; margin-bottom: 16px; }
.menu-lineups .menu-lineup > summary { min-height: 44px; padding: 6px 12px; font-size: 14px; }
.menu-lineups .lineup-arrow { width: 25px; height: 25px; }
.menu-lineups .lineup-arrow .icon { width: 14px; height: 14px; }
.menu-lineup {
  border: 1px solid #dcc9a7;
  border-radius: 16px;
  background: var(--paper);
}
.menu-lineup summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 57px;
  padding: 10px 15px;
  border-radius: 15px;
  background: #fff0d5;
  color: var(--green);
  cursor: pointer;
  list-style: none;
}
.menu-lineup summary::-webkit-details-marker { display: none; }
.menu-lineup[open] > summary {
  border-bottom: 1px solid #e8d9bf;
  border-radius: 15px 15px 0 0;
}
.lineup-summary-text { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; }
.lineup-summary-text strong { font-weight: 850; }
.lineup-count {
  padding: 2px 7px;
  border-radius: 5px;
  background: #e9d5a2;
  color: #664125;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}
.lineup-arrow {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  color: #fff4dc;
  transition: transform .18s ease;
}
.lineup-arrow .icon { width: 16px; height: 16px; }
.menu-lineup[open] > summary > .lineup-arrow { transform: rotate(180deg); }
.lineup-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 14px;
  list-style: none;
}
.lineup-card {
  min-width: 0;
  padding: 7px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffaf0;
  text-align: center;
}
.lineup-art {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  background: #efe0c6;
}
.lineup-art img { width: 100%; height: 100%; object-fit: cover; }
.lineup-name {
  display: block;
  margin-top: 7px;
  color: var(--green);
  font-size: clamp(12px, 3.3vw, 14px);
  font-weight: 800;
  line-height: 1.4;
  text-wrap: balance;
}
.lineup-mystery {
  display: grid;
  place-items: center;
  border: 2px solid #e2b25a;
  background:
    radial-gradient(circle, #ffe0a34d 0 1px, transparent 1.6px) 4px 4px / 29px 29px,
    radial-gradient(ellipse at center, #47536a, #232e43 78%);
  color: #ffe097;
  box-shadow: inset 0 0 0 3px #efc67844;
  font-size: clamp(37px, 8vw, 64px);
  font-weight: 900;
  line-height: 1;
}
.menu-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.menu-note .icon { width: 15px; height: 15px; }

.tickets-section { padding: 43px 0 47px; background: #f2e9d7; border-block: 1px solid #e9dcc3; }
.tickets-inner { max-width: 810px; }
.ticket-empty, .ticket-list { margin: 18px 0 0; }
.ticket-empty { display: flex; justify-content: center; align-items: center; min-height: 63px; gap: 9px; padding: 12px; color: #645344; border: 1px dashed #c7b492; border-radius: 13px; }
.ticket-empty p { margin: 0; font-size: 13px; }
.ticket-empty .icon { color: #9b6636; }
.ticket-list { display: grid; gap: 9px; padding: 0; list-style: none; }
.ticket-button { display: grid; grid-template-columns: 54px 1fr 20px; align-items: center; gap: 12px; width: 100%; min-height: 74px; padding: 9px 13px; background: var(--paper); color: var(--green); border: 1px solid #dec9a8; border-radius: 13px; text-align: start; }
.ticket-button:hover { border-color: var(--green); }
.ticket-image { width: 54px; height: 54px; object-fit: cover; border-radius: 7px; background: #f5e9cf; }
.ticket-text { display: grid; gap: 3px; }
.ticket-date { color: var(--muted); font-size: 11px; }
.ticket-title { font-size: 15px; line-height: 1.4; }
.crew-section { max-width: 810px; }
.crew-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.crew-card { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 13px 8px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); text-align: center; }
.crew-card img { width: min(100%, 120px); height: auto; border-radius: 50%; border: 1px solid var(--line); }
.crew-card span { margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 700; }
.crew-card strong { color: var(--green); font-size: 18px; font-weight: 850; }
.shop-footer { padding: 23px 0; background: var(--green); color: #ffecc4; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; font-weight: 750; letter-spacing: .075em; }

.draw-dialog { position: fixed; width: min(100% - 24px, 500px); max-height: calc(100% - 26px); max-height: calc(100dvh - 26px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); margin: auto; padding: 23px 19px 15px; overflow: auto; overscroll-behavior: contain; border: 2px solid #d9ad5d; border-radius: 23px; background: var(--cream); color: var(--ink); text-align: center; box-shadow: 0 20px 75px #2b101d5c; }
.draw-dialog::backdrop { background: #26181b9c; }
.dialog-close { position: absolute; z-index: 2; top: 7px; right: 7px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #ead4b0; border-radius: 50%; color: var(--red-dark); background: #fffaf0; }
.dialog-close:hover { background: #fbe5da; }
.dialog-order { padding: 24px 0 5px; }
.order-line { display: grid; min-height: 56px; place-items: center; }
.order-line p { margin: 0; padding: 6px 12px; font-size: clamp(13px, 4.1vw, 18px); font-weight: 850; }
.order-stamp { color: var(--red-dark); border: 3px double currentColor; border-radius: 5px; background: var(--paper); transform: rotate(-5deg); animation: order-stamp .28s ease-out both; }
@keyframes order-stamp {
  from { opacity: 0; transform: rotate(-10deg) scale(1.4); }
  to { opacity: 1; transform: rotate(-5deg) scale(1); }
}
.order-bubble { position: relative; color: var(--green); border: 1px solid #d8b975; border-radius: 15px; background: var(--paper); }
.order-bubble::after { content: ""; position: absolute; left: 55%; bottom: -6px; width: 10px; height: 10px; background: inherit; border-right: inherit; border-bottom: inherit; transform: rotate(45deg); }
.order-stage { width: min(100%, 300px); aspect-ratio: 1; margin: auto; background: radial-gradient(ellipse, #f5d79285, transparent 68%); }
.order-stage img { width: 100%; height: 100%; object-fit: contain; }
#order-manager, #order-manager-call { background: #fff; }
.dialog-opening { min-height: 300px; padding: 10px 0 19px; }
.box-scene { width: min(100%, 320px); margin: auto; background: radial-gradient(ellipse, #f5d792a5 0, #fff9ec00 67%); animation: box-jiggle .4s ease-in-out .1s; }
.box-scene svg { display: block; width: 100%; }
.box-lid { transform-origin: 89px 125px; animation: lid-open .47s cubic-bezier(.24,.7,.24,1) .49s both; }
.box-sparks { transform-origin: 180px 125px; animation: sparkle-pop .45s ease-out .59s both; }
@keyframes box-jiggle { 23% { transform: rotate(-4deg); } 56% { transform: rotate(4deg); } 80% { transform: rotate(-2deg); } }
@keyframes lid-open { from { transform: translateY(0) rotate(0); } to { transform: translate(-7px, -48px) rotate(-17deg); } }
@keyframes sparkle-pop { from { transform: scale(.47); opacity: 0; } to { transform: scale(1); opacity: 1; } }
/* The gold light starts before the lid moves, then the stars spread outward. */
.box-rare-light, .box-rare-stars { display: none; }
.draw-dialog[data-panel="opening"][data-rare-theme] .box-lid { animation-delay: .78s; }
.draw-dialog[data-panel="opening"][data-rare-theme] .box-sparks { animation-delay: .95s; }
.draw-dialog[data-panel="opening"][data-rare-theme] .box-rare-light {
  display: block;
  transform-origin: 180px 139px;
  animation: rare-lid-light 1.04s ease-in-out .22s both;
}
.draw-dialog[data-panel="opening"][data-rare-theme] .box-rare-stars {
  display: block;
  transform-origin: 180px 134px;
  animation: rare-star-scatter .65s cubic-bezier(.15,.75,.3,1) .89s both;
}
@keyframes rare-lid-light {
  0% { opacity: 0; transform: scaleX(.38); }
  36%, 59% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scale(1.13, 1.35); }
}
@keyframes rare-star-scatter {
  from { opacity: 0; transform: scale(.22) rotate(-6deg); }
  26% { opacity: 1; }
  to { opacity: 1; transform: scale(1.04) rotate(2deg); }
}
.opening-text { margin: 8px 0 0; color: var(--green); font-size: 19px; font-weight: 850; }
.dialog-closed { padding: 24px 3px 16px; }
.closed-icon { display: grid; place-items: center; width: 57px; height: 57px; margin: 0 auto 12px; border-radius: 18px; color: var(--red-dark); background: #f5dbd3; }
.closed-icon .icon { width: 28px; height: 28px; }
.closed-title { margin: 6px 0 5px; color: var(--red-dark); font-weight: 900; font-size: 21px; }
.small-note { margin: 4px 0 13px; color: var(--muted); font-size: 13px; }
.primary-button { background: var(--red); color: #fffaf2; }
.primary-button:hover { background: #8b2331; }
.dialog-result { animation: reveal .28s ease-out both; }
@keyframes reveal { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.result-header { margin: 0 0 11px; }
.result-header .eyebrow { display: flex; align-items: center; justify-content: center; min-height: 23px; margin-inline: 36px; font-size: 10px; }
.result-header .is-rare { color: #85510e; }
.result-name { margin: 5px 0 1px; color: var(--green); font-size: clamp(19px, 5.2vw, 27px); font-weight: 900; letter-spacing: -.035em; line-height: 1.35; }
.result-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 5px; margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.result-meta span { padding: 1px 5px; border-radius: 4px; background: #f4ead6; white-space: nowrap; }
.prize-picture { margin: 0; }
.prize-picture img { width: auto; height: auto; max-width: 100%; max-height: min(44dvh, 382px); margin: auto; border-radius: 11px; border: 1px solid #d7bc87; background: #f1e3ca; object-fit: contain; }
.prize-picture figcaption { max-width: 310px; margin: 0 auto; padding: 17px; border: 1px dashed var(--line); border-radius: 9px; color: var(--muted); font-size: 12px; }
.result-message { margin: 9px 0 11px; color: var(--muted); font-size: 13px; }
.result-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.result-actions .button { width: min(100%, 360px); min-height: 49px; padding: 8px 12px; font-size: 14px; }
.result-actions .button:disabled { opacity: .65; }
.result-actions .icon { width: 17px; height: 17px; }
#save-photo:not([hidden]) + #save-image {
  min-height: 44px;
  border-color: currentColor;
  background: transparent;
  color: var(--save-link-color, var(--red-dark));
}
.save-note { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.save-note:empty { margin: 0; }
.save-note strong { white-space: nowrap; }
.save-help { color: var(--save-link-color, var(--red-dark)); font-size: 11px; }
.save-help summary { width: fit-content; min-height: 44px; margin-inline: auto; padding: 12px 3px; font-weight: 750; cursor: pointer; }
.save-help p { max-width: 310px; margin: 0 auto; line-height: 1.6; }
.image-link { min-height: 44px; justify-content: center; color: inherit; font-size: 11px; }

.rare-result-heading { margin-inline: 36px; }
.rare-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  margin: 0;
  padding: 3px 12px;
  border: 1px solid #fff0bb;
  border-radius: 999px;
  background: linear-gradient(165deg, #fff3ba, #efba58);
  color: #512e1c;
  box-shadow: 0 2px 12px #f3c96b43;
  font-size: clamp(15px, 4.4vw, 20px);
  font-weight: 900;
  line-height: 1.3;
  white-space: nowrap;
}
.rare-badge-star { width: 18px; height: 18px; color: #94531b; }
.rare-badge-ribbon { display: none; width: 30px; height: 22px; flex: none; }
.rare-announcement {
  margin: 6px 0 0;
  color: #ffe0a0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}
.draw-dialog[data-panel="result"][data-rare-theme] {
  background: var(--rare-surface);
  border-color: #e9b95e;
  color: #fff6df;
  box-shadow: inset 0 0 0 3px #f6cf7447, 0 20px 75px #21101e82;
}
.draw-dialog[data-rare-theme="starlight"] {
  --rare-surface:
    radial-gradient(circle, #ffe7a472 0 1px, transparent 1.7px) 8px 4px / 50px 53px,
    radial-gradient(circle, #f4ca8c54 0 1px, transparent 1.6px) 26px 25px / 69px 61px,
    radial-gradient(ellipse at top, #344563, #172239 75%);
}
.draw-dialog[data-rare-theme="delivery"] {
  --rare-surface: radial-gradient(ellipse at top, #864557, #4f253a 74%);
}
.draw-dialog[data-rare-theme="gift"] {
  --rare-surface: radial-gradient(ellipse at top, #3c674f, #173e33 74%);
}
.draw-dialog:is([data-rare-theme="delivery"], [data-rare-theme="gift"]) .rare-badge-ribbon { display: block; }
.draw-dialog:is([data-rare-theme="delivery"], [data-rare-theme="gift"]) .rare-badge-star { display: none; }
.draw-dialog[data-panel="result"][data-rare-theme] .result-name { color: #fff4d8; }
.draw-dialog[data-panel="result"][data-rare-theme] .result-meta span {
  background: #fff4d728;
  color: #fff4df;
}
.draw-dialog[data-panel="result"][data-rare-theme] .prize-picture img {
  max-height: min(39vh, 354px);
  max-height: min(39dvh, 354px);
  border-color: #e6b45a;
  box-shadow: 0 0 0 2px #e6b45a33, 0 8px 18px #1a12204a;
}
.draw-dialog[data-panel="result"][data-rare-theme] { --save-link-color: #fff0ce; }
.draw-dialog[data-panel="result"][data-rare-theme] :is(.result-message, .save-note, figcaption) {
  color: #fff0ce;
}
.draw-dialog[data-panel="result"][data-rare-theme] .result-message { text-wrap: balance; }
.draw-dialog[data-panel="result"][data-rare-theme] .primary-button {
  background: #f6d181;
  color: #46291c;
}
.draw-dialog[data-panel="result"][data-rare-theme] .primary-button:hover { background: #ffe4a0; }
.draw-dialog[data-panel="result"][data-rare-theme] :focus-visible { outline-color: #ffe6a0; }


@media (max-width: 760px) {
  .wrap { width: min(100% - 34px, 540px); }
  .masthead-inner { min-height: 58px; }
  .masthead nav { gap: 12px; }
  .hero-inner { display: flex; flex-direction: column; gap: 0; min-height: 0; }
  .hero-copy { padding: 25px 0 0; text-align: center; }
  .hero-kicker { justify-content: center; margin-bottom: 3px; font-size: 10px; }
  .hero h1 { font-size: clamp(34px, 10.6vw, 61px); }
  .hero-subtitle { margin-bottom: 12px; }
  .hero-dates { min-height: 39px; font-size: 20px; }
  .hero-description { margin: 10px 0 11px; font-size: 13px; line-height: 1.65; }
  .hero-actions { justify-items: center; }
  .hero-button { font-size: 13px; }
  .hero-figure { width: min(100%, 395px); margin: -8px 0 -9px; }
  .hero-figure img { width: 100%; height: auto; }
  .season-strip { min-height: 38px; }
  .menu-section, .crew-section { padding-block: 39px 38px; }
  .shop-status { margin-top: 20px; }
  .menu-grid { grid-template-columns: 1fr; gap: 10px; }
  .lineup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 10px; }
  .menu-card { flex-direction: row; min-height: 111px; border-radius: 15px; }
  .card-art { flex: 0 0 28%; width: 28%; aspect-ratio: auto; }
  .card-art img { width: 160%; max-width: none; height: auto; }
  .card-number { top: 7px; left: 7px; width: 23px; height: 21px; font-size: 11px; }
  .card-info { justify-content: center; min-height: auto; padding: 10px 43px 11px 12px; }
  .card-title { font-size: clamp(16px, 4.7vw, 21px); }
  .menu-card[data-menu="special"] .card-title { font-size: clamp(14px, 4.1vw, 19px); }
  .card-description { font-size: 11px; }
  .card-arrow { right: 9px; top: 50%; bottom: auto; width: 26px; height: 26px; transform: translateY(-50%); }
  .menu-note { justify-content: flex-start; align-items: flex-start; font-size: 11px; }
  .menu-note .icon { margin-top: 2px; }
  .tickets-section { padding-block: 36px; }
}
@media (max-width: 450px) {
  .nav-menu { display: none; }
  .brand { gap: 7px; }
  .brand img { width: 35px; height: 35px; }
  .brand strong { font-size: 19px; }
  .brand small { font-size: 7px; }
  .nav-ticket { font-size: 11px; min-height: 44px; padding-inline: 10px; }
  .strip-word, .strip-word + [aria-hidden], .season-strip [aria-hidden]:nth-last-child(2) { display: none; }
  .shop-status { flex-wrap: wrap; gap: 10px; padding: 12px 13px; }
  .preview-button { width: 100%; }
  .preview-controls { padding: 11px; }
  .preview-heading { align-items: flex-start; }
  .preview-heading .text-button { flex: none; max-width: 91px; padding: 0; min-height: 39px; line-height: 1.35; }
  .preview-actions { flex-wrap: wrap; }
  .reset-button { padding: 0 3px; }
  .crew-grid { gap: 7px; }
  .crew-card { padding: 9px 4px 11px; }
  .crew-card strong { font-size: 15px; }
  .footer-inner { font-size: 9px; }
  .draw-dialog { padding-inline: 12px; }
}
@media (max-width: 355px) {
  .wrap { width: calc(100% - 25px); }
  .masthead-inner { gap: 7px; }
  .brand img { width: 31px; height: 31px; }
  .brand strong { font-size: 16px; }
  .nav-ticket { gap: 5px; padding-inline: 8px; }
  .card-info { padding-right: 35px; }
  .card-title { font-size: 15px; }
  .card-arrow { right: 6px; width: 23px; height: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

.receipt-history { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 12px; }
.receipt-history .text-button, #receipt-back { min-height: 44px; }
.result-receipt { margin: 12px 0 6px; }
.dialog-receipt { padding: 16px 0 6px; }
.dialog-receipt h2 { margin: 4px 0 12px; }
.receipt-image { display: block; width: min(100%, 360px); height: auto; margin: 0 auto 16px; filter: drop-shadow(0 4px 6px #48292726); -webkit-touch-callout: default; }

.result-farewell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(66px, 24%); gap: 7px; align-items: end; max-width: 420px; margin: 8px auto 0; padding: 8px; border: 1px solid #dec18a; border-radius: 14px; background: #fff8e9; color: var(--green); }
.farewell-manager { display: flex; align-items: end; gap: 5px; min-width: 0; }
.farewell-manager img { width: clamp(38px, 13vw, 74px); height: auto; border-radius: 8px; background: white; }
.farewell-message { margin: 0; padding: 6px; border: 1px solid #e7d1a8; border-radius: 9px; background: white; font-size: 12px; line-height: 1.5; text-align: left; overflow-wrap: anywhere; }
.farewell-que { display: grid; justify-items: center; }
.farewell-que img { grid-area: 2 / 1; width: 100%; height: auto; }
.farewell-que-message { grid-area: 1 / 1; border-radius: 999px; padding: 2px 6px; background: #f6e4d6; color: var(--red-dark); font-size: 11px; font-weight: 800; }
.is-blinking .farewell-que-message { opacity: 0; }
.blink-ready .farewell-que-message { animation: reveal .16s ease-out 1.04s both; }

.sound-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin-top: 10px; padding: 6px 12px; border: 1px solid #d6b67d; border-radius: 999px; background: #fff8eb; color: var(--green); font: inherit; font-size: 13px; cursor: pointer; }
.sound-toggle strong { min-width: 34px; padding: 2px 6px; border-radius: 999px; background: #f2e4cc; }
.sound-toggle[aria-pressed="true"] strong { background: var(--green); color: white; }

.menu-welcome { display: grid; grid-template-columns: minmax(0, 1fr) clamp(100px, 32%, 160px); align-items: center; gap: 8px 12px; max-width: 470px; margin: 3px auto 0; }
.menu-welcome-copy { text-align: left; }
.menu-welcome img { display: block; width: 100%; height: auto; }
.menu-greeting { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
#greeting-speaker { display: block; color: var(--green); }
#greeting-que { display: inline-block; margin-left: .35em; color: var(--red-dark); font-weight: 700; }

.closing-hero { padding-block: clamp(24px, 5vw, 56px); text-align: center; }
.closing-hero img { display: block; width: min(100%, 340px); height: auto; margin: 12px auto 10px; }
.closing-hero h1 { margin: 0 0 8px; color: var(--green); font-size: clamp(23px, 5vw, 38px); line-height: 1.4; text-wrap: balance; }
.closing-hero p { margin: 6px 0; }
.closing-hero .closing-signature { margin: 10px 0 16px; color: var(--red-dark); font-weight: 700; }

.photo-section { max-width: 800px; padding-block: 40px; }
.photo-section .menu-lineup { margin-top: 18px; }
.photo-content { padding: 0 16px 16px; text-align: center; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; height: auto; border-radius: 12px; }
.photo-grid figcaption { margin: 8px 0; font-weight: 750; color: var(--green); }
.photo-grid .text-button { display: block; width: fit-content; margin: 6px auto 0; }
@media (max-width: 520px) {
  .photo-grid { grid-template-columns: 1fr; }
}

.crew-card { width: 100%; height: 100%; }
.crew-card:hover { border-color: var(--red); }
.crew-story-bubble { margin-top: 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.crew-story-bubble strong { color: var(--red-dark); font-size: 13px; }
.crew-story-bubble p { margin: 4px 0 0; }

.mailbox-section { max-width: 650px; padding-block: 0 44px; }
.mailbox-card { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.mailbox-card label { color: var(--green); font-weight: 750; }
.mailbox-card select, .mailbox-card textarea { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font: inherit; font-size: 16px; }
.mailbox-card textarea { resize: vertical; }
.mailbox-card button { justify-self: start; }
#mailbox-status { margin: 0; }
#mailbox-inbox { margin-top: 14px; }
.mailbox-letters { padding: 0 16px 16px; }
#mailbox-list { list-style: none; margin: 0; padding: 0; }
#mailbox-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
#mailbox-list p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
#mailbox-more { margin-top: 12px; }

.prompt-section { max-width: 800px; padding-block: 30px 0; }
.prompt-card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.prompt-card h3 { margin: 0; color: var(--green); overflow-wrap: anywhere; }
.prompt-examples { margin-block: 18px; max-width: 480px; }
.prompt-examples h4 { margin: 0 0 8px; color: var(--green); }
.prompt-examples-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.prompt-examples figure { margin: 0; }
.prompt-examples img { display: block; width: 100%; height: auto; border-radius: 8px; }
.prompt-examples figcaption { margin-top: 4px; text-align: center; color: var(--green); font-size: 12px; font-weight: 700; }
.prompt-card button:disabled { opacity: .65; }
#prompt-copy-status { margin: 8px 0 0; color: var(--muted); }
#prompt-copy-status:empty { margin: 0; }
.prompt-image-note { padding: 10px 14px; border-inline-start: 4px solid var(--red); border-radius: 8px; background: #f9e7e5; color: var(--red-dark); font-weight: 750; }

.shop-extras { max-width: 800px; margin: 28px auto 0; }
.shop-extras > summary { background: var(--green); color: var(--cream); }
.extras-tap { flex: none; padding: 4px 12px; border-radius: 999px; background: var(--gold); color: var(--green); font-size: 13px; font-weight: 850; white-space: nowrap; }
.shop-extras-content { display: grid; gap: 24px; padding: 16px; }
.shop-extras-content > section { padding-block: 0; }
.shop-extras-content { gap: 12px; }
.shop-extras-content .menu-lineup { margin: 0; }
.shop-extras-content summary { font-size: 14px; }
.shop-extras-content .extras-tap { padding-inline: 8px; font-size: 11px; }
.prompt-section summary { background: #f9e7e5; color: var(--red-dark); }
.prompt-section .prompt-card { border: 0; }

.opening-hero .opening-date { width: fit-content; margin: 16px auto; padding: 8px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--red-dark); font-weight: 850; }
.opening-date span { display: block; color: var(--green); font-size: 12px; font-weight: 650; }
.opening-gacha-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 312px);
  padding: 0;
  margin: 12px auto 16px;
  list-style: none;
}
.opening-gacha-preview li {
  padding: 6px 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--green);
  font-size: 11px;
  font-weight: 750;
}
.opening-gacha-preview img {
  width: min(100%, 72px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0 auto 4px;
  border-radius: 6px;
}
.opening-hero .button { min-height: 44px; margin: 3px; }

.visitor-preview-tools { margin-block: 14px; padding: 12px; border: 1px dashed var(--red); border-radius: 12px; background: var(--paper); }
#visitor-preview-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
#visitor-preview-period { max-width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: white; font: inherit; font-size: 16px; }
