/* =====================================================================
   ARCADE NEXUS - 사이버 네온 글래스모피즘 게임 플랫폼 스타일시트
   Worm Candy 비주얼 스타일 가이드 기반 제작
   ===================================================================== */

:root {
  --bg-primary: #080c14;
  --bg-secondary: #0f172a;
  --panel-bg: rgba(15, 23, 42, 0.72);
  --panel-border: rgba(56, 189, 248, 0.22);
  --panel-border-hover: rgba(0, 240, 255, 0.6);
  --glass-blur: blur(16px);

  --accent-cyan: #00f0ff;
  --accent-purple: #a855f7;
  --accent-pink: #ff007f;
  --accent-gold: #facc15;
  --accent-green: #10b981;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-dim: #64748b;

  --font-main: 'Outfit', 'Noto Sans KR', system-ui, -apple-system, sans-serif;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
  padding-top: 64px;
  -webkit-font-smoothing: antialiased;
}

/* ===================================================
   사이버 배경 효과
   =================================================== */
.cyber-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.8;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
  pointer-events: none;
}

.orb-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, #3b82f6, #8b5cf6);
  animation: floatOrb 16s ease-in-out infinite alternate;
}

.orb-2 {
  width: 600px;
  height: 600px;
  top: 20%;
  right: -150px;
  background: radial-gradient(circle, #a855f7, #ec4899);
  animation: floatOrb 20s ease-in-out infinite alternate-reverse;
}

.orb-3 {
  width: 450px;
  height: 450px;
  bottom: 0;
  left: 20%;
  background: radial-gradient(circle, #06b6d4, #3b82f6);
  animation: floatOrb 18s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-40px, 60px) scale(0.95); }
}

/* ===================================================
   상단 고정 네비게이션 헤더 (Navbar)
   =================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(8, 12, 20, 0.92);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--panel-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.logo-icon {
  font-size: 28px;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.6));
  animation: pulseIcon 2s infinite ease-in-out;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #fff;
}

.logo-title .highlight {
  color: var(--accent-cyan);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.7);
}

.logo-sub {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-dim);
}

/* 검색창 */
.nav-center {
  flex: 1;
  max-width: 480px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 9999px;
  padding: 8px 16px;
  transition: all 0.25s ease;
}

.search-box:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.35);
  background: rgba(15, 23, 42, 0.9);
}

.search-icon {
  font-size: 14px;
  margin-right: 8px;
  opacity: 0.7;
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13.5px;
  font-family: inherit;
}

.search-box input::placeholder {
  color: var(--text-dim);
}

.search-clear-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
}

/* ===================================================
   상단 고정 헤더 게임 플레이어 컨트롤 바 (스위처 & 창크기 프리셋)
   =================================================== */
.nav-game-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  justify-content: center;
  max-width: 820px;
}

/* 다른 게임 전환 드롭다운 */
.game-switch-wrap {
  position: relative;
}

.nav-game-switch-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #fff;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.nav-game-switch-btn:hover {
  border-color: #00f0ff;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.4);
  background: rgba(15, 23, 42, 0.98);
}

.nav-game-switch-btn .icon {
  font-size: 15px;
}

.nav-game-switch-btn .arrow {
  font-size: 10px;
  opacity: 0.7;
  transition: transform 0.2s ease;
  margin-left: 2px;
}

.nav-game-switch-btn.open .arrow {
  transform: rotate(180deg);
}

.game-switch-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 290px;
  background: rgba(10, 15, 26, 0.98);
  border: 1px solid rgba(0, 240, 255, 0.45);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 24px rgba(0, 240, 255, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1200;
  padding: 8px;
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.game-switch-menu-header {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  padding: 4px 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.game-switch-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  color: #e2e8f0;
  font-family: inherit;
}

.game-switch-item:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: rgba(0, 240, 255, 0.35);
  color: #fff;
  transform: translateX(2px);
}

.game-switch-item.active {
  background: rgba(0, 240, 255, 0.22);
  border-color: rgba(0, 240, 255, 0.6);
  color: #00f0ff;
  font-weight: 700;
}

.game-switch-item .item-thumb {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.game-switch-item .item-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
}

.game-switch-item .item-title {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-switch-item .item-category {
  font-size: 11px;
  color: var(--text-dim);
}

.game-switch-item.active .item-category {
  color: rgba(0, 240, 255, 0.8);
}

/* 화면 크기 프리셋 버튼 그룹 */
.game-size-preset-group {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}

.size-preset-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.size-preset-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.size-preset-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.3), rgba(168, 85, 247, 0.35));
  color: #00f0ff;
  border-color: rgba(0, 240, 255, 0.65);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

/* 플레이어 액션 버튼들 */
.nav-game-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-game-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-game-icon-btn:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: #00f0ff;
  color: #fff;
  transform: translateY(-1px);
}

.nav-game-icon-btn.btn-close-game {
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
  font-weight: 700;
}

.nav-game-icon-btn.btn-close-game:hover {
  background: rgba(239, 68, 68, 0.28);
  border-color: #ef4444;
  color: #fff;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* ===================================================
   인게임 뷰어 컨테이너 & 창크기 비율 모드
   =================================================== */
.player-view-container {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
  background: #05070d;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.player-frame-wrapper {
  background: #000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.2s ease, height 0.2s ease, aspect-ratio 0.2s ease;
}

/* 1) 전체 창크기 (100% 꽉 채우기) */
.player-frame-wrapper.size-full {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* 2) 16:9 와이드 비율 */
.player-frame-wrapper.size-16-9 {
  width: min(100%, calc((100vh - 64px) * 16 / 9));
  height: min(calc(100vh - 64px), calc(100vw * 9 / 16));
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 240, 255, 0.25);
}

/* 3) 4:3 아케이드 클래식 비율 */
.player-frame-wrapper.size-4-3 {
  width: min(100%, calc((100vh - 64px) * 4 / 3));
  height: min(calc(100vh - 64px), calc(100vw * 3 / 4));
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  border: 1px solid rgba(168, 85, 247, 0.5);
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(168, 85, 247, 0.3);
}

#game-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #000;
}
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-right button,
.nav-right .btn,
.nav-right .btn-logout,
.nav-right .btn-icon-admin {
  flex-shrink: 0;
  white-space: nowrap;
}

.env-mode-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.env-mode-pill:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.env-mode-pill.local-mode {
  background: rgba(250, 204, 21, 0.15);
  border-color: rgba(250, 204, 21, 0.45);
  color: #facc15;
}

.stats-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulseDot 1.6s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===================================================
   버튼 시스템
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  outline: none;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-neon-purple {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(236, 72, 153, 0.25));
  border: 1px solid rgba(168, 85, 247, 0.55);
  color: #f3e8ff;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.25);
}

.btn-neon-purple:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.45), rgba(236, 72, 153, 0.45));
  border-color: #c084fc;
  box-shadow: 0 6px 22px rgba(168, 85, 247, 0.45);
  transform: translateY(-2px);
}

/* 상단 헤더 로그아웃 버튼 (게임 관리 버튼과 높이, 패딩, 글래스모피즘 완벽 일치) */
.btn-logout-header {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(244, 63, 94, 0.15));
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.15);
}

.btn-logout-header:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.32), rgba(244, 63, 94, 0.32));
  border-color: rgba(239, 68, 68, 0.75);
  color: #ffffff;
  box-shadow: 0 6px 22px rgba(239, 68, 68, 0.4);
  transform: translateY(-2px);
}

.nav-right .btn {
  height: 38px;
  box-sizing: border-box;
}


/* ===================================================
   메인 컨텐츠
   =================================================== */
.main-content {
  position: relative;
  z-index: 10;
  max-width: 1380px;
  margin: 0 auto;
  padding: 32px 24px 60px 24px;
}

/* ===================================================
   1. 히어로 피처드 게임 배너
   =================================================== */
.hero-featured {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  background: var(--panel-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 240, 255, 0.08);
  margin-bottom: 40px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.2), transparent 70%);
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: linear-gradient(90deg, #ff007f, #ff5500);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 0, 127, 0.5);
}

.hero-subtag {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.hero-title {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 30%, #a5f3fc 70%, #00f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 240, 255, 0.3));
}

.hero-subtitle {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 14px;
}

.hero-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
}

.hero-actions {
  display: flex;
  gap: 14px;
}

.btn-hero-play {
  padding: 13px 28px;
  font-size: 15px;
  background: linear-gradient(135deg, #00f0ff, #0284c7);
  color: #04101e;
  border-radius: var(--radius-md);
  font-weight: 900;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 25px rgba(0, 240, 255, 0.45);
}

.btn-hero-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 240, 255, 0.65);
  filter: brightness(1.1);
}

.btn-hero-secondary {
  padding: 13px 22px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 700;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 240, 255, 0.25);
}

.hero-media-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-media-wrapper:hover img {
  transform: scale(1.04);
}

.hero-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(8, 12, 20, 0.8) 100%);
  pointer-events: none;
}

/* ===================================================
   2. 필터 섹션 (Category Tabs)
   =================================================== */
.filter-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-tab {
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-tab:hover {
  background: rgba(30, 41, 59, 0.8);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.cat-tab.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(168, 85, 247, 0.2));
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.3);
}

.filter-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
}

/* ===================================================
   3. 게임 카드 그리드
   =================================================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}

.game-card {
  position: relative;
  background: var(--panel-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--panel-border-hover);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 24px rgba(0, 240, 255, 0.25);
}

/* 썸네일 래퍼 */
.game-card-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.game-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-card:hover .game-card-thumb {
  transform: scale(1.06);
}

.game-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  background: linear-gradient(135deg, #ff007f, #a855f7);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.game-card-play-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 2px 7px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: #cbd5e1;
  z-index: 2;
}

/* 카드 바디 */
.game-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-card-category {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.game-card-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card-subtitle {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.game-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.game-card-tags .pill-tag {
  font-size: 10px;
  padding: 2px 6px;
}

/* 카드 액션 버튼들 */
.game-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.btn-card-play {
  flex: 1;
  padding: 9px 12px;
  background: linear-gradient(135deg, var(--accent-cyan), #0284c7);
  color: #04101e;
  font-weight: 800;
  font-size: 13px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.35);
}

.btn-card-play:hover {
  filter: brightness(1.15);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.55);
}

.btn-card-newtab {
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.btn-card-newtab:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* 빈 화면 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--panel-bg);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  margin-top: 20px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-state h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* ===================================================
/* ===================================================
   인게임 플레이어 시네마 뷰어 모달 (화면 100% 몰입형 풀스크린 뷰)
   =================================================== */
.game-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.game-modal-backdrop.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}

.game-modal-container {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  background: #000;
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* 슬림형 상단 글래스 컨트롤 바 (게임 화면 침범 최소화) */
.game-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 18px;
  height: 42px;
  box-sizing: border-box;
  background: rgba(10, 15, 26, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
  flex-shrink: 0;
}

.game-modal-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-game-badge {
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  background: var(--accent-green);
  color: #04101e;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.modal-game-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
}

.game-modal-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-ctrl-btn {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.modal-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.modal-close-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 18px;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 4px;
  line-height: 1;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.35);
  color: #fff;
  border-color: rgba(239, 68, 68, 0.7);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.game-modal-body {
  flex: 1;
  width: 100%;
  height: calc(100vh - 42px);
  position: relative;
  background: #000;
}

.game-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ===================================================
   관리자 모달 (Admin Modal)
   =================================================== */
.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-modal-backdrop.hidden {
  display: none;
}

.admin-modal-box {
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  background: #0d1322;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(168, 85, 247, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(20, 27, 45, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.admin-header-icon {
  font-size: 20px;
}

.admin-title-row h2 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.admin-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}

.admin-close-btn:hover {
  color: #fff;
}

/* 관리자 헤더 우측 및 로그인 팝업 스타일 */
.admin-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-badge-user {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #d8b4fe;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-logout {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ffffff;
  border-color: rgba(239, 68, 68, 0.7);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* 상단 네비게이션 관리자 유저 그룹 */
.admin-user-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-header-pill {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 9999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #d8b4fe;
  display: inline-flex;
  align-items: center;
}

/* 비로그인 시 우측에 은은하게 위치하는 미니 관리자 이모지 버튼 */
.btn-icon-admin {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
  opacity: 0.65;
}

.btn-icon-admin:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}



.admin-login-box {
  max-width: 440px;
}

.admin-login-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-login-intro p {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.admin-login-intro .login-subtext {
  font-size: 12px;
  color: var(--text-secondary);
}

.admin-login-intro .login-subtext code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: #38bdf8;
  font-family: monospace;
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.admin-login-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.admin-login-form .form-input,
.form-input {
  width: 100% !important;
  box-sizing: border-box !important;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  transition: all 0.2s ease;
}

.admin-login-form .form-input:focus,
.form-input:focus {
  border-color: var(--accent-cyan);
  outline: none;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
  background: rgba(20, 30, 55, 0.95);
}

.login-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}


/* 관리자 탭 */
.admin-tabs {
  display: flex;
  background: rgba(12, 17, 30, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 16px;
}

.admin-tab {
  padding: 12px 18px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-tab:hover {
  color: #fff;
}

.admin-tab.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}

.admin-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.admin-tab-pane {
  display: none;
}

.admin-tab-pane.active {
  display: block;
}

/* ===================================================
   로컬 폴더 자동 스캔 탭 스타일
   =================================================== */
.scan-guide-card {
  background: rgba(24, 32, 54, 0.65);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 20px;
}

.scan-guide-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 6px;
}

.scan-guide-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 12px;
}

.quick-path-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-dim);
}

.quick-pill-btn {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 9999px;
  padding: 3px 10px;
  font-size: 11.5px;
  font-family: monospace;
  color: #38bdf8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-pill-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #fff;
}

.scan-input-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #cbd5e1;
}

.input-with-btn {
  display: flex;
  gap: 10px;
}

.input-with-btn input {
  flex: 1;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-family: monospace;
  font-size: 13.5px;
}

.input-with-btn input:focus {
  border-color: var(--accent-cyan);
  outline: none;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.btn-scan {
  background: linear-gradient(135deg, var(--accent-cyan), #0284c7);
  color: #04101e;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
}

.btn-scan:hover {
  filter: brightness(1.15);
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.4);
}

/* 스캔 로딩 인디케이터 */
.scan-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  gap: 12px;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(0, 240, 255, 0.2);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.scan-loading p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* 스캔 결과 미리보기 카드 */
.scan-preview-card {
  margin-top: 24px;
  background: rgba(18, 25, 42, 0.85);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.15);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-badge {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-cyan);
}

.preview-status {
  font-size: 11px;
  padding: 2px 7px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--accent-green);
  border-radius: 4px;
  color: #34d399;
  font-weight: 700;
}

.preview-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.preview-thumb-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preview-thumb-box img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.preview-thumb-label {
  font-size: 10.5px;
  text-align: center;
  color: var(--accent-cyan);
  font-weight: 700;
}

.preview-info-box h4 {
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}

.preview-subtitle-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.preview-desc-text {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.preview-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #cbd5e1;
}

.preview-meta-grid strong {
  color: var(--text-dim);
  margin-right: 4px;
}

.preview-footer {
  display: flex;
  justify-content: flex-end;
}

.btn-confirm-add {
  padding: 11px 24px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4);
}

.btn-confirm-add:hover {
  filter: brightness(1.15);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.6);
  transform: translateY(-2px);
}

/* ===================================================
   등록된 게임 목록 탭 (Admin Tab 2)
   =================================================== */
.admin-game-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-game-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(18, 25, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  gap: 16px;
  transition: all 0.2s ease;
}

.admin-game-row:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(22, 32, 54, 0.85);
}

.admin-game-row-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.admin-row-thumb {
  width: 64px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.admin-row-info {
  min-width: 0;
  flex: 1;
}

.admin-row-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-row-meta {
  font-size: 11.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-game-row-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-row-action {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.btn-row-edit {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.btn-row-edit:hover {
  background: rgba(56, 189, 248, 0.3);
  color: #fff;
}

.btn-row-del {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fb7185;
}

.btn-row-del:hover {
  background: rgba(244, 63, 94, 0.35);
  color: #fff;
}

/* ===================================================
   수동 폼 (Admin Tab 3)
   =================================================== */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: flex;
  gap: 14px;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.form-group .req {
  color: var(--accent-pink);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-cyan);
  outline: none;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.thumb-upload-box {
  display: flex;
  gap: 10px;
}

.btn-upload-file {
  padding: 9px 14px;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #e9d5ff;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.btn-upload-file:hover {
  background: rgba(168, 85, 247, 0.35);
  color: #fff;
}

.form-check-row {
  margin-top: 4px;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}

.btn-submit-game {
  background: linear-gradient(135deg, var(--accent-cyan), #0284c7);
  color: #04101e;
  font-weight: 800;
}

.btn-submit-game:hover {
  filter: brightness(1.15);
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.4);
}

/* ===================================================
   토스트 알림 (Toast)
   =================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  padding: 12px 20px;
  background: rgba(15, 23, 42, 0.95);
  border-left: 4px solid var(--accent-cyan);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  pointer-events: auto;
  animation: slideToast 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.success { border-left-color: var(--accent-green); }
.toast.error { border-left-color: var(--accent-pink); }

@keyframes slideToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===================================================
   푸터 (Footer)
   =================================================== */
.footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--panel-border);
  background: rgba(8, 12, 20, 0.85);
  padding: 32px 24px;
  text-align: center;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.footer-desc {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.footer-copyright {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.5);
}

.hidden {
  display: none !important;
}

/* ===================================================
   반응형 모바일 미디어 쿼리
   =================================================== */
@media (max-width: 900px) {
  .hero-featured {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .hero-title {
    font-size: 28px;
  }

  .navbar {
    padding: 12px 16px;
  }

  .nav-center {
    display: none;
  }

  .preview-body {
    grid-template-columns: 1fr;
  }

  .form-row {
    flex-direction: column;
    gap: 12px;
  }
}
