/* =========================================================
   Yomi Hana — Portfolio
   Palette pulled from "Model gốc": pink→peach hair, charcoal
   penguin hoodie, yellow drawstrings, royal-blue ribbon,
   set against the deep ocean of Atlantis (Lore).
   ========================================================= */
:root {
  --abyss: #060a1c;
  --deep: #0b1230;
  --ocean: #13204a;
  --ocean-2: #1b2d63;
  --pink: #ff7ab6;
  --pink-2: #ff9fcb;
  --pink-soft: #ffd0e4;
  --peach: #ffd3b5;
  --gold: #ffd23f;
  --royal: #3446c4;
  --charcoal: #5e5858;
  --cream: #fff6f9;
  --ink: #2a2230;
  --text: #eef1ff;
  --muted: #aab3da;
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --radius: 22px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --font-head: "Baloo 2", "Segoe UI Rounded", "Nunito", system-ui, sans-serif;
  --font-body: "Be Vietnam Pro", "Segoe UI", Roboto, system-ui, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: linear-gradient(180deg, var(--ocean-2) 0%, var(--ocean) 18%, var(--deep) 55%, var(--abyss) 100%);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0; }
.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.container.narrow { width: min(900px, 100% - 2.5rem); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; margin-top: 2rem; }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* ---------- Ocean ambience ---------- */
.ocean-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.caustics {
  position: absolute; inset: -10% -10% auto; height: 75vh;
  background:
    radial-gradient(ellipse 65% 45% at 18% 0%, rgba(112, 224, 255, .18), transparent 65%),
    radial-gradient(ellipse 55% 40% at 84% 4%, rgba(255, 122, 182, .22), transparent 60%);
  filter: blur(22px);
  animation: causticDrift 16s ease-in-out infinite alternate;
}
@keyframes causticDrift { from { transform: translate(0, 0) scale(1); } to { transform: translate(2%, 3%) scale(1.06); } }
.atlantis-runes {
  position: absolute; inset: 4% 0 auto; height: 520px; color: rgba(168, 208, 255, .09);
  mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
}
.atlantis-runes svg { width: 100%; height: 100%; }
.rays {
  position: absolute; inset: -20% -10% auto; height: 120vh;
  background:
    repeating-linear-gradient(104deg, transparent 0 54px, rgba(200, 238, 255, .05) 54px 102px, transparent 102px 190px),
    radial-gradient(ellipse at 50% 0%, rgba(255, 122, 182, .2), transparent 60%);
  filter: blur(7px);
  animation: sway 14s ease-in-out infinite alternate;
  mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
}
@keyframes sway { from { transform: translateX(-3%) skewX(-3deg); } to { transform: translateX(3%) skewX(3deg); } }
.bubbles span {
  position: absolute; bottom: -40px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .4);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .55), rgba(140, 220, 255, .08) 60%);
  box-shadow: 0 0 10px rgba(255, 159, 203, .22);
  animation: rise linear infinite;
}
.bubbles span.is-glow {
  border-color: rgba(255, 159, 203, .6);
  box-shadow: 0 0 14px rgba(255, 122, 182, .45);
}
@keyframes rise {
  0% { transform: translate(0, 0) scale(.8); opacity: 0; }
  10% { opacity: .9; }
  50% { transform: translate(18px, -55vh) scale(1); }
  100% { transform: translate(-12px, -112vh) scale(1.1); opacity: 0; }
}

/* ---------- Header / Nav (Floating Glass) ---------- */
.site-header {
  position: fixed; inset: 12px 0 auto; z-index: 50; height: var(--header-h);
  padding-inline: 1rem;
  transition: inset .35s ease, height .35s ease;
}
.site-header .nav {
  height: 100%; padding-inline: 1.25rem; border-radius: 999px;
  background: rgba(11, 18, 48, .48);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: background .35s, border-color .35s, box-shadow .35s, padding .35s;
}
.site-header.is-scrolled { inset: 8px 0 auto; height: 60px; }
.site-header.is-scrolled .nav {
  background: rgba(8, 13, 36, .82);
  border-color: rgba(255, 122, 182, .38);
  box-shadow: 0 12px 34px -14px rgba(0, 0, 0, .75), 0 0 22px -10px rgba(255, 122, 182, .55);
}
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; }
.brand img { width: 40px; height: 40px; border-radius: 50%; background: var(--pink-soft); object-fit: cover; }
.brand em { font-style: normal; color: var(--pink); margin-left: .15rem; }
.nav-menu { display: flex; gap: .3rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-menu a {
  display: block; padding: .5rem .9rem; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .95rem; color: var(--muted); transition: color .2s, background .2s;
}
.nav-menu a:hover, .nav-menu a.is-active { color: var(--text); background: rgba(255, 255, 255, .08); }
.nav-menu a.nav-cta { background: var(--pink); color: #2a0f1d; }
.nav-menu a.nav-cta:hover { background: var(--pink-2); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; }
.nav-toggle span { display: block; height: 2.5px; background: var(--text); border-radius: 2px; margin: 5px 0; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; text-decoration: none;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s, background .25s, border-color .25s;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: scale(.94); }
.btn-primary { background: linear-gradient(135deg, var(--pink), #ff5d9e); color: #fff; box-shadow: 0 10px 30px -10px rgba(255, 93, 158, .8); }
.btn-primary:hover { box-shadow: 0 14px 36px -8px rgba(255, 93, 158, 1); }
.btn-shimmer::after, .nav-cta::after {
  content: ""; position: absolute; inset: 0; width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: translateX(-160%) skewX(-20deg); transition: transform .65s ease;
}
.btn-shimmer:hover::after, .nav-cta:hover::after { transform: translateX(260%) skewX(-20deg); }
.nav-cta { position: relative; overflow: hidden; }
.btn-ghost { border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { border-color: var(--pink-2); background: rgba(255, 122, 182, .1); }
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 2rem) 0 4rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 2rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1rem;
  padding: .4rem .95rem; border-radius: 999px; background: rgba(255, 255, 255, .07);
  border: 1px solid var(--card-border); font-size: .9rem; font-weight: 600;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #3dff9e; box-shadow: 0 0 0 0 rgba(61, 255, 158, .7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(61, 255, 158, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 255, 158, 0); } }
.hero-signature {
  margin: 0 0 .35rem; font-size: .82rem; font-weight: 700; letter-spacing: .24em;
  color: var(--peach); text-transform: uppercase; opacity: .9;
}
.hero-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1em .3em; }
.hero-name {
  position: relative; font-size: clamp(5rem, 15vw, 10.5rem); font-weight: 800; letter-spacing: -.02em; line-height: .9;
  background: linear-gradient(120deg, var(--pink) 10%, var(--pink-2) 45%, var(--peach) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 122, 182, .45)) drop-shadow(0 10px 30px rgba(255, 122, 182, .35));
}
.hero-sub { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; color: var(--text); opacity: .92; text-shadow: 0 0 22px rgba(130, 175, 255, .35); }
.hero-realname { font-size: 1.05rem; color: var(--muted); margin: .6rem 0 1.6rem; }
.hero-realname strong { color: var(--pink-soft); }
.hero-quote {
  margin: 0 0 2rem; padding: 1.1rem 1.4rem; max-width: 520px;
  border-left: 4px solid var(--pink); border-radius: 0 16px 16px 0;
  background: linear-gradient(90deg, rgba(255, 122, 182, .16), rgba(52, 70, 196, .06));
  backdrop-filter: blur(8px);
}
.hero-quote blockquote { margin: 0; font-family: var(--font-head); font-size: clamp(1.2rem, 2.4vw, 1.55rem); font-weight: 600; transition: opacity .5s, transform .5s; }
.hero-quote blockquote.is-out { opacity: 0; transform: translateY(8px); }
.hero-quote figcaption { margin-top: .3rem; color: var(--muted); font-size: .9rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-stats { display: flex; gap: .9rem; list-style: none; padding: 0; margin: 2.2rem 0 0; flex-wrap: wrap; }
.hero-stats li {
  display: flex; align-items: center; gap: .7rem;
  padding: .75rem 1.15rem; border-radius: 18px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .15);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 26px -16px rgba(0, 0, 0, .55);
  transition: transform .25s, border-color .25s;
}
.hero-stats li:hover { transform: translateY(-3px); border-color: rgba(255, 159, 203, .55); }
.stat-ico { font-size: 1.35rem; line-height: 1; }
.hero-stats b { display: block; font-family: var(--font-head); font-size: 1.3rem; line-height: 1.1; color: var(--gold); }
.hero-stats span { font-size: .8rem; color: var(--muted); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 580px; }
.magic-circle {
  position: absolute; width: min(500px, 94%); aspect-ratio: 1;
  color: rgba(140, 210, 255, .28); animation: spin 55s linear infinite reverse;
}
.magic-circle svg { width: 100%; height: 100%; }
.sonar-ring {
  position: absolute; width: min(360px, 72%); aspect-ratio: 1; border-radius: 50%;
  border: 1.5px solid rgba(255, 122, 182, .38);
  animation: sonar 4s ease-out infinite;
}
@keyframes sonar {
  0% { transform: scale(.75); opacity: .7; }
  100% { transform: scale(1.35); opacity: 0; }
}
.hero-glow {
  position: absolute; width: min(460px, 85%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 182, .55), rgba(84, 150, 255, .2) 48%, transparent 72%);
  filter: blur(12px); animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.08); opacity: .8; } }
.spiral { position: absolute; width: min(520px, 95%); color: rgba(255, 208, 228, .24); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-model {
  position: relative; z-index: 2; background: none; border: 0; padding: 0;
  width: min(390px, 78%); cursor: pointer; will-change: transform;
}
.hero-model img {
  width: 100%; height: auto; aspect-ratio: 1080 / 1920; object-fit: contain;
  filter: drop-shadow(-6px 0 18px rgba(255, 122, 182, .38)) drop-shadow(8px 0 20px rgba(90, 175, 255, .32)) drop-shadow(0 28px 36px rgba(0, 0, 0, .5));
  animation: breathe 4.6s ease-in-out infinite;
  transition: opacity .35s ease, transform .35s cubic-bezier(.22, 1, .36, 1), filter .35s ease;
}
.hero-model.is-bouncing img {
  animation: heroBounce .48s cubic-bezier(.34, 1.56, .64, 1), breathe 4.6s ease-in-out .48s infinite;
}
@keyframes heroBounce {
  0% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-14px) scale(1.03, .98); }
  100% { transform: translateY(0) scale(1); }
}
.hero-speech {
  position: absolute; top: 6%; left: 74%; z-index: 5; width: max-content; max-width: 220px;
  padding: .6rem .95rem; border-radius: 18px 18px 18px 4px; text-align: left;
  background: rgba(10, 16, 44, .9); border: 1px solid rgba(255, 159, 203, .55);
  backdrop-filter: blur(12px); color: #fff; font-size: .84rem; font-weight: 600;
  line-height: 1.38; box-shadow: 0 12px 28px rgba(0, 0, 0, .45);
  pointer-events: none; animation: speechPop .28s cubic-bezier(.22, 1, .36, 1);
}
.hero-speech[hidden] { display: none; }
@keyframes speechPop {
  from { opacity: 0; transform: translateY(6px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.floating-stickers { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.sticker, .sticker-img {
  position: absolute; animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .45));
}
.sticker {
  padding: .35rem .8rem; border-radius: 999px; font-weight: 700; font-size: .82rem;
  background: rgba(11, 18, 48, .72); border: 1px solid rgba(255, 159, 203, .45);
  backdrop-filter: blur(8px); color: var(--pink-soft);
}
.sticker.s1 { top: 14%; left: 6%; animation-delay: -.5s; }
.sticker.s2 { bottom: 22%; right: 4%; animation-delay: -2.1s; border-color: rgba(255, 210, 63, .5); color: var(--gold); }
.sticker-img { width: 58px; height: 58px; object-fit: contain; }
.sticker-img.s3 { top: 18%; right: 8%; animation-delay: -1.3s; }
.sticker-img.s4 { bottom: 18%; left: 8%; animation-delay: -3s; }
.hero-model img.is-out {
  opacity: 0;
  transform: scale(.93) translateY(6px);
  filter: blur(8px) brightness(1.3) drop-shadow(0 0 24px rgba(255, 159, 203, .7));
}
.hero-model:hover img { transform: scale(1.02); }
@keyframes breathe {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  50% { transform: translateY(-7px) scale(1.012, .994); }
}
@keyframes float { 50% { transform: translateY(-14px); } }
.hero-hint {
  position: absolute; bottom: 0; z-index: 4;
  padding: .28rem .85rem; border-radius: 999px;
  background: rgba(6, 10, 28, .68); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px); font-size: .8rem; font-weight: 600;
  color: rgba(255, 255, 255, .8); text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}
.scroll-cue { position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .4); border-radius: 14px; }

/* 2.5D Parallax Live2D Card depth layers */
.art-item, .profile-card { transform-style: preserve-3d; }
.art-item img {
  transition: transform .22s cubic-bezier(.22, 1, .36, 1);
  transform: translate3d(calc(var(--px, 0) * 10px), calc(var(--py, 0) * 8px), 24px) scale(1.04);
}
.art-item .card-sheen {
  transform: translate3d(calc(var(--px, 0) * -6px), calc(var(--py, 0) * -6px), 0);
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--pink-2); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.wave { line-height: 0; margin-top: -40px; position: relative; z-index: 1; }
.wave svg { width: 100%; height: 60px; fill: rgba(255, 255, 255, .03); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.kicker { margin: 0 0 .5rem; color: var(--pink-2); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
.lead { color: var(--muted); font-size: 1.05rem; margin: .9rem 0 0; }

/* reveal on scroll + staggered choreography */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s cubic-bezier(.22, 1, .36, 1), transform .75s cubic-bezier(.22, 1, .36, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.stagger-item { opacity: 0; transform: translateY(18px) scale(.96); }
.is-visible .stagger-item {
  animation: staggerIn .55s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: calc(var(--stagger, 0) * 50ms);
}
@keyframes staggerIn {
  to { opacity: 1; transform: none; }
}

/* Click ripple & bubble burst */
.click-fx { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.click-ripple {
  position: fixed; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border-radius: 50%; border: 2px solid rgba(255, 159, 203, .75);
  box-shadow: 0 0 12px rgba(120, 210, 255, .5);
  animation: rippleOut .65s cubic-bezier(.22, 1, .36, 1) forwards;
}
@keyframes rippleOut {
  from { transform: scale(.4); opacity: .95; }
  to { transform: scale(3.4); opacity: 0; }
}
.click-bubble {
  position: fixed; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, rgba(255, 122, 182, .65) 55%, rgba(90, 180, 255, .3));
  animation: burstBubble .75s cubic-bezier(.22, 1, .36, 1) forwards;
}
@keyframes burstBubble {
  0% { transform: translate(0, 0) scale(.5); opacity: .95; }
  100% { transform: translate(var(--tx, 0px), var(--ty, -40px)) scale(1.1); opacity: 0; }
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.6rem; align-items: start; }
.profile-card {
  position: relative; padding: 2rem; border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, #fff4f9 0%, #ffe3ef 55%, #ffd9c6 100%);
  color: var(--ink); box-shadow: 0 26px 60px -20px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .65) inset;
  transform-style: preserve-3d; transition: transform .22s ease-out, box-shadow .22s ease-out;
}
.card-sheen {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .55), transparent 55%);
  opacity: 0; transition: opacity .3s;
}
.profile-card:hover .card-sheen { opacity: 1; }
.profile-card::before { /* penguin-hoodie stripe */
  content: ""; position: absolute; inset: 0 0 auto; height: 12px;
  background: repeating-linear-gradient(90deg, var(--charcoal) 0 24px, var(--gold) 24px 30px);
}
.profile-card::after {
  content: "🐧"; position: absolute; right: -10px; bottom: -24px; font-size: 9rem; opacity: .08; transform: rotate(-12deg);
}
.profile-top { display: flex; align-items: center; gap: 1.2rem; margin: .6rem 0 1.5rem; }
.profile-avatar { flex: none; width: 104px; height: 104px; border-radius: 50%; padding: 4px; background: conic-gradient(var(--pink), var(--peach), var(--royal), var(--pink)); }
.profile-avatar img { width: 100%; height: 100%; border-radius: 50%; background: #fff; object-fit: cover; }
.profile-tag { margin: 0; font-size: .75rem; letter-spacing: .12em; font-weight: 700; color: #b0477a; }
.profile-card h3 { font-size: 2rem; color: #2a1a26; }
.profile-nick { margin: .1rem 0 0; color: #6b4f60; }
.profile-nick strong { color: #e0408a; }
.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: 0; }
.profile-stats div { background: rgba(255, 255, 255, .7); border: 1px solid rgba(224, 64, 138, .14); border-radius: 14px; padding: .65rem .85rem; transition: transform .2s, box-shadow .2s; }
.profile-stats div:hover { transform: translateY(-3px); box-shadow: 0 10px 20px -12px rgba(224, 64, 138, .6); }
.profile-stats dt { font-size: .78rem; color: #8a6b7d; }
.profile-stats dd { margin: 0; font-weight: 700; font-size: 1.02rem; color: #2a1a26; }
.profile-credit {
  margin: 1.3rem 0 0; padding: .75rem 1rem; border-radius: 14px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem;
  background: linear-gradient(90deg, rgba(224, 64, 138, .12), rgba(52, 70, 196, .1));
  border: 1px solid rgba(224, 64, 138, .25); font-size: .84rem; color: #5a3c4e;
}
.profile-credit strong { color: #b81d66; font-size: .95rem; }

.about-side { display: grid; gap: 1.2rem; }
.info-card { padding: 1.5rem 1.6rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-border); backdrop-filter: blur(8px); }
.info-card h3 { font-size: 1.4rem; margin-bottom: .6rem; display: flex; align-items: center; gap: .5rem; }
.info-card p { margin: 0 0 .8rem; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 0 0 .5rem; }
.tags li { padding: .3rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 600; background: rgba(255, 122, 182, .15); color: var(--pink-soft); border: 1px solid rgba(255, 122, 182, .3); }
.tags-game li { background: rgba(52, 70, 196, .2); color: #c9d0ff; border-color: rgba(120, 135, 255, .35); }
.milestones { display: flex; list-style: none; padding: 0; margin: .4rem 0 1rem; position: relative; justify-content: space-between; }
.milestones::before {
  content: ""; position: absolute; top: 50%; left: 6%; right: 6%; height: 4px;
  background: linear-gradient(90deg, var(--pink), var(--gold), var(--royal), var(--pink));
  background-size: 200% 100%;
  transform: translateY(-50%) scaleX(0); transform-origin: left center;
  border-radius: 4px; transition: transform 1.1s cubic-bezier(.22, 1, .36, 1);
}
.is-visible .milestones::before {
  transform: translateY(-50%) scaleX(1);
  animation: goalGlow 3.2s linear infinite;
}
@keyframes goalGlow { to { background-position: -200% 0; } }
.milestones li { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 70px; height: 70px; border-radius: 50%; background: var(--deep); border: 2px solid var(--pink-2); line-height: 1.1; }
.milestones b { font-family: var(--font-head); font-size: 1.2rem; }
.milestones span { font-size: .7rem; color: var(--muted); }
.rules ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .45rem; }
.badge-18 { display: inline-block; padding: 0 .45rem; border-radius: 6px; background: #ff4d6d; color: #fff; font-weight: 800; font-size: .78rem; margin-right: .2rem; }

/* ---------- Lore ---------- */
.lore {
  background: linear-gradient(180deg, transparent, rgba(3, 6, 18, .55) 30%, rgba(3, 6, 18, .55) 70%, transparent);
  transition: background .8s ease, color .6s ease;
}
.lore[data-mood="atlantis"] {
  background: linear-gradient(180deg, transparent, rgba(13, 29, 76, .72) 25%, rgba(8, 18, 48, .78) 75%, transparent);
}
.lore[data-mood="whiteroom"] {
  background: linear-gradient(180deg, transparent, rgba(215, 228, 245, .14) 22%, rgba(232, 240, 252, .2) 78%, transparent);
}
.lore[data-mood="whiteroom"] .chapter.is-whiteroom .chapter-card {
  background: rgba(244, 248, 255, .92);
  color: #1e2436;
  border-color: rgba(180, 200, 230, .7);
  box-shadow: 0 20px 45px -20px rgba(180, 205, 245, .45);
}
.lore[data-mood="whiteroom"] .chapter.is-whiteroom .chapter-kicker { color: #3446c4; }
.lore[data-mood="whiteroom"] .chapter.is-whiteroom .chapter-body p { color: #2b3347; }
.lore[data-mood="whiteroom"] .chapter.is-whiteroom .chapter-body.is-collapsed::after {
  background: linear-gradient(transparent, rgba(244, 248, 255, .96));
}
.lore[data-mood="whiteroom"] .chapter.is-whiteroom .chapter-more { color: #3446c4; }
.lore[data-mood="crimson"] {
  background: linear-gradient(180deg, transparent, rgba(72, 12, 34, .58) 25%, rgba(36, 8, 26, .68) 75%, transparent);
}
.lore[data-mood="twin"] {
  background: linear-gradient(180deg, transparent, rgba(255, 122, 182, .16) 25%, rgba(52, 70, 196, .24) 75%, transparent);
}
.lore-progress {
  position: sticky; top: calc(var(--header-h) + 12px); z-index: 15;
  height: 5px; width: 100%; border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, .1); margin-bottom: 1rem;
}
.lore-progress span {
  display: block; height: 100%; width: 10%;
  background: linear-gradient(90deg, var(--royal), var(--pink), var(--peach));
  border-radius: 999px; transition: width .35s ease;
}
.lore-toc {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem;
  margin: 0 auto 2.2rem; padding: .65rem; border-radius: 20px;
  background: rgba(8, 13, 36, .55); border: 1px solid var(--card-border);
  backdrop-filter: blur(8px);
}
.lore-toc a {
  padding: .35rem .72rem; border-radius: 999px; text-decoration: none;
  font-size: .82rem; font-weight: 700; color: var(--muted);
  border: 1px solid transparent; transition: .2s;
}
.lore-toc a:hover, .lore-toc a.is-active {
  color: #2a0f1d; background: var(--pink-2); border-color: var(--pink);
}
.cw { display: inline-block; margin: 1rem .4rem 0; padding: .35rem .8rem; border-radius: 10px; font-size: .85rem; background: rgba(255, 77, 109, .12); border: 1px solid rgba(255, 77, 109, .35); color: #ffb3c1; }
#loreToggleAll { margin-top: 1rem; }
.timeline { position: relative; padding-left: 0; }
.timeline::before {
  content: ""; position: absolute; left: 27px; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--royal), var(--pink) 50%, var(--peach)); border-radius: 3px; opacity: .6;
}
.chapter { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 1.2rem; margin-bottom: 1.6rem; }
.chapter-marker {
  position: relative; z-index: 1; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--deep); border: 3px solid var(--pink); font-size: 1.5rem; box-shadow: 0 0 0 6px rgba(255, 122, 182, .12);
}
.chapter-card { padding: 1.4rem 1.6rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-border); transition: border-color .3s, transform .3s; }
.chapter-card:hover { border-color: rgba(255, 159, 203, .45); }
.chapter-card.is-turning { animation: pageTurn .55s cubic-bezier(.22, 1, .36, 1); }
@keyframes pageTurn {
  0% { opacity: .25; transform: translateX(26px) scale(.98); filter: blur(3px); }
  100% { opacity: 1; transform: none; filter: none; }
}
.chapter-kicker { margin: 0; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pink-2); font-weight: 700; }
.chapter-card h3 { font-size: 1.55rem; margin: .2rem 0 .8rem; }
.chapter-body { position: relative; overflow: hidden; transition: max-height .6s ease; }
.chapter-body p { margin: 0 0 1em; color: #d7dcf5; text-align: justify; hyphens: auto; }
.chapter-body.is-collapsed { max-height: 8.6em; }
.chapter-body.is-collapsed::after { content: ""; position: absolute; inset: auto 0 0; height: 4.5em; background: linear-gradient(transparent, #0f1736); pointer-events: none; }
.chapter-more { margin-top: .6rem; background: none; border: 0; padding: .2rem 0; color: var(--pink-2); font-weight: 700; }
.chapter-more:hover { text-decoration: underline; }
.chapter.is-twin .chapter-card { background: linear-gradient(135deg, rgba(255, 122, 182, .14), rgba(52, 70, 196, .14)); }
.lore-finale { margin: 3rem 0 0; text-align: center; }
.lore-finale blockquote { margin: 0; font-family: var(--font-head); font-size: clamp(1.4rem, 3.4vw, 2.1rem); font-weight: 700; background: linear-gradient(90deg, var(--pink-2), var(--peach)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Model switcher ---------- */
.switcher { border-radius: 32px; padding: 1.4rem; background: var(--card); border: 1px solid var(--card-border); }
.switcher-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .9rem; margin-bottom: 1.4rem; }
.switch-tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: .35rem; border-radius: 999px; background: rgba(0, 0, 0, .3); width: min(560px, 100%); margin: 0; }
.mode-switch { display: flex; gap: .35rem; padding: .35rem; border-radius: 999px; background: rgba(0, 0, 0, .3); border: 1px solid var(--card-border); }
.mode-btn {
  padding: .65rem 1.05rem; border-radius: 999px; border: 0; background: transparent;
  font-weight: 700; font-size: .88rem; color: var(--muted); transition: .25s;
}
.mode-btn.is-active { background: linear-gradient(135deg, var(--royal), var(--pink)); color: #fff; box-shadow: 0 6px 18px -6px rgba(255, 122, 182, .7); }
.stage.is-whiteroom {
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #e2e8f0 100%);
  border-color: rgba(148, 163, 184, .45);
}
.stage.is-whiteroom .stage-ring { border-color: rgba(56, 189, 248, .35); }
.stage.is-whiteroom .stage-nav { background: rgba(15, 23, 42, .72); color: #fff; }
.stage-motion-video {
  position: relative; z-index: 2; width: 100%; max-height: 520px;
  aspect-ratio: 9 / 16; object-fit: contain; border-radius: 18px;
}
.stage-motion-video[hidden] { display: none; }
.stage-theme-box { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--card-border); }
.dock-label { margin: 0 0 .5rem; font-size: .82rem; font-weight: 700; color: var(--pink-2); text-transform: uppercase; letter-spacing: .08em; }
.dock-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.dock-btn {
  padding: .5rem .75rem; border-radius: 12px; border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, .06); font-size: .84rem; font-weight: 600; color: var(--text);
  transition: .2s;
}
.dock-btn:hover { border-color: var(--pink-2); background: rgba(255, 122, 182, .14); }
.dock-btn.is-active { background: var(--pink); color: #2a0f1d; border-color: var(--pink); }

/* ---------- Motion Showcase ---------- */
.motion-showcase { margin-top: 2.5rem; }
.motion-head { text-align: center; margin-bottom: 1.5rem; }
.motion-head h3 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.motion-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.motion-card {
  position: relative; overflow: hidden; padding: 0; border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(11, 18, 48, .6);
  backdrop-filter: blur(12px); box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), border-color .3s;
}
.motion-card:hover { transform: translateY(-6px); border-color: var(--pink); }
.motion-card video { width: 100%; aspect-ratio: 9 / 14; object-fit: cover; display: block; }
.motion-badge {
  position: absolute; top: 12px; right: 12px; padding: .3rem .7rem; border-radius: 999px;
  font-size: .76rem; font-weight: 700; background: rgba(8, 13, 36, .75); color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
}
.motion-label {
  position: absolute; inset: auto 0 0; padding: 2rem 1rem .9rem; text-align: left;
  font-weight: 700; font-size: .92rem; color: #fff;
  background: linear-gradient(transparent, rgba(6, 10, 28, .9));
}
#lbVideo { max-width: min(92vw, 1000px); max-height: calc(100svh - 150px); border-radius: 16px; background: #000; }
@media (max-width: 820px) { .motion-grid { grid-template-columns: 1fr; } }
.switch-tab { position: relative; z-index: 1; background: none; border: 0; padding: .8rem .5rem; border-radius: 999px; font-weight: 700; color: var(--muted); transition: color .3s; white-space: nowrap; }
.switch-tab.is-active { color: #2a0f1d; }
.switch-indicator { position: absolute; top: .35rem; bottom: .35rem; left: .35rem; width: calc((100% - .7rem) / 3); border-radius: 999px; background: linear-gradient(135deg, var(--pink-2), var(--peach)); transition: transform .45s cubic-bezier(.6, -0.2, .3, 1.3); box-shadow: 0 8px 20px -8px rgba(255, 122, 182, .8); }
.switch-body { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.stage { position: relative; display: grid; place-items: center; min-height: 560px; border-radius: 26px; overflow: hidden; background: radial-gradient(circle at 50% 60%, rgba(255, 159, 203, .35), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0)); }
.stage[data-variant="sinhvien"] { background: radial-gradient(circle at 50% 60%, rgba(52, 70, 196, .45), transparent 62%), linear-gradient(180deg, rgba(255, 255, 255, .05), transparent); }
.stage[data-variant="trecon"] { background: radial-gradient(circle at 50% 60%, rgba(255, 211, 181, .4), transparent 60%), linear-gradient(180deg, rgba(255, 255, 255, .05), transparent); }
.stage-ring { position: absolute; width: 70%; aspect-ratio: 1; bottom: -18%; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .15); animation: spin 30s linear infinite; }
.stage img { position: relative; height: 540px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .45)); transition: opacity .35s ease, transform .35s cubic-bezier(.22, 1, .36, 1), filter .35s ease; }
.stage img.is-out { opacity: 0; transform: translateX(var(--dir, 20px)) scale(.94); filter: blur(6px) brightness(1.25); }
.stage-nav { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--card-border); background: rgba(8, 13, 36, .6); font-size: 1.6rem; line-height: 1; transition: background .2s; }
.stage-nav:hover { background: var(--pink); color: #2a0f1d; }
.stage-nav.prev { left: 12px; } .stage-nav.next { right: 12px; }
.stage-info h3 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .6rem; }
.stage-info p { color: #d7dcf5; }
.model-angle-bar { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }
.model-angle-btn {
  padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, .06); font-size: .82rem; font-weight: 700; color: var(--muted);
  transition: .2s;
}
.model-angle-btn:hover { border-color: var(--pink-2); color: var(--text); }
.model-angle-btn.is-active { background: var(--pink); color: #2a0f1d; border-color: var(--pink); }
.thumbs { display: flex; gap: .6rem; margin: .9rem 0 1.2rem; flex-wrap: wrap; }
.thumbs button { width: 72px; height: 96px; padding: 4px; border-radius: 14px; border: 2px solid transparent; background: rgba(255, 255, 255, .07); transition: border-color .2s, transform .2s; }
.thumbs button:hover { transform: translateY(-3px); }
.thumbs button.is-active { border-color: var(--pink); background: rgba(255, 122, 182, .15); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- Gallery (masonry) ---------- */
.masonry { columns: 3 280px; column-gap: 1.2rem; }
.art-item {
  break-inside: avoid; margin: 0 0 1.2rem; display: block; width: 100%; padding: 0; border: 0;
  border-radius: 22px; overflow: hidden; position: relative; background: linear-gradient(160deg, #fff4f9, #ffe0ee);
  box-shadow: var(--shadow); cursor: zoom-in;
  transform-style: preserve-3d; transition: transform .22s ease-out, box-shadow .25s ease;
}
.art-item .card-sheen {
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .45), rgba(255, 122, 182, .12) 40%, transparent 65%);
}
.art-item:hover .card-sheen { opacity: 1; }
.art-item img { width: 100%; height: auto; transition: transform .6s ease; }
.art-item::after { content: "🔍 Phóng to"; position: absolute; inset: auto 0 0; padding: 2.2rem 1rem .9rem; font-weight: 700; font-size: .9rem; text-align: left; color: #fff; background: linear-gradient(transparent, rgba(20, 8, 20, .7)); opacity: 0; transform: translateY(10px); transition: .35s; }
.art-item:hover img { transform: scale(1.06); }
.art-item:hover::after, .art-item:focus-visible::after { opacity: 1; transform: none; }

/* ---------- Emotes ---------- */
.emote-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.pill-tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.pill { padding: .6rem 1.15rem; border-radius: 999px; border: 1px solid var(--card-border); background: var(--card); font-weight: 700; color: var(--muted); transition: .2s; }
.pill span { opacity: .7; font-weight: 600; }
.pill.is-active { background: var(--pink); color: #2a0f1d; border-color: var(--pink); }
.search { display: flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 999px; background: rgba(0, 0, 0, .3); border: 1px solid var(--card-border); min-width: min(320px, 100%); }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font: inherit; min-width: 0; }
.search:focus-within { border-color: var(--pink-2); }
.emote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 1rem; }
.emote {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem;
  padding: .7rem .6rem .8rem; border-radius: 20px; border: 2px solid transparent;
  background: linear-gradient(170deg, #fffafd, #ffe6f1); color: var(--ink);
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .25s, border-color .25s;
  animation: pop .45s backwards;
}
@keyframes pop { from { opacity: 0; transform: scale(.7); } }
.emote img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.emote-name { font-size: .78rem; font-weight: 600; text-align: center; line-height: 1.25; color: #6b4f60; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.5em; }
.emote:hover, .emote:focus-visible { transform: translateY(-6px) rotate(-2deg) scale(1.12); border-color: var(--pink); box-shadow: 0 18px 30px -14px rgba(255, 122, 182, .95); z-index: 3; }
.emote:nth-child(even):hover { transform: translateY(-6px) rotate(2deg) scale(1.12); }
.emote:active { transform: scale(.94); }
.emote .gif-badge { position: absolute; top: 8px; right: 8px; font-size: .62rem; font-weight: 800; padding: .1rem .4rem; border-radius: 6px; background: var(--royal); color: #fff; letter-spacing: .05em; }
.emote.is-playing .gif-badge { background: #ff4d6d; }
.emote-actions {
  position: absolute; bottom: 8px; left: 50%; display: flex; gap: 6px;
  opacity: 0; transform: translate(-50%, 10px); transition: opacity .25s cubic-bezier(.22, 1, .36, 1), transform .25s cubic-bezier(.22, 1, .36, 1);
}
.emote:hover .emote-actions, .emote:focus-within .emote-actions { opacity: 1; transform: translate(-50%, 0); }
.emote-dl, .emote-cp {
  width: 26px; height: 26px; border: 0; padding: 0;
  display: grid; place-items: center; border-radius: 50%; text-decoration: none;
  background: rgba(42, 15, 29, .82); color: #fff; font-size: .74rem; font-weight: 800;
  transition: background .2s, transform .2s;
}
.emote-dl:hover, .emote-cp:hover { background: var(--pink); color: #2a0f1d; transform: scale(1.1); }
.emote-cp.is-copied { background: #1e9e62; color: #fff; }
.clip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.clip-card {
  display: flex; flex-direction: column; gap: .75rem; padding: .9rem; border-radius: 22px;
  background: var(--card); border: 1px solid var(--card-border);
  transition: transform .25s, border-color .25s;
}
.clip-card:hover { transform: translateY(-4px); border-color: var(--pink-2); }
.clip-card video { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: #000; object-fit: cover; }
.clip-meta { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.clip-meta span { font-size: .88rem; font-weight: 600; color: var(--text); }
.empty { text-align: center; color: var(--muted); padding: 2rem 0; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, transparent, rgba(255, 122, 182, .08)); padding-bottom: 2rem; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1.6rem; align-items: stretch; }
.qr-card { text-align: center; padding: 2rem; border-radius: 28px; background: linear-gradient(160deg, #fff4f9, #ffe0ee); color: var(--ink); box-shadow: var(--shadow); }
.qr-frame { width: min(260px, 100%); margin: 0 auto 1.2rem; padding: 12px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 4px var(--pink-2), 0 16px 40px -16px rgba(224, 64, 138, .7); animation: float 5s ease-in-out infinite; }
.qr-frame img { width: 100%; height: auto; border-radius: 12px; image-rendering: pixelated; }
.qr-card h3 { font-size: 1.8rem; color: #2a1a26; }
.qr-card p { color: #6b4f60; margin: .3rem 0 1.2rem; }
.qr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; }
.btn-copy-email {
  background: #fff; color: #2a1a26; border-color: rgba(224, 64, 138, .35);
  box-shadow: 0 8px 20px -12px rgba(42, 26, 38, .35);
}
.btn-copy-email:hover { border-color: var(--pink); background: #fff0f7; }
.btn-copy-email.is-copied { background: #1e9e62; color: #fff; border-color: #1e9e62; }
.qr-card .copy-status { margin: .65rem 0 0; min-height: 1.2em; font-size: .85rem; font-weight: 600; color: #1e9e62; }
.social-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.social { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 20px; text-decoration: none; background: var(--card); border: 1px solid var(--card-border); transition: transform .25s, border-color .25s, background .25s; }
.social:hover { transform: translateX(6px); border-color: var(--brand, var(--pink)); background: rgba(255, 255, 255, .09); }
.social .ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand, var(--pink)); }
.social .ico svg { width: 26px; height: 26px; fill: #fff; }
.social .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.social .txt small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social .arrow { font-size: 1.3rem; color: var(--muted); transition: transform .25s; }
.social:hover .arrow { transform: translate(3px, -3px); color: var(--text); }
.social.yt { --brand: #ff3b3b; } .social.dc { --brand: #5865f2; } .social.tt { --brand: #111; }
.social.tt .ico { box-shadow: -2px -2px 0 #25f4ee inset, 2px 2px 0 #fe2c55 inset; }
.social.gk { --brand: #ff5a5f; } .social.ml { --brand: #e0408a; }
.dev-credit-card {
  margin-top: 1.8rem; padding: 1.5rem 1.8rem; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(16, 26, 66, .76), rgba(34, 24, 62, .72));
  border: 1px solid rgba(140, 210, 255, .28); backdrop-filter: blur(14px);
  box-shadow: var(--shadow); display: flex; align-items: center;
  justify-content: space-between; gap: 1.4rem; flex-wrap: wrap;
}
.dev-credit-info h3 { margin: .2rem 0 .35rem; font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
.dev-alias { color: var(--pink-soft); font-weight: 700; }
.dev-role { margin: 0; color: var(--muted); font-size: .92rem; }
.dev-credit-actions { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.dev-pill {
  padding: .46rem .88rem; border-radius: 999px; font-size: .84rem; font-weight: 600;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  color: var(--text); transition: .2s;
}
.dev-pill:hover { background: rgba(255, 122, 182, .2); border-color: var(--pink-2); transform: translateY(-1px); }

.footer-bottom { margin-top: 3.2rem; padding-top: 1.5rem; border-top: 1px solid var(--card-border); display: flex; justify-content: space-between; align-items: flex-end; gap: 1.2rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.footer-bottom p { margin: 0; }
.footer-meta { display: grid; gap: .35rem; }
.footer-dev { color: var(--text); font-size: .88rem; }
.footer-dev strong { color: var(--pink-soft); }
.footer-right { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .45rem; }
.footer-links a {
  padding: .28rem .72rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  color: var(--text); transition: .2s;
}
.footer-links a:hover { background: rgba(110, 195, 255, .18); border-color: rgba(110, 195, 255, .5); }
.to-top { text-decoration: none; font-weight: 600; }
.to-top:hover { color: var(--pink-2); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem; padding: 1rem; background: rgba(4, 6, 18, .92); backdrop-filter: blur(8px); animation: fade .25s; }
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .8rem; max-height: 100%; min-width: 0; }
.lb-media { position: relative; display: grid; place-items: center; }
.lb-media img { max-width: min(92vw, 1100px); max-height: calc(100svh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 16px; background: repeating-conic-gradient(#fff 0 25%, #f3e9ef 0 50%) 0 0 / 22px 22px; transition: opacity .25s; }
.lb-media img.is-loading { opacity: .25; }
.lb-spinner { position: absolute; width: 42px; height: 42px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .2); border-top-color: var(--pink); animation: spin 1s linear infinite; opacity: 0; }
.lb-media img.is-loading + .lb-spinner { opacity: 1; }
.lb-figure figcaption { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; width: 100%; max-width: 1100px; font-weight: 600; }
.lb-meta { display: flex; align-items: center; gap: .8rem; color: var(--muted); }
.lb-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); font-size: 1.2rem; }
.lb-nav { width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); font-size: 2rem; line-height: 1; transition: background .2s; }
.lb-close:hover, .lb-nav:hover { background: var(--pink); color: #2a0f1d; }
.lb-nav[hidden] { visibility: hidden; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text { order: 2; }
  .hero-visual { order: 1; min-height: 420px; }
  .hero-model { width: min(270px, 68%); }
  .hero-speech { left: auto; right: 0; top: 2%; max-width: 185px; font-size: .78rem; }
  .hero-title, .hero-actions, .hero-stats { justify-content: center; }
  .hero-quote { margin-inline: auto; text-align: left; }
  .about-grid, .contact-grid, .switch-body { grid-template-columns: 1fr; }
  .stage { min-height: 460px; }
  .stage img { height: 440px; }
  .stage-info { text-align: center; }
  .stage-info .tags, .thumbs { justify-content: center; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: .2rem;
    padding: 1rem 1.25rem 1.5rem; background: rgba(8, 13, 36, .97); backdrop-filter: blur(14px);
    transform: translateY(-120%); opacity: 0; transition: transform .35s, opacity .35s; box-shadow: 0 20px 30px -15px rgba(0, 0, 0, .7);
  }
  .nav-menu.is-open { transform: none; opacity: 1; }
  .nav-menu a { padding: .85rem 1rem; font-size: 1.05rem; }
  .site-header:has(.nav-menu.is-open) { background: rgba(8, 13, 36, .97); }
  .profile-card { padding: 1.5rem 1.2rem; }
  .profile-top { flex-direction: column; text-align: center; }
  .milestones li { width: 58px; height: 58px; }
  .timeline::before { left: 19px; }
  .chapter { grid-template-columns: 40px 1fr; gap: .8rem; }
  .chapter-marker { width: 40px; height: 40px; font-size: 1.05rem; border-width: 2px; }
  .chapter-card { padding: 1.1rem 1.1rem; }
  .chapter-body p { text-align: left; }
  .switcher { padding: .9rem; border-radius: 24px; }
  .switch-tab { font-size: .85rem; padding: .7rem .2rem; }
  .stage { min-height: 400px; }
  .stage img { height: 380px; }
  .emote-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: .7rem; }
  .emote-toolbar { flex-direction: column; align-items: stretch; }
  .lightbox { grid-template-columns: 1fr; padding: 4rem .6rem 1rem; }
  .lb-nav { position: absolute; bottom: 1rem; z-index: 2; }
  .lb-prev { left: 1rem; } .lb-next { right: 1rem; }
  .lb-figure figcaption { padding: 0 3.8rem; justify-content: center; text-align: center; }
  .lb-media img { max-height: calc(100svh - 190px); }
}
@media (max-width: 420px) {
  .profile-stats { grid-template-columns: 1fr; }
  .hero-stats li { min-width: 0; flex: 1; }
}
@media (hover: none) {
  .art-item::after { opacity: 1; transform: none; content: "🔍"; padding: 1rem; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
