:root {
  --pg-blue: #075eea;
  --pg-deep: #050e8c;
  --pg-cyan: #00c9f0;
  --pg-orange: #ff6502;
  --cream: #fffdf4;
  --ink: #15214a;
  --muted: #73809d;
  --line: #e6eaf2;
  --surface: #ffffff;
  --admin-bg: #f5f7fb;
  --success: #12a66a;
  --danger: #e34f61;
  --shadow: 0 22px 70px rgba(5, 14, 140, 0.18);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  color: var(--ink);
  background: #edf3ff;
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(0, 201, 240, 0.45);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.route-shell { min-height: 100vh; }

/* Player experience */
.player-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(390px, 560px);
  justify-content: center;
  align-items: center;
  gap: clamp(36px, 7vw, 112px);
  padding: 42px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 12% 12%, rgba(0, 201, 240, 0.22), transparent 28%),
    radial-gradient(circle at 89% 82%, rgba(255, 101, 2, 0.18), transparent 30%),
    linear-gradient(135deg, #f7fbff 0%, #eaf1ff 45%, #fff7ec 100%);
}

.player-shell::before,
.player-shell::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 44px solid rgba(7, 94, 234, 0.05);
  width: 320px;
  aspect-ratio: 1;
  animation: orbit 16s linear infinite;
}
.player-shell::before { top: -180px; left: -130px; }
.player-shell::after {
  right: -150px;
  bottom: -190px;
  border-color: rgba(255, 101, 2, 0.06);
  animation-direction: reverse;
}

.campaign-copy { position: relative; z-index: 1; }
.campaign-brand-panel {
  min-height: 420px;
  display: grid;
  place-items: center;
}
.campaign-brand-logo {
  width: min(310px, 78%);
  height: auto;
  filter: drop-shadow(0 24px 36px rgba(5, 14, 140, .2));
  animation: logo-arrival .8s cubic-bezier(.2, .8, .2, 1) both, logo-float 4s ease-in-out .8s infinite;
}
@keyframes logo-arrival { from { opacity: 0; transform: scale(.82) translateY(24px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes logo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.campaign-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--pg-blue);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
  margin: 0 0 22px;
}
.campaign-kicker::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--pg-orange);
}
.campaign-copy h1 {
  max-width: 420px;
  margin: 0;
  color: var(--pg-deep);
  font-size: clamp(46px, 5vw, 76px);
  letter-spacing: -.055em;
  line-height: .96;
}
.campaign-copy h1 span { color: var(--pg-orange); }
.campaign-copy > p:not(.campaign-kicker) {
  max-width: 420px;
  margin: 24px 0 30px;
  color: #56627d;
  font-size: 16px;
  line-height: 1.65;
}
.campaign-stats { display: flex; gap: 30px; }
.campaign-stat strong { display: block; color: var(--pg-blue); font-size: 26px; }
.campaign-stat span { color: var(--muted); font-size: 12px; }
.admin-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  border: 0;
  background: transparent;
  color: var(--pg-deep);
  padding: 4px 0;
  font-weight: 700;
}
.admin-link::after { content: "→"; transition: transform .2s; }
.admin-link:hover::after { transform: translateX(4px); }

.game-device {
  position: relative;
  z-index: 1;
  width: min(390px, calc(100vw - 32px));
  height: min(844px, calc(100svh - 40px));
  aspect-ratio: 390 / 844;
  overflow: hidden;
  border-radius: 28px;
  background: var(--cream);
  box-shadow: var(--shadow), 0 0 0 9px rgba(255, 255, 255, .72);
  view-transition-name: game-stage;
}
.game-device::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 20;
  border: 1px solid rgba(184, 232, 255, .9);
  border-radius: inherit;
}

.game-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--cream) url("./assets/bg.png") center / cover no-repeat;
  animation: screenIn .55s cubic-bezier(.2,.8,.2,1) both;
}
.game-screen.is-leaving { animation: screenOut .24s ease both; }
.game-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 43%, rgba(255,255,255,.42), transparent 47%);
  pointer-events: none;
}
.game-logo {
  position: absolute;
  z-index: 3;
  top: 2.85%;
  left: 50%;
  width: 18.5%;
  transform: translateX(-50%);
  filter: drop-shadow(0 7px 10px rgba(5, 14, 140, .13));
  animation: logoFloat 4s ease-in-out infinite;
}
.brand-strip {
  position: absolute;
  z-index: 3;
  width: 91.8%;
  left: 4.1%;
  bottom: .7%;
  animation: riseIn .7s .42s cubic-bezier(.2,.8,.2,1) both;
}
.art-title {
  position: absolute;
  z-index: 4;
  left: 50%;
  transform: translateX(-50%);
  object-fit: contain;
  animation: centerDrop .68s .08s cubic-bezier(.16,.88,.28,1.12) both;
}
.title-register { width: 87%; top: 11.6%; }
.title-spin { width: 83.5%; top: 12.3%; }
.title-win { width: 81%; top: 11.4%; }
.title-loss { width: 69%; top: 12.4%; }
.title-prize { width: 105%; top: 50%; }

.image-cta {
  position: absolute;
  z-index: 8;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  padding: 0;
  border: 0;
  background: transparent;
  transition: transform .18s ease, filter .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.image-cta img { width: 100%; display: block; animation: ctaIn .62s .48s cubic-bezier(.16,.9,.3,1.2) both; }
.image-cta:hover { transform: translateX(-50%) translateY(-2px) scale(1.025); filter: drop-shadow(0 8px 7px rgba(5,14,140,.17)); }
.image-cta:active { transform: translateX(-50%) translateY(1px) scale(.98); }
.image-cta[disabled] { cursor: wait; opacity: .78; }
.cta-start { bottom: 13.7%; }
.signup-form .cta-form {
  position: relative;
  left: auto;
  bottom: auto;
  display: block;
  width: 60%;
  margin: 18px auto 0;
  transform: none;
}
.signup-form .cta-form:hover { transform: translateY(-2px) scale(1.025); }
.signup-form .cta-form:active { transform: translateY(1px) scale(.98); }
.cta-spin { bottom: 13.5%; width: 63%; }
.cta-result { bottom: 13.5%; width: 60%; }

.welcome-logo {
  position: absolute;
  z-index: 3;
  width: 72%;
  top: 19%;
  left: 50%;
  transform: translateX(-50%);
  animation: welcomePop .85s cubic-bezier(.18,.89,.32,1.28) both;
}
.welcome-title {
  position: absolute;
  z-index: 4;
  width: 109%;
  left: 50%;
  top: 49.5%;
  transform: translateX(-50%);
  animation: centerRise .72s .18s cubic-bezier(.2,.85,.25,1.08) both;
}
.tap-hint {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 21.5%;
  transform: translateX(-50%);
  color: var(--pg-deep);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: pulse 1.8s ease-in-out infinite;
}
.welcome-button {
  position: absolute;
  inset: 0;
  z-index: 7;
  border: 0;
  background: transparent;
}

.signup-form {
  position: absolute;
  z-index: 5;
  top: 30.4%;
  left: 6.7%;
  width: 86.5%;
}
.field { position: relative; height: 76px; animation: fieldIn .52s cubic-bezier(.2,.8,.2,1) both; }
.field:nth-child(1) { animation-delay: .13s; }
.field:nth-child(2) { animation-delay: .2s; }
.field:nth-child(3) { animation-delay: .27s; }
.field:nth-child(4) { animation-delay: .34s; }
.field label {
  display: block;
  color: var(--pg-deep);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.field input {
  width: 100%;
  height: 40px;
  border: 0;
  border-bottom: 3px solid var(--pg-orange);
  border-radius: 0;
  background: transparent;
  color: var(--pg-deep);
  font-size: 17px;
  font-weight: 600;
  padding: 4px 2px 7px;
}
.field:nth-child(even) input { border-image: linear-gradient(90deg, var(--pg-blue), var(--pg-cyan)) 1; }
.field input:focus { outline: 0; background: rgba(255,255,255,.38); }
.field-error { color: #d8343f; font-size: 11px; position: absolute; right: 0; top: 0; }
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 1px;
  animation: fieldIn .52s .41s cubic-bezier(.2,.8,.2,1) both;
}
.consent-row input {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  margin: 0;
  appearance: none;
  border: 2px solid var(--pg-blue);
  border-radius: 2px;
  background: transparent;
}
.consent-row input:checked { background: var(--pg-blue); position: relative; }
.consent-row input:checked::after { content: "✓"; color: white; display: grid; place-items: center; height: 100%; font-weight: 800; }
.consent-row span {
  color: var(--pg-deep);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}

.wheel-wrap {
  position: absolute;
  z-index: 4;
  top: 30.7%;
  left: -0.5%;
  width: 101%;
  aspect-ratio: 1;
  filter: drop-shadow(0 18px 9px rgba(5, 14, 140, .15));
  animation: wheelStageIn .78s .14s cubic-bezier(.15,.86,.28,1.12) both;
}
.wheel-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: rotate(var(--wheel-angle, 0deg));
  transition: transform 4.9s cubic-bezier(.08,.68,.04,1);
  will-change: transform;
}
.wheel-img.idle { animation: wheelBreathe 4s ease-in-out infinite; }
.wheel-pointer {
  position: absolute;
  z-index: 6;
  width: 12%;
  top: 30.5%;
  left: 50%;
  transform: translate(-50%, -8%);
  transform-origin: 50% 0;
  filter: drop-shadow(0 4px 3px rgba(5, 14, 140, .23));
  animation: pointerIn .5s .5s cubic-bezier(.18,.89,.32,1.28) both;
}
.wheel-pointer.ticking { animation: pointerTick .11s linear infinite alternate; }

.result-visual {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 35.5%;
  width: 65%;
  transform: translateX(-50%);
  animation: resultPop .75s cubic-bezier(.17,.84,.44,1) both;
}
.result-visual.loss { width: 63%; top: 37%; transform: translateX(-50%) rotate(-2.9deg); }
.confetti {
  position: absolute;
  z-index: 4;
  left: -31%;
  top: 28%;
  width: 162%;
  opacity: .82;
  animation: confettiIn 1.1s ease-out both, confettiFloat 5s 1.1s ease-in-out infinite;
}
.prize-card {
  position: absolute;
  z-index: 6;
  top: 33%;
  left: 9%;
  width: 82%;
  padding: 20px 18px;
  text-align: center;
  border: 2px solid rgba(7,94,234,.14);
  border-radius: 20px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 18px 45px rgba(5,14,140,.12);
  backdrop-filter: blur(8px);
}
.prize-card small { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.prize-card h2 { margin: 8px 0 6px; color: var(--pg-deep); font-size: 25px; }
.prize-code {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  border-radius: 9px;
  background: #edf5ff;
  color: var(--pg-blue);
  font-weight: 800;
  letter-spacing: .12em;
}

/* Admin */
.admin-shell { min-height: 100vh; background: var(--admin-bg); }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 248px;
  padding: 28px 18px;
  color: white;
  background:
    radial-gradient(circle at 30% 0%, rgba(0,201,240,.22), transparent 32%),
    linear-gradient(165deg, #081996 0%, #043eaf 100%);
}
.admin-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 34px; }
.admin-brand img { width: 48px; height: 48px; object-fit: contain; }
.admin-brand strong { display: block; font-size: 16px; }
.admin-brand span { display: block; margin-top: 2px; color: #bcd9ff; font-size: 11px; }
.nav-label { margin: 0 12px 10px; color: #88b9ff; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.side-nav { display: grid; gap: 6px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #c9dcff;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  transition: background .2s, color .2s, transform .2s;
}
.nav-item:hover { background: rgba(255,255,255,.08); color: white; transform: translateX(2px); }
.nav-item.active { background: white; color: var(--pg-deep); box-shadow: 0 10px 26px rgba(0,0,0,.14); }
.nav-icon { width: 20px; text-align: center; font-size: 16px; }
.sidebar-bottom { position: absolute; left: 18px; right: 18px; bottom: 24px; }
.back-player { color: white; background: rgba(255,255,255,.1); }

.admin-main { min-height: 100vh; margin-left: 248px; }
.admin-topbar {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
}
.admin-topbar h1 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.admin-topbar p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid #dfe9e5;
  border-radius: 999px;
  background: #f5fff9;
  color: #267454;
  font-size: 11px;
  font-weight: 700;
}
.status-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #19b879; box-shadow: 0 0 0 4px rgba(25,184,121,.12); }
.avatar { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; color: white; background: linear-gradient(135deg, var(--pg-blue), var(--pg-cyan)); font-size: 12px; font-weight: 800; }
.admin-content { padding: 28px clamp(24px, 4vw, 54px) 60px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.section-head h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.section-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.date-chip { color: #53617e; font-size: 12px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi-card {
  position: relative;
  overflow: hidden;
  min-height: 134px;
  padding: 20px;
  border: 1px solid #e8ebf2;
  border-radius: 16px;
  background: white;
  box-shadow: 0 7px 25px rgba(28, 47, 91, .045);
  transition: transform .2s, box-shadow .2s;
  animation: adminRise .52s cubic-bezier(.2,.8,.2,1) both;
}
.kpi-card:nth-child(2) { animation-delay: .06s; }
.kpi-card:nth-child(3) { animation-delay: .12s; }
.kpi-card:nth-child(4) { animation-delay: .18s; }
.kpi-card:hover { transform: translateY(-3px); box-shadow: 0 13px 32px rgba(28,47,91,.08); }
.kpi-card::after { content: ""; position: absolute; width: 72px; height: 72px; border-radius: 50%; right: -22px; top: -24px; background: var(--kpi-tint, #eaf2ff); }
.kpi-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: var(--kpi-color, var(--pg-blue)); background: var(--kpi-tint, #eaf2ff); font-size: 15px; }
.kpi-label { margin-top: 15px; color: var(--muted); font-size: 11px; }
.kpi-value { display: flex; align-items: baseline; gap: 8px; margin-top: 3px; }
.kpi-value strong { font-size: 25px; letter-spacing: -.04em; }
.trend { color: var(--success); font-size: 10px; font-weight: 700; }
.trend.down { color: var(--danger); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, .8fr); gap: 16px; margin-top: 16px; }
.panel { border: 1px solid #e8ebf2; border-radius: 16px; background: white; box-shadow: 0 7px 25px rgba(28,47,91,.04); animation: adminRise .55s .12s cubic-bezier(.2,.8,.2,1) both; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px; }
.panel-head h3 { margin: 0; font-size: 14px; }
.panel-head span { color: var(--muted); font-size: 10px; }
.bar-chart {
  height: 228px;
  display: flex;
  align-items: flex-end;
  gap: clamp(10px, 2vw, 24px);
  padding: 28px 25px 26px;
  border-top: 1px solid #f0f2f6;
  background: repeating-linear-gradient(to bottom, transparent 0 43px, #f0f2f6 44px);
}
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; }
.bar { width: min(34px, 75%); min-height: 5px; border-radius: 7px 7px 2px 2px; background: linear-gradient(180deg, var(--pg-cyan), var(--pg-blue)); transform-origin: bottom; animation: growBar .75s ease both; }
.bar-col:nth-child(even) .bar { background: linear-gradient(180deg, #ff9b3f, var(--pg-orange)); }
.bar-col small { color: var(--muted); font-size: 9px; }
.distribution { display: grid; place-items: center; min-height: 270px; padding: 10px 20px 25px; }
.donut { position: relative; width: 145px; height: 145px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--pg-blue) 0 var(--win-share), #e9edf5 var(--win-share) 100%); }
.donut::after { content: ""; position: absolute; width: 100px; height: 100px; border-radius: 50%; background: white; }
.donut-value { position: relative; z-index: 1; text-align: center; }
.donut-value strong { display: block; font-size: 24px; }
.donut-value span { color: var(--muted); font-size: 10px; }
.legend { width: 100%; display: grid; gap: 10px; margin-top: 24px; }
.legend-row { display: flex; justify-content: space-between; font-size: 11px; }
.legend-row span:first-child::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--dot); }

.table-panel { margin-top: 16px; overflow: hidden; }
.toolbar { display: flex; gap: 10px; padding: 0 20px 16px; }
.search-box { position: relative; flex: 1; }
.search-box input, .filter-select, .form-control {
  width: 100%;
  height: 39px;
  border: 1px solid #e0e5ee;
  border-radius: 9px;
  background: white;
  color: var(--ink);
  padding: 0 12px;
  font-size: 12px;
}
.filter-select { width: auto; min-width: 135px; }
.btn { height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border: 1px solid #dfe4ed; border-radius: 9px; background: white; color: #3f4e6b; font-size: 12px; font-weight: 700; }
.btn:hover { border-color: #b8c5dc; background: #f8faff; }
.btn-primary { border-color: var(--pg-blue); color: white; background: var(--pg-blue); }
.btn-primary:hover { border-color: var(--pg-deep); background: var(--pg-deep); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 10px 20px; border-top: 1px solid #eef1f5; border-bottom: 1px solid #eef1f5; background: #fafbfd; color: #8a95aa; font-size: 9px; text-align: left; text-transform: uppercase; letter-spacing: .09em; }
.data-table td { padding: 13px 20px; border-bottom: 1px solid #f0f2f6; font-size: 11px; }
.data-table tr:last-child td { border-bottom: 0; }
.person { display: flex; align-items: center; gap: 10px; }
.person-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: white; background: linear-gradient(135deg, #9bbcff, var(--pg-blue)); font-size: 9px; font-weight: 800; }
.person strong { display: block; font-size: 11px; }
.person span { display: block; color: var(--muted); font-size: 9px; margin-top: 2px; }
.badge { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: #edf9f3; color: #23825c; font-size: 9px; font-weight: 700; }
.badge.loss { background: #fff3ec; color: #c7682c; }
.table-empty { padding: 40px !important; color: var(--muted); text-align: center; }

.prize-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.prize-admin-card { padding: 20px; }
.prize-admin-card:nth-child(2) { animation-delay: .2s; }
.prize-admin-card:nth-child(3) { animation-delay: .28s; }
.prize-admin-top { display: flex; align-items: center; gap: 12px; }
.prize-symbol { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: #eef5ff; font-size: 21px; }
.prize-admin-top h3 { margin: 0 0 3px; font-size: 14px; }
.prize-admin-top p { margin: 0; color: var(--muted); font-size: 10px; }
.stock-bar { height: 7px; overflow: hidden; margin: 18px 0 8px; border-radius: 10px; background: #eef1f5; }
.stock-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pg-blue), var(--pg-cyan)); }
.stock-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.card-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.prize-name-field { grid-column: 1 / -1; }
.delete-prize {
  width: 100%;
  margin-top: 16px;
  padding: 11px 14px;
  border: 1px solid #ffd1d1;
  border-radius: 10px;
  background: #fff7f7;
  color: #c72d2d;
  font: 700 13px "DM Sans", sans-serif;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.delete-prize:hover:not(:disabled) { background: #ffecec; border-color: #ffaaaa; transform: translateY(-1px); }
.delete-prize:disabled { cursor: not-allowed; opacity: .45; }
.mini-field label, .settings-field label { display: block; margin-bottom: 6px; color: #77839a; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.mini-field input { width: 100%; height: 36px; border: 1px solid #e0e5ee; border-radius: 8px; padding: 0 9px; font-size: 11px; }

.settings-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 16px; }
.settings-card { padding: 24px; }
.settings-card h3 { margin: 0 0 4px; font-size: 15px; }
.settings-card > p { margin: 0 0 24px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.settings-form { display: grid; gap: 18px; }
.settings-field .range-line { display: flex; align-items: center; gap: 14px; }
.settings-field input[type="range"] { flex: 1; accent-color: var(--pg-blue); }
.range-value { min-width: 52px; color: var(--pg-deep); font-weight: 800; }
.switch-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid #eef1f5; }
.switch-copy strong { display: block; font-size: 12px; }
.switch-copy span { color: var(--muted); font-size: 10px; }
.switch { position: relative; width: 42px; height: 23px; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: absolute; inset: 0; border-radius: 20px; background: #d6dce7; transition: .2s; }
.switch span::after { content: ""; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(0,0,0,.18); transition: .2s; }
.switch input:checked + span { background: var(--pg-blue); }
.switch input:checked + span::after { transform: translateX(19px); }
.activity-list { display: grid; gap: 17px; margin-top: 24px; }
.activity { display: flex; gap: 12px; }
.activity-dot { width: 9px; height: 9px; flex: 0 0 auto; margin-top: 4px; border-radius: 50%; background: var(--pg-blue); box-shadow: 0 0 0 5px #eaf2ff; }
.activity strong { display: block; font-size: 11px; }
.activity span { color: var(--muted); font-size: 9px; }

.mobile-admin-head, .mobile-tabs { display: none; }
.toast-region { position: fixed; z-index: 100; right: 22px; bottom: 22px; display: grid; gap: 10px; pointer-events: none; }
.toast { min-width: 250px; padding: 13px 16px; border-radius: 11px; color: white; background: #15214a; box-shadow: 0 12px 32px rgba(0,0,0,.19); font-size: 12px; animation: toastIn .25s ease both; }
.toast.success { background: #14764f; }
.toast.error { background: #b63644; }

@keyframes screenIn { from { opacity: 0; transform: translateY(12px) scale(1.015); } to { opacity: 1; transform: none; } }
@keyframes screenOut { to { opacity: 0; transform: translateY(-8px) scale(.985); } }
@keyframes welcomePop { from { opacity: 0; transform: translateX(-50%) scale(.78); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
@keyframes centerDrop { from { opacity: 0; transform: translateX(-50%) translateY(-18px) scale(.94); } to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); } }
@keyframes centerRise { from { opacity: 0; transform: translateX(-50%) translateY(20px) scale(.95); } to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); } }
@keyframes ctaIn { from { opacity: 0; transform: translateY(18px) scale(.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fieldIn { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: translateX(0); } }
@keyframes wheelStageIn { from { opacity: 0; transform: scale(.72) rotate(-18deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes pointerIn { from { opacity: 0; transform: translate(-50%, -45%) scale(.6); } to { opacity: 1; transform: translate(-50%, -8%) scale(1); } }
@keyframes adminRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes logoFloat { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-5px); } }
@keyframes wheelBreathe { 0%,100% { transform: rotate(var(--wheel-angle)) scale(1); } 50% { transform: rotate(calc(var(--wheel-angle) + 1deg)) scale(1.008); } }
@keyframes pointerTick { from { transform: translate(-50%,-8%) rotate(-5deg); } to { transform: translate(-50%,-8%) rotate(5deg); } }
@keyframes resultPop { 0% { opacity: 0; transform: translateX(-50%) scale(.55) rotate(-8deg); } 70% { transform: translateX(-50%) scale(1.08) rotate(2deg); } 100% { opacity: 1; transform: translateX(-50%) scale(1); } }
@keyframes confettiIn { from { opacity: 0; transform: translateY(-80px) rotate(10deg); } to { opacity: .82; transform: none; } }
@keyframes confettiFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes pulse { 0%,100% { opacity: .55; transform: translateX(-50%) scale(.98); } 50% { opacity: 1; transform: translateX(-50%) scale(1.03); } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes growBar { from { transform: scaleY(0); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-old(game-stage) { animation: viewStageOut .28s ease both; }
::view-transition-new(game-stage) { animation: viewStageIn .42s cubic-bezier(.2,.8,.2,1) both; }
@keyframes viewStageOut { to { opacity: 0; transform: scale(.975) translateY(-7px); } }
@keyframes viewStageIn { from { opacity: 0; transform: scale(1.025) translateY(9px); } }

@media (max-width: 980px) {
  .player-shell { grid-template-columns: 1fr; padding: 20px; }
  .campaign-copy { display: none; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prize-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { background: var(--cream); }
  .player-shell { display: block; padding: 0; background: var(--cream); }
  .game-device { width: 100vw; height: 100svh; max-width: none; border-radius: 0; box-shadow: none; }
  .game-device::after { border-radius: 0; }
  .sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .mobile-admin-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; color: white; background: var(--pg-deep); }
  .mobile-admin-head img { width: 37px; }
  .mobile-admin-head button { border: 1px solid rgba(255,255,255,.25); border-radius: 8px; color: white; background: transparent; padding: 7px 10px; }
  .mobile-tabs {
    position: sticky;
    top: 0;
    z-index: 25;
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 9px 12px;
    border-bottom: 1px solid #e5e9f2;
    background: rgba(255,255,255,.96);
    scrollbar-width: none;
  }
  .mobile-tabs::-webkit-scrollbar { display: none; }
  .mobile-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    border: 1px solid #e2e7f0;
    border-radius: 9px;
    background: white;
    color: #5a6781;
    font-size: 11px;
    font-weight: 700;
  }
  .mobile-tab.active { border-color: var(--pg-blue); color: white; background: var(--pg-blue); }
  .admin-topbar { height: auto; padding: 20px 18px; }
  .status-chip { display: none; }
  .admin-content { padding: 20px 16px 42px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi-card { padding: 15px; min-height: 122px; }
  .dashboard-grid, .settings-grid { grid-template-columns: 1fr; }
  .toolbar { flex-wrap: wrap; }
  .search-box { flex-basis: 100%; }
  .table-panel { overflow-x: auto; }
  .data-table { min-width: 680px; }
}

@media (max-width: 410px) {
  .signup-form { top: 29.3%; }
  .field { height: 72px; }
  .consent-row span { font-size: 14px; }
  .kpi-grid { grid-template-columns: 1fr; }
}

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