:root {
  color-scheme: light;
  --bg: #f6f8ff;
  --ink: #101322;
  --muted: #64708a;
  --panel: rgba(255, 255, 255, 0.88);
  --line: rgba(31, 44, 75, 0.14);
  --blue: #3158ff;
  --blue-dark: #1731a7;
  --aqua: #19c7d4;
  --lime: #b9f45d;
  --coral: #ff6b6b;
  --violet: #7c5cff;
  --shadow: 0 24px 70px rgba(31, 44, 75, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 12%, rgba(25, 199, 212, 0.22), transparent 28%),
    radial-gradient(circle at 80% 4%, rgba(124, 92, 255, 0.19), transparent 30%),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 54%, #eef3ff 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.demo-banner {
  position: relative;
  z-index: 30;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 8px 18px;
  background: #101322;
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  text-align: center;
}

.demo-banner strong {
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.56);
}

.modal-backdrop[hidden] {
  display: none !important;
}

.app-toast {
  position: fixed;
  z-index: 80;
  right: 20px;
  bottom: 20px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 14px 18px;
  border: 1px solid rgba(185, 244, 93, 0.42);
  border-radius: 14px;
  background: #101322;
  color: #fff;
  box-shadow: 0 20px 55px rgba(16, 19, 34, 0.28);
  font-size: 0.9rem;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.site-footer {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 32px 0 42px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo-link {
  flex: 0 0 auto;
}

.footer-logo-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(103, 210, 255, 0.42);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), transparent 38%),
    linear-gradient(135deg, #d9f3ff, #67d2ff 48%, #14335a);
  color: #06111f;
  font-weight: 1000;
}

.footer-copy h2,
.footer-copy p {
  margin: 0;
}

.footer-copy h2 {
  color: var(--ink);
  font-size: 1rem;
}

.footer-copy p {
  color: var(--muted);
}

.footer-copy .footer-meta {
  margin-top: 4px;
  font-size: 0.76rem;
}

.footer-company {
  color: var(--ink);
  font-weight: 900;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(18px, 5vw, 58px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(246, 248, 255, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-dark);
  font-weight: 950;
  letter-spacing: 0;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(49, 88, 255, 0.2);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.75), transparent 42%),
    #d9f3ff;
  color: #1355d8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 22px rgba(49, 88, 255, 0.16);
  font-size: 1.05rem;
  font-weight: 1000;
}

.site-header nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  align-items: center;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
}

.nav-demo-pill {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--lime);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-access {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.demo-access > span {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-access p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-market {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(22px, 4vw, 48px);
  align-items: center;
  padding: clamp(40px, 7vw, 92px) clamp(18px, 6vw, 82px);
}

#entryCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content,
.live-draw-panel,
.section-band,
.workflow-section,
.portal-shell {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 820px;
}

.eyebrow,
.panel-label {
  display: block;
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0;
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(3.65rem, 7.4vw, 6.75rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-tagline {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--blue-dark);
  font-size: clamp(1.55rem, 3.4vw, 3.5rem);
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-link,
.secondary-link,
.primary-button,
.secondary-button,
.google-button,
.card-button,
.text-button {
  min-height: 46px;
  border-radius: 999px;
  font-weight: 900;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
}

.primary-link,
.primary-button,
.card-button {
  border: 0;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 36px rgba(49, 88, 255, 0.28);
}

.primary-link:hover,
.primary-button:hover,
.card-button:hover {
  background: var(--blue-dark);
}

.secondary-link,
.secondary-button,
.google-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.compliance-note {
  max-width: 650px;
  margin: 18px 0 0;
  color: #7a849a;
  font-size: 0.86rem;
  line-height: 1.55;
}

.live-draw-panel {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.58)),
    rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.live-draw-panel > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-draw-panel strong {
  display: block;
  margin-top: 8px;
  color: var(--blue-dark);
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
}

.live-draw-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.mini-feed {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.mini-feed span {
  padding: 11px 12px;
  border: 1px solid rgba(49, 88, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.section-band,
.workflow-section,
.portal-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 86px) 0;
}

.page-hero {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(56px, 9vw, 110px) 0 clamp(22px, 5vw, 44px);
}

.page-hero h1,
.account-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.5rem, 6vw, 5.7rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.page-hero p,
.account-header p {
  max-width: 700px;
  color: var(--muted);
  line-height: 1.65;
}

.flush-top {
  padding-top: 12px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.section-heading h2,
.portal-intro h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4.6vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.giveaway-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 16px;
}

.giveaway-card,
.auth-card,
.entry-card,
.entries-section,
.workflow-grid > div,
.portal-intro {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.giveaway-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.giveaway-card.featured {
  background:
    linear-gradient(135deg, rgba(49, 88, 255, 0.92), rgba(124, 92, 255, 0.86)),
    #3158ff;
  color: #fff;
}

.status-pill {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(25, 199, 212, 0.14);
  color: var(--blue-dark);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.featured .status-pill {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.giveaway-card h3,
.workflow-grid h3,
.signed-out-state h2 {
  margin: 18px 0 0;
  color: inherit;
  font-size: 1.45rem;
  line-height: 1.08;
}

.giveaway-card p,
.workflow-grid p,
.portal-intro p,
.signed-out-state p,
.issue-box p {
  color: var(--muted);
  line-height: 1.6;
}

.featured p,
.featured .card-meta {
  color: rgba(255, 255, 255, 0.78);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.card-button {
  margin-top: 16px;
  width: 100%;
}

.featured .card-button {
  background: #fff;
  color: var(--blue-dark);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.workflow-grid > div {
  padding: 24px;
}

.step-number {
  color: var(--coral);
  font-size: 0.86rem;
  font-weight: 950;
}

.portal-shell {
  padding-bottom: 72px;
}

.portal-intro {
  margin-bottom: 16px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(25, 199, 212, 0.12), transparent 36%),
    rgba(255, 255, 255, 0.86);
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(280px, 410px) minmax(0, 1fr);
  gap: 16px;
}

.auth-card,
.entry-card,
.entries-section {
  padding: 26px;
}

.standalone {
  max-width: 520px;
}

label {
  display: block;
  margin: 16px 0 7px;
  color: var(--muted);
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 0 13px;
}

select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  padding: 0 13px;
  font: inherit;
}

select option {
  background: #101722;
  color: #f5f7fb;
}

input:focus {
  border-color: var(--blue);
  outline: 4px solid rgba(49, 88, 255, 0.14);
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.primary-button,
.secondary-button,
.google-button,
.text-button {
  border: 1px solid transparent;
}

.google-button {
  width: 100%;
  margin-top: 10px;
}

.text-button {
  min-height: 38px;
  background: transparent;
  color: var(--blue);
}

.wide {
  width: 100%;
  margin-top: 16px;
}

.form-message {
  min-height: 24px;
  color: var(--coral);
  font-weight: 800;
}

.form-note {
  margin: 8px 0 6px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.auth-signup-fields {
  display: contents;
}

#savedAddressPanel {
  display: grid;
  gap: 12px;
}

#savedAddressPanel[hidden] {
  display: none;
}

.hidden {
  display: none;
}

.account-bar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.account-bar strong {
  overflow-wrap: anywhere;
}

.issue-box {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid rgba(49, 88, 255, 0.13);
  border-radius: 18px;
  background: rgba(49, 88, 255, 0.06);
}

.issue-box strong {
  display: block;
  color: var(--blue-dark);
  font-size: 2rem;
  line-height: 1;
}

.latest-code {
  margin-top: 20px;
  padding: 22px;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
  text-align: center;
}

.latest-code .panel-label {
  color: var(--lime);
}

.latest-code output {
  display: block;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 950;
  letter-spacing: 0.08em;
}

.entries-section {
  margin-top: 16px;
}

.account-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 16px;
}

.info-card,
.admin-lock,
.wheel-panel,
.admin-table-wrap {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.info-card,
.admin-lock {
  padding: 26px;
}

.info-card h2,
.admin-lock h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  line-height: 1.05;
}

.info-card p,
.admin-lock p {
  color: var(--muted);
  line-height: 1.6;
}

.user-info {
  display: grid;
  gap: 14px;
  margin: 0;
}

.user-info div {
  min-width: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.user-info div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.user-info dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.user-info dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.admin-dashboard {
  display: grid;
  gap: 16px;
}

.wheel-panel {
  display: grid;
  grid-template-columns: minmax(250px, 380px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: clamp(22px, 5vw, 38px);
}

.wheel-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 330px;
}

.wheel {
  display: grid;
  place-items: center;
  width: min(310px, 76vw);
  aspect-ratio: 1;
  border: 10px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background:
    conic-gradient(
      from -12deg,
      #3158ff 0 45deg,
      #19c7d4 45deg 90deg,
      #b9f45d 90deg 135deg,
      #ff6b6b 135deg 180deg,
      #7c5cff 180deg 225deg,
      #3158ff 225deg 270deg,
      #19c7d4 270deg 315deg,
      #101322 315deg 360deg
    );
  box-shadow:
    inset 0 0 0 18px rgba(255, 255, 255, 0.22),
    0 26px 70px rgba(31, 44, 75, 0.22);
  transition: transform 3.4s cubic-bezier(0.08, 0.72, 0.12, 1);
}

.wheel span {
  display: grid;
  place-items: center;
  width: 118px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  color: var(--blue-dark);
  font-size: 2rem;
  font-weight: 1000;
}

.wheel-pointer {
  position: absolute;
  z-index: 2;
  top: 6px;
  width: 0;
  height: 0;
  border-left: 17px solid transparent;
  border-right: 17px solid transparent;
  border-top: 34px solid var(--ink);
  filter: drop-shadow(0 8px 14px rgba(31, 44, 75, 0.26));
}

.winner-result output {
  display: block;
  margin: 4px 0 10px;
  color: var(--blue-dark);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 1000;
  letter-spacing: 0.06em;
}

.winner-result p {
  color: var(--muted);
  line-height: 1.6;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-table td span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-table code {
  color: var(--blue-dark);
  font-size: 1.05rem;
  font-weight: 950;
}

.shell {
  width: min(780px, calc(100% - 36px));
  margin: 12vh auto 0;
  padding: 30px;
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.entry-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.entry-item {
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.entry-item strong {
  display: block;
  font-size: 2rem;
  letter-spacing: 0.08em;
}

.entry-item span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  border: 1px dashed rgba(49, 88, 255, 0.24);
  border-radius: 16px;
  color: var(--muted);
}

@media (max-width: 940px) {
  .hero-market,
  .giveaway-grid,
  .workflow-grid,
  .app-grid,
  .account-grid,
  .wheel-panel {
    grid-template-columns: 1fr;
  }

  .hero-market {
    min-height: auto;
  }

  .account-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
    padding-block: 14px;
  }

  .site-header nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.82rem;
  }

  .hero-market {
    padding-top: 42px;
  }

  .hero-content h1 {
    font-size: clamp(2.65rem, 12vw, 3.6rem);
  }

  .hero-tagline {
    font-size: clamp(1.45rem, 7vw, 2.2rem);
  }

  .hero-actions,
  .button-row {
    display: grid;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .auth-card,
  .entry-card,
  .entries-section,
  .portal-intro,
  .giveaway-card,
  .workflow-grid > div,
  .live-draw-panel {
    border-radius: 16px;
    padding: 20px;
  }
}

/* 2026 product-platform refresh */
:root {
  color-scheme: dark;
  --bg: #080b10;
  --ink: #f5f7fb;
  --muted: #9ba7bc;
  --panel: rgba(17, 22, 31, 0.84);
  --line: rgba(232, 238, 249, 0.13);
  --blue: #67d2ff;
  --blue-dark: #bcecff;
  --aqua: #35f0c1;
  --lime: #d7ff7a;
  --coral: #ff8f70;
  --violet: #b99cff;
  --gold: #e2bf6b;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

body {
  background:
    linear-gradient(115deg, rgba(226, 191, 107, 0.1) 0 1px, transparent 1px 18px),
    radial-gradient(circle at 16% 10%, rgba(103, 210, 255, 0.22), transparent 28%),
    radial-gradient(circle at 84% 20%, rgba(53, 240, 193, 0.14), transparent 28%),
    linear-gradient(180deg, #0d1118 0%, #080b10 48%, #0d1016 100%);
  color: var(--ink);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 16, 0.78);
  backdrop-filter: blur(22px);
}

.brand {
  color: var(--ink);
}

.brand-mark {
  border-color: rgba(103, 210, 255, 0.42);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), transparent 38%),
    linear-gradient(135deg, #d9f3ff, #67d2ff 48%, #14335a);
  color: #06111f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 14px 30px rgba(103, 210, 255, 0.2);
}

.site-header nav {
  color: #c9d3e5;
}

.hero-market {
  min-height: min(900px, calc(100svh - 72px));
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
}

.hero-market::before {
  content: "";
  position: absolute;
  inset: clamp(18px, 4vw, 44px);
  border: 1px solid rgba(226, 191, 107, 0.28);
  pointer-events: none;
}

.hero-market::after {
  content: "";
  position: absolute;
  right: 8vw;
  bottom: 7vw;
  width: min(560px, 50vw);
  aspect-ratio: 1;
  border: 1px solid rgba(103, 210, 255, 0.18);
  background:
    linear-gradient(90deg, transparent 49%, rgba(226, 191, 107, 0.22) 49% 51%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(103, 210, 255, 0.2) 49% 51%, transparent 51%);
  opacity: 0.55;
  transform: rotate(18deg);
  pointer-events: none;
}

.eyebrow,
.panel-label {
  color: var(--gold);
}

.hero-tagline,
.winner-result output {
  color: #cfefff;
}

.hero-copy,
.page-hero p,
.account-header p,
.live-draw-panel p,
.giveaway-card p,
.workflow-grid p,
.portal-intro p,
.signed-out-state p,
.issue-box p,
.info-card p,
.admin-lock p,
.winner-result p,
.entry-item span,
.admin-table td span {
  color: #aeb8c8;
}

.primary-link,
.primary-button,
.card-button {
  border: 1px solid rgba(103, 210, 255, 0.38);
  background:
    linear-gradient(135deg, rgba(103, 210, 255, 0.95), rgba(53, 240, 193, 0.82));
  color: #06111f;
  box-shadow: 0 18px 46px rgba(53, 240, 193, 0.18);
}

.primary-link:hover,
.primary-button:hover,
.card-button:hover {
  background:
    linear-gradient(135deg, rgba(154, 223, 255, 1), rgba(215, 255, 122, 0.9));
}

.secondary-link,
.secondary-button,
.google-button {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.live-draw-panel,
.giveaway-card,
.auth-card,
.entry-card,
.entries-section,
.workflow-grid > div,
.portal-intro,
.info-card,
.admin-lock,
.wheel-panel,
.admin-table-wrap,
.shell {
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.live-draw-panel,
.giveaway-card.featured {
  border-color: rgba(226, 191, 107, 0.34);
}

.giveaway-card.featured {
  background:
    linear-gradient(135deg, rgba(103, 210, 255, 0.2), rgba(226, 191, 107, 0.14)),
    rgba(15, 23, 33, 0.92);
}

.status-pill {
  background: rgba(103, 210, 255, 0.12);
  color: #bfefff;
}

input,
.entry-item {
  border-color: var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
}

input:focus {
  border-color: var(--blue);
  outline: 4px solid rgba(103, 210, 255, 0.13);
}

.empty-state {
  border-color: rgba(226, 191, 107, 0.28);
  color: #aeb8c8;
}

.wheel {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    conic-gradient(
      from -12deg,
      #67d2ff 0 30deg,
      #35f0c1 30deg 60deg,
      #d7ff7a 60deg 90deg,
      #ffcf5c 90deg 120deg,
      #ff8f70 120deg 150deg,
      #ff5f8f 150deg 180deg,
      #b99cff 180deg 210deg,
      #7d6bff 210deg 240deg,
      #4a8cff 240deg 270deg,
      #27d2ff 270deg 300deg,
      #e2bf6b 300deg 330deg,
      #101322 330deg 360deg
    );
  box-shadow:
    inset 0 0 0 12px rgba(255, 255, 255, 0.14),
    inset 0 0 0 28px rgba(0, 0, 0, 0.16),
    0 0 34px rgba(103, 210, 255, 0.22),
    0 28px 80px rgba(0, 0, 0, 0.38);
}

.wheel span {
  background: #08111d;
  color: #e8f8ff;
}

.admin-table code {
  color: #cfefff;
}

@media (max-width: 940px) {
  .hero-market {
    grid-template-columns: 1fr;
  }

  .hero-market::after {
    width: 78vw;
    opacity: 0.28;
  }
}

/* Layout unification: keep the current look, align spacing across pages. */
:root {
  --page-gap: 16px;
  --section-gap: clamp(18px, 3vw, 28px);
}

#app,
.site-header {
  position: relative;
  z-index: 1;
}

#entryCanvas.app-background-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-view {
  position: relative;
  min-height: calc(100svh - 72px);
}

.section-band,
.portal-shell,
.page-hero {
  position: relative;
  z-index: 1;
}

.portal-shell,
.admin-dashboard {
  display: grid;
  gap: var(--page-gap);
}

.portal-intro,
.account-header,
.entries-section {
  margin: 0;
}

.account-grid,
.giveaway-grid,
.entry-list,
.workflow-grid,
.button-row {
  gap: var(--page-gap);
}

.page-hero {
  padding-bottom: var(--section-gap);
}

.section-band.flush-top {
  padding-top: 0;
}

.auth-card.standalone {
  width: min(520px, 100%);
}

@media (max-width: 620px) {
  :root {
    --page-gap: 14px;
  }
}

/* Admin-only drawing controls. */
.admin-draw-header {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.admin-draw-header label {
  margin: 0;
}

.admin-draw-header select {
  width: min(420px, 100%);
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: #101722;
  color: #f5f7fb;
  padding: 0 13px;
  font: inherit;
  font-weight: 800;
}

.admin-draw-header select option {
  background-color: #101722;
  color: #f5f7fb;
}

.admin-draw-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.96;
}

@media (max-width: 620px) {
  .wheel-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    padding: 20px;
  }

  .wheel-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 250px;
    overflow: hidden;
  }

  .wheel {
    width: min(220px, 58vw) !important;
    max-width: calc(100vw - 96px) !important;
    border-width: 8px;
  }

  .wheel span {
    width: min(92px, 32vw);
    font-size: 1.5rem;
  }

  .winner-result output {
    font-size: clamp(2.6rem, 18vw, 4.2rem);
  }

  .admin-table {
    min-width: 640px;
  }
}

@media (max-width: 760px) {
  #adminView .wheel-panel {
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
  }

  #adminView .wheel-wrap {
    min-width: 0;
    overflow: hidden;
  }

  #adminView .wheel {
    width: min(240px, 60vw) !important;
    max-width: calc(100vw - 96px) !important;
  }
}

/* Admin wheel containment: keep the draw wheel inside its card on every screen. */
#adminView .wheel-panel {
  overflow: hidden;
}

#adminView .wheel-wrap {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

#adminView #winnerWheel {
  box-sizing: border-box;
  width: min(310px, 100%) !important;
  max-width: 100% !important;
}

#adminView .winner-result {
  min-width: 0;
}

#adminView .winner-result output,
#adminView #winnerDetails,
#adminView #adminSelectedGiveaway {
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  #adminView .wheel-panel {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px;
    padding: clamp(14px, 4vw, 20px);
  }

  #adminView .wheel-wrap {
    min-height: auto;
    padding: 6px 0;
  }

  #adminView #winnerWheel {
    width: min(220px, 62vw) !important;
    max-width: calc(100vw - 96px) !important;
    border-width: 8px;
  }

  #adminView #winnerWheel span {
    width: min(88px, 30vw);
    font-size: 1.45rem;
  }

  #adminView #adminSelectedGiveaway {
    font-size: clamp(1.75rem, 9vw, 3.1rem);
  }

  #adminView .winner-result output {
    font-size: clamp(2.4rem, 16vw, 3.8rem);
  }
}
