* {
  box-sizing: border-box;
}

:root {
  --bg-1: #0a0510;
  --bg-2: #140717;
  --bg-3: #1d0811;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --border: rgba(255, 255, 255, 0.12);
  --card-bg: rgba(14, 10, 22, 0.55);
  --card-bg-strong: rgba(16, 12, 26, 0.82);
  --accent: #ffbf66;
  --accent-2: #ff7a1a;
  --shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 178, 74, 0.18), transparent 24%),
    radial-gradient(circle at bottom, rgba(255, 92, 31, 0.14), transparent 26%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 55%, var(--bg-3) 100%);
}

body {
  position: relative;
  overflow-x: hidden;
}

.background-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 25%, rgba(255, 208, 111, 0.1), transparent 18%),
    radial-gradient(circle at 85% 75%, rgba(255, 109, 43, 0.1), transparent 20%);
  filter: blur(10px);
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  z-index: 2;
}

.hero-card {
  width: min(1100px, 100%);
  padding: 90px 24px 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(21, 16, 33, 0.84), rgba(11, 8, 19, 0.78));
  backdrop-filter: blur(12px);
  border-radius: 32px;
  box-shadow: var(--shadow);
  animation: pulseGlow 4s ease-in-out infinite;
  position: relative;
}

.topbar {
  position: absolute;
  top: 20px;
  right: 20px;
  left: 20px;
  min-height: 44px;
  z-index: 50;
}

.lang-switcher {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  z-index: 9999;
}

.lang-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: white;
  padding: 10px 14px;
  border-radius: 16px;
  cursor: pointer;
  transition: 0.25s ease;
  font-size: 14px;
  font-weight: 700;
}

.lang-btn:hover,
.lang-btn.is-active {
  background: rgba(255, 191, 102, 0.14);
  border-color: rgba(255, 191, 102, 0.45);
  box-shadow: 0 0 22px rgba(255, 148, 53, 0.22);
}

.buttons-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: center;
  justify-items: center;
}

.action-btn {
  position: relative;
  width: 100%;
  min-height: 250px;
  border-radius: 28px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  -webkit-tap-highlight-color: transparent;
}

.action-btn:hover,
.action-btn:focus-visible,
.action-btn.is-pressed {
  transform: translateY(-5px) scale(1.018);
  border-color: rgba(255, 191, 102, 0.45);
  box-shadow:
    0 0 0 1px rgba(255, 191, 102, 0.1),
    0 22px 60px rgba(255, 111, 23, 0.26);
}

.action-image-wrap,
.action-image,
.action-overlay,
.action-content {
  position: absolute;
  inset: 0;
}

.action-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease, opacity 0.35s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.hover-image {
  opacity: 0;
  transform: scale(1);
  filter: saturate(1.1) brightness(1.05);
}

.action-btn:hover .hover-image,
.action-btn:focus-visible .hover-image,
.action-btn.is-pressed .hover-image {
  opacity: 1;
  transform: scale(1.08);
}

.action-btn:hover .default-image,
.action-btn:focus-visible .default-image,
.action-btn.is-pressed .default-image {
  transform: scale(1.04);
  filter: brightness(0.8);
}

.action-overlay {
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.18) 58%, rgba(0, 0, 0, 0.04));
}

.action-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 15%, rgba(255,255,255,0.24) 50%, transparent 85%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  z-index: 2;
}

.action-btn:hover::before,
.action-btn:focus-visible::before,
.action-btn.is-pressed::before {
  transform: translateX(120%);
}

.action-content {
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  gap: 10px;
}

.action-number {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 191, 102, 0.12);
  border: 1px solid rgba(255, 191, 102, 0.25);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.action-label {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 4px 24px rgba(0,0,0,0.45);
}

.money-rain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.money {
  position: absolute;
  top: -20vh;
  width: 40px;
  height: 20px;
  border-radius: 4px;
  background: linear-gradient(135deg, #d8ffa5, #77d160 45%, #eeffd0);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow:
    0 0 8px rgba(255, 203, 95, 0.35),
    0 0 18px rgba(255, 113, 24, 0.2);
  opacity: 0;
  animation-name: fall, flicker;
  animation-iteration-count: infinite, infinite;
  animation-timing-function: linear, ease-in-out;
}

.money::before {
  content: "$";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(27, 89, 25, 0.75);
  font-size: 15px;
  font-weight: 900;
}

.money::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -16px;
  transform: translateX(-50%);
  width: 11px;
  height: 18px;
  background: radial-gradient(circle at 50% 100%, rgba(255, 191, 84, 0.98), rgba(255, 115, 24, 0.92) 45%, rgba(255, 70, 17, 0) 76%);
  filter: blur(3px);
}

@keyframes fall {
  0% {
    transform: translateY(-20vh) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  100% {
    transform: translateY(120vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes flicker {
  0%, 100% {
    filter: drop-shadow(0 0 4px rgba(255, 179, 82, 0.35)) drop-shadow(0 0 12px rgba(255, 119, 36, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(255, 179, 82, 0.75)) drop-shadow(0 0 20px rgba(255, 89, 36, 0.42));
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 25px 80px rgba(0,0,0,0.45), 0 0 35px rgba(255, 125, 31, 0.08);
  }
  50% {
    box-shadow: 0 25px 80px rgba(0,0,0,0.45), 0 0 60px rgba(255, 148, 53, 0.16);
  }
}

@media (max-width: 900px) {
  .buttons-grid {
    grid-template-columns: 1fr;
  }

  .action-btn {
    min-height: 220px;
  }
}

@media (max-width: 560px) {
  .page {
    padding: 14px;
  }

  .hero-card {
    padding: 78px 16px 16px;
    border-radius: 24px;
  }

  .topbar {
    top: 14px;
    right: 14px;
    left: 14px;
  }

  .lang-switcher {
    gap: 8px;
  }

  .lang-btn {
    flex: 1 1 calc(33.333% - 6px);
    min-width: 0;
    font-size: 13px;
    padding: 10px 8px;
  }

  .buttons-grid {
    gap: 14px;
  }

  .action-btn {
    min-height: 185px;
    border-radius: 22px;
  }

  .action-content {
    padding: 14px;
  }
}

@media (max-width: 560px){
  .lang-switcher{
    left:50% !important;
    right:auto !important;
    transform:translateX(-50%);
    justify-content:center;
  }
}


@media (max-width: 560px){
  .topbar{
    top: 12px;
    left: 12px;
    right: 12px;
    min-height: auto;
  }

  .hero-card{
    padding: 88px 14px 14px;
  }

  .lang-switcher{
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: 0 !important;
    transform: none !important;
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    justify-content: stretch;
    align-items: stretch;
  }

  .lang-btn{
    width: 100%;
    min-width: 0;
    padding: 10px 6px;
    font-size: 12px;
    line-height: 1.15;
    text-align: center;
    border-radius: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}


/* Performance tweaks */
.action-image{
  content-visibility: auto;
}
.background-glow{
  will-change: auto;
}
