@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #060b17;
  --navy-2: #0b1426;
  --panel: rgba(14, 24, 43, 0.86);
  --panel-solid: #101b30;
  --line: rgba(255, 255, 255, 0.1);
  --gold: #d6a84b;
  --gold-light: #f3d68e;
  --gold-dark: #8c6221;
  --red: #ba2034;
  --red-light: #f24a5e;
  --white: #f8fafc;
  --muted: #9eabc0;
  --green: #35c98f;
  --danger: #ff6173;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 12%, rgba(186, 32, 52, 0.2), transparent 32%),
    radial-gradient(circle at 13% 88%, rgba(214, 168, 75, 0.12), transparent 28%),
    linear-gradient(135deg, #050911 0%, #08111f 50%, #04070d 100%);
  font-family: 'Kanit', system-ui, sans-serif;
  line-height: 1.5;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

.site-shell { min-height: 100vh; position: relative; isolation: isolate; }
.site-shell::after {
  content: '';
  position: fixed;
  width: 460px;
  height: 460px;
  right: -240px;
  bottom: -220px;
  border: 1px solid rgba(214, 168, 75, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(214,168,75,.025), 0 0 0 140px rgba(214,168,75,.02);
  z-index: -1;
}

.topbar {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  display: block;
  width: clamp(155px, 17vw, 220px);
  height: auto;
  filter: drop-shadow(0 4px 13px rgba(0, 0, 0, .28));
}
.brand-event-name {
  padding-left: 14px;
  border-left: 1px solid rgba(214, 168, 75, .35);
  color: var(--gold-light);
  font: 600 9px/1.35 'Montserrat', sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0a0e17;
  font: 800 21px/1 'Montserrat', sans-serif;
  background: linear-gradient(145deg, var(--gold-light), var(--gold));
  box-shadow: 0 0 0 5px rgba(214,168,75,.08), 0 8px 30px rgba(214,168,75,.25);
}
.brand-name { display: grid; gap: 1px; }
.brand-name strong { font: 700 15px/1.2 'Montserrat', sans-serif; letter-spacing: .13em; }
.brand-name span { color: var(--gold-light); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }

.mode-badge {
  padding: 8px 13px;
  border: 1px solid rgba(214,168,75,.24);
  border-radius: 999px;
  color: var(--gold-light);
  background: rgba(214,168,75,.07);
  font: 600 10px/1 'Montserrat', sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.page { width: min(1220px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 56px; }
.registration-layout { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(50px, 7vw, 100px); min-height: calc(100vh - 180px); }

.eyebrow { margin: 0 0 16px; color: var(--gold-light); font: 600 12px/1.4 'Montserrat', sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.hero-title { margin: 0; max-width: 680px; font: 800 clamp(44px, 6.2vw, 84px)/.98 'Montserrat', sans-serif; letter-spacing: -.055em; text-transform: uppercase; }
.hero-title .gold { display: block; color: transparent; background: linear-gradient(100deg, var(--gold-light), var(--gold), #fff0bd); background-clip: text; }
.hero-copy { max-width: 570px; margin: 24px 0 0; color: var(--muted); font-size: 17px; font-weight: 300; }

.event-card {
  max-width: 610px;
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 19px;
  align-items: stretch;
  margin-top: 28px;
  padding: 12px;
  border: 1px solid rgba(214, 168, 75, .19);
  border-radius: 19px;
  background: linear-gradient(120deg, rgba(214, 168, 75, .07), rgba(17, 31, 55, .58));
  box-shadow: 0 18px 40px rgba(0, 0, 0, .2);
}
.event-poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 178px;
  border: 1px solid rgba(120, 165, 255, .24);
  border-radius: 12px;
  background: #050a14;
}
.event-poster-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .3s ease, filter .3s ease;
}
.event-poster-link span {
  position: absolute;
  inset: auto 6px 6px;
  padding: 6px 4px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 7px;
  color: #fff;
  background: rgba(3, 8, 17, .82);
  backdrop-filter: blur(8px);
  font: 600 7px/1 'Montserrat', sans-serif;
  letter-spacing: .11em;
  text-align: center;
  text-transform: uppercase;
}
.event-poster-link:hover img { transform: scale(1.035); filter: brightness(1.08); }
.event-details { align-self: center; padding: 5px 7px 5px 0; }
.event-details-kicker { margin: 0 0 5px; color: #7fb5ff; font: 600 8px/1.2 'Montserrat', sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.event-details h2 { margin: 0 0 13px; color: var(--white); font: 700 19px/1.15 'Montserrat', sans-serif; text-transform: uppercase; }
.event-details dl { display: grid; gap: 7px; margin: 0; }
.event-details dl div { display: grid; grid-template-columns: 54px 1fr; gap: 9px; }
.event-details dt { color: var(--gold-light); font: 600 8px/1.45 'Montserrat', sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.event-details dd { margin: 0; color: #e2e8f2; font-size: 12px; line-height: 1.35; }
.event-details sup { color: var(--gold-light); font-size: .65em; }
.event-address { margin: 10px 0 0; color: #8694a9; font-size: 10px; line-height: 1.35; }

.event-points { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.event-point { display: flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: #d7dfeb; background: rgba(255,255,255,.025); font-size: 13px; }
.event-point::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }

.card { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(18,31,55,.94), rgba(7,13,25,.95)); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.form-card { padding: clamp(26px, 4vw, 42px); position: relative; overflow: hidden; }
.form-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, transparent, var(--gold), var(--red), transparent); }
.form-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
.form-heading h2 { margin: 0; font-size: 25px; font-weight: 600; }
.form-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.step-number { flex: 0 0 auto; color: rgba(255,255,255,.12); font: 700 38px/1 'Montserrat', sans-serif; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #dfe6ef; font-size: 13px; font-weight: 400; }
.required { color: var(--red-light); }
.field input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  outline: none;
  background: rgba(3,8,16,.52);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input::placeholder { color: #647086; }
.field input:focus { border-color: rgba(214,168,75,.72); background: rgba(3,8,16,.78); box-shadow: 0 0 0 4px rgba(214,168,75,.09); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 94px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  min-width: 76px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 9px;
  transform: translateY(-50%);
  color: var(--gold-light);
  border: 1px solid rgba(214, 168, 75, .18);
  border-radius: 9px;
  background: rgba(214, 168, 75, .07);
  font-size: 11px;
  transition: background .18s, border-color .18s;
}
.password-toggle:hover { background: rgba(214, 168, 75, .13); border-color: rgba(214, 168, 75, .34); }
.password-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.primary-button, .secondary-button, .danger-button, .ghost-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-weight: 500;
  transition: transform .18s, filter .18s, background .18s, border-color .18s;
}
.primary-button { color: #090d14; background: linear-gradient(135deg, var(--gold-light), var(--gold)); box-shadow: 0 11px 28px rgba(214,168,75,.18); }
.primary-button:hover { transform: translateY(-2px); filter: brightness(1.06); }
.primary-button:disabled { cursor: wait; opacity: .65; transform: none; }
.secondary-button { color: var(--white); background: rgba(255,255,255,.07); border-color: var(--line); }
.secondary-button:hover, .ghost-button:hover { background: rgba(255,255,255,.11); }
.danger-button { color: #ffdbe0; background: rgba(186,32,52,.14); border-color: rgba(242,74,94,.25); }
.danger-button:hover { background: rgba(186,32,52,.24); }
.ghost-button { min-height: 40px; color: var(--muted); background: transparent; border-color: var(--line); }
.submit-button { width: 100%; margin-top: 24px; min-height: 56px; font-size: 16px; }

.privacy-note { display: flex; gap: 10px; margin: 16px 0 0; color: var(--muted); font-size: 11px; }
.privacy-note svg { flex: 0 0 auto; margin-top: 2px; }
.form-message { margin: 14px 0 0; padding: 11px 13px; border-radius: 10px; color: #ffcad1; background: rgba(186,32,52,.12); border: 1px solid rgba(242,74,94,.2); font-size: 13px; }

.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(1,4,9,.82); backdrop-filter: blur(12px); }
.modal-card { width: min(520px, 100%); padding: 42px; text-align: center; border: 1px solid rgba(214,168,75,.3); border-radius: 28px; background: linear-gradient(150deg, #14213a, #070c16 72%); box-shadow: 0 38px 100px rgba(0,0,0,.65); }
.success-icon { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; color: #091510; background: linear-gradient(145deg, #67e7b7, var(--green)); box-shadow: 0 0 0 9px rgba(53,201,143,.09); font-size: 30px; }
.modal-card h2 { margin: 0; font-size: 27px; }
.modal-copy { margin: 8px 0 22px; color: var(--muted); }
.registration-number { margin: 0 0 20px; padding: 18px 16px; border: 1px solid rgba(214,168,75,.28); border-radius: 16px; color: var(--gold-light); background: rgba(214,168,75,.08); font: 800 clamp(29px, 8vw, 42px)/1 'Montserrat', sans-serif; letter-spacing: .05em; }
.remember { margin: 0 0 26px; color: #f5e6b6; font-size: 14px; }

.login-page { min-height: calc(100vh - 92px); display: grid; place-items: center; padding: 50px 20px; }
.login-card { width: min(440px, 100%); padding: 38px; text-align: center; }
.lock-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 18px; color: var(--gold-light); background: rgba(214,168,75,.1); border: 1px solid rgba(214,168,75,.2); }
.login-card h1 { margin: 0; font: 700 25px/1.25 'Montserrat', sans-serif; }
.login-card > p { margin: 9px 0 25px; color: var(--muted); font-size: 14px; }
.login-card .field { text-align: left; }
.login-card .primary-button { width: 100%; margin-top: 16px; }
.login-hint { margin-top: 20px !important; font-size: 11px !important; }

.dashboard-page { padding-top: 34px; }
.dashboard-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 28px; }
.dashboard-header h1 { margin: 3px 0 0; font: 700 clamp(29px, 4vw, 42px)/1.1 'Montserrat', sans-serif; letter-spacing: -.035em; }
.dashboard-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(14,24,43,.72); }
.stat-card span { color: var(--muted); font-size: 12px; }
.stat-card strong { display: block; margin-top: 4px; font: 700 31px/1.2 'Montserrat', sans-serif; }
.stat-card.gold strong { color: var(--gold-light); }
.stat-card.red strong { color: #ff8290; }

.table-card { overflow: hidden; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px; border-bottom: 1px solid var(--line); }
.search-wrap { position: relative; width: min(420px, 100%); }
.search-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-wrap input { width: 100%; height: 44px; padding: 0 15px 0 42px; color: var(--white); border: 1px solid var(--line); border-radius: 11px; outline: 0; background: rgba(0,0,0,.2); }
.search-wrap input:focus { border-color: rgba(214,168,75,.5); }
.table-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
table { width: 100%; min-width: 900px; border-collapse: collapse; }
th { padding: 13px 16px; color: #8997ad; background: rgba(0,0,0,.16); font-size: 11px; font-weight: 500; text-align: left; text-transform: uppercase; letter-spacing: .05em; }
td { padding: 15px 16px; border-top: 1px solid rgba(255,255,255,.055); color: #dbe2ec; font-size: 13px; }
tr:hover td { background: rgba(255,255,255,.018); }
.number-pill { display: inline-flex; padding: 5px 9px; border-radius: 8px; color: var(--gold-light); background: rgba(214,168,75,.09); font: 600 11px/1 'Montserrat', sans-serif; }
.winner-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; color: #a9f5d7; background: rgba(53,201,143,.1); font-size: 10px; }
.row-delete { width: 32px; height: 32px; display: grid; place-items: center; color: #ff8996; border: 1px solid rgba(242,74,94,.16); border-radius: 9px; background: rgba(186,32,52,.08); }
.empty-state { padding: 62px 20px; color: var(--muted); text-align: center; }

.wheel-page { width: min(1450px, calc(100% - 40px)); padding-top: 28px; }
.wheel-header { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 22px; }
.wheel-header h1 { margin: 2px 0 0; font: 700 clamp(28px, 4vw, 42px)/1.1 'Montserrat', sans-serif; }
.wheel-layout { display: grid; grid-template-columns: minmax(500px, 1fr) 380px; gap: 28px; align-items: stretch; }
.wheel-stage { min-height: 670px; display: grid; place-items: center; position: relative; padding: 34px; overflow: hidden; }
.wheel-stage::before { content: ''; position: absolute; width: 68%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(214,168,75,.11), transparent 68%); filter: blur(20px); }
.wheel-wrap { width: min(620px, 90%); aspect-ratio: 1; position: relative; display: grid; place-items: center; }
.wheel-wrap canvas { width: 100%; height: 100%; filter: drop-shadow(0 25px 45px rgba(0,0,0,.5)); }
.wheel-pointer { position: absolute; z-index: 3; top: -2px; left: 50%; width: 0; height: 0; transform: translateX(-50%); border-left: 18px solid transparent; border-right: 18px solid transparent; border-top: 40px solid var(--gold-light); filter: drop-shadow(0 5px 8px rgba(0,0,0,.5)); }
.spin-button { position: absolute; z-index: 2; width: 105px; height: 105px; display: grid; place-items: center; padding: 0; border: 7px solid #07101e; border-radius: 50%; color: #070b13; background: linear-gradient(145deg, #ffedb7, var(--gold)); box-shadow: 0 10px 30px rgba(0,0,0,.5), inset 0 0 0 2px rgba(255,255,255,.35); font: 800 16px/1 'Montserrat', sans-serif; letter-spacing: .08em; }
.spin-button:hover { filter: brightness(1.08); transform: scale(1.035); }
.spin-button:disabled { opacity: .55; transform: none; cursor: not-allowed; }
.wheel-empty { position: absolute; z-index: 4; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); background: rgba(5,10,19,.92); text-align: center; }

.winner-panel { display: flex; flex-direction: column; min-height: 670px; }
.panel-heading { padding: 23px 23px 18px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; font-size: 20px; }
.panel-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.winner-control { padding: 17px 16px; border-bottom: 1px solid var(--line); background: rgba(214, 168, 75, .035); }
.winner-control label { display: block; margin-bottom: 8px; color: var(--gold-light); font: 600 10px/1.2 'Montserrat', sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.winner-control select {
  width: 100%;
  min-height: 45px;
  padding: 0 38px 0 12px;
  color: var(--white);
  border: 1px solid rgba(214, 168, 75, .25);
  border-radius: 11px;
  outline: none;
  background: #0b1628;
  font-size: 12px;
}
.winner-control select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214, 168, 75, .1); }
.winner-control option { color: #111827; background: #fff; }
.winner-control p { margin: 8px 2px 0; color: #77869d; font-size: 9px; line-height: 1.4; }
.winner-control.control-hidden { display: none; }
.queue-add-row { display: grid; grid-template-columns: 1fr 72px; gap: 7px; }
.queue-add-button,
.queue-lock-button {
  border: 1px solid rgba(214, 168, 75, .28);
  border-radius: 10px;
  color: var(--gold-light);
  background: rgba(214, 168, 75, .09);
  font-size: 11px;
  font-weight: 600;
}
.queue-add-button:hover,
.queue-lock-button:hover { background: rgba(214, 168, 75, .16); }
.queue-add-button:disabled,
.queue-lock-button:disabled { cursor: not-allowed; opacity: .42; }
.queue-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 1px 8px; }
.queue-heading strong { color: #dce5f1; font: 600 9px/1.2 'Montserrat', sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.queue-status { padding: 4px 7px; border-radius: 999px; color: #91a0b6; background: rgba(255,255,255,.06); font: 600 7px/1 'Montserrat', sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.queue-status.locked { color: #a9f5d7; background: rgba(53, 201, 143, .12); }
.winner-queue { display: grid; gap: 6px; max-height: 178px; overflow-y: auto; }
.queue-empty { padding: 12px; border: 1px dashed rgba(255,255,255,.12); border-radius: 9px; color: #6f7d93; font-size: 10px; text-align: center; }
.queue-item { display: grid; grid-template-columns: 24px 1fr auto; gap: 7px; align-items: center; padding: 7px; border: 1px solid rgba(255,255,255,.08); border-radius: 9px; background: rgba(3, 8, 16, .3); }
.queue-order { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; color: #101725; background: var(--gold); font: 700 9px/1 'Montserrat', sans-serif; }
.queue-person strong { display: block; overflow: hidden; color: #e4ebf5; font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.queue-person span { display: block; color: var(--gold-light); font: 600 7px/1.3 'Montserrat', sans-serif; }
.queue-actions { display: flex; gap: 3px; }
.queue-actions button { width: 23px; height: 23px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.1); border-radius: 6px; color: #aeb9ca; background: rgba(255,255,255,.04); font-size: 10px; }
.queue-actions button[data-action="remove"] { color: #ff8996; }
.queue-actions button:disabled { cursor: not-allowed; opacity: .25; }
.queue-lock-button { width: 100%; min-height: 38px; margin-top: 8px; }
.queue-lock-button.locked { color: #071510; border-color: transparent; background: linear-gradient(135deg, #67e7b7, var(--green)); }
.winner-list { flex: 1; max-height: 520px; overflow: auto; padding: 12px; }
.winner-item { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; padding: 13px; border-bottom: 1px solid rgba(255,255,255,.06); }
.winner-rank { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--gold-light); background: rgba(214,168,75,.1); font: 700 13px/1 'Montserrat', sans-serif; }
.winner-name strong { display: block; font-size: 14px; font-weight: 500; }
.winner-name span { color: var(--muted); font: 500 10px/1.2 'Montserrat', sans-serif; }
.panel-footer { display: grid; gap: 9px; padding: 16px; border-top: 1px solid var(--line); }
.panel-footer .secondary-button, .panel-footer .danger-button { width: 100%; }

.winner-modal .modal-card { width: min(610px, 100%); padding: 50px 36px; overflow: hidden; position: relative; }
.winner-kicker { margin: 0 0 8px; color: var(--gold-light); font: 600 12px/1 'Montserrat', sans-serif; letter-spacing: .23em; text-transform: uppercase; }
.winner-modal h2 { font-size: clamp(28px, 6vw, 46px); }
.winner-number { margin: 22px 0 11px; color: var(--gold-light); font: 800 clamp(36px, 9vw, 64px)/1 'Montserrat', sans-serif; }
.winner-fullname { margin: 0 0 27px; color: #dce4ef; font-size: 21px; }
.confetti { position: fixed; width: 10px; height: 18px; top: -25px; z-index: 60; animation: fall 3.3s linear forwards; }
@keyframes fall { to { transform: translate3d(var(--drift), 110vh, 0) rotate(820deg); } }

.confirm-modal .modal-card { width: min(460px, 100%); padding: 34px; }
.confirm-modal h2 { font-size: 23px; }
.confirm-modal p { color: var(--muted); }
.modal-actions { display: flex; justify-content: center; gap: 10px; margin-top: 23px; }

.toast { position: fixed; z-index: 80; right: 22px; bottom: 22px; max-width: min(390px, calc(100% - 44px)); padding: 13px 17px; border: 1px solid var(--line); border-radius: 12px; color: var(--white); background: #152139; box-shadow: 0 15px 40px rgba(0,0,0,.4); animation: toast-in .25s ease-out; }
.toast.error { border-color: rgba(242,74,94,.3); background: #2b1420; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } }

.not-found { min-height: 100vh; display: grid; place-items: center; padding: 30px; text-align: center; }
.not-found strong { display: block; color: var(--gold-light); font: 800 90px/1 'Montserrat', sans-serif; }
.not-found h1 { margin: 12px 0 5px; }
.not-found p { margin: 0 0 23px; color: var(--muted); }

@media (max-width: 1000px) {
  .registration-layout { grid-template-columns: 1fr; min-height: auto; }
  .registration-copy { text-align: center; }
  .hero-copy { margin-inline: auto; }
  .event-points { justify-content: center; }
  .wheel-layout { grid-template-columns: 1fr; }
  .winner-panel { min-height: 450px; }
  .wheel-stage { min-height: 610px; }
}

@media (max-width: 720px) {
  .topbar { width: min(100% - 28px, 1220px); min-height: 76px; }
  .brand-logo { width: clamp(130px, 37vw, 165px); }
  .brand-event-name { display: none; }
  .brand-mark { width: 40px; height: 40px; font-size: 18px; }
  .brand-name strong { font-size: 12px; }
  .brand-name span { font-size: 8px; }
  .mode-badge { padding: 7px 9px; font-size: 8px; }
  .page { width: min(100% - 28px, 1220px); padding-top: 42px; }
  .hero-title { font-size: clamp(40px, 14vw, 62px); }
  .hero-copy { font-size: 15px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .modal-card { padding: 32px 22px; }
  .dashboard-header, .wheel-header { align-items: flex-start; flex-direction: column; }
  .dashboard-actions { justify-content: flex-start; width: 100%; }
  .dashboard-actions > * { flex: 1 1 auto; }
  .stats-grid { grid-template-columns: 1fr; }
  .table-toolbar { align-items: stretch; flex-direction: column; }
  .wheel-page { width: min(100% - 20px, 1450px); }
  .wheel-stage { min-height: 490px; padding: 18px; }
  .wheel-wrap { width: 100%; }
  .spin-button { width: 82px; height: 82px; border-width: 5px; font-size: 13px; }
  .wheel-pointer { border-left-width: 14px; border-right-width: 14px; border-top-width: 31px; }
}

@media (max-width: 430px) {
  .event-card { grid-template-columns: 104px 1fr; gap: 13px; padding: 9px; text-align: left; }
  .event-poster-link { min-height: 154px; }
  .event-details h2 { font-size: 15px; }
  .event-details dl div { grid-template-columns: 44px 1fr; gap: 5px; }
  .event-details dt { font-size: 7px; }
  .event-details dd { font-size: 10px; }
  .event-address { font-size: 8px; }
  .event-point { width: 100%; justify-content: center; }
  .form-card { padding: 25px 18px; }
  .form-heading { margin-bottom: 22px; }
  .dashboard-actions .danger-button { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

html:fullscreen body,
html:-webkit-full-screen body { overflow: hidden; }
html:fullscreen .topbar,
html:-webkit-full-screen .topbar { display: none; }
html:fullscreen .wheel-page,
html:-webkit-full-screen .wheel-page {
  width: min(1680px, calc(100% - 28px));
  height: 100vh;
  padding: 18px 0;
}
html:fullscreen .wheel-header,
html:-webkit-full-screen .wheel-header {
  justify-content: center;
  margin-bottom: 10px;
  text-align: center;
}
html:fullscreen .wheel-header .eyebrow,
html:fullscreen .wheel-header .dashboard-actions,
html:-webkit-full-screen .wheel-header .eyebrow,
html:-webkit-full-screen .wheel-header .dashboard-actions { display: none; }
html:fullscreen .wheel-header h1,
html:-webkit-full-screen .wheel-header h1 {
  font-size: clamp(34px, 4.5vw, 64px);
  letter-spacing: .02em;
  text-transform: uppercase;
}
html:fullscreen .wheel-layout,
html:-webkit-full-screen .wheel-layout {
  grid-template-columns: 1fr;
  height: calc(100vh - 90px);
}
html:fullscreen .winner-panel,
html:-webkit-full-screen .winner-panel { display: none; }
html:fullscreen .wheel-stage,
html:-webkit-full-screen .wheel-stage,
html:-webkit-full-screen .wheel-stage { min-height: 0; height: 100%; }
html:fullscreen .wheel-wrap,
html:-webkit-full-screen .wheel-wrap { width: min(760px, 86vh); }
