/* GLOBAL CSS VARIABLE */

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden; 
}

#app {
  min-height: 100vh;
  width: 100%;
}

:root {
  /* Brand */
  --pk-primary: #f4a417;
  --pk-accent: #623017;

  /* Background */
  --pk-bg: #fff6de;
  --pk-panel: #f2e0aa;
  --pk-card: #ffffff;

  /* Text */
  --pk-text-main: #1e1a1a;
  --pk-text-muted: #636e72;

  /* Border */
  --pk-border: #e6d6a3;
}

/* Dark mode override */
body.dark-mode {
  --pk-bg: #121212;
  --pk-panel: #1e1e1e;
  --pk-card: #252525;
  --pk-text-main: #ffffff;
  --pk-text-muted: #b0b0b0;
  --pk-border: #333333;
}

/* ===== PINTARKIT RIBBON (FIXED OVERLAP ISSUE) ===== */
.pintarkit-ribbon {
  position: relative !important; /* Wajib relative supaya dia hilang bila scroll */
  top: auto !important;
  z-index: 50 !important; /* Rendah sikit dari header game */
  width: 100%;
  background: #d63031; /* Merah Amaran */
  color: #FFFFFF;
  text-align: center;
  padding: 8px 12px;
  font-size: clamp(11px, 2.5vw, 13px);
  font-weight: 600;
  line-height: 1.3;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ===== PINTARKIT FOOTER ===== */
.pintarkit-footer {
  margin-top: auto;
  width: 100%;
  background: #623017;
  color: #FFFFFF;
  text-align: center;
  padding: 8px 12px;
  font-size: clamp(9px, 2vw, 11px);
}

/* ===== PINTARKIT BACK BUTTON ===== */
#pintarkit-back-btn {
  position: fixed;
  bottom: 70px;
  right: 14px;
  z-index: 9999;
  background: var(--pk-primary);
  color: #1e1a1a;
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

#pintarkit-back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

#pintarkit-back-btn:active {
  transform: scale(0.96);
}