:root{
  --bg:#03111d;
  --card:#0b1b2b;
  --card-2:#0d2033;
  --stroke:#223b57;
  --text:#e8f3ff;
  --muted:#a9bfd4;
  --title:#84c8ff;
  --link:#6420b7;
  --vip:#f0c84c;
  --danger-soft:#f2caca;
  --success:#bdf2bf;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg);
  color:var(--text);
  font-family:Arial,Helvetica,sans-serif;
  min-height:100vh;
}

.page{
  width:100%;
  max-width:860px;
  margin:0 auto;
  padding:28px 18px 40px;
}

.page--landing{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding-top:48px;
  padding-bottom:48px;
}

.hero{
  text-align:center;
  margin-bottom:26px;
}

.hero__title{
  margin:0;
  font-size:39.33px;
  line-height:1.05;
  font-weight:700;
  color:var(--title);
}

.hero__subtitle{
  margin:18px 0 0;
  font-size:19.67px;
  line-height:1.25;
  color:var(--muted);
}

.ring-wrap{
  display:flex;
  justify-content:center;
  margin:28px 0 34px;
}

.ring{
  width:min(288px,57.6vw);
  height:min(288px,57.6vw);
  border-radius:50%;
  border:4px solid #6dc3ff;
  box-shadow:
    0 0 24px rgba(90,175,255,.30),
    0 0 52px rgba(70,145,255,.18);
}

.card{
  background:var(--card);
  border:1px solid var(--stroke);
  border-radius:28px;
  padding:26px 22px;
  box-shadow:0 0 0 1px rgba(255,255,255,.02) inset;
}

.card + .card{margin-top:22px}

.card__title{
  margin:0 0 14px;
  text-align:center;
  font-size:22.68px;
  line-height:1.15;
  font-weight:700;
  color:var(--title);
}

.card__subtitle{
  margin:0 0 24px;
  text-align:center;
  color:var(--muted);
  font-size:16.64px;
  line-height:1.35;
}

.card__text{
  margin:0;
  text-align:center;
  color:var(--text);
  font-size:15.87px;
  line-height:1.6;
}

.card__text + .card__text{margin-top:24px}

.stack{display:flex;flex-direction:column;gap:18px}

.button{
  display:block;
  width:100%;
  text-align:center;
  text-decoration:none;
  color:var(--text);
  background:var(--card-2);
  border:1px solid var(--stroke);
  border-radius:22px;
  padding:24px 18px;
  font-size:19.67px;
  line-height:1.2;
}

.button--sm{
  padding:20px 16px;
  font-size:16.64px;
  border-radius:20px;
}

.button-row{display:flex;flex-direction:column;gap:18px}

.price-card{
  background:var(--card-2);
  border:1px solid var(--stroke);
  border-radius:24px;
  padding:26px 16px;
  text-align:center;
}

.price-card__title{
  margin:0 0 10px;
  font-size:21.18px;
  font-weight:700;
}

.price-card__price{
  margin:0 0 18px;
  font-size:25.72px;
  font-weight:700;
  color:var(--title);
}

.price-card__note{
  margin:0;
  color:var(--muted);
  font-size:15.13px;
  line-height:1.4;
}

.requisites-list{
  margin:0;
  padding:0;
  list-style:none;
  text-align:center;
}

.requisites-list li{
  color:var(--text);
  font-size:15.13px;
  line-height:1.55;
  margin:8px 0;
}

.requisites-list strong{
  color:var(--text);
  font-weight:700;
}

.small-info{
  margin:18px 0 0;
  text-align:center;
  color:var(--muted);
  font-size:14.38px;
  line-height:1.45;
}

.links-box{
  text-align:center;
  color:var(--text);
  font-size:15.13px;
  line-height:1.7;
}

.rules-box{
  padding:30px 24px;
}

.rules-box h3{
  margin:0 0 18px;
  text-align:center;
  font-size:21.18px;
  color:var(--text);
}

.rules-box p{
  margin:0 0 26px;
  text-align:center;
  color:var(--text);
  font-size:15.87px;
  line-height:1.65;
}

.checkbox-row{
  display:flex;
  align-items:flex-start;
  gap:16px;
  margin:18px 0 24px;
}

.checkbox-row input{
  width:28px;
  height:28px;
  margin-top:2px;
}

.checkbox-row label{
  color:var(--text);
  font-size:15.13px;
  line-height:1.35;
}

.footer-actions{
  display:flex;
  flex-direction:column;
  gap:18px;
  margin-top:8px;
}

@media (max-width:640px){
  .page{padding:22px 16px 34px}
  .hero__title{font-size:30.25px}
  .hero__subtitle{font-size:15.13px}
  .card__title{font-size:19.67px}
  .card__subtitle{font-size:13.62px}
  .card__text{font-size:13.62px}
  .button{font-size:16.64px;padding:22px 16px}
  .button--sm{font-size:15.13px}
  .price-card__title{font-size:18.15px}
  .price-card__price{font-size:22.68px}
  .price-card__note{font-size:13.62px}
  .requisites-list li,.links-box,.rules-box p,.checkbox-row label{font-size:13.62px}
  .small-info{font-size:12.85px}
  .rules-box h3{font-size:18.15px}
}

.hidden{display:none!important}

.app-topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:18px;
}

.app-id{
  color:var(--title);
  font-size:16.64px;
  font-weight:700;
}

.vip-badge{
  background:var(--vip);
  color:#1b1400;
  border-radius:999px;
  padding:14px 24px;
  font-size:16.64px;
  font-weight:700;
}

.section-title{
  margin:0 0 16px;
  text-align:center;
  font-size:24.2px;
  line-height:1.2;
  font-weight:700;
  color:var(--text);
}

.contest-line,
.stats-line,
.info-line,
.payout-line,
.previous-line,
.profile-line{
  margin:10px 0;
  text-align:center;
  color:var(--muted);
  font-size:16.64px;
  line-height:1.4;
}

.contest-timer{
  margin:14px 0;
  text-align:center;
  color:var(--text);
  font-size:48.4px;
  line-height:1;
  font-weight:700;
}

.state-text{
  margin:16px 0 8px;
  text-align:center;
  color:var(--danger-soft);
  font-size:16.64px;
  line-height:1.35;
}

.state-text--green{color:var(--success)}

.text-links{
  margin-top:14px;
  text-align:center;
}

.text-links a{
  color:var(--link);
  text-decoration:none;
  font-size:16.64px;
  margin:0 10px;
}

.round-digits{
  display:grid;
  gap:18px;
  margin:22px 0 18px;
  width:100%;
}

.digit-btn{
  min-width:0;
  width:100%;
  border:1px solid var(--stroke);
  background:var(--card-2);
  color:var(--text);
  border-radius:22px;
  padding:28px 16px;
  font-size:34px;
  font-weight:700;
}

.digit-btn.is-selected{
  outline:2px solid #7cc6ff;
  background:#214b6e;
}

.perk-shell{
  margin-top:22px;
  margin-bottom:22px;
  background:linear-gradient(180deg, rgba(41,74,114,.28), rgba(13,28,44,.58));
  border:1px solid var(--stroke);
  border-radius:30px;
  padding:18px;
  box-shadow:0 0 28px rgba(80,120,255,.14);
}

.perk-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:12px;
}

.perk-card{
  background:rgba(13,28,44,.78);
  border:1px solid rgba(84,112,148,.55);
  border-radius:30px;
  padding:16px 10px 12px;
  text-align:center;
  min-height:250px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
}

.perk-card--dim{opacity:.55}

.perk-icon{
  font-size:25.72px;
  color:var(--muted);
  margin-top:4px;
}

.perk-name{
  color:var(--text);
  font-size:18.15px;
  line-height:1.15;
  font-weight:700;
}

.perk-count{
  color:var(--muted);
  font-size:16.64px;
}

.perk-btn{
  width:100%;
  border:1px solid var(--stroke);
  background:var(--card-2);
  color:var(--text);
  border-radius:18px;
  padding:14px 8px;
  font-size:15.13px;
}

.perk-description-card{margin-top:16px}
.perk-description-title{
  margin:0 0 12px;
  text-align:center;
  font-size:19.67px;
  font-weight:700;
}
.perk-description-text{
  margin:0;
  text-align:center;
  color:var(--muted);
  font-size:16.64px;
  line-height:1.5;
}

.vip-bullets{
  margin:16px 0 20px;
  text-align:center;
  color:var(--text);
  font-size:16.64px;
  line-height:1.6;
}

.vip-rate{
  display:block;
  width:100%;
  text-align:center;
  border:1px solid var(--stroke);
  background:var(--card-2);
  color:var(--text);
  border-radius:20px;
  padding:20px 16px;
  font-size:16.64px;
  text-decoration:none;
  margin-top:14px;
}

.vip-note{
  margin:16px 0 0;
  text-align:center;
  color:var(--muted);
  font-size:15.13px;
}

.admin-title{
  margin:0 0 14px;
  text-align:center;
  color:var(--vip);
  font-size:22.68px;
  font-weight:700;
}
.admin-link{
  display:block;
  text-align:center;
  color:var(--link);
  text-decoration:none;
  font-size:19.67px;
}

.profile-input{
  width:100%;
  border:1px solid var(--stroke);
  background:var(--card-2);
  color:var(--text);
  border-radius:18px;
  padding:20px 16px;
  font-size:16.64px;
  margin-top:16px;
}

.profile-save{
  width:100%;
  border:1px solid var(--stroke);
  background:var(--card-2);
  color:var(--text);
  border-radius:18px;
  padding:20px 16px;
  font-size:16.64px;
  margin-top:16px;
}

.security-text{
  margin:0;
  text-align:center;
  color:var(--danger-soft);
  font-size:16.64px;
  line-height:1.65;
}

.logout-wrap{
  padding:8px 0 22px;
  text-align:center;
}
.logout-link{
  color:var(--text);
  text-decoration:none;
  font-size:21.18px;
}

@media (max-width: 760px){
  .section-title{font-size:21.18px}
  .contest-timer{font-size:42.35px}
  .contest-line,.stats-line,.info-line,.payout-line,.previous-line,.profile-line,.security-text,.perk-description-text,.vip-bullets{font-size:13.62px}
  .text-links a{font-size:13.62px}
  .perk-grid{grid-template-columns:repeat(4, minmax(0, 1fr));gap:10px}
  .perk-card{min-height:210px;border-radius:24px;padding:14px 8px 10px}
  .perk-name{font-size:13.62px}
  .perk-count{font-size:13.62px}
  .perk-btn{font-size:12.1px;padding:12px 6px}
  .digit-btn{font-size:21.18px;padding:24px 12px}
}

.inline-message{
  margin-top:16px;
  border:1px solid var(--stroke);
  background:var(--card-2);
  color:var(--text);
  border-radius:18px;
  padding:18px 16px;
  text-align:center;
  font-size:15.13px;
  line-height:1.45;
}

.inline-message--error{
  color:var(--danger-soft);
}

.inline-message--success{
  color:var(--success);
}


.perk-buttons-row{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:12px;
  margin-top:12px;
}

.perk-card{
  justify-content:center;
  gap:16px;
}

@media (max-width: 760px){
  .perk-buttons-row{
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:10px;
  }
}

.perk-card{
  cursor:pointer;
}

.perk-card.is-armed{
  border-color:#7ec3ff;
  box-shadow:0 0 0 1px rgba(126,195,255,.45), 0 0 22px rgba(64,149,255,.18);
}
