:root {
  --bg-deep: #1a0a05;
  --bg-warm: #2a1410;
  --accent: #d97706;
  --accent-2: #fbbf24;
  --cream: #fef3c7;
  --danger: #dc2626;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #ffe6c8;
  color: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
               "Malgun Gothic", "Segoe UI", system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
  overscroll-behavior: none;
}

#app {
  position: fixed;
  inset: 0;
  /* Push content away from notch / home-bar / rounded corners. */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #2a140f;
}

#app::before {
  content: "";
  position: absolute;
  inset: -24px;
  background:
    linear-gradient(rgba(42, 15, 8, 0.18), rgba(42, 15, 8, 0.30)),
    url("assets/bg_kitchen_1.png") center / cover no-repeat;
  filter: blur(18px) saturate(1.05);
  transform: scale(1.08);
  opacity: 0.72;
  pointer-events: none;
}

#stage {
  position: relative;
  z-index: 1;
  /*
   * Fill the content area that #app exposes after safe-area padding.
   * Avoid calc(100vh - ...) — on iOS Safari `vh` includes the browser chrome,
   * causing the canvas to overflow and clip at the top.
   */
  height: 100%;
  width: auto;
  max-width: 100%;
  aspect-ratio: 400 / 720;
}

/* Narrow viewports: constrain by width instead of height. */
@media (max-aspect-ratio: 400/720) {
  #stage { width: 100%; height: auto; }
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff6e9;
  box-shadow: 0 0 60px rgba(150, 90, 50, 0.4), 0 0 0 1px rgba(217, 119, 6, 0.25);
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 5, 2, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10;
  animation: fadeIn 240ms ease-out;
}

.overlay.hidden { display: none; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #461e10 0%, #260f09 100%);
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 24px 22px 22px;
  text-align: center;
  width: 86%;
  max-width: 320px;
  box-shadow:
    0 14px 44px rgba(0,0,0,0.65),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.card::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 140px;
  background: radial-gradient(ellipse at center, rgba(251,191,36,0.22), rgba(251,191,36,0));
  pointer-events: none;
}

.card > * {
  position: relative;
  z-index: 1;
}

.ready-mascot {
  position: relative;
  width: 116px;
  height: 100px;
  object-fit: contain;
  display: block;
  margin: -4px auto 16px;
  transform: scale(1.35);
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.35));
}

.logo-tag {
  display: inline-block;
  background: var(--cream);
  color: #8b1a1a;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  border: 1px solid #92400e;
}

h1 {
  font-size: 26px;
  margin-bottom: 14px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--accent-2);
  letter-spacing: -0.5px;
}

.accent {
  color: var(--accent-2);
  font-size: 36px;
  display: inline-block;
  text-shadow: 0 2px 0 var(--accent), 0 4px 12px rgba(217,119,6,0.4);
}

.hint {
  font-size: 13px;
  line-height: 1.6;
  margin: 6px 0 10px;
  color: rgba(254, 243, 199, 0.85);
}

.hl { color: var(--accent-2); font-weight: 700; }

.item-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.item-strip span {
  min-width: 0;
  padding: 6px 4px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 8px;
  background: rgba(0,0,0,0.23);
  color: rgba(254, 243, 199, 0.9);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

button {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  border: none;
  color: #1a0a05;
  font-weight: 800;
  font-size: 18px;
  padding: 13px 32px;
  border-radius: 12px;
  margin: 18px 0 8px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 0 #92400e, 0 6px 14px rgba(0,0,0,0.4);
  transition: transform 80ms ease, box-shadow 80ms ease;
  letter-spacing: 0.5px;
}

button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #92400e, 0 4px 8px rgba(0,0,0,0.4);
}

button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.score-row {
  display: flex;
  gap: 10px;
  margin: 12px 0 14px;
}

.score-box {
  flex: 1;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: 10px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.score-box .lbl {
  font-size: 10px;
  letter-spacing: 1.5px;
  opacity: 0.7;
}

.score-box .val {
  font-size: 26px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.best, .muted {
  font-size: 12px;
  opacity: 0.75;
  margin-top: 6px;
}

.best b, .muted b {
  color: var(--accent-2);
  font-weight: 700;
}

#btn-settings {
  position: absolute;
  top: 56px;
  right: 8px;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(217, 119, 6, 0.45);
  background: rgba(10, 5, 2, 0.55);
  color: var(--cream);
  font-size: 14px;
  line-height: 1;
  border-radius: 999px;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
}

#btn-settings:active {
  transform: translateY(1px);
}

#btn-settings.overlay-open {
  opacity: 0;
  pointer-events: none;
}

.store-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 12px;
  color: rgba(254, 243, 199, 0.85);
}

.store-row.hidden { display: none; }

.store-label {
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent-2);
}

#store-select {
  background: rgba(0, 0, 0, 0.32);
  color: var(--cream);
  border: 1px solid rgba(217, 119, 6, 0.45);
  border-radius: 8px;
  padding: 6px 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  min-width: 0;
  max-width: 170px;
  cursor: pointer;
}

.store-display {
  display: none;
  font-weight: 800;
  color: var(--cream);
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(217, 119, 6, 0.45);
  border-radius: 8px;
}

.store-display.show { display: inline-block; }

.store-change {
  /* override the global big-button defaults */
  margin: 0 !important;
  padding: 4px 8px !important;
  font-size: 11px !important;
  background: transparent !important;
  color: rgba(254, 243, 199, 0.75) !important;
  border: 1px solid rgba(217, 119, 6, 0.4) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px;
}

.store-change.hidden { display: none; }

.store-tag {
  font-size: 11px !important;
  margin-top: 2px !important;
  color: rgba(254, 243, 199, 0.55) !important;
}

.rank-tag {
  font-size: 12px !important;
  margin-top: 6px !important;
  color: var(--accent-2) !important;
  font-weight: 700;
}
.rank-tag.hidden { display: none; }

.auth-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 12px;
  color: rgba(254, 243, 199, 0.85);
}

#auth-display { font-weight: 700; }
#auth-display .nick { color: var(--accent-2); }

.auth-action {
  margin: 0 !important;
  padding: 5px 12px !important;
  font-size: 12px !important;
  background: transparent !important;
  color: var(--accent-2) !important;
  border: 1px solid rgba(217, 119, 6, 0.55) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-weight: 700 !important;
}

.auth-action:hover { background: rgba(254, 243, 199, 0.08) !important; }

.wallet-button {
  margin: 8px auto 0 !important;
  padding: 6px 14px !important;
  font-size: 12px !important;
  background: rgba(254, 243, 199, 0.12) !important;
  color: var(--cream) !important;
  border: 1px solid rgba(217, 119, 6, 0.55) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}
.wallet-button.hidden { display: none; }

.wallet-card { text-align: left; }
.wallet-card h2 { text-align: center; margin-bottom: 8px; }
.referral-code-line {
  text-align: center;
  opacity: 1 !important;
  color: rgba(254, 243, 199, 0.82);
}
.coupon-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
  margin: 12px 0;
}
.coupon-card {
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.28);
}
.coupon-card .coupon-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-2);
}
.coupon-card .coupon-meta {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(254, 243, 199, 0.78);
}
.coupon-card .coupon-code {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.coupon-card .coupon-hint {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(254, 243, 199, 0.6);
}
.coupon-card .coupon-redeem {
  width: 100%;
  margin: 10px 0 0 !important;
  padding: 9px 12px !important;
  font-size: 13px !important;
}
.coupon-empty {
  padding: 18px 8px;
  text-align: center;
  font-size: 13px;
  color: rgba(254, 243, 199, 0.75);
}

/* ── Register modal ─────────────────────────────────────────────── */
.register-card { text-align: left; }
.register-card h2 { text-align: center; margin-bottom: 4px; }
.register-card .muted { text-align: center; margin-bottom: 14px; }

.reg-form { display: flex; flex-direction: column; gap: 10px; }

.reg-field { display: flex; flex-direction: column; gap: 4px; }
.reg-label {
  font-size: 11px;
  letter-spacing: 0.3px;
  font-weight: 700;
  color: var(--accent-2);
}
.reg-label small { opacity: 0.6; font-weight: 500; }
.reg-form input[type="text"],
.reg-form input[type="tel"],
.reg-form input[type="email"] {
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(217, 119, 6, 0.45);
  border-radius: 8px;
  color: var(--cream);
  padding: 9px 10px;
  font-family: inherit;
  font-size: 14px;
}
.reg-form input:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.25);
}

.reg-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(254, 243, 199, 0.9);
  cursor: pointer;
}
.reg-check input {
  margin-top: 2px;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--accent-2);
  cursor: pointer;
}
.reg-check b { color: var(--accent-2); }
.reg-link { color: var(--accent-2); text-decoration: underline; }

.reg-error {
  margin: 4px 0 0;
  font-size: 12px;
  color: #fca5a5;
  text-align: center;
}
.reg-error.hidden { display: none; }

/* ── Leaderboard overlay ────────────────────────────────────────── */
.lb-card { text-align: left; }
.lb-card h2 { text-align: center; margin-bottom: 12px; }

.lb-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.lb-filter select {
  flex: 1;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(217, 119, 6, 0.45);
  border-radius: 8px;
  color: var(--cream);
  padding: 6px 8px;
  font-family: inherit;
  font-size: 12px;
}

.lb-period-btns {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}
.lb-period-btn {
  flex: 1;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 8px;
  padding: 7px 4px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(245, 245, 230, 0.45);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  white-space: nowrap;
}
.lb-period-btn.active {
  background: rgba(217, 119, 6, 0.28);
  border-color: rgba(217, 119, 6, 0.65);
  color: var(--cream);
}

.lb-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}

.lb-list li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(217, 119, 6, 0.12);
  font-size: 13px;
}
.lb-list li:last-child { border-bottom: none; }
.lb-list li .rank   { color: var(--accent-2); font-weight: 800; text-align: right; }
.lb-list li .nick   { font-weight: 700; }
.lb-list li .nick small { display: block; opacity: 0.55; font-size: 10px; font-weight: 500; }
.lb-list li .score  { font-weight: 800; font-variant-numeric: tabular-nums; }

.lb-empty { padding: 16px; text-align: center; opacity: 0.7; font-size: 13px; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.btn-row button {
  margin: 14px 0 4px;
  flex-shrink: 1;
}

.btn-secondary {
  background: rgba(254, 243, 199, 0.12) !important;
  color: var(--cream) !important;
  border: 1px solid rgba(217, 119, 6, 0.55) !important;
  box-shadow: none !important;
  padding: 12px 18px !important;
  font-size: 15px !important;
}

.btn-secondary:active {
  background: rgba(254, 243, 199, 0.22) !important;
}

.share-toast {
  margin-top: 4px;
  font-size: 12px;
  color: var(--accent-2);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.share-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.share-toast.hidden {
  visibility: hidden;
}

/* Secondary modals must stack above primary overlays (same z-index 10 = DOM order wins) */
#overlay-leaderboard,
#overlay-register { z-index: 15; }

/* Hover states (desktop only) */
@media (hover: hover) {
  button:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
  }
  .btn-secondary:hover {
    background: rgba(254, 243, 199, 0.22) !important;
  }
}

/* Leaderboard retry button */
.lb-retry {
  display: block;
  margin: 10px auto 0 !important;
  padding: 8px 20px !important;
  font-size: 13px !important;
}

/* Pause stats */
.pause-stats {
  margin-top: 8px !important;
  font-size: 14px !important;
  color: var(--accent-2) !important;
  opacity: 1 !important;
  font-weight: 700;
}

.setting-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 4px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(217, 119, 6, 0.38);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  color: rgba(254, 243, 199, 0.92);
  font-size: 15px;
  font-weight: 800;
}

.toggle-btn {
  width: 54px;
  height: 30px;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(251, 191, 36, 0.55) !important;
  background: rgba(251, 191, 36, 0.88) !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.toggle-btn span {
  width: 24px;
  height: 24px;
  margin: 2px;
  border-radius: 999px;
  background: #1a0a05;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.toggle-btn.off {
  justify-content: flex-start;
  border-color: rgba(254, 243, 199, 0.28) !important;
  background: rgba(254, 243, 199, 0.16) !important;
}

.toggle-btn.off span {
  background: rgba(254, 243, 199, 0.68);
}

.coupon-kind {
  font-size: 12px;
  font-weight: 700;
  color: #fbbf24;
  margin: 2px 0 6px;
}
.event-notice {
  background: rgba(251,191,36,0.12);
  border: 1px solid rgba(251,191,36,0.35);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  color: #fde68a;
}
.events-body { display: flex; flex-direction: column; gap: 16px; text-align: left; width: 100%; }
.event-section h3 { margin: 0 0 6px; font-size: 15px; color: #f0e6d2; }
.event-prizes { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-direction: column; gap: 4px; }
.event-prizes li { font-size: 14px; color: #f0e6d2; }
.event-prizes b { color: #fbbf24; margin-right: 6px; }
.event-refcode { font-size: 14px; color: #fde68a; }

/* ── Event card feed (E.4 / E.5) ────────────────────────────────── */

/* Events modal card: flex column so body can scroll */
.events-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  max-height: 78vh;
  overflow: hidden;
}
.events-card h2 { text-align: center; }

/* Override old flat rule — new scrollable version */
.events-body {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  width: 100%;
  padding-right: 2px;
}

/* Pinned notice pill */
.evt-notice {
  background: rgba(251,191,36,0.14);
  border: 1px solid rgba(251,191,36,0.40);
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 12px;
  color: #fde68a;
  text-align: center;
}

/* Card container */
.evt-card {
  border: 1px solid rgba(217,119,6,0.30);
  border-radius: 12px;
  background: rgba(0,0,0,0.28);
  overflow: hidden;
  width: 100%;
  flex-shrink: 0; /* events-body는 flex column — 카드가 줄어들어 body가 잘리지 않게 */
}
.evt-notice { flex-shrink: 0; }

/* Banner strip — 96 px, radial glow + gradient base */
.evt-banner {
  position: relative;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(251,191,36,0.30), transparent 65%),
    linear-gradient(135deg, #3d1e0f 0%, #1a0a05 100%);
}
.evt-banner.kind-ranking {
  background:
    radial-gradient(ellipse at 50% 120%, rgba(251,191,36,0.45), transparent 65%),
    linear-gradient(135deg, #4a2008 0%, #2a1005 100%);
}
.evt-banner.kind-referral {
  background:
    radial-gradient(ellipse at 50% 120%, rgba(48,209,88,0.28), transparent 65%),
    linear-gradient(135deg, #0d3020 0%, #071810 100%);
}
.evt-banner.kind-custom {
  background:
    radial-gradient(ellipse at 50% 120%, rgba(167,139,250,0.28), transparent 65%),
    linear-gradient(135deg, #1e0d30 0%, #0d0718 100%);
}

/* Big icon */
.evt-ic {
  font-size: 42px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.50));
}

/* Status pill — top-left */
.evt-pill {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}
.evt-pill.live {
  background: rgba(48,209,88,0.22);
  color: #30d158;
  border: 1px solid rgba(48,209,88,0.45);
}
.evt-pill.soon {
  background: rgba(251,191,36,0.20);
  color: #fbbf24;
  border: 1px solid rgba(251,191,36,0.45);
}

/* D-day chip — top-right */
.evt-dday {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(0,0,0,0.45);
  color: #fbbf24;
  border: 1px solid rgba(251,191,36,0.30);
}

/* Card body */
.evt-card-body {
  padding: 12px 14px 14px;
}

.evt-title {
  font-size: 15px;
  font-weight: 800;
  color: #f0e6d2;
  margin-bottom: 4px;
}

.evt-period {
  font-size: 11px;
  color: rgba(254,243,199,0.60);
  margin-bottom: 6px;
}

.evt-body {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(240,230,210,0.82);
  margin-bottom: 8px;
  white-space: pre-wrap;
}

/* Prize list (ranking cards) */
.evt-prizes {
  list-style: none;
  padding: 0;
  margin: 6px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.evt-prizes li { font-size: 13px; color: #f0e6d2; }
.evt-prizes b  { color: #fbbf24; margin-right: 6px; }

/* Reward chip */
.evt-chip {
  display: inline-block;
  background: rgba(251,191,36,0.16);
  border: 1px solid rgba(251,191,36,0.40);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  color: #fde68a;
  font-weight: 700;
  margin: 4px 0;
}

/* Referral code row */
.evt-refcode {
  background: rgba(0,0,0,0.30);
  border: 1px solid rgba(217,119,6,0.30);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 13px;
  color: rgba(254,243,199,0.85);
  margin: 8px 0 4px;
}
.evt-refcode b { color: #fbbf24; letter-spacing: 1px; }

/* CTA button — amber gradient (primary) or outlined ghost (share) */
.evt-cta {
  display: block;
  width: 100%;
  margin: 10px 0 0 !important;
  padding: 10px 16px !important;
  font-size: 14px !important;
  background: linear-gradient(180deg, #fbbf24, #d97706) !important;
  color: #1a0a05 !important;
  border: none !important;
  border-radius: 10px !important;
  box-shadow: 0 3px 0 #92400e, 0 4px 10px rgba(0,0,0,0.35) !important;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
}
.evt-cta.ghost {
  background: transparent !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(251,191,36,0.55) !important;
  box-shadow: none !important;
}

/* Badge on the events ready button */
#btn-events-ready { position: relative; }
.evt-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  pointer-events: none;
  line-height: 1;
}
.evt-badge.hidden { display: none; }
