:root {
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', 'Noto Serif SC', 'Noto Serif JP', 'Noto Serif KR', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans KR', sans-serif;
  --radius: 8px;
  --radius-sm: 5px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   PALETTE 1 (DEFAULT): CRIMSON / OXBLOOD ON PURE BLACK (#000000)
   ========================================================================== */
:root,
[data-theme="dark"][data-palette="crimson"],
[data-theme="dark"] {
  --bg: #000000;
  --surface: #0b0a0c;
  --surface-hover: #161114;
  --border: #201c1f;
  --border-strong: #3d242b;
  --text: #f4f3f1;
  --text-body: #c9c6cd;
  --text-muted: #8f8c94;
  --accent: #e63b56;
  --accent-hover: #f54d68;
  --btn-bg: #f4f3f1;
  --btn-fg: #000000;
  --input-bg: #080709;
  --shadow: 0 20px 44px rgba(0, 0, 0, 0.72);
}

[data-theme="light"][data-palette="crimson"],
[data-theme="light"] {
  --bg: #fafafb;
  --surface: #ffffff;
  --surface-hover: #f3eff1;
  --border: #e5e2e5;
  --border-strong: #c9bfc4;
  --text: #0e0c0e;
  --text-body: #36333a;
  --text-muted: #5d5861;
  --accent: #8f1228;
  --accent-hover: #ad1832;
  --btn-bg: #0e0c0e;
  --btn-fg: #ffffff;
  --input-bg: #ffffff;
  --shadow: 0 14px 34px rgba(14, 12, 14, 0.08);
}

/* ==========================================================================
   PALETTE 2: STEAM DEEP MIDNIGHT BLUE ON PURE BLACK (#000000)
   ========================================================================== */
[data-theme="dark"][data-palette="steam"] {
  --bg: #000000;
  --surface: #080c12;
  --surface-hover: #101824;
  --border: #192433;
  --border-strong: #2c4360;
  --text: #eef3f8;
  --text-body: #c4cfdb;
  --text-muted: #8596a8;
  --accent: #5ba4e6;
  --accent-hover: #76b8f2;
  --btn-bg: #eef3f8;
  --btn-fg: #000000;
  --input-bg: #06090e;
  --shadow: 0 20px 44px rgba(0, 0, 0, 0.75);
}

[data-theme="light"][data-palette="steam"] {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-hover: #edf2f8;
  --border: #dce4ee;
  --border-strong: #b9c8db;
  --text: #0e1621;
  --text-body: #2c3a4b;
  --text-muted: #54657a;
  --accent: #1b4f8a;
  --accent-hover: #2463ab;
  --btn-bg: #0e1621;
  --btn-fg: #ffffff;
  --input-bg: #ffffff;
  --shadow: 0 14px 34px rgba(14, 22, 33, 0.08);
}

/* ==========================================================================
   PALETTE 3: FIREFOX INCOGNITO VIOLET ON PURE BLACK (#000000)
   ========================================================================== */
[data-theme="dark"][data-palette="violet"] {
  --bg: #000000;
  --surface: #0c0812;
  --surface-hover: #160f22;
  --border: #251a36;
  --border-strong: #432b66;
  --text: #f4f1f8;
  --text-body: #cbc4d6;
  --text-muted: #968ca6;
  --accent: #b07bff;
  --accent-hover: #bc8eff;
  --btn-bg: #f4f1f8;
  --btn-fg: #000000;
  --input-bg: #09060e;
  --shadow: 0 20px 44px rgba(0, 0, 0, 0.75);
}

[data-theme="light"][data-palette="violet"] {
  --bg: #faf8fc;
  --surface: #ffffff;
  --surface-hover: #f2ecf9;
  --border: #e5dcf0;
  --border-strong: #c9b8df;
  --text: #130e1c;
  --text-body: #383045;
  --text-muted: #615673;
  --accent: #5b1f9e;
  --accent-hover: #712ac2;
  --btn-bg: #130e1c;
  --btn-fg: #ffffff;
  --input-bg: #ffffff;
  --shadow: 0 14px 34px rgba(19, 14, 28, 0.08);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.66;
  transition: background-color 0.22s ease, color 0.22s ease;
}

img,
video {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header with Large Honey Badger Mark */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.88;
}

.brand-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.28s var(--ease);
}

.brand:hover .brand-logo {
  transform: scale(1.04);
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-sub {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 3px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

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

.nav-link {
  position: relative;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--accent);
}

.header-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ctrl-btn {
  height: 34px;
  padding: 0 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.ctrl-btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.ctrl-theme {
  width: 34px;
  padding: 0;
}

.caret {
  font-size: 10px;
  opacity: 0.65;
}

/* Language dropdown */
.lang-picker {
  position: relative;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 178px;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 60;
}

.lang-picker.is-open .lang-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-option {
  width: 100%;
  padding: 7px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s ease;
}

.lang-option:hover {
  background: var(--surface-hover);
}

.lang-option.is-selected {
  background: var(--surface-hover);
  color: var(--accent);
  font-weight: 600;
}

.lang-option-code {
  font-size: 11px;
  color: var(--text-muted);
}

/* Main */
.page-main {
  flex: 1;
  padding: 56px 0 92px;
}

.kicker {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.page-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.2vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.08;
}

/* HOME */
.home-head {
  padding-bottom: 28px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--border);
}

.games-section {
  margin-bottom: 72px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

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

.game-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #08080a;
  border-bottom: 1px solid var(--border);
}

.game-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.game-card:hover .game-card-media img {
  transform: scale(1.028);
}

.game-card-foot {
  padding: 20px 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.game-card-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.game-card-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.game-card:hover .game-card-title {
  color: var(--accent);
}

.game-card-genre {
  font-size: 13.5px;
  color: var(--text-muted);
}

.game-card-status {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}

/* Clips strip */
.clips-section {
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.section-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-heading {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.section-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

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

.clip-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.22s ease, transform 0.26s var(--ease);
}

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

.clip-media {
  aspect-ratio: 16 / 9;
  background: #08080a;
  overflow: hidden;
}

.clip-media video,
.clip-media iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.clip-caption {
  padding: 12px 15px;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.btn-primary:hover {
  background: var(--accent);
  color: #ffffff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-disabled {
  background: var(--surface);
  color: var(--text-muted);
  border-color: var(--border);
  cursor: default;
  pointer-events: none;
}

/* GAME DETAIL PAGE */
.article-wrap {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

.article-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.back-link {
  transition: color 0.2s ease;
}

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

.article-meta {
  letter-spacing: 0.03em;
}

.article-title {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.08;
}

.article-intro {
  margin: 0 0 26px;
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--text-body);
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.article-cover {
  margin-bottom: 54px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #08080a;
}

.article-cover img {
  width: 100%;
  height: auto;
}

.article-block {
  margin-bottom: 54px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.block-title {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--accent);
}

.block-media {
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #08080a;
}

.block-media video,
.block-media img {
  width: 100%;
  height: auto;
}

.block-text {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.74;
  color: var(--text-body);
}

.shots-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.shots-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.zoomable {
  cursor: zoom-in;
}

.zoomable:hover {
  opacity: 0.92;
  border-color: var(--border-strong);
}

/* ABOUT */
.about-wrap {
  max-width: 960px;
  display: grid;
  grid-template-columns: 1.28fr 0.72fr;
  gap: 56px;
  align-items: start;
}

.about-text .page-title {
  margin-bottom: 24px;
}

.about-text p {
  margin: 0 0 18px;
  font-size: 15.5px;
  color: var(--text-body);
  line-height: 1.76;
}

.about-links {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-media {
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* CONTACT */
.contact-wrap {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 24px;
}

.contact-sub {
  margin: 12px 0 24px;
  color: var(--text-muted);
  font-size: 15.5px;
}

.channels-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.channel-link {
  padding: 10px 12px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.channel-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface-hover);
}

.direct-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 26px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}

.direct-email {
  font-size: 14.5px;
  font-weight: 500;
}

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

.copy-btn {
  padding: 5px 11px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 13px;
  color: var(--text-muted);
}

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--input-bg);
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 118px;
}

.field input[type="file"] {
  font-size: 13px;
  color: var(--text-muted);
}

.form-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.form-status {
  font-size: 13.5px;
  color: var(--text-muted);
}

.form-status.is-ok { color: var(--text); font-weight: 500; }
.form-status.is-err { color: var(--accent); font-weight: 500; }

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

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

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

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

.social-icon-link {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social-icon-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.social-icon-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lb-stage {
  margin: 0;
  max-width: min(1140px, 86vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.lb-stage img {
  max-height: 80vh;
  width: auto;
  border-radius: 6px;
}

.lb-stage figcaption {
  font-size: 13px;
  color: #b8b8c0;
}

.lb-btn {
  position: fixed;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.lb-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lb-close { top: 20px; right: 20px; width: 40px; height: 40px; font-size: 16px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 40px; height: 50px; font-size: 24px; }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }

/* Responsive */
@media (max-width: 820px) {
  .games-grid,
  .clips-grid,
  .about-wrap {
    grid-template-columns: 1fr;
  }
  .about-media {
    max-width: 380px;
  }
}

@media (max-width: 620px) {
  .header-inner {
    height: 74px;
  }
  .brand-logo {
    width: 48px;
    height: 48px;
  }
  .brand-wordmark,
  .header-divider {
    display: none;
  }
  .main-nav {
    gap: 14px;
  }
  .nav-link {
    font-size: 13px;
  }
  .page-main {
    padding: 38px 0 72px;
  }
  .channels-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shots-grid,
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Honeypot anti-spam field (invisible to humans) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
