/* =========================================================
   Yinuo Fan Site — stylesheet
   Primary: AG red + dark gray + white, with gold accents
   ========================================================= */

/* ---------- Design variables ---------- */
:root {
  --red: #d81e2c;
  --red-hover: #ff3b4e;
  --red-soft: rgba(216, 30, 44, 0.12);
  --gold: #e9b949;
  --gold-soft: rgba(233, 185, 73, 0.14);
  --leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d81e2c' d='M12 2L13.8 7.6L19 5L16.3 10L22 11.5L17 14.5L20 19.5L14.5 18.5L13 24L11 24L9.5 18.5L4 19.5L7 14.5L2 11.5L7.7 10L5 5L10.2 7.6Z'/%3E%3C/svg%3E");

  --bg: #0f1013;
  --bg-2: #16171c;
  --card: #1b1c22;
  --line: #2a2b33;
  --text: #f3f3f5;
  --text-2: #c9cad4;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.22);

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1120px;
  --nav-h: 68px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

/* Light mode */
html[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #ffffff;
  --card: #ffffff;
  --line: #e8e9ee;
  --text: #15161a;
  --text-2: #4b4d57;
  --shadow: 0 18px 40px rgba(23, 24, 29, 0.08);
  --shadow-sm: 0 8px 20px rgba(23, 24, 29, 0.06);
  --red-soft: rgba(216, 30, 44, 0.09);
  --gold-soft: rgba(233, 185, 73, 0.16);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  letter-spacing: 0.01em;
  transition: background 0.35s ease, color 0.35s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--red); color: #fff; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--red);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
}
.skip-link:focus { left: 8px; }

.wrap {
  width: min(100% - 48px, var(--maxw));
  margin-inline: auto;
}

/* ---------- In-page view switching ---------- */
.view { display: none; }
.view.is-active { display: block; }

/* ---------- Directory ---------- */
.hub {
  padding: 10px 24px 90px;
}
.hub-head {
  margin: 0 0 24px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--text-2);
}
.hub-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.hub-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 20px 18px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  text-align: left;
  color: var(--text);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.hub-card:hover {
  transform: translateY(-3px);
  border-color: var(--red);
  box-shadow: var(--shadow-sm);
}
.hub-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
  transition: transform 0.5s ease, opacity 0.3s ease;
}
.hub-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 16, 19, 0.4) 0%, rgba(8, 9, 12, 0.94) 100%);
  pointer-events: none;
}
.hub-card:hover .hub-bg { transform: scale(1.06); opacity: 0.4; }
.hub-num,
.hub-title,
.hub-desc,
.hub-arrow { position: relative; z-index: 1; }
.hub-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--red);
}
.hub-title {
  font-size: 17px;
  font-weight: 900;
}
.hub-desc {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.hub-arrow {
  position: absolute;
  right: 16px;
  bottom: 14px;
  font-size: 16px;
  color: var(--text-2);
  transition: transform 0.2s, color 0.2s;
}
.hub-card:hover .hub-arrow {
  transform: translateX(3px);
  color: var(--red);
}

.back-hub {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 45;
  display: none;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.back-hub.show { display: block; }
.back-hub:hover { border-color: var(--red); color: var(--red); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.nav-inner {
  width: min(100% - 48px, var(--maxw));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--red), #8f0f1c);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 6px 16px rgba(216, 30, 44, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-size: 16px;
}
.brand-text em {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.32em;
  color: var(--text-2);
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--red-soft);
}
.nav-links a.active { color: var(--red); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.theme-btn,
.menu-btn {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s;
}
.theme-btn:hover,
.menu-btn:hover { transform: translateY(-1px); border-color: var(--red); }

.theme-btn {
  width: 38px;
  height: 38px;
  font-size: 16px;
  line-height: 1;
}

.menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  padding: 9px;
  flex-direction: column;
  justify-content: space-between;
}
.menu-btn span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- Home banner ---------- */
.hero {
  position: relative;
  min-height: 58svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 28px) 24px 40px;
  text-align: left;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 50% -8%, rgba(216, 30, 44, 0.28), transparent 62%),
    radial-gradient(700px 420px at 88% 108%, rgba(233, 185, 73, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.4;
  filter: saturate(1.06) contrast(1.02) blur(1.4px);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 640px at 50% 34%, rgba(15, 16, 19, 0.18) 0%, rgba(15, 16, 19, 0.7) 66%, var(--bg) 100%),
    linear-gradient(180deg, rgba(15, 16, 19, 0.86) 0%, rgba(15, 16, 19, 0.5) 44%, var(--bg) 100%);
}

.beam {
  position: absolute;
  top: -10%;
  width: 160px;
  height: 130%;
  background: linear-gradient(180deg, transparent, rgba(216, 30, 44, 0.22), transparent);
  filter: blur(36px);
  transform: rotate(18deg);
  opacity: 0.7;
}
.beam-1 { left: 12%; }
.beam-2 { left: 46%; width: 90px; background: linear-gradient(180deg, transparent, rgba(233, 185, 73, 0.16), transparent); }
.beam-3 { right: 10%; transform: rotate(-18deg); }

.watermark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(180px, 34vw, 420px);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.03);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 1120px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-copy { max-width: 560px; }
.hero-media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-kicker {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.42em;
  font-weight: 700;
  color: var(--red-hover);
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.hero-title .grad {
  background: linear-gradient(100deg, var(--red-hover), var(--gold) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 22px 0 0;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
  color: var(--text);
}

.hero-desc {
  margin: 10px 0 0;
  max-width: 540px;
  color: var(--text-2);
  font-size: 15px;
}

.hero-tags {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 22px;
}
.hero-tags span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 70%, transparent);
  padding: 5px 12px;
  border-radius: 999px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 14px 30px rgba(216, 30, 44, 0.32);
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.hero-cta:hover {
  transform: translateY(-2px);
  background: var(--red-hover);
  box-shadow: 0 18px 38px rgba(216, 30, 44, 0.42);
}
.hero-cta i { font-style: normal; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(3px); } }

.hero-note {
  margin: 26px 0 0;
  font-size: 12px;
  color: var(--text-2);
  opacity: 0.7;
}

/* ---------- Common section ---------- */
.section {
  padding: 96px 0;
  scroll-margin-top: var(--nav-h);
}
.section-alt { background: var(--bg-2); }

.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.34em;
  color: var(--red);
  margin-bottom: 12px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: 0.02em;
}
.section-head p {
  margin: 10px 0 0;
  color: var(--text-2);
  font-size: 15px;
}

.sample-note {
  margin: 22px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-2);
  opacity: 0.8;
}
.sample-note::before { content: "※ "; color: var(--gold); }

/* ---------- Growth story ---------- */
.story {
  max-width: 840px;
  margin: 0 auto;
}
.story p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.95;
  color: var(--text);
}
.story h3 {
  margin: 40px 0 14px;
  font-size: 19px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.story h3:first-child { margin-top: 0; }
.story blockquote {
  margin: 22px 0;
  padding: 16px 0 16px 20px;
  border-left: 3px solid var(--gold);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.52fr) minmax(0, 1.48fr);
  gap: 32px;
  align-items: start;
}

.about-photo {
  margin: 0;
  max-width: 220px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--card);
}
.about-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.about-photo:hover img { transform: scale(1.03); }
.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.58));
  pointer-events: none;
}
.about-photo figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 1;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.about-photo figcaption::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: middle;
}

.about-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.profile-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
  background:
    radial-gradient(120px 80px at 30% 20%, rgba(255, 255, 255, 0.28), transparent 60%),
    linear-gradient(135deg, var(--red), #6d0a14);
  box-shadow: 0 12px 28px rgba(216, 30, 44, 0.32);
}

.profile-card h3 {
  margin: 0 0 20px;
  text-align: center;
  font-size: 24px;
  font-weight: 900;
}
.profile-card h3 .id {
  font-size: 13px;
  color: var(--red);
  font-weight: 700;
  margin-left: 6px;
}

.profile-list { margin: 0; }
.profile-list > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px dashed var(--line);
  font-size: 14px;
}
.profile-list > div:last-child { border-bottom: 1px dashed var(--line); }
.profile-list dt { color: var(--text-2); flex: none; }
.profile-list dd { margin: 0; text-align: right; font-weight: 600; }

.about-text p { margin: 0 0 16px; color: var(--text); font-size: 16px; }
.about-text p:last-child { margin-bottom: 0; }

.about-text blockquote {
  margin: 22px 0 10px;
  padding: 14px 0 14px 18px;
  border-left: 3px solid var(--gold);
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 34px;
  max-width: 820px;
  margin: 0 auto;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--red), var(--gold), var(--line));
  border-radius: 2px;
}

.tl-item {
  position: relative;
  padding: 0 0 26px 6px;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
}

.tl-year {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--red);
  margin-bottom: 6px;
}

.tl-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s;
}
.tl-card:hover { transform: translateY(-2px); border-color: var(--red); }
.tl-card h4 { margin: 0 0 6px; font-size: 17px; font-weight: 800; }
.tl-card p { margin: 0; color: var(--text-2); font-size: 14px; }

/* Timeline cards with photos */
.tl-card-photo {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
}
.tl-photo {
  width: 96px;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
}
.tl-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.tl-card-photo:hover .tl-photo img { transform: scale(1.05); }

/* Career timeline (clickable) */
.tl-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}
.tl-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.tl-tab:hover { border-color: var(--red); color: var(--text); }
.tl-tab.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(216, 30, 44, 0.35);
}

.tl-panels {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}
.tl-panel { display: none; }
.tl-panel.is-active { display: block; animation: tlFade 0.35s ease; }
@keyframes tlFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.tl-panel-inner {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
}
.tl-panel-inner-photo {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 24px;
  align-items: start;
}
.tl-panel-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tl-panel-year {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(100deg, var(--red-hover), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tl-panel-head h3 { margin: 0; font-size: 22px; font-weight: 900; }
.tl-panel-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  background: var(--red-soft);
  padding: 3px 10px;
  border-radius: 999px;
}
.tl-panel-inner p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
}
.tl-panel-inner p:last-of-type { margin-bottom: 0; }
.tl-panel-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.tl-panel-facts span {
  font-size: 12px;
  color: var(--text-2);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 8px;
}
.tl-panel-facts b { color: var(--red); font-weight: 800; }
.tl-panel-photo {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4;
}
.tl-panel-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Career timeline (accordion) */
.tl-accordion {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.tl-acc-item { border-bottom: 1px solid var(--line); }
.tl-acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 8px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  transition: background 0.2s;
}
.tl-acc-head:hover { background: var(--card); }
.tl-acc-year {
  width: 56px;
  flex: none;
  font-size: 20px;
  font-weight: 900;
  color: var(--red);
}
.tl-acc-title {
  flex: 1;
  font-size: 16px;
  font-weight: 800;
}
.tl-acc-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 999px;
}
.tl-acc-chevron {
  width: 24px;
  height: 24px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 14px;
  line-height: 1;
  transition: transform 0.3s, background 0.3s, border-color 0.3s, color 0.3s;
}
.tl-acc-item.is-open .tl-acc-chevron {
  transform: rotate(45deg);
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.tl-acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.tl-acc-item.is-open .tl-acc-body { grid-template-rows: 1fr; }
.tl-acc-inner { overflow: hidden; }
.tl-acc-inner p {
  margin: 0 0 12px;
  padding: 0 8px 0 70px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-2);
}
.tl-acc-inner p:first-child { padding-top: 2px; }
.tl-acc-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 8px 22px 70px;
}
.tl-acc-facts span {
  font-size: 12px;
  color: var(--text-2);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 8px;
}
.tl-acc-facts b { color: var(--red); font-weight: 800; }

/* ---------- Highlight cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.h-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
}
.h-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: var(--shadow);
}

.h-media {
  height: 160px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.h-media > span {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.h-media::after {
  content: "YINUO";
  position: absolute;
  right: 14px;
  bottom: 2px;
  font-size: 54px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.1);
}

/* Video cards */
.h-media-video { height: 140px; }
.h-media-video::after { content: none; }
.h-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 0.5s ease, opacity 0.3s ease;
}
.h-card:hover .h-cover { transform: scale(1.04); opacity: 0.95; }
.play-btn {
  position: relative;
  z-index: 2;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: rgba(216, 30, 44, 0.92);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 12px 30px rgba(216, 30, 44, 0.5);
  transition: transform 0.2s, background 0.2s;
}
.play-btn:hover { transform: scale(1.1); background: var(--red-hover); }
.play-btn span { margin-left: 3px; }
.video-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* Video modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(8, 9, 12, 0.9);
  backdrop-filter: blur(8px);
}
.video-modal.open { display: grid; }
.vm-close {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.vm-inner {
  width: min(92vw, 420px);
  max-height: 86vh;
}
.vm-inner video {
  width: 100%;
  max-height: 86vh;
  display: block;
  border-radius: var(--radius);
  background: #000;
  box-shadow: var(--shadow);
}

.vm-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.vm-link:hover { color: var(--red); }

.h-body { padding: 20px; flex: 1; }
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  background: var(--red-soft);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.h-body h4 { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.h-body p { margin: 0; color: var(--text-2); font-size: 14px; }

/* Placeholder gradient */
.grad-1 { background: linear-gradient(135deg, #3a0d13, #8f1a26 55%, #d81e2c); }
.grad-2 { background: linear-gradient(135deg, #1d1f2a, #4a2f10 60%, #e9b949); }
.grad-3 { background: linear-gradient(135deg, #101216, #4a1018 55%, #ff3b4e); }
.grad-4 { background: linear-gradient(135deg, #14161c, #3d2a0e 55%, #e9b949); }

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, border-color 0.2s;
}
.stat-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.stat-card b {
  display: block;
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(100deg, var(--red-hover), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-card b em { font-style: normal; font-size: 0.55em; }
.stat-card span { display: block; margin-top: 10px; font-size: 13px; color: var(--text-2); }

.stats-detail {
  margin: 26px auto 0;
  max-width: 720px;
  border-top: 1px solid var(--line);
}
.stats-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.stats-row span { color: var(--text-2); }
.stats-row b { color: var(--text); font-weight: 800; }

.stats-table-wrap {
  margin: 30px auto 0;
  max-width: 1040px;
  overflow-x: auto;
}
.stats-subtitle {
  max-width: 1040px;
  margin: 34px auto 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-2);
}
.stats-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 12px;
}
.stats-table th,
.stats-table td {
  padding: 9px 8px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.stats-table th {
  color: var(--text-2);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.stats-table td:first-child { color: var(--red); font-weight: 700; }
.stats-table tbody tr:hover td { background: var(--card); }

.honors {
  margin: 34px auto 0;
  max-width: 760px;
}
.honors h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--red);
}
.honors ul { list-style: none; margin: 0; padding: 0; }
.honors li {
  position: relative;
  padding: 9px 0 9px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-2);
}
.honors li::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 9px;
  font-size: 10px;
  color: var(--gold);
}

.hero-pool {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.pool-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--text-2);
  margin-right: 6px;
}
.chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.hero-detail {
  max-width: 760px;
  margin: 26px auto 0;
}
.hero-detail-panel {
  display: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}
.hero-detail-panel.is-active {
  display: block;
  animation: fadeIn 0.3s ease;
}
.hero-detail-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.hero-detail-head h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}
.hero-role {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  background: var(--red-soft);
  padding: 3px 10px;
  border-radius: 999px;
}
.hero-detail-panel p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-2);
}
.hero-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.hero-facts li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
}
.hero-facts li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 900;
}
.hero-facts b { color: var(--text); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.g-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  box-shadow: var(--shadow-sm);
}
.g-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.g-tile:hover img { transform: scale(1.04); }
.g-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.55));
  opacity: 0.9;
  transition: opacity 0.25s;
}
.g-tile span {
  position: absolute;
  left: 16px;
  bottom: 12px;
  z-index: 1;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.g-tile:hover::after { opacity: 1; }
.g-tile:hover { transform: scale(1.015); }
.g-tile { transition: transform 0.25s; }

/* ---------- Quotes ---------- */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.quote-card {
  position: relative;
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 24px;
  box-shadow: var(--shadow-sm);
}
.quote-card::before {
  content: "“";
  position: absolute;
  top: 2px;
  left: 16px;
  font-family: Georgia, serif;
  font-size: 64px;
  line-height: 1;
  color: var(--red);
  opacity: 0.5;
}
.quote-card blockquote {
  position: relative;
  z-index: 1;
  margin: 18px 0 16px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.7;
}
.quote-card figcaption {
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.06em;
}

/* ---------- Message board ---------- */
.message-wrap {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
}

.msg-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.msg-form input,
.msg-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  resize: vertical;
  transition: border-color 0.2s;
}
.msg-form input:focus,
.msg-form textarea:focus {
  outline: none;
  border-color: var(--red);
}
.msg-form textarea { min-height: 110px; }

.msg-form button {
  border: none;
  cursor: pointer;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s, transform 0.15s;
}
.msg-form button:hover { background: var(--red-hover); transform: translateY(-1px); }

.msg-list { display: flex; flex-direction: column; gap: 12px; }
.msg-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  animation: fadeIn 0.35s ease both;
}
.msg-item header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.msg-item strong { font-size: 14px; color: var(--red); }
.msg-item time { font-size: 11px; color: var(--text-2); opacity: 0.8; }
.msg-item p { margin: 0; font-size: 14px; color: var(--text); }

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

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 52px 0;
  text-align: center;
}
.footer-brand {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--red);
}
.footer-desc { margin: 10px 0 0; color: var(--text-2); font-size: 14px; }
.footer-copy { margin: 14px 0 0; color: var(--text-2); font-size: 12px; opacity: 0.75; }

/* ---------- Full-size preview ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(8, 9, 12, 0.82);
  backdrop-filter: blur(6px);
}
.lightbox.open { display: grid; }

.lb-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.lb-inner {
  width: min(92vw, 760px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  animation: fadeIn 0.25s ease both;
}
.lb-media {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.lb-inner h3 { margin: 16px 0 6px; font-size: 18px; }
.lb-inner p { margin: 0; color: var(--text-2); font-size: 14px; }

/* ---------- Back to top ---------- */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  box-shadow: var(--shadow-sm);
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { border-color: var(--red); color: var(--red); }

/* ---------- Scroll reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo img { aspect-ratio: 16 / 10; }
  .profile-card { max-width: none; margin-inline: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .message-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero-copy { max-width: none; margin: 0 auto; }
  .hero-tags { justify-content: center; }
  .hero-media { width: 100%; max-width: 460px; margin: 0 auto; }
}

@media (max-width: 760px) {
  .menu-btn { display: flex; }

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 10px 24px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s, transform 0.22s;
  }
  .nav-links.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav-links a { padding: 11px 12px; }

  .section { padding: 72px 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes-grid { grid-template-columns: 1fr; }
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .play-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: 1fr; }
  .sched-grid { grid-template-columns: 1fr; }
  .replay-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .sec-deco { display: none; }
  .tl-card-photo { grid-template-columns: 80px 1fr; gap: 12px; }
  .tl-photo { width: 80px; }
  .tl-acc-year { width: 44px; font-size: 18px; }
  .tl-acc-head { gap: 10px; padding: 16px 4px; }
  .tl-acc-inner p, .tl-acc-facts { padding-left: 0; }
  .watermark { font-size: 42vw; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hub-grid { grid-template-columns: 1fr; }
  .hero-tags span { font-size: 11px; }
}

/* ---------- Play ---------- */
.play-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}
.game-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  padding: 20px;
}
.game-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.game-head h3 { font-size: 16px; font-weight: 800; }
.game-score { font-size: 12px; font-weight: 800; color: var(--red); }
.game-q { margin-bottom: 12px; font-size: 14px; font-weight: 700; line-height: 1.6; }
.game-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.game-opt {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.game-opt:hover { border-color: var(--red); color: var(--red); }
.game-opt.ok { border-color: #2fbf71; color: #2fbf71; background: rgba(47, 191, 113, 0.08); }
.game-opt.no { border-color: var(--red); color: var(--red); background: rgba(255, 74, 90, 0.08); }
.game-opt.dim { opacity: 0.45; }
.game-tip { margin-top: 12px; font-size: 12px; line-height: 1.6; color: var(--text-2); }
.game-done { padding: 16px 0; text-align: center; }
.game-done strong { display: block; font-size: 30px; color: var(--red); }
.game-done p { margin-top: 8px; font-size: 13px; color: var(--text-2); }
.game-foot { margin-top: 14px; }
.game-foot button {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.game-foot button:hover { border-color: var(--red); color: var(--red); }

/* ---------- New games: matching / draw ---------- */
.match-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; }
.match-col { display: flex; flex-direction: column; gap: 8px; }
.match-item {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--text);
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, opacity 0.15s;
}
.match-item:hover { border-color: var(--red); }
.match-item.sel { border-color: var(--red); color: var(--red); }
.match-item.matched { border-color: #2fbf71; color: #2fbf71; opacity: 0.55; cursor: default; }
.match-item.wrong { border-color: var(--red); background: rgba(255, 74, 90, 0.12); }

.quote-box {
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
}
.quote-box.flip { animation: quoteIn 0.45s ease both; }
@keyframes quoteIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.facts {
  max-width: 980px;
  margin: 26px auto 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
}
.facts h3 { margin-bottom: 14px; font-size: 16px; font-weight: 800; }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fact { display: flex; gap: 10px; font-size: 12px; line-height: 1.6; color: var(--text-2); }
.fact b { color: var(--red); font-weight: 800; }

/* ---------- Dynamic effects ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), #ff9a3a);
  z-index: 90;
  pointer-events: none;
}

.hero-title .grad {
  background: linear-gradient(90deg, #ff4a5a, #ffb03a, #ff4a5a);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: heroShimmer 8s linear infinite;
}
@keyframes heroShimmer { to { background-position: 200% center; } }

/* Glow orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  pointer-events: none;
}
.orb-1 {
  width: 320px;
  height: 320px;
  left: 6%;
  top: 16%;
  background: rgba(255, 74, 90, 0.5);
  animation: orbFloat 13s ease-in-out infinite;
}
.orb-2 {
  width: 260px;
  height: 260px;
  right: 10%;
  top: 28%;
  background: rgba(255, 176, 58, 0.38);
  animation: orbFloat 16s ease-in-out infinite reverse;
}
.orb-3 {
  width: 380px;
  height: 380px;
  left: 38%;
  bottom: -12%;
  background: rgba(120, 80, 255, 0.28);
  animation: orbFloat 19s ease-in-out infinite;
}
@keyframes orbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(24px, -34px, 0) scale(1.08); }
}

.view.is-active { animation: viewIn 0.45s ease both; }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Cartoon animated elements ---------- */
.hero-toys {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hero-mascot {
  position: absolute;
  right: 3%;
  bottom: 2%;
  width: 132px;
  animation: mascotBob 4s ease-in-out infinite;
}
@keyframes mascotBob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}
.chibi {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.5));
}
.chibi-bubble {
  position: absolute;
  left: 50%;
  top: -30px;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 12px;
  background: #fff;
  color: #c8102e;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.chibi-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}
.sticker {
  position: absolute;
  font-size: 28px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
  animation: stickerBob 5s ease-in-out infinite;
}
.st-1 { left: 38%; top: 16%; animation-delay: 0.2s; }
.st-2 { left: 45%; top: 64%; animation-delay: 0.9s; }
.st-3 { right: 4%; top: 32%; animation-delay: 1.4s; }
.st-4 { right: 12%; bottom: 16%; animation-delay: 0.6s; }
@keyframes stickerBob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-10px) rotate(6deg); }
}
.spark {
  position: absolute;
  color: #ffd479;
  font-size: 12px;
  opacity: 0;
  animation: sparkTwinkle 3.6s ease-in-out infinite;
}
.sp-1 { left: 33%; top: 28%; animation-delay: 0s; }
.sp-2 { left: 48%; top: 20%; animation-delay: 0.6s; }
.sp-3 { left: 55%; top: 72%; animation-delay: 1.2s; }
.sp-4 { right: 20%; top: 22%; animation-delay: 1.8s; }
.sp-5 { right: 6%; top: 58%; animation-delay: 2.4s; }
.sp-6 { left: 30%; top: 74%; animation-delay: 3s; }
@keyframes sparkTwinkle {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50% { opacity: 1; transform: scale(1.15); }
}

.ag-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 1120px;
  margin: 0 auto 22px;
}
.ag-band-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 74, 90, 0.35);
  background: rgba(255, 74, 90, 0.08);
  color: #ff8a94;
  font-size: 12px;
  font-weight: 800;
  animation: bandFloat 4s ease-in-out infinite;
}
.ag-band-item:nth-child(2) { animation-delay: 0.3s; }
.ag-band-item:nth-child(3) { animation-delay: 0.6s; }
.ag-band-item:nth-child(4) { animation-delay: 0.9s; }
.ag-band-item:nth-child(5) { animation-delay: 1.2s; }

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

/* Section cartoon decorations */
.section { position: relative; }
.sec-deco {
  position: absolute;
  top: 96px;
  right: 3.5%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  pointer-events: none;
}
.sd-item {
  font-size: 26px;
  opacity: 0.85;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
  animation: sdFloat 5s ease-in-out infinite;
}
@keyframes sdFloat {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-10px) rotate(6deg); }
}
.footer-toys {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}
.footer-toys span {
  font-size: 20px;
  animation: sdFloat 5s ease-in-out infinite;
}
.footer-toys span:nth-child(2) { animation-delay: 0.5s; }
.footer-toys span:nth-child(3) { animation-delay: 1s; }
.footer-toys span:nth-child(4) { animation-delay: 1.5s; }
.footer-toys span:nth-child(5) { animation-delay: 2s; }

/* ---------- Album styling ---------- */
.cover-frame {
  position: absolute;
  inset: 78px 18px 18px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  pointer-events: none;
}
.cover-frame::before,
.cover-frame::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid rgba(255, 74, 90, 0.65);
}
.cover-frame::before {
  left: -1px;
  top: -1px;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 16px;
}
.cover-frame::after {
  right: -1px;
  bottom: -1px;
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: 16px;
}
.cover-vol {
  position: absolute;
  top: 94px;
  right: 38px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--text-2);
}
.hub-sub {
  margin: -14px 0 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-2);
}
.chapter-page {
  position: absolute;
  right: 4%;
  bottom: 34px;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-2);
  opacity: 0.7;
}

/* ---------- Image lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 9, 11, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-img {
  max-width: min(92vw, 1100px);
  max-height: 82vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lb-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
.lb-count {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Back cover ---------- */
.endcard {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  text-align: center;
}
.endcard-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.endcard-text {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-2);
}
.endcard-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.endcard-meta span {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--text-2);
}
.endcard-btn {
  margin-top: 24px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

/* ---------- Album serif details ---------- */
.section-label,
.cover-vol,
.chapter-page,
.hub-num,
.lb-count {
  font-family: Georgia, "Times New Roman", serif;
}

/* ---------- Hexagon comparison ---------- */
.radar-wrap {
  max-width: 980px;
  margin: 34px auto 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
}
.radar-head h3 { font-size: 15px; font-weight: 800; }
.radar-head p { margin-top: 4px; font-size: 12px; color: var(--text-2); }
.radar-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.radar { width: min(100%, 420px); height: auto; }
.radar-legend { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 12px; }
.radar-legend li { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.radar-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ---------- Schedule ---------- */
.sched-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}
.sched-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  padding: 20px;
}
.sched-card h3 { margin-bottom: 14px; font-size: 15px; font-weight: 800; }
.sched-list,
.recent-list { list-style: none; }
.sched-list li,
.recent-list li {
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.sched-list li { grid-template-columns: 70px 1fr auto; }
.recent-list li { grid-template-columns: 62px 1fr auto; }
.sched-list li:last-child,
.recent-list li:last-child { border-bottom: 0; }
.sched-date,
.recent-date { font-size: 11px; color: var(--text-2); font-family: Georgia, "Times New Roman", serif; }
.sched-name,
.recent-vs { font-weight: 600; color: var(--text); }
.sched-tag,
.recent-score {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 10px;
  font-weight: 800;
  color: var(--text-2);
}
.sched-tag.win,
.recent-score.win { border-color: var(--red); color: var(--red); }
.sched-tag.done { opacity: 0.85; }

/* ---------- Watch (esports style) ---------- */
#watch {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 36px 36px;
}
#watch::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(200, 16, 46, 0.14), transparent 55%);
  pointer-events: none;
}
#watch .wrap { position: relative; }

.live-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto 18px;
  padding: 14px 20px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(200, 16, 46, 0.92), rgba(110, 8, 28, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(200, 16, 46, 0.28);
}
.live-left { display: flex; align-items: center; gap: 10px; }
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}
.live-tag {
  padding: 3px 8px;
  border-radius: 4px;
  background: #fff;
  color: #c8102e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.live-title { font-size: 13px; font-weight: 800; color: #fff; }
.live-right { display: flex; align-items: center; gap: 8px; }
.kpl-logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 900;
  color: #ffd479;
  letter-spacing: 0.04em;
}
.kpl-name { font-size: 11px; color: rgba(255, 255, 255, 0.75); }

.platform-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  max-width: 980px;
  margin: 0 auto 12px;
}
.platform {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 14px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.platform::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 3px;
  background: var(--pc, var(--red));
}
.platform:hover {
  transform: translateY(-3px);
  border-color: var(--pc, var(--red));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.platform-tag { font-size: 9px; font-weight: 800; letter-spacing: 0.18em; color: var(--pc, var(--red)); }
.platform-name { font-size: 14px; font-weight: 800; }
.platform-desc { font-size: 11px; line-height: 1.5; color: var(--text-2); }
.platform-go { margin-top: 4px; font-size: 11px; font-weight: 700; color: var(--text-2); }
.platform:hover .platform-go { color: var(--pc, var(--red)); }
.p-bili { --pc: #00a1d6; }
.p-huya { --pc: #ff6a00; }
.p-douyu { --pc: #ff5722; }
.p-kuaishou { --pc: #ff5000; }
.p-kpl { --pc: #ffd479; }

.watch-note { margin: 0 auto 26px; max-width: 980px; font-size: 12px; color: var(--text-2); }

.watch-replays {
  max-width: 980px;
  margin: 0 auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
}
.watch-replays h3 { margin-bottom: 14px; font-size: 15px; font-weight: 800; }
.replay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.replay {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #000;
  overflow: hidden;
}
.replay-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffd479;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
}
.replay iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}
.replay p { margin: 0; padding: 10px 12px; font-size: 12px; color: var(--text-2); background: var(--card); }
.replay-link {
  display: block;
  padding: 8px 12px 12px;
  font-size: 12px;
  color: var(--red);
  background: var(--card);
}
.replay-link:hover { text-decoration: underline; }

/* ---------- Esports-style dynamic effects ---------- */
/* Full-screen scanline */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.018) 0px,
    rgba(255, 255, 255, 0.018) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.25;
}

/* Section label neon breathing */
.section-label {
  text-shadow: 0 0 10px rgba(255, 74, 90, 0.45);
  animation: labelPulse 3.6s ease-in-out infinite;
}
@keyframes labelPulse {
  0%, 100% { text-shadow: 0 0 8px rgba(255, 74, 90, 0.3); }
  50% { text-shadow: 0 0 18px rgba(255, 74, 90, 0.8); }
}

/* Nav glitch effect */
.nav-links a:hover {
  animation: navGlitch 0.32s steps(1) 1;
}
@keyframes navGlitch {
  0%, 100% { text-shadow: none; transform: none; }
  33% { text-shadow: 1px 0 #00e5ff, -1px 0 #ff2a4d; transform: translateX(1px); }
  66% { text-shadow: -1px 0 #00e5ff, 1px 0 #ff2a4d; transform: translateX(-1px); }
}

/* Title subtle glitch */
.hero-title {
  animation: titleGlitch 7s steps(1) infinite;
}
@keyframes titleGlitch {
  0%, 94%, 100% { transform: none; filter: none; }
  95% { transform: translate(-2px, 1px); filter: hue-rotate(20deg) contrast(1.2); }
  96% { transform: translate(2px, -1px); filter: hue-rotate(-20deg); }
  97% { transform: none; filter: none; }
}

/* HUD corner brackets */
.game-card,
.sched-card,
.radar-wrap,
.endcard {
  position: relative;
}
.game-card::before,
.game-card::after,
.sched-card::before,
.sched-card::after,
.radar-wrap::before,
.radar-wrap::after,
.endcard::before,
.endcard::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255, 74, 90, 0.55);
  pointer-events: none;
}
.game-card::before,
.sched-card::before,
.radar-wrap::before,
.endcard::before {
  left: -1px;
  top: -1px;
  border-right: 0;
  border-bottom: 0;
}
.game-card::after,
.sched-card::after,
.radar-wrap::after,
.endcard::after {
  right: -1px;
  bottom: -1px;
  border-left: 0;
  border-top: 0;
}

/* Neon button/card glow */
.endcard-btn:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 26px rgba(255, 74, 90, 0.55);
}
.platform:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 22px rgba(255, 74, 90, 0.18);
}

/* Scrolling ticker */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 74, 90, 0.04);
}
.ticker-track {
  display: flex;
  gap: 44px;
  width: max-content;
  padding: 9px 0;
  white-space: nowrap;
  animation: tickerMove 30s linear infinite;
}
@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-track span {
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--text-2);
}
.ticker-track b {
  color: var(--red);
  font-weight: 800;
}

/* Per-section inline ticker */
.ticker-inline {
  margin: 18px 0 30px;
  border-radius: 8px;
}
.ticker-inline .ticker-track {
  animation-duration: 22s;
  gap: 36px;
  padding: 8px 0;
}
.ticker-inline .ticker-track span {
  font-size: 11px;
  letter-spacing: 0.18em;
}

/* Nav underline */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* Theme button rotation */
.theme-btn { transition: transform 0.4s ease, border-color 0.2s, color 0.2s; }
.theme-btn:hover { transform: rotate(18deg); }

/* Card glow */
.hub-card:hover {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 74, 90, 0.35);
}

/* Click ripple */
.game-opt,
.hero-cta,
.game-foot button,
.msg-submit {
  position: relative;
  overflow: hidden;
}
.ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(26); opacity: 0; }
}

/* ---------- Light theme readability fixes ---------- */
[data-theme="light"] .hero-bg {
  background:
    radial-gradient(900px 520px at 50% -8%, rgba(216, 30, 44, 0.10), transparent 62%),
    radial-gradient(700px 420px at 88% 108%, rgba(233, 185, 73, 0.08), transparent 60%),
    linear-gradient(180deg, #ffffff, #f4f5f8);
}
[data-theme="light"] .hero-bg::after {
  background:
    radial-gradient(1100px 640px at 50% 34%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.7) 66%, #ffffff 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.25) 44%, #ffffff 100%);
}
[data-theme="light"] .hero-title,
[data-theme="light"] .hero-sub,
[data-theme="light"] .hero-desc,
[data-theme="light"] .hero-note {
  color: var(--text);
}
[data-theme="light"] .hero-kicker { color: var(--red); }
[data-theme="light"] .hero-tags span {
  color: var(--text-2);
  background: #ffffff;
  border-color: var(--line);
}
[data-theme="light"] .cover-vol { color: var(--text-2); }
[data-theme="light"] .hub-card {
  color: var(--text);
  background: #ffffff;
  border-color: var(--line);
  box-shadow: 0 6px 18px rgba(15, 16, 19, 0.06);
}
[data-theme="light"] .hub-bg { opacity: 0.09; }
[data-theme="light"] .hub-card::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.92) 100%);
}
[data-theme="light"] .hub-title { color: var(--text); }
[data-theme="light"] .hub-desc { color: var(--text-2); text-shadow: none; }
[data-theme="light"] .hub-arrow { color: var(--text-2); }
[data-theme="light"] .hub-card:hover {
  box-shadow: 0 16px 36px rgba(15, 16, 19, 0.12), 0 0 0 1px rgba(216, 30, 44, 0.35);
}

/* ---------- Gongsun Li elements & tech feel ---------- */
/* Small maple leaf before section labels (site-wide) */
.section-label::before {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 7px;
  background: var(--leaf) center / contain no-repeat;
  vertical-align: -1px;
}

/* Falling maple leaves on the hero */
.leaf-fall {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--leaf) center / contain no-repeat;
  opacity: 0.22;
  animation: leafFall linear infinite;
  pointer-events: none;
}
.lf1 { left: 8%; animation-duration: 15s; animation-delay: 0s; }
.lf2 { left: 26%; animation-duration: 19s; animation-delay: 3s; }
.lf3 { left: 44%; animation-duration: 17s; animation-delay: 6s; }
.lf4 { left: 62%; animation-duration: 21s; animation-delay: 1.5s; }
.lf5 { left: 78%; animation-duration: 16s; animation-delay: 5s; }
.lf6 { left: 92%; animation-duration: 20s; animation-delay: 8s; }
@keyframes leafFall {
  0% { transform: translateY(-10vh) rotate(0deg); }
  100% { transform: translateY(115vh) rotate(400deg); }
}

/* Tech grid (alternating section background) */
.section-alt {
  background-image:
    linear-gradient(rgba(216, 30, 44, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 30, 44, 0.03) 1px, transparent 1px);
  background-size: 46px 46px;
}

/* Gallery hover sweep */
.g-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.35) 50%, transparent 58%);
  transform: translateX(-110%);
  transition: transform 0.65s ease;
  pointer-events: none;
}
.g-tile:hover::after { transform: translateX(110%); }

/* Energy line above section titles */
.section-head::before {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin: 0 auto 16px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  box-shadow: 0 0 10px rgba(216, 30, 44, 0.5);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
