:root {
  --bg: #060d18;
  --surface: rgba(12, 23, 38, 0.92);
  --surface-solid: #0c1726;
  --surface-hi: #102036;
  --surface-dark: #0a1423;
  --line: rgba(186, 230, 253, 0.13);
  --line-strong: rgba(125, 211, 252, 0.34);
  --text: #eef6ff;
  --muted: rgba(224, 242, 254, 0.76);
  --subtle: rgba(186, 230, 253, 0.58);
  --sky: #38bdf8;
  --sky-hi: #7dd3fc;
  --amber: #fbbf24;
  --amber-hi: #fde68a;
  --crimson: #f43f5e;
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Unbounded", system-ui, -apple-system, sans-serif;
  --font-sans: "Manrope", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(186, 230, 253, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(186, 230, 253, 0.032) 1px, transparent 1px),
    radial-gradient(ellipse 75% 42% at 50% -8%, rgba(56, 189, 248, 0.16), transparent 65%),
    radial-gradient(ellipse 45% 32% at 88% 12%, rgba(99, 102, 241, 0.09), transparent 60%),
    var(--bg);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  color: var(--text);
  line-height: 1.55;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--sky-hi);
  outline-offset: 2px;
}

.pixelated {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Ambient Snow Canvas (behind cards so text stays crisp) */
#snow-canvas {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

/* Header — strict 3-zone top bar contract */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(186, 230, 253, 0.1);
  background: rgba(6, 13, 24, 0.86);
  backdrop-filter: blur(12px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(186, 230, 253, 0.22);
  background: #0e1d32;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.header-nav a {
  padding: 4px 0;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.18s ease;
}

.header-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 8px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid rgba(186, 230, 253, 0.16);
  background: rgba(10, 20, 35, 0.92);
  flex-shrink: 0;
}

.lang-btn {
  border: 0;
  border-radius: 7px;
  padding: 6px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  background: transparent;
  color: rgba(224, 242, 254, 0.62);
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.lang-btn:hover {
  color: #ffffff;
}

.lang-btn.is-active {
  background: rgba(56, 189, 248, 0.2);
  color: #eef6ff;
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.36);
}

.lang-sep {
  font-size: 11px;
  line-height: 1;
  color: rgba(186, 230, 253, 0.24);
  user-select: none;
  padding: 0 1px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn-primary {
  background: var(--sky);
  color: #041322;
  border: 0;
  padding: 12px 22px;
  font-size: 14px;
}

.btn-primary:hover {
  background: var(--sky-hi);
}

.btn-header {
  padding: 10px 18px;
  font-size: 12px;
}

.btn-secondary {
  background: rgba(12, 23, 38, 0.88);
  color: #ffffff;
  border: 1px solid rgba(186, 230, 253, 0.18);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
}

.btn-secondary:hover {
  border-color: rgba(125, 211, 252, 0.42);
  background: var(--surface-hi);
}

.btn-snow {
  background: rgba(12, 23, 38, 0.82);
  color: #bae6fd;
  border: 1px solid rgba(186, 230, 253, 0.16);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}

.btn-snow:hover {
  border-color: rgba(125, 211, 252, 0.38);
  background: rgba(56, 189, 248, 0.12);
}

/* Festive Garland */
.garland-wrap {
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  opacity: 0.88;
}

.garland-svg {
  display: block;
  width: 100%;
  height: 40px;
}

@keyframes dg-twinkle {
  0%, 100% {
    opacity: 0.45;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes dg-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes dg-smoke {
  0% {
    opacity: 0;
    transform: translateY(4px) scale(0.7);
  }
  30% {
    opacity: 0.72;
  }
  100% {
    opacity: 0;
    transform: translateY(-28px) translateX(8px) scale(1.35);
  }
}

@keyframes dg-scene-snow {
  0% {
    transform: translateY(-10%) translateX(0);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  85% {
    opacity: 0.85;
  }
  100% {
    transform: translateY(115%) translateX(16px);
    opacity: 0;
  }
}

@keyframes dg-firework {
  0%, 100% {
    opacity: 0;
    transform: scale(0.3);
  }
  40% {
    opacity: 0.95;
    transform: scale(1.1);
  }
  70% {
    opacity: 0.2;
    transform: scale(1.45);
  }
}

.twinkle {
  animation: dg-twinkle 2.8s ease-in-out infinite;
}

main,
.site-footer {
  position: relative;
  z-index: 10;
}

main {
  padding-bottom: 80px;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
  gap: 44px;
  padding: 36px 0 64px;
}

.hero-copy {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-media {
  grid-column: span 6;
}

.kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--sky-hi);
}

.kicker-amber {
  color: #fcd34d;
}

.hero-title {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-wrap: balance;
}

.hero-title-accent {
  display: block;
  margin-top: 4px;
  background: linear-gradient(90deg, #7dd3fc 0%, #bae6fd 52%, #fde68a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 20px 0 0;
  max-width: 540px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-meta-bar {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(186, 230, 253, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.countdown-label {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: rgba(253, 230, 138, 0.92);
}

.countdown-grid {
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}

.countdown-grid small {
  margin-left: 3px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--subtle);
}

.countdown-sep {
  color: rgba(186, 230, 253, 0.3);
}

.countdown-sec {
  color: var(--sky-hi);
}

.hero-meta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.meta-topics {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--subtle);
}

/* Interactive Winter Minecraft Diorama */
.diorama {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 432px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(186, 230, 253, 0.16);
  background: var(--surface-solid);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.44);
}

.diorama-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface-dark);
  border-bottom: 1px solid rgba(186, 230, 253, 0.1);
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: rgba(251, 113, 133, 0.72); }
.dot-amber { background: rgba(252, 211, 77, 0.72); }
.dot-sky { background: rgba(125, 211, 252, 0.72); }

.diorama-url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(186, 230, 253, 0.72);
}

.diorama-mode {
  font-size: 12px;
  font-weight: 500;
  color: rgba(224, 242, 254, 0.85);
}

.scene-stage {
  position: relative;
  flex: 1;
  overflow: hidden;
  transition: background 0.5s ease;
  background: linear-gradient(to bottom, #040a18, #0c203d, #133152);
}

.scene-stage[data-scene="morning"] {
  background: linear-gradient(to bottom, #78b7eb, #b8dcf7, #e4f2fe);
}

.scene-stage[data-scene="sunset"] {
  background: linear-gradient(to bottom, #1e2954, #7c3f6b, #f4976c);
}

.scene-stage[data-scene="night"] {
  background: linear-gradient(to bottom, #040a18, #0c203d, #133152);
}

.scene-night-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.scene-stage[data-scene="night"] .scene-night-layer {
  opacity: 1;
}

.scene-aurora {
  position: absolute;
  top: -32px;
  left: 24px;
  right: 24px;
  height: 128px;
  border-radius: 999px;
  opacity: 0.45;
  filter: blur(36px);
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.45), rgba(52, 211, 153, 0.42), rgba(167, 139, 250, 0.32));
}

.scene-star {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #e0f2fe;
}

.firework {
  position: absolute;
  width: 40px;
  height: 40px;
  animation: dg-firework 3.6s ease-out infinite;
}

.firework span {
  position: absolute;
  width: 6px;
  height: 6px;
}

.scene-celestial {
  position: absolute;
  right: 40px;
  top: 32px;
  width: 48px;
  height: 48px;
  background: #e8f4ff;
  box-shadow: 0 0 28px rgba(186, 230, 253, 0.65);
  transition: all 0.5s ease;
}

.scene-stage[data-scene="morning"] .scene-celestial {
  top: 40px;
  width: 56px;
  height: 56px;
  background: #fff5b8;
  box-shadow: 0 0 28px rgba(254, 240, 138, 0.65);
}

.scene-stage[data-scene="sunset"] .scene-celestial {
  top: 96px;
  right: 48px;
  width: 56px;
  height: 56px;
  background: #ffd185;
  box-shadow: 0 0 32px rgba(251, 146, 60, 0.65);
}

.scene-cloud {
  position: absolute;
  height: 16px;
  background: rgba(148, 163, 184, 0.2);
  transition: background-color 0.5s ease;
}

.scene-stage[data-scene="morning"] .scene-cloud {
  background: rgba(255, 255, 255, 0.85);
}

.scene-stage[data-scene="sunset"] .scene-cloud {
  background: rgba(254, 205, 211, 0.52);
}

.scene-chip {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(224, 242, 254, 0.2);
  background: rgba(11, 22, 38, 0.86);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.scene-chip img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.scene-chip strong {
  display: block;
  font-size: 12px;
  color: #ffffff;
  line-height: 1.2;
}

.scene-chip span {
  display: block;
  font-size: 11px;
  color: rgba(186, 230, 253, 0.8);
}

.scene-snow-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.scene-flake {
  position: absolute;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  animation: dg-scene-snow 5.2s linear infinite;
}

.scene-mountains {
  position: absolute;
  inset: auto 0 34% 0;
  height: 96px;
  pointer-events: none;
}

.mountain {
  position: absolute;
  bottom: 0;
  background: #1a3354;
  transition: background-color 0.5s ease;
}

.mountain-snow {
  height: 18px;
  width: 100%;
  background: rgba(255, 255, 255, 0.74);
}

.scene-stage[data-scene="morning"] .mountain { background: #9ec5e6; }
.scene-stage[data-scene="sunset"] .mountain { background: #5c4b75; }

.scene-ground {
  position: absolute;
  inset: auto 0 0 0;
  height: 36%;
  background: linear-gradient(to bottom, #cbdcf0, #8ea8c9, #4f6d92);
  transition: background 0.5s ease;
}

.scene-stage[data-scene="morning"] .scene-ground {
  background: linear-gradient(to bottom, #f4faff, #e2effc, #c7def4);
}

.scene-stage[data-scene="sunset"] .scene-ground {
  background: linear-gradient(to bottom, #f7d9d4, #d7b5c9, #8f89b2);
}

.ground-crust {
  height: 10px;
  width: 100%;
  background: rgba(255, 255, 255, 0.86);
}

.ground-path {
  margin-top: 28px;
  height: 12px;
  width: 100%;
  background: rgba(61, 86, 120, 0.52);
}

.scene-stage[data-scene="morning"] .ground-path {
  background: rgba(179, 205, 228, 0.62);
}

.scene-tree {
  position: absolute;
  bottom: 26%;
  left: 7%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.tree-star {
  width: 14px;
  height: 14px;
  margin-bottom: 2px;
  background: #fcd34d;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.9);
}

.tree-tier {
  position: relative;
  border-top: 4px solid rgba(255, 255, 255, 0.9);
}

.tree-bulb {
  position: absolute;
  width: 6px;
  height: 6px;
}

.tree-base {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.gift-red {
  width: 16px;
  height: 16px;
  margin-right: 4px;
  background: #f43f5e;
  border-top: 2px solid #fcd34d;
}

.tree-trunk {
  width: 16px;
  height: 24px;
  background: #5c3a21;
}

.gift-blue {
  width: 16px;
  height: 14px;
  margin-left: 4px;
  background: #0ea5e9;
  border-top: 2px solid #ffffff;
}

.scene-cabin {
  position: absolute;
  bottom: 25%;
  right: 8%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.cabin-chimney {
  position: relative;
  margin-left: 56px;
  width: 16px;
  height: 20px;
  background: #475569;
}

.smoke-puff {
  position: absolute;
  top: -8px;
  left: 2px;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.72);
  animation: dg-smoke 3.4s ease-out infinite;
}

.cabin-roof-snow {
  width: 128px;
  height: 16px;
  background: #ffffff;
}

.cabin-roof-wood {
  width: 120px;
  height: 10px;
  background: #5c3b20;
}

.cabin-walls {
  width: 104px;
  height: 80px;
  background: #8c5e34;
  border-left: 4px solid #5c3b20;
  border-right: 4px solid #5c3b20;
  padding: 0 10px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.cabin-win {
  width: 22px;
  height: 22px;
  margin-bottom: 26px;
  border: 2px solid #4a2e16;
  background: #fcd34d;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.85);
  transition: all 0.5s ease;
}

.scene-stage[data-scene="morning"] .cabin-win {
  background: #bae6fd;
  box-shadow: none;
}

.cabin-door {
  width: 24px;
  height: 44px;
  background: #543217;
  border: 2px solid #3e2511;
  border-bottom: 0;
}

.scene-hero {
  position: absolute;
  bottom: 18%;
  left: 34%;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: dg-float 4.2s ease-in-out infinite;
}

.hero-santa-hat {
  position: relative;
  z-index: 2;
  margin-bottom: -4px;
}

.hat-top {
  width: 20px;
  height: 8px;
  margin: 0 auto;
  background: #dc1d34;
}

.hat-mid {
  position: relative;
  width: 36px;
  height: 8px;
  margin: 0 auto;
  background: #c8182e;
}

.hat-pom {
  position: absolute;
  right: -8px;
  top: 4px;
  width: 10px;
  height: 10px;
  background: #ffffff;
}

.hat-brim {
  width: 40px;
  height: 8px;
  background: #ffffff;
}

.scene-hero img {
  height: 144px;
  width: auto;
  filter: drop-shadow(0 12px 18px rgba(4, 12, 24, 0.45));
}

.scene-golem {
  position: absolute;
  bottom: 16%;
  right: 35%;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.golem-head {
  position: relative;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border: 1px solid #bae6fd;
}

.golem-eye-l { position: absolute; left: 4px; top: 6px; width: 4px; height: 4px; background: #0f172a; }
.golem-eye-r { position: absolute; right: 4px; top: 6px; width: 4px; height: 4px; background: #0f172a; }
.golem-nose { position: absolute; left: 8px; top: 10px; width: 6px; height: 4px; background: #f97316; }

.golem-body {
  width: 24px;
  height: 24px;
  background: #f1f8ff;
  border: 1px solid #bae6fd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.golem-btn { width: 4px; height: 4px; background: #1e293b; }

.golem-base {
  width: 28px;
  height: 24px;
  background: #e5f2ff;
  border: 1px solid #bae6fd;
}

.scene-controls {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(224, 242, 254, 0.2);
  background: rgba(8, 19, 34, 0.86);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.scene-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background-color 0.16s ease;
}

.scene-arrow:hover {
  background: rgba(56, 189, 248, 0.2);
}

.scene-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.scene-tab {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(224, 242, 254, 0.78);
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.scene-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.scene-tab.is-active {
  background: var(--sky);
  color: #041322;
}

.diorama-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  border-top: 1px solid rgba(186, 230, 253, 0.1);
  background: var(--surface-dark);
  font-size: 12px;
  color: rgba(224, 242, 254, 0.72);
}

.diorama-foot-tag {
  white-space: nowrap;
  flex-shrink: 0;
  color: rgba(125, 211, 252, 0.85);
}

/* Sections & Cards */
.section {
  padding: 56px 0;
  scroll-margin-top: 90px;
}

.section-tight {
  padding: 40px 0;
}

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

.section-title {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  text-wrap: balance;
}

/* Welcome Card */
.welcome-card {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 32px;
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.welcome-copy {
  grid-column: span 8;
}

.welcome-copy p.prose {
  margin: 16px 0 0;
  max-width: 660px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.welcome-copy strong {
  color: #ffffff;
}

.avatar-controls {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.segmented {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(186, 230, 253, 0.14);
  background: #07111e;
}

.segmented button {
  border: 0;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  color: rgba(224, 242, 254, 0.72);
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.segmented button:hover {
  color: #ffffff;
}

.segmented button.is-active {
  background: var(--sky);
  color: #041322;
}

.welcome-avatar-col {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.avatar-ring {
  width: 224px;
  height: 224px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(125, 211, 252, 0.36);
  background: linear-gradient(to bottom, #132945, #0b1b30, #081322);
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  padding: 26px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
}

.avatar-ring img.is-round {
  padding: 0;
  border-radius: 50%;
  object-fit: cover;
  filter: none;
}

.avatar-caption {
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: rgba(186, 230, 253, 0.78);
}

/* Videos Section */
.video-head-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.text-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(186, 230, 253, 0.78);
  white-space: nowrap;
  transition: color 0.16s ease;
}

.text-action:hover {
  color: #ffffff;
}

.text-action-sky {
  font-size: 14px;
  color: var(--sky-hi);
}

.text-action-sky:hover {
  color: #bae6fd;
}

.video-status {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--subtle);
}

.videos-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

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

.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.video-thumb-btn {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #091322;
}

.video-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.video-card:hover .video-thumb-btn img {
  transform: scale(1.03);
}

.video-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #0e2038, #081222);
  color: rgba(186, 230, 253, 0.78);
  font-size: 12px;
  font-weight: 600;
}

.video-thumb-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 13, 24, 0.72), transparent 55%);
}

.video-play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sky);
  color: #041322;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.video-card:hover .video-play-badge {
  transform: scale(1.06);
}

.video-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
}

.video-date {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: rgba(186, 230, 253, 0.65);
}

.video-title {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(186, 230, 253, 0.1);
  font-size: 12px;
}

/* Official Links Bento Grid */
.links-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.social-card {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.social-card.is-featured {
  grid-column: span 3;
}

.social-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--surface-hi);
}

.social-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.icon-youtube { background: rgba(255, 31, 64, 0.15); color: #ff4c65; border-color: rgba(255, 31, 64, 0.3); }
.icon-instagram { background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(236, 72, 153, 0.2), rgba(139, 92, 246, 0.25)); color: #fb7185; border-color: rgba(244, 63, 94, 0.32); }
.icon-telegram { background: rgba(14, 165, 233, 0.15); color: #38bdf8; border-color: rgba(56, 189, 248, 0.3); }
.icon-tiktok { background: rgba(255, 255, 255, 0.1); color: #ffffff; border-color: rgba(255, 255, 255, 0.2); }
.icon-vk { background: rgba(37, 99, 235, 0.2); color: #60a5fa; border-color: rgba(59, 130, 246, 0.35); }

.social-copy {
  min-width: 0;
}

.social-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(186, 230, 253, 0.68);
}

.tag-new {
  font-weight: 700;
  color: #fcd34d;
}

.social-handle {
  display: block;
  margin-top: 2px;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-note {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--subtle);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-arrow {
  flex-shrink: 0;
  color: rgba(186, 230, 253, 0.55);
  transition: transform 0.18s ease, color 0.18s ease;
}

.social-card:hover .social-arrow {
  transform: translate(2px, -2px);
  color: var(--sky-hi);
}

/* Subscribe CTA Banner */
.cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 36px;
  padding: 36px 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #0e1f36, #0c1726, #0a1322);
}

.card-prose {
  margin: 12px 0 0;
  max-width: 580px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(186, 230, 253, 0.1);
  background: #050b14;
  padding: 40px 0;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(224, 242, 254, 0.68);
}

.legal-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(186, 230, 253, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  padding: 2px;
}

.footer-brand-name {
  font-size: 12px;
}

.copyright {
  margin: 0;
  font-size: 12px;
  color: rgba(224, 242, 254, 0.55);
}

/* Video Preview Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-box {
  width: 100%;
  max-width: 780px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(186, 230, 253, 0.18);
  background: #0b1626;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.6);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(186, 230, 253, 0.1);
}

.modal-head-text {
  min-width: 0;
}

.modal-head-date {
  margin: 0;
  font-size: 12px;
  color: rgba(125, 211, 252, 0.85);
}

.modal-head-title {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-close {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid rgba(186, 230, 253, 0.18);
  background: transparent;
  color: #bae6fd;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #ffffff;
}

.modal-video-wrap {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000000;
}

.modal-video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-top: 1px solid rgba(186, 230, 253, 0.1);
  font-size: 12px;
  color: var(--subtle);
}

/* Subpages (contact, privacy, terms, 404) */
.subpage-main {
  padding: 48px 0 80px;
}

.subpage-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.subpage-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 24px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sky-hi);
}

.back-link:hover {
  color: #bae6fd;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.subpage-card p {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.email-box {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  background: #08101d;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.email-address {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.email-address:hover {
  color: var(--sky-hi);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-copy,
  .hero-media {
    grid-column: span 1;
  }
  .welcome-card {
    grid-template-columns: 1fr;
    padding: 28px;
  }
  .welcome-copy,
  .welcome-avatar-col {
    grid-column: span 1;
  }
  .videos-grid {
    grid-template-columns: 1fr;
  }
  .links-grid {
    grid-template-columns: 1fr;
  }
  .social-card,
  .social-card.is-featured {
    grid-column: span 1;
  }
  .cta-banner {
    padding: 28px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 64px;
    gap: 12px;
  }
  .brand {
    gap: 9px;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .brand-name {
    font-size: 13px;
    letter-spacing: 0.06em;
  }
  .header-nav {
    display: none;
  }
  .header-actions {
    gap: 8px;
  }
  .lang-btn {
    padding: 6px 7px;
  }
  .btn-header {
    padding: 9px 13px;
  }
  .container {
    width: calc(100% - 32px);
  }
  .hero {
    padding: 24px 0 44px;
  }
  .hero-meta-right {
    align-items: flex-start;
  }
  .subpage-card {
    padding: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .twinkle,
  .scene-hero,
  .smoke-puff,
  .scene-flake,
  .firework {
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
