/* ============================================
   FANTOME — Corporate Website
   Premium Design System
   ============================================ */

:root {
  --color-bg: #07070c;
  --color-bg-alt: #0d0d14;
  --color-surface: #14141f;
  --color-surface-hover: #1a1a28;
  --color-accent: #3AB5C2;
  --color-accent-light: #5dd4e0;
  --color-accent-dark: #2a8f9a;
  --color-accent-glow: rgba(58, 181, 194, 0.12);
  --color-text: #e8e8ef;
  --color-text-muted: #bdbdd0;
  --color-text-dim: #555570;
  --color-border: rgba(255, 255, 255, 0.07);
  --color-border-hover: rgba(58, 181, 194, 0.25);

  --font-sans: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-height: 72px;
}

/* ---- Light Mode ---- */
[data-theme="light"] {
  --color-bg: #f0efef;
  --color-bg-alt: #e6e5e5;
  --color-surface: #ffffff;
  --color-surface-hover: #f5f5f5;
  --color-accent: #2a9aa5;
  --color-accent-light: #3AB5C2;
  --color-accent-dark: #1f7a83;
  --color-accent-glow: rgba(42, 154, 165, 0.1);
  --color-text: #1a1a2e;
  --color-text-muted: #555568;
  --color-text-dim: #8888a0;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-hover: rgba(42, 154, 165, 0.3);
}

[data-theme="light"] .hero__bg {
  background:
    radial-gradient(ellipse 70% 50% at 50% 35%, rgba(42, 154, 165, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(42, 154, 165, 0.04) 0%, transparent 60%);
}

[data-theme="light"] .hero__title {
  background: linear-gradient(90deg, #555568, var(--color-accent-light), #555568, #7a7a90);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .nav--scrolled {
  background: rgba(240, 239, 239, 0.9);
}

[data-theme="light"] .section {
  background: rgba(240, 239, 239, 0.85);
}

[data-theme="light"] .section:nth-child(even) {
  background: rgba(230, 229, 229, 0.9);
}

[data-theme="light"] .hero__logo {
  filter: none;
}

[data-theme="light"] .nav__logo-img path {
  fill: #1a1a2e;
}

[data-theme="light"] .ghost-eye {
  fill: #1a1a2e;
}

[data-theme="light"] .loader {
  background: var(--color-accent);
}

[data-theme="light"] .loader__logo {
  filter: none;
}

[data-theme="light"] .philosophy__card {
  box-shadow: none;
}

[data-theme="light"] .arrow-stat__content { color: var(--color-text); }
[data-theme="light"] .arrow-stat__label { color: var(--color-text-muted); opacity: 1; }

[data-theme="light"] .philosophy__card h3 { color: var(--color-text); }
[data-theme="light"] .philosophy__card p { color: var(--color-text-muted); }

[data-theme="light"] .philosophy__card:nth-child(1) { background: rgba(58, 181, 194, 0.18); }
[data-theme="light"] .philosophy__card:nth-child(2) { background: rgba(58, 181, 194, 0.12); }
[data-theme="light"] .philosophy__card:nth-child(3) { background: rgba(58, 181, 194, 0.07); }

[data-theme="light"] .studio-card__slogan--alt {
  color: #d07a1a;
}

[data-theme="light"] .scroll-top {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .timeline__item::before {
  box-shadow: 0 0 0 3px var(--color-bg), 0 0 0 4px rgba(42, 154, 165, 0.4);
}

/* ---- Loading Screen ---- */
.loader {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__logo {
  width: 80px;
  animation: loaderPulse 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* ---- Custom Cursor ---- */
.cursor {
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--color-accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transition: width 0.2s, height 0.2s, margin 0.2s, border-color 0.2s;
  margin-left: -6px;
  margin-top: -6px;
  mix-blend-mode: difference;
}

.cursor--hover {
  width: 32px;
  height: 32px;
  margin-left: -16px;
  margin-top: -16px;
  border-color: var(--color-accent-light);
}

/* ---- Scroll Progress Bar ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--color-accent);
  z-index: 1001;
  width: 0%;
  transition: width 0.05s linear;
}

/* ---- Scroll to Top ---- */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s var(--ease-out-expo);
  z-index: 100;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
  transform: translateY(-3px);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--color-bg);
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

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

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background 0.3s, backdrop-filter 0.3s, height 0.3s var(--ease-out-expo);
}

.nav--scrolled {
  background: rgba(7, 7, 12, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.2s;
  min-width: 180px;
}

.nav__logo:hover { opacity: 0.8; }

.nav__logo-icon {
  height: 36px;
  width: auto;
}

.nav__logo-text {
  height: 12px;
  width: auto;
  min-width: 100px;
  color: var(--color-text);
  transition: all 0.3s var(--ease-out-expo);
  overflow: visible;
  align-self: center;
  position: relative;
  top: -2px;
}


.nav--scrolled .nav__logo-text {
  height: 0;
  opacity: 0;
  width: 0;
  overflow: hidden;
}


.nav__links {
  display: flex;
  gap: 2rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav__links a {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
  position: relative;
  transition: color 0.2s;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-accent);
  transition: width 0.25s var(--ease-out-expo);
}

.nav__links a:hover { color: var(--color-text); }
.nav__links a:hover::after { width: 100%; }

.nav__link--active { color: var(--color-accent) !important; }
.nav__link--active::after { width: 0 !important; }

.nav__controls {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 180px;
  justify-content: flex-end;
}

.nav__controls-divider {
  color: var(--color-text-dim);
  font-size: 0.7rem;
  user-select: none;
}

.nav__theme {
  background: none;
  border: none;
  color: var(--color-text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
}

.nav__theme:hover {
  color: var(--color-accent);
}

.nav__lang {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  cursor: pointer;
  transition: color 0.2s;
}

.nav__lang:hover {
  color: var(--color-accent);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  transition: all 0.25s var(--ease-out-expo);
  transform-origin: center;
}

.nav__toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
  padding-top: var(--nav-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 35%, rgba(58, 181, 194, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(58, 181, 194, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 30% 40% at 15% 60%, rgba(58, 181, 194, 0.03) 0%, transparent 50%);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.02"/></svg>');
  background-size: 200px;
}

.hero__content {
  position: relative;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}

/* ---- Particles ---- */
.hero__particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hero__content {
  z-index: 1;
}

.hero__logo {
  width: 242px;
  max-width: 50vw;
  height: auto;
  margin: 0 auto 2.5rem;
  display: block;
  filter: drop-shadow(0 8px 40px rgba(58, 181, 194, 0.12));
  animation: heroLogoIn 0.8s var(--ease-out-expo) both;
  transition: transform 0.15s ease-out;
  will-change: transform;
}


@keyframes heroLogoIn {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

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

@keyframes titleShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero__subtitle {
  animation: heroFadeUp 0.7s var(--ease-out-expo) 0.5s both;
}

.hero__ctas {
  animation: heroFadeUp 0.7s var(--ease-out-expo) 0.7s both;
}

.hero__label {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--color-text), var(--color-accent-light), var(--color-text), rgba(232, 232, 239, 0.7));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroFadeUp 0.7s var(--ease-out-expo) 0.3s both, titleShimmer 8s ease-in-out infinite 2s;
}

.hero__subtitle {
  font-size: clamp(0.85rem, 1.7vw, 0.98rem);
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
  font-weight: 300;
  line-height: 1.75;
  white-space: pre-line;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__cta {
  display: inline-block;
  padding: 15px 44px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 6px;
  border: 1.5px solid var(--color-accent);
  transition: all 0.25s var(--ease-out-expo);
}

.hero__cta:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(58, 181, 194, 0.3);
}

.hero__cta--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text-dim);
}

.hero__cta--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
  border-color: var(--color-text-muted);
  box-shadow: none;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 1; }
}

/* ============================================
   Sections (common)
   ============================================ */
.section {
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
  z-index: 1;
  background: transparent;
}

.section:nth-child(even) {
  background: transparent;
}


.section__header {
  margin-bottom: clamp(32px, 4vw, 48px);
  text-align: center;
}

.section__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.section__label::before,
.section__label::after {
  content: '';
  height: 1px;
  width: 40px;
  background: linear-gradient(to right, transparent, var(--color-accent));
}

.section__label::after {
  background: linear-gradient(to left, transparent, var(--color-accent));
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

/* ============================================
   Reveal Animation — snappy
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   About
   ============================================ */
.about__content {
  max-width: 900px;
  margin: 0 auto;
}

.about__text {
  text-align: center;
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.about__text p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

/* Arrow Stats */
.about__arrows {
  display: flex;
  max-width: 900px;
  margin: 0 auto;
  align-items: center;
}

.arrow-stat {
  flex: 1;
  position: relative;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: -50px;
}

.arrow-stat:nth-child(1) { z-index: 3; }
.arrow-stat:nth-child(2) { z-index: 2; }
.arrow-stat:nth-child(3) { z-index: 1; margin-right: 0; }

.arrow-stat__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.arrow-stat--1 .arrow-stat__bg polygon { fill: rgba(58, 181, 194, 0.55); }
.arrow-stat--2 .arrow-stat__bg polygon { fill: rgba(58, 181, 194, 0.40); }
.arrow-stat--3 .arrow-stat__bg polygon { fill: rgba(58, 181, 194, 0.28); }

.arrow-stat__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding-left: 28px;
}

.arrow-stat__number {
  font-size: 1.6rem;
  font-weight: 700;
  display: inline;
  line-height: 0.8;
}

.arrow-stat__number-wrap {
  white-space: nowrap;
}

.arrow-stat__suffix {
  font-size: 1.6rem;
  font-weight: 700;
}

.arrow-stat__label {
  display: block;
  font-size: 0.72rem;
  opacity: 0.8;
  margin-top: 1px;
}

.arrow-stat {
  opacity: 0;
  transform: translateX(-60px);
  transition: transform 0.7s var(--ease-out-expo), opacity 0.5s;
}

.arrow-stat:nth-child(2) { transition-delay: 0.15s; }
.arrow-stat:nth-child(3) { transition-delay: 0.3s; }

.about__arrows.visible .arrow-stat {
  opacity: 1;
  transform: translateX(0);
}

.about__arrows.visible .arrow-stat:hover {
  transform: translateX(6px);
}

.stat {
  text-align: center;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border-radius: 4px;
  border: 1px solid var(--color-border);
  transition: border-color 0.2s, transform 0.2s;
}

.stat:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.stat:hover .stat__number,
.stat:hover .stat__suffix {
  color: var(--color-accent-light);
  transition: color 0.2s;
}

.stat__number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent);
  display: inline;
  line-height: 1;
  white-space: nowrap;
}

.stat__suffix {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent);
}

.stat__number-wrap {
  white-space: nowrap;
}

.stat__label {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 6px;
  letter-spacing: 0.06em;
}

.stat__detail {
  display: block;
  font-size: 0.68rem;
  color: var(--color-text-dim);
  margin-top: 4px;
  opacity: 0.7;
}

/* ============================================
   Philosophy
   ============================================ */
.philosophy__grid {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  height: 370px;
}

.philosophy__card {
  width: 230px;
  height: 230px;
  background: rgba(20, 20, 31, 0.85);
  border-radius: 50%;
  border: none;
  box-shadow: none;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: absolute;
}

.philosophy__card:nth-child(1) { background: rgba(58, 181, 194, 0.22); }
.philosophy__card:nth-child(2) { background: rgba(58, 181, 194, 0.15); }
.philosophy__card:nth-child(3) { background: rgba(58, 181, 194, 0.10); }

/* Equilateral triangle: side=163px, height=141px */
.philosophy__card:nth-child(1) {
  left: calc(50% - 115px);
  top: -80px;
  z-index: 2;
  opacity: 0;
  transition: top 1.2s var(--ease-out-expo), opacity 0.8s;
}

.philosophy__card:nth-child(2) {
  left: calc(50% - 300px);
  top: 200px;
  z-index: 1;
  opacity: 0;
  transition: left 1.2s var(--ease-out-expo) 0.25s, top 1.2s var(--ease-out-expo) 0.25s, opacity 0.8s 0.25s;
}

.philosophy__card:nth-child(3) {
  left: calc(50% + 70px);
  top: 200px;
  z-index: 1;
  opacity: 0;
  transition: left 1.2s var(--ease-out-expo) 0.5s, top 1.2s var(--ease-out-expo) 0.5s, opacity 0.8s 0.5s;
}

/* Gathered state */
.philosophy__grid.gathered .philosophy__card:nth-child(1) {
  top: 0;
  opacity: 1;
}

.philosophy__grid.gathered .philosophy__card:nth-child(2) {
  left: calc(50% - 197px);
  top: 141px;
  opacity: 1;
}

.philosophy__grid.gathered .philosophy__card:nth-child(3) {
  left: calc(50% - 33px);
  top: 141px;
  opacity: 1;
}

.philosophy__grid.gathered .philosophy__card:hover {
  z-index: 10;
  transform: scale(1.06);
}

/* ---- Top-line hover animation (all cards) ---- */
/* ---- Top-line hover animation (news only) ---- */
.news-card {
  position: relative;
  overflow: hidden;
}

.news-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  transition: width 0.4s var(--ease-out-expo);
}

.news-card:hover::after {
  width: 100%;
}

/* ---- Static top-line (other cards) ---- */
.stat,
.timeline__item,
.careers__value-card,
.perk-card {
  border-top: 2px solid var(--color-accent);
}

.stat {
  height: 90px;
}

.philosophy__card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.philosophy__icon {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.philosophy__card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

.philosophy__card p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.75;
}

/* ============================================
   Games
   ============================================ */
.games__list {
  max-width: 900px;
  margin: 0 auto;
}

.game-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: start;
  padding: 48px 0;
  border-bottom: 1px solid var(--color-border);
}

.game-item:last-child { border-bottom: none; }

.game-item__visual {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  position: relative;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
  flex-shrink: 0;
}

.game-item:hover .game-item__visual,
.game-item__visual--hovered {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 24px rgba(58, 181, 194, 0.15);
}

.game-item__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-item__visual--empty {
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

.game-item__info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.game-item__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.game-item__stars {
  color: #f5c518;
  font-size: 1rem;
  letter-spacing: 2px;
}

.game-item__rating-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent);
}

/* Game-specific glow on hover */
[data-game="penguin-isle"]:hover .game-item__visual {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 32px rgba(58, 181, 194, 0.25);
}

[data-game="souls"]:hover .game-item__visual {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 32px rgba(224, 160, 96, 0.25);
}

.game-item__genre {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.game-item__desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.game-item__bottom {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.game-item__meta {
  display: flex;
  gap: 24px;
}

.game-item__meta-item {
  display: flex;
  flex-direction: column;
}

.game-item__meta-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-accent);
}

.game-item__meta-label {
  font-size: 0.72rem;
  color: var(--color-text-dim);
  letter-spacing: 0.06em;
}

.game-item__links {
  display: flex;
  gap: 10px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text);
  transition: all 0.2s var(--ease-out-expo);
}

.store-badge:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.store-badge svg { flex-shrink: 0; }

/* ============================================
   Studios
   ============================================ */
.studios__subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 48px;
}

.studios__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.studio-card {
  position: relative;
  padding: 28px 28px;
  background: var(--color-surface);
  border-radius: 4px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform 0.25s var(--ease-out-expo), border-color 0.25s, box-shadow 0.25s;
}

.studio-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.studio-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.studio-card__slogan {
  font-size: 0.88rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 24px;
}

.studio-card__slogan--alt {
  color: #F59E0B;
}

.studio-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  transition: width 0.4s var(--ease-out-expo);
}

.studio-card:hover::after {
  width: 100%;
}

.studio-card:last-child::after {
  background: #F59E0B;
}

.studio-card__details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.studio-card__details li {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  display: flex;
  gap: 12px;
}

.studio-card__details strong {
  color: var(--color-text);
  font-weight: 600;
  white-space: nowrap;
  min-width: 70px;
}

/* ============================================
   Timeline / History
   ============================================ */
.timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.timeline__item {
  padding: 16px 20px;
  background: var(--color-surface);
  border-radius: 4px;
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-accent);
  transition: border-color 0.2s, transform 0.2s;
}

.timeline__item:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.timeline__year {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  background: rgba(58, 181, 194, 0.1);
  padding: 3px 10px;
  border-radius: 100px;
  width: fit-content;
  margin-bottom: 6px;
}

.timeline__content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.timeline__content p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ============================================
   Careers
   ============================================ */
/* ============================================
   News
   ============================================ */
.news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.news-card {
  padding: 20px 20px;
  background: var(--color-surface);
  border-radius: 4px;
  border: 1px solid var(--color-border);
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.news-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.news-card[href] {
  cursor: pointer;
}

.news-card__date {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  background: rgba(58, 181, 194, 0.1);
  padding: 3px 10px;
  border-radius: 100px;
  width: fit-content;
}

.news-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
}

.news-card__desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.news-card__link {
  font-size: 0.78rem;
  color: var(--color-accent);
  font-weight: 500;
  margin-top: auto;
}

@media (max-width: 900px) {
  .news__grid { grid-template-columns: 1fr; }
}

/* ============================================
   Careers
   ============================================ */
.careers__subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 48px;
}

.careers__section-title {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 24px;
}

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

.careers__value-card {
  padding: 20px 20px;
  background: var(--color-surface);
  border-radius: 4px;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  transition: border-color 0.2s, transform 0.2s;
}

.careers__value-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.careers__value-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-text);
}

.careers__value-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

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

.perk-card {
  padding: 20px 20px;
  background: var(--color-surface);
  border-radius: 4px;
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-accent);
  transition: border-color 0.2s, transform 0.2s;
}

.perk-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.perk-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-text);
}

.perk-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.careers__cta {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 16px 52px;
  background: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease-out-expo);
}

.btn:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(58, 181, 194, 0.3);
}

/* ============================================
   Contact
   ============================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 40px 32px;
  transition: all 0.25s var(--ease-out-expo);
}

.contact-card:hover {
  transform: translateY(-3px);
}

.contact-card__icon {
  color: var(--color-accent);
  margin-bottom: 4px;
}

.contact-card__type {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.contact-card__email {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: color 0.2s;
}

.contact-card:hover .contact-card__email {
  color: var(--color-accent-light);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 36px 0;
  border-top: 1px solid var(--color-border);
}

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

.footer__copy {
  font-size: 0.78rem;
  color: var(--color-text-dim);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .nav__toggle { display: none; }

  .nav__controls { order: 2; margin-left: auto; margin-right: 12px; }

  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    padding: 40px;
    gap: 1.8rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999;
  }

  [data-theme="light"] .nav__links {
    background: var(--color-bg);
  }

  .nav__links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav__links a { font-size: 1.2rem; font-weight: 600; }

  .nav__logo-text { display: none; }

  /* ---- Mobile: Global ---- */
  .hero__logo { width: 130px; }

  .section { padding: 48px 0; }
  .section__header { margin-bottom: 24px; }
  .section__title { font-size: 1.5rem; word-break: keep-all; }
  .section__label { font-size: 0.65rem; }

  .container { padding: 0 20px; }
  body { word-break: keep-all; }

  /* ---- Mobile: About ---- */
  .about__text { max-width: 100%; }
  .about__text p { font-size: 0.85rem; word-break: keep-all; }

  .about__arrows {
    flex-direction: row;
    gap: 0;
    background: rgba(58, 181, 194, 0.08);
    border-top: 2px solid var(--color-accent);
    border-radius: 4px;
    padding: 18px 8px;
    align-items: center;
    justify-content: space-around;
  }
  .arrow-stat {
    flex: 1;
    margin: 0;
    height: auto;
    padding: 0;
    background: transparent;
    border: none;
    text-align: center;
    position: relative;
  }
  .arrow-stat:nth-child(1)::before,
  .arrow-stat:nth-child(2)::before,
  .arrow-stat:nth-child(3)::before { display: none; }
  .arrow-stat:nth-child(1),
  .arrow-stat:nth-child(2),
  .arrow-stat:nth-child(3) { background: transparent; }
  .arrow-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
  }
  .arrow-stat__bg { display: none; }
  .arrow-stat__content { padding-left: 0; text-align: center; }
  .arrow-stat__number { font-size: 1.2rem; }
  .arrow-stat__suffix { font-size: 1.2rem; }
  .arrow-stat__label { font-size: 0.62rem; }
  [data-theme="light"] .arrow-stat:not(:last-child)::after {
    background: rgba(0, 0, 0, 0.1);
  }

  /* ---- Mobile: Philosophy ---- */
  /* Card width 160, side=130, height=130*0.866=112.6 */
  .philosophy__grid {
    position: relative;
    height: 290px;
    max-width: 320px;
    margin: 0 auto;
  }

  .philosophy__card {
    width: 160px;
    height: 160px;
    padding: 14px;
  }

  .philosophy__card:nth-child(1) {
    left: calc(50% - 80px) !important;
    top: 0 !important;
    transform: none !important;
    z-index: 2;
  }
  .philosophy__card:nth-child(2) {
    left: calc(50% - 145px) !important;
    top: 113px !important;
    transform: none !important;
    z-index: 1;
  }
  .philosophy__card:nth-child(3) {
    left: calc(50% - 15px) !important;
    top: 113px !important;
    transform: none !important;
    z-index: 1;
  }

  .philosophy__card h3 { font-size: 1rem; }
  .philosophy__card p { font-size: 0.68rem; }

  /* ---- Mobile: Games ---- */
  .game-item {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
    padding: 28px 0;
  }
  .game-item__visual {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    margin: 0 auto;
  }
  .game-item__info h3 { font-size: 1.2rem; }
  .game-item__desc { font-size: 0.8rem; }
  .game-item__genre { font-size: 0.7rem; }
  .game-item__rating { justify-content: center; }
  .game-item__bottom { justify-content: center; }
  .game-item__meta { justify-content: center; }
  .game-item__links { justify-content: center; }
  .game-item__meta-value { font-size: 1.1rem; }

  /* ---- Mobile: Studios ---- */
  .studios__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .studio-card { padding: 20px 18px; }
  .studio-card h3 { font-size: 1.1rem; }
  .studio-card__slogan { font-size: 0.8rem; margin-bottom: 16px; }
  .studio-card__details li { font-size: 0.8rem; }
  .studio-card__details strong { min-width: 60px; font-size: 0.8rem; }

  /* ---- Mobile: Timeline ---- */
  .timeline { grid-template-columns: 1fr; gap: 12px; }
  .timeline__item { padding: 14px 16px; }
  .timeline__content h4 { font-size: 0.85rem; }
  .timeline__content p { font-size: 0.75rem; }

  /* ---- Mobile: News ---- */
  .news__grid { grid-template-columns: 1fr; gap: 12px; }
  .news-card { padding: 16px; }
  .news-card__title { font-size: 0.85rem; }
  .news-card__desc { font-size: 0.75rem; }

  /* ---- Mobile: Careers ---- */
  .careers__subtitle { font-size: 0.82rem; margin-bottom: 24px; }
  .careers__section-title { font-size: 1rem; }
  .careers__values-grid { grid-template-columns: 1fr; margin-bottom: 28px; }
  .perks-grid { grid-template-columns: 1fr; }
  .careers__value-card, .perk-card { padding: 16px; }
  .careers__value-card h4, .perk-card h4 { font-size: 0.9rem; }
  .careers__value-card p, .perk-card p { font-size: 0.78rem; }

  /* ---- Mobile: Contact ---- */
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .contact-card { padding: 24px 20px; }
  .contact-card__email { font-size: 0.95rem; }

  .footer__inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__logo { width: 110px; }
  .store-badge { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
  .store-badge svg { width: 18px; height: 18px; }
  .store-badge-text { display: none; }
  .game-item__links { flex-direction: row; gap: 8px; }
}
