:root {
  /* Warm Stone Paper & Deep Ink Editorial Palette (buffstudio.com / helloclue.com inspired) */
  --bg: #F5F4F0;
  --bg-elevated: #ECEAE3;
  --bg-card: #FFFFFF;
  --bg-card-subtle: #FAF9F5;
  --bg-inverted: #141413;
  --bg-inverted-card: #1E1E1C;
  --bg-inverted-elevated: #262623;

  --border: #DCD9D0;
  --border-strong: #111111;
  --border-inverted: #2E2E2B;

  --text: #111111;
  --text-muted: #4A4944;
  --text-dim: #76746D;

  --text-on-dark: #F5F4F0;
  --text-on-dark-muted: #A8A69E;
  --text-on-dark-dim: #78766E;

  /* Single Signature Point Color: Vermilion */
  --accent: #E03E1A;
  --accent-hover: #C23110;
  --accent-soft: rgba(224, 62, 26, 0.09);
  --accent-border: rgba(224, 62, 26, 0.32);

  --max-w: 1120px;
  --max-w-narrow: 880px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-card: 0 2px 10px rgba(17, 17, 17, 0.04);
  --shadow-card-hover: 0 12px 28px rgba(17, 17, 17, 0.09);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
}

[id] {
  scroll-margin-top: 88px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard Variable", "Pretendard", "Inter", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

/* Header & Pure Typographic Wordmark Navigation */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 244, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 900;
  font-size: 1.32rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

nav.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-wrap: wrap;
}

nav.site-nav a {
  padding: 4px 0;
  position: relative;
}

nav.site-nav a:hover,
nav.site-nav a.active {
  color: var(--text);
}

nav.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: var(--accent);
}

/* URL-Separated Language Switcher (EN | KO) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 11px;
  border-radius: 999px;
  transition: all 0.15s ease;
}

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

.lang-link.active {
  background: var(--text);
  color: var(--bg);
}

/* Containers & Layout */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* Hero Section */
.hero {
  padding: 84px 0 68px;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  max-width: 840px;
  font-weight: 900;
  color: var(--text);
}

.text-accent {
  color: var(--accent);
}

.hero p.lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 34px;
  line-height: 1.72;
}

.hero p.lead strong {
  color: var(--text);
  font-weight: 700;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.93rem;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--text);
  transform: translateY(-1px);
}

/* Hero Metrics Strip */
.metrics-strip {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-label {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 700;
}

.metric-value {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text);
}

/* Sections */
section.page-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

/* Inverted Dark Charcoal Section (#141413) */
section.section-inverted {
  background-color: var(--bg-inverted);
  color: var(--text-on-dark);
  padding: 80px 0;
  border-bottom: 1px solid var(--border-inverted);
}

.section-inverted .section-title {
  color: var(--text-on-dark);
}

.section-inverted .section-subtitle {
  color: var(--text-on-dark-muted);
}

.section-inverted .btn-secondary {
  background: var(--bg-inverted-card);
  border-color: var(--border-inverted);
  color: var(--text-on-dark);
}

.section-inverted .btn-secondary:hover {
  border-color: var(--accent);
  color: #FFFFFF;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: var(--text);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 680px;
}

/* Grid & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--text);
  box-shadow: var(--shadow-card-hover);
}

.card-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 10px;
}

.card h3 {
  font-size: 1.22rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.card p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.card-meta-list {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  list-style: none;
  font-size: 0.86rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-meta-list strong {
  color: var(--text);
}

.card-meta-list a {
  color: var(--accent);
  font-weight: 600;
}

.card-meta-list a:hover {
  text-decoration: underline;
}

/* Game Showcase Cards (with 16:9 Key Art Banner) */
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  border-color: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

/* Dark Charcoal variant inside .section-inverted */
.section-inverted .game-card {
  background: var(--bg-inverted-card);
  border-color: var(--border-inverted);
  box-shadow: none;
}

.section-inverted .game-card:hover {
  border-color: var(--accent);
}

.keyart-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #141413;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.section-inverted .keyart-frame {
  border-bottom-color: var(--border-inverted);
}

.keyart-frame img,
.keyart-frame svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-card-body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 18px;
}

.badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.genre-badge {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.section-inverted .genre-badge {
  color: var(--text-on-dark-muted);
}

.status-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
}

.section-inverted .status-pill {
  background: var(--bg-inverted-elevated);
  border-color: var(--border-inverted);
  color: var(--text-on-dark);
}

.status-pill.accent {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
}

.action-tagline {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.game-card h2,
.game-card h3 {
  font-size: 1.32rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: -0.015em;
}

.section-inverted .game-card h2,
.section-inverted .game-card h3 {
  color: var(--text-on-dark);
}

.game-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.section-inverted .game-card p {
  color: var(--text-on-dark-muted);
}

.section-inverted .card-meta-list {
  border-top-color: var(--border-inverted);
  color: var(--text-on-dark-muted);
}

.section-inverted .card-meta-list strong {
  color: var(--text-on-dark);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.section-inverted .store-badges {
  border-top-color: var(--border-inverted);
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.store-badge.ready {
  color: var(--text);
  background: var(--bg-card);
  border-color: var(--border);
}

.section-inverted .store-badge {
  background: var(--bg-inverted-elevated);
  border-color: var(--border-inverted);
  color: var(--text-on-dark-muted);
}

.section-inverted .store-badge.ready {
  color: var(--text-on-dark);
}

/* Corporate Table & Fact Sheet Table */
.corp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.corp-table th,
.corp-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
  vertical-align: top;
}

.corp-table th {
  width: 30%;
  color: var(--text);
  font-weight: 700;
  background: var(--bg-card-subtle);
}

.corp-table td {
  color: var(--text-muted);
}

.corp-table td strong {
  color: var(--text);
}

.corp-table tr:last-child th,
.corp-table tr:last-child td {
  border-bottom: none;
}

.corp-table a {
  color: var(--accent);
  font-weight: 600;
}

.corp-table a:hover {
  text-decoration: underline;
}

/* Page Header (Subpages) */
.page-header {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(1.95rem, 4vw, 2.75rem);
  margin-bottom: 12px;
}

.page-header p {
  color: var(--text-muted);
  max-width: 700px;
  font-size: 1.05rem;
}

/* Policy & Legal Boxes (/privacy/, /terms/) */
.lang-jump {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.lang-jump a {
  color: var(--accent);
  font-weight: 700;
}

.lang-jump a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.effective-date {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 24px;
}

.policy-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 44px;
  box-shadow: var(--shadow-card);
}

.policy-box h2 {
  font-size: 1.18rem;
  font-weight: 800;
  margin: 28px 0 10px;
  color: var(--text);
}

.policy-box h2:first-child {
  margin-top: 0;
}

.policy-box p,
.policy-box ul,
.policy-box ol {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.policy-box ul,
.policy-box ol {
  padding-left: 22px;
}

.policy-box li {
  margin-bottom: 6px;
}

.policy-box strong {
  color: var(--text);
}

.policy-box a {
  color: var(--accent);
  font-weight: 600;
}

.policy-box a:hover {
  text-decoration: underline;
}

.policy-box code {
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--text);
}

/* Support & FAQ Components */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 44px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-card);
}

.contact-card h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text);
}

.contact-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.email-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none !important;
  align-self: flex-start;
}

.email-pill:hover {
  background: var(--accent-hover);
}

.email-pill.secondary {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text) !important;
}

.email-pill.secondary:hover {
  border-color: var(--text);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}

.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.faq-item a {
  color: var(--accent);
  font-weight: 600;
}

.faq-item code {
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--text);
}

/* Inverted Editorial Footer (#141413) */
footer.site-footer {
  border-top: 1px solid var(--border-inverted);
  background: var(--bg-inverted);
  padding: 48px 0 60px;
  color: var(--text-on-dark-muted);
  font-size: 0.86rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border-inverted);
  margin-bottom: 24px;
}

.footer-brand-col {
  max-width: 520px;
}

.footer-brand-title {
  font-weight: 900;
  color: var(--text-on-dark);
  font-size: 1.08rem;
  margin-bottom: 6px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-weight: 600;
  color: var(--text-on-dark-muted);
}

.footer-links a:hover {
  color: var(--text-on-dark);
}

.footer-legal-meta {
  font-size: 0.81rem;
  color: var(--text-on-dark-dim);
  line-height: 1.8;
}

.footer-legal-meta strong {
  color: var(--text-on-dark-muted);
  font-weight: 600;
}

.footer-legal-meta a {
  color: var(--text-on-dark-muted);
}

.footer-legal-meta a:hover {
  color: var(--text-on-dark);
  text-decoration: underline;
}

@media (max-width: 680px) {
  .hero {
    padding: 56px 0 48px;
  }
  .corp-table th,
  .corp-table td {
    display: block;
    width: 100%;
  }
  .corp-table th {
    padding-bottom: 4px;
    border-bottom: none;
  }
  .corp-table td {
    padding-top: 0;
  }
  .policy-box {
    padding: 24px;
  }
}
