/* ==========================================================================
   NABELLIAN ARCADE - AUTHENTIC APPLE ARCADE DESIGN SYSTEM (KOREAN EDITION)
   ========================================================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  /* Apple Light / App Store Theme Palette */
  --bg-main: #f5f5f7;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --bg-card-subtle: #f2f2f7;
  --bg-pill: #ffffff;
  --bg-pill-hover: #e5e5ea;
  --bg-pill-active: #0071e3;

  /* Text Colors */
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --text-tertiary: #a1a1a6;
  --text-blue: #0071e3;

  /* Apple Arcade Accent Colors */
  --apple-blue: #0071e3;
  --apple-blue-hover: #0077ed;
  --apple-blue-active: #006edb;
  --apple-btn-gray: #f2f2f7;
  --apple-btn-gray-text: #0071e3;
  --apple-red: #ff3b30;
  --apple-orange: #ff9500;

  /* Borders & Shadows */
  --border-light: rgba(0, 0, 0, 0.06);
  --border-card: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-pill: 0 2px 6px rgba(0, 0, 0, 0.06);

  /* Radii */
  --radius-app-icon: 22.5%;
  --radius-card: 18px;
  --radius-hero: 24px;
  --radius-pill: 9999px;

  /* Fonts */
  --font-apple: "Pretendard", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
  --ease-apple: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

/* 이미지 드래그 및 복사 방지 */
img, svg, picture {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-apple);
}

body {
  min-height: 100vh;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   TOP BAR (Clean minimal header without App Store middle tabs)
   ========================================================================== */

.top-bar {
  position: sticky;
  top: 0;
  z-index: 900;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(245, 245, 247, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s var(--ease-apple);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}

.brand-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon-img {
  height: 22px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1d1d1f;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.brand-arcade-badge {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1d1d1f;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Apple-style Language Selector */
.lang-selector {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-family: var(--font-apple);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s var(--ease-apple);
}

.lang-globe-icon {
  color: #6e6e73;
  flex-shrink: 0;
}

.lang-arrow-icon {
  color: #86868b;
  flex-shrink: 0;
}

.lang-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 6px;
  display: none;
  flex-direction: column;
  min-width: 120px;
  z-index: 1000;
  transform-origin: top right;
  animation: dropdownAnim 0.18s var(--ease-apple);
}

.lang-dropdown.active {
  display: flex;
}

@keyframes dropdownAnim {
  from { opacity: 0; transform: scale(0.95) translateY(-4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.lang-option {
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  border: none;
  font-family: var(--font-apple);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s;
}

.lang-option:hover {
  background: #f2f2f7;
}

.lang-option.selected {
  color: var(--apple-blue);
}

.lang-option.selected::after {
  content: '✓';
  font-weight: 700;
}

.search-capsule {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  gap: 8px;
  transition: background 0.2s;
}

.search-capsule:focus-within {
  background: rgba(0, 0, 0, 0.08);
}

.search-capsule input {
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-apple);
  font-size: 0.88rem;
  color: var(--text-primary);
  width: 140px;
  transition: width 0.3s var(--ease-apple);
}

.search-capsule input:focus {
  width: 200px;
}

.search-capsule svg {
  color: var(--text-secondary);
}

.user-avatar-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0071e3, #64d2ff);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 113, 227, 0.25);
}

/* ==========================================================================
   HERO BANNER (Authentic Apple Arcade Full-width Billboard)
   ========================================================================== */

.hero-banner-section {
  padding: 16px 0 24px;
}

.arcade-hero-billboard {
  position: relative;
  width: 100%;
  min-height: 440px;
  border-radius: var(--radius-hero);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 44px 48px;
  box-shadow: var(--shadow-lg);
  background-color: #ffffff;
}

.hero-bg-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
}

/* Apple-style gradient vignette overlay to ensure pristine text readability */
.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.88) 32%,
    rgba(255, 255, 255, 0.45) 55%,
    rgba(255, 255, 255, 0.0) 80%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 580px;
}

.hero-arcade-brand {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #6e6e73;
  margin-bottom: 14px;
}

.hero-brand-img {
  height: 0.76em;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) contrast(1.1) brightness(0.85);
  display: block;
}

.hero-arcade-text {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #6e6e73;
}

.hero-title {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: #111113;
  margin-bottom: 18px;
}

.hero-actions-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Signature Apple Blue Pill CTA Button */
.apple-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  background-color: var(--apple-blue);
  color: #ffffff;
  font-family: var(--font-apple);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
  transition: background-color 0.15s ease;
}

.apple-cta-btn:hover {
  background-color: var(--apple-blue-hover);
}

.apple-cta-btn:active {
  background-color: var(--apple-blue-active);
}

.hero-note {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  max-width: 220px;
}

/* ==========================================================================
   CATEGORY CHIP PILLS (Apple App Store Horizontal Scroll)
   ========================================================================== */

.category-row-section {
  padding: 12px 0 24px;
}

.category-scroll-container {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 4px 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-scroll-container::-webkit-scrollbar {
  display: none;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: var(--bg-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-pill);
  color: var(--text-primary);
  font-family: var(--font-apple);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.category-pill:hover {
  background: #f2f2f7;
}

.category-pill.active {
  background: #1d1d1f;
  color: #ffffff;
  border-color: #1d1d1f;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pill-icon svg {
  display: block;
  color: inherit;
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 16px 0 18px;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-more-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-blue);
  text-decoration: none;
  transition: opacity 0.2s;
}

.section-more-link:hover {
  opacity: 0.8;
}

/* ==========================================================================
   APP STORE 3-COLUMN RANKING GRID
   ========================================================================== */

.arcade-ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.ranking-card {
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.ranking-card:hover {
  background-color: #fafafc;
  border-color: rgba(0, 0, 0, 0.12);
}

.ranking-app-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-app-icon);
  object-fit: cover;
  background-color: var(--bg-card-subtle);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.ranking-num {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

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

.ranking-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #86868b;
  text-transform: uppercase;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.ranking-tag img {
  height: 0.75em;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.85);
}

.ranking-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.ranking-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Apple Store "받기" / "플레이" Button */
.apple-get-btn {
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  background-color: var(--apple-btn-gray);
  color: var(--apple-btn-gray-text);
  font-family: var(--font-apple);
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s var(--ease-apple);
}

.ranking-card:hover .apple-get-btn {
  background-color: var(--apple-blue);
  color: #ffffff;
}

/* ==========================================================================
   EMPTY STATE (Apple Arcade Showcase / Coming Soon)
   ========================================================================== */

.empty-arcade-card {
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-hero);
  padding: 56px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  margin-bottom: 56px;
}

.empty-arcade-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ff453a 0%, #ff9f0a 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(255, 69, 58, 0.25);
  margin-bottom: 20px;
}

.empty-arcade-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.empty-arcade-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.dev-guide-box {
  background: var(--bg-card-subtle);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 14px 22px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.dev-guide-code {
  color: #0071e3;
  font-weight: 600;
  font-family: monospace;
}

/* ==========================================================================
   GAME PLAYER MODAL (Apple Sheet)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-apple);
  padding: 24px;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-sheet {
  width: 100%;
  max-width: 1040px;
  height: 85vh;
  background: #ffffff;
  border-radius: var(--radius-hero);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.96) translateY(20px);
  transition: transform 0.3s var(--ease-apple);
}

.modal-backdrop.active .modal-sheet {
  transform: scale(1) translateY(0);
}

.modal-topbar {
  padding: 14px 22px;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.modal-genre-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-card-subtle);
  color: var(--text-secondary);
}

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

.modal-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card-subtle);
  border: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-icon-btn:hover {
  background: #e5e5ea;
}

.modal-game-frame-wrap {
  flex: 1;
  background: #000000;
  position: relative;
}

/* ==========================================================================
   DEDICATED FULL-SCREEN PLAY PAGE VIEW ({링크}/play/{게임명})
   ========================================================================== */

.play-page-view {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #000000;
  z-index: 5000;
  overflow: hidden;
  flex-direction: column;
}

.play-page-view.active {
  display: flex;
}

.play-page-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 5010;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.play-page-bar:hover {
  opacity: 1;
}

.play-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  color: #ffffff;
  font-family: var(--font-apple);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
}

.play-back-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.play-game-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.play-controls-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.play-action-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s;
}

.play-action-icon-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.play-game-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: #000000;
}

/* ==========================================================================
   FOOTER (Apple Style Minimal)
   ========================================================================== */

.hub-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #f5f5f7;
  padding: 40px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ==========================================================================
   GAME DETAIL PAGE (Apple App Store Product Page Style)
   ========================================================================== */

.game-detail-view {
  display: none;
  padding: 16px 0 64px;
  animation: fadeIn 0.25s var(--ease-apple);
}

.game-detail-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.detail-nav-bar {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--text-blue);
  font-family: var(--font-apple);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 0;
  transition: opacity 0.2s;
}

.back-btn:hover {
  opacity: 0.75;
}

.detail-hero-card {
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-hero);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

.detail-header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.detail-icon {
  width: 110px;
  height: 110px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.detail-header-info {
  flex: 1;
  min-width: 0;
}

.detail-badge-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: #86868b;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.detail-badge-tag img {
  height: 0.75em;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.85);
}

.detail-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 6px;
}

.detail-tagline {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.detail-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-play-btn {
  padding: 10px 32px;
  border-radius: var(--radius-pill);
  background-color: var(--apple-blue);
  color: #ffffff;
  font-family: var(--font-apple);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35);
  transition: background-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-play-btn:hover {
  background-color: var(--apple-blue-hover);
}

.detail-share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card-subtle);
  border: none;
  color: var(--text-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.detail-share-btn:hover {
  background: #e5e5ea;
}

/* App Store Metadata Stats Bar */
.detail-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 24px 0 0;
  text-align: center;
}

.stat-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: rgba(0, 0, 0, 0.08);
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-sub {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* Detail Body (Description & Controls) */
.detail-body-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.detail-section {
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.detail-sec-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.detail-desc-text {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #3a3a3c;
  white-space: pre-line;
}

.controls-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.control-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg-card-subtle);
  font-size: 0.9rem;
}

.control-key {
  font-weight: 700;
  color: var(--text-primary);
  background: #ffffff;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.control-action {
  color: var(--text-secondary);
}

.info-table {
  width: 100%;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.88rem;
}

.info-row:last-child {
  border-bottom: none;
}

.info-key {
  color: var(--text-secondary);
}

.info-val {
  font-weight: 600;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .detail-header-row {
    flex-direction: column;
    text-align: center;
  }

  .detail-badge-tag, .detail-actions-row {
    justify-content: center;
  }

  .detail-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

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


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

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 992px) {
  .arcade-ranking-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .arcade-hero-billboard {
    min-height: 380px;
    padding: 32px 24px;
  }

  .hero-gradient-overlay {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0.95) 60%,
      rgba(255, 255, 255, 1) 100%
    );
  }

  .arcade-ranking-grid {
    grid-template-columns: 1fr;
  }

  .modal-sheet {
    height: 94vh;
    border-radius: var(--radius-card);
  }
}
