:root {
  --bg: #05080f;
  --card: #0b1730;
  --text: #ffffff;
  --muted: rgba(255,255,255,0.78);
  --gold: #dcb14f;
  --gold-2: #f0ca73;
  --shadow: 0 16px 50px rgba(0,0,0,0.34);
  --font: Tahoma, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; height: 100%; }
body {
  background:
    radial-gradient(circle at top center, rgba(35,61,110,0.18), transparent 35%),
    linear-gradient(180deg, #08111f 0%, #05080f 100%);
  color: var(--text);
  font-family: var(--font);
  overflow: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; }
.screen {
  min-height: 100dvh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(10px, 1.8vh, 16px);
}
.card-shell {
  position: relative;
  width: min(760px, 100%);
  height: min(96dvh, 880px);
  max-height: 96svh;
  background: linear-gradient(180deg, rgba(8,17,31,0.98), rgba(11,23,48,0.98));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: 43% 57%;
}
.lang-switch {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(8,17,31,0.66);
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-media {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 22px 22px;
  margin: 10px 10px 0;
}
.hero-image {
  position: absolute; inset: 0;
  background: url('../img/hero-bg.png') center center / cover no-repeat;
  transform: scale(1.04);
  animation: slowZoom 18s ease-in-out infinite alternate;
}
.media-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.10), rgba(4,10,22,0.25) 50%, rgba(11,23,48,0.80) 100%);
}
.logo-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: clamp(64px, 10vw, 90px);
  aspect-ratio: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(233,188,93,0.26);
  border-radius: 18px;
  padding: 6px;
  backdrop-filter: blur(10px);
}
.logo-badge img { width: 100%; height: 100%; object-fit: contain; }
.content-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(14px, 2.2vw, 22px) clamp(14px, 3vw, 26px) clamp(12px, 2vw, 20px);
  text-align: center;
  gap: 10px;
}
.brand-line {
  color: var(--gold-2);
  font-weight: 700;
  letter-spacing: 1px;
  font-size: clamp(0.82rem, 1vw, 0.95rem);
}
.main-title {
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 2.75rem);
  line-height: 1.15;
  font-weight: 900;
  text-wrap: balance;
}
.subtitle {
  margin: 0 auto;
  max-width: 58ch;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--muted);
  line-height: 1.65;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}
.time-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: clamp(8px, 1.2vw, 14px) 6px;
}
.num {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.lbl {
  margin-top: 6px;
  font-size: clamp(0.75rem, 1vw, 0.88rem);
  color: rgba(255,255,255,0.85);
}
.actions {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.btn {
  min-height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: transform .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, #e0b550, #d0a442);
  color: #17120a;
}
.btn-secondary {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}
.footer-note {
  margin: 2px 0 0;
  color: rgba(255,255,255,0.68);
  font-size: clamp(0.72rem, 1vw, 0.86rem);
}
.loader {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(4,7,12,0.94);
  transition: opacity .55s ease, visibility .55s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 64px; height: 64px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.12);
  border-top-color: var(--gold);
  animation: spin 1s linear infinite;
}
.loader-text { font-weight: 700; color: #fff; }
html[dir="ltr"] .lang-switch { right: 14px; left: auto; }
html[dir="ltr"] .logo-badge { left: 14px; right: auto; }
@keyframes spin { to { transform: rotate(360deg);} }
@keyframes slowZoom { from { transform: scale(1.03); } to { transform: scale(1.08); } }
@media (max-width: 700px) {
  .card-shell {
    width: 100%;
    height: min(100svh - 16px, 100dvh - 16px);
    grid-template-rows: 40% 60%;
    border-radius: 22px;
  }
  .hero-media { margin: 8px 8px 0; border-radius: 0 0 18px 18px; }
  .countdown { gap: 8px; }
  .actions { grid-template-columns: 1fr; }
  .btn { min-height: 46px; }
}
@media (max-width: 430px) {
  .screen { padding: 8px; }
  .card-shell { border-radius: 18px; }
  .lang-switch { top: 10px; left: 10px; padding: 9px 14px; font-size: 0.9rem; }
  .content-box { padding: 12px 12px 14px; gap: 8px; }
  .main-title { font-size: clamp(1.2rem, 8vw, 2rem); }
  .subtitle { font-size: 0.86rem; line-height: 1.55; }
  .countdown { gap: 6px; }
  .time-box { border-radius: 14px; padding: 8px 4px; }
  .num { font-size: 1.35rem; }
  .lbl { font-size: 0.72rem; }
  .footer-note { font-size: 0.72rem; }
  .logo-badge { border-radius: 14px; }
}
@media (max-height: 760px) {
  .card-shell { grid-template-rows: 38% 62%; }
  .content-box { gap: 8px; }
  .subtitle { line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
