
/* =========================
   NAVIGATION
========================= */

.site-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  padding:18px 24px;
  background:rgba(0,0,0,.35);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.brand{
  font-size:28px;
  font-weight:800;
  color:#ffca45;
}

.nav-links{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
}

.nav-links a{
  color:#fff;
  text-decoration:none;
  font-weight:700;
  transition:.3s;
}

.nav-links a:hover{
  color:#ffca45;
}

/* =========================
   PAGE TEMPLATE
========================= */

.page{
  max-width:1000px;
  margin:auto;
  padding:60px 20px;
  line-height:1.8;
}

.page h1{
  color:#ffca45;
  margin-bottom:20px;
}

/* =========================
   FOOTER
========================= */

.site-footer{
  text-align:center;
  padding:30px 20px;
}

.footer-links{
  display:flex;
  justify-content:center;
  gap:18px;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.footer-links a{
  color:#fff;
  text-decoration:none;
}

.footer-links a:hover{
  color:#ffca45;
}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

  .site-header{
    flex-direction:column;
    gap:14px;
  }

  .nav-links{
    justify-content:center;
  }

}


:root {
  --bg1: #130707;
  --bg2: #2b0d0d;
  --bg3: #5e160f;
  --lava1: #ff6a00;
  --lava2: #ff2400;
  --gold: #ffca45;
  --gold-dark: #d89d00;
  --panel: rgba(255, 255, 255, 0.1);
  --panel-border: rgba(255, 255, 255, 0.2);
  --text: #ffffff;
  --shadow: rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(to bottom, var(--bg1), var(--bg2), var(--bg3));
  color: white;
}
body{
  margin:0;
  font-family:Arial,sans-serif;
  background:#140606;
  color:white;
}

.navbar{
  width:100%;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:15px;
  padding:18px;
  background:rgba(0,0,0,.4);
}

.navbar a{
  color:white;
  text-decoration:none;
  font-weight:bold;
}

.page{
  max-width:1000px;
  margin:auto;
  padding:50px 20px;
}

body {
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

.site-shell {
  width: 100%;
  min-height: 100vh;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 120, 0, 0.08);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 140, 0, 0.15);
}

.brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffd36b;
}

.nav-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-weight: 700;
  color: #fff4d2;
}

.main-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 24px;
}

.game-section {
  display: flex;
  justify-content: center;
}

.game-wrap {
  position: relative;
  width: min(100%, 650px);
  aspect-ratio: 9 / 16;
  max-height: 85vh;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  border: 3px solid rgba(255, 160, 60, 0.22);
  background: linear-gradient(to bottom, #160707, #391010, #6b180d);
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
  touch-action: manipulation;
}

.hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.topbar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.score {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text);
  font-size: clamp(30px, 7vw, 46px);
  font-weight: 900;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.35), 0 0 16px rgba(255, 120, 0, 0.25);
  letter-spacing: 1px;
}

.chip,
.icon-btn {
  background: rgba(255, 170, 70, 0.12);
  border: 1px solid rgba(255, 170, 70, 0.25);
  color: #fff;
  backdrop-filter: blur(10px);
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  pointer-events: auto;
}

.icon-btn {
  pointer-events: auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.card {
  width: min(92%, 370px);
  background: var(--panel);
  border: 2px solid var(--panel-border);
  border-radius: 26px;
  padding: 24px 20px;
  text-align: center;
  color: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 120, 0, 0.15);
  border: 1px solid rgba(255, 160, 0, 0.25);
  font-size: 13px;
  margin-bottom: 12px;
  color: #ffd46b;
}

.card h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 6vw, 38px);
}

.card p {
  margin: 10px 0;
  font-size: clamp(14px, 3.5vw, 18px);
  line-height: 1.5;
}

.btn {
  margin-top: 14px;
  background: var(--gold);
  color: #2a1a00;
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--gold-dark);
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 var(--gold-dark);
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 180, 80, 0.18);
  border-radius: 18px;
  padding: 14px;
}

.stat b {
  display: block;
  font-size: 28px;
  margin-top: 6px;
}

.hidden {
  display: none;
}

.info-panel{
  width:100%;
  max-width:1000px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:18px;
}

.panel-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 170, 70, 0.18);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
}

.panel-card h2 {
  margin-top: 0;
  color: #ffd36b;
}

.panel-card ul {
  padding-left: 18px;
  line-height: 1.8;
}

.site-footer {
  text-align: center;
  padding: 24px;
  color: #ffdca2;
  font-weight: 600;
}

@media (max-width: 980px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .info-panel {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .game-wrap {
    max-height: none;
    width: min(100%, 520px);
  }
}

@media (max-width: 540px) {
  .site-header {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .main-layout {
    padding: 12px;
    gap: 16px;
  }

  .game-wrap {
    width: 100%;
    border-radius: 20px;
  }
}
/* =========================
   BLOG CARD CSS
========================= */

.blog-card{
  background:#1b1b1b;
  border-radius:18px;
  overflow:hidden;
  margin:30px auto;
  max-width:700px;
  box-shadow:0 10px 30px rgba(0,0,0,.3);
}

.blog-card img{
  width:100%;
  display:block;
}

.blog-card h2{
  padding:20px 20px 10px;
  color:#fff;
}

.blog-card p{
  padding:0 20px 20px;
  color:#ccc;
  line-height:1.7;
}

.read-btn{
  display:inline-block;
  margin:0 20px 20px;
  padding:12px 22px;
  background:#ff6a00;
  color:#fff;
  text-decoration:none;
  border-radius:10px;
  font-weight:bold;
  transition:0.3s;
}

.read-btn:hover{
  background:#ff8c00;
}
#lives{
  position:absolute;
  top:20px;
  right:20px;
  font-size:28px;
  z-index:20;
}
.blog-image{
  width:65%;
  max-width:600px;
  display:block;
  margin:25px auto;
  border-radius:18px;
  box-shadow:0 10px 30px rgba(0,0,0,0.25);
}
/* FAQ Section */

.faq-section{
    max-width:900px;
    margin:60px auto;
    padding:20px;
}

.faq-section h2{
    text-align:center;
    margin-bottom:30px;
    font-size:32px;
}

.faq-item{
    background:#fff;
    padding:20px;
    margin-bottom:15px;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,0.1);
}

.faq-item h3{
    margin-bottom:10px;
    color:#333;
}

.faq-item p{
    color:#666;
    line-height:1.6;
}
/* =========================
   LEADERBOARD
========================= */

.leaderboard-section{
    max-width:900px;
    margin:60px auto;
    padding:20px;
}

.leaderboard-card{
    background:rgba(255,255,255,0.06);
    border:1px solid rgba(255,170,70,0.18);
    border-radius:24px;
    padding:25px;
    box-shadow:0 14px 35px rgba(0,0,0,0.2);
}

.leaderboard-card h2{
    text-align:center;
    color:#ffd36b;
    margin-bottom:25px;
    font-size:32px;
}

.leaderboard-table{
    width:100%;
    border-collapse:collapse;
    overflow:hidden;
}

.leaderboard-table th{
    background:#ff6a00;
    color:#fff;
    padding:14px;
    font-size:18px;
}

.leaderboard-table td{
    padding:14px;
    text-align:center;
    border-bottom:1px solid rgba(255,255,255,0.08);
}

.leaderboard-table tr:hover{
    background:rgba(255,255,255,0.05);
}

.leaderboard-table tr:nth-child(1){
    color:#ffd700;
    font-weight:bold;
}

.leaderboard-table tr:nth-child(2){
    color:#c0c0c0;
    font-weight:bold;
}

.leaderboard-table tr:nth-child(3){
    color:#cd7f32;
    font-weight:bold;
}

/* MOBILE */

@media(max-width:768px){

    .leaderboard-card{
        overflow-x:auto;
    }

    .leaderboard-table{
        min-width:500px;
    }

}
/* FULLSCREEN BUTTON */

.fullscreen-btn{
  position:absolute;
  bottom:18px;
  right:18px;
  z-index:50;

  width:48px;
  height:48px;

  border:none;
  border-radius:50%;

  background:rgba(0,0,0,0.45);
  color:#fff;

  font-size:24px;
  cursor:pointer;

  backdrop-filter:blur(8px);

  box-shadow:0 4px 12px rgba(0,0,0,0.3);
}

/* MOBILE */

@media(max-width:768px){

  .fullscreen-btn{
      width:52px;
      height:52px;
      font-size:26px;
  }

}
