/* GTA V Web Port — loading + coming soon. HTML/CSS/JS + Node only. */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --gta-green: #76b836;
  --gta-yellow: #fcaf17;
  --white: #fff;
  --muted: rgba(255,255,255,.72);
  --panel: rgba(0,0,0,.55);
}

html, body {
  height: 100%;
  background: #000;
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
}

/* ---------- LOADING STAGE ---------- */
.loading-stage {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #000;
  transition: opacity .8s ease, visibility .8s;
}
.loading-stage.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.bg-slideshow { position: absolute; inset: 0; overflow: hidden; }
.slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.2s ease, transform 7s linear;
  filter: saturate(1.15) contrast(1.05);
}
.slide.active { opacity: 1; transform: scale(1); }

.vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.35) 32%, rgba(0,0,0,0) 55%, rgba(0,0,0,.45) 100%),
    radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.55) 100%);
}
.grain {
  position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

/* top bar */
.top-bar {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 28px 36px;
}
.brand { display: flex; gap: 14px; align-items: center; }
.v-mark {
  width: 64px; height: 74px;
  display: grid; place-items: center;
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: 52px; line-height: 1;
  color: #fff;
  background: linear-gradient(180deg, #9ede6b, #4c8a1f);
  -webkit-text-stroke: 2px #000;
  text-shadow: 3px 3px 0 #000;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  padding-bottom: 10px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-small { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
.brand-big {
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: 34px; letter-spacing: 2px;
  -webkit-text-stroke: 1px #000;
  text-shadow: 2px 2px 0 #000;
}
.brand-sub { font-size: 11px; letter-spacing: 2.5px; color: var(--gta-yellow); margin-top: 4px; }
.top-hint {
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); background: var(--panel);
  padding: 8px 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,.15);
}
.top-right { display: none; }
.sc-wrap {
  position: fixed; width: 1px; height: 1px; overflow: hidden;
  left: -9999px; bottom: 0; opacity: 0; pointer-events: none;
}
.sc-wrap iframe { width: 300px; height: 166px; border: none; }
.music-credit { color: var(--gta-yellow); text-decoration: underline; }

/* art info */
.art-info { position: relative; z-index: 2; padding: 0 36px; max-width: 640px; }
.eyebrow { font-size: 12px; letter-spacing: 3px; color: var(--gta-yellow); margin-bottom: 8px; }
.art-info h1 {
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: clamp(38px, 6vw, 72px);
  letter-spacing: 1px; line-height: .95;
  text-shadow: 3px 3px 0 #000, 0 0 30px rgba(0,0,0,.8);
}
.art-info p { margin-top: 8px; color: var(--muted); font-size: 15px; }

.slide-switcher { display: flex; gap: 10px; margin-top: 18px; }
.dot {
  width: 34px; height: 6px; border-radius: 4px; border: none; cursor: pointer;
  background: rgba(255,255,255,.3); transition: .3s;
}
.dot.selected, .dot:hover { background: var(--gta-yellow); width: 52px; }

/* bottom hud */
.bottom-hud { position: relative; z-index: 2; padding: 18px 36px 22px; background: linear-gradient(to top, rgba(0,0,0,.85), transparent); }
.hud-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; }
.tip-box { font-size: 14px; color: var(--muted); max-width: 52%; }
.tip-label {
  display: inline-block; font-size: 11px; font-weight: bold; letter-spacing: 2px;
  background: var(--gta-yellow); color: #000; padding: 2px 8px; border-radius: 3px; margin-right: 8px;
}
.controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mode-button {
  display: flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,.6); color: #fff;
  border: 1px solid rgba(255,255,255,.25); border-radius: 6px;
  padding: 9px 12px; font-size: 13px; cursor: pointer; transition: .2s;
}
.mode-button:hover { border-color: var(--gta-yellow); background: rgba(0,0,0,.85); }
.mode-button kbd {
  font-family: inherit; font-size: 11px; font-weight: bold;
  background: #fff; color: #000; padding: 2px 7px; border-radius: 4px;
}
.load-status { display: flex; align-items: center; gap: 10px; margin-left: 8px; font-size: 14px; }
.loading-percent { font-weight: bold; font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25); border-top-color: var(--gta-yellow);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.progress-track { height: 8px; background: rgba(255,255,255,.18); border-radius: 6px; overflow: hidden; border: 1px solid rgba(0,0,0,.6); }
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #ff8a00, var(--gta-yellow));
  box-shadow: 0 0 12px rgba(252,175,23,.8);
  transition: width .25s ease;
}
.hud-hint { margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.55); letter-spacing: .5px; }

/* ---------- COMING SOON (simple, clean) ---------- */
.coming-soon {
  position: fixed; inset: 0; z-index: 10;
  display: grid; place-items: center; text-align: center;
  background: #0a0a0a;
  transition: opacity .9s ease;
  padding: 20px;
}
.coming-soon.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.cs-bg {
  position: absolute; inset: 0; opacity: .4;
  background:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.8)),
    url('/images/gta5.jpg') center/cover;
  filter: blur(3px);
}
.cs-card {
  position: relative;
  width: 100%; max-width: 460px;
  background: #fff; color: #111;
  border-radius: 14px; padding: 36px 32px 26px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  animation: rise .6s ease both;
}
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.cs-badge {
  width: 52px; height: 60px; margin: -62px auto 10px;
  display: grid; place-items: center;
  font-family: Impact, 'Arial Black', sans-serif; font-size: 36px; color: #fff;
  background: linear-gradient(180deg, #9ede6b, #3f7a18);
  -webkit-text-stroke: 1.5px #000;
  clip-path: polygon(0 0, 100% 0, 50% 100%); padding-bottom: 8px;
}
.cs-brand { font-size: 11px; letter-spacing: 3px; color: #666; }
.cs-h1 { font-size: 42px; margin: 8px 0 6px; letter-spacing: -.5px; }
.rockstar-mark {
  width: 56px; height: 56px; object-fit: contain;
  display: block; margin: -64px auto 8px;
  background: #fff; border-radius: 12px; padding: 5px;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.cs-status {
  display: inline-block; margin: 10px auto 10px;
  font-size: 14px; font-weight: bold; color: #0d6b1e;
  background: #e6f6ea; border: 1px solid #34a853;
  padding: 8px 14px; border-radius: 20px;
}
.cs-desc { font-size: 15px; color: #444; margin: 6px 0 20px; line-height: 1.5; }
.btn-pay {
  display: block; text-decoration: none; text-align: center;
  background: #111; color: #fff; font-weight: bold;
  padding: 14px; border-radius: 8px; font-size: 15px; margin-bottom: 10px;
}
.btn-pay:hover { background: #000; }
.btn-telegram {
  display: block; text-decoration: none; text-align: center;
  background: #229ED9; color: #fff; font-weight: bold;
  padding: 13px; border-radius: 8px; font-size: 15px;
}
.btn-telegram:hover { filter: brightness(1.08); }
.btn-own {
  display: block; text-decoration: none; text-align: center;
  background: linear-gradient(180deg, #ffd34d, #fcaf17);
  color: #111; font-weight: bold;
  padding: 14px; border-radius: 8px; font-size: 15px;
  margin-top: 10px;
  box-shadow: 0 0 16px rgba(252,175,23,.45);
}
.btn-own:hover { filter: brightness(1.06); }
.pay-steps {
  margin-top: 16px; font-size: 15px; font-weight: bold; color: #111;
  background: #fff3c4; border: 2px solid #fcaf17;
  padding: 12px; border-radius: 8px; line-height: 1.4;
}
.link-replay {
  margin-top: 10px; background: none; border: none; cursor: pointer;
  font-size: 13px; color: #888; text-decoration: underline;
}
.cs-fine { margin-top: 14px; font-size: 11.5px; color: #999; line-height: 1.5; }
.cs-fine a { color: #666; }

@media (max-width: 700px) {
  .top-bar, .art-info, .bottom-hud { padding-left: 18px; padding-right: 18px; }
  .tip-box { max-width: 100%; }
  .top-hint { display: none; }
}
