:root{
  --bg:#0f1220;
  --card: rgba(255,255,255,0.38);
  --text:#fff;
  --accent:#6c7cff;
  --accent2:#8b9bff;
}

/* ===== RESET ===== */
*{
  box-sizing:border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

html, body{
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('assets/page1.png'); /* твой PNG */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  transform: translateZ(0);
  will-change: transform;
}

.background-page2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('assets/page2.png'); /* PNG для второй страницы */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1; /* фон позади всего */
}

/* ===== APP WRAPPER ===== */
.app{
   position: relative;
   width: 100%;
   max-width: 480px;
   margin: 0 auto;
   padding: 56px 12px 12px 12px;
   z-index: 1;
}

/* ===== TOP BAR ===== */
.topbar{
  display:flex;
  align-items:center;
  justify-content:center;
  position: relative;
  padding: 12px 8px;
}

.title{
  font-size: 28px;
  font-weight:700;
  width:100%;
  text-align:center;
}

.icon-btn{
  position:absolute;
  right: 8px;
  background: var(--card);
  border: none;
  color: var(--text);
  padding: 14px 14px;
  border-radius: 12px;
  font-size: 18px;
  cursor:pointer;
}

/* ===== MAIN ===== */
.main{
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:8px;
}

/* ===== GAME IMAGE ===== */
#clickImg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

/* ===== STATS ROW ===== */
.stats {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 48%;
}

.stat .label {
  font-size: 14px;
  opacity: 0.8;
}

.stat .value {
  font-size: 18px;
  font-weight: 700;
}

/* ===== ENERGY BAR ===== */
.energy-bar-wrap{
  width: 100%;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  height: 12px;
  margin-bottom: 12px;
}

.energy-bar{
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
}

.energy-fill{
  height:100%;
  width:0%;
  background: linear-gradient(90deg,var(--accent),var(--accent2));
  transition: width .3s ease;
}

/* ===== AIRDROP ===== */
.airdrop{
  margin-bottom:12px;
}

.airdrop .label{
  font-size:14px;
  margin-bottom:4px;
}

.airdrop .bar{
  width:100%;
  height:12px;
  background: rgba(255,255,255,0.08);
  border-radius:12px;
  overflow:hidden;
  margin-bottom:4px;
}

.airdrop .fill{
  height:100%;
  width:0%;
  background: linear-gradient(90deg,var(--accent),var(--accent2));
  transition: width .3s ease;
}

.airdrop .value{
  font-size:13px;
  text-align:right;
}

/* ===== SHOP ===== */
.shop{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom: 12px;
}

.shop-btn{
  width:100%;
  border:none;
  border-radius:12px;
  padding:10px;
  font-size:16px;
  background: var(--card);
  color: var(--text);
  cursor:pointer;
}

/* ===== TOAST ===== */
.toast{
  position:fixed;
  bottom:12px;
  left:50%;
  transform: translateX(-50%);
  background: var(--card);
  padding:10px 14px;
  border-radius:12px;
  font-size:14px;
  opacity:0;
  pointer-events:none;
  transition: opacity .3s ease;
}

/* ===== CARD ===== */
.card{
  background: var(--card);
  border-radius: 18px;
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* ===== REF LINK ROW ===== */
.ref-link-row{
  display:flex;
  align-items:center;
  gap:10px;
}

.ref-link-text{
  flex:1;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px;
  font-size: 13px;
  word-break: break-all;
}

/* ===== СТИЛЬ ДЛЯ РЕФ ССЫЛОК ===== */
.ref-link-text a {
  color: white;
  text-decoration: none;
}

.ref-link-text a:hover {
  text-decoration: underline;
}

/* ===== BUTTONS ===== */
.copy-btn,
.channel-btn{
  background: var(--card);
  border: none;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 16px;
  cursor:pointer;
  color: var(--text);
}

.channel-btn.confirmed{
  color:#0c0;
}

/* ===== BONUS ===== */
.bonus-text{
  font-size:14px;
  opacity:0.9;
}

.bonus-progress{
  display:flex;
  align-items:center;
  gap:10px;
}

.bonus-bar{
  flex:1;
  height:10px;
  background: rgba(255,255,255,0.12);
  border-radius:10px;
  overflow:hidden;
}

.bonus-fill{
  height:100%;
  width:0%;
  background: linear-gradient(90deg,var(--accent),var(--accent2));
  transition: width .3s ease;
}

.bonus-count{
  font-size:13px;
  min-width:52px;
  text-align:right;
}

/* ===== TOTAL ===== */
.total-ref{
  font-size:16px;
  font-weight:700;
  text-align:center;
}

/* ===== REWARDS ===== */
.reward-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding: 8px 0;
}

.reward-left{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.reward-req{
  font-size:13px;
  opacity:.8;
}

.reward-reward{
  font-size:14px;
  font-weight:500;
}

.claim-btn{
  border:none;
  border-radius:12px;
  padding:8px 12px;
  font-size:14px;
  background: var(--card);
  color:var(--text);
  cursor:pointer;
  transition: all 0.2s ease;
}

.claim-btn.locked{
  opacity:.4;
  cursor: default;
}

.claim-btn:hover:not(.locked){
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color:#fff;
  transform: scale(1.05);
}

.claim-btn.claimed{
  background: rgba(0,255,0,0.2);
  color:#0c0;
  cursor: default;
  opacity:1;
}

/* ===== BIKINI FLY EFFECT ===== */
.bikini-fly {
  position: absolute;
  width: 125px;
  height: 125px;
  font-size: 75px; /* эмодзи масштабируем */
  pointer-events: none;
  user-select: none;
  z-index: 1000;
}

/* ===== REFERRAL PROGRESS LINE 0-10 ===== */
.referral-box{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.ref-bar-title{
  font-size:14px;
  font-weight:500;
  display:flex;
  justify-content: space-between;
  align-items:center;
}

.ref-bar-container{
  width:100%;
  height:12px;
  background: rgba(255,255,255,0.08);
  border-radius:6px;
  overflow:hidden;
}

.ref-bar-fill{
  height:100%;
  width:0%;
  background: linear-gradient(90deg,var(--accent),var(--accent2));
  transition: width 0.3s ease;
}

.ref-total-text{
  font-size:12px;
  text-align:center;
  opacity:0.85;
  margin-top:4px;
}

.center-link-btn {
  width: 180px;       /* ширина кнопки */
  height: 50px;       /* высота кнопки */
  background: var(--card);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  border: none;
  cursor: pointer;
  
  outline: none;                      /* убираем контур при фокусе */
  -webkit-tap-highlight-color: transparent; /* для мобильных */
  user-select: none;

  transition: transform 0.2s ease, background 0.2s ease;
}

/* Hover/active/focus/visited — ничего не синий */
.center-link-btn:hover,
.center-link-btn:focus,
.center-link-btn:active,
.center-link-btn:visited {
  background: var(--card); /* оставляем фон как у сайта */
  text-decoration: none;
  color: inherit;
}

/* PNG растягивается на всю кнопку */
.center-link-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* картинка занимает всю кнопку */
  display: block;
  pointer-events: none; /* клики проходят по кнопке */
}


/* INPUT */
.wallet-card {
  background-color: var(--card);
  padding: 14px;
  border-radius: 18px;
  width: 100%;
  box-sizing: border-box;
}

/* FLEX ROW — input + кнопка */
.wallet-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* INPUT — белый текст, прозрачный фон */
.wallet-input {
  flex: 1;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 14px;
  padding: 8px 12px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
}

.wallet-input::placeholder {
  color: #fff;
  opacity: 1;
}

/* BUTTON — квадратная, компактная, под тему */
.wallet-btn {
  width: 45px;
  height: 45px;
  background-color: var(--card); /* теперь в тон страницы */
  color: #fff;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

/* Hover только кнопки */
.wallet-btn:hover {
  transform: scale(1.05);
  background-color: rgba(255,255,255,0.12); /* мягкий эффект */
}

/* STATUS TEXT — белый */
.wallet-status {
  margin-top: 4px;
  font-size: 14px;
  color: #fff;
}
