:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #20232b;
  background: #f0f5ec;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --accent: #6254e8;
  --accent-dark: #4c40c8;
  --ink: #20232b;
  --muted: #737987;
  --line: #e7e9ef;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 5%, #fffdf6 0, transparent 55%),
    radial-gradient(ellipse at 100% 90%, #dcebd1 0, transparent 52%),
    linear-gradient(130deg, #e4efdb, #f5f7ef 58%, #eaf1e4);
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  width: clamp(260px, 58vw, 900px);
  aspect-ratio: 1;
  background: url("clover-background.png") center / contain no-repeat;
  content: "";
  pointer-events: none;
  mix-blend-mode: multiply;
  mask-image: radial-gradient(circle, #000 43%, transparent 69%);
}

body::before {
  top: -17vmin;
  left: -16vmin;
  opacity: 0.25;
  transform: rotate(-16deg);
}

body::after {
  right: -20vmin;
  bottom: -30vmin;
  opacity: 0.19;
  transform: rotate(19deg);
}

button,
select,
input {
  font: inherit;
}

button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(98, 84, 232, 0.38);
  outline-offset: 3px;
}

.page-shell {
  position: relative;
  width: min(100% - 40px, 1000px);
  margin: 0 auto;
  padding: 46px 0 28px;
}

.welcome {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 32px 20px;
}

.welcome[hidden],
.page-shell[hidden],
#welcome-forms form[hidden] {
  display: none;
}

.welcome-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  width: min(100%, 940px);
  min-height: 560px;
  overflow: hidden;
  border: 1px solid #dce7d8;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 76px rgba(27, 65, 43, 0.16);
}

.welcome-art {
  position: relative;
  display: grid;
  overflow: hidden;
  isolation: isolate;
  place-items: center;
  background:
    radial-gradient(ellipse at 90% 15%, #458062, transparent 65%),
    linear-gradient(145deg, #10382e, #1b553d 55%, #103329);
}

.welcome-art img {
  width: 128%;
  max-width: none;
  opacity: 0.33;
  filter: grayscale(1) invert(1) contrast(2) brightness(2);
  mask-image: radial-gradient(circle, #000 48%, transparent 71%);
  mix-blend-mode: screen;
  transform: translate(-5%, 4%) rotate(-12deg);
}

.welcome-content {
  align-self: center;
  width: 100%;
  max-width: 470px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 52px);
}

.welcome-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: #1d533b;
  font-weight: 800;
}

.welcome-brand img {
  border-radius: 9px;
}

#welcome-forms form {
  display: grid;
  gap: 16px;
}

#welcome-forms h2 {
  color: #172a21;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  letter-spacing: -0.045em;
  line-height: 1.1;
}

#welcome-forms .dialog-description {
  margin-top: 9px;
  color: #596b60;
}

#welcome-forms input {
  min-height: 49px;
  border-color: #dce6de;
  background: #f8fbf8;
  font-size: 1rem;
}

#welcome-forms input:focus-visible,
.welcome button:focus-visible {
  outline-color: #51876a;
}

#welcome-forms .dialog-actions {
  display: block;
  margin: 2px 0 0;
}

#welcome-forms .auth-cancel {
  display: none;
}

#welcome-forms .confirm-button {
  width: 100%;
  min-height: 49px;
  background: #235e42;
  box-shadow: 0 7px 16px rgba(28, 88, 61, 0.17);
}

#welcome-forms .confirm-button:not(:disabled):hover {
  background: #194b33;
}

.welcome .owner-link {
  color: #235e42;
}

.welcome .owner-link:hover {
  background: #edf6ef;
  color: #194b33;
}

#welcome-forms .customer-auth-switch {
  justify-self: center;
  padding: 8px;
}

.welcome-owner-link {
  display: block;
  margin: 18px auto 0;
  font-size: 0.85rem;
}

#welcome-status:not(:empty) {
  margin-top: 16px;
}

@media (max-width: 700px) {
  .welcome {
    min-height: 100svh;
    padding: 22px 14px;
  }

  .welcome-card {
    display: block;
    max-width: 450px;
    min-height: 0;
    border-radius: 22px;
  }

  .welcome-art {
    display: none;
  }
}

.mobile-header {
  display: none;
}

.hero {
  position: relative;
  display: flex;
  min-height: 158px;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
}

.hero-copy {
  max-width: 600px;
  padding: 5px 170px 20px;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.07em;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #42b889;
  box-shadow: 0 0 0 4px rgba(66, 184, 137, 0.12);
}

h1 {
  margin: 12px 0 7px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.intro {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.prize-card {
  position: absolute;
  top: 0;
  right: 0;
  width: 130px;
  margin: 0;
  text-align: center;
}

.prize-image-wrap {
  position: relative;
  display: grid;
  height: 96px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(98, 84, 232, 0.12);
  border-radius: 18px;
  background: linear-gradient(140deg, #e6e3ff, #f8e9de);
  box-shadow: 0 8px 20px rgba(38, 35, 75, 0.08);
}

.prize-image {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prize-image[hidden] {
  display: none;
}

.prize-placeholder {
  padding: 0 8px;
  color: #665dae;
  font-size: 0.78rem;
  font-weight: 600;
}

.prize-photo-button {
  position: absolute;
  right: 6px;
  bottom: 6px;
  left: 6px;
  z-index: 2;
  min-height: 30px;
  padding: 3px 6px;
  border: 1px solid #ded9f8;
  border-radius: 8px;
  background: #fff;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 750;
  cursor: pointer;
}

#prize-photo-file {
  padding: 10px;
}

#prize-photo-status:empty {
  display: none;
}

.prize-photo-actions {
  flex-wrap: wrap;
}

#remove-prize-photo {
  margin-right: auto;
  color: #b42332;
}

.prize-caption {
  margin-top: 8px;
  color: #515564;
  font-size: 0.78rem;
  font-weight: 700;
}

.draw-panel,
.cart-panel {
  border: 1px solid rgba(226, 228, 235, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 38px rgba(36, 39, 54, 0.055);
}

.draw-panel {
  padding: 24px;
}

.draw-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
}

.progress-block {
  flex: 1;
  max-width: 430px;
}

.lucky-draw {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #e3defd;
  border-radius: 14px;
  background: #f7f5ff;
}

.lucky-draw[hidden] {
  display: none;
}

.lucky-draw h2,
.lucky-draw p {
  margin: 0;
}

.lucky-draw p {
  margin-top: 5px;
}

#next-lottery {
  margin-top: 12px;
}

#lucky-draw-countdown {
  font-variant-numeric: tabular-nums;
}

.lucky-draw-number {
  --reel-row: clamp(56px, 14vw, 76px);
  position: relative;
  flex: 0 0 auto;
  width: clamp(65px, 17vw, 100px);
  height: var(--reel-row);
  overflow: hidden;
  border: 1px solid #ddd4ff;
  border-radius: 12px;
  background: #efeaff;
  color: var(--accent-dark);
  font-size: clamp(1.3rem, 6vw, 2.15rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.lucky-reel-track {
  transform: translateY(calc(-1 * var(--reel-row)));
}

.lucky-reel-track span {
  display: grid;
  place-items: center;
  height: var(--reel-row);
}

.lucky-draw-number.is-rolling .lucky-reel-track {
  animation: lucky-reel-turn 160ms linear infinite;
}

.lucky-draw-number.is-rolling::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(#efeaff, transparent 24%, transparent 76%, #efeaff);
  content: "";
  pointer-events: none;
}

.lucky-draw-number.has-winner {
  border-color: var(--accent);
  background: var(--accent-dark);
  color: #fff;
}

@keyframes lucky-reel-turn {
  from { transform: translateY(calc(-1 * var(--reel-row))); }
  to { transform: translateY(calc(-2 * var(--reel-row))); }
}

.number-tile.is-winner {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  color: #555b69;
  font-size: 0.82rem;
  font-weight: 600;
}

.progress-percent {
  color: var(--accent);
  font-weight: 700;
}

progress {
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #ececf4;
  appearance: none;
}

progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #ececf4;
}

progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, #8174f1, var(--accent));
  transition: width 250ms ease;
}

progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--accent);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
  margin: 24px 0 15px;
  color: #656b78;
  font-size: 0.78rem;
  font-weight: 600;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-swatch {
  width: 13px;
  height: 13px;
  border: 1px solid #dfe2e9;
  border-radius: 4px;
}

.legend-swatch.available {
  background: #fff;
}

.legend-swatch.selected {
  border-color: var(--accent);
  background: var(--accent);
}

.legend-swatch.pending {
  border-color: #bd7d1d;
  background: #e8ad51;
}

.legend-swatch.sold {
  border-color: #3d414c;
  background: #3d414c;
}

.number-grid {
  --grid-columns: 10;
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  gap: 9px;
}

.number-grid[data-mode="25"] {
  --grid-columns: 5;
}

.number-tile {
  display: grid;
  min-width: 0;
  aspect-ratio: 1;
  padding: 0;
  place-items: center;
  border: 1px solid #e4e6ed;
  border-radius: 11px;
  background: #fff;
  color: #343844;
  cursor: pointer;
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  font-weight: 700;
  transition: transform 150ms ease, border-color 150ms ease, color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.number-tile:not(:disabled):hover {
  transform: translateY(-2px);
  border-color: #a9a2f5;
  box-shadow: 0 5px 12px rgba(72, 62, 170, 0.1);
}

.number-tile.is-selected {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 11px rgba(98, 84, 232, 0.2);
}

.number-tile:disabled {
  cursor: not-allowed;
}

.number-tile:disabled:not(.is-sold):not(.is-pending) {
  border-color: #e3e5e9;
  background: #f3f4f6;
  color: #626975;
}

.number-tile.is-sold {
  border-color: #3d414c;
  background: #3d414c;
  color: #fff;
  opacity: 0.85;
}

.number-tile.is-pending {
  border-color: #d99a37;
  background: #f5dfb9;
  color: #594015;
  cursor: not-allowed;
}

.cart-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 18px;
  padding: 22px 24px;
}

.cart-details {
  min-width: 0;
}

.cart-details h2,
.dialog-heading h2 {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 1.1rem;
  letter-spacing: -0.025em;
}

.count-pill {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  margin-left: 3px;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  background: #efedff;
  color: var(--accent-dark);
  font-size: 0.75rem;
  vertical-align: 2px;
}

.selected-list {
  max-width: 570px;
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  color: #777d89;
  font-size: 0.85rem;
}

.cart-checkout {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 22px;
}

.total-block {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 0.76rem;
}

.total-block strong {
  color: var(--ink);
  font-size: 1.2rem;
}

.confirm-button,
.secondary-button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 11px;
  font-weight: 700;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.confirm-button {
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(98, 84, 232, 0.18);
}

.confirm-button:not(:disabled):hover {
  transform: translateY(-1px);
  background: var(--accent-dark);
}

.confirm-button:disabled {
  background: #cbc9d9;
  box-shadow: none;
  cursor: not-allowed;
}

.secondary-button {
  border: 1px solid #e0e2e9;
  background: #fff;
  color: #555b69;
  cursor: pointer;
}

.secondary-button:hover {
  background: #f6f6f9;
}

.status-message {
  min-height: 22px;
  margin: 12px 2px 0;
  color: #277451;
  font-size: 0.87rem;
  font-weight: 600;
  text-align: center;
}

.status-message.is-error {
  color: #b42332;
}

.page-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  color: #8a8f9b;
  font-size: 0.78rem;
  text-align: center;
}

.account-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.contact-link {
  display: none;
  align-items: center;
  gap: 8px 14px;
  padding: 10px 14px;
  border: 1px solid #dce8d5;
  border-radius: 12px;
  background: #f8fbf5;
  color: #235b34;
  font-weight: 700;
  text-decoration: none;
}

.contact-link:hover {
  background: #eef5e9;
}

.contact-link span + span {
  font-weight: 500;
}

.owner-link {
  padding: 5px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #6e6a98;
  cursor: pointer;
  font-size: inherit;
  font-weight: 600;
}

.owner-link:hover {
  background: #ebe9fa;
  color: var(--accent-dark);
}

.customer-auth-switch {
  justify-self: start;
  padding-left: 0;
  color: var(--accent-dark);
  font-size: 0.86rem;
}

.owner-panel {
  margin-top: 24px;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid rgba(226, 228, 235, 0.9);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(36, 39, 54, 0.055);
}

.owner-panel[hidden] {
  display: none;
}

.owner-settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
  margin-top: 20px;
}

.draw-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding: clamp(14px, 2.5vw, 20px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f9f9fc;
}

.draw-form[hidden] {
  display: none;
}

.owner-draw-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
  gap: 12px;
  width: 100%;
}

.draw-form > .form-field {
  width: 100%;
}

.draw-form .form-field input {
  min-width: 0;
}

.draw-form button[type="submit"] {
  margin-top: auto;
  min-height: 42px;
}

.owner-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.owner-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.owner-panel-heading h2 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.owner-invite-field {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e3defd;
  border-radius: 12px;
  background: #f7f5ff;
}

.owner-payments {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.draw-form h3,
.owner-payments h3 {
  margin: 0;
  font-size: 1rem;
}

.owner-hint,
.owner-empty {
  color: var(--muted);
  font-size: 0.86rem;
}

.draw-form .owner-hint {
  margin: 0;
  line-height: 1.45;
}

.draw-form .status-message,
.draw-form .owner-error {
  min-height: 0;
  margin: 0;
  text-align: left;
}

.owner-panel .owner-error:empty,
.draw-form .status-message:empty {
  display: none;
}

.request-list {
  display: grid;
  gap: 10px;
}

.request-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.request-card h3 {
  margin: 0;
  font-size: 0.94rem;
}

.request-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.request-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.request-actions .confirm-button,
.request-actions .secondary-button {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.8rem;
}

.owner-empty {
  margin: 14px 0 0;
  padding: 14px;
  border: 1px dashed #dfe2e9;
  border-radius: 12px;
  background: #fafafd;
  text-align: center;
}

.owner-error {
  margin: 10px 0 0;
  color: #b42332;
  font-size: 0.84rem;
}

.payment-content {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.payment-warning {
  padding: 12px 14px;
  border: 1px solid #f0d7a8;
  border-radius: 11px;
  background: #fff8e9;
  color: #76541e;
  font-size: 0.86rem;
  line-height: 1.5;
}

.payment-address {
  display: grid;
  gap: 8px;
  color: #555b69;
  font-size: 0.82rem;
  font-weight: 700;
}

.payment-address[hidden],
#owner-invite-field[hidden] {
  display: none;
}

.payment-address code {
  display: block;
  padding: 12px;
  border: 1px solid #e1e3eb;
  border-radius: 10px;
  background: #f7f7fa;
  color: var(--ink);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  user-select: all;
}

.payment-address .secondary-button {
  justify-self: start;
}

.payment-copy-status:empty {
  height: 0;
  margin-top: -16px;
}

.payment-copy-status,
.request-reference {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.payment-dialog .dialog-actions {
  margin-top: 0;
}

.purchase-dialog {
  width: min(100% - 32px, 460px);
  padding: 0;
  border: 1px solid #e7e8ef;
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 90px rgba(25, 27, 40, 0.25);
}

.purchase-dialog::backdrop {
  background: rgba(24, 26, 38, 0.48);
  backdrop-filter: blur(3px);
}

.purchase-dialog form {
  display: grid;
  gap: 17px;
  padding: 28px;
}

.dialog-description {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-field {
  display: grid;
  gap: 7px;
  color: #555b69;
  font-size: 0.82rem;
  font-weight: 700;
}

.form-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #dfe2e9;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.dialog-error {
  display: none;
  margin: -5px 0 0;
  color: #b42332;
  font-size: 0.83rem;
}

.dialog-error:not(:empty) {
  display: block;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 700px) {
  .page-shell {
    width: min(100% - 28px, 600px);
    padding-top: 12px;
  }

  .mobile-header {
    position: sticky;
    top: 8px;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    margin-bottom: 22px;
    padding: 6px 8px 6px 12px;
    border: 1px solid #263c33;
    border-radius: 14px;
    background: #1c2c25;
    color: #f5fbf2;
    box-shadow: 0 8px 22px rgba(25, 52, 35, 0.17);
  }

  .mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: inherit;
    font-size: 0.98rem;
    font-weight: 750;
    text-decoration: none;
  }

  .mobile-brand img {
    border-radius: 6px;
  }

  .mobile-menu-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 42px;
    border: 1px solid #50665a;
    border-radius: 9px;
    background: #30453a;
    cursor: pointer;
    list-style: none;
  }

  .mobile-menu-toggle::-webkit-details-marker {
    display: none;
  }

  .mobile-menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    box-shadow: 0 -6px currentColor, 0 6px currentColor;
  }

  .mobile-menu-panel {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    width: min(255px, 100%);
    padding: 6px;
    border: 1px solid #dce8d5;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(24, 46, 35, 0.18);
  }

  .mobile-menu-panel .account-links {
    display: grid;
    gap: 0;
  }

  .mobile-menu-panel .owner-link {
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    color: #243c2e;
    font-size: 0.9rem;
    text-align: left;
  }

  .mobile-menu-panel .owner-link:hover {
    background: #eef5e9;
  }

  #desktop-account-menu,
  #owner-logout {
    display: none;
  }

  .page-footer .contact-link:not([hidden]) {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding-inline: 16px;
    font-size: 0.9rem;
  }

  .owner-panel {
    scroll-margin-top: 76px;
  }

  .hero {
    min-height: 0;
    flex-direction: column;
    align-items: center;
  }

  .prize-card {
    position: static;
    order: 0;
    width: 126px;
    margin-bottom: 18px;
  }

  .prize-image-wrap {
    height: 84px;
    border-radius: 15px;
  }

  .hero-copy {
    order: 1;
    padding: 0 0 24px;
  }

  .draw-panel {
    padding: 18px;
  }

  .number-grid {
    --grid-columns: 5;
    gap: 8px;
  }

  .number-grid[data-mode="25"] {
    --grid-columns: 5;
  }

  .number-tile {
    border-radius: 9px;
  }

  .cart-panel {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding: 19px;
  }

  .cart-checkout {
    width: 100%;
    justify-content: space-between;
  }

  .request-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .page-shell {
    width: min(100% - 22px, 390px);
  }

  .draw-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 17px;
  }

  .progress-block {
    max-width: none;
  }

  .number-grid {
    --grid-columns: 4;
    gap: 7px;
  }

  .number-grid[data-mode="25"] {
    --grid-columns: 5;
  }

  .number-tile {
    border-radius: 8px;
  }

  .cart-checkout {
    align-items: flex-end;
    gap: 10px;
  }

  .confirm-button {
    padding: 0 13px;
    font-size: 0.86rem;
  }

  .purchase-dialog form {
    padding: 22px;
  }

  .payment-content {
    padding: 22px;
  }

  .page-footer {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lucky-draw-number.is-rolling .lucky-reel-track {
    animation: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
