/* ==========================================================================
   ARGONCADE.COM - Modern Editorial Dark & Interactive Studio Design System (v5)
   Tactile Matte Slate (#0A0B0F) | Elevated Glass (#12141C) | Hairline Specular Borders
   Typography: Space Grotesk (Display/Telemetry) + Pretendard (Editorial UI)
   ========================================================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg-deep: #0A0B0F;
  --bg-card: #12141C;
  --bg-card-hover: #171A24;
  --bg-elevated: #1B1E2B;
  --argon-violet: #818CF8;
  --argon-violet-glow: rgba(129, 140, 248, 0.22);
  --arcade-cyan: #38BDF8;
  --arcade-cyan-glow: rgba(56, 189, 248, 0.22);
  --coin-gold: #FACC15;
  --coin-gold-glow: rgba(250, 204, 21, 0.22);
  --accent-game: #A3E635;
  --accent-test: #818CF8;
  --accent-humor: #F59E0B;
  --neon-pink: #F472B6;
  --neon-green: #34D399;
  --text-main: #F4F5F8;
  --text-sub: #9498A6;
  --text-muted: #64687A;
  --border-subtle: rgba(255, 255, 255, 0.075);
  --border-strong: rgba(255, 255, 255, 0.14);
  --surface-specular: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --radius-lg: 18px;
  --radius-md: 13px;
  --radius-sm: 8px;
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', 'Noto Sans JP', sans-serif;
  --font-display: 'Space Grotesk', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -15%, rgba(129, 140, 248, 0.11), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 15%, rgba(56, 189, 248, 0.06), transparent 65%);
  overflow-x: hidden;
  padding-bottom: 84px;
  position: relative;
}

/* Tactile Editorial Film Noise Grain Overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Inline Lucide Vector Icon Utilities */
.lucide-icon,
.ui-svg-icon {
  display: inline-block;
  vertical-align: -0.16em;
  width: 1em;
  height: 1em;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

/* ==========================================================================
   1. STICKY HEADER & NAVIGATION
   ========================================================================== */
.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 15, 0.84);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
  cursor: pointer;
  user-select: none;
}

.brand-logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #F4F5F8 0%, #94A3B8 100%);
  color: #0A0B0F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.12);
}

.brand-logo-text {
  color: #F4F5F8;
  letter-spacing: -0.02em;
}

.brand-domain-pill {
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  letter-spacing: 0.08em;
}

.header-center-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-battle-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--surface-specular);
  padding: 6px 13px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.77rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-battle-pill:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

.header-tier-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(163, 230, 53, 0.07);
  border: 1px solid rgba(163, 230, 53, 0.28);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #A3E635;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-tier-pill:hover {
  background: rgba(163, 230, 53, 0.14);
  border-color: rgba(163, 230, 53, 0.48);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #A3E635;
  box-shadow: 0 0 8px rgba(163, 230, 53, 0.8);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-random-top {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  box-shadow: var(--surface-specular);
  color: #F4F5F8;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-random-top:hover {
  background: #F4F5F8;
  color: #0A0B0F;
  border-color: #F4F5F8;
  transform: translateY(-1px);
}

.btn-icon-top {
  height: 33px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all 0.15s ease;
}

.btn-icon-top:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.07);
}

.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  padding: 4px 9px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.71rem;
  font-weight: 700;
  color: var(--text-sub);
  transition: all 0.15s ease;
}

.lang-btn.active {
  background: #F4F5F8;
  color: #0A0B0F;
  font-weight: 700;
}

/* ==========================================================================
   2. SUBTLE TELEMETRY TICKER BAR
   ========================================================================== */
.live-ticker-bar {
  background: rgba(15, 17, 23, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  height: 32px;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  animation: marqueeScroll 48s linear infinite;
  padding-left: 20px;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  font-size: 0.75rem;
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.ticker-tag {
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #E2E8F0;
}

.ticker-item strong {
  color: #F4F5F8;
  font-weight: 700;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   3. MAIN CONTAINER LAYOUT
   ========================================================================== */
.arcade-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 24px;
}

/* ==========================================================================
   4. HERO SHOWCASE, DAILY QUEST BAR & DAILY NAME ANALYZER
   ========================================================================== */
.hero-bento {
  display: grid;
  grid-template-columns: 1.58fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.hero-main-card {
  background:
    radial-gradient(circle at 86% 32%, rgba(129, 140, 248, 0.16), transparent 52%),
    radial-gradient(circle at 72% 82%, rgba(56, 189, 248, 0.11), transparent 55%),
    linear-gradient(145deg, #151823 0%, #0E1017 100%);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--surface-specular), 0 20px 44px -16px rgba(0, 0, 0, 0.7);
  border-radius: var(--radius-lg);
  padding: 32px 34px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 248px;
}

.hero-canvas-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.82;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(8px);
  color: #E2E8F0;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.hero-main-card h1 {
  font-size: clamp(1.42rem, 2.3vw, 1.92rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.28;
  margin-bottom: 11px;
  color: #FFFFFF;
  max-width: 550px;
}

.hero-main-card p {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.62;
  max-width: 520px;
  margin-bottom: 24px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Editorial Studio CTA Buttons */
.btn-coin-cta {
  background: #F4F5F8;
  color: #0A0B0F;
  font-weight: 800;
  font-size: 0.86rem;
  padding: 11px 20px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.12);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-coin-cta:hover {
  background: #A3E635;
  color: #090A0F;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(163, 230, 53, 0.32);
}

.btn-violet-cta {
  background: rgba(129, 140, 248, 0.14);
  border: 1px solid rgba(129, 140, 248, 0.4);
  color: #E0E7FF;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 11px 20px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-violet-cta:hover {
  background: #818CF8;
  color: #0A0B0F;
  border-color: #818CF8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(129, 140, 248, 0.32);
}

.hero-side-card {
  background: linear-gradient(160deg, #141722 0%, #10121A 100%);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--surface-specular);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.country-rank-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.country-rank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 11, 15, 0.55);
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 0.81rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.country-rank-row.top-1 {
  border-color: rgba(163, 230, 53, 0.32);
  background: rgba(163, 230, 53, 0.05);
}

.country-iso-pill {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: #F4F5F8;
  letter-spacing: 0.04em;
}

/* Daily Quests Strip */
.daily-quest-bar {
  background: linear-gradient(90deg, rgba(18, 20, 28, 0.95), rgba(22, 25, 36, 0.95));
  border: 1px solid var(--border-subtle);
  box-shadow: var(--surface-specular);
  border-radius: var(--radius-md);
  padding: 13px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.quest-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quest-badge {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(163, 230, 53, 0.12);
  border: 1px solid rgba(163, 230, 53, 0.32);
  color: #A3E635;
}

.quest-list,
.quest-items-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.quest-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.77rem;
  font-weight: 700;
  background: rgba(10, 11, 15, 0.65);
  border: 1px solid var(--border-subtle);
  color: var(--text-sub);
  transition: all 0.18s ease;
}

.quest-chip:hover {
  border-color: var(--border-strong);
  color: #F4F5F8;
}

.quest-chip.done {
  background: rgba(163, 230, 53, 0.1);
  border-color: rgba(163, 230, 53, 0.38);
  color: #A3E635;
}

.quest-check {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  color: #CBD5E1;
}

.quest-chip.done .quest-check {
  background: #A3E635;
  color: #0A0B0F;
}

/* Daily Name Analyzer Bar */
.slot-machine-widget {
  background: linear-gradient(160deg, #141722 0%, #101219 100%);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--surface-specular);
  border-radius: var(--radius-lg);
  padding: 20px 26px;
  margin-bottom: 16px;
}

.slot-machine-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.slot-title-group h2 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #F4F5F8;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.slot-title-group p {
  font-size: 0.82rem;
  color: var(--text-sub);
}

.slot-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 460px;
}

.slot-input {
  flex: 1;
  background: #0A0B0F;
  border: 1px solid var(--border-strong);
  color: #FFFFFF;
  padding: 11px 15px;
  border-radius: 10px;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.slot-input:focus {
  border-color: #818CF8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}

.slot-result-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: none;
}

.slot-result-panel.open {
  display: block;
}

.slot-reels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.slot-reel-card {
  background: rgba(10, 11, 15, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  padding: 13px 15px;
}

.slot-reel-label {
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 5px;
  text-transform: uppercase;
}

.slot-reel-value {
  font-size: 0.94rem;
  font-weight: 800;
  color: #F4F5F8;
}

/* ==========================================================================
   5. CATEGORY FILTER BAR & GROUPED SECTIONS
   ========================================================================== */
.category-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-subtle);
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.cat-tab {
  padding: 9px 17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-sub);
  font-weight: 700;
  font-size: 0.84rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-tab:hover {
  color: #FFFFFF;
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
}

.cat-tab.active {
  background: #F4F5F8;
  color: #0A0B0F;
  font-weight: 800;
  border-color: #F4F5F8;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.14);
}

/* Grouped Category Sections */
.grouped-sections-container {
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.category-group-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.group-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.group-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.group-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.group-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}

.group-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.group-title {
  font-size: 1.44rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #FFFFFF;
}

.group-count-badge {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-sub);
  border: 1px solid var(--border-subtle);
}

.group-subtitle {
  font-size: 0.85rem;
  color: var(--text-sub);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* ==========================================================================
   individual Content Card + Hologram Foil Shimmer & 1.08x Zoom Parallax
   ========================================================================== */
.arcade-card {
  background: linear-gradient(165deg, #151822 0%, #101219 100%);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--surface-specular), 0 10px 28px -12px rgba(0, 0, 0, 0.6);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 0.36s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.28s ease,
    box-shadow 0.36s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.28s ease;
  cursor: pointer;
  position: relative;
}

.arcade-card:hover {
  transform: translateY(-6px);
  background: linear-gradient(165deg, #191D2A 0%, #12151E 100%);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 22px 44px -12px rgba(0, 0, 0, 0.82);
}

.arcade-card[data-group="game"]:hover {
  border-color: rgba(163, 230, 53, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(163, 230, 53, 0.22),
    0 22px 44px -12px rgba(0, 0, 0, 0.82),
    0 0 28px rgba(163, 230, 53, 0.1);
}

.arcade-card[data-group="test"]:hover {
  border-color: rgba(129, 140, 248, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(129, 140, 248, 0.22),
    0 22px 44px -12px rgba(0, 0, 0, 0.82),
    0 0 28px rgba(129, 140, 248, 0.12);
}

.arcade-card[data-group="humor"]:hover {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(245, 158, 11, 0.22),
    0 22px 44px -12px rgba(0, 0, 0, 0.82),
    0 0 28px rgba(245, 158, 11, 0.1);
}

/* Thumbnail Artwork Container with 1.08x Hover Zoom & Hologram Foil Sweep */
.card-preview-box {
  height: 176px;
  position: relative;
  overflow: hidden;
  background-color: #090B10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.32s ease;
  z-index: 0;
}

.card-preview-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.28s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.card-preview-canvas.always-visible {
  opacity: 1;
}

.arcade-card:hover .card-thumb-img {
  transform: scale(1.07);
}

.arcade-card:hover .card-preview-canvas,
.arcade-card.preview-focus .card-preview-canvas {
  opacity: 1;
}

.live-preview-pill {
  position: absolute;
  bottom: 10px;
  right: 12px;
  z-index: 4;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(10, 11, 16, 0.86);
  border: 1px solid rgba(163, 230, 53, 0.55);
  color: #A3E635;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.arcade-card:hover .live-preview-pill,
.arcade-card.preview-focus .live-preview-pill {
  opacity: 1;
  transform: translateY(0);
}

/* Hologram Foil Iridescent Shimmer Shader Overlay */
.card-preview-box::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    115deg,
    transparent 24%,
    rgba(255, 255, 255, 0.04) 38%,
    rgba(56, 189, 248, 0.22) 45%,
    rgba(163, 230, 53, 0.2) 50%,
    rgba(244, 114, 182, 0.18) 55%,
    rgba(255, 255, 255, 0.05) 62%,
    transparent 76%
  );
  transform: translateX(-130%) skewX(-18deg);
  transition: transform 0.78s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: screen;
}

.arcade-card:hover .card-preview-box::after {
  transform: translateX(130%) skewX(-18deg);
}

/* Subtle bottom vignette on artwork for badge & title contrast */
.card-preview-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 11, 16, 0.42) 0%, transparent 38%, rgba(16, 18, 25, 0.78) 100%);
  pointer-events: none;
  z-index: 2;
}

.card-badges-overlay {
  position: absolute;
  top: 11px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 4;
}

.badge-pill,
.native-ad-tag {
  padding: 4px 9px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(10, 11, 16, 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #F1F5F9;
  text-transform: uppercase;
}

.badge-time {
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 0.67rem;
  font-weight: 600;
  background: rgba(10, 11, 16, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #CBD5E1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-hot-badge,
.badge-hot-tier {
  padding: 4px 9px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.92);
  color: #0A0B0F;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.card-hot-badge.best {
  background: linear-gradient(135deg, #FACC15 0%, #FB923C 100%);
  color: #090A0F;
}

.card-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 4;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 7px;
  line-height: 1.36;
  color: #F4F5F8;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.arcade-card:hover .card-title {
  transform: translateY(-2px);
  color: #FFFFFF;
}

.card-desc {
  font-size: 0.83rem;
  color: var(--text-sub);
  line-height: 1.56;
  margin-bottom: 16px;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.arcade-card:hover .card-desc {
  transform: translateY(-1px);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.card-players {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-play-mini {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #F4F5F8;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 6px 13px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.arcade-card[data-group="game"]:hover .btn-play-mini {
  background: #A3E635;
  border-color: #A3E635;
  color: #090A0F;
}

.arcade-card[data-group="test"]:hover .btn-play-mini {
  background: #818CF8;
  border-color: #818CF8;
  color: #090A0F;
}

.arcade-card[data-group="humor"]:hover .btn-play-mini {
  background: #F59E0B;
  border-color: #F59E0B;
  color: #090A0F;
}

/* ==========================================================================
   6. ACTIVE STAGE / GAME & TEST WORKSPACE VIEW + EDITORIAL INFOGRAPHICS
   ========================================================================== */
.stage-view {
  display: none;
  background: linear-gradient(165deg, #141722 0%, #0E1017 100%);
  border: 1px solid var(--border-strong);
  box-shadow: var(--surface-specular), 0 24px 60px rgba(0, 0, 0, 0.7);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.stage-view.active {
  display: block;
}

.stage-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.btn-back-lobby {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  color: #F4F5F8;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 15px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.18s ease;
}

.btn-back-lobby:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Editorial Highlight & Hologram Stamp Utilities */
.editorial-highlight {
  background: linear-gradient(120deg, rgba(163, 230, 53, 0.22) 0%, rgba(56, 189, 248, 0.22) 100%);
  border-bottom: 2px solid #A3E635;
  color: #FFFFFF;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.holo-stamp-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 2px solid #A3E635;
  outline: 1px dashed rgba(163, 230, 53, 0.45);
  outline-offset: -5px;
  border-radius: 10px;
  transform: rotate(-5deg);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, rgba(163, 230, 53, 0.14), rgba(56, 189, 248, 0.14));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* Game Canvas Container */
.game-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 540px;
  margin: 0 auto;
  background: #07080C;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

.game-hud-bar {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  pointer-events: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9);
}

.game-overlay-modal {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 13, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

/* Mobile Touch Controls for 3D Games */
.touch-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 900px;
  margin: 12px auto 0;
}

.touch-btn {
  flex: 1;
  background: #171A24;
  border: 1px solid var(--border-strong);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 14px 10px;
  border-radius: 10px;
  user-select: none;
  touch-action: manipulation;
}

.touch-btn:active {
  background: #F4F5F8;
  color: #0A0B0F;
}

.touch-btn.fire-btn {
  background: rgba(163, 230, 53, 0.14);
  border-color: rgba(163, 230, 53, 0.45);
  color: var(--accent-game);
}

/* Interactive Motion Quiz Styling */
.quiz-container {
  max-width: 760px;
  margin: 0 auto;
}

.quiz-progress-bar {
  height: 6px;
  background: #1D202B;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #818CF8, #38BDF8);
  transition: width 0.3s ease;
}

.quiz-motion-stage {
  height: 220px;
  background: radial-gradient(circle at center, rgba(129, 140, 248, 0.14), #0E1016 72%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiz-question-title {
  font-size: 1.26rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.45;
  margin-bottom: 18px;
  text-align: center;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option-btn {
  width: 100%;
  text-align: left;
  background: rgba(18, 20, 28, 0.85);
  border: 1px solid var(--border-subtle);
  padding: 16px 20px;
  border-radius: 11px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #F4F5F8;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.quiz-option-btn:hover {
  background: #191D29;
  border-color: rgba(129, 140, 248, 0.55);
  transform: translateX(4px);
}

/* ==========================================================================
   7. FOOTER & MOBILE BOTTOM NAVIGATION
   ========================================================================== */
.site-footer {
  max-width: 1240px;
  margin: 56px auto 20px;
  padding: 28px 24px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-sub);
  font-size: 0.82rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links button, .footer-links a {
  color: var(--text-sub);
  font-size: 0.82rem;
  font-weight: 600;
}

.footer-links button:hover, .footer-links a:hover {
  color: #FFFFFF;
}

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 120;
  background: rgba(10, 11, 15, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  justify-content: space-around;
}

.mob-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-sub);
  padding: 4px 10px;
  border-radius: 8px;
}

.mob-nav-item.active {
  color: #F4F5F8;
}

/* Modal Dialogs */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 7, 10, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: linear-gradient(165deg, #161924 0%, #10121A 100%);
  border: 1px solid var(--border-strong);
  box-shadow: var(--surface-specular), 0 24px 64px rgba(0, 0, 0, 0.85);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 28px;
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
  .header-battle-pill {
    display: none;
  }
  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-center-pills {
    display: none;
  }
  .hero-bento {
    grid-template-columns: 1fr;
    margin-bottom: 12px;
  }
  .hero-main-card {
    padding: 18px 20px;
    min-height: auto;
  }
  .hero-main-card h1 {
    font-size: 1.24rem;
    margin-bottom: 6px;
  }
  .hero-main-card p {
    font-size: 0.82rem;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-side-card {
    display: none;
  }
  .slot-machine-widget {
    padding: 14px 16px;
    margin-bottom: 12px;
  }
  .slot-title-group p {
    display: none;
  }
  .daily-quest-bar {
    padding: 10px 14px;
    margin-bottom: 14px;
  }
  .category-tabs {
    position: sticky;
    top: 57px;
    z-index: 85;
    background: rgba(10, 11, 15, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 10px 4px;
    margin-bottom: 18px;
  }
  .bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .slot-machine-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .slot-form {
    max-width: 100%;
  }
  .game-canvas-wrap {
    height: 440px;
  }
  .mobile-bottom-nav {
    display: flex;
  }
}

@media (max-width: 560px) {
  .arcade-layout {
    padding: 14px 14px;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .brand-domain-pill {
    display: none;
  }
}
