/* ================================================
TaniGTPS — Play Page Stylesheet
================================================ */

/* ---------- Variables ---------- */
:root {
--green1:   #1aad6e;
--green2:   #14875a;
--blue1:    #1e6fa5;
--blue2:    #0ea5e9;
--red1:     #c0392b;
--discord:  #5865f2;
--howtoplay:#d97706;
--gold:     #f0b429;
--radius:   14px;
--ease:     cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}

/* Pastikan html & body penuh */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

/* Background ikut scroll, tidak fixed */
html {
  background-color: #0a0a1a;                      /* warna fallback */
  background-image: url('../images/background.jpg'); /* pastikan path benar */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Tidak pakai background-attachment: fixed */
}

body {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;                /* scroll normal */
  -webkit-overflow-scrolling: touch;
  background: transparent;
  overscroll-behavior: auto;
  touch-action: pan-y;
  padding: 24px 16px 48px;
}

/* FIX ITEM HITAM */
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: transparent;
  pointer-events: none;
}

/* ---------- Toast Popup ---------- */
.toast {
position: fixed;
top: 24px;
left: 50%;
transform: translateX(-50%) translateY(-80px);
background: rgba(15, 20, 30, 0.95);
color: #fff;
padding: 12px 24px;
border-radius: 50px;
display: flex;
align-items: center;
gap: 10px;
font-size: 0.9rem;
font-weight: 600;
border: 1px solid rgba(255,255,255,0.12);
box-shadow: 0 8px 32px rgba(0,0,0,0.4);
z-index: 9999;
transition: transform 0.45s cubic-bezier(0.34,1.56,0.64,1), opacity 0.45s var(--ease);
opacity: 0;
backdrop-filter: blur(12px);
}

.toast.show {
transform: translateX(-50%) translateY(0);
opacity: 1;
}

.toast-icon {
font-size: 1.1rem;
}

/* ---------- Wrapper & Card ---------- */
.wrapper {
  width: 100%;
  max-width: 440px;          /* jaga lebar maksimum */
  margin: 0 auto;            /* pusat horizontal */
  display: flex;
  flex-direction: column;
  justify-content: center;   /* pusat vertikal (karena min-height) */
  align-items: center;       /* anak tetap di tengah horizontal */
  min-height: 100vh;
  padding: 32px 16px 64px;
  touch-action: pan-y;
  overflow: visible;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

/* FIX ITEM GELAP CARD */
.card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 24px 20px 28px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
  
  width: 100%;               /* ambil seluruh lebar wrapper */
  max-width: 100%;           /* jangan sampai melebihi wrapper */
  box-sizing: border-box;
  margin: 0 auto;
  overflow-x: hidden;
}

/* ---------- Banner ---------- */
.banner-wrap {
position: relative;
border-radius: 16px;
overflow: hidden;
line-height: 0;
}

.banner-img {
width: 100%;
display: block;
border-radius: 16px;
animation: bannerZoom 5s ease-in-out infinite;
transform-origin: center center;
}

.banner-gold {
position: absolute;
inset: 0;
border-radius: 16px;
pointer-events: none;
background: radial-gradient(
ellipse at center,
rgba(240, 180, 41, 0.55) 0%,
rgba(255, 215, 80, 0.25) 45%,
transparent 75%
);
animation: bannerGold 5s ease-in-out infinite;
opacity: 0;
}

@keyframes bannerZoom {
0%   { transform: scale(1.00); }
50%  { transform: scale(1.09); }
100% { transform: scale(1.00); }
}

@keyframes bannerGold {
0%   { opacity: 0.85; }
35%  { opacity: 0; }
65%  { opacity: 0; }
100% { opacity: 0.85; }
}

/* ---------- Buttons Shared ---------- */
.btn {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
width: 100%;
padding: 15px 20px;
border-radius: var(--radius);
font-size: 1rem;
font-weight: 700;
color: #fff;
border: none;
cursor: pointer;
text-decoration: none;
text-align: center;
letter-spacing: 0.02em;
position: relative;
overflow: hidden;
transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), filter 0.18s;
backdrop-filter: blur(4px);
}

.btn::before {
content: '';
position: absolute;
inset: 0;
background: rgba(255,255,255,0.1);
opacity: 0;
transition: opacity 0.18s;
}

.btn:hover::before {
opacity: 1;
}

.btn:hover {
transform: translateY(-2px);
}

.btn:active {
transform: scale(0.97);
}

.btn-sub {
font-size: 0.78rem;
font-weight: 500;
opacity: 0.85;
}

.btn-ico {
width: 22px;
height: 22px;
object-fit: contain;
}

/* ---------- Button Colors ---------- */
.btn-howtoplay {
background: linear-gradient(135deg, #d97706cc, #b45309cc);
box-shadow: 0 4px 18px rgba(217,119,6,0.45);
border: 1px solid rgba(240,180,41,0.35);
font-size: 0.95rem;
padding: 13px 20px;
border-radius: var(--radius);
width: 100%;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
color: #fff;
font-weight: 700;
cursor: pointer;
transition: transform 0.18s var(--ease), box-shadow 0.18s, filter 0.18s;
backdrop-filter: blur(4px);
}

.btn-android-1 {
background: linear-gradient(135deg, #059669cc, #047857cc);
box-shadow: 0 4px 18px rgba(5,150,105,0.4);
border: 1px solid rgba(16,185,129,0.3);
}

.btn-android-2 {
background: linear-gradient(135deg, #16a34acc, #15803dcc);
box-shadow: 0 4px 18px rgba(22,163,74,0.4);
border: 1px solid rgba(74,222,128,0.25);
}

.btn-windows {
background: linear-gradient(135deg, #0369a1cc, #075985cc);
box-shadow: 0 4px 18px rgba(3,105,161,0.4);
border: 1px solid rgba(56,189,248,0.25);
}

.btn-ios {
background: linear-gradient(135deg, #0891b2cc, #0e7490cc);
box-shadow: 0 4px 18px rgba(8,145,178,0.4);
border: 1px solid rgba(103,232,249,0.25);
}

.btn-macos {
background: linear-gradient(135deg, #b91c1ccc, #991b1bcc);
box-shadow: 0 4px 18px rgba(185,28,28,0.4);
border: 1px solid rgba(252,165,165,0.2);
}

.btn-discord {
background: linear-gradient(135deg, #5865f2cc, #4338cacc);
box-shadow: 0 4px 18px rgba(88,101,242,0.4);
border: 1px solid rgba(167,139,250,0.25);
}

/* ---------- Button Group ---------- */
.btn-group {
display: flex;
flex-direction: column;
gap: 10px;
}

/* ---------- How To Play Section ---------- */
.howtoplay-section {
  display: none;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.20);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: slideDown 0.35s var(--ease);

  /* anti melebar */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: none; }
}

.howtoplay-section.open {
  display: flex;
}

/* Slide Container */
.slide-container {
  position: relative;
  overflow: hidden;
  padding-bottom: 44px;

  /* pastikan nggak ngelebihi parent */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Slides Wrapper */
.slides-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;

  width: 100%;
  box-sizing: border-box;
}

/* Individual Slide */
.slide {
  min-width: 100%;
  padding: 22px 20px;
  color: #f1f5f9;

  /* jaga agar padding tidak menambah lebar total */
  box-sizing: border-box;
  overflow-wrap: break-word;
}

.slide h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 14px;
  text-align: center;
  letter-spacing: 0.02em;
}

.slide ol {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.slide ol li {
  font-size: 0.87rem;
  line-height: 1.6;
  color: #e2e8f0;
}

.slide ol li strong { color: #fbbf24; }
.slide ol li em     { color: #93c5fd; font-style: normal; }

.guide-link {
  color: #34d399;
  text-decoration: underline;
  font-weight: 700;
  transition: color 0.2s;
}
.guide-link:hover { color: #6ee7b7; }

kbd {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.8rem;
  font-family: monospace;
  color: #fbbf24;
}

code {
  background: rgba(255,255,255,0.1);
  border-radius: 5px;
  padding: 1px 7px;
  font-size: 0.8rem;
  font-family: monospace;
  color: #67e8f9;
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 20px));
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 5;
  user-select: none;
}

.slide-arrow:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(calc(-50% - 20px)) scale(1.08);
}

.slide-prev { left: 8px; }
.slide-next { right: 8px; }

.slide-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 5;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.dot.active {
  background: #fbbf24;
  transform: scale(1.3);
}

/* ---------- Footer ---------- */
.footer-text {
text-align: center;
font-size: 0.8rem;
color: rgba(255,255,255,0.55);
line-height: 1.65;
padding-top: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {

body {
padding: 16px 12px 40px;
}

.card {
padding: 18px 14px 22px;
}

.btn {
font-size: 0.92rem;
padding: 13px 16px;
}

.slide {
padding: 18px 16px;
}

}

/* ---------- Misc ---------- */
.inline-icon{
width:18px;
height:18px;
vertical-align:middle;
margin-right:8px;
}

.inline-title-icon{
width:22px;
height:22px;
vertical-align:middle;
margin-right:8px;
}

audio{
display:none;
}

.btn-real-icon{
width:20px;
height:20px;
object-fit:contain;
vertical-align:middle;
margin-right:10px;
transform:translateY(-1px);
}

/* ---------- Font Awesome ---------- */
.btn-fa-icon {
font-size: 1.1rem;
line-height: 1;
width: 20px;
text-align: center;
}

.slide-title-icon {
font-size: 1.1rem;
margin-right: 6px;
}

.btn-android-emoji,
.btn-win-emoji,
.btn-apple-emoji,
.btn-discord-emoji,
.inline-icon,
.inline-title-icon,
.btn-real-icon {
display: none !important;
}

/* ---------- Time Badge ---------- */
.time-badge {
position: fixed;
top: 14px;
left: 50%;
transform: translateX(-50%);
z-index: 500;
display: flex;
align-items: center;
gap: 6px;

/* FIX ITEM GELAP */
background: rgba(255,255,255,0.08);

backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(255,255,255,0.15);
border-radius: 50px;
padding: 6px 16px;
font-size: 0.8rem;
font-weight: 700;
color: #fff;
white-space: nowrap;
box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* ---------- Fireflies ---------- */
.fireflies-wrap {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 1;
overflow: hidden;
}

.firefly {
position: absolute;
width: 5px;
height: 5px;
border-radius: 50%;
background: #c8ff80;
box-shadow:
0 0 6px 2px #c8ff80,
0 0 14px 4px rgba(180, 255, 80, 0.5);
opacity: 0;
animation: fireflyFloat linear infinite, fireflyBlink ease-in-out infinite;
}

/* ---------- Mute Bar ---------- */
.mute-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 800;
display: flex;
justify-content: center;
padding: 10px 16px 14px;

/* FIX ITEM GELAP */
background: linear-gradient(to top, rgba(255,255,255,0.03) 0%, transparent 100%);

pointer-events: none;
}

.mute-btn {
pointer-events: all;
display: inline-flex;
align-items: center;
gap: 8px;
padding: 9px 22px;
border-radius: 50px;

/* FIX ITEM GELAP */
background: rgba(255,255,255,0.08);

backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
border: 1px solid rgba(255,255,255,0.15);
color: #fff;
font-size: 0.82rem;
font-weight: 700;
cursor: pointer;
transition: all 0.2s ease;
box-shadow: 0 4px 16px rgba(0,0,0,0.12);
letter-spacing: 0.03em;
}