:root {
  --bg: #DCD8CE;
  --surface: #EAE6DC;
  --surface-alt: #D4CFC4;
  --text: #1A1A20;
  --text-muted: #5A5A66;
  --border: rgba(26, 26, 32, 0.14);
  --primary: #FF5E1A;
  --primary-dark: #D9480F;
  --primary-soft: rgba(255, 199, 0, 0.22);
  --accent: #FF5E1A;
  --accent-soft: rgba(255, 94, 26, 0.13);
  --kakao: #fee500;
  --kakao-text: #191919;
  --success: #059669;
  --success-soft: #ecfdf5;
  --warning: #B86E00;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 6px 20px rgba(24, 22, 16, 0.08);
  --shadow-float: 0 12px 32px rgba(255, 94, 26, 0.24);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 85% 360px at 50% 0%, rgba(255, 199, 0, 0.1), transparent 70%),
    radial-gradient(rgba(26, 26, 32, 0.08) 1px, transparent 1px);
  background-size: 100% 100%, 22px 22px;
  background-repeat: no-repeat, repeat;
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

.app-shell {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  padding-bottom: 110px;
}

/* Header */
.top-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.brand-badge {
  background: var(--text);
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  letter-spacing: -0.02em;
}

.brand-divider {
  color: #d1d5db;
}

.brand-tool {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.text-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
}

.text-btn:hover {
  background: #e5e7eb;
  color: var(--text);
}

/* Shared Banner */
.shared-banner {
  margin: 12px 16px 0;
  padding: 12px 14px;
  background: var(--primary-soft);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
}

.shared-new-btn {
  border: none;
  background: var(--primary);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* Main Content */
.main-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-intro {
  padding: 6px 2px 4px;
}

.hero-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.hero-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-sub {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
}

.count-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 3px 9px;
  border-radius: 999px;
}

.amount-badge {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Presets & Member Input */
.preset-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.preset-btn {
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.preset-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.member-input-row {
  display: flex;
  gap: 8px;
}

.text-input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease;
}

.text-input:focus {
  border-color: var(--primary);
}

.primary-sm-btn {
  height: 42px;
  padding: 0 16px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--text);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.helper-text {
  margin: 8px 0 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.member-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface-alt);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.member-chip.is-organizer {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #92400e;
}

.chip-remove {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-muted);
  font-size: 11px;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.chip-remove:hover {
  background: #ef4444;
  color: #fff;
}

/* Rounds */
.rounds-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.round-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  background: var(--surface-alt);
}

.round-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.round-label-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.round-badge {
  background: var(--text);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.round-name-input {
  border: none;
  border-bottom: 1px dashed #cbd5e1;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  width: 100%;
  padding: 2px 4px;
  outline: none;
  font-family: inherit;
}

.round-name-input:focus {
  border-bottom-color: var(--primary);
}

.round-delete-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}

.round-delete-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}

.amount-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.amount-input {
  width: 100%;
  height: 44px;
  padding: 0 36px 0 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 18px;
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
  outline: none;
  font-family: inherit;
}

.amount-input:focus {
  border-color: var(--primary);
}

.currency-unit {
  position: absolute;
  right: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  pointer-events: none;
}

.quick-add-row {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.quick-btn {
  flex: 1;
  height: 32px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.quick-btn:active {
  transform: scale(0.97);
}

.quick-btn.clear-btn {
  color: var(--text-muted);
  flex: 0.7;
}

.attendees-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.attendees-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.attendee-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  border: 1.5px solid var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.attendee-pill.is-absent {
  border-color: var(--border);
  background: #f1f5f9;
  color: #94a3b8;
  text-decoration: line-through;
}

.attendee-name-btn {
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0 2px;
  cursor: pointer;
}

.drink-toggle-btn {
  border: none;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text);
}

.drink-toggle-btn.no-alcohol {
  background: #fef3c7;
  color: #b45309;
}

.add-round-btn {
  margin-top: 12px;
  width: 100%;
  padding: 12px;
  border: 1.5px dashed #93c5fd;
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.add-round-hint {
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
}

/* Options */
.option-block {
  margin-bottom: 14px;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.optional-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-alt);
  padding: 2px 6px;
  border-radius: 4px;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--surface-alt);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.seg-btn {
  border: none;
  background: transparent;
  padding: 9px 6px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}

.seg-btn.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mode-card {
  border: 1.5px solid var(--border);
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all 0.15s ease;
}

.mode-card.active {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.mode-emoji {
  font-size: 20px;
  margin-bottom: 2px;
}

.mode-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.mode-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.bonus-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: #fffbeb;
  border: 1px solid #fde68a;
  cursor: pointer;
  margin-bottom: 14px;
}

.bonus-toggle-text {
  display: flex;
  flex-direction: column;
}

.bonus-title {
  font-size: 13px;
  font-weight: 800;
  color: #92400e;
}

.bonus-desc {
  font-size: 11px;
  color: #b45309;
}

.toggle-checkbox {
  display: none;
}

.toggle-switch {
  width: 44px;
  height: 24px;
  background: #d1d5db;
  border-radius: 999px;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.toggle-checkbox:checked + .toggle-switch {
  background: var(--warning);
}

.toggle-checkbox:checked + .toggle-switch::after {
  transform: translateX(20px);
}

.account-block {
  margin-bottom: 0;
}

/* Sticky Bottom CTA */
.sticky-cta-wrap {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 10px 16px 14px;
  z-index: 25;
}

.live-summary-strip {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.live-remainder {
  color: var(--accent);
}

.cta-btn {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-float);
  transition: transform 0.12s ease;
}

.cta-btn:active {
  transform: scale(0.985);
}

/* Receipt View */
.receipt-view {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.receipt-actions-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-btn,
.reroll-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.reroll-btn {
  border-color: #fdba74;
  background: #fff7ed;
  color: #c2410c;
}

/* Thermal Receipt Paper */
.receipt-paper {
  position: relative;
  filter: drop-shadow(0 10px 24px rgba(15, 23, 42, 0.1));
}

.receipt-teeth-top,
.receipt-teeth-bottom {
  height: 10px;
  width: 100%;
  background-size: 16px 10px;
  background-repeat: repeat-x;
}

.receipt-teeth-top {
  background-image: linear-gradient(135deg, transparent 50%, #ffffff 50%),
    linear-gradient(225deg, transparent 50%, #ffffff 50%);
  background-position: top left;
}

.receipt-teeth-bottom {
  background-image: linear-gradient(45deg, transparent 50%, #ffffff 50%),
    linear-gradient(315deg, transparent 50%, #ffffff 50%);
  background-position: bottom left;
}

.receipt-body {
  background: #ffffff;
  padding: 18px 20px;
}

.receipt-head {
  position: relative;
  text-align: center;
}

.receipt-brand {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.receipt-title {
  margin: 4px 0 2px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.receipt-date {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.receipt-stamp {
  position: absolute;
  top: 2px;
  right: 0;
  border: 2.5px solid #ef4444;
  color: #ef4444;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 6px;
  border-radius: 6px;
  transform: rotate(-10deg);
  opacity: 0.85;
  animation: stampPop 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes stampPop {
  0% {
    transform: scale(1.9) rotate(-18deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(-10deg);
    opacity: 0.85;
  }
}

.receipt-divider-dashed {
  border-top: 1.5px dashed #cbd5e1;
  margin: 14px 0;
}

.receipt-total-box {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.receipt-total-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}

.receipt-total-value {
  font-size: 24px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.receipt-account-box {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--surface-alt);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}

.account-label {
  color: var(--text-muted);
  font-weight: 700;
}

.account-value {
  font-weight: 800;
  color: var(--text);
  word-break: break-all;
}

.receipt-sec-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
}

.receipt-list,
.receipt-members-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.receipt-round-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.receipt-round-meta {
  color: var(--text-muted);
  font-size: 12px;
}

.receipt-member-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-alt);
}

.receipt-member-row.is-winner {
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.member-row-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.member-row-name {
  font-size: 14px;
  font-weight: 800;
}

.member-row-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.member-row-amount {
  font-size: 16px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.receipt-winners {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.winner-banner {
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fdba74;
  font-size: 13px;
  font-weight: 800;
  color: #9a3412;
  text-align: center;
}

.receipt-barcode-wrap {
  text-align: center;
  padding-top: 4px;
}

.barcode-bars {
  height: 32px;
  width: 72%;
  margin: 0 auto 6px;
  background: repeating-linear-gradient(
    90deg,
    #111827 0 2px,
    transparent 2px 4px,
    #111827 4px 7px,
    transparent 7px 9px,
    #111827 9px 10px,
    transparent 10px 14px
  );
  opacity: 0.78;
}

.barcode-caption {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Share Buttons */
.share-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 8px;
}

.share-btn {
  height: 48px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.kakao-btn {
  background: var(--kakao);
  color: var(--kakao-text);
}

.link-btn {
  background: var(--text);
  color: #fff;
}

/* AdSense Slot */
.ad-slot {
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ad-badge {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  border: 1px solid #cbd5e1;
  padding: 2px 5px;
  border-radius: 4px;
}

.ad-placeholder-text {
  font-size: 12px;
  color: #64748b;
}

/* Cross Promo */
.cross-promo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
}

.cross-promo-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
}

.promo-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.promo-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-alt);
  text-decoration: none;
  color: var(--text);
  border: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.promo-card:hover {
  border-color: var(--primary);
}

.promo-emoji {
  font-size: 22px;
}

.promo-info {
  flex: 1;
}

.promo-name {
  font-size: 13px;
  font-weight: 800;
}

.promo-desc {
  font-size: 11px;
  color: var(--text-muted);
}

.promo-arrow {
  font-weight: 800;
  color: var(--text-muted);
}

/* Roulette Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 60;
}

.modal-card {
  width: 100%;
  max-width: 390px;
  background: var(--surface);
  border-radius: 24px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.modal-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
}

.modal-title {
  margin: 8px 0 4px;
  font-size: 20px;
  font-weight: 900;
}

.modal-sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-muted);
}

.wheel-stage {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto 14px;
}

.wheel-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  color: #ef4444;
  z-index: 5;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

#rouletteCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.roulette-result {
  background: #fffbeb;
  border: 1.5px solid #fcd34d;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 14px;
  animation: popIn 0.3s ease;
}

@keyframes popIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.winner-confetti {
  font-size: 12px;
  font-weight: 800;
  color: #b45309;
}

.winner-name {
  font-size: 24px;
  font-weight: 900;
  color: var(--text);
  margin: 2px 0;
}

.winner-detail {
  font-size: 13px;
  font-weight: 700;
  color: #d97706;
}

.modal-btn {
  height: 46px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  z-index: 80;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Header Brand Link & SEO Section */
.brand-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.seo-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow-card);
  margin-top: 6px;
}

.seo-heading {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.seo-lead {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.seo-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.seo-item {
  background: var(--surface-alt);
  border-radius: var(--radius-md);
  padding: 12px;
}

.seo-item h3 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.seo-item p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
}

.seo-faq {
  border-top: 1px solid var(--border);
  padding: 10px 0;
}

.seo-faq summary {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.seo-faq p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
}

.seo-subhead {
  margin: 14px 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

.seo-table-wrap {
  overflow-x: auto;
  margin-bottom: 12px;
}

.seo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.seo-table th,
.seo-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

.seo-table th {
  background: var(--surface-alt);
  font-weight: 800;
  color: var(--text);
}

.seo-table td:last-child {
  font-weight: 700;
  color: var(--primary-dark);
}

.site-footer {
  margin-top: 8px;
  padding: 14px 4px 6px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.footer-links a,
.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--primary);
  text-decoration: underline;
}
