/* ================================================================
   HALOOMINA⁷ ARCADE KIOSK
   Target: 1280 × 720 landscape display (kiosk)
   ================================================================ */

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: default;
}

/* Hide Alpine elements before init */
[x-cloak] { display: none !important; }

/* ── Root ────────────────────────────────────────────────────── */
html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: #C09045;
}

#app {
  position: fixed;
  inset: 0;
  width: 100vw; height: 100vh;
  overflow: hidden;
  font-family: 'Cinzel', Georgia, serif;
  color: #fff;
}

/* ── Typography helpers ──────────────────────────────────────── */
.font-brand { font-family: 'Cormorant Garamond', Georgia, serif; }

/* ── Shared: screen layer ────────────────────────────────────── */
.screen {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

/* Background image — covers full screen */
.bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* Logo helpers */
.logo-icon {
  display: block;
  flex-shrink: 0;
}
/* PNG is white-on-transparent — no filter needed */
.logo-white {
  /* intentionally empty */
}
.logo-sm  { width: 34px;  height: 34px;  }
.logo-md  { width: 44px;  height: 44px;  }

/* ── Alpine transitions ──────────────────────────────────────── */
.fade-enter  { transition: opacity 0.35s ease; }
.fade-leave  { transition: opacity 0.25s ease; }
.fade-from   { opacity: 0; }
.fade-to     { opacity: 1; }

.modal-enter { transition: opacity 0.2s ease, transform 0.2s ease; }
.modal-leave { transition: opacity 0.15s ease, transform 0.15s ease; }
.modal-from  { opacity: 0; transform: scale(0.94) translateY(8px); }
.modal-to    { opacity: 1; transform: scale(1) translateY(0); }


/* ══════════════════════════════════════════════════════════════
   SCREEN 1 — IDLE
   ══════════════════════════════════════════════════════════ */
.screen-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Logo positioned top-center */
.idle-logo {
  position: absolute;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.idle-logo .logo-icon { width: 78px; height: 78px; }

/* ── LET'S PLAY button ── */
.btn-lets-play {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #8C1A1A;
  border: 2px solid rgba(255,255,255,0.28);
  border-radius: 100px;
  padding: 16px 60px 16px 16px;
  color: #fff;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 44px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 8px 40px rgba(60, 5, 5, 0.5),
    inset 0 1px 0 rgba(255,255,255,0.12);
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn-lets-play:hover {
  background: #A31E1E;
  transform: scale(1.022);
  box-shadow: 0 10px 50px rgba(60,5,5,0.65), inset 0 1px 0 rgba(255,255,255,0.16);
}
.btn-lets-play:active { transform: scale(0.978); }

/* Play ▶ circle */
.play-circle {
  width: 62px; height: 62px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.play-circle svg {
  width: 22px; height: 22px;
  margin-left: 5px;
}

/* ── "HOSTED BY HALOOMINA⁷" footer ── */
.idle-footer {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.hosted-by-label {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.42em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}
.idle-brand {
  font-weight: 300;
  font-size: 30px;
  letter-spacing: 0.4em;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.2;
}
.idle-brand sup {
  font-size: 0.48em;
  letter-spacing: 0;
  vertical-align: super;
}


/* ══════════════════════════════════════════════════════════════
   SCREEN 2/3 — GAME (menu + QR)
   ══════════════════════════════════════════════════════════ */
.screen-game { display: block; }

.game-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 56% 44%;
  height: 100%;
  padding: 36px 44px;
  gap: 28px;
}

/* ── Left panel ── */
.panel-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.game-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.brand-sm {
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.36em;
  color: rgba(255,255,255,0.82);
  text-transform: uppercase;
  line-height: 1;
}
.brand-sm sup { font-size: 0.58em; letter-spacing: 0; }

.game-title {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 54px;
  letter-spacing: 0.3em;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 26px;
  line-height: 1;
}

/* ── Play option pills ── */
.plan-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  flex: 1;
  justify-content: center;
}

.plan-btn {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 13px 22px;
  border: 1.5px solid rgba(255,255,255,0.30);
  border-radius: 100px;
  background: transparent;
  color: #fff;
  font-family: 'Cinzel', serif;
  font-size: 19px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  text-align: left;
}
.plan-btn:hover {
  border-color: rgba(255,255,255,0.62);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 18px rgba(255,255,255,0.08);
}
.plan-btn.is-selected {
  border-color: rgba(255,255,255,0.88);
  background: rgba(255,255,255,0.09);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.14),
    0 0 28px rgba(255,255,255,0.16);
}
.plan-btn:disabled { pointer-events: none; opacity: 0.6; }
.plan-btn:active:not(:disabled) { transform: scale(0.99); }

/* Card suit badge circle */
.suit-badge {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.18s;
}
.plan-btn.is-selected .suit-badge { background: rgba(255,255,255,0.1); }

.suit-red  { color: #D63031; }
.suit-dark { color: rgba(255,255,255,0.88); }

.plan-label { flex: 1; text-align: left; }
.plan-price {
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.1em;
  text-align: right;
}

/* ── Right panel: QR ── */
.panel-right {
  display: flex;
  align-items: stretch;
}

.qr-panel {
  flex: 1;
  border: 1.5px solid rgba(255,255,255,0.40);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.045);
  padding: 20px;
  transition: background 0.3s;
}

/* Empty QR placeholder icon */
.qr-empty {
  opacity: 0.22;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Populated QR content */
.qr-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.scan-label {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 0.32em;
  color: rgba(255,255,255,0.78);
  text-transform: uppercase;
}

/* QR code white card */
.qr-wrap {
  background: #fff;
  padding: 10px;
  border-radius: 6px;
  line-height: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.qr-wrap canvas,
.qr-wrap img { display: block; }

.qr-countdown {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  color: rgba(255,255,255,0.52);
  letter-spacing: 0.06em;
}
.countdown-time {
  color: rgba(255,255,255,0.82);
  font-weight: 600;
}

/* QRIS logo row */
.qris-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qris-badge {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.68);
  border: 1.5px solid rgba(255,255,255,0.38);
  padding: 3px 10px;
  border-radius: 3px;
}
.qris-tag-pill {
  width: 76px; height: 26px;
  background: rgba(255,255,255,0.14);
  border-radius: 3px;
}

/* Polling indicator */
.poll-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.poll-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  animation: pollPulse 1.4s ease-in-out infinite;
}
.poll-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.04em;
}

@keyframes pollPulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50%       { opacity: 1;   transform: scale(1.15); }
}


/* ══════════════════════════════════════════════════════════════
   SCREEN 6 — CREDIT
   ══════════════════════════════════════════════════════════ */
.screen-credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.credit-layout {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Brand block */
.credit-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
}
.credit-header .logo-icon { margin-bottom: 4px; }

.credit-game-title {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: 38px;
  letter-spacing: 0.3em;
  color: #fff;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 4px;
}

/* ── Heart + number + KREDIT ── */
.credit-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 6px 0 28px;
}

.heart-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.heart-svg {
  width: 148px;
  height: 132px;
  filter: drop-shadow(0 6px 24px rgba(80, 5, 5, 0.55));
  display: block;
}
.heart-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -54%);
  font-weight: 600;
  font-size: 70px;
  color: #fff;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.credit-word {
  font-weight: 300;
  font-size: 98px;
  letter-spacing: 0.12em;
  color: #fff;
  text-transform: uppercase;
  line-height: 1;
}

/* ── GUNAKAN KREDIT button ── */
.btn-gunakan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 100px;
  padding: 15px 56px;
  color: #fff;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 0 22px rgba(255,255,255,0.1),
    inset 0 0 0 1px rgba(255,255,255,0.1);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.12s;
  margin-bottom: 16px;
}
.btn-gunakan:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.88);
  box-shadow: 0 0 32px rgba(255,255,255,0.18);
  transform: scale(1.022);
}
.btn-gunakan:active { transform: scale(0.978); }

/* Subtitle pill */
.credit-subtitle {
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 100px;
  padding: 8px 24px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.68);
}
.credit-subtitle strong { color: rgba(255,255,255,0.88); font-weight: 600; }


/* ══════════════════════════════════════════════════════════════
   MODALS
   ══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: absolute;
  inset: 0;
  z-index: 200;
  background: rgba(12, 6, 1, 0.68);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.modal-card {
  background: #F5EDD8;
  border-radius: 26px;
  padding: 52px 64px;
  text-align: center;
  min-width: 460px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 24px 72px rgba(0,0,0,0.42);
}

.modal-text {
  font-weight: 400;
  font-size: 26px;
  color: #3B2910;
  letter-spacing: 0.02em;
  line-height: 1.5;
  margin-bottom: 40px;
}

.modal-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* YES — red pill */
.btn-yes {
  background: #8C1A1A;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.22);
  border-radius: 100px;
  padding: 14px 56px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(60,5,5,0.4);
  transition: background 0.12s, transform 0.1s;
}
.btn-yes:hover  { background: #A31E1E; transform: scale(1.03); }
.btn-yes:active { transform: scale(0.97); }

/* NO / OK — gold outlined pill */
.btn-no, .btn-ok {
  background: transparent;
  color: #8A6820;
  border: 2px solid #8A6820;
  border-radius: 100px;
  padding: 14px 56px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, transform 0.1s;
}
.btn-no:hover,
.btn-ok:hover  { background: rgba(138,104,32,0.1); transform: scale(1.03); }
.btn-no:active,
.btn-ok:active { transform: scale(0.97); }
