/* $ALEC landing: coin dive → 点睛 lion → live board → firecracker string */
.home main { position: relative; }

/* ------------------------------------------------------------------ 1 · the dive (one long pinned scene) */
.dive { position: relative; height: 330vh; height: 330svh; }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate;
  --S: max(min(100vw, 100svh), min(140vw, 78svh)); }
.pin-bg { position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(70% 55% at 50% 45%, rgba(240, 185, 11, .16), transparent 70%), radial-gradient(120% 90% at 50% 120%, rgba(232, 64, 44, .10), transparent 60%), var(--ink); }
.pin-bg::after { content: ''; position: absolute; inset: 0; opacity: .06; background: url('/media/cloud.svg') 0 0 / 240px auto repeat; }

.lion-layer { position: absolute; inset: 0; z-index: 1; background: #000; clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%); will-change: clip-path; }
.lion-layer.open { clip-path: none; }
.lion { position: absolute; left: 50%; top: 50%; width: var(--S); aspect-ratio: 1; transform: translate(-50%, -50%);
  -webkit-mask-image: radial-gradient(closest-side, #000 74%, transparent 100%); mask-image: radial-gradient(closest-side, #000 74%, transparent 100%); }
.lion-img, .lion-awake, .lion-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lion-vid { opacity: 0; transition: opacity .25s; }
.lion.playing .lion-vid { opacity: 1; }
.lion-img { transition: transform 1.2s cubic-bezier(.2, .8, .2, 1), filter 1.2s; filter: brightness(.82) saturate(.9); transform: scale(1.04); }
.pin.lionphase .lion-img { filter: none; transform: none; }

.eye { position: absolute; left: var(--x); top: var(--y); width: 19%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 0; padding: 0; border-radius: 50%;
  background: transparent; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .5s; -webkit-tap-highlight-color: transparent; }
.pin.lionphase:not(.woke-on) .eye { opacity: 1; pointer-events: auto; }
.eye::before, .eye::after { content: ''; position: absolute; inset: 14%; border-radius: 50%; border: 2px solid rgba(255, 231, 160, .85); box-shadow: 0 0 22px rgba(240, 185, 11, .8); animation: ring 1.7s ease-out infinite; }
.eye::after { animation-delay: .85s; }
@keyframes ring { from { transform: scale(.55); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.eye.dotted::before, .eye.dotted::after { animation: none; opacity: 0; }
.eye i { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(0); border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #FF7A5C, #E8402C 45%, #8E1A0E 80%); box-shadow: 0 0 0 3px rgba(232, 64, 44, .25), 0 0 26px rgba(232, 64, 44, .9);
  transition: transform .35s cubic-bezier(.3, 1.8, .5, 1); }
.eye i::before { content: ''; position: absolute; inset: -38%; background: url('/media/splat.svg') center / contain no-repeat; opacity: 0; transform: scale(.4) rotate(-20deg); transition: .4s .05s; }
.eye.dotted i { transform: translate(-50%, -50%) scale(1); }
.eye.dotted i::before { opacity: .95; transform: none; }
.woke-on .eye { opacity: 0 !important; transition: opacity .3s; }

.coin { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; touch-action: pan-y; cursor: pointer; }
.coin-flat { position: absolute; z-index: 3; left: 50%; top: 42%; width: min(62vw, 46svh); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); animation: flatspin 6s linear infinite; }
@keyframes flatspin { 50% { transform: translate(-50%, -50%) rotateY(180deg); } }

.hero-copy { position: absolute; z-index: 4; left: 0; right: 0; bottom: calc(var(--crawl) + 20px); padding: 0 20px; text-align: center; pointer-events: none; transition: opacity .2s; }
.hero-copy a { pointer-events: auto; }
.kick { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 7px 12px; border-radius: 999px; background: rgba(232, 64, 44, .12); border: 1px solid rgba(232, 64, 44, .4);
  font: 700 12px/1 var(--disp); letter-spacing: .1em; color: #FF9C88; }
html[data-lang="zh"] .kick { font: 400 14px/1 var(--huang); letter-spacing: .14em; }
.kick .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: blink 1.2s infinite; }
.title { margin: 0; display: flex; align-items: baseline; justify-content: center; gap: .18em; line-height: .95; }
.t-cn { font: 400 clamp(64px, 19vw, 150px)/1 var(--brush); background: linear-gradient(180deg, #FFF3C4 10%, #FCD535 45%, #C88F05 90%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 24px rgba(240, 185, 11, .35)); }
.t-tk { font: 900 clamp(30px, 9vw, 72px)/1 var(--disp); color: var(--text); letter-spacing: -.01em; }
.lede { max-width: 30em; margin: 10px auto 18px; color: var(--soft); font-size: clamp(15px, 3.9vw, 18px); }
.hero-act { display: flex; justify-content: center; gap: 10px; }

.tap-coin { position: absolute; z-index: 4; left: 50%; top: calc(var(--top) + 4px); transform: translateX(-50%); margin: 0; font: 600 12px/1 var(--body); color: var(--gold);
  padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line); background: rgba(6, 7, 10, .55); pointer-events: none; transition: opacity .3s; letter-spacing: .06em; }
.tap-coin::before { content: '✦ '; color: var(--bnb); }

.scroll-hint { display: none; }
.cap { position: absolute; z-index: 4; left: 0; right: 0; top: 78%; margin: 0; text-align: center; transform: translateY(-50%); opacity: 0; pointer-events: none; }
.cap span { font: 400 clamp(48px, 13vw, 120px)/1 var(--brush); color: #FFF3C4; text-shadow: 0 0 40px rgba(240, 185, 11, .7), 0 4px 0 rgba(0, 0, 0, .5); }
html[data-lang="en"] .cap span { font: 900 clamp(30px, 8vw, 72px)/1.05 var(--disp); }

.lion-copy::before { content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: calc(-1 * (var(--top) + 8px)); height: calc(100% + var(--top) + 64px); background: linear-gradient(rgba(0, 0, 0, .9) 40%, transparent); }
.lion-copy { position: absolute; z-index: 4; left: 0; right: 0; top: calc(var(--top) + 8px); text-align: center; padding: 0 68px; opacity: 0; transform: translateY(10px); transition: .6s; pointer-events: none; }
.pin.lionphase:not(.woke-on) .lion-copy { opacity: 1; transform: none; }
.lc-k { margin: 0 0 4px; font: 400 15px/1 var(--huang); color: #FF9C88; letter-spacing: .3em; }
html[data-lang="en"] .lc-k { font: 700 11px/1 var(--disp); letter-spacing: .14em; }
.lc-t { margin: 0; font: 400 clamp(32px, 9vw, 60px)/1.1 var(--huang); color: var(--text); text-shadow: 0 3px 20px #000; }
html[data-lang="en"] .lc-t { font: 800 clamp(26px, 7vw, 48px)/1.1 var(--disp); }
.lc-d { margin: 8px auto 0; max-width: 24em; color: var(--gold); font-size: 15.5px; text-shadow: 0 2px 10px #000; }

.woke { position: absolute; z-index: 4; left: 0; right: 0; bottom: calc(var(--crawl) + 22px); text-align: center; padding: 0 20px; opacity: 0; transform: translateY(20px); pointer-events: none; transition: .7s cubic-bezier(.2, .8, .2, 1); }
.woke-on .woke { opacity: 1; transform: none; pointer-events: auto; transition-delay: .9s; }
.woke-t { margin: 0; font: 400 clamp(70px, 22vw, 160px)/1 var(--brush); background: linear-gradient(180deg, #FFF3C4, #FCD535 50%, #D79A05); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 30px rgba(240, 185, 11, .55)); }
html[data-lang="en"] .woke-t { font: 900 clamp(48px, 14vw, 110px)/1 var(--disp); }
.woke-d { margin: 4px auto 18px; color: var(--text); font-size: 17px; text-shadow: 0 2px 14px #000; }
.woke::before { content: ''; position: absolute; inset: -60px 0 -40px; z-index: -1; background: linear-gradient(transparent, rgba(0, 0, 0, .85) 45%); }

@media (min-width: 900px) and (min-aspect-ratio: 11/10) {
  .hero-copy { left: max(5vw, 32px); right: auto; top: 50%; bottom: auto; transform: translateY(-38%); width: min(46vw, 600px); text-align: left; padding: 0; }
  .title { justify-content: flex-start; flex-direction: column; align-items: flex-start; gap: 0; }
  .t-cn { font-size: clamp(110px, 12vw, 190px); }
  .lede { margin-left: 0; }
  .hero-act { justify-content: flex-start; }
  .tap-coin { left: 65%; top: auto; bottom: calc(9vh + var(--crawl)); }
  .scroll-hint { display: flex; position: absolute; z-index: 4; left: max(5vw, 32px); bottom: calc(var(--crawl) + 22px); align-items: center; gap: 10px; color: var(--mute); font-size: 13px; letter-spacing: .08em; transition: opacity .3s; }
  .scroll-hint i { width: 22px; height: 34px; border-radius: 12px; border: 1.5px solid var(--line2); position: relative; }
  .scroll-hint i::after { content: ''; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--bnb); animation: wheel 1.6s infinite; }
  @keyframes wheel { 60% { transform: translateY(10px); opacity: 0; } }
}

/* ------------------------------------------------------------------ 2 · breaking: live board + feed */
.wrap { width: min(980px, 100%); margin: 0 auto; padding: 0 18px; }
.news { position: relative; padding: 90px 0 70px; background: linear-gradient(#000, var(--ink) 180px); }
.lower { display: inline-flex; align-items: stretch; margin: 0 0 14px; border-radius: 6px; overflow: hidden; font-weight: 800; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
.lower b { background: var(--red); color: #fff; padding: 8px 12px; font: 400 16px/1 var(--huang); letter-spacing: .14em; }
html[data-lang="en"] .lower b { font: 800 12px/1.3 var(--disp); }
.lower span { background: linear-gradient(90deg, var(--bnb2), var(--bnb)); color: #111; padding: 8px 14px; font: 800 13px/1.25 var(--disp); letter-spacing: .06em; }
.h2 { margin: 0 0 22px; font: 400 clamp(34px, 8vw, 64px)/1.08 var(--huang); color: var(--text); }
html[data-lang="en"] .h2 { font: 800 clamp(28px, 6.4vw, 52px)/1.1 var(--disp); letter-spacing: -.01em; }
.flaps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.flap { padding: 14px 12px 16px; border-radius: 16px; background: linear-gradient(180deg, #14171E, #0D0F14); border: 1px solid var(--line); text-align: center; min-width: 0; }
.flap small { display: block; color: var(--mute); font-size: 12.5px; margin-bottom: 8px; letter-spacing: .06em; }
.digits { display: flex; justify-content: center; gap: 3px; font: 800 clamp(20px, 6vw, 38px)/1 var(--disp); color: var(--bnb2); perspective: 400px; }
.digits span { display: inline-grid; place-items: center; min-width: .78em; padding: .16em .06em; border-radius: 6px; position: relative;
  background: linear-gradient(180deg, #23272F 0 49.5%, #0B0D11 49.5% 50.5%, #1B1F26 50.5%); box-shadow: 0 2px 0 rgba(0, 0, 0, .6); }
.digits span.sep { background: none; min-width: .3em; box-shadow: none; padding: .16em 0; }
.feed-wrap { position: relative; }

/* ------------------------------------------------------------------ 3 · how: firecracker string */
.how { position: relative; padding: 80px 0 90px; overflow: hidden;
  background: radial-gradient(90% 60% at 50% 100%, rgba(232, 64, 44, .12), transparent 70%), radial-gradient(60% 50% at 50% 0%, rgba(240, 185, 11, .07), transparent 70%); }
.how-d { margin: -8px 0 30px; color: var(--soft); max-width: 34em; }
.string { position: relative; display: grid; gap: 18px; padding-left: 34px; margin-bottom: 34px; }
.rope { position: absolute; left: 11px; top: -10px; bottom: 10px; width: 3px; border-radius: 2px; background: #3A2A14; overflow: visible; }
.rope i { position: absolute; left: 0; right: 0; top: 0; height: var(--burn, 0%); background: linear-gradient(var(--bnb2), var(--red)); border-radius: 2px; box-shadow: 0 0 12px var(--bnb); }
.rope i::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: radial-gradient(#fff, var(--bnb2) 40%, transparent 70%);
  box-shadow: 0 0 18px 6px rgba(252, 213, 53, .6); opacity: var(--lit, 0); animation: spark .12s infinite alternate; }
@keyframes spark { to { transform: scale(1.4) rotate(40deg); } }
.ck { position: relative; display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: center; padding: 12px 14px 12px 12px; border-radius: 16px;
  background: linear-gradient(90deg, rgba(232, 64, 44, .06), rgba(255, 255, 255, .015)); border: 1px solid rgba(232, 64, 44, .2); transition: .4s; }
.ck::before { content: ''; position: absolute; left: -24px; top: 50%; width: 22px; height: 2px; background: #3A2A14; }
.ck-body { position: relative; width: 54px; height: 74px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(90deg, #7E140A, #E8402C 45%, #9E1B0D); box-shadow: inset 0 0 0 1px rgba(255, 200, 120, .3); transition: .4s; }
.ck-body::before, .ck-body::after { content: ''; position: absolute; left: -2px; right: -2px; height: 9px; border-radius: 3px; background: linear-gradient(var(--bnb2), #B88606); }
.ck-body::before { top: 6px; } .ck-body::after { bottom: 6px; }
.ck-ic { font: 800 22px/1 var(--disp); color: #FFE7A0; text-shadow: 0 1px 0 #6D1209; }
.ck-tx b { display: block; font: 400 22px/1.2 var(--huang); color: var(--text); }
html[data-lang="en"] .ck-tx b { font: 800 17px/1.25 var(--disp); }
.ck-tx small { display: block; color: var(--mute); font-size: 14px; margin-top: 3px; }
.ck.pop { border-color: var(--line2); background: linear-gradient(90deg, rgba(240, 185, 11, .12), rgba(255, 255, 255, .02)); }
.ck.pop .ck-body { background: linear-gradient(90deg, #A97C05, #FCD535 45%, #B88606); animation: bang .5s cubic-bezier(.3, 1.8, .5, 1); }
.ck.pop .ck-ic { color: #3B2600; text-shadow: none; }
.ck.pop .ck-tx b { color: var(--bnb2); }
@keyframes bang { 30% { transform: scale(1.18) rotate(-6deg); } }
.how-go { text-align: center; }

@media (min-width: 900px) {
  .string { grid-template-columns: repeat(4, 1fr); padding: 40px 0 0; gap: 16px; }
  .rope { left: 0; right: 0; top: 14px; bottom: auto; width: auto; height: 3px; }
  .rope i { height: 100%; width: var(--burn, 0%); background: linear-gradient(90deg, var(--bnb2), var(--red)); }
  .rope i::after { left: auto; right: -7px; bottom: auto; top: 50%; margin: -7px 0 0; }
  .ck { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 18px 14px 20px; }
  .ck::before { left: 50%; top: -26px; width: 2px; height: 26px; }
  .ck-body { width: 62px; height: 90px; }
}
