/* ==========================================================================
   MINECRAFT_SNAS — personal site
   Palette: deepslate, grass, emerald, torchlight
   ========================================================================== */

:root {
  --bg: #070c09;
  --bg-soft: #0a110d;
  --bg-deep: #050906;
  --panel: #0d1711;
  --panel-raised: #101d15;
  --panel-soft: #0b140f;
  --text: #edf5e9;
  --text-soft: #cbd9cc;
  --muted: #8fa294;
  --muted-dim: #6b7d70;
  --green: #78e389;
  --green-bright: #a5ffb0;
  --green-deep: #2b7c48;
  --green-dark: #173a25;
  --green-glow: rgba(108, 227, 128, 0.2);
  --gold: #e7c470;
  --gold-soft: #f5dfa2;
  --orange: #e5a077;
  --blue: #8ebbd9;
  --violet: #c69cdf;
  --redstone: #f06b50;
  --line: rgba(181, 219, 185, 0.12);
  --line-strong: rgba(181, 219, 185, 0.22);
  --white-low: rgba(237, 245, 233, 0.06);
  --font-sans: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --font-display: "Bahnschrift", "DIN Alternate", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --font-mono: "Cascadia Code", "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --container: 1240px;
  --header-h: 82px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(148, 202, 158, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 202, 158, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 20%, transparent 78%);
  pointer-events: none;
}

::selection {
  background: var(--green);
  color: #071208;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #060a07;
}

::-webkit-scrollbar-thumb {
  background: #213526;
  border: 2px solid #060a07;
}

::-webkit-scrollbar-thumb:hover {
  background: #31523a;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

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

h1,
h2,
h3,
p,
dl,
dd,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--green);
  color: #071208;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(var(--container), calc(100% - 64px));
  margin-inline: auto;
}

.mono-label,
.section-index,
.eyebrow,
.viewport-mono,
.hero-footer-coords,
.scroll-cue,
.player-id,
.footer-made {
  font-family: var(--font-mono);
}

.section {
  position: relative;
  padding: 132px 0;
}

.section-index {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section-index::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--line-strong);
}

.section-index span {
  color: var(--green);
}

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

.section-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 80px;
  align-items: end;
}

.section-title {
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.3vw, 4.8rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.section-title em,
.contact-title em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(100deg, var(--green-bright) 0%, var(--green) 45%, #4abf74 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.section-lead {
  max-width: 430px;
  justify-self: end;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

/* Scroll progress + cursor light ------------------------------------------------ */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  height: 2px;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--green-deep), var(--green), var(--gold));
  box-shadow: 0 0 14px var(--green-glow);
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 210, 116, 0.085), transparent 67%);
  transform: translate(calc(var(--mx, 50vw) - 280px), calc(var(--my, 50vh) - 280px));
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 150;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Header ---------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
body.nav-open .site-header {
  background: rgba(7, 12, 9, 0.82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
}

.brand-cube {
  width: 33px;
  height: 33px;
  flex: none;
  filter: drop-shadow(0 0 12px rgba(110, 225, 131, 0.14));
  transition: transform 0.5s var(--ease);
}

.brand:hover .brand-cube {
  transform: translateY(-2px) rotate(-6deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-text strong {
  overflow: hidden;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.075em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-text small {
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 0;
  color: var(--muted);
  font-size: 13px;
  transition: color 0.25s ease;
}

.nav-links a span {
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 8px;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

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

.nav-links a:hover span,
.nav-links a.is-active span {
  color: var(--green);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  height: 38px;
  margin-left: 10px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--text-soft);
  font-size: 12px;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.nav-cta:hover {
  border-color: rgba(120, 227, 137, 0.5);
  background: rgba(120, 227, 137, 0.07);
  color: var(--green-bright);
}

.nav-cta svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.nav-cta-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(120, 227, 137, 0.8);
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  margin: 4px auto;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 980px) {
  body.nav-open {
    overflow: hidden;
  }
}

/* Buttons --------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, background 0.3s ease,
    border-color 0.3s ease, color 0.3s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  border-color: rgba(179, 255, 189, 0.36);
  background: linear-gradient(135deg, #9bf6ad 0%, #66d77d 55%, #4dc66a 100%);
  color: #07130a;
  box-shadow: 0 8px 28px rgba(65, 191, 93, 0.16);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: inherit;
  clip-path: polygon(0 0, 9px 0, 9px 1px, 1px 1px, 1px 9px, 0 9px, 0 100%, 100% 100%, 100% 0);
  pointer-events: none;
}

.btn--primary:hover {
  box-shadow: 0 12px 36px rgba(65, 191, 93, 0.27);
}

.btn--primary:hover svg {
  transform: translateX(3px);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
}

.btn--ghost:hover {
  border-color: rgba(120, 227, 137, 0.42);
  background: rgba(120, 227, 137, 0.055);
  color: var(--green-bright);
}

.btn-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  margin-left: 5px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.btn:disabled {
  opacity: 0.58;
  cursor: wait;
  transform: none;
}

/* Hero ------------------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + 80px) 0 34px;
  isolation: isolate;
  overflow: hidden;
}

.hero-aurora {
  position: absolute;
  z-index: -1;
  top: -22%;
  left: 38%;
  width: 900px;
  height: 760px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(49, 143, 82, 0.24), transparent 62%),
    radial-gradient(ellipse at 70% 70%, rgba(158, 199, 92, 0.07), transparent 55%);
  filter: blur(50px);
  pointer-events: none;
}

.hero-aurora::after {
  content: "";
  position: absolute;
  top: 28%;
  left: -120%;
  width: 780px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(34, 113, 74, 0.18), transparent 66%);
  filter: blur(60px);
}

.hero-grid-bg {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(153, 214, 163, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(153, 214, 163, 0.045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 85% 72% at 55% 42%, #000 8%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 72% at 55% 42%, #000 8%, transparent 78%);
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(440px, 0.94fr);
  gap: clamp(48px, 6vw, 88px);
  align-items: center;
  min-height: min(760px, calc(100vh - var(--header-h) - 130px));
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 18px 0 6px;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
}

.online-pill i {
  position: relative;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(120, 227, 137, 0.9);
}

.online-pill i::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(120, 227, 137, 0.35);
  border-radius: 50%;
  animation: ping 2.8s ease-out infinite;
}

.eyebrow-slash {
  color: var(--muted-dim);
}

.hero-title {
  margin: 30px 0 28px;
  font-family: var(--font-display);
  font-size: clamp(4.25rem, 7vw, 7rem);
  font-weight: 600;
  line-height: 0.89;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.hero-title-line {
  display: block;
  width: fit-content;
}

.hero-title-line--accent {
  position: relative;
  color: transparent;
  background: linear-gradient(100deg, #c9ffd0 0%, var(--green) 42%, #51b873 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.title-dot {
  color: var(--gold);
  -webkit-text-fill-color: var(--gold);
}

.hero-kicker {
  max-width: 560px;
  color: var(--text-soft);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.mobile-break {
  display: none;
}

.nowrap {
  white-space: nowrap;
}

.hero-desc {
  max-width: 550px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 42px;
}

.hero-stats {
  display: flex;
  gap: 0;
  max-width: 580px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-stats > div {
  flex: 1;
  min-width: 0;
  padding-right: 26px;
}

.hero-stats > div + div {
  padding-left: 26px;
  border-left: 1px solid var(--line);
}

.hero-stats dt {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.hero-stats dt small {
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.09em;
}

.hero-stats dd {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-stats dd em {
  color: var(--green);
  font-size: 13px;
  font-style: normal;
  vertical-align: 2px;
}

.hero-stats dd span {
  font-variant-numeric: tabular-nums;
}

/* Hero art -------------------------------------------------------------------- */

.hero-art {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  perspective: 1100px;
}

.hero-orbit {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 640px;
  height: 640px;
  border: 1px solid rgba(147, 207, 158, 0.08);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-orbit::before {
  content: "";
  position: absolute;
  inset: 44px;
  border: 1px dashed rgba(147, 207, 158, 0.07);
  border-radius: 50%;
}

.hero-orbit::after {
  content: "";
  position: absolute;
  top: 8%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px 3px rgba(120, 227, 137, 0.35);
}

.hero-orbit--one {
  animation: orbitSpin 42s linear infinite;
}

.hero-orbit--two {
  width: 470px;
  height: 470px;
  opacity: 0.65;
  animation: orbitSpin 30s linear infinite reverse;
}

.hero-orbit--two::before {
  inset: 30px;
}

.hero-orbit--two::after {
  top: auto;
  bottom: 13%;
  left: 20%;
  width: 4px;
  height: 4px;
  background: var(--gold);
  box-shadow: 0 0 14px 3px rgba(231, 196, 112, 0.28);
}

.player-card {
  position: relative;
  z-index: 2;
  padding: 12px;
  border: 1px solid rgba(178, 224, 185, 0.19);
  border-radius: 7px;
  background:
    linear-gradient(160deg, rgba(23, 42, 30, 0.85), rgba(9, 17, 12, 0.94) 48%),
    var(--panel);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.25) inset,
    0 0 80px rgba(55, 155, 88, 0.07);
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, border-color 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}

.player-card:hover {
  border-color: rgba(140, 235, 156, 0.32);
  box-shadow:
    0 48px 100px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(55, 155, 88, 0.1);
}

.player-card::before,
.player-card::after {
  content: "";
  position: absolute;
  z-index: 6;
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.player-card::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--green);
  border-left: 2px solid var(--green);
}

.player-card::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
}

.player-card-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  padding: 0 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.file-label,
.card-online {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.file-label i {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(120, 227, 137, 0.5);
  background: rgba(120, 227, 137, 0.12);
}

.card-online {
  color: var(--green);
}

.card-online i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 7px rgba(120, 227, 137, 0.8);
}

.player-viewport {
  position: relative;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  border: 1px solid rgba(166, 218, 175, 0.13);
  border-radius: 3px;
  background: #08110b;
}

.skin-stage {
  --u: 10px;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  perspective: 900px;
  perspective-origin: 50% 44%;
  background:
    radial-gradient(ellipse 56% 48% at 50% 40%, rgba(67, 161, 93, 0.18), transparent 68%),
    linear-gradient(180deg, #07110b 0%, #08140e 62%, #050b07 100%);
}

.skin-stage::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    linear-gradient(90deg, rgba(5, 11, 7, 0.62), transparent 22%, transparent 78%, rgba(5, 11, 7, 0.62)),
    radial-gradient(ellipse at center, transparent 30%, rgba(3, 7, 4, 0.55) 100%);
  pointer-events: none;
}

.skin-floor {
  position: absolute;
  z-index: 0;
  right: -28%;
  bottom: -8%;
  left: -28%;
  height: 54%;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(135, 212, 146, 0.17) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135, 212, 146, 0.17) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(320px) rotateX(62deg);
  transform-origin: center bottom;
  mask-image: linear-gradient(transparent 0%, #000 38%, #000 100%);
  -webkit-mask-image: linear-gradient(transparent 0%, #000 38%, #000 100%);
  pointer-events: none;
}

.skin-tilt {
  position: relative;
  z-index: 2;
  width: calc(16 * var(--u));
  height: calc(32 * var(--u));
  transform-style: preserve-3d;
  transform: rotateX(-4deg) rotateZ(-1.5deg);
}

.skin-spinner {
  width: calc(16 * var(--u));
  height: calc(32 * var(--u));
  transform-style: preserve-3d;
  animation: skinTurn 24s linear infinite;
  animation-delay: -2.5s;
}

.skin-bob {
  width: calc(16 * var(--u));
  height: calc(32 * var(--u));
  transform-style: preserve-3d;
  animation: skinBob 1.15s ease-in-out infinite;
}

.skin-model {
  position: relative;
  width: calc(16 * var(--u));
  height: calc(32 * var(--u));
  transform-style: preserve-3d;
}

.skin-shadow {
  position: absolute;
  z-index: 1;
  bottom: 23%;
  left: 50%;
  width: calc(14 * var(--u));
  height: calc(3 * var(--u));
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.72), transparent 68%);
  transform: translateX(-50%);
  pointer-events: none;
}

.skin-part,
.skin-cuboid {
  position: absolute;
  transform-style: preserve-3d;
}

.skin-cuboid {
  inset: 0;
}

.skin-outer {
  transform: scale3d(1.12, 1.12, 1.12);
  transform-origin: 50% 50%;
  pointer-events: none;
}

.skin-head {
  top: 0;
  left: calc(4 * var(--u));
  width: calc(8 * var(--u));
  height: calc(8 * var(--u));
  --w: 8;
  --h: 8;
  --d: 8;
}

.skin-body {
  top: calc(8 * var(--u));
  left: calc(4 * var(--u));
  width: calc(8 * var(--u));
  height: calc(12 * var(--u));
  --w: 8;
  --h: 12;
  --d: 4;
}

.skin-arm,
.skin-leg {
  width: calc(4 * var(--u));
  height: calc(12 * var(--u));
  --w: 4;
  --h: 12;
  --d: 4;
  transform-origin: 50% 0;
}

.skin-arm {
  top: calc(8 * var(--u));
}

.skin-arm--right {
  left: 0;
  animation: skinArmRight 1.15s ease-in-out infinite;
}

.skin-arm--left {
  left: calc(12 * var(--u));
  animation: skinArmLeft 1.15s ease-in-out infinite;
}

.skin-leg {
  top: calc(20 * var(--u));
}

.skin-leg--right {
  left: calc(4 * var(--u));
  animation: skinLegRight 1.15s ease-in-out infinite;
}

.skin-leg--left {
  left: calc(8 * var(--u));
  animation: skinLegLeft 1.15s ease-in-out infinite;
}

.skin-face {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  background-image: url("assets/skin.png");
  background-repeat: no-repeat;
  background-size: calc(64 * var(--u)) calc(64 * var(--u));
  image-rendering: pixelated;
  backface-visibility: hidden;
}

.skin-face--right,
.skin-face--left,
.skin-face--back {
  filter: brightness(0.82);
}

.skin-face--top {
  filter: brightness(1.08);
}

.skin-face--bottom {
  filter: brightness(0.7);
}

.skin-face--front {
  width: calc(var(--w) * var(--u));
  height: calc(var(--h) * var(--u));
  transform: translate(-50%, -50%) translateZ(calc(var(--d) * var(--u) / 2));
}

.skin-face--back {
  width: calc(var(--w) * var(--u));
  height: calc(var(--h) * var(--u));
  transform: translate(-50%, -50%) rotateY(180deg) translateZ(calc(var(--d) * var(--u) / 2));
}

.skin-face--right {
  width: calc(var(--d) * var(--u));
  height: calc(var(--h) * var(--u));
  transform: translate(-50%, -50%) rotateY(90deg) translateZ(calc(var(--w) * var(--u) / 2));
}

.skin-face--left {
  width: calc(var(--d) * var(--u));
  height: calc(var(--h) * var(--u));
  transform: translate(-50%, -50%) rotateY(-90deg) translateZ(calc(var(--w) * var(--u) / 2));
}

.skin-face--top {
  width: calc(var(--w) * var(--u));
  height: calc(var(--d) * var(--u));
  transform: translate(-50%, -50%) rotateX(90deg) translateZ(calc(var(--h) * var(--u) / 2));
}

.skin-face--bottom {
  width: calc(var(--w) * var(--u));
  height: calc(var(--d) * var(--u));
  transform: translate(-50%, -50%) rotateX(-90deg) translateZ(calc(var(--h) * var(--u) / 2));
}

/* Skin UV lookups: each face samples one region of the 64x64 skin. */

.tex-head-front { background-position: calc(-8 * var(--u)) calc(-8 * var(--u)); }
.tex-head-back { background-position: calc(-24 * var(--u)) calc(-8 * var(--u)); }
.tex-head-right { background-position: calc(0 * var(--u)) calc(-8 * var(--u)); }
.tex-head-left { background-position: calc(-16 * var(--u)) calc(-8 * var(--u)); }
.tex-head-top { background-position: calc(-8 * var(--u)) calc(0 * var(--u)); }
.tex-head-bottom { background-position: calc(-16 * var(--u)) calc(0 * var(--u)); }

.tex-body-front { background-position: calc(-20 * var(--u)) calc(-20 * var(--u)); }
.tex-body-back { background-position: calc(-32 * var(--u)) calc(-20 * var(--u)); }
.tex-body-right { background-position: calc(-16 * var(--u)) calc(-20 * var(--u)); }
.tex-body-left { background-position: calc(-28 * var(--u)) calc(-20 * var(--u)); }
.tex-body-top { background-position: calc(-20 * var(--u)) calc(-16 * var(--u)); }
.tex-body-bottom { background-position: calc(-28 * var(--u)) calc(-16 * var(--u)); }

.tex-arm-front { background-position: calc(-44 * var(--u)) calc(-20 * var(--u)); }
.tex-arm-back { background-position: calc(-52 * var(--u)) calc(-20 * var(--u)); }
.tex-arm-right { background-position: calc(-40 * var(--u)) calc(-20 * var(--u)); }
.tex-arm-left { background-position: calc(-48 * var(--u)) calc(-20 * var(--u)); }
.tex-arm-top { background-position: calc(-44 * var(--u)) calc(-16 * var(--u)); }
.tex-arm-bottom { background-position: calc(-48 * var(--u)) calc(-16 * var(--u)); }

.tex-leg-front { background-position: calc(-4 * var(--u)) calc(-20 * var(--u)); }
.tex-leg-back { background-position: calc(-12 * var(--u)) calc(-20 * var(--u)); }
.tex-leg-right { background-position: calc(0 * var(--u)) calc(-20 * var(--u)); }
.tex-leg-left { background-position: calc(-8 * var(--u)) calc(-20 * var(--u)); }
.tex-leg-top { background-position: calc(-4 * var(--u)) calc(-16 * var(--u)); }
.tex-leg-bottom { background-position: calc(-8 * var(--u)) calc(-16 * var(--u)); }

/* Outer skin layer (hat / jacket / sleeves / pants). Transparent areas let the base show through. */

.tex-head-outer-front { background-position: calc(-40 * var(--u)) calc(-8 * var(--u)); }
.tex-head-outer-back { background-position: calc(-56 * var(--u)) calc(-8 * var(--u)); }
.tex-head-outer-right { background-position: calc(-32 * var(--u)) calc(-8 * var(--u)); }
.tex-head-outer-left { background-position: calc(-48 * var(--u)) calc(-8 * var(--u)); }
.tex-head-outer-top { background-position: calc(-40 * var(--u)) calc(0 * var(--u)); }
.tex-head-outer-bottom { background-position: calc(-48 * var(--u)) calc(0 * var(--u)); }

.tex-body-outer-front { background-position: calc(-20 * var(--u)) calc(-36 * var(--u)); }
.tex-body-outer-back { background-position: calc(-32 * var(--u)) calc(-36 * var(--u)); }
.tex-body-outer-right { background-position: calc(-16 * var(--u)) calc(-36 * var(--u)); }
.tex-body-outer-left { background-position: calc(-28 * var(--u)) calc(-36 * var(--u)); }
.tex-body-outer-top { background-position: calc(-20 * var(--u)) calc(-32 * var(--u)); }
.tex-body-outer-bottom { background-position: calc(-28 * var(--u)) calc(-32 * var(--u)); }

.tex-arm-outer-front { background-position: calc(-44 * var(--u)) calc(-36 * var(--u)); }
.tex-arm-outer-back { background-position: calc(-52 * var(--u)) calc(-36 * var(--u)); }
.tex-arm-outer-right { background-position: calc(-40 * var(--u)) calc(-36 * var(--u)); }
.tex-arm-outer-left { background-position: calc(-48 * var(--u)) calc(-36 * var(--u)); }
.tex-arm-outer-top { background-position: calc(-44 * var(--u)) calc(-32 * var(--u)); }
.tex-arm-outer-bottom { background-position: calc(-48 * var(--u)) calc(-32 * var(--u)); }

.tex-leg-outer-front { background-position: calc(-4 * var(--u)) calc(-36 * var(--u)); }
.tex-leg-outer-back { background-position: calc(-12 * var(--u)) calc(-36 * var(--u)); }
.tex-leg-outer-right { background-position: calc(0 * var(--u)) calc(-36 * var(--u)); }
.tex-leg-outer-left { background-position: calc(-8 * var(--u)) calc(-36 * var(--u)); }
.tex-leg-outer-top { background-position: calc(-4 * var(--u)) calc(-32 * var(--u)); }
.tex-leg-outer-bottom { background-position: calc(-8 * var(--u)) calc(-32 * var(--u)); }

.skin-arm--left .tex-arm-outer-front { background-position: calc(-52 * var(--u)) calc(-52 * var(--u)); }
.skin-arm--left .tex-arm-outer-back { background-position: calc(-60 * var(--u)) calc(-52 * var(--u)); }
.skin-arm--left .tex-arm-outer-right { background-position: calc(-48 * var(--u)) calc(-52 * var(--u)); }
.skin-arm--left .tex-arm-outer-left { background-position: calc(-56 * var(--u)) calc(-52 * var(--u)); }
.skin-arm--left .tex-arm-outer-top { background-position: calc(-52 * var(--u)) calc(-48 * var(--u)); }
.skin-arm--left .tex-arm-outer-bottom { background-position: calc(-56 * var(--u)) calc(-48 * var(--u)); }

.skin-leg--left .tex-leg-outer-front { background-position: calc(-4 * var(--u)) calc(-52 * var(--u)); }
.skin-leg--left .tex-leg-outer-back { background-position: calc(-12 * var(--u)) calc(-52 * var(--u)); }
.skin-leg--left .tex-leg-outer-right { background-position: calc(0 * var(--u)) calc(-52 * var(--u)); }
.skin-leg--left .tex-leg-outer-left { background-position: calc(-8 * var(--u)) calc(-52 * var(--u)); }
.skin-leg--left .tex-leg-outer-top { background-position: calc(-4 * var(--u)) calc(-48 * var(--u)); }
.skin-leg--left .tex-leg-outer-bottom { background-position: calc(-8 * var(--u)) calc(-48 * var(--u)); }

.skin-arm--left .tex-arm-front { background-position: calc(-36 * var(--u)) calc(-52 * var(--u)); }
.skin-arm--left .tex-arm-back { background-position: calc(-44 * var(--u)) calc(-52 * var(--u)); }
.skin-arm--left .tex-arm-right { background-position: calc(-32 * var(--u)) calc(-52 * var(--u)); }
.skin-arm--left .tex-arm-left { background-position: calc(-40 * var(--u)) calc(-52 * var(--u)); }
.skin-arm--left .tex-arm-top { background-position: calc(-36 * var(--u)) calc(-48 * var(--u)); }
.skin-arm--left .tex-arm-bottom { background-position: calc(-40 * var(--u)) calc(-48 * var(--u)); }

.skin-leg--left .tex-leg-front { background-position: calc(-20 * var(--u)) calc(-52 * var(--u)); }
.skin-leg--left .tex-leg-back { background-position: calc(-28 * var(--u)) calc(-52 * var(--u)); }
.skin-leg--left .tex-leg-right { background-position: calc(-16 * var(--u)) calc(-52 * var(--u)); }
.skin-leg--left .tex-leg-left { background-position: calc(-24 * var(--u)) calc(-52 * var(--u)); }
.skin-leg--left .tex-leg-top { background-position: calc(-20 * var(--u)) calc(-48 * var(--u)); }
.skin-leg--left .tex-leg-bottom { background-position: calc(-24 * var(--u)) calc(-48 * var(--u)); }

@keyframes skinTurn {
  to { transform: rotateY(360deg); }
}

@keyframes skinBob {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, calc(-1 * var(--u)), 0); }
}

@keyframes skinArmRight {
  0%, 100% { transform: rotateX(-23deg); }
  50% { transform: rotateX(23deg); }
}

@keyframes skinArmLeft {
  0%, 100% { transform: rotateX(23deg); }
  50% { transform: rotateX(-23deg); }
}

@keyframes skinLegRight {
  0%, 100% { transform: rotateX(22deg); }
  50% { transform: rotateX(-22deg); }
}

@keyframes skinLegLeft {
  0%, 100% { transform: rotateX(-22deg); }
  50% { transform: rotateX(22deg); }
}

@media (max-width: 700px) {
  .skin-stage {
    --u: 7.8px;
  }
}

@media (max-width: 430px) {
  .skin-stage {
    --u: 7.4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skin-spinner {
    animation: none !important;
    transform: rotateY(24deg);
  }

  .skin-bob,
  .skin-arm,
  .skin-leg {
    animation: none !important;
  }

  .skin-arm--right,
  .skin-leg--left {
    transform: rotateX(9deg);
  }

  .skin-arm--left,
  .skin-leg--right {
    transform: rotateX(-9deg);
  }
}

.viewport-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 9, 6, 0.58) 0%, transparent 22%, transparent 62%, rgba(4, 9, 6, 0.86) 100%),
    linear-gradient(90deg, rgba(4, 9, 6, 0.26), transparent 18%, transparent 82%, rgba(4, 9, 6, 0.26));
  pointer-events: none;
}

.viewport-shade::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.28) 0,
    rgba(0, 0, 0, 0.28) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: multiply;
}

.viewport-corner {
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-color: rgba(203, 242, 209, 0.42);
  border-style: solid;
  pointer-events: none;
}

.viewport-corner--tl {
  top: 14px;
  left: 14px;
  border-width: 1px 0 0 1px;
}

.viewport-corner--tr {
  top: 14px;
  right: 14px;
  border-width: 1px 1px 0 0;
}

.viewport-corner--bl {
  bottom: 14px;
  left: 14px;
  border-width: 0 0 1px 1px;
}

.viewport-corner--br {
  right: 14px;
  bottom: 14px;
  border-width: 0 1px 1px 0;
}

.viewport-top {
  position: absolute;
  top: 25px;
  right: 27px;
  left: 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(220, 243, 223, 0.58);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.viewport-level {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-soft);
}

.viewport-level i {
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(231, 196, 112, 0.3);
}

.viewport-nameplate {
  position: absolute;
  bottom: 28px;
  left: 28px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
}

.nameplate-kicker {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.viewport-nameplate strong {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.1vw, 1.65rem);
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.2;
}

.nameplate-sub {
  color: rgba(218, 238, 220, 0.55);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.16em;
}

.viewport-coords {
  position: absolute;
  right: 28px;
  bottom: 31px;
  color: rgba(218, 238, 220, 0.5);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.06em;
}

.player-card-meta {
  display: grid;
  grid-template-columns: 0.9fr 0.9fr 1.2fr;
  gap: 12px;
  padding: 14px 6px 4px;
}

.player-card-meta div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.player-card-meta span {
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.player-card-meta strong {
  overflow: hidden;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Floating 3D voxel ----------------------------------------------------------- */

.voxel-cube {
  position: absolute;
  z-index: 4;
  top: -27px;
  right: -20px;
  width: 64px;
  height: 64px;
  transform-style: preserve-3d;
  animation: cubeSpin 22s linear infinite;
  pointer-events: none;
}

.voxel-face {
  position: absolute;
  width: 64px;
  height: 64px;
  backface-visibility: hidden;
}

.voxel-face--front {
  background:
    linear-gradient(180deg, #60b962 0, #60b962 12px, #6b4b2f 12px, #553a24 100%);
  transform: translateZ(32px);
}

.voxel-face--back {
  background:
    linear-gradient(180deg, #4e9e52 0, #4e9e52 12px, #5c3e26 12px, #49311e 100%);
  transform: rotateY(180deg) translateZ(32px);
}

.voxel-face--right {
  background:
    linear-gradient(180deg, #438b47 0, #438b47 12px, #4f3520 12px, #3d2919 100%);
  transform: rotateY(90deg) translateZ(32px);
}

.voxel-face--left {
  background:
    linear-gradient(180deg, #57a95b 0, #57a95b 12px, #5d4229 12px, #4b321f 100%);
  transform: rotateY(-90deg) translateZ(32px);
}

.voxel-face--top {
  background:
    radial-gradient(circle at 30% 30%, rgba(196, 255, 190, 0.3), transparent 45%),
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(74, 142, 77, 0.3) 14px 16px),
    repeating-linear-gradient(0deg, transparent 0 14px, rgba(74, 142, 77, 0.3) 14px 16px),
    #76d177;
  transform: rotateX(90deg) translateZ(32px);
}

.voxel-face--bottom {
  background: #382516;
  transform: rotateX(-90deg) translateZ(32px);
}

.float-chip {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid rgba(178, 224, 185, 0.18);
  border-radius: 4px;
  background: rgba(9, 18, 12, 0.86);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  animation: chipFloat 7s ease-in-out infinite;
}

.float-chip--quest {
  top: 78px;
  left: -48px;
}

.float-chip svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.3;
}

.float-chip span:not(.float-chip-icon) {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.float-chip small {
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.14em;
  line-height: 1.2;
}

.float-chip strong {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.float-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  background: rgba(120, 227, 137, 0.04);
}

.hero-footer-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 46px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-dim);
  font-size: 8px;
  letter-spacing: 0.15em;
}

.scroll-cue i {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 21px;
  border: 1px solid rgba(181, 219, 185, 0.25);
  border-radius: 8px;
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 2px;
  height: 4px;
  border-radius: 1px;
  background: var(--green);
  transform: translateX(-50%);
  animation: scrollDot 2.2s ease-in-out infinite;
}

.hero-footer-coords {
  color: var(--muted-dim);
  font-size: 8px;
  letter-spacing: 0.1em;
}

/* Ticker ---------------------------------------------------------------------- */

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0a120d;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 19px 15px;
}

.ticker-group span {
  color: rgba(200, 226, 203, 0.47);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
}

.ticker-group i {
  width: 6px;
  height: 6px;
  background: var(--green);
  opacity: 0.55;
  transform: rotate(45deg);
}

/* About ----------------------------------------------------------------------- */

.about {
  background:
    radial-gradient(ellipse 45% 40% at 8% 20%, rgba(35, 96, 57, 0.08), transparent 70%),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.009) 45%, transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(380px, 0.97fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: start;
}

.about-story > p {
  max-width: 590px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
}

.about-story > p + p {
  margin-top: 19px;
}

.about-story .about-dropcap {
  color: var(--text-soft);
  font-size: 19px;
  line-height: 1.85;
}

.about-dropcap::first-letter {
  color: var(--green);
}

.signature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  margin-top: 37px;
}

.signature-line {
  width: 38px;
  height: 1px;
  background: var(--green);
}

.signature > span:nth-child(2) {
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.11em;
}

.signature small {
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.trait-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.trait-list li {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}

.stats-panel {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background:
    linear-gradient(rgba(142, 200, 153, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 200, 153, 0.035) 1px, transparent 1px),
    linear-gradient(155deg, rgba(19, 36, 25, 0.9), rgba(9, 17, 12, 0.95));
  background-size: 34px 34px, 34px 34px, auto;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

.stats-panel::before,
.stats-panel::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid var(--green);
  pointer-events: none;
}

.stats-panel::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.stats-panel::after {
  right: -1px;
  bottom: -1px;
  border-top: 0;
  border-left: 0;
}

.stats-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.mono-label {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.level-badge {
  padding: 4px 8px;
  border: 1px solid rgba(231, 196, 112, 0.26);
  color: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.stats-bars {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 26px 0 24px;
}

.stat-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 30px;
  gap: 13px;
  align-items: center;
}

.stat-row-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.stat-row-label span {
  color: var(--text-soft);
  font-size: 12px;
}

.stat-row-label small {
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.05em;
}

.stat-bar {
  position: relative;
  height: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
}

.stat-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 21px,
    rgba(7, 16, 10, 0.7) 21px,
    rgba(7, 16, 10, 0.7) 23px
  );
  pointer-events: none;
}

.stat-bar i {
  display: block;
  width: var(--value);
  height: 100%;
  background: linear-gradient(90deg, #2d8d55, var(--green));
  box-shadow: 0 0 12px rgba(120, 227, 137, 0.25);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease);
}

.stats-panel.is-visible .stat-bar i {
  transform: scaleX(1);
}

.stats-panel.is-visible .stat-row:nth-child(2) .stat-bar i {
  transition-delay: 0.08s;
}

.stats-panel.is-visible .stat-row:nth-child(3) .stat-bar i {
  transition-delay: 0.16s;
}

.stats-panel.is-visible .stat-row:nth-child(4) .stat-bar i {
  transition-delay: 0.24s;
}

.stat-value {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: right;
}

.quest-line {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(120, 227, 137, 0.035);
}

.quest-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(120, 227, 137, 0.2);
  color: var(--green);
}

.quest-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  animation: questSpin 18s linear infinite;
}

.quest-line > div:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.quest-line small {
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.09em;
}

.quest-line strong {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quest-progress {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 10px;
}

.stats-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.stats-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.06em;
}

.tag-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.tag-dot--green {
  background: var(--green);
}

.tag-dot--gold {
  background: var(--gold);
}

/* Likes ----------------------------------------------------------------------- */

.likes {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 46% 62% at 82% 18%, rgba(57, 126, 78, 0.1), transparent 70%),
    linear-gradient(180deg, #0a130d 0%, #08110b 100%);
}

.likes-word {
  position: absolute;
  top: 26px;
  right: -1.5%;
  color: rgba(137, 219, 148, 0.035);
  font-family: var(--font-display);
  font-size: clamp(10rem, 23vw, 23rem);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 0.72;
  pointer-events: none;
  user-select: none;
}

.likes .container {
  position: relative;
  z-index: 1;
}

.likes-list {
  border-top: 1px solid var(--line);
}

.like-row {
  --accent: var(--green);
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(150px, 0.55fr) minmax(0, 1.3fr) auto 54px;
  gap: 30px;
  align-items: center;
  padding: 30px 10px;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s ease;
}

.like-row--survival {
  --accent: var(--gold);
}

.like-row--explore {
  --accent: var(--blue);
}

.like-row::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease);
}

.like-row:hover {
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 6%, transparent), transparent 64%);
}

.like-row:hover::before {
  transform: scaleY(1);
}

.like-row > * {
  position: relative;
  z-index: 1;
}

.like-index {
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.like-heading {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.like-en {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.like-heading h3 {
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.like-desc {
  max-width: 520px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.85;
}

.like-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.like-tags li {
  padding: 5px 8px;
  border: 1px solid var(--line);
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
  line-height: 1;
}

.like-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--accent);
  opacity: 0.6;
  transition: opacity 0.35s ease, transform 0.4s var(--ease);
}

.like-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.like-row:hover .like-icon {
  opacity: 1;
  transform: translateX(4px);
}

.likes-footnote {
  margin-top: 28px;
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-align: center;
}

.likes-footnote span {
  color: var(--green);
}

.likes-footnote span:nth-child(2) {
  color: var(--gold);
}

.likes-footnote span:nth-child(3) {
  color: var(--blue);
}

/* Skin profile --------------------------------------------------------------- */

.skin-avatar {
  display: inline-flex;
  flex: none;
  width: 18px;
  height: 18px;
  overflow: hidden;
  border: 1px solid rgba(120, 227, 137, 0.32);
  background: #030705;
}

.skin-avatar img,
.skin-profile-frame img {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.skin-profile {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 27px;
}

.skin-profile-frame {
  display: block;
  flex: none;
  width: 58px;
  height: 58px;
  padding: 4px;
  border: 1px solid rgba(120, 227, 137, 0.28);
  background: rgba(6, 14, 9, 0.8);
  box-shadow: 0 0 28px rgba(98, 218, 120, 0.09);
}

.skin-profile-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.skin-profile-copy small {
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.skin-profile-copy strong {
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

@media (max-width: 1180px) {
  .like-row {
    grid-template-columns: 34px minmax(140px, 0.5fr) minmax(0, 1.2fr) auto 44px;
    gap: 20px;
  }

  .like-heading h3 {
    font-size: 28px;
  }
}

@media (max-width: 980px) {
  .like-row {
    grid-template-columns: 30px minmax(0, 1fr) 48px;
    grid-template-rows: auto auto auto;
    gap: 7px 18px;
    padding: 26px 8px;
  }

  .like-index {
    grid-row: 1 / 4;
    align-self: start;
    padding-top: 3px;
  }

  .like-heading {
    grid-column: 2;
    grid-row: 1;
  }

  .like-desc {
    grid-column: 2;
    grid-row: 2;
    max-width: none;
  }

  .like-tags {
    grid-column: 2;
    grid-row: 3;
    margin-top: 3px;
  }

  .like-icon {
    grid-column: 3;
    grid-row: 1 / 4;
    align-self: center;
    justify-self: end;
  }
}

@media (max-width: 700px) {
  .likes-word {
    top: 38px;
    font-size: 12rem;
  }

  .like-row {
    grid-template-columns: 26px minmax(0, 1fr) 38px;
    gap: 7px 13px;
    padding: 23px 4px;
  }

  .like-heading h3 {
    font-size: 25px;
  }

  .like-desc {
    font-size: 12.5px;
    line-height: 1.8;
  }

  .like-icon {
    width: 36px;
    height: 36px;
  }

  .like-icon svg {
    width: 29px;
    height: 29px;
  }

  .likes-footnote {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .like-row {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .like-icon {
    display: none;
  }

  .like-tags li {
    padding: 4px 6px;
    font-size: 7px;
  }
}

/* Journey --------------------------------------------------------------------- */

.journey {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(rgba(145, 202, 155, 0.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 202, 155, 0.027) 1px, transparent 1px),
    #09110c;
  background-size: 52px 52px;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 47px;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), rgba(120, 227, 137, 0.45), var(--line));
}

.timeline-item {
  position: relative;
  padding-right: 28px;
}

.timeline-year {
  display: block;
  margin-bottom: 0;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  line-height: 1;
}

.timeline-node {
  position: absolute;
  top: 41px;
  left: 0;
  z-index: 2;
  width: 13px;
  height: 13px;
  border: 1px solid var(--green);
  background: #0a130d;
  box-shadow: 0 0 0 5px #09110c;
  transform: rotate(45deg);
}

.timeline-item--now .timeline-node {
  background: var(--green);
  box-shadow: 0 0 0 5px #09110c, 0 0 18px rgba(120, 227, 137, 0.55);
}

.timeline-content {
  padding-top: 63px;
  transition: transform 0.4s var(--ease);
}

.timeline-item:hover .timeline-content {
  transform: translateY(-3px);
}

.timeline-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 11px;
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.timeline-tag i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(120, 227, 137, 0.6);
}

.timeline-content h3 {
  margin-bottom: 9px;
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.timeline-content p {
  max-width: 360px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.8;
}

/* Contact --------------------------------------------------------------------- */

.contact {
  padding-top: 40px;
  padding-bottom: 112px;
}

.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  min-height: 420px;
  overflow: hidden;
  padding: 58px 60px;
  border: 1px solid rgba(177, 226, 184, 0.2);
  border-radius: 6px;
  background:
    radial-gradient(ellipse 60% 80% at 78% 48%, rgba(75, 172, 103, 0.14), transparent 68%),
    linear-gradient(145deg, #11241a 0%, #0a160e 60%, #07110b 100%);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.31);
}

.contact-card::before,
.contact-card::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(120, 227, 137, 0.55);
  border-style: solid;
  pointer-events: none;
}

.contact-card::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.contact-card::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}

.contact-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(148, 207, 158, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 207, 158, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, #000, transparent 82%);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 82%);
  pointer-events: none;
}

.contact-content {
  position: relative;
  z-index: 2;
}

.contact-content .section-index {
  margin-bottom: 21px;
}

.contact-title {
  max-width: 760px;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 4.8vw, 4.4rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.contact-lead {
  max-width: 570px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 31px;
}

.player-id {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--muted-dim);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.player-id strong {
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.07em;
}

.player-id i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(120, 227, 137, 0.75);
}

.contact-art {
  position: relative;
  z-index: 1;
  min-height: 280px;
  perspective: 800px;
}

.contact-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(142, 205, 153, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.contact-ring::after {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px dashed rgba(142, 205, 153, 0.08);
  border-radius: 50%;
}

.contact-ring--one {
  animation: orbitSpin 38s linear infinite;
}

.contact-ring--two {
  width: 210px;
  height: 210px;
  animation: orbitSpin 26s linear infinite reverse;
}

.contact-cube {
  --size: 150px;
  position: absolute;
  width: var(--size);
  height: var(--size);
  transform-style: preserve-3d;
  transform: rotateX(-24deg) rotateY(-34deg);
}

.contact-cube span {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border: 1px solid rgba(184, 237, 183, 0.1);
}

.contact-cube-top {
  background:
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(42, 99, 48, 0.35) 23px 25px),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(42, 99, 48, 0.35) 23px 25px),
    #6ac776;
  transform: rotateX(90deg) translateZ(calc(var(--size) / 2));
}

.contact-cube-left {
  background: #355f38;
  transform: rotateY(-90deg) translateZ(calc(var(--size) / 2));
}

.contact-cube-right {
  background: linear-gradient(180deg, #4d974f 0, #4d974f 18%, #4b3422 18%, #372517 100%);
  transform: translateZ(calc(var(--size) / 2));
}

.contact-cube--large {
  top: 50%;
  left: 51%;
  margin-top: -75px;
  margin-left: -75px;
  animation: contactFloat 7s ease-in-out infinite;
}

.contact-cube--small {
  --size: 50px;
  right: 7%;
  bottom: 12%;
  opacity: 0.8;
  animation: contactFloat 5s ease-in-out -2s infinite;
}

.contact-star {
  position: absolute;
  color: rgba(160, 225, 166, 0.36);
  font-family: var(--font-mono);
  font-size: 16px;
}

.contact-star--one {
  top: 10%;
  left: 14%;
}

.contact-star--two {
  right: 10%;
  bottom: 25%;
  font-size: 11px;
}

.contact-coords {
  position: absolute;
  right: 0;
  bottom: 0;
  color: rgba(177, 219, 183, 0.3);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

/* Footer ---------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: #060b08;
}

.footer-main {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 42px;
  padding-bottom: 42px;
}

.brand--footer {
  flex: none;
}

.footer-line {
  flex: 1;
  padding-left: 32px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.footer-nav {
  display: flex;
  gap: 22px;
}

.footer-nav a {
  color: var(--muted);
  font-size: 11px;
  transition: color 0.25s ease;
}

.footer-nav a:hover {
  color: var(--green);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-top: 17px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.06em;
}

.footer-made {
  color: rgba(142, 163, 146, 0.55);
}

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  transition: color 0.25s ease;
}

.back-top:hover {
  color: var(--green);
}

/* Toast ----------------------------------------------------------------------- */

.toast {
  position: fixed;
  z-index: 180;
  bottom: 28px;
  left: 50%;
  padding: 11px 17px;
  border: 1px solid rgba(120, 227, 137, 0.34);
  border-radius: 3px;
  background: rgba(8, 18, 11, 0.94);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(61, 169, 94, 0.1);
  color: var(--green-bright);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.03em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Reveal ---------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 404 ------------------------------------------------------------------------- */

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(ellipse 55% 55% at 50% 45%, rgba(44, 132, 73, 0.13), transparent 70%),
    var(--bg);
}

.error-card {
  width: min(560px, 100%);
  padding: 44px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 20, 13, 0.75);
  text-align: center;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
}

.error-card .brand-cube {
  width: 58px;
  height: 58px;
  margin: 0 auto 28px;
}

.error-code {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.error-card h1 {
  margin: 15px 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.error-card p {
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

/* Keyframes ------------------------------------------------------------------- */

@keyframes ping {
  0% {
    opacity: 0.8;
    transform: scale(0.5);
  }
  75%,
  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}

@keyframes orbitSpin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes scrollDot {
  0%,
  100% {
    opacity: 0.25;
    transform: translate(-50%, 0);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, 7px);
  }
}

@keyframes starTwinkle {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.95;
  }
}

@keyframes moonPulse {
  0%,
  100% {
    opacity: 0.88;
  }
  50% {
    opacity: 1;
  }
}

@keyframes playerBreathe {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes fireflyFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.65;
  }
  50% {
    transform: translate3d(-9px, -15px, 0);
    opacity: 1;
  }
}

@keyframes cloudDrift {
  from {
    transform: translateX(-9px);
  }
  to {
    transform: translateX(13px);
  }
}

@keyframes cubeSpin {
  from {
    transform: rotateX(-22deg) rotateY(0deg);
  }
  to {
    transform: rotateX(-22deg) rotateY(360deg);
  }
}

@keyframes chipFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes questSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes loadingBlock {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

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

@keyframes messageNew {
  0% {
    opacity: 0;
    transform: translateY(-7px);
    background: rgba(120, 227, 137, 0.07);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    background: transparent;
  }
}

@keyframes contactFloat {
  0%,
  100% {
    transform: translateY(0) rotateX(-24deg) rotateY(-34deg);
  }
  50% {
    transform: translateY(-14px) rotateX(-20deg) rotateY(-26deg);
  }
}

/* Responsive ------------------------------------------------------------------ */

@media (max-width: 1180px) {
  .container {
    width: min(var(--container), calc(100% - 48px));
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.86fr);
    gap: 42px;
  }

  .float-chip--quest {
    left: -24px;
  }

  .voxel-cube {
    right: 8px;
  }

  .craft-card {
    padding-right: 20px;
    padding-left: 20px;
  }

  .stat-row {
    grid-template-columns: 102px minmax(0, 1fr) 27px;
    gap: 10px;
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 72px;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 24px 24px;
    border-bottom: 1px solid var(--line-strong);
    background: #07100b;
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.62);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .nav-links a {
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .nav-links a span {
    order: 2;
    font-size: 9px;
  }

  .nav-links a::after {
    display: none;
  }

  body.nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .hero {
    padding-top: calc(var(--header-h) + 55px);
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 72px;
    min-height: 0;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-title {
    font-size: clamp(4rem, 10vw, 6.4rem);
  }

  .hero-art {
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-footer-line {
    margin-top: 55px;
  }

  .section {
    padding: 104px 0;
  }

  .section-head {
    margin-bottom: 54px;
  }

  .section-head-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-lead {
    justify-self: start;
    max-width: 540px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .stats-panel {
    max-width: 620px;
  }

  .craft-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .craft-card {
    min-height: 300px;
  }

  .craft-card:last-child {
    grid-column: 1 / -1;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
  }

  .project-card:last-child .project-cover {
    aspect-ratio: auto;
    min-height: 300px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .project-card:last-child .project-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 540px;
  }

  .timeline::before {
    top: 0;
    bottom: 34px;
    left: 5px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--green), rgba(120, 227, 137, 0.35), var(--line));
  }

  .timeline-item {
    padding: 0 0 34px 34px;
  }

  .timeline-year {
    margin-bottom: 9px;
  }

  .timeline-node {
    top: 3px;
    left: -1px;
    box-shadow: 0 0 0 4px #09110c;
  }

  .timeline-item--now .timeline-node {
    box-shadow: 0 0 0 4px #09110c, 0 0 18px rgba(120, 227, 137, 0.55);
  }

  .timeline-content {
    padding-top: 0;
  }

  .timeline-content p {
    max-width: 420px;
  }

  .guestbook-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .guestbook-intro {
    max-width: 620px;
  }

  .board {
    max-width: 720px;
  }

  .contact-card {
    grid-template-columns: 1fr;
    padding: 48px;
  }

  .contact-art {
    position: absolute;
    top: 50%;
    right: 20px;
    width: 310px;
    min-height: 310px;
    opacity: 0.55;
    transform: translateY(-50%);
  }

  .contact-content {
    max-width: 690px;
  }

  .contact-title,
  .contact-lead {
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(var(--container), calc(100% - 36px));
  }

  .section {
    padding: 88px 0;
  }

  .hero {
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 24px;
  }

  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 12px;
  }

  .hero-title {
    font-size: clamp(3.6rem, 16vw, 5rem);
    margin-top: 25px;
    margin-bottom: 24px;
  }

  .hero-kicker {
    font-size: 1.17rem;
  }

  .mobile-break {
    display: block;
  }

  .hero-desc {
    font-size: 13px;
  }

  .hero-actions {
    margin-bottom: 34px;
  }

  .hero-actions .btn {
    flex: 1;
  }

  .hero-stats {
    flex-wrap: wrap;
    row-gap: 22px;
  }

  .hero-stats > div {
    flex: 1 1 30%;
    padding-right: 14px;
  }

  .hero-stats > div + div {
    padding-left: 14px;
  }

  .hero-stats > div {
    flex-basis: 0;
  }

  .hero-art {
    max-width: 440px;
  }

  .hero-orbit,
  .voxel-cube {
    display: none;
  }

  .float-chip--quest {
    top: 57px;
    left: -8px;
  }

  .float-chip {
    padding: 8px 10px;
  }

  .player-card {
    padding: 9px;
  }

  .player-card-meta {
    grid-template-columns: 1fr 1fr;
  }

  .player-card-meta div:last-child {
    display: none;
  }

  .viewport-nameplate strong {
    font-size: 1.25rem;
  }

  .viewport-coords {
    display: none;
  }

  .hero-footer-line {
    margin-top: 40px;
  }

  .hero-footer-coords {
    display: none;
  }

  .section-title {
    font-size: clamp(2.5rem, 10vw, 3.4rem);
  }

  .section-index {
    margin-bottom: 20px;
  }

  .about-story .about-dropcap {
    font-size: 17px;
  }

  .about-story > p {
    font-size: 14px;
  }

  .stats-panel {
    padding: 21px;
  }

  .stat-row {
    grid-template-columns: 90px minmax(0, 1fr) 25px;
  }

  .stat-row-label small {
    display: none;
  }

  .quest-line strong {
    white-space: normal;
  }

  .craft-grid {
    grid-template-columns: 1fr;
  }

  .craft-card,
  .craft-card:last-child {
    grid-column: auto;
    min-height: 0;
    padding: 24px;
  }

  .craft-icon {
    margin-bottom: 25px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card:last-child {
    display: block;
  }

  .project-card:last-child .project-cover {
    aspect-ratio: 16 / 10;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-cover {
    aspect-ratio: 16 / 10;
  }

  .project-body {
    padding: 21px 19px;
  }

  .timeline-content p {
    font-size: 12px;
  }

  .guestbook-intro .section-lead {
    margin-bottom: 28px;
  }

  .form-actions {
    align-items: flex-start;
  }

  .form-note {
    flex-basis: 100%;
    max-width: none;
  }

  .board {
    padding: 18px;
  }

  .guestbook-list {
    max-height: 410px;
  }

  .guest-message {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
  }

  .guest-avatar {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .guest-message-date {
    width: 100%;
    margin-left: 0;
  }

  .contact {
    padding-top: 24px;
    padding-bottom: 78px;
  }

  .contact-card {
    padding: 35px 24px;
    min-height: 0;
  }

  .contact-art {
    display: none;
  }

  .contact-title {
    font-size: clamp(2.4rem, 9.8vw, 3.1rem);
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-actions .btn {
    width: 100%;
  }

  .footer-main {
    flex-wrap: wrap;
    gap: 24px;
    padding-top: 34px;
    padding-bottom: 30px;
  }

  .footer-line {
    order: 3;
    flex-basis: 100%;
    padding-top: 20px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .footer-nav {
    margin-left: auto;
  }

  .footer-bottom {
    flex-wrap: wrap;
    gap: 10px 20px;
    font-size: 7px;
  }

  .footer-made {
    order: 3;
    flex-basis: 100%;
  }

  .error-card {
    padding: 34px 24px;
  }
}

@media (max-width: 430px) {
  .container {
    width: calc(100% - 28px);
  }

  .hero-title {
    font-size: clamp(3.1rem, 15.5vw, 4rem);
  }

  .eyebrow {
    gap: 8px;
    font-size: 8px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .float-chip--quest {
    display: none;
  }

  .player-card-bar {
    height: 27px;
  }

  .viewport-top {
    top: 21px;
    right: 22px;
    left: 22px;
  }

  .viewport-nameplate {
    bottom: 22px;
    left: 22px;
  }

  .section-title {
    font-size: clamp(2.25rem, 10.5vw, 3rem);
  }

  .stat-row {
    grid-template-columns: 78px minmax(0, 1fr) 23px;
  }

  .stats-foot {
    gap: 10px;
  }

  .project-body {
    padding: 19px 17px;
  }

  .contact-card {
    padding: 30px 19px;
  }

  .contact-actions {
    gap: 9px;
  }

  .footer-nav {
    gap: 15px;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .stat-bar i {
    transform: scaleX(1);
  }

  .cursor-glow {
    display: none;
  }
}

@media (hover: none) {
  .cursor-glow {
    display: none;
  }

  .player-card {
    transform: none;
  }
}

/* ==========================================================================
   Opening sequence
   All entrance effects use transform + opacity only, then the layer is removed
   from the DOM so none of the intro work continues in the background.
   ========================================================================== */

html {
  scrollbar-gutter: stable;
}

body.intro-active {
  overflow: hidden;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  contain: layout paint style;
  background:
    radial-gradient(ellipse 58% 48% at 50% 44%, rgba(61, 146, 91, 0.17), transparent 68%),
    linear-gradient(180deg, #050a07 0%, #08110b 52%, #050a07 100%);
  transform: translate3d(0, 0, 0);
  transition: transform 0.95s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

.intro:focus,
.intro:focus-visible {
  outline: none;
}

.intro.is-leaving {
  transform: translate3d(0, -100%, 0);
  pointer-events: none;
}

.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.16;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    rgba(0, 0, 0, 0.34) 3px,
    rgba(0, 0, 0, 0.34) 4px
  );
  pointer-events: none;
}

.intro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 10, 7, 0.7), transparent 20%, transparent 80%, rgba(5, 10, 7, 0.7)),
    radial-gradient(ellipse at center, transparent 38%, rgba(3, 7, 4, 0.72) 100%);
  pointer-events: none;
}

.intro-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.intro-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(145, 209, 155, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 209, 155, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 72% 66% at 50% 48%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 72% 66% at 50% 48%, #000 10%, transparent 78%);
}

.intro-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.intro-orb--one {
  top: -22vw;
  left: -15vw;
  width: 58vw;
  height: 58vw;
  background: radial-gradient(circle, rgba(49, 145, 83, 0.18), transparent 66%);
}

.intro-orb--two {
  right: -17vw;
  bottom: -26vw;
  width: 64vw;
  height: 64vw;
  background: radial-gradient(circle, rgba(126, 157, 71, 0.1), transparent 66%);
}

.intro-dust {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  background: var(--green);
  opacity: 0;
  box-shadow: 0 0 8px rgba(120, 227, 137, 0.5);
  animation: introDust var(--t) var(--d) ease-out both;
}

.intro-dust:nth-of-type(odd) {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(231, 196, 112, 0.42);
}

.intro-block {
  position: absolute;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(164, 234, 171, 0.22);
  background:
    linear-gradient(180deg, #69c876 0, #69c876 15px, #5a3d27 15px, #3e2a1b 100%);
  opacity: 0.34;
  animation: introBlockFloat 7s ease-in-out infinite;
}

.intro-block::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 15px;
  background:
    repeating-linear-gradient(90deg, transparent 0 12px, rgba(36, 90, 43, 0.3) 12px 14px),
    #7ce08a;
}

.intro-block--one {
  top: 23%;
  left: 12%;
  transform: rotate(-13deg);
}

.intro-block--two {
  right: 10%;
  bottom: 19%;
  width: 28px;
  height: 28px;
  animation-delay: -3.2s;
  transform: rotate(9deg);
}

.intro-block--two::before {
  height: 8px;
  background:
    repeating-linear-gradient(90deg, transparent 0 7px, rgba(36, 90, 43, 0.3) 7px 8px),
    #7ce08a;
}

.intro-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100vw - 48px));
  padding: 10px 0 0;
  text-align: center;
}

.intro-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  line-height: 1.5;
  opacity: 0;
  animation: introSoftIn 0.55s 0.12s ease both;
}

.intro-status-muted {
  color: var(--muted-dim);
}

.intro-signal {
  position: relative;
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(120, 227, 137, 0.8);
}

.intro-signal::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(120, 227, 137, 0.35);
  border-radius: 50%;
  animation: ping 2.2s ease-out infinite;
}

.intro-name {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
  margin: 26px 0 20px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 8.4vw, 7.4rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.92;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
  perspective: 900px;
}

.intro-letter {
  display: inline-block;
  opacity: 0;
  transform-origin: 50% 70%;
  backface-visibility: hidden;
  text-shadow: 0 0 34px rgba(120, 227, 137, 0.14);
  animation-duration: 0.9s;
  animation-delay: calc(160ms + var(--i) * 62ms);
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.intro-letter:nth-child(10) {
  color: var(--gold);
  text-shadow: 0 0 30px rgba(231, 196, 112, 0.35);
}

.intro-letter:nth-child(n + 11) {
  color: var(--green);
  text-shadow: 0 0 34px rgba(120, 227, 137, 0.38);
}

.intro-letter--1 { animation-name: introCharPop; }
.intro-letter--2 { animation-name: introCharFall; }
.intro-letter--3 { animation-name: introCharFlipY; }
.intro-letter--4 { animation-name: introCharUnfold; }
.intro-letter--5 { animation-name: introCharSwing; }
.intro-letter--6 { animation-name: introCharRise; }
.intro-letter--7 { animation-name: introCharSpin; }
.intro-letter--8 { animation-name: introCharSlide; }
.intro-letter--9 { animation-name: introCharTilt; }
.intro-letter--10 { animation-name: introCharGrowX; transform-origin: 50% 82%; }
.intro-letter--11 { animation-name: introCharZoom; }
.intro-letter--12 { animation-name: introCharCorner; }
.intro-letter--13 { animation-name: introCharFlipX; }
.intro-letter--14 { animation-name: introCharFinale; }

.intro-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0;
  animation: introSoftUp 0.6s 1.55s ease both;
}

.intro-tagline-cn {
  color: var(--text-soft);
}

.intro-tagline-dot {
  color: var(--green);
}

.intro-tagline-en {
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.intro-progress {
  width: min(340px, 56vw);
  height: 2px;
  margin: 23px auto 0;
  overflow: hidden;
  background: rgba(181, 219, 185, 0.12);
  opacity: 0;
  animation: introSoftIn 0.4s 1.15s ease both;
}

.intro-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--green-deep), var(--green), var(--gold));
  box-shadow: 0 0 12px rgba(120, 227, 137, 0.4);
  transform: scaleX(0);
  transform-origin: left;
  animation: introLoad 1.7s 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.intro-skip {
  position: absolute;
  right: 26px;
  bottom: 24px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(7, 16, 10, 0.52);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  cursor: pointer;
  opacity: 0;
  animation: introSkipIn 0.5s 1.45s ease both;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.intro-skip:hover {
  border-color: rgba(120, 227, 137, 0.48);
  background: rgba(120, 227, 137, 0.07);
  color: var(--green-bright);
}

.intro-skip kbd {
  padding: 2px 4px;
  border: 1px solid var(--line);
  color: var(--muted-dim);
  font-family: var(--font-mono);
  font-size: 7px;
  line-height: 1;
}

.intro-corner {
  position: absolute;
  z-index: 3;
  width: 18px;
  height: 18px;
  border-color: rgba(120, 227, 137, 0.45);
  border-style: solid;
  pointer-events: none;
}

.intro-corner--tl { top: 22px; left: 22px; border-width: 1px 0 0 1px; }
.intro-corner--tr { top: 22px; right: 22px; border-width: 1px 1px 0 0; }
.intro-corner--bl { bottom: 22px; left: 22px; border-width: 0 0 1px 1px; }
.intro-corner--br { right: 22px; bottom: 22px; border-width: 0 1px 1px 0; }

/* Intro keyframes: every character gets its own motion language. */

@keyframes introCharPop {
  0% { opacity: 0; transform: scale(0.25) rotate(-18deg); }
  58% { opacity: 1; transform: scale(1.16) rotate(3deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes introCharFall {
  0% { opacity: 0; transform: translate3d(-42px, -112px, 0) rotate(-16deg) scale(0.7); }
  62% { opacity: 1; transform: translate3d(7px, 8px, 0) rotate(4deg) scale(1.04); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
}

@keyframes introCharFlipY {
  0% { opacity: 0; transform: perspective(600px) rotateY(96deg) scale(0.8); }
  68% { opacity: 1; transform: perspective(600px) rotateY(-8deg) scale(1.02); }
  100% { opacity: 1; transform: perspective(600px) rotateY(0deg) scale(1); }
}

@keyframes introCharUnfold {
  0% { opacity: 0; transform: scaleY(0.05) scaleX(1.5); }
  52% { opacity: 1; transform: scaleY(1.2) scaleX(0.94); }
  100% { opacity: 1; transform: scaleY(1) scaleX(1); }
}

@keyframes introCharSwing {
  0% { opacity: 0; transform: translate3d(-90px, 42px, 0) rotate(-34deg); }
  65% { opacity: 1; transform: translate3d(6px, -4px, 0) rotate(6deg); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes introCharRise {
  0% { opacity: 0; transform: translate3d(0, 104px, 0) scale(0.7); }
  66% { opacity: 1; transform: translate3d(0, -6px, 0) scale(1.04); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes introCharSpin {
  0% { opacity: 0; transform: rotate(200deg) scale(0.1); }
  72% { opacity: 1; transform: rotate(-8deg) scale(1.08); }
  100% { opacity: 1; transform: rotate(0deg) scale(1); }
}

@keyframes introCharSlide {
  0% { opacity: 0; transform: translate3d(110px, -22px, 0) skewX(-24deg) scale(0.85); }
  64% { opacity: 1; transform: translate3d(-5px, 2px, 0) skewX(3deg) scale(1.03); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) skewX(0deg) scale(1); }
}

@keyframes introCharTilt {
  0% { opacity: 0; transform: translate3d(20px, -92px, 0) rotate(24deg); }
  62% { opacity: 1; transform: translate3d(-3px, 5px, 0) rotate(-5deg); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes introCharGrowX {
  0% { opacity: 0; transform: scaleX(0.05) translateY(-8px); }
  58% { opacity: 1; transform: scaleX(1.45) translateY(0); }
  100% { opacity: 1; transform: scaleX(1) translateY(0); }
}

@keyframes introCharZoom {
  0% { opacity: 0; transform: scale(2.2) rotate(12deg); }
  64% { opacity: 1; transform: scale(0.94) rotate(-3deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes introCharCorner {
  0% { opacity: 0; transform: translate3d(-62px, 82px, 0) rotate(-26deg); }
  66% { opacity: 1; transform: translate3d(4px, -4px, 0) rotate(4deg); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes introCharFlipX {
  0% { opacity: 0; transform: perspective(600px) rotateX(-100deg) translateY(-20px); }
  68% { opacity: 1; transform: perspective(600px) rotateX(8deg) translateY(0); }
  100% { opacity: 1; transform: perspective(600px) rotateX(0deg) translateY(0); }
}

@keyframes introCharFinale {
  0% { opacity: 0; transform: scale(0.1) rotate(-180deg); }
  58% { opacity: 1; transform: scale(1.2) rotate(8deg); }
  80% { opacity: 1; transform: scale(0.97) rotate(-2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes introSoftIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes introSkipIn {
  from { opacity: 0; visibility: hidden; }
  to { opacity: 1; visibility: visible; }
}

@keyframes introSoftUp {
  from { opacity: 0; transform: translate3d(0, 9px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes introLoad {
  to { transform: scaleX(1); }
}

@keyframes introDust {
  0% { opacity: 0; transform: translate3d(0, 24px, 0); }
  35% { opacity: 0.75; }
  100% { opacity: 0.12; transform: translate3d(0, -38px, 0); }
}

@keyframes introBlockFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

/* Pause expensive decorative animations when they are not visible. */

html.is-page-hidden *,
html.is-page-hidden *::before,
html.is-page-hidden *::after {
  animation-play-state: paused !important;
}

.hero.is-offscreen *,
.hero.is-offscreen *::before,
.hero.is-offscreen *::after {
  animation-play-state: paused !important;
}

.ticker.is-offscreen .ticker-track {
  animation-play-state: paused;
}

@media (max-width: 700px) {
  .intro-inner {
    width: calc(100vw - 32px);
  }

  .intro-name {
    margin: 24px 0 18px;
    font-size: clamp(2rem, 11.2vw, 4.3rem);
    letter-spacing: -0.065em;
  }

  .intro-status {
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  .intro-tagline {
    gap: 7px;
    font-size: 10px;
  }

  .intro-tagline-en {
    font-size: 7px;
  }

  .intro-skip {
    right: 16px;
    bottom: 16px;
  }

  .intro-corner--tl,
  .intro-corner--tr {
    top: 16px;
  }

  .intro-corner--bl,
  .intro-corner--br {
    bottom: 16px;
  }

  .intro-corner--tl,
  .intro-corner--bl {
    left: 16px;
  }

  .intro-corner--tr,
  .intro-corner--br {
    right: 16px;
  }

  .intro-block--one {
    top: 18%;
    left: 6%;
    width: 38px;
    height: 38px;
  }

  .intro-block--two {
    right: 7%;
    bottom: 13%;
  }
}

@media (max-width: 430px) {
  .intro-name {
    font-size: clamp(1.9rem, 11vw, 2.9rem);
  }

  .intro-status-muted {
    display: none;
  }

  .intro-tagline-en {
    display: none;
  }

  .intro-progress {
    width: min(260px, 64vw);
  }
}

@media (max-height: 520px) {
  .intro-name {
    margin: 14px 0 12px;
    font-size: clamp(1.8rem, 6.5vw, 3.2rem);
  }

  .intro-tagline,
  .intro-progress {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro {
    transition-duration: 0.2s;
  }

  .intro-letter,
  .intro-status,
  .intro-tagline,
  .intro-progress,
  .intro-progress span,
  .intro-skip {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .intro-dust,
  .intro-block {
    animation: none !important;
    display: none;
  }

  .intro-progress span {
    transform: scaleX(1);
  }
}

body.intro-active .hero *,
body.intro-active .hero *::before,
body.intro-active .hero *::after {
  animation-play-state: paused !important;
}
