:root {
  --phone-width: 430px;
  --source-width: 853;
  --visual-crop-height: 1458;
  --primary: #ff4b2f;
  --accent: #ffbd33;
  --bg: #12051f;
  --panel: #211038;
  --panel-2: #2b1248;
  --line: rgba(255, 141, 255, .34);
  --text: #fff8ff;
  --muted: #dbc7ef;
  --nav-h: 66px;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  overflow-x: hidden;
  background: #141216;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 189, 51, .16), transparent 34%),
    linear-gradient(180deg, #151019, #0d0713 54%, #141216);
}

a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; }

.phone {
  width: min(100%, var(--phone-width));
  margin: 0 auto;
  padding-bottom: calc(var(--nav-h) + 118px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  background:
    linear-gradient(180deg, #090112 0, #170722 52%, #12051f 100%);
  box-shadow: 0 0 44px rgba(0, 0, 0, .68);
}

.visual-shell {
  position: relative;
  background: #090112;
}

.visual-crop {
  position: relative;
  width: 100%;
  aspect-ratio: var(--source-width) / var(--visual-crop-height);
  overflow: hidden;
}

.visual {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.logo-slot,
.hotspot {
  position: absolute;
  z-index: 4;
}

.logo-slot {
  left: 3%;
  top: 1.05%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 27%;
  height: 5.8%;
  text-decoration: none;
}

.logo-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: left center;
}

.hotspot {
  display: block;
  border-radius: 12px;
  background: transparent;
  outline-offset: 2px;
}

.hotspot:focus-visible,
.nav-hit:focus-visible,
.primary-link:focus-visible,
.secondary-link:focus-visible,
summary:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 78%, #fff);
}

.top-login { left: 40.2%; top: 1.55%; width: 13.4%; height: 4.7%; }
.top-register { left: 56.3%; top: 1.55%; width: 16.6%; height: 4.7%; }
.top-telegram { left: 75.2%; top: 1.15%; width: 9%; height: 5.25%; border-radius: 50%; }
.reward-grid { left: 3.6%; top: 7.9%; width: 92.8%; height: 30.5%; }
.spin-guide { left: 35.5%; top: 17.2%; width: 28.2%; height: 8.8%; }
.join-guide { left: 6%; top: 62.2%; width: 23.8%; height: 4.2%; }
.promo-hotspot { left: 3.2%; top: 70.9%; width: 52.1%; height: 18.7%; }
.wallet-hotspot { left: 57.4%; top: 70.9%; width: 39.5%; height: 18.7%; }
.telegram-hotspot { left: 3.2%; top: 91.2%; width: 93.7%; height: 7.5%; }

.seo-panel,
.guide-card {
  margin: 12px 14px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 189, 51, .12), transparent 34%),
    linear-gradient(180deg, rgba(45, 14, 73, .96), rgba(27, 8, 45, .96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 16px 30px rgba(0, 0, 0, .28);
}

.seo-panel {
  padding: 18px 16px;
}

.intro-panel {
  margin-top: 12px;
  padding-top: 13px;
}

.eyebrow {
  margin: 0 0 7px;
  color: color-mix(in srgb, var(--accent) 82%, #fff);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 12em;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: 0;
}

.intro-panel h1 {
  font-size: 25px;
  line-height: 1.02;
}

h2 {
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: 0;
}

p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.48;
}

.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.primary-link {
  color: #fff;
  background: linear-gradient(180deg, var(--primary), #cf2b67);
  box-shadow: 0 12px 24px rgba(255, 75, 47, .24);
}

.secondary-link {
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  background: rgba(255, 255, 255, .07);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 14px 0;
}

.guide-card {
  min-height: 164px;
  margin: 0;
  padding: 14px;
}

.guide-card h2 {
  font-size: 16px;
}

.guide-card p {
  font-size: 12.5px;
  line-height: 1.42;
}

.split-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.faq-panel {
  display: grid;
  gap: 9px;
}

.faq-panel h2 {
  margin-bottom: 2px;
}

details {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: rgba(9, 1, 18, .42);
}

summary {
  min-height: 44px;
  padding: 12px 38px 12px 13px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  list-style: none;
  position: relative;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-65%) rotate(45deg);
  content: "";
}

details[open] summary::after {
  transform: translateY(-35%) rotate(225deg);
}

details p {
  margin: 0;
  padding: 0 13px 13px;
  font-size: 12.5px;
}

.safety-panel {
  border-color: rgba(255, 189, 51, .34);
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 14px 0;
  padding: 14px 0 4px;
}

.site-footer a {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  background: rgba(255, 255, 255, .05);
}

.nav-hits {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(410px, calc(100vw - 20px));
  height: var(--nav-h);
  overflow: hidden;
  border: 1px solid rgba(255, 117, 255, .36);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(43, 16, 69, .96), rgba(18, 7, 31, .96));
  box-shadow: 0 18px 38px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.nav-hit {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-right: 1px solid rgba(255, 255, 255, .09);
  color: #d8c5ec;
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1;
}

.nav-hit:last-child {
  border-right: 0;
}

.nav-hit svg {
  display: block;
  width: 24px;
  max-width: 24px;
  height: 24px;
  max-height: 24px;
  fill: currentColor;
}

.nav-hit.active {
  color: #fff;
  background: radial-gradient(circle at 50% 34%, rgba(255, 75, 47, .58), rgba(255, 75, 47, .08) 58%, transparent 72%);
}

.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: calc(var(--nav-h) + 22px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(350px, calc(100vw - 28px));
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: #fff;
  background: rgba(24, 7, 40, .96);
  box-shadow: 0 16px 30px rgba(0, 0, 0, .4);
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.toast[hidden] {
  display: none;
}

@media (max-width: 374px) {
  h1 { font-size: 25px; }
  .content-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
