:root {
  --ozzy-black: #0B0B0B;
  --ozzy-ink: #1A1A1A;
  --ozzy-yellow: #FFC400;
  --ozzy-yellow-dark: #E0A800;
  --ozzy-white: #FFFFFF;
  --ozzy-red: #E23A2E;
  --ozzy-green: #3FA34D;
  --ozzy-grey: #8A8A8A;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--ozzy-black);
  color: var(--ozzy-white);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
}

body {
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.nums { font-variant-numeric: tabular-nums; }

.screen {
  min-height: 100dvh;
  background: var(--ozzy-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 16px 20px;
}

.screen:has(.home) {
  padding: 10px 16px 12px;
  justify-content: flex-start;
}

.logo {
  width: min(280px, 70vw);
  height: auto;
  margin: 24px auto 16px;
}

.logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
}

.btn {
  display: block;
  width: 100%;
  min-height: 56px;
  background: var(--ozzy-yellow);
  color: var(--ozzy-black);
  border: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 #000;
  cursor: pointer;
}

.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }

.btn-ghost {
  background: transparent;
  color: var(--ozzy-yellow);
  box-shadow: none;
  min-height: 44px;
}

.hidden { display: none !important; }

#game-root, #ui-root {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

#phaser-host {
  width: 100%;
  max-width: 540px;
  height: min(100dvh, 960px);
  background: #0B0B0B;
}
.pause-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(11, 11, 11, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
}
.pause-overlay p {
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ozzy-yellow);
}
.pause-overlay .btn { max-width: 360px; }
.mute-row { text-align: center; }

.footer-link {
  color: var(--ozzy-grey);
  font-size: 12px;
  text-decoration: none;
}

.nick-skip-warn {
  color: var(--ozzy-yellow);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  margin: 12px 0 8px;
}

.home {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 8px;
  min-height: calc(100dvh - 22px);
}
.screen:has(.score-screen) {
  justify-content: flex-start;
  overflow: hidden;
  height: 100dvh;
  max-height: 100dvh;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
.score-screen {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 24px;
}
.score-screen h1.nums {
  font-size: 48px;
  line-height: 1;
  text-align: center;
}
.score-screen .taco-king,
.score-screen .you-won {
  font-size: 22px;
  margin: 8px 0 4px;
}

.lang-row { display: flex; gap: 12px; width: 100%; max-width: 360px; }
.lang-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  background: var(--ozzy-ink);
  color: var(--ozzy-white);
  border: 2px solid var(--ozzy-yellow);
  font-weight: 800;
  cursor: pointer;
}

.taco-king, .you-won {
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--ozzy-yellow);
  line-height: 1.1;
  transform: rotate(-2deg);
  margin: 4px 0 8px;
}
.win-prize {
  text-align: center;
  font-weight: 900;
  font-size: 22px;
}
.win-wait {
  text-align: center;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.3;
  max-width: 360px;
  margin: 0 auto;
}
.win-dates {
  text-align: center;
  font-weight: 700;
  color: var(--ozzy-yellow);
}
.win-banner-wrap {
  width: 100%;
  max-width: 420px;
  background: #161616;
  border: 2px solid var(--ozzy-yellow);
  padding: 16px 12px 8px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.win-banner { background: var(--ozzy-yellow); color: var(--ozzy-black); font-weight: 900; text-align: center; padding: 14px; text-transform: uppercase; }
.reward-card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--ozzy-ink);
  color: var(--ozzy-white);
  border: 2px solid #FFC400;
  padding: 16px;
  margin: 12px 0;
  cursor: pointer;
}
.reward-card h2 { margin-bottom: 8px; }
.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  margin-bottom: 8px;
}
.pill-ready { background: var(--ozzy-green); color: #fff; }
.pill-wait { background: #C98900; color: #0B0B0B; }
.pill-soon { background: var(--ozzy-red); color: #fff; }
.pill-used, .pill-dead { background: #444; color: #ccc; }
.coupon-page, .coupon {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 24px;
}
.coupon-title {
  font-size: 42px;
  text-align: center;
  line-height: 1.05;
}
.how-to {
  width: 100%;
  text-align: left;
}
.how-to h2 { font-size: 16px; color: var(--ozzy-yellow); text-align: left; }
.how-to-steps {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
  text-align: left;
}
.no-purchase {
  background: var(--ozzy-green);
  color: #fff;
  font-weight: 800;
  text-align: center;
  padding: 10px 12px;
}
.coupon-range {
  text-align: center;
  font-weight: 900;
  font-size: 20px;
  color: var(--ozzy-yellow);
  line-height: 1.25;
}
.coupon-dates { text-align: center; font-weight: 700; }
.coupon-code { text-align: center; }
.qrbox { width: 240px; height: 240px; margin: 0 auto; background: #fff; }
.urgency { text-align: center; font-weight: 800; }
.urgency-red { color: var(--ozzy-red); }
.coupon-from { text-align: center; font-weight: 800; color: var(--ozzy-yellow); font-size: 20px; }
.coupon.is-early, .coupon.is-done { opacity: 0.62; }
.fine-print { color: var(--ozzy-grey); max-width: 360px; margin: 0 auto; text-align: center; font-size: 13px; }
.end-reason {
  font-size: 32px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--ozzy-yellow);
  line-height: 1.05;
  margin: 8px 0 4px;
}
.lb-row { display: grid; grid-template-columns: 48px 1fr 72px; gap: 8px; padding: 10px 8px; border-bottom: 1px solid #222; font-variant-numeric: tabular-nums; }
.lb-row.you-row { border-left: 4px solid var(--ozzy-yellow); background: #161616; }
.lb-title {
  white-space: nowrap;
  font-size: clamp(16px, 5vw, 24px);
  letter-spacing: -0.04em;
  text-align: center;
  width: 100%;
  max-width: 328px;
  line-height: 1.1;
  margin: 8px 0 0;
}
.tabs { display: flex; gap: 8px; margin: 12px 0; }
.tab { flex: 1; min-height: 44px; background: #1A1A1A; color: #fff; border: 1px solid #FFC400; font-weight: 800; }
.mute-row { text-align: right; }
#privacy-copy { max-width: 420px; width: 100%; }
#privacy-copy h1 { margin: 12px 0; }
.privacy-mail { color: var(--ozzy-yellow); }
#pid { word-break: break-all; color: #FFC400; font-variant-numeric: tabular-nums; }

.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drift {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
}
.drift-item {
  position: absolute;
  top: -8px;
  width: 34px;
  height: auto;
  animation: drift-fall 14s linear infinite;
}
.drift-item.d1 { left: 6%; animation-duration: 11s; animation-delay: -2s; }
.drift-item.d2 { left: 30%; animation-duration: 15s; animation-delay: -8s; }
.drift-item.d3 { left: 56%; animation-duration: 13s; animation-delay: -5s; }
.drift-item.d4 { left: 78%; animation-duration: 17s; animation-delay: -11s; }
@keyframes drift-fall {
  0% { transform: translateY(-18px); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateY(108px); opacity: 0; }
}
.home-logo {
  position: relative;
  z-index: 1;
  text-align: center;
  animation: logo-wobble 5.5s ease-in-out infinite;
}
.logo-brand {
  display: block;
  color: var(--ozzy-yellow);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.logo-game {
  display: block;
  color: var(--ozzy-white);
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.92;
  text-transform: uppercase;
  transform: rotate(-3.5deg);
  margin-top: 2px;
}
@keyframes logo-wobble {
  0%, 78%, 100% { transform: rotate(0deg); }
  84% { transform: rotate(-2.4deg); }
  90% { transform: rotate(2.1deg); }
  95% { transform: rotate(-1deg); }
}
.home-flavour {
  text-align: center;
  font-size: 14px;
  color: #ddd;
}
.home-best {
  text-align: center;
  font-size: 13px;
  color: var(--ozzy-yellow);
  margin-top: -4px;
}
.item-strip {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.catch-col, .junk-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.catch-col { flex: 1; min-width: 0; }
.junk-col { flex-shrink: 0; }
.foods {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 2px;
}
.foods img {
  height: 44px;
  width: 44px;
  object-fit: contain;
}
.junk-col img {
  height: 44px;
  width: auto;
}
.mark {
  width: 100%;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.mark svg {
  width: 20px;
  height: 20px;
  display: block;
}
.home-three {
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(1.4deg);
}
.home-lives, .home-closed, .footer-note {
  text-align: center;
  color: var(--ozzy-grey);
  font-size: 12px;
}
.btn-play {
  min-height: 64px;
  font-size: 22px;
  letter-spacing: 0.1em;
  box-shadow: 6px 6px 0 #000;
}
.btn-play:active { box-shadow: 3px 3px 0 #000; }
.prize-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  background: none;
  border: 0;
  color: var(--ozzy-white);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.prize-teaser .chevron {
  color: var(--ozzy-yellow);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}
.home-secondary {
  display: flex;
  gap: 8px;
  width: 100%;
}
.btn-quiet {
  flex: 1;
  min-height: 44px;
  background: transparent;
  color: var(--ozzy-yellow);
  border: 2px solid var(--ozzy-yellow);
  box-shadow: 3px 3px 0 #000;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
}
.btn-quiet:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 #000; }
.home-footer {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  column-gap: 4px;
  width: 100%;
  margin-top: auto;
  padding-top: 4px;
  color: var(--ozzy-grey);
  font-size: 11px;
}
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-mini, .sound-mini {
  background: none;
  border: 0;
  color: var(--ozzy-grey);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  padding: 6px 2px;
  min-height: 44px;
}
.lang-mini.is-on { color: var(--ozzy-white); }
.home-footer .footer-link { font-size: 11px; color: var(--ozzy-grey); padding: 12px 4px; }
.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;
}
.social-mini, .social-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.social-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
a.social-icon,
a.social-icon:link,
a.social-icon:visited {
  color: #C6C6C6;
}
a.social-icon:hover,
a.social-icon:focus,
a.social-icon:active,
a.social-icon:focus-visible {
  color: var(--ozzy-yellow);
}
.social-icon:focus { outline: none; }
.social-icon:focus-visible {
  outline: 2px solid var(--ozzy-yellow);
  outline-offset: 2px;
}
.social-icon svg { width: 26px; height: 26px; display: block; overflow: visible; }
.follow-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 2px 0 6px;
}
.follow-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ozzy-grey);
  text-transform: none;
  letter-spacing: 0;
}
.follow-share {
  background: none;
  border: 0;
  color: var(--ozzy-grey);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.review-card {
  background: #161616;
  border: 1px solid #333;
  padding: 14px 12px;
  margin: 8px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.review-link {
  color: var(--ozzy-white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}
.review-dismiss {
  background: none;
  border: 0;
  color: var(--ozzy-grey);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  align-self: flex-start;
  padding: 0;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 24px 16px;
}
.modal {
  background: var(--ozzy-ink);
  border: 3px solid var(--ozzy-yellow);
  width: 100%;
  max-width: 420px;
  padding: 20px 16px 16px;
  box-shadow: 6px 6px 0 #000;
  transform: rotate(-0.7deg);
}
.modal h2 {
  color: var(--ozzy-yellow);
  transform: rotate(-2deg);
  margin-bottom: 10px;
  font-size: 22px;
}
.modal p { margin: 7px 0; font-size: 14px; line-height: 1.35; }
.modal .prize-facts { color: var(--ozzy-yellow); font-weight: 800; white-space: pre-wrap; }
.modal .muted { color: var(--ozzy-grey); font-size: 13px; }
.modal .btn { margin-top: 12px; }

@media (max-height: 640px) {
  .home-hero { min-height: 78px; }
  .logo-game { font-size: 34px; }
  .home { gap: 6px; }
  .foods img { height: 36px; width: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .drift { display: none; }
  .home-logo, .drift-item { animation: none !important; }
}
