/* ==========================================================================
   New Kong's Hotel — coming soon / maintenance / error pages
   Used by resources/views/site/status.blade.php. Self-contained on purpose.
   ========================================================================== */

:root {
  --ss-gold: #F5B800;
  --ss-gold-dark: #C99700;
  --ss-gold-soft: rgba(245, 184, 0, 0.14);
  --ss-bg: #1F1E1C;
  --ss-bg-2: #2D2D2D;
  --ss-card: #262522;
  --ss-text: #F1EEE7;
  --ss-muted: #B3AEA4;
  --ss-line: rgba(255, 255, 255, 0.09);
  --ss-warn-bg: rgba(245, 184, 0, 0.09);
  --ss-warn-line: rgba(245, 184, 0, 0.45);
  --ss-display: 'Playfair Display', Georgia, serif;
  --ss-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ss-radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.ss-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--ss-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ss-text);
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(245, 184, 0, 0.16), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(245, 184, 0, 0.08), transparent 60%),
    var(--ss-bg);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.ss-grain {
  position: fixed; inset: 0; pointer-events: none; opacity: 0.05; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--ss-gold); }

/* ── Layout ─────────────────────────────────────────────────────────── */
.ss-wrap {
  position: relative; z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 24px max(16px, env(safe-area-inset-left));
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 960px) {
  .ss-wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; padding-top: 48px; padding-bottom: 48px; }
}

/* ── Brand ──────────────────────────────────────────────────────────── */
.ss-brand {
  display: flex; width: max-content; max-width: 100%; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ss-text);
  margin-bottom: 28px;
}
.ss-brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--ss-gold); color: #2D2D2D;
  font-family: var(--ss-display); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em;
  box-shadow: 0 6px 20px rgba(245, 184, 0, 0.25);
}
.ss-brand-name { display: block; font-family: var(--ss-display); font-weight: 700; font-size: 1.15rem; line-height: 1.1; }
.ss-brand-tag  { display: block; font-size: 0.72rem; color: var(--ss-muted); letter-spacing: 0.08em; text-transform: uppercase; }

/* ── Copy ───────────────────────────────────────────────────────────── */
.ss-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px;
  border: 1px solid var(--ss-warn-line);
  border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ss-gold);
  background: var(--ss-gold-soft);
}
.ss-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ss-gold); box-shadow: 0 0 0 0 rgba(245,184,0,.6); animation: ssPulse 2s infinite; }
@keyframes ssPulse { 0% { box-shadow: 0 0 0 0 rgba(245,184,0,.55); } 70% { box-shadow: 0 0 0 10px rgba(245,184,0,0); } 100% { box-shadow: 0 0 0 0 rgba(245,184,0,0); } }

.ss-title {
  font-family: var(--ss-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 7.5vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.ss-title em { font-style: italic; font-weight: 600; color: var(--ss-gold); }

.ss-lead { color: var(--ss-muted); font-size: 1.02rem; max-width: 34em; margin: 0 0 18px; }
.ss-launch { margin: 0 0 18px; font-size: 0.95rem; color: var(--ss-muted); }
.ss-launch strong { color: var(--ss-text); }

.ss-notice {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 6px 0 20px;
  padding: 14px 16px;
  border: 1px solid var(--ss-warn-line);
  border-left-width: 4px;
  border-radius: 12px;
  background: var(--ss-warn-bg);
  font-size: 0.9rem; line-height: 1.5;
  max-width: 36em;
}
.ss-notice svg { flex: 0 0 auto; color: var(--ss-gold); margin-top: 1px; }
.ss-notice strong { color: var(--ss-gold); }

.ss-contact { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; font-size: 0.93rem; }
.ss-contact li { display: flex; gap: 12px; align-items: baseline; }
.ss-contact span {
  flex: 0 0 72px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ss-muted);
}
.ss-contact a { color: var(--ss-text); text-decoration-color: rgba(245,184,0,.5); text-underline-offset: 3px; }

/* ── Buttons ────────────────────────────────────────────────────────── */
.ss-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--ss-line);
  background: rgba(255,255,255,0.06);
  color: var(--ss-text);
  font: 600 0.95rem/1 var(--ss-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.ss-btn:hover { background: rgba(255,255,255,0.1); }
.ss-btn:active { transform: scale(0.97); }
.ss-btn:focus-visible, .ss-icon-btn:focus-visible { outline: 2px solid var(--ss-gold); outline-offset: 3px; }
.ss-btn-gold { background: var(--ss-gold); border-color: var(--ss-gold); color: #2D2D2D; box-shadow: 0 8px 24px rgba(245,184,0,.28); }
.ss-btn-gold:hover { background: #FFC81F; }
.ss-btn-ghost { background: transparent; }

.ss-icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--ss-line); background: rgba(255,255,255,0.05); color: var(--ss-text);
  cursor: pointer;
}
.ss-icon-btn .ic-off { display: none; }
.ss-icon-btn[aria-pressed="true"] .ic-on { display: none; }
.ss-icon-btn[aria-pressed="true"] .ic-off { display: block; }

/* ── Game ───────────────────────────────────────────────────────────── */
.ss-game-col { width: 100%; max-width: 520px; justify-self: center; }

.ss-game-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 10px;
  font-size: 0.9rem; color: var(--ss-muted);
}
.ss-game-head strong { color: var(--ss-text); }

.ss-game {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 74vh;
  max-height: 74dvh;
  border-radius: var(--ss-radius);
  overflow: hidden;
  background: #87B9D9;
  border: 1px solid var(--ss-line);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 0 0 6px rgba(255,255,255,0.025);
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.ss-game canvas { display: block; width: 100%; height: 100%; cursor: pointer; }

.ss-game-hint { text-align: center; margin: 10px 0 0; font-size: 0.78rem; color: var(--ss-muted); }
kbd { font: 600 0.72rem var(--ss-body); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--ss-line); background: rgba(255,255,255,.06); color: var(--ss-text); }

.kt-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 20px;
  background: linear-gradient(180deg, rgba(20,19,18,0.15), rgba(20,19,18,0.55));
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
.kt-overlay.is-visible { opacity: 1; visibility: visible; }

.kt-card {
  width: 100%; max-width: 340px;
  padding: 24px 22px 20px;
  border-radius: 16px;
  background: rgba(31, 30, 28, 0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(245,184,0,.25);
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
  transform: translateY(8px) scale(.98);
  transition: transform .3s cubic-bezier(.2,.9,.3,1.2);
}
.kt-overlay.is-visible .kt-card { transform: none; }

.kt-kicker { margin: 0 0 4px; font-size: 0.72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ss-gold); }
.kt-h { margin: 0 0 10px; font-family: var(--ss-display); font-size: 2rem; line-height: 1.1; }
.kt-h small { font-family: var(--ss-body); font-size: 1rem; font-weight: 500; color: var(--ss-muted); }
.kt-p { margin: 0 0 18px; font-size: 0.9rem; color: var(--ss-muted); line-height: 1.5; }
.kt-p strong { color: var(--ss-gold); }
.kt-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.kt-best { margin: 14px 0 0; font-size: 0.82rem; color: var(--ss-muted); }
.kt-best strong { color: var(--ss-text); }

/* ── Footer ─────────────────────────────────────────────────────────── */
.ss-foot {
  position: relative; z-index: 1;
  text-align: center;
  padding: 18px 16px max(18px, env(safe-area-inset-bottom));
  font-size: 0.78rem; color: var(--ss-muted);
  border-top: 1px solid var(--ss-line);
}

/* Phones: copy stacks above the game. */
@media (max-width: 959.98px) {
  .ss-brand { margin-bottom: 20px; }
  .ss-game { max-height: 68vh; max-height: 68dvh; }
}

@media (prefers-reduced-motion: reduce) {
  .ss-dot { animation: none; }
  .kt-card, .kt-overlay { transition: none; }
}
