:root {
  color-scheme: dark;
  --bg: #100b14;
  --panel: #19111f;
  --panel-2: #24172c;
  --ink: #f3ecef;
  --muted: #a99cab;
  --quiet: #736878;
  --line: rgba(255,255,255,.12);
  --purple: #c151ad;
  --purple-bright: #ec71cf;
  --soul: #79f5d4;
  --gold: #f1cf63;
  --red: #ff6e72;
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 320px; overflow-x: hidden; color: var(--ink); background: radial-gradient(circle at 68% 20%, #3b173e 0, transparent 32rem), var(--bg); }
button { font: inherit; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .11; z-index: 20; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); mix-blend-mode: overlay; }
.site-header { width: min(1440px, calc(100% - 48px)); min-height: 82px; margin: auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; white-space: nowrap; font: 800 .72rem/1.05 ui-monospace, monospace; letter-spacing: .11em; }
.wordmark-mark { width: 39px; height: 39px; display: block; flex: 0 0 auto; }
.wordmark-mark img { width: 100%; height: 100%; display: block; }
.site-header p { margin: 0; color: var(--muted); font-size: .75rem; }
.status-dot { width: 7px; height: 7px; margin-right: 7px; display: inline-block; border-radius: 50%; background: var(--soul); box-shadow: 0 0 14px var(--soul); }
main { width: min(1440px, calc(100% - 48px)); margin: auto; }
.hero { min-height: calc(100vh - 82px); display: grid; grid-template-columns: 1fr minmax(320px, .95fr) minmax(340px, .85fr); gap: clamp(24px, 4vw, 74px); align-items: center; padding: 64px 0 76px; }
.eyebrow { margin: 0 0 18px; color: var(--purple-bright); font: 800 .68rem ui-monospace, monospace; letter-spacing: .17em; }
h1 { margin: 0; font-size: clamp(3.5rem, 6.8vw, 7.4rem); line-height: .86; letter-spacing: -.075em; font-weight: 900; }
h1 em { color: var(--gold); font-style: normal; }
.hero-title span, .hero-title em { display: block; }
.hero-title { width: fit-content; margin-inline: 0; font-size: clamp(2.45rem, 4.15vw, 4.55rem); line-height: .88; text-align: left; }
.hero-title .title-gold { color: var(--gold); }
.hero-title .title-or { margin: .14em 0 .14em .52em; color: var(--muted); font-size: 1em; line-height: .88; letter-spacing: -.035em; }
.hero-title .title-curse { margin-left: 1.04em; color: #c7a8d2; font-size: 1em; line-height: .88; letter-spacing: -.035em; }
.intro { align-self: center; }
.egg-stage { min-height: 540px; position: relative; display: grid; place-items: center; isolation: isolate; }
.egg-stage::before { content: ""; position: absolute; width: min(420px, 88%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(238,107,210,.19), rgba(193,81,173,.05) 49%, transparent 70%); filter: blur(3px); }
.stage-orbit { position: absolute; border: 1px solid rgba(236,113,207,.22); border-radius: 50%; transform: rotate(-13deg); }
.orbit-one { width: 88%; aspect-ratio: 1; animation: orbit 24s linear infinite; }
.orbit-two { width: 64%; aspect-ratio: 1; border-style: dashed; animation: orbit 17s linear infinite reverse; }
.stage-orbit::after { content: ""; position: absolute; top: 13%; left: 12%; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 18px var(--gold); }
.egg-aura { position: absolute; width: 210px; height: 210px; border-radius: 50%; background: #e76dcc; filter: blur(74px); opacity: .18; transition: opacity .6s, transform .6s; z-index: -1; }
.egg-aura.growing { opacity: .52; transform: scale(1.4); }
.egg-button { width: min(255px, 60vw); aspect-ratio: 1; position: relative; padding: 0; border: 0; border-radius: 42% 42% 50% 50%; background: transparent; cursor: pointer; filter: drop-shadow(0 28px 35px rgba(0,0,0,.48)); transition: transform .35s ease, filter .35s ease; }
.egg-button:hover { transform: translateY(-7px) scale(1.025); filter: drop-shadow(0 35px 48px rgba(236,113,207,.23)); }
.egg-button:focus-visible { outline: 2px solid var(--soul); outline-offset: 10px; }
.egg-button img { width: 100%; height: 100%; object-fit: contain; image-rendering: auto; border-radius: 26px; }
.egg-button.holding { animation: breathe 3.6s ease-in-out infinite; }
.egg-button.hatching { animation: crack .32s ease-in-out 5; }
.egg-state { position: absolute; bottom: 34px; margin: 0; padding: 8px 13px; color: var(--muted); border: 1px solid var(--line); background: rgba(16,11,20,.76); font: 700 .68rem ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.ledger { padding: 25px; border: 1px solid rgba(236,113,207,.27); background: linear-gradient(145deg, rgba(45,24,52,.88), rgba(21,14,26,.94)); box-shadow: 0 26px 80px rgba(0,0,0,.22); }
.mode-config { margin-bottom: 24px; display: grid; gap: 12px; }
.mode-tabs { padding: 3px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: rgba(0,0,0,.12); }
.mode-tabs button { min-height: 36px; border: 0; color: var(--quiet); background: transparent; cursor: pointer; font-size: .7rem; font-weight: 750; }
.mode-tabs button.active { color: #1a101d; background: var(--purple-bright); }
.mode-tabs button:disabled { cursor: not-allowed; opacity: .62; }
.timer-config { min-height: 43px; padding: 0 12px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); color: var(--muted); font-size: .7rem; }
.timer-config[hidden] { display: none; }
.timer-config input { width: 64px; margin-left: auto; padding: 6px 7px; border: 1px solid var(--line); color: var(--soul); background: #120d16; font: 800 .82rem ui-monospace, monospace; text-align: center; }
.timer-config em { color: var(--quiet); font-style: normal; }
.ledger-head { display: flex; align-items: end; justify-content: space-between; padding-bottom: 18px; }
.ledger-head > span { color: var(--muted); font-size: .76rem; }
.ledger-head strong { display: flex; align-items: center; gap: 7px; color: var(--soul); font: 850 clamp(1.65rem, 2.65vw, 3rem)/.95 ui-monospace, monospace; letter-spacing: -.06em; }
.ledger-head img, .hatch-souls img { width: 27px; height: 27px; object-fit: contain; filter: drop-shadow(0 0 9px rgba(121,245,212,.45)); }
.growth-track { height: 4px; overflow: hidden; background: rgba(255,255,255,.08); }
.growth-track span { display: block; width: 0; height: 100%; background: var(--soul); box-shadow: 0 0 15px var(--soul); transition: width .2s linear; }
.progress-caption { margin-top: 7px; display: flex; justify-content: space-between; color: var(--quiet); font-size: .61rem; }
.progress-caption strong { color: var(--muted); font: 700 .63rem ui-monospace, monospace; }
.ledger-meta { margin: 22px 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.ledger-meta p { margin: 0; }
.ledger-meta p + p { padding-left: 14px; border-left: 1px solid var(--line); }
.ledger-meta span, .ledger-meta strong { display: block; }
.ledger-meta span { margin-bottom: 7px; color: var(--quiet); font-size: .63rem; }
.ledger-meta strong { font-size: .76rem; }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.controls .primary { grid-column: 1 / -1; }
.primary, .secondary, .decision button { min-height: 48px; border: 0; cursor: pointer; transition: transform .2s ease, opacity .2s ease, background .2s ease; }
.primary { position: relative; isolation: isolate; overflow: hidden; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; color: #17101d; background: var(--soul); font-weight: 900; }
.primary > * { position: relative; z-index: 1; }
.primary .action-label { display: inline-flex; align-items: center; gap: 9px; }
.primary .channel-label { width: 100%; text-align: center; }
.primary.channeling { color: #fff; background: #193719; text-shadow: 0 1px 2px #111, 0 0 5px #111; }
.primary.channeling::before { content: ""; position: absolute; z-index: -1; inset: 0 auto 0 0; width: var(--hatch-progress, 0%); background: linear-gradient(90deg, #e2ddd0, #f1ede3); box-shadow: 7px 0 16px rgba(240,235,219,.22); }
.primary:hover, .secondary:hover:not(:disabled), .decision button:hover { transform: translateY(-2px); }
.primary.danger-action { color: #1c1013; background: var(--gold); }
.primary.danger-action.channeling { color: #fff; background: #193719; }
.secondary { color: var(--muted); border: 1px solid var(--line); background: rgba(255,255,255,.025); font-size: .76rem; }
.secondary:disabled { cursor: not-allowed; opacity: .35; }
.secondary.paused { color: var(--gold); border-color: rgba(241,207,99,.45); }
.hint { margin: 14px 0 0; color: var(--quiet); font-size: .66rem; line-height: 1.55; }
.buff-section { min-height: 78vh; padding: 110px 0; display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(40px, 8vw, 130px); align-items: center; border-top: 1px solid var(--line); }
.section-copy h2 { margin: 0 0 30px; font-size: clamp(2.5rem, 5vw, 5.4rem); line-height: .98; letter-spacing: -.055em; }
.section-copy > p:last-child { max-width: 28rem; color: var(--muted); line-height: 1.8; }
.buff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.buff-grid article { min-height: 175px; position: relative; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.buff-grid article::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 35% 28%, rgba(241,207,99,.11), transparent 48%); opacity: 0; transition: opacity .4s; }
.buff-grid article.won { border-color: rgba(241,207,99,.42); }
.buff-grid article.won::before { opacity: 1; }
.buff-grid img { width: 46px; height: 46px; position: absolute; top: 21px; left: 21px; opacity: .68; filter: grayscale(.2); }
.buff-grid article.won img { opacity: 1; filter: drop-shadow(0 0 12px rgba(241,207,99,.33)); }
.buff-grid span { font-weight: 760; }
.buff-grid strong { margin-top: 6px; color: var(--quiet); font-size: .68rem; font-weight: 500; }
.buff-grid article.won strong { color: var(--gold); }
.decision { min-height: 72vh; padding: 100px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-top: 1px solid var(--line); }
.decision blockquote { margin: 12px 0 42px; color: var(--gold); font-size: clamp(2.3rem, 5.6vw, 6.3rem); font-weight: 850; line-height: 1.1; letter-spacing: -.055em; }
.decision button { padding: 0 24px; color: var(--ink); border: 1px solid var(--line); background: transparent; font-size: .76rem; }
footer { width: min(1440px, calc(100% - 48px)); margin: auto; padding: 27px 0 34px; display: flex; justify-content: space-between; gap: 20px; color: var(--quiet); border-top: 1px solid var(--line); font-size: .64rem; line-height: 1.6; }
dialog { width: min(520px, calc(100% - 32px)); padding: 0; border: 1px solid rgba(241,207,99,.4); background: #1b1220; color: var(--ink); box-shadow: 0 35px 120px #000; }
dialog::backdrop { background: rgba(6,3,8,.82); backdrop-filter: blur(8px); }
.hatch-card, .timer-ready-card { padding: 38px; }
.hatch-card h2 { margin: 0 0 27px; font-size: clamp(2.3rem, 8vw, 4rem); letter-spacing: -.055em; }
.timer-ready-card h2 { margin: 0 0 14px; font-size: clamp(2.2rem, 7vw, 3.7rem); letter-spacing: -.055em; }
.timer-ready-card > p:not(.eyebrow) { margin: 0 0 26px; color: var(--muted); line-height: 1.75; }
.timer-ready-card .primary { width: 100%; }
.timer-ready-card .primary .action-label { margin: 0 auto; }
kbd { min-width: 24px; padding: 3px 7px; display: inline-grid; place-items: center; border: 1px solid currentColor; border-radius: 3px; font: 800 .72rem ui-monospace, monospace; }
.hatch-souls { padding: 20px 0; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hatch-souls strong { color: var(--soul); font: 850 2.7rem ui-monospace, monospace; }
.hatch-souls span { grid-column: 2; color: var(--muted); font-size: .68rem; }
.result-buffs { margin: 18px 0 24px; display: flex; flex-wrap: wrap; gap: 7px; }
.result-buffs span { padding: 8px 10px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); color: var(--muted); font-size: .7rem; }
.result-buffs img { width: 19px; height: 19px; }
.hatch-card .primary { width: 100%; }
@keyframes orbit { to { transform: rotate(347deg); } }
@keyframes breathe { 50% { transform: translateY(-5px) scale(1.025); filter: drop-shadow(0 34px 42px rgba(236,113,207,.3)); } }
@keyframes crack { 25% { transform: translateX(-5px) rotate(-1deg); } 75% { transform: translateX(5px) rotate(1deg); } }
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .intro { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .site-header, main, footer { width: min(100% - 28px, 1440px); }
  .site-header p { display: none; }
  .hero { display: block; padding: 54px 0 70px; }
  h1 { font-size: clamp(4rem, 20vw, 6rem); }
  .egg-stage { min-height: 400px; }
  .egg-button { width: 210px; }
  .egg-state { bottom: 8px; }
  .ledger { margin-top: 18px; padding: 20px; }
  .buff-section { display: block; padding: 80px 0; }
  .buff-grid { margin-top: 45px; grid-template-columns: 1fr 1fr; }
  .buff-grid article { min-height: 150px; }
  footer { display: block; }
  footer span { display: block; margin-top: 8px; }
}
@media (max-width: 430px) {
  .ledger-meta { grid-template-columns: 1fr; gap: 13px; }
  .ledger-meta p + p { padding: 13px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .buff-grid { grid-template-columns: 1fr; }
  .buff-grid article { min-height: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
