@font-face {
  font-family: Outfit;
  src: url("/fonts/Outfit.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/CormorantGaramond.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #100e0c;
  --card: #1b1714;
  --field: #120f0c;
  --cream: #f7f1e6;
  --muted: #b7ab9d;
  --gold: #e4c88a;
  --line: #e4c88a30;
  --rose: #e7b2a8;
  --sage: #c9ddb8;
  --serif: "Cormorant Garamond", "Microsoft JhengHei", serif;
  --sans: Outfit, "Microsoft JhengHei", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--cream);
  font: 16px/1.5 var(--sans);
  background:
    radial-gradient(ellipse at 45% -20%, #85622c28, transparent 60%),
    radial-gradient(ellipse at 100% 100%, #5a362728, transparent 55%), var(--bg);
  background-attachment: fixed;
}
button,
input,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}
a {
  color: var(--gold);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
}
h1 {
  font-size: clamp(40px, 4.4vw, 64px);
  letter-spacing: -0.035em;
}
h2 {
  font-size: 34px;
}
h3 {
  font-size: 27px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}
input:focus,
select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
input,
select {
  width: 100%;
  min-width: 0;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--cream);
  padding: 13px 15px;
  min-height: 49px;
}
input::placeholder {
  color: #9b8e7f;
}
label {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.025em;
}
fieldset {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
[hidden] {
  display: none !important;
}
::selection {
  background: #e4c88a44;
}
.muted {
  color: var(--muted);
}
.gold {
  color: var(--gold);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.small {
  font-size: 13px;
}
.hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.6;
}
.error {
  color: var(--rose);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 12px;
}
.error:empty {
  display: none;
}
.primary,
.secondary,
.text-button,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 99px;
  text-decoration: none;
  transition:
    background 0.18s,
    transform 0.18s;
  min-height: 44px;
  line-height: 1.2;
}
.primary {
  background: linear-gradient(120deg, #f0d7a6, #c6a15b);
  color: #21180e;
  border: 1px solid #f0d7a670;
  padding: 15px 28px;
  font-weight: 500;
}
.primary:hover:not(:disabled) {
  filter: brightness(1.07);
  transform: translateY(-1px);
  text-decoration: none;
}
.secondary,
.chip {
  border: 1px solid var(--line);
  background: transparent;
  padding: 12px 22px;
  color: var(--gold);
}
.secondary:hover,
.chip:hover {
  background: #e4c88a0b;
  text-decoration: none;
}
.text-button {
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}
.text-button:hover {
  color: var(--gold);
}
.wide {
  width: 100%;
}
.button-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.language {
  display: flex;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 4px;
  gap: 2px;
  width: max-content;
}
.language button {
  min-height: 30px;
  padding: 5px 12px;
  border: 0;
  border-radius: 30px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.language button[aria-pressed="true"] {
  background: #e4c88a18;
  color: var(--gold);
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  min-width: 0;
}
.brand-mark {
  display: block;
  width: 96px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}
.brand-name {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}
.brand-caption {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-top: 3px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1360px;
  margin: auto;
  padding: 28px 40px;
}
.card {
  background: linear-gradient(140deg, #211b15aa, transparent 60%), var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 24px 70px #0003;
}
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  color: var(--gold);
  font-size: 20px;
  line-height: 1;
}
.ornament:before,
.ornament:after {
  content: "";
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e4c88a80);
}
.ornament:after {
  transform: rotate(180deg);
}
.guest-main {
  padding: 24px 20px 36px;
  max-width: 580px;
  margin: auto;
}
.guest-card {
  padding: 35px 40px;
}
.guest-intro {
  text-align: center;
  margin-bottom: 27px;
}
.guest-intro .eyebrow {
  margin: 20px 0 10px;
}
.guest-intro h1 {
  font-size: 48px;
}
#guest-title {
  font-size: clamp(30px, 6vw, 42px);
  text-wrap: balance;
}
.guest-intro .muted {
  font-size: 14px;
  max-width: 350px;
  margin: 13px auto 0;
}
.form-stack {
  display: grid;
  gap: 20px;
}
.phone-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
}
.field-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.counter {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.engraving-section {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 3px;
}
#engraving-instruction {
  margin: 0 0 14px;
  font-size: 13px;
}
.engraving-preview {
  margin-top: 17px;
  background: linear-gradient(115deg, #3b2a1e55, #211b16);
  border: 1px solid #e4c88a24;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  position: relative;
}
.engraving-preview:before,
.engraving-preview:after {
  content: "";
  position: absolute;
  width: 20px;
  top: 12px;
  bottom: 12px;
  border-top: 1px solid #e4c88a44;
  border-bottom: 1px solid #e4c88a44;
}
.engraving-preview:before {
  left: 12px;
  border-left: 1px solid #e4c88a44;
}
.engraving-preview:after {
  right: 12px;
  border-right: 1px solid #e4c88a44;
}
.engraving-preview p {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 25px;
  letter-spacing: 0.06em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.engraving-preview span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 5px;
}
.form-note {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.7;
}
.page-footer {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 24px 12px;
}
.page-footer span {
  color: var(--gold);
}
.ticket {
  text-align: center;
}
#success-title {
  font-size: clamp(30px, 6vw, 42px);
  text-wrap: balance;
}
.ticket-intro {
  margin: 14px auto 0;
  max-width: 400px;
}
.ticket .eyebrow {
  margin-top: 24px;
}
.ticket-number {
  font: 400 128px/1.2 var(--serif);
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.ticket-name {
  font-size: 24px;
  overflow-wrap: anywhere;
}
.ticket-details {
  border-top: 1px dashed #e4c88a50;
  border-bottom: 1px dashed #e4c88a50;
  margin: 25px 0;
  padding: 22px 0;
}
.ticket-details strong {
  display: block;
  margin-top: 6px;
  letter-spacing: 0.1em;
  color: var(--gold);
  white-space: pre-wrap;
}
.success-mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #c9ddb850;
  border-radius: 50%;
  color: var(--sage);
  font-size: 24px;
  margin-bottom: 20px;
}
.ticket .primary {
  margin-top: 24px;
}
.ticket .text-button {
  margin-top: 8px;
}
.desk {
  max-width: 1360px;
  margin: auto;
  padding: 32px 40px 60px;
}
.desk-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
}
.desk-intro h1 {
  margin: 10px 0 12px;
}
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sage);
  font-size: 12px;
}
.live-dot:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 12px #c9ddb830;
}
.desk-nav {
  display: flex;
  gap: 8px;
  padding: 10px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.desk-nav button {
  font-size: 14px;
}
.desk-nav [aria-pressed="true"] {
  background: #e4c88a16;
  border-color: #e4c88a80;
  color: var(--cream);
}
.desk-nav a {
  margin-left: auto;
  font-size: 14px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.stat {
  padding: 23px 26px;
}
.stat strong {
  display: block;
  font: 500 42px/1.1 var(--serif);
  color: var(--gold);
  margin-bottom: 8px;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.table-card {
  padding: 26px 0;
  overflow: hidden;
}
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 26px 24px;
}
.table-toolbar input {
  max-width: 310px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
th {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
  background: #120f0c55;
}
th,
td {
  padding: 15px 24px;
  border-bottom: 1px solid #e4c88a13;
}
td {
  overflow-wrap: anywhere;
}
td:first-child {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
td .text-button {
  padding: 6px 10px;
  min-height: 36px;
}
tr:last-child td {
  border-bottom: 0;
}
.status {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 4px 11px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.status.ready {
  color: var(--sage);
  border-color: #c9ddb83d;
  background: #c9ddb808;
}
.status.collected {
  color: var(--gold);
  border-color: #e4c88a40;
}
.empty {
  text-align: center;
  padding: 65px 25px;
}
.empty .ornament {
  margin-bottom: 22px;
}
.empty p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.row-actions .secondary {
  font-size: 12px;
  padding: 8px 14px;
  min-height: 36px;
}
.danger {
  color: var(--rose);
}
dialog {
  color: var(--cream);
  background: var(--card);
  border: 1px solid #e4c88a66;
  border-radius: 22px;
  width: min(470px, calc(100% - 32px));
  padding: 34px;
  box-shadow: 0 30px 100px #0008;
}
dialog::backdrop {
  background: #100e0ce6;
  backdrop-filter: blur(8px);
}
dialog h2 {
  margin: 10px 0 24px;
}
dialog .button-row {
  justify-content: flex-end;
  margin-top: 25px;
}
.pin-dialog {
  text-align: center;
  width: 400px;
}
.pin-dialog input {
  text-align: center;
  letter-spacing: 0.35em;
  font-size: 24px;
}
.pin-dialog .primary {
  margin-top: 20px;
}
.pin-dialog label {
  margin-top: 24px;
}
.pin-dialog .muted {
  font-size: 14px;
}
.entrance-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 36px;
}
.qr-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  max-width: 420px;
  border-radius: 12px;
  background: white;
}
.entrance-copy h2 {
  font-size: 45px;
  margin: 12px 0 20px;
}
.entrance-copy .muted {
  margin: 12px 0;
}
.entrance-copy label {
  margin-top: 28px;
}
.url-text {
  color: var(--gold);
  font-size: 13px;
  overflow-wrap: anywhere;
  margin: 18px 0;
}
.qr-page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100dvh;
}
.qr-page .topbar {
  width: 100%;
}
.qr-hero {
  width: min(1120px, 92vw);
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7vw;
  align-items: center;
  padding: 45px 0;
}
.qr-hero h1 {
  font-size: clamp(50px, 6vw, 95px);
  margin: 20px 0 25px;
}
.qr-hero .eyebrow {
  font-size: 13px;
}
.qr-frame {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  text-align: center;
}
.qr-frame .qr-image {
  max-width: none;
}
.qr-frame .url-text {
  margin-bottom: 0;
}
.qr-page .page-footer {
  padding-bottom: 32px;
}
/* Keep 90px clear at the top and bottom. Only the remaining names scroll. */
.wheel-page {
  height: 100dvh;
  padding: 90px 5vw;
  min-height: 0;
  overflow: hidden;
  font-size: clamp(14px, 1.1vw, 38px);
}
.wheel-shell {
  height: 100%;
  margin: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(16px, 2.3vh, 56px);
}
.wheel-header {
  display: grid;
  place-items: center;
  padding-bottom: clamp(14px, 2vh, 48px);
  border-bottom: 1px solid var(--line);
}
.wheel-event-logo,
.wheel-event-banner img {
  display: block;
  width: 100%;
  height: auto;
}
.wheel-event-banner {
  min-width: 0;
  width: min(100%, 2810px);
  background: linear-gradient(110deg, #f6e6ba, #d7ad68 50%, #f6e6ba);
  mask: url("/images/lottery_header.png") center / contain no-repeat;
}
.wheel-event-banner img {
  /* Keep the supplied lettering and accessible text, with gold supplied by the mask. */
  opacity: 0;
}
.wheel-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(12px, 1.6vh, 40px);
  min-height: 0;
  min-width: 0;
}
.wheel-event-logo {
  width: min(100%, 34vh);
  justify-self: center;
}
.wheel-tools {
  display: flex;
  gap: 1em;
  align-items: center;
  justify-content: space-between;
  margin-top: 1em;
}
.wheel-tools .language button {
  font-size: clamp(11px, 0.7vw, 24px);
  padding: 0.45em 1em;
}
.fullscreen {
  font-size: 1em;
  padding: 0.6em 0.8em;
  min-height: 0;
}
.wheel-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr);
  gap: 5vw;
}
.wheel-stage {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: clamp(9px, 1.5vh, 36px);
  min-height: 0;
  text-align: center;
}
.wheel-art {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
}
.wheel-art canvas {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1;
}
.wheel-spin-sparkles {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}
.spin-sparkle {
  position: absolute;
  border-radius: 50%;
  background: #fff0bd;
  box-shadow: 0 0 8px #e4c88a, 0 0 18px #e4c88a60;
  animation: spin-sparkle 1s ease-out infinite;
}
.spin-sparkle.winner-sparkle {
  border-radius: 0;
}
@keyframes spin-sparkle {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
  25% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--spark-x)), calc(-50% + var(--spark-y))) scale(0.1);
  }
}
.wheel-hub {
  position: absolute;
  z-index: 1;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #392a1a, #120f0c);
  box-shadow:
    0 0 0 5px #100e0c,
    0 0 0 6px #e4c88a66,
    0 5px 24px #0008;
  aspect-ratio: 1;
  min-height: 0;
  padding: 0;
  color: var(--gold);
  font-size: clamp(10px, 1.1vw, 35px);
  letter-spacing: 0.16em;
}
.wheel-hub:disabled {
  opacity: 1;
  color: var(--muted);
}
.wheel-outcome {
  min-width: 0;
}
.wheel-outcome .eyebrow {
  font-size: 0.65em;
  letter-spacing: 0.19em;
  margin-bottom: 0.2em;
}
.winner-name {
  font-size: clamp(29px, 3.1vw, 108px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--cream);
  line-height: 1.12;
}
.winner-phone {
  font-size: 1.05em;
  color: var(--gold);
  letter-spacing: 0.1em;
  min-height: 1.5em;
  margin-top: 0.2em;
}
.wheel-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6em;
}
.spin-button {
  font-size: 1em;
  padding: 0.85em 3.5em;
  min-height: 0;
}
.wheel-caption {
  color: var(--muted);
  font-size: 0.65em;
  line-height: 1.2;
}
.wheel-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: clamp(22px, 2.3vw, 75px);
  border-radius: 22px;
}
.remaining-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.2em;
}
.remaining-heading h2 {
  font-size: clamp(28px, 2.65vw, 92px);
  max-width: 8em;
}
.remaining-count {
  font-family: var(--serif);
  font-size: clamp(42px, 4.5vw, 160px);
  color: var(--gold);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.remaining-heading .eyebrow {
  font-size: 0.6em;
  margin-bottom: 0.8em;
}
.remaining-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin: 0;
  padding: 8px 4px 8px 0;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: #e4c88a40 transparent;
}
.remaining-list li {
  display: flex;
  align-items: center;
  gap: 1.3em;
  padding: 0.85em 0;
  border-bottom: 1px solid #e4c88a14;
}
.remaining-list .serial {
  font-size: 0.7em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.remaining-list .guest-name {
  font-size: 0.95em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.remaining-list .empty-list {
  display: block;
  color: var(--muted);
  font-size: 0.85em;
  padding: 2em 0;
  line-height: 1.7;
  border: 0;
}
.wheel-panel-footer {
  padding-top: 1em;
  border-top: 1px solid var(--line);
}
.wheel-panel-footer .text-button {
  font-size: 0.72em;
  min-height: 0;
  padding: 0.8em 0;
  color: var(--gold);
}
.wheel-panel-footer .error {
  font-size: 0.7em;
}
.wheel-panel-footer .live-dot {
  font-size: 0.6em;
  display: flex;
  margin-top: 1em;
}
.live-dot.offline {
  color: var(--rose);
}
.live-dot.offline:before {
  background: var(--rose);
}
.winner-flash {
  animation: winner-glow 5.5s ease-out;
}
@keyframes winner-glow {
  0% {
    transform: translateY(0.18em) scale(0.9);
    color: #fff8e8;
    text-shadow: 0 0 0.2em #fff0bd, 0 0 0.8em #e4c88a;
  }
  12% {
    transform: translateY(0) scale(1.045);
    color: #fff0bd;
    text-shadow: 0 0 0.25em #e4c88a, 0 0 1em #e4c88a80;
  }
  35%,
  65% {
    transform: scale(1);
    color: #f0d7a6;
    text-shadow: 0 0 0.45em #e4c88a88;
  }
  100% {
    transform: scale(1);
    color: var(--cream);
    text-shadow: 0 0 0 transparent;
  }
}
.winner-celebration {
  position: fixed;
  inset: 90px 0;
  z-index: 10;
  overflow: hidden;
  pointer-events: none;
}
.confetti-piece {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 1px;
  background-image: linear-gradient(135deg, #ffffff70, transparent 50%, #70461650);
  backface-visibility: visible;
}
.confetti-star {
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 95%, 50% 72%, 21% 95%, 32% 57%, 2% 35%, 39% 35%);
}
.confetti-ribbon {
  border-radius: 40%;
}
.winner-sparkle {
  position: absolute;
  background: #fff0bd;
  clip-path: polygon(50% 0, 60% 38%, 100% 50%, 60% 62%, 50% 100%, 40% 62%, 0 50%, 40% 38%);
}
.winner-aura {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(ellipse, #e4c88a22, #c6a15b0a 45%, transparent 70%);
  animation: winner-aura 5.5s ease-out both;
}
.winner-aura::before,
.winner-aura::after {
  content: "";
  position: absolute;
  inset: 22% 12%;
  border: 1px solid #e4c88a80;
  border-radius: 50%;
  box-shadow: 0 0 22px #e4c88a25, inset 0 0 18px #e4c88a18;
  animation: winner-ring 2.4s ease-out both;
}
.winner-aura::after {
  animation-delay: 0.5s;
}
@keyframes winner-aura {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
  }
  15%,
  55% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.2);
  }
}
@keyframes winner-ring {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  15% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}
@media (max-height: 1100px) and (min-width: 761px) {
  .wheel-shell {
    position: relative;
  }
  .wheel-header {
    padding-left: min(24vw, 32vh, 420px);
    min-height: min(14vw, 20vh, 240px);
  }
  .wheel-event-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: min(20vw, 27vh, 350px);
  }
  .wheel-sidebar {
    grid-template-rows: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .topbar {
    padding: 22px 20px;
  }
  .brand-mark {
    width: 72px;
  }
  .brand-name {
    font-size: 12px;
  }
  .brand-caption {
    font-size: 8px;
  }
  .guest-main {
    padding: 8px 16px 16px;
  }
  .guest-card {
    padding: 28px 24px;
  }
  .guest-intro h1 {
    font-size: 43px;
  }
  .desk {
    padding: 20px 18px;
  }
  .desk-intro {
    align-items: start;
    flex-direction: column;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 18px 14px;
  }
  .stat strong {
    font-size: 35px;
  }
  .table-toolbar {
    align-items: start;
    flex-direction: column;
  }
  .table-toolbar input {
    max-width: none;
  }
  .table-wrap th,
  .table-wrap td {
    padding: 14px;
  }
  .desk-nav a {
    margin-left: 0;
  }
  .entrance-layout {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 28px;
  }
  .entrance-layout .qr-image {
    max-width: 320px;
    margin: auto;
  }
  .qr-hero {
    grid-template-columns: 1fr;
    max-width: 440px;
    gap: 30px;
    padding: 24px 12px;
  }
  .qr-hero h1 {
    font-size: 50px;
  }
  .qr-frame {
    padding: 18px;
  }
  .wheel-shell {
    gap: 12px;
  }
  .wheel-page {
    padding-left: 3vw;
    padding-right: 3vw;
  }
  .wheel-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(170px, 1fr);
    gap: 3vw;
  }
  .wheel-panel {
    padding: 16px;
  }
  .wheel-tools .language {
    display: none;
  }
  .remaining-heading h2 {
    font-size: 24px;
  }
  .remaining-count {
    font-size: 38px;
  }
  .winner-name {
    font-size: 26px;
  }
  .wheel-page {
    font-size: 13px;
  }
  .wheel-caption {
    max-width: 200px;
  }
  .spin-button {
    padding: 12px 24px;
  }
  .wheel-hub {
    font-size: 9px;
  }
  .remaining-heading {
    gap: 8px;
  }
  .remaining-list li {
    gap: 12px;
  }
  .wheel-panel-footer .text-button {
    font-size: 11px;
  }
  .wheel-panel-footer .live-dot {
    font-size: 9px;
  }
}
@media (max-width: 420px) {
  .phone-row {
    grid-template-columns: 1fr;
  }
  .guest-card {
    padding: 25px 20px;
  }
  .guest-intro h1 {
    font-size: 39px;
  }
  .topbar {
    gap: 12px;
  }
  .brand {
    gap: 9px;
  }
  .brand-name {
    font-size: 10px;
  }
  .language button {
    padding: 5px 9px;
  }
  .wheel-layout {
    grid-template-columns: minmax(0, 1fr) 145px;
  }
  .wheel-panel {
    padding: 12px;
  }
  .remaining-heading {
    flex-direction: column;
  }
  .remaining-heading h2 {
    font-size: 21px;
  }
  .remaining-count {
    font-size: 32px;
  }
  .winner-name {
    font-size: 22px;
  }
  .spin-button {
    padding: 11px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wheel-spin-sparkles {
    display: none;
  }
  .winner-flash {
    text-shadow: 0 0 0.5em #e4c88a80;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
