.event-simple-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 14px;
  border-bottom: 1px solid var(--stroke, #e2e8f0);
  background: #fff;
}
.event-back-link {
  color: #334155;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.event-simple-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}
.event-attendance-section,
.event-king-section {
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}
.event-attendance-info-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}
.event-attendance-lead {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.55;
  color: #0f172a;
}
.event-attendance-meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #475569;
}
.event-attendance-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}
.event-day-cell {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #475569;
}
.event-day-cell.is-checked {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.event-day-cell.is-today {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}
.event-day-cell.is-future {
  opacity: 0.45;
}
.event-attendance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.event-attendance-status {
  min-height: 1.4em;
  margin: 0;
  font-size: 14px;
  color: #0f172a;
}
.event-attendance-status.is-error {
  color: #b91c1c;
}
.event-attendance-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #0f172a;
  color: #f8fafc;
}
.event-attendance-total__label {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.78;
}
.event-attendance-total__value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #93c5fd;
}
.event-attendance-total__sub {
  font-size: 13px;
  opacity: 0.7;
  margin-left: auto;
}
.event-king-heading {
  margin: 0 0 12px;
  font-size: 20px;
}
.event-king-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
  line-height: 1.6;
  color: #334155;
  font-size: 15px;
}
.event-king-card ul {
  margin: 12px 0;
  padding-left: 1.2em;
}
.event-king-note {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.event-lottery-section {
  padding-bottom: 24px;
}
.event-lottery-ticket-line {
  margin: 10px 0 0;
  font-size: 16px;
  color: #0f172a;
}
.event-lottery-ticket-line strong {
  font-size: 1.15em;
}
.event-lottery-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 18px;
  padding-bottom: 8px;
}
@media (min-width: 480px) {
  .event-lottery-board {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }
}
.event-lottery-card {
  position: relative;
  appearance: none;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  min-height: 52px;
  perspective: 600px;
  -webkit-tap-highlight-color: transparent;
}
.event-lottery-card:disabled {
  cursor: default;
}
.event-lottery-card__inner {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.45s ease;
}
.event-lottery-card.is-flipped .event-lottery-card__inner {
  transform: rotateY(180deg);
}
.event-lottery-card__face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.15;
  text-align: center;
  padding: 4px;
  box-sizing: border-box;
  word-break: keep-all;
}
.event-lottery-card__face--front {
  background: linear-gradient(160deg, #1e3a5f 0%, #0f172a 100%);
  color: #f8fafc;
  border: 1px solid #334155;
}
.event-lottery-card__face--back {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fdba74;
  transform: rotateY(180deg);
  font-size: 11px;
  font-weight: 600;
}
.event-lottery-card.is-opened .event-lottery-card__face--back {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

.event-lottery-reveal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}
.event-lottery-reveal[hidden] {
  display: none !important;
}
.event-lottery-reveal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
}
.event-lottery-reveal__stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: min(280px, 78vw);
}
.event-lottery-reveal-card {
  width: 100%;
  aspect-ratio: 3 / 4;
  perspective: 1200px;
  transform: scale(0.35);
  opacity: 0.85;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}
.event-lottery-reveal.is-grow .event-lottery-reveal-card {
  transform: scale(1);
  opacity: 1;
}
.event-lottery-reveal-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s ease;
}
.event-lottery-reveal.is-flipped .event-lottery-reveal-card__inner {
  transform: rotateY(180deg);
}
.event-lottery-reveal-card__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px;
  box-sizing: border-box;
  padding: 16px;
  text-align: center;
}
.event-lottery-reveal-card__face--front {
  background: linear-gradient(160deg, #1e3a5f 0%, #0f172a 100%);
  color: #f8fafc;
  border: 2px solid #475569;
  font-size: 42px;
  font-weight: 800;
}
.event-lottery-reveal-card__face--back {
  background: linear-gradient(165deg, #fff7ed 0%, #ffedd5 100%);
  color: #9a3412;
  border: 2px solid #fb923c;
  transform: rotateY(180deg);
}
.event-lottery-reveal.is-miss .event-lottery-reveal-card__face--back {
  background: linear-gradient(165deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #475569;
  border-color: #94a3b8;
}
.event-lottery-reveal.is-win .event-lottery-reveal-card__face--back {
  background: linear-gradient(165deg, #fffbeb 0%, #fef3c7 55%, #ffedd5 100%);
  color: #b45309;
  border-color: #f59e0b;
}
.event-lottery-reveal__ball {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.18));
  animation: event-lottery-ball-pop 0.45s ease both;
}
.event-lottery-reveal__ball[hidden] {
  display: none !important;
}
.event-lottery-reveal__text {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  word-break: keep-all;
}
.event-lottery-reveal__close {
  min-width: 140px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.event-lottery-reveal.is-done .event-lottery-reveal__close {
  opacity: 1;
  pointer-events: auto;
}

@keyframes event-lottery-ball-pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.event-lottery-ship {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.event-lottery-ship[hidden] {
  display: none !important;
}
.event-lottery-ship__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.event-lottery-ship__panel {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 22px 20px 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
}
.event-lottery-ship__title {
  margin: 0 0 12px;
  font-size: 18px;
  color: #0f172a;
}
.event-lottery-ship__body {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.65;
  color: #334155;
  word-break: keep-all;
}
.event-lottery-ship__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.event-lottery-ship__actions .button {
  flex: 1 1 auto;
  text-align: center;
}

#lotteryResetBtn[hidden] {
  display: none !important;
}

/* —— 이벤트 안내 페이지 —— */
.event-guide-section {
  max-width: 440px;
  margin: 0 auto;
  padding: 8px 16px 40px;
}
.event-guide-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 28px 22px 26px;
  margin-bottom: 18px;
  color: #f8fafc;
}
.event-guide-hero--attend {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(96, 165, 250, 0.35) 0%, transparent 55%),
    linear-gradient(145deg, #0f172a 0%, #1e3a5f 55%, #1d4ed8 120%);
}
.event-guide-hero--lottery {
  background:
    radial-gradient(110% 90% at 0% 100%, rgba(251, 146, 60, 0.28) 0%, transparent 50%),
    linear-gradient(145deg, #1c1917 0%, #431407 48%, #9a3412 120%);
}
.event-guide-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}
.event-guide-title {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.event-guide-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  opacity: 0.92;
  word-break: keep-all;
}
.event-guide-lead-accent {
  margin: 10px 0 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  word-break: keep-all;
  color: #ffedd5;
}
.event-guide-hero--lottery + .event-guide-panel .event-guide-steps p {
  color: #0f172a;
}
.event-guide-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 18px 8px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.event-guide-panel__heading {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}
.event-guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.event-guide-steps > li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 16px;
}
.event-guide-steps__num {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.event-guide-hero--lottery + .event-guide-panel .event-guide-steps__num {
  background: #9a3412;
}
.event-guide-steps strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  color: #0f172a;
}
.event-guide-steps p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #64748b;
  word-break: keep-all;
}
.event-guide-note {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  margin-bottom: 20px;
}
.event-guide-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  word-break: keep-all;
}
.event-guide-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.event-guide-cta__btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 14px 18px;
  font-size: 16px;
  border-radius: 12px;
}
