:root {
  --clr-bg: #090a0f;
  --clr-panel: rgba(18, 18, 29, 0.96);
  --clr-accent: #ff3c3c;
  --clr-accent-dark: #cc1111;
  --clr-gold: #ffd700;
  --clr-gold-glow: #ffaa00;
  --clr-white: #f3f4fb;
  --clr-muted: #9aa0c4;
  --clr-danger: #ff2244;
  --font-game: 'Bangers', cursive;
  --font-body: 'Nunito', sans-serif;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-glow-red: 0 0 24px 4px rgba(255, 60, 60, 0.55);
  --shadow-glow-gold: 0 0 18px 4px rgba(255, 215, 0, 0.45);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--clr-bg);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--clr-bg);
  color: var(--clr-white);
  font-family: var(--font-body);
}

#ant-smasher-game button,
#ant-smasher-game a,
#ant-smasher-info a {
  -webkit-tap-highlight-color: transparent;
}

#ant-smasher-game button {
  font: inherit;
}

#site-header,#site-footer {
  position: relative;
  z-index: 40;
}

.site-fallback-header,.site-fallback-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px max(16px, env(safe-area-inset-left)) 12px max(16px, env(safe-area-inset-right));
  background: #0f1018;
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--clr-white);
}

.site-fallback-header {
  min-height: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-fallback-footer {
  min-height: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--clr-muted);
  font-size: 13px;
}

.site-fallback-logo,.site-fallback-footer a {
  color: var(--clr-accent);
  font-weight: 900;
  text-decoration: none;
}

.site-fallback-title {
  color: var(--clr-muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.ant-smasher-playing #site-header,body.ant-smasher-playing #site-footer {
  display: none;
}

html.ant-smasher-no-scroll,body.ant-smasher-no-scroll {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body.ant-smasher-playing {
  position: fixed;
  inset: 0;
  width: 100%;
  touch-action: none;
}

#ant-smasher-game {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: max(620px, calc(100svh - 104px));
  display: grid;
  place-items: center;
  overflow: visible;
  padding: calc(20px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: var(--clr-bg);
}

#ant-smasher-game:not(.ant-smasher-playing) {
  background:
    radial-gradient(ellipse at 50% 38%, rgba(70, 18, 78, 0.72) 0%, rgba(10, 10, 15, 0) 50%),
    linear-gradient(180deg, #090a0f 0%, #090a0f 100%);
}

#ant-smasher-game * {
  box-sizing: border-box;
}

#ant-smasher-game #ant-game-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

#ant-smasher-game.ant-smasher-playing {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100vw;
  height: var(--game-height, 100dvh);
  min-height: 0;
  padding: 0;
  margin: 0;
  display: block;
  overflow: hidden;
}

#ant-smasher-game.ant-smasher-playing #ant-game-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#ant-smasher-game:not(.ant-smasher-playing) #ant-game-canvas {
  display: none;
}

#ant-smasher-game #ant-hud {
  position: fixed;
  top: max(8px, env(safe-area-inset-top));
  left: max(10px, env(safe-area-inset-left));
  right: max(10px, env(safe-area-inset-right));
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(78px, 1fr) auto minmax(96px, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

#ant-smasher-game #ant-hud.ant-hidden {
  display: none;
}

#ant-smasher-game #ant-hud-left,#ant-smasher-game #ant-hud-right {
  display: flex;
  align-items: center;
  min-width: 0;
}

#ant-smasher-game #ant-hud-left {
  justify-content: flex-start;
}

#ant-smasher-game #ant-hud-center {
  justify-self: center;
  min-width: 68px;
}

#ant-smasher-game #ant-hud-right {
  justify-content: flex-end;
  gap: 8px;
  text-align: right;
}

#ant-smasher-game .ant-hud-label {
  margin: 0 0 2px;
  color: var(--clr-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

#ant-smasher-game #ant-hud-score,#ant-smasher-game #ant-hud-timer {
  min-width: 48px;
  margin: 0;
  padding: 0;
  color: var(--clr-white);
  font-family: var(--font-body);
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 0.95;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

#ant-smasher-game #ant-hud-timer.ant-urgent {
  color: var(--clr-danger);
  animation: timer-ant-pulse 0.5s ease infinite alternate;
}

@keyframes timer-ant-pulse {
  from {
    text-shadow: 0 0 6px rgba(255, 34, 68, 0.5);
  }

  to {
    text-shadow: 0 0 22px rgba(255, 34, 68, 1);
    transform: scale(1.08);
  }
}

#ant-smasher-game #ant-combo-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
  transition: transform 0.15s var(--ease-bounce), opacity 0.25s ease;
  white-space: nowrap;
}

#ant-smasher-game #ant-combo-display.ant-combo-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5);
}

#ant-smasher-game #ant-combo-display.ant-combo-visible {
  opacity: 1;
  transform: scale(1);
}

#ant-smasher-game #ant-combo-label {
  margin: 0;
  padding: 0;
  color: var(--clr-gold-glow);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

#ant-smasher-game #ant-combo-value {
  margin: 0;
  padding: 0;
  color: var(--clr-gold);
  font-family: var(--font-body);
  font-size: clamp(24px, 6vw, 30px);
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1;
  text-shadow: var(--shadow-glow-gold);
}

#ant-smasher-game #ant-btn-pause {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.12em;
  pointer-events: auto;
}

#ant-smasher-game #ant-btn-pause:active {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(0.92);
}

#ant-smasher-game #ant-btn-pause.ant-hidden {
  display: none;
}

#ant-smasher-game .ant-screen {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: calc(18px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

#ant-smasher-game .ant-screen.ant-active {
  z-index: 20;
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

#ant-smasher-game #ant-screen-menu {
  position: relative;
  inset: auto;
  width: 100%;
  align-items: center;
  overflow: visible;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(70, 18, 78, 0.68) 0%, rgba(12, 12, 19, 0) 50%),
    linear-gradient(180deg, #090a0f 0%, #090a0f 100%);
}

#ant-smasher-game.ant-smasher-playing #ant-screen-menu {
  position: absolute;
  inset: 0;
}

#ant-smasher-game .ant-menu-content {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  max-width: calc(100% - 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2.1svh, 18px);
  margin: auto;
  padding: clamp(12px, 2.8svh, 24px) 0;
  text-align: center;
}

@media (orientation: portrait) {
  #ant-smasher-game:not(.ant-smasher-playing) {
    min-height: calc(100svh - 80px);
    padding: calc(8px + env(safe-area-inset-top)) 0 calc(8px + env(safe-area-inset-bottom));
  }

  #ant-smasher-game #ant-screen-menu {
    align-items: center;
    padding-top: calc(10px + env(safe-area-inset-top));
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }

  #ant-smasher-game .ant-menu-content {
    width: min(330px, 100%);
    max-width: none;
    justify-content: center;
    gap: clamp(10px, 1.8svh, 15px);
    min-height: min(100%, 720px);
    padding-block: 0;
    transform: translateY(-8px);
  }

  #ant-smasher-game .ant-preview-container {
    margin-top: 0;
    margin-bottom: 0;
  }

  #ant-smasher-game .ant-difficulty-selector {
    margin: 0;
  }
}

#ant-smasher-game .ant-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  animation: logo-drop 0.7s var(--ease-bounce) both;
}

@keyframes logo-drop {
  from {
    opacity: 0;
    transform: translateY(-40px) scale(0.74);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

#ant-smasher-game .ant-logo-ant {
  width: clamp(48px, 13vw, 68px);
  height: clamp(48px, 13vw, 68px);
  object-fit: contain;
  margin: 0 0 -4px;
  filter: drop-shadow(0 0 20px rgba(255, 60, 60, 0.7));
  transform: scale(0.72);
  animation: ant-wiggle 2.5s ease-in-out infinite;
}

@keyframes ant-wiggle {
  0%,
  100% {
    transform: rotate(-5deg) scale(0.72);
  }

  50% {
    transform: rotate(5deg) scale(0.78);
  }
}

#ant-smasher-game .ant-logo-title {
  margin: 0;
  padding: 0;
  color: var(--clr-white);
  font-family: var(--font-game);
  font-size: clamp(54px, 17vw, 82px);
  letter-spacing: 0;
  line-height: 0.88;
  text-shadow: 0 0 30px rgba(255, 60, 60, 0.8), 0 4px 0 rgba(0, 0, 0, 0.6);
}

#ant-smasher-game .ant-menu-sub {
  margin: 0;
  padding: 0;
  color: var(--clr-muted);
  font-size: clamp(13px, 3.6vw, 15px);
  font-weight: 800;
  line-height: 1.25;
  animation: fade-up 0.6s 0.3s ease both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

#ant-smasher-game .ant-preview-container {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 4vw, 20px);
  margin: 2px 0;
  padding: 0;
  animation: fade-up 0.6s 0.4s ease both;
}

#ant-smasher-game .ant-preview-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
}

#ant-smasher-game .ant-preview-img {
  width: clamp(46px, 12vw, 56px);
  height: clamp(46px, 12vw, 56px);
  margin: 0;
  padding: 0;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

#ant-smasher-game .ant-preview-img.ant-red-ant {
  transform: scale(0.68);
}

#ant-smasher-game .ant-preview-label {
  margin: 0;
  padding: 0;
  color: #bdc0d4;
  font-size: clamp(11px, 3vw, 12px);
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

#ant-smasher-game .ant-preview-label strong {
  display: block;
  margin-top: 3px;
  color: var(--clr-white);
  font-size: clamp(12px, 3vw, 13px);
  font-weight: 900;
}

#ant-smasher-game .ant-difficulty-selector {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
  animation: fade-up 0.6s 0.5s ease both;
}

#ant-smasher-game .ant-difficulty-label {
  margin: 0;
  padding: 0;
  color: var(--clr-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

#ant-smasher-game .ant-difficulty-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
}

#ant-smasher-game .ant-btn-difficulty {
  min-width: 0;
  min-height: 38px;
  margin: 0;
  padding: 8px 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--clr-white);
  cursor: pointer;
  font-family: var(--font-game);
  font-size: clamp(13px, 3.7vw, 15px);
  letter-spacing: 0;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
}

#ant-smasher-game .ant-btn-difficulty:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

#ant-smasher-game .ant-btn-difficulty:active {
  transform: scale(0.96);
}

#ant-smasher-game .ant-btn-difficulty.ant-active {
  border-color: #ff7676;
  background: linear-gradient(135deg, var(--clr-accent) 0%, var(--clr-accent-dark) 100%);
  box-shadow: 0 0 12px rgba(255, 60, 60, 0.5);
  color: #fff;
}

#ant-smasher-game .ant-btn-primary,#ant-smasher-game .ant-btn-secondary,#ant-smasher-game .ant-btn-share,#ant-smasher-game .ant-btn-ghost {
  width: 100%;
  margin: 0;
  cursor: pointer;
}

#ant-smasher-game .ant-btn-primary {
  min-height: 54px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--clr-accent) 0%, var(--clr-accent-dark) 100%);
  box-shadow: 0 6px 24px rgba(255, 60, 60, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: var(--font-game);
  font-size: clamp(24px, 7vw, 30px);
  letter-spacing: 0;
  line-height: 1;
  transition: transform 0.12s var(--ease-bounce), box-shadow 0.2s ease;
  animation: fade-up 0.6s 0.55s ease both;
}

#ant-smasher-game .ant-btn-primary:hover {
  box-shadow: var(--shadow-glow-red);
  transform: scale(1.03);
}

#ant-smasher-game .ant-btn-primary:active {
  transform: scale(0.96);
}

#ant-smasher-game .ant-btn-primary.ant-pulse {
  animation: fade-up 0.6s 0.55s ease both, btn-ant-pulse 1.8s 1.2s ease-in-out infinite;
}

@keyframes btn-ant-pulse {
  0%,
  100% {
    box-shadow: 0 6px 24px rgba(255, 60, 60, 0.4);
  }

  50% {
    box-shadow: 0 6px 40px rgba(255, 60, 60, 0.75), 0 0 0 6px rgba(255, 60, 60, 0.15);
  }
}

#ant-smasher-game .ant-btn-secondary {
  min-height: 48px;
  padding: 12px 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  color: var(--clr-white);
  font-family: var(--font-game);
  font-size: clamp(20px, 6vw, 23px);
  letter-spacing: 0;
  line-height: 1;
  transition: background 0.2s ease, transform 0.12s var(--ease-bounce);
}

#ant-smasher-game .ant-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: scale(1.02);
}

#ant-smasher-game .ant-btn-secondary:active {
  transform: scale(0.96);
}

#ant-smasher-game .ant-btn-ghost {
  min-height: 42px;
  padding: 8px 20px;
  border: none;
  background: transparent;
  color: var(--clr-muted);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}

#ant-smasher-game .ant-btn-ghost:hover {
  color: var(--clr-white);
}

#ant-smasher-game .ant-btn-share {
  min-height: 48px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #25a244 0%, #1a7a30 100%);
  box-shadow: 0 4px 16px rgba(37, 162, 68, 0.4);
  color: #fff;
  font-family: var(--font-game);
  font-size: clamp(20px, 6vw, 23px);
  letter-spacing: 0;
  line-height: 1;
  transition: transform 0.12s var(--ease-bounce), box-shadow 0.2s ease;
}

#ant-smasher-game .ant-btn-share:hover {
  box-shadow: 0 6px 24px rgba(37, 162, 68, 0.55);
  transform: scale(1.03);
}

#ant-smasher-game .ant-btn-share:active {
  transform: scale(0.96);
}

#ant-smasher-game .ant-overlay-panel {
  position: relative;
  width: min(380px, calc(100vw - 32px));
  max-height: calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2.2svh, 14px);
  margin: 0;
  padding: clamp(24px, 5svh, 36px) clamp(20px, 6vw, 28px);
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: min(24px, 6vw);
  background: linear-gradient(160deg, rgba(29, 29, 46, 0.97) 0%, rgba(9, 10, 17, 0.97) 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  -webkit-overflow-scrolling: touch;
}

#ant-smasher-game .ant-btn-close-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--clr-white);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 26px;
  line-height: 1;
  transition: background 0.2s ease, transform 0.15s ease;
}

#ant-smasher-game .ant-btn-close-overlay:hover {
  background: rgba(255, 255, 255, 0.14);
}

#ant-smasher-game .ant-btn-close-overlay:active {
  transform: scale(0.92);
}

#ant-smasher-game .ant-overlay-title {
  margin: 0 0 4px;
  padding: 0;
  color: var(--clr-white);
  font-family: var(--font-game);
  font-size: clamp(34px, 11vw, 44px);
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 20px rgba(255, 60, 60, 0.6);
}

#ant-smasher-game .ant-result-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 2px 0;
  padding: 0;
}

#ant-smasher-game .ant-result-item {
  min-width: 0;
  margin: 0;
  padding: 12px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
  text-align: center;
}

#ant-smasher-game .ant-result-label {
  margin: 0 0 4px;
  padding: 0;
  color: var(--clr-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.15;
  text-transform: uppercase;
}

#ant-smasher-game .ant-result-value {
  margin: 0;
  padding: 0;
  color: var(--clr-white);
  font-family: var(--font-body);
  font-size: clamp(26px, 8vw, 31px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

#ant-smasher-game #ant-new-best-badge {
  margin: 0;
  padding: 0;
  color: var(--clr-gold);
  font-family: var(--font-game);
  font-size: clamp(20px, 6vw, 24px);
  letter-spacing: 0;
  text-shadow: var(--shadow-glow-gold);
  animation: badge-pop 0.5s var(--ease-bounce) both;
}

@keyframes badge-pop {
  from {
    opacity: 0;
    transform: scale(0);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

#ant-smasher-game #ant-screen-pause,#ant-smasher-game #ant-screen-gameover {
  align-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-overflow-scrolling: touch;
}

#ant-smasher-game .ant-hidden {
  display: none !important;
}

#ant-smasher-game .ant-menu-brand {
  margin: 0;
  padding: 0;
  color: var(--clr-muted);
  font-size: 12px;
  line-height: 1.2;
  animation: fade-up 0.6s 0.7s ease both;
}

#ant-smasher-game .ant-menu-brand a {
  color: var(--clr-accent);
  font-weight: 900;
  text-decoration: none;
}

#ant-smasher-info.ant-game-info-section {
  position: relative;
  z-index: 1;
  padding: clamp(34px, 7vw, 72px) max(16px, env(safe-area-inset-right)) clamp(38px, 7vw, 76px) max(16px, env(safe-area-inset-left));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(ellipse at 18% 0%, rgba(255, 60, 60, 0.12), rgba(255, 60, 60, 0) 32%),
    linear-gradient(180deg, #07080d 0%, #0f1018 100%);
  color: var(--clr-white);
}

#ant-smasher-info .ant-game-info-inner {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 3vw, 24px);
  margin: 0 auto;
}

#ant-smasher-info .ant-game-info-block {
  min-width: 0;
  margin: 0;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(28, 28, 46, 0.88) 0%, rgba(11, 12, 19, 0.94) 100%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

#ant-smasher-info .ant-game-info-kicker {
  margin: 0 0 8px;
  color: var(--clr-gold-glow);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#ant-smasher-info .ant-game-info-block h2 {
  margin: 0 0 14px;
  color: var(--clr-white);
  font-family: var(--font-game);
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 0 18px rgba(255, 60, 60, 0.38);
}

#ant-smasher-info .ant-game-info-block p,#ant-smasher-info .ant-how-play-list {
  color: #c9ccdd;
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 700;
  line-height: 1.65;
}

#ant-smasher-info .ant-game-info-block p {
  margin: 0;
}

#ant-smasher-info .ant-game-info-block p + p {
  margin-top: 12px;
}

#ant-smasher-info .ant-how-play-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

#ant-smasher-info .ant-how-play-list li::marker {
  color: var(--clr-accent);
  font-weight: 900;
}

.ant-game-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.ant-game-feature-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 18px;
  padding: 18px;
}

.ant-game-feature-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 18px;
}

.ant-game-feature-card p {
  margin: 0;
  color: #cfcfe8;
  line-height: 1.7;
  font-size: 15px;
}

#ant-smasher-copyright.ant-copyright-text {
  margin: 0;
  padding: 18px max(16px, env(safe-area-inset-right)) 20px max(16px, env(safe-area-inset-left));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f1018;
  color: var(--clr-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 360px) {
  #ant-smasher-game #ant-hud {
    grid-template-columns: minmax(66px, 1fr) auto minmax(84px, 1fr);
    gap: 4px;
    padding-inline: 6px;
  }

  #ant-smasher-game .ant-hud-label {
    font-size: 9px;
  }

  #ant-smasher-game #ant-hud-score,#ant-smasher-game #ant-hud-timer {
    min-width: 40px;
  }

  #ant-smasher-game #ant-btn-pause {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  #ant-smasher-game .ant-preview-item {
    padding-inline: 8px;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  #ant-smasher-game:not(.ant-smasher-playing) {
    min-height: auto;
    padding-block: 16px;
  }

  #ant-smasher-game #ant-screen-menu {
    align-items: center;
    padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
  }

  #ant-smasher-game .ant-menu-content {
    width: min(430px, 100%);
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0;
  }

  #ant-smasher-game .ant-logo-wrap {
    align-self: center;
  }

  #ant-smasher-game .ant-logo-ant {
    width: 34px;
    height: 34px;
    margin-bottom: -2px;
  }

  #ant-smasher-game .ant-logo-title {
    font-size: clamp(34px, 10svh, 44px);
  }

  #ant-smasher-game .ant-menu-sub {
    font-size: 13px;
  }

  #ant-smasher-game .ant-preview-container {
    gap: 8px;
  }

  #ant-smasher-game .ant-preview-item {
    min-height: 70px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 6px 8px;
  }

  #ant-smasher-game .ant-preview-img {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }

  #ant-smasher-game .ant-preview-label {
    font-size: 11px;
  }

  #ant-smasher-game .ant-preview-label strong {
    font-size: 12px;
  }

  #ant-smasher-game .ant-difficulty-selector {
    gap: 6px;
    padding: 8px 10px;
  }

  #ant-smasher-game .ant-difficulty-label {
    font-size: 10px;
  }

  #ant-smasher-game .ant-btn-difficulty {
    min-height: 34px;
    padding-block: 6px;
  }

  #ant-smasher-game #ant-btn-play {
    width: 100%;
    min-height: 40px;
    padding-block: 8px;
    font-size: 22px;
  }

  #ant-smasher-game .ant-overlay-panel {
    width: min(560px, calc(100vw - 28px));
    max-height: calc(100dvh - 20px);
    gap: 9px;
    padding: 18px 22px;
  }

  #ant-smasher-game #ant-screen-gameover {
    align-items: center;
    padding: 8px max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
  }

  #ant-smasher-game #ant-screen-gameover .ant-overlay-panel {
    width: min(620px, calc(100vw - 24px));
    max-height: calc(100dvh - 16px);
    gap: 8px;
    padding: 14px 20px;
  }

  #ant-smasher-game #ant-screen-pause .ant-overlay-panel {
    width: min(360px, calc(100vw - 28px));
  }

  #ant-smasher-game .ant-overlay-title {
    font-size: clamp(30px, 10svh, 40px);
  }

  #ant-smasher-game #ant-screen-gameover .ant-overlay-title {
    font-size: clamp(28px, 9svh, 38px);
  }

  #ant-smasher-game .ant-result-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  #ant-smasher-game .ant-result-item {
    padding: 9px 6px;
  }

  #ant-smasher-game .ant-btn-primary,#ant-smasher-game .ant-btn-secondary,#ant-smasher-game .ant-btn-share {
    min-height: 42px;
    padding-block: 10px;
    font-size: 21px;
  }

  #ant-smasher-game #ant-screen-gameover .ant-btn-primary,#ant-smasher-game #ant-screen-gameover .ant-btn-share {
    width: min(520px, 100%);
    min-height: 40px;
    padding-block: 8px;
  }

  #ant-smasher-game #ant-screen-gameover .ant-btn-ghost {
    min-height: 30px;
    padding-block: 4px;
  }

  #ant-smasher-game .ant-btn-ghost {
    min-height: 34px;
    padding-block: 6px;
  }
}

@media (orientation: landscape) {
  #ant-smasher-game.ant-smasher-playing {
    height: var(--game-height, 100dvh);
  }

  #ant-smasher-game #ant-hud {
    min-height: 46px;
    padding-block: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
