:root {
  --navy: #152b52;
  --cobalt: #2364c7;
  --cobalt-dark: #1b52a8;
  --sky: #dceeff;
  --paper: #f7f9fc;
  --surface: #fbfcfe;
  --border: #d6deea;
  --muted: #61708a;
  --coral: #f4776b;
  --shadow: 0 18px 42px rgba(21, 43, 82, 0.12);
  --karaoke-background-image: url("yamato-campus.jpg");
  font-family: "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--navy);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { width: 100%; max-width: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body { width: 100%; max-width: 100%; margin: 0; overflow-x: hidden; position: relative; background: linear-gradient(180deg, #f7f9fc 0%, #eef4fb 100%); color: var(--navy); }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .56; }
input, textarea { width: 100%; min-width: 0; border: 1px solid var(--border); background: var(--surface); padding: 0 16px; color: var(--navy); }
input { min-height: 54px; }
textarea { min-height: 120px; padding: 14px 16px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid rgba(35, 100, 199, .18); border-color: var(--cobalt); }
fieldset { margin: 0; padding: 0; border: 0; }

.site-shell,
.hero-shell,
.overview-shell,
.flow-shell,
.entry-shell,
.site-footer { min-height: 100%; width: 100%; max-width: 100%; overflow-x: hidden; }

.site-shell { min-height: 100vh; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.hidden { display: none !important; }
.center-panel { text-align: center; }

.state-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.state-card,
.panel-card {
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.state-card {
  width: min(520px, 100%);
  padding: 40px 28px;
}

.state-mark,
.complete-mark {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  font-size: 34px;
  font-weight: 800;
}

.state-mark { background: #fff4ee; color: #cf5f4c; }
.complete-mark { background: #fff; border: 2px solid #9ebff3; color: var(--cobalt); }
.spinner {
  width: 38px;
  height: 38px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 4px solid #d7e0ec;
  border-top-color: var(--cobalt);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  letter-spacing: .18em;
  font-weight: 800;
  color: rgba(255,255,255,.92);
}
.eyebrow.dark { color: var(--cobalt); }
.eyebrow::after {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--coral);
}
.center-eyebrow { justify-content: center; }

.hero-shell {
  position: relative;
  overflow: hidden;
  min-height: 780px;
  color: #fff;
  background: var(--navy);
}

.hero-backdrop,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-backdrop {
  background-image: var(--karaoke-background-image);
  background-size: cover;
  background-position: center center;
  opacity: .98;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(9, 36, 77, .82) 0%, rgba(14, 45, 91, .58) 42%, rgba(14, 45, 91, .14) 100%), linear-gradient(180deg, rgba(9, 36, 77, .18) 0%, rgba(9, 36, 77, .56) 100%);
}

.hero-inner { position: relative; z-index: 1; padding: 28px 0 72px; }
.hero-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}
.brand-panel {
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  border-radius: 999px;
}
.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  padding: 2px;
}
.brand-copy strong,
.brand-copy small,
.hero-year,
.summary-label,
.flow-step,
.steps span,
.ticket-row span,
#reception-number {
  font-family: "Plus Jakarta Sans", sans-serif;
}
.brand-copy strong { display: block; font-size: 18px; letter-spacing: .12em; }
.brand-copy small { display: block; margin-top: 4px; font-size: 11px; letter-spacing: .22em; opacity: .82; }
.hero-header-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.hero-year { font-size: 12px; letter-spacing: .18em; font-weight: 800; }
.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 12px;
}

#user-email {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 40px;
  align-items: end;
  padding-top: 64px;
}
.hero-content > *,
.hero-header > *,
.hero-header-right,
.event-summary-card,
.event-summary-card > div,
.place-summary-block,
.hero-badges,
.hero-actions,
.hero-side-card,
.hero-ranking,
.entry-main,
.panel-card,
.ticket-card,
.account-chip,
.brand-panel {
  min-width: 0;
  max-width: 100%;
}

.account-chip {
  overflow-wrap: anywhere;
}
.hero-copy h1 {
  margin: 0;
  max-width: none;
  white-space: nowrap;
  font-size: clamp(30px, 4.6vw, 68px);
  line-height: 1.07;
  font-weight: 800;
}
.festival-subtitle {
  margin: 14px 0 12px;
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 700;
  color: rgba(255,255,255,.92);
}
.hero-copy h2 {
  margin: 0;
  font-size: clamp(28px, 4.6vw, 56px);
  line-height: 1.08;
  font-weight: 800;
}
.hero-copy h1,
.hero-copy h2,
.festival-subtitle,
.hero-announcement,
#festival-title,
#event-title,
#user-email {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.hero-announcement {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.9;
  color: rgba(255,255,255,.9);
}
.application-pause-banner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 13px 16px;
  box-sizing: border-box;
  border: 1px solid rgba(255,224,138,.8);
  border-radius: 0;
  background: rgba(92,52,12,.78);
  color: #fff8df;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.7;
  text-align: center;
}
.event-summary-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(720px, 100%);
  margin-top: 28px;
}
.event-summary-card > div,
.gathering-card {
  background: rgba(255,255,255,.94);
  color: var(--navy);
  border-radius: 22px;
  padding: 18px 20px;
  box-shadow: 0 16px 32px rgba(20, 46, 91, .16);
}
.summary-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .12em;
  font-weight: 700;
}
.event-summary-card strong,
.gathering-card strong {
  display: block;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
  font-weight: 800;
}
.event-summary-card small,
.gathering-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}
.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero-badges span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  font-size: 13px;
  font-weight: 700;
}
.login-required {
  margin: 22px 0 0;
  font-size: 14px;
  color: rgba(255,255,255,.92);
}
.primary-button,
.secondary-button,
.text-button {
  min-height: 56px;
  border-radius: 16px;
  border: 0;
  padding: 0 22px;
  font-weight: 800;
  transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.primary-button:active,
.secondary-button:active,
.text-button:active { transform: scale(.97); }
.primary-button {
  background: var(--cobalt);
  color: #fff;
  box-shadow: 0 4px 0 var(--coral), 0 18px 32px rgba(35, 100, 199, .24);
}
.primary-button:hover { background: var(--cobalt-dark); }
.secondary-button {
  background: #fff;
  color: var(--cobalt);
  border: 1px solid var(--cobalt);
}
.danger-button {
  color: #b54436;
  border-color: #efb4ac;
}
.text-button {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: #fff;
}
.wide { width: 100%; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hero-cta { margin-top: 0; width: min(320px, 100%); }
.place-summary-block { display: flex; flex-direction: column; align-items: flex-start; }
.inline-map-link { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; margin-top: 12px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(35, 100, 199, .18); background: #edf5ff; color: var(--cobalt); font-family: "Plus Jakarta Sans", sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-decoration: none; }
.gathering-map-button { margin-top: 14px; width: 100%; }
.hero-ranking {
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  color: var(--navy);
  box-shadow: 0 16px 32px rgba(20, 46, 91, .16);
}
.hero-ranking .eyebrow { margin-bottom: 0; }
.hero-ranking-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.hero-ranking-head h3 {
  margin: 6px 0 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
}
.ranking-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #edf5ff;
  color: var(--cobalt);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 11px;
  font-weight: 800;
}
.ranking-empty {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}
.ranking-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.ranking-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fbfcfe;
}
.ranking-place {
  color: var(--cobalt);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  font-weight: 800;
}
.ranking-meta { min-width: 0; display: grid; gap: 2px; }
.ranking-meta strong,
.ranking-meta small { overflow-wrap: anywhere; }
.ranking-meta strong { font-size: 14px; }
.ranking-meta small { color: var(--muted); font-size: 12px; }
.ranking-score {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.hero-side-card {
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  border-radius: 28px;
  padding: 24px;
}
.side-eyebrow {
  margin: 0 0 12px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}
.hero-side-card h3 {
  margin: 0;
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.3;
}
.prize-visual-wrap {
  margin-top: 18px;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255,255,255,.12);
  min-height: 240px;
}
.prize-image {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}
.prize-fallback {
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 18px;
  text-align: right;
  color: rgba(255,255,255,.76);
  font-size: 12px;
  font-weight: 700;
}
.gathering-card {
  margin-top: 18px;
}
.gathering-card p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.overview-shell,
.flow-shell,
.entry-shell { padding: 96px 0; }
.overview-shell { background: #fff; }
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 32px;
  align-items: start;
}
.overview-intro {
  min-width: 0;
}
.overview-grid h2,
.section-head h2,
.entry-side h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.14;
  color: var(--navy);
}
.overview-copy {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}
.overview-guidelines-box {
  grid-column: 1 / -1;
  margin-top: 0;
}

.form-consent-box {
  display: grid;
  gap: 12px;
}
.overview-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.overview-points article,
.flow-grid article {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(21, 43, 82, .06);
}
.overview-points strong,
.flow-grid h3 {
  display: block;
  font-size: 20px;
  font-weight: 800;
}
.overview-points span,
.flow-grid p,
.panel-text,
.panel-note,
.complete-note,
.mail-status,
.error-text {
  color: var(--muted);
  line-height: 1.8;
}
.overview-points span { display: block; margin-top: 10px; font-size: 14px; }

.flow-shell { background: linear-gradient(180deg, var(--sky) 0%, #f5f9ff 100%); }
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.flow-step {
  display: inline-block;
  color: var(--cobalt);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
}
.flow-grid h3 { margin: 12px 0 10px; }

.entry-shell { background: #f7f9fc; }
.entry-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.entry-side {
  position: sticky;
  top: 24px;
}
.steps {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.steps span {
  padding: 13px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  color: #8290a4;
  font-size: 13px;
  font-weight: 800;
}
.steps span.active {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
  box-shadow: 0 4px 0 var(--coral);
}
.entry-main { min-width: 0; }
.panel-card { padding: 30px; }
.login-panel,
#reserved-panel,
#confirm-panel,
#complete-panel { max-width: 780px; }
.panel-head h3,
.login-panel h3,
#complete-panel h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.16;
}
.panel-text { margin: 14px 0 0; font-size: 15px; }
.panel-note,
.account-notice,
.reservation-status { margin: 14px 0 0; font-size: 14px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
  margin-top: 22px;
  min-width: 0;
}
.form-grid > *,
.form-grid label,
.toggle-fieldset,
.guidelines-box { min-width: 0; }
.form-grid label span,
.toggle-fieldset legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}
.form-grid em {
  font-style: normal;
  color: var(--coral);
  font-size: 12px;
}
.form-grid label small {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.full-width { grid-column: 1 / -1; }
.segment-control {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  background: #eef4fb;
  padding: 6px;
  border-radius: 16px;
}
.segment-control label { margin: 0; }
.segment-control input { position: absolute; opacity: 0; pointer-events: none; }
.segment-control span {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 800;
}
.segment-control input:checked + span {
  background: var(--cobalt);
  color: #fff;
  box-shadow: 0 4px 0 var(--coral);
}
.guidelines-box {
  padding: 18px;
  border-radius: 18px;
  background: #f7fafe;
  border: 1px solid var(--border);
}
.guidelines-title {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--navy);
  font-weight: 800;
}
.guidelines-box p { margin: 0 0 12px; color: var(--muted); line-height: 1.8; white-space: pre-line; }
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}
.consent-label input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--cobalt);
  flex: none;
}
.line-guide {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 14px;
  padding-left: 28px;
  font-size: 13px;
  color: var(--muted);
}
.line-guide-title {
  color: var(--navy);
  font-weight: 800;
}
.line-guide-link {
  color: var(--cobalt);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.line-guide-note {
  line-height: 1.7;
}
.line-guide-complete {
  justify-content: center;
  padding-left: 0;
  margin-top: 18px;
}
.actions { margin-top: 22px; }
.stacked-actions { display: grid; gap: 14px; }
.confirmation-list {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--border);
}
.confirmation-list dt,
.confirmation-list dd {
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.confirmation-list dt { font-weight: 700; }
.confirmation-list dd { font-weight: 600; white-space: pre-line; }
.status-chip {
  width: fit-content;
  margin: 22px auto 0;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #93b7f0;
  color: var(--cobalt);
  font-weight: 800;
}
.error-text { margin-top: 14px; color: #c24a3d; }
.reservation-status { color: var(--muted); line-height: 1.8; }
.ticket-card {
  margin-top: 24px;
  padding: 8px 0;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--border);
}
.ticket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
}
.ticket-row + .ticket-row { border-top: 1px dashed #cfd9e6; }
.ticket-row span { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .08em; }
.ticket-row strong { font-size: clamp(20px, 3vw, 32px); font-weight: 800; text-align: right; white-space: pre-line; }
#reception-number { color: var(--cobalt); font-size: clamp(28px, 4vw, 44px); }
.complete-note { margin-top: 18px; }
.survey-field {
  display: grid;
  gap: 10px;
}
.survey-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 700;
}
.survey-head em {
  font-style: normal;
  color: var(--coral);
  font-size: 12px;
}
.survey-head small,
.survey-description {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.survey-description {
  margin: 0;
}
.survey-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.survey-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}
.survey-option input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--cobalt);
  flex: none;
}
.mail-status { margin-top: 14px; }
.sponsors-shell {
  padding: 72px 0 40px;
  background: linear-gradient(180deg, #f7f9fc 0%, #eef5fd 100%);
  border-top: 1px solid #dde5f0;
}
.sponsors-inner {
  display: grid;
  gap: 22px;
}
.sponsors-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.16;
}
.sponsors-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.sponsor-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(21, 43, 82, .06);
}
.sponsor-card strong {
  font-size: 14px;
  line-height: 1.7;
}
.sponsor-logo-wrap {
  min-height: 92px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #fbfcfe;
  border: 1px solid var(--border);
  padding: 12px;
}
.sponsor-logo {
  max-width: 100%;
  max-height: 66px;
  object-fit: contain;
}
.sponsor-logo-fallback {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.site-footer {
  border-top: 1px solid #dde5f0;
  background: #fff;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 960px) {
  .hero-content,
  .overview-grid,
  .entry-grid,
  .flow-grid,
  .overview-points,
  .event-summary-card,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-shell { min-height: auto; }
  .hero-content { padding-top: 48px; }
  .hero-copy h1 { max-width: none; }
  .sponsors-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry-side { position: static; }
  .hero-ranking-head {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1160px); }
  .hero-inner { padding: 20px 0 56px; }
  .hero-header { flex-direction: column; align-items: flex-start; }
  .hero-header-right { width: 100%; align-items: stretch; justify-content: flex-start; }
  .account-chip { width: 100%; border-radius: 20px; }
  #user-email { flex: 1 1 180px; }
  .hero-content { gap: 24px; padding-top: 36px; }
  .hero-copy h1 { font-size: 28px; white-space: normal; }
  .hero-copy h2 { font-size: 44px; }
  .festival-subtitle { font-size: 18px; }
  .hero-announcement { font-size: 15px; }
  .hero-ranking { padding: 18px 16px; }
  .ranking-item { grid-template-columns: 56px minmax(0, 1fr); }
  .ranking-score { grid-column: 2; justify-self: end; font-size: 18px; }
  .line-guide { padding-left: 0; font-size: 12px; }
  .survey-checkboxes { grid-template-columns: 1fr; }
  .hero-side-card,
  .panel-card,
  .state-card { padding: 22px; border-radius: 20px; }
  .overview-shell,
  .flow-shell,
  .entry-shell { padding: 64px 0; }
  .steps span { font-size: 12px; }
  .confirmation-list { grid-template-columns: 1fr; }
  .confirmation-list dt { padding-bottom: 6px; border-bottom: 0; }
  .confirmation-list dd { padding-top: 0; }
  .ticket-row { flex-direction: column; align-items: flex-start; }
  .ticket-row strong { text-align: left; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .hero-actions { flex-direction: column; }
  .hero-cta,
  .hero-map-button,
  .gathering-map-button { width: 100%; }
  .sponsors-list { grid-template-columns: 1fr; }
}

.reserved-actions { margin-top: 22px; }


#checkbox-survey-options.hidden,
#text-survey-textarea.hidden { display: none !important; }
