:root {
  --void: #060711;
  --void-soft: #0b0d1b;
  --panel: rgba(13, 15, 31, .76);
  --panel-solid: #101326;
  --ink: #f6f7ff;
  --muted: #949bb5;
  --dim: #656b83;
  --line: rgba(255, 255, 255, .12);
  --line-hot: rgba(91, 221, 255, .46);
  --violet: #9b6cff;
  --violet-hot: #c88cff;
  --cyan: #57e6ff;
  --lime: #b5ff56;
  --gold: #ffc857;
  --danger: #ff6b7a;
  --display: "Arial Narrow", "Bahnschrift Condensed", "PingFang SC", "Microsoft YaHei", sans-serif;
  --sans: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--ink);
  background:
    radial-gradient(70rem 46rem at 85% -10%, rgba(89, 61, 196, .24), transparent 62%),
    radial-gradient(54rem 36rem at -10% 38%, rgba(28, 161, 196, .12), transparent 65%),
    var(--void);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
body.scene-admin {
  background: radial-gradient(60rem 32rem at 75% -10%, rgba(75, 92, 163, .13), transparent 65%), #080a14;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
::selection { color: #071018; background: var(--cyan); }

.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; color: #061018; background: var(--cyan); transition: top .2s; }
.skip-link:focus { top: 16px; }
#code-field { position: fixed; inset: 0; z-index: -3; width: 100%; height: 100%; pointer-events: none; opacity: .7; }
#cursor-energy { position: fixed; z-index: -2; width: 34rem; height: 34rem; margin: -17rem 0 0 -17rem; border-radius: 50%; pointer-events: none; opacity: 0; background: radial-gradient(circle, rgba(94, 221, 255, .09), rgba(150, 88, 255, .04) 42%, transparent 70%); transition: opacity .35s; }
.scene-immersive #cursor-energy { opacity: 1; }
.scene-admin #code-field { opacity: .18; }
.scene-admin #cursor-energy { display: none; }
.ambient-grid { position: fixed; inset: 0; z-index: -2; pointer-events: none; background: linear-gradient(105deg, transparent 49.8%, rgba(87,230,255,.035) 50%, transparent 50.2%); }

.wrap { width: min(1380px, calc(100% - 72px)); margin: 0 auto; }
.site-header { height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); position: relative; z-index: 30; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; position: relative; display: grid; place-items: center; border: 1px solid rgba(87,230,255,.35); background: rgba(87,230,255,.035); transform: rotate(45deg); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; background: var(--cyan); box-shadow: 0 0 12px rgba(87,230,255,.8); }
.brand-mark::before { width: 15px; height: 2px; }
.brand-mark::after { width: 2px; height: 15px; }
.brand-mark i { position: absolute; width: 4px; height: 4px; background: var(--lime); border-radius: 50%; }
.brand-mark i:first-child { top: 4px; left: 4px; }
.brand-mark i:last-child { right: 4px; bottom: 4px; }
.brand-copy { display: flex; flex-direction: column; font: 700 15px/1 var(--mono); letter-spacing: .18em; }
.brand-copy em { margin-top: 5px; color: var(--cyan); font-style: normal; font-size: 10px; letter-spacing: .34em; }
.nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 42px); }
.nav a, .nav-exit { color: var(--muted); border: 0; background: transparent; text-decoration: none; font: 600 13px/1 var(--mono); letter-spacing: .06em; cursor: pointer; transition: color .2s; }
.nav a span { margin-right: 7px; color: var(--dim); font-size: 11px; }
.nav a:hover, .nav a:focus-visible, .nav-exit:hover { color: var(--cyan); }
.nav-form { display: inline; }
.nav .nav-gallery { padding: 12px 16px; color: var(--ink); border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.nav .nav-gallery:hover, .nav .nav-gallery:focus-visible { border-color: var(--line-hot); background: rgba(87,230,255,.055); }
.nav .nav-login { padding: 12px 18px; color: var(--ink); border: 1px solid var(--line); }
.nav-login b { color: var(--lime); margin-left: 8px; }

.notice { position: relative; z-index: 20; display: flex; align-items: center; gap: 10px; margin: 18px 0 0; padding: 12px 16px; border: 1px solid var(--line); background: rgba(11,13,27,.9); font-size: 13px; }
.notice span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-family: var(--mono); }
.notice-ok span { color: var(--lime); border: 1px solid rgba(181,255,86,.4); }
.notice-error span { color: var(--danger); border: 1px solid rgba(255,107,122,.4); }

.eyebrow, .section-index { margin: 0; color: var(--muted); font: 600 12px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.eyebrow span { color: var(--cyan); }
.section-index { color: var(--violet-hot); }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.045em; }
h1 em, h2 em { color: transparent; font-style: normal; -webkit-text-stroke: 1px rgba(164, 219, 255, .72); text-shadow: 0 0 36px rgba(87,230,255,.12); }

.btn { min-height: 52px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; border: 0; text-decoration: none; cursor: pointer; font: 700 13px/1 var(--mono); letter-spacing: .03em; transition: transform .2s, border-color .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #071018; background: var(--cyan); box-shadow: 0 12px 32px rgba(87,230,255,.14); }
.btn-primary:hover { box-shadow: 0 15px 40px rgba(87,230,255,.25); background: #8bedff; }
.btn-primary b { font-size: 17px; }
.btn-secondary { color: var(--ink); border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.btn-secondary:hover { border-color: var(--line-hot); background: rgba(87,230,255,.05); }
.btn.full { width: 100%; margin-top: 26px; }
.text-link { color: var(--ink); text-decoration: none; font: 600 13px/1.5 var(--mono); }
.text-link span { margin-left: 8px; color: var(--cyan); transition: margin .2s; }
.text-link:hover span { margin-left: 14px; }
.text-button, .small-button { padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; font: 600 12px/1 var(--mono); }
.small-button { padding: 9px 11px; border: 1px solid var(--line); }
.small-button:hover { color: var(--cyan); border-color: var(--line-hot); }
.danger-text { color: var(--danger) !important; }

/* Home */
.home-hero { height: 82svh; min-height: 620px; position: relative; display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(52px, 6vw, 108px); align-items: center; padding: clamp(28px, 3.8vh, 54px) 0 clamp(54px, 7vh, 90px); }
.hero-copy h1 { margin: 24px 0 30px; font-size: clamp(62px, 5.4vw, 104px); line-height: 1.02; }
.hero-copy h1 em { white-space: nowrap; }
.home-lead { max-width: 620px; margin: 0 0 36px; color: #b5bad0; font-size: clamp(16px, 1.25vw, 20px); line-height: 1.85; }
.home-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero-signal { display: flex; align-items: center; gap: 14px; margin-top: 48px; color: #aeb4ca; font: 600 13px/1 var(--mono); }
.hero-signal span { white-space: nowrap; }
.hero-signal i { margin-right: 6px; color: var(--cyan); font-style: normal; }
.hero-signal b { width: clamp(10px, 3vw, 46px); height: 1px; background: linear-gradient(90deg, var(--line), var(--cyan)); }
.live-stage { min-height: clamp(470px, 64vh, 760px); position: relative; perspective: 1200px; }
.stage-aura { position: absolute; width: 520px; height: 520px; top: 5%; left: 50%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(116,78,255,.22), rgba(50,192,255,.08) 38%, transparent 68%); filter: blur(16px); }
.prompt-window, .world-window { position: absolute; border: 1px solid var(--line); background: rgba(10,12,27,.84); backdrop-filter: blur(18px); box-shadow: 0 35px 90px rgba(0,0,0,.42); }
.prompt-window { z-index: 3; width: min(430px, 72%); left: 0; top: 38px; padding: 0 24px 23px; transform: rotateY(4deg) rotateZ(-1deg); }
.window-top { height: 45px; margin: 0 -24px 22px; padding: 0 16px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); color: var(--muted); font: 600 10px/1 var(--mono); letter-spacing: .08em; }
.window-top em { margin-left: auto; color: var(--lime); font-style: normal; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); animation: pulse 1.8s infinite; }
.prompt-label { margin: 0 0 15px; color: var(--muted); font: 500 12px/1.4 var(--mono); }
.prompt-text { margin: 0; font-family: var(--display); font-size: clamp(23px, 2.3vw, 34px); line-height: 1.25; }
.prompt-text span { color: var(--violet-hot); }
.prompt-text i { display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -.12em; background: var(--cyan); animation: blink 1s steps(1) infinite; }
.compile-steps { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; font: 500 10px/1 var(--mono); }
.compile-steps .done { color: var(--dim); }
.compile-steps .active { color: var(--lime); }
.world-window { z-index: 2; width: min(620px, 87%); height: clamp(330px, 45vh, 540px); right: 0; bottom: 20px; overflow: hidden; transform: rotateY(-5deg) rotateZ(1.5deg); background: radial-gradient(circle at 50% 42%, #191750, #090b1a 62%); }
.world-grid { position: absolute; inset: 0; background: linear-gradient(rgba(87,230,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(87,230,255,.07) 1px, transparent 1px); background-size: 38px 38px; transform: perspective(400px) rotateX(60deg) scale(1.7); transform-origin: center bottom; opacity: .6; }
.jelly { position: absolute; left: 50%; top: 48%; width: 138px; height: 108px; transform: translate(-50%,-50%); border-radius: 60% 60% 42% 42%; background: radial-gradient(circle at 38% 28%, #fff 0 3%, rgba(255,255,255,.72) 4%, transparent 8%), radial-gradient(circle at 50% 16%, rgba(255,255,255,.72), transparent 27%), linear-gradient(145deg, rgba(87,230,255,.88), rgba(155,108,255,.65) 65%, rgba(200,140,255,.18)); box-shadow: inset 0 -18px 34px rgba(60,10,130,.35), 0 0 22px rgba(87,230,255,.5), 0 0 80px rgba(155,108,255,.4); animation: float 4.6s ease-in-out infinite; }
.jelly::after { content: ""; position: absolute; inset: 66% 5% -10%; border-radius: 50%; background: repeating-linear-gradient(90deg, transparent 0 15px, rgba(87,230,255,.72) 16px 20px, transparent 21px 28px); filter: blur(2px); }
.jelly i { position: absolute; z-index: -1; top: 76%; left: calc(18% + var(--x, 0) * 15%); width: 3px; height: calc(66px + var(--x, 0) * 8px); border-radius: 50%; background: linear-gradient(var(--cyan), transparent); transform-origin: top; animation: tentacle 2.6s ease-in-out infinite alternate; }
.jelly i:nth-child(1) { --x: 0; }
.jelly i:nth-child(2) { --x: 1; animation-delay: -.5s; }
.jelly i:nth-child(3) { --x: 2; animation-delay: -1s; }
.jelly i:nth-child(4) { --x: 3; animation-delay: -1.5s; }
.jelly i:nth-child(5) { --x: 4; animation-delay: -2s; }
.world-caption { position: absolute; left: 18px; right: 18px; bottom: 15px; display: flex; align-items: end; gap: 10px; }
.world-caption span, .world-caption em { color: var(--muted); font: 500 10px/1 var(--mono); font-style: normal; }
.world-caption strong { font: 700 13px/1 var(--mono); }
.world-caption em { margin-left: auto; color: var(--lime); }
.floating-code { position: absolute; z-index: 4; padding: 9px 11px; color: var(--cyan); border: 1px solid rgba(87,230,255,.2); background: rgba(6,7,17,.9); font: 600 10px/1 var(--mono); box-shadow: 0 0 24px rgba(87,230,255,.08); }
.code-a { right: 5%; top: 18%; }
.code-b { left: 8%; bottom: 7%; color: var(--violet-hot); }
.hero-scroll { position: absolute; z-index: 5; left: 50%; bottom: 12px; display: flex; flex-direction: column; align-items: center; gap: 9px; color: var(--muted); text-decoration: none; font: 600 10px/1 var(--mono); letter-spacing: .11em; transform: translateX(-50%); }
.hero-scroll i { width: 1px; height: 26px; position: relative; overflow: hidden; background: rgba(255,255,255,.16); }
.hero-scroll i::after { content: ""; position: absolute; inset: -100% 0 100%; background: var(--cyan); animation: scroll-line 1.8s ease-in-out infinite; }
.hero-scroll:hover { color: var(--cyan); }
.creation-universe { position: relative; padding: clamp(42px, 5vh, 68px) 0 160px; border-top: 1px solid var(--line); scroll-margin-top: 0; }
.creation-universe::before { content: ""; position: absolute; z-index: -1; width: 70vw; height: 260px; left: 50%; top: -1px; pointer-events: none; background: radial-gradient(ellipse at center top, rgba(87,230,255,.09), transparent 66%); transform: translateX(-50%); }
.universe-head { align-items: flex-end; }
.universe-head h2 { max-width: 910px; }
.universe-intro { width: min(390px, 100%); margin: 0 0 4px; }
.universe-intro strong { display: block; margin-bottom: 16px; color: var(--ink); font: 700 19px/1.55 var(--display); letter-spacing: -.01em; }
.universe-intro p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.universe-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.universe-card { --card-accent: var(--cyan); min-height: 420px; position: relative; grid-column: span 6; overflow: hidden; padding: 28px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(18,21,43,.92), rgba(8,10,23,.96)); isolation: isolate; transition: transform .3s, border-color .3s, box-shadow .3s; }
.universe-card::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 78% 76%, color-mix(in srgb, var(--card-accent) 20%, transparent), transparent 36%); opacity: .7; }
.universe-card::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(to bottom, transparent, #000); }
.universe-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--card-accent) 56%, transparent); box-shadow: 0 28px 70px rgba(0,0,0,.3); }
.universe-game, .universe-fx { grid-column: span 7; }
.universe-app, .universe-web { grid-column: span 5; }
.universe-ai, .universe-story { grid-column: span 6; min-height: 390px; }
.universe-app { --card-accent: var(--lime); }
.universe-web { --card-accent: var(--gold); }
.universe-fx { --card-accent: var(--violet-hot); }
.universe-ai { --card-accent: var(--cyan); }
.universe-story { --card-accent: #ff78b9; }
.universe-copy { position: relative; z-index: 4; max-width: 360px; }
.universe-copy > span { color: var(--card-accent); font: 700 11px/1 var(--mono); letter-spacing: .09em; }
.universe-copy h3 { margin: 12px 0 8px; font: 700 clamp(30px, 3vw, 46px)/1 var(--display); letter-spacing: -.035em; }
.universe-copy p { max-width: 310px; margin: 0; color: #aab0c6; font-size: 13px; line-height: 1.75; }
.game-demo { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 24px; height: 210px; overflow: hidden; border: 1px solid rgba(87,230,255,.2); background: linear-gradient(#171b50 0 56%, #10142e 56%); cursor: pointer; }
.game-demo::after { content: ""; position: absolute; inset: 56% 0 0; opacity: .4; background: linear-gradient(90deg, rgba(87,230,255,.1) 1px, transparent 1px), linear-gradient(rgba(87,230,255,.1) 1px, transparent 1px); background-size: 24px 24px; transform: perspective(140px) rotateX(55deg) scale(1.4); transform-origin: center top; }
.game-demo strong { position: absolute; z-index: 4; right: 12px; bottom: 10px; color: rgba(255,255,255,.55); font: 600 11px/1 var(--mono); }
.game-sun { position: absolute; right: 13%; top: 24px; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 36px rgba(255,200,87,.5); }
.game-cloud { position: absolute; left: 17%; top: 38px; width: 70px; height: 18px; border-radius: 20px; background: rgba(255,255,255,.12); box-shadow: 25px 11px 0 rgba(255,255,255,.08); }
.game-platform { position: absolute; z-index: 3; height: 10px; background: var(--cyan); box-shadow: 0 8px 0 rgba(87,230,255,.16); }
.game-platform.p1 { width: 42%; left: 0; bottom: 36px; }
.game-platform.p2 { width: 30%; right: 9%; bottom: 92px; }
.game-player { position: absolute; z-index: 4; left: 18%; bottom: 46px; width: 26px; height: 34px; background: var(--lime); box-shadow: 0 0 18px rgba(181,255,86,.55); transition: transform .2s cubic-bezier(.2,.8,.3,1.5); }
.game-player::before { content: ""; position: absolute; width: 5px; height: 5px; right: 5px; top: 8px; background: #071018; }
.universe-game.playing .game-player { animation: game-jump .62s cubic-bezier(.2,.8,.3,1); }
.game-coin { position: absolute; z-index: 4; width: 12px; height: 12px; border: 2px solid var(--gold); border-radius: 50%; box-shadow: 0 0 12px rgba(255,200,87,.7); animation: coin-spin 1.5s linear infinite; }
.game-coin.c1 { right: 27%; bottom: 117px; }
.game-coin.c2 { right: 18%; bottom: 117px; animation-delay: -.7s; }
.app-demo { position: absolute; z-index: 2; width: min(260px, calc(100% - 56px)); right: 28px; bottom: -34px; padding: 18px 17px 58px; border: 1px solid rgba(181,255,86,.28); border-radius: 28px 28px 0 0; background: linear-gradient(160deg, #19243a, #0b1321); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.app-top { display: flex; align-items: center; gap: 7px; margin-bottom: 26px; color: #a7b1c5; font: 600 11px/1 var(--mono); }
.app-top i { width: 9px; height: 9px; border-radius: 3px; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.app-top span { margin-left: auto; }
.app-demo > strong { display: block; margin-bottom: 16px; font-size: 17px; }
.demo-task { width: 100%; display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 11px; color: #dce0ec; text-align: left; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.035); cursor: pointer; }
.demo-task i { width: 17px; height: 17px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(181,255,86,.45); border-radius: 5px; color: #071018; font: 800 11px/1 var(--sans); }
.demo-task.done { color: #71798c; }
.demo-task.done i { background: var(--lime); }
.demo-task.done span { text-decoration: line-through; }
.web-demo { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 24px; height: 220px; overflow: hidden; border: 1px solid rgba(255,200,87,.22); background: #f3efe4; color: #14121b; transform: perspective(700px) rotateY(5deg); transform-origin: left center; }
.web-bar { height: 29px; display: flex; align-items: center; gap: 5px; padding: 0 9px; background: #201d27; }
.web-bar i { width: 6px; height: 6px; border-radius: 50%; background: #ff7588; }
.web-bar i:nth-child(2) { background: var(--gold); }
.web-bar i:nth-child(3) { background: var(--lime); }
.web-bar span { margin-left: 8px; color: #aaa4b3; font: 500 10px/1 var(--mono); }
.web-hero { min-height: 134px; display: flex; align-items: flex-end; justify-content: space-between; padding: 20px; background: radial-gradient(circle at 78% 28%, #ff9f6e, transparent 24%), linear-gradient(135deg,#f4db62,#df7fb9 58%,#6758d8); }
.web-hero b { font: 800 30px/.86 var(--display); letter-spacing: -.04em; }
.web-hero span { font: 700 9px/1 var(--mono); }
.web-cards { display: flex; gap: 8px; padding: 10px 16px; }
.web-cards i { width: 32%; height: 38px; background: #d8d2c9; }
.web-cards i:nth-child(2) { background: #22202b; }
.web-cards i:nth-child(3) { background: #e7a2bd; }
.fx-demo { --fx-x: 68%; --fx-y: 64%; position: absolute; z-index: 2; inset: 112px 0 0; overflow: hidden; background: radial-gradient(circle at var(--fx-x) var(--fx-y), rgba(200,140,255,.26), transparent 26%); }
.fx-demo::before, .fx-demo::after { content: ""; position: absolute; left: var(--fx-x); top: var(--fx-y); width: 230px; height: 230px; border: 1px solid rgba(200,140,255,.18); border-radius: 50%; transform: translate(-50%,-50%); }
.fx-demo::after { width: 110px; height: 110px; border-color: rgba(87,230,255,.32); }
.fx-demo b { position: absolute; left: var(--fx-x); top: var(--fx-y); width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: 0 0 16px #fff, 0 0 55px var(--violet-hot), 0 0 100px var(--cyan); transform: translate(-50%,-50%); transition: left .12s, top .12s; }
.fx-demo i { position: absolute; left: var(--fx-x); top: var(--fx-y); width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); transform: translate(-50%,-50%) rotate(calc(var(--n) * 30deg)) translateY(calc(55px + var(--n) * 4px)); animation: fx-orbit calc(3s + var(--n) * .13s) linear infinite; }
.fx-demo i:nth-child(3n) { background: var(--violet-hot); }
.fx-demo span { position: absolute; right: 20px; bottom: 18px; color: rgba(255,255,255,.55); font: 600 11px/1 var(--mono); }
.ai-demo { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 28px; display: grid; gap: 11px; }
.ai-demo > div { max-width: 82%; padding: 13px 15px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.045); }
.ai-demo .ai-answer { margin-left: auto; border-color: rgba(87,230,255,.24); background: rgba(87,230,255,.07); }
.ai-demo i { color: var(--cyan); font: 700 10px/1 var(--mono); font-style: normal; }
.ai-demo p { margin: 7px 0 0; color: #cbd0df; font-size: 13px; line-height: 1.55; }
.ai-answer span { width: 5px; height: 5px; display: inline-block; margin: 6px 4px 0 0; border-radius: 50%; background: var(--cyan); animation: ai-thinking 1.2s infinite; }
.ai-answer span:nth-of-type(2) { animation-delay: .2s; }
.ai-answer span:nth-of-type(3) { animation-delay: .4s; }
.story-demo { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 28px; padding: 20px; border-left: 2px solid #ff78b9; background: rgba(255,120,185,.06); }
.story-demo p { margin: 0 0 13px; color: #daddE8; font-size: 14px; }
.story-choice { width: 100%; display: block; margin-top: 8px; padding: 11px 13px; color: #b7bbca; text-align: left; border: 1px solid rgba(255,255,255,.1); background: rgba(7,8,19,.55); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.story-choice:hover, .story-choice.active { color: #fff; border-color: rgba(255,120,185,.55); background: rgba(255,120,185,.11); }
.story-choice.active::after { content: "→"; float: right; color: #ff78b9; }
.story-demo small { display: block; margin-top: 14px; color: #ff78b9; font: 600 10px/1 var(--mono); }
.section-head { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 46px; }
.section-head h2 { margin-top: 15px; font-size: clamp(46px, 5.5vw, 82px); line-height: .96; }
.section-head.compact h2 { font-size: clamp(38px, 4vw, 62px); }
.showcase-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px; }
.showcase-item { display: grid; grid-template-columns: 38px 1fr; gap: 15px; color: inherit; text-decoration: none; }
.showcase-item:nth-child(3), .showcase-item:nth-child(4) { margin-top: 35px; }
.showcase-no { padding-top: 12px; color: var(--dim); font: 500 11px/1 var(--mono); }
.showcase-visual { height: 330px; position: relative; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(circle at 70% 30%, rgba(155,108,255,.34), transparent 34%), linear-gradient(145deg,#111735,#090b18); background-size: cover; background-position: center; transition: transform .35s, border-color .35s; }
.showcase-item:nth-child(even) .showcase-visual { height: 250px; }
.showcase-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,6,15,.84), transparent 55%); }
.showcase-visual i { position: absolute; z-index: 2; right: 14px; top: 14px; padding: 8px 10px; color: #061018; background: var(--cyan); font: 700 10px/1 var(--mono); font-style: normal; opacity: 0; transform: translateY(-5px); transition: .25s; }
.showcase-item:hover .showcase-visual { transform: translateY(-5px); border-color: var(--line-hot); }
.showcase-item:hover .showcase-visual i { opacity: 1; transform: translateY(0); }
.showcase-info { grid-column: 2; display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.showcase-info strong { font-family: var(--display); font-size: 24px; }
.showcase-info span { color: var(--muted); font: 500 11px/1.4 var(--mono); }
.cover-code { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.08); font: 800 min(20vw, 170px)/1 var(--display); text-transform: uppercase; }
.empty-world { min-height: 220px; display: flex; align-items: center; justify-content: center; gap: 24px; border: 1px dashed var(--line); background: rgba(255,255,255,.015); }
.empty-world > span { display: grid; place-items: center; width: 64px; height: 64px; color: var(--cyan); border: 1px solid var(--line-hot); font: 300 34px/1 var(--sans); }
.empty-world strong { font-family: var(--display); font-size: 26px; }
.empty-world p { margin: 8px 0 0; color: var(--muted); }
.launch-section { min-height: clamp(660px, 82svh, 900px); position: relative; display: flex; align-items: center; margin-top: 0; padding: clamp(62px, 8vh, 100px) clamp(30px,6vw,90px); overflow: hidden; border: 1px solid var(--line); background: radial-gradient(circle at 75% 52%, rgba(88,48,180,.16), transparent 37%), linear-gradient(120deg, rgba(87,230,255,.04), transparent 42%); isolation: isolate; }
.launch-section::before { content: ""; position: absolute; z-index: 0; inset: 0; opacity: .45; background: linear-gradient(110deg, transparent 49.8%, rgba(87,230,255,.08) 50%, transparent 50.2%); }
.launch-section::after { content: ""; position: absolute; z-index: 2; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(6,7,17,.98) 0%, rgba(6,7,17,.88) 32%, rgba(6,7,17,.35) 58%, rgba(6,7,17,.03) 82%); }
.launch-copy { width: min(62vw, 940px); position: relative; z-index: 3; }
.launch-section h2 { margin: 20px 0 28px; font-size: clamp(54px,5.2vw,88px); line-height: .98; }
.launch-section h2 span { white-space: nowrap; }
.launch-lead { max-width: 520px; margin: 0 0 38px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.launch-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.launch-actions .btn-secondary b { color: var(--cyan); font-size: 18px; }
.galaxy-stage { width: clamp(560px, 67vw, 980px); aspect-ratio: 1; position: absolute; z-index: 1; right: -9%; top: 50%; border-radius: 50%; filter: drop-shadow(0 0 65px rgba(92,74,220,.2)); transform: translateY(-50%); }
.galaxy-stage::before, .galaxy-stage::after { content: ""; position: absolute; pointer-events: none; border-radius: 50%; }
.galaxy-stage::before { inset: 7%; border: 1px solid rgba(87,230,255,.1); box-shadow: inset 0 0 70px rgba(109,77,255,.08); }
.galaxy-stage::after { inset: 31%; background: radial-gradient(circle, rgba(255,255,255,.1), rgba(119,83,255,.06) 35%, transparent 70%); filter: blur(12px); }
#galaxy-canvas { width: 100%; height: 100%; position: absolute; inset: 0; }
.galaxy-label { position: absolute; left: 8%; right: 8%; bottom: 7%; display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.55); font: 600 10px/1 var(--mono); letter-spacing: .08em; }
.galaxy-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.galaxy-label b { margin-left: auto; color: var(--lime); font-size: 10px; }

/* Shared page heroes */
.page-hero, .admin-head { min-height: 430px; padding: 90px 0 70px; display: grid; grid-template-columns: 1fr .52fr; gap: 8vw; align-items: end; border-bottom: 1px solid var(--line); }
.page-hero h1, .admin-head h1 { margin-top: 24px; font-size: clamp(60px, 6.5vw, 100px); line-height: .98; }
.gallery-hero h1 { white-space: nowrap; }
.hero-aside { padding-left: 38px; border-left: 1px solid var(--line); }
.hero-aside strong { display: block; color: var(--cyan); font: 700 74px/.85 var(--display); }
.hero-aside span { display: block; margin: 13px 0 25px; color: var(--ink); font: 700 14px/1.55 var(--mono); }
.hero-aside p { max-width: 330px; color: var(--muted); font-size: 14px; line-height: 1.85; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px 22px; padding: 80px 0 160px; }
.work-card { grid-column: span 6; }
.work-card:nth-child(4n+2), .work-card:nth-child(4n+3) { grid-column: span 5; }
.work-card:nth-child(4n+2) { grid-column-start: 3; }
.work-card:nth-child(even) { margin-top: 65px; }
.work-cover { height: clamp(260px, 34vw, 480px); position: relative; display: block; overflow: hidden; color: inherit; border: 1px solid var(--line); background: radial-gradient(circle at 62% 32%, rgba(155,108,255,.42), transparent 28%), linear-gradient(145deg,#121839,#080a16); background-size: cover; background-position: center; transition: border-color .25s, transform .3s; }
.work-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(6,7,17,.05), rgba(6,7,17,.12) 55%, rgba(6,7,17,.85)); }
.work-card:hover .work-cover { border-color: var(--line-hot); transform: translateY(-4px); }
.work-index, .runtime-badge, .work-enter { position: absolute; z-index: 2; font: 600 10px/1 var(--mono); }
.work-index { left: 15px; top: 15px; color: var(--ink); }
.runtime-badge { right: 15px; top: 15px; padding: 7px 8px; color: var(--lime); font-style: normal; background: rgba(6,7,17,.75); border: 1px solid rgba(181,255,86,.24); }
.runtime-badge b { display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.work-enter { right: 15px; bottom: 15px; padding: 11px 13px; color: #061018; background: var(--cyan); transform: translateY(8px); opacity: 0; transition: .25s; }
.work-card:hover .work-enter { transform: translateY(0); opacity: 1; }
.work-body { padding: 18px 2px; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.work-body h2 { margin: 0 0 8px; font-size: clamp(25px,2.5vw,40px); }
.work-body h2 a { text-decoration: none; }
.work-body p { margin: 0; color: var(--muted); font: 500 12px/1.4 var(--mono); }
.work-arrow { color: var(--cyan); font-size: 22px; }
.empty-world.large { min-height: 380px; margin: 70px 0 160px; }

/* Project */
.project-head { min-height: 370px; padding: 80px 0 54px; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.project-title h1 { margin-top: 20px; max-width: 980px; font-size: clamp(54px,7vw,104px); line-height: .98; }
.project-status { min-width: 190px; display: flex; flex-direction: column; align-items: end; gap: 18px; }
.version-tag { padding: 8px 10px; color: var(--cyan); border: 1px solid rgba(87,230,255,.26); background: rgba(87,230,255,.055); font: 700 11px/1 var(--mono); letter-spacing: .05em; }
.project-status small { color: var(--muted); text-align: right; font: 500 10px/1.6 var(--mono); }
.status-pill { width: fit-content; display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; color: var(--muted); border: 1px solid var(--line); font: 600 10px/1 var(--mono); letter-spacing: .04em; }
.status-pill i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.status-pill.public { color: var(--lime); border-color: rgba(181,255,86,.25); }
.status-pill.public i { background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.runtime-shell { border: 1px solid var(--line); background: #020308; box-shadow: 0 40px 100px rgba(0,0,0,.4); }
.runtime-top { height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; color: var(--muted); border-bottom: 1px solid var(--line); font: 500 10px/1 var(--mono); }
.runtime-top > div { display: flex; align-items: center; gap: 7px; }
.runtime-top i { width: 7px; height: 7px; border-radius: 50%; background: #ff6070; }
.runtime-top i:nth-child(2) { background: var(--gold); }
.runtime-top i:nth-child(3) { background: var(--lime); margin-right: 10px; }
.runtime-top > span { color: var(--lime); }
.runtime-top > span b { display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.preview-frame { display: block; width: 100%; height: min(76vh, 840px); border: 0; background: #fff; }
.project-cover { display: block; width: 100%; max-height: 78vh; object-fit: contain; background: #080914; }
.runtime-empty { height: 520px; position: relative; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle, rgba(155,108,255,.17), transparent 36%); }
.runtime-empty p { z-index: 2; color: var(--muted); font: 500 11px/1 var(--mono); }
.project-meta-grid { display: grid; grid-template-columns: 1fr .44fr; gap: 8vw; padding: 80px 0 150px; }
.project-story > p:last-child { max-width: 780px; margin: 26px 0 0; font-family: var(--display); font-size: clamp(28px,3.4vw,50px); line-height: 1.28; }
.project-actions { display: flex; align-items: stretch; flex-direction: column; gap: 12px; }
.project-actions .text-link { margin-top: 14px; }
.feedback-section { padding: 110px 0 150px; border-top: 1px solid var(--line); }
.feedback-count { color: var(--muted); font: 500 12px/1 var(--mono); }
.comments { list-style: none; margin: 0 0 60px; padding: 0; }
.comments li { display: grid; grid-template-columns: 44px 1fr auto; gap: 22px; padding: 26px 0; border-top: 1px solid var(--line); }
.comment-no { color: #858ca5; font: 600 12px/1.6 var(--mono); }
.comment-author { margin: 0 0 12px; color: var(--cyan); font: 600 14px/1.5 var(--mono); }
.comment-author time { margin-left: 12px; color: #858ca5; font-size: 12px; font-weight: 400; }
.comments li div > p:last-child { margin: 0; color: #e3e6f2; font-size: 16px; line-height: 1.8; }
.comments .text-button { font-size: 13px; }
.empty-feedback { display: flex; gap: 22px; align-items: center; min-height: 150px; margin-bottom: 50px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.empty-feedback span { color: var(--dim); font: 700 52px/1 var(--display); }
.empty-feedback p { color: var(--muted); line-height: 1.7; }
.feedback-form { max-width: 820px; padding: 30px; border: 1px solid var(--line); background: var(--panel); }
.feedback-form label { color: #b6bbce; font-size: 13px; }
.feedback-form textarea { min-height: 145px; font-size: 16px; }
.feedback-form textarea::placeholder { color: #737b96; }
.feedback-form .btn { margin-top: 15px; }
.login-hint { color: var(--muted); }
.login-hint a { color: var(--cyan); }

/* Form primitives */
label { display: block; margin: 20px 0 9px; color: var(--muted); font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
label small { color: var(--dim); font-size: 11px; }
input, textarea, select { width: 100%; padding: 14px 15px; color: var(--ink); border: 1px solid var(--line); border-radius: 0; outline: none; background: rgba(255,255,255,.025); transition: border-color .2s, box-shadow .2s, background .2s; }
input::placeholder, textarea::placeholder { color: #555c74; }
input:focus, textarea:focus, select:focus { border-color: var(--cyan); background: rgba(87,230,255,.035); box-shadow: 0 0 0 3px rgba(87,230,255,.07); }
textarea { min-height: 135px; resize: vertical; line-height: 1.7; }
input[type="file"] { color: var(--muted); }
.row { display: flex; gap: 16px; align-items: end; flex-wrap: wrap; }
.row > div { flex: 1; min-width: 180px; }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; }
.form-hint { min-height: 18px; color: var(--cyan); font-size: 12px; }

/* Studio */
.studio-hero { min-height: 450px; display: flex; align-items: end; justify-content: space-between; gap: 40px; padding: 80px 0 65px; }
.studio-hero h1 { margin: 24px 0 25px; font-size: clamp(58px,7vw,100px); line-height: .96; }
.studio-hero p:last-child { max-width: 540px; color: var(--muted); line-height: 1.8; }
.studio-stats { min-height: 150px; display: grid; grid-template-columns: .7fr .7fr 1.6fr; gap: 1px; border: 1px solid var(--line); background: var(--line); }
.studio-stats > div { padding: 25px; background: rgba(9,11,23,.94); }
.studio-stats span { color: var(--muted); font: 500 10px/1 var(--mono); }
.studio-stats strong { display: block; margin: 14px 0 8px; font: 700 34px/1 var(--display); }
.studio-stats p { margin: 0; color: var(--dim); font-size: 12px; }
.studio-stats .storage-meter { position: relative; padding: 0; overflow: hidden; }
.storage-meter::before { content: "STORAGE MATRIX"; position: absolute; left: 20px; top: 20px; z-index: 2; color: var(--muted); font: 500 10px/1 var(--mono); }
.storage-meter span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(87,230,255,.15), rgba(155,108,255,.34)); }
.storage-meter i { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(255,255,255,.05) 23px 24px); }
.studio-works { padding: 110px 0 150px; }
.studio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.studio-card { border: 1px solid var(--line); background: rgba(10,12,25,.68); transition: transform .3s, border-color .3s; }
.studio-card:hover { transform: translateY(-5px); border-color: var(--line-hot); }
.studio-cover { height: 230px; position: relative; display: block; overflow: hidden; background: radial-gradient(circle at 65% 30%, rgba(155,108,255,.32), transparent 28%), #0b0e20 center/cover; }
.studio-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,8,18,.72), transparent 55%); }
.studio-cover .status-pill { position: absolute; z-index: 2; right: 12px; top: 12px; background: rgba(6,7,17,.76); }
.studio-card-body { padding: 20px; }
.build-id { color: var(--dim); font: 500 10px/1 var(--mono); }
.studio-card h3 { margin: 12px 0 8px; font: 700 29px/1.1 var(--display); }
.studio-card h3 a { text-decoration: none; }
.studio-card p { margin: 0; color: var(--muted); font-size: 12px; }
.card-actions { min-height: 35px; display: flex; justify-content: space-between; align-items: end; gap: 15px; margin-top: 25px; padding-top: 16px; border-top: 1px solid var(--line); }
.empty-studio { min-height: 500px; display: grid; grid-template-columns: .35fr 1fr; align-items: center; margin: 50px 0 140px; padding: 60px; border: 1px solid var(--line); background: radial-gradient(circle at 20% 50%, rgba(87,230,255,.12), transparent 22%); }
.empty-plus { color: rgba(87,230,255,.38); font: 200 180px/1 var(--sans); }
.empty-studio h2 { margin: 17px 0; font-size: clamp(45px,6vw,82px); line-height: .96; }
.empty-studio p:not(.section-index) { color: var(--muted); }
.empty-studio .btn { margin-top: 20px; }

/* Deploy */
.deploy-console { margin: 70px 0 150px; border-top: 1px solid var(--line); }
.deploy-block { display: grid; grid-template-columns: .16fr .84fr; gap: 40px; padding: 64px 0; border-bottom: 1px solid var(--line); }
.block-no { color: rgba(87,230,255,.24); font: 700 80px/1 var(--display); }
.block-content { max-width: 820px; }
.block-content h2 { margin: 12px 0 32px; font-size: clamp(36px,4vw,58px); }
.drop-zone { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 25px; border: 1px dashed rgba(87,230,255,.32); background: rgba(87,230,255,.025); cursor: pointer; text-align: center; transition: .2s; }
.drop-zone.compact { min-height: 125px; flex-direction: row; }
.drop-zone:hover, .drop-zone:focus-visible, .drop-zone.over { border-color: var(--cyan); background: rgba(87,230,255,.06); }
.drop-zone.has-file { border-style: solid; border-color: var(--lime); }
.drop-icon { display: grid; place-items: center; width: 48px; height: 48px; color: var(--cyan); border: 1px solid var(--line-hot); font: 700 10px/1 var(--mono); }
.drop-icon.image { color: var(--violet-hot); border-color: rgba(200,140,255,.35); }
.drop-zone strong { font-family: var(--display); font-size: 22px; }
.drop-zone p { margin: 0; color: var(--muted); font-size: 11px; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.vis-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vis-opt { min-height: 150px; padding: 22px; color: var(--muted); border: 1px solid var(--line); background: rgba(255,255,255,.015); text-align: left; cursor: pointer; transition: .2s; }
.vis-opt span { color: var(--dim); font: 600 10px/1 var(--mono); }
.vis-opt strong { display: block; margin: 17px 0 9px; color: var(--ink); font-family: var(--display); font-size: 25px; }
.vis-opt small { line-height: 1.6; }
.vis-opt:hover { border-color: rgba(87,230,255,.4); }
.vis-opt.on { border-color: var(--cyan); background: linear-gradient(135deg, rgba(87,230,255,.08), rgba(155,108,255,.05)); box-shadow: inset 3px 0 var(--cyan); }
.deploy-submit { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 34px; background: rgba(87,230,255,.04); border: 1px solid rgba(87,230,255,.2); border-top: 0; }
.deploy-submit > div { display: flex; align-items: center; gap: 10px; }
.deploy-submit p { margin: 0; color: var(--lime); font: 600 11px/1 var(--mono); }

/* Admin */
.admin-head { min-height: 400px; }
.admin-head h1 { font-size: clamp(60px,7vw,98px); line-height: .96; }
.admin-head > div > p:last-child { max-width: 600px; color: var(--muted); line-height: 1.8; }
.admin-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.admin-summary > div { min-width: 170px; padding: 24px; background: #0b0d19; }
.admin-summary span { color: var(--muted); font: 500 10px/1 var(--mono); }
.admin-summary strong { display: block; margin: 14px 0 8px; font: 700 33px/1 var(--display); }
.admin-summary p { margin: 0; color: var(--dim); font-size: 12px; }
.admin-meter { height: 4px; background: rgba(255,255,255,.05); }
.admin-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.admin-panel { margin: 40px 0; padding: 30px; border: 1px solid var(--line); background: rgba(12,14,27,.72); }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.panel-heading h2 { margin-top: 10px; font-size: 34px; }
.panel-heading > span { color: var(--dim); font: 700 28px/1 var(--display); }
.admin-upload { display: grid; grid-template-columns: 1fr .8fr auto; gap: 20px; align-items: center; }
.admin-upload p { color: var(--muted); font-size: 11px; line-height: 1.65; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.data-table th { padding: 13px 10px; color: var(--dim); border-bottom: 1px solid var(--line); text-align: left; font: 600 10px/1 var(--mono); letter-spacing: .05em; }
.data-table td { padding: 17px 10px; color: var(--muted); border-bottom: 1px solid rgba(255,255,255,.065); font-size: 13px; }
.data-table td strong { color: var(--ink); }
.table-code { color: var(--cyan); font-family: var(--mono); }
.table-link { color: var(--ink); text-decoration: none; font-weight: 600; }
.table-link span { margin-left: 6px; color: var(--cyan); }
.inline-form, .table-actions { display: flex; align-items: center; gap: 6px; }
.inline-form input { width: 80px; padding: 8px; }
.admin-empty { color: var(--muted); }
.class-head { min-height: 320px; }
.class-workspace { margin: 40px 0 120px; }
.class-tabs { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.class-tab { min-width: 210px; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 19px 22px; color: var(--muted); border: 1px solid transparent; border-bottom: 0; background: transparent; cursor: pointer; font-family: var(--display); transition: color .2s, border-color .2s, background .2s; }
.class-tab span { font-size: 21px; font-weight: 700; }
.class-tab b { color: var(--dim); font: 600 11px/1 var(--mono); }
.class-tab::after { content: ""; position: absolute; height: 2px; left: 22px; right: 100%; bottom: -1px; background: var(--cyan); transition: right .25s ease; }
.class-tab:hover, .class-tab:focus-visible { color: var(--ink); background: rgba(255,255,255,.025); outline: none; }
.class-tab.active { color: var(--ink); border-color: var(--line); background: rgba(87,230,255,.045); }
.class-tab.active b { color: var(--cyan); }
.class-tab.active::after { right: 22px; }
.class-tab-panel[hidden] { display: none; }
.class-tab-panel > .admin-panel:first-child { margin-top: 0; border-top: 0; }

/* Auth and utility pages */
.auth-layout, .form-page { min-height: calc(100vh - 92px); display: grid; grid-template-columns: 1fr minmax(360px, .62fr); gap: 8vw; align-items: center; padding: 80px 0 120px; }
.auth-intro h1, .form-intro h1 { margin: 24px 0 30px; font-size: clamp(54px,6.5vw,94px); line-height: .98; }
.auth-intro > p:last-of-type, .form-intro > p:last-child { max-width: 530px; color: var(--muted); line-height: 1.85; }
.auth-code { width: fit-content; margin-top: 48px; padding: 18px 22px; color: var(--muted); border-left: 2px solid var(--violet); background: rgba(255,255,255,.025); font: 500 12px/1.8 var(--mono); }
.auth-code span { color: var(--violet-hot); }
.auth-code b { color: var(--cyan); }
.auth-code i { display: inline-block; width: 2px; height: 14px; margin-left: 5px; vertical-align: middle; background: var(--lime); animation: blink 1s steps(1) infinite; }
.auth-panel, .form-console { padding: 0 32px 34px; border: 1px solid var(--line); background: rgba(12,14,29,.82); box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.auth-panel .window-top { margin-bottom: 28px; }
.auth-foot { margin: 20px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.auth-foot a { color: var(--cyan); }
.form-console { padding-top: 34px; }
.missing-world { min-height: calc(100vh - 92px); position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; overflow: hidden; }
.error-code { position: absolute; right: -2vw; top: 50%; transform: translateY(-55%); color: rgba(255,255,255,.025); font: 800 min(38vw,520px)/1 var(--display); }
.missing-world h1 { z-index: 1; margin: 25px 0; font-size: clamp(54px,7vw,100px); line-height: .98; }
.missing-world > p:not(.eyebrow) { z-index: 1; color: var(--muted); }
.missing-world .btn { z-index: 1; margin-top: 30px; }

.site-footer { min-height: 150px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 30px; align-items: center; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer > div { display: flex; flex-direction: column; gap: 6px; font: 600 12px/1 var(--mono); }
.site-footer > div span { color: var(--dim); font-size: 10px; letter-spacing: .12em; }
.site-footer p { font-size: 12px; }
.system-live { color: var(--lime); font: 600 10px/1 var(--mono); }
.system-live i { display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
.creation-universe[data-reveal], .launch-section[data-reveal] { transform: translateY(58px); transition: opacity 1s ease, transform 1s cubic-bezier(.16,1,.3,1); }
.creation-universe[data-reveal].is-visible, .launch-section[data-reveal].is-visible { transform: none; }
[data-tilt] { transform: perspective(1000px) rotateX(var(--tilt-y,0deg)) rotateY(var(--tilt-x,0deg)); transform-style: preserve-3d; }

@keyframes pulse { 50% { opacity: .35; box-shadow: 0 0 4px currentColor; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes float { 50% { transform: translate(-50%,-57%) rotate(2deg); } }
@keyframes tentacle { to { transform: skewX(10deg) scaleY(.82); } }
@keyframes game-jump { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translate(110px,-92px) rotate(180deg); } }
@keyframes coin-spin { 50% { transform: scaleX(.18); } }
@keyframes fx-orbit { to { transform: translate(-50%,-50%) rotate(calc(var(--n) * 30deg + 360deg)) translateY(calc(55px + var(--n) * 4px)); } }
@keyframes ai-thinking { 50% { opacity: .25; transform: translateY(-3px); } }
@keyframes scroll-line { 0% { transform: translateY(0); } 100% { transform: translateY(200%); } }

@media (max-width: 1000px) {
  .wrap { width: min(100% - 40px, 1380px); }
  .home-hero { height: auto; min-height: auto; grid-template-columns: 1fr; padding-top: 90px; }
  .live-stage { width: min(760px,100%); margin: 0 auto; }
  .creation-universe { padding: 82px 0 130px; }
  .universe-grid { grid-template-columns: 1fr 1fr; }
  .universe-card, .universe-game, .universe-app, .universe-web, .universe-fx, .universe-ai, .universe-story { grid-column: auto; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .work-card, .work-card:nth-child(4n+2), .work-card:nth-child(4n+3) { grid-column: auto; }
  .work-card:nth-child(4n+2) { grid-column-start: auto; }
  .studio-grid { grid-template-columns: 1fr 1fr; }
  .project-meta-grid { grid-template-columns: 1fr .6fr; }
  .launch-section { padding-left: 40px; padding-right: 40px; }
  .galaxy-stage { width: min(88vw, 760px); right: -22%; }
}

@media (max-width: 720px) {
  body::before { background-size: 42px 42px; }
  .wrap { width: calc(100% - 28px); }
  .site-header { height: auto; min-height: 76px; padding: 14px 0; align-items: flex-start; }
  .brand-copy { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .nav { justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
  .nav a span { display: none; }
  .nav a, .nav-exit { font-size: 12px; }
  .nav .nav-gallery, .nav .nav-login { padding: 10px 12px; }
  .home-hero { min-height: auto; padding: 80px 0 70px; gap: 70px; }
  .hero-copy h1 { font-size: clamp(46px, 13vw, 60px); line-height: 1.08; }
  .hero-signal { overflow-x: auto; padding-bottom: 8px; }
  .live-stage { min-height: 510px; }
  .prompt-window { width: 88%; padding-left: 17px; padding-right: 17px; }
  .prompt-window .window-top { margin-left: -17px; margin-right: -17px; }
  .world-window { width: 92%; height: 330px; }
  .floating-code { display: none; }
  .hero-scroll { display: none; }
  .creation-universe { padding: 82px 0 100px; }
  .universe-head { gap: 22px; }
  .universe-head h2 { font-size: 44px; line-height: 1.02; }
  .universe-grid { grid-template-columns: 1fr; }
  .universe-card { min-height: 390px; padding: 22px; }
  .universe-ai, .universe-story { min-height: 370px; }
  .game-demo, .web-demo, .ai-demo, .story-demo { left: 22px; right: 22px; }
  .app-demo { right: 22px; width: min(250px, calc(100% - 44px)); }
  .section-head { align-items: flex-start; flex-direction: column; }
  .showcase-grid, .gallery-grid, .studio-grid { grid-template-columns: 1fr; }
  .showcase-item:nth-child(3), .showcase-item:nth-child(4), .work-card:nth-child(even) { margin-top: 0; }
  .showcase-visual, .showcase-item:nth-child(even) .showcase-visual { height: 260px; }
  .showcase-info { flex-direction: column; gap: 6px; }
  .launch-section { min-height: auto; flex-direction: column; gap: 28px; margin-top: 0; padding: 75px 24px 42px; }
  .launch-section::after { background: linear-gradient(to bottom, rgba(6,7,17,.97) 0%, rgba(6,7,17,.76) 48%, rgba(6,7,17,.08) 78%); }
  .launch-copy { width: 100%; }
  .launch-section h2 { font-size: clamp(34px, 9.5vw, 54px); }
  .launch-lead { font-size: 14px; }
  .launch-actions { align-items: stretch; flex-direction: column; }
  .launch-actions .btn { width: 100%; }
  .galaxy-stage { width: min(125%, 560px); position: relative; z-index: 1; right: auto; top: auto; margin: -30px -12.5% 0; transform: none; }
  .page-hero, .admin-head { min-height: auto; grid-template-columns: 1fr; padding: 70px 0 50px; }
  .page-hero h1, .admin-head h1 { font-size: 72px; }
  .gallery-hero h1 { font-size: clamp(54px, 16vw, 72px); }
  .hero-aside { padding: 25px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .gallery-grid { padding-top: 48px; }
  .work-cover { height: 310px; }
  .work-enter { opacity: 1; transform: none; }
  .project-head { min-height: auto; align-items: flex-start; flex-direction: column; padding: 65px 0 35px; }
  .project-title h1 { font-size: 60px; }
  .project-status { align-items: flex-start; }
  .project-status small { text-align: left; }
  .preview-frame { height: 65vh; }
  .project-meta-grid { grid-template-columns: 1fr; padding: 50px 0 90px; }
  .comments li { grid-template-columns: 28px 1fr; }
  .comments li form { grid-column: 2; }
  .feedback-form { padding: 20px; }
  .studio-hero { min-height: auto; align-items: flex-start; flex-direction: column; padding: 65px 0 45px; }
  .studio-hero h1 { font-size: 64px; }
  .studio-stats { grid-template-columns: 1fr 1fr; }
  .studio-stats .storage-meter { grid-column: 1 / -1; min-height: 80px; }
  .studio-cover { height: 260px; }
  .empty-studio { grid-template-columns: 1fr; padding: 34px; }
  .empty-plus { font-size: 100px; }
  .deploy-block { grid-template-columns: 1fr; gap: 10px; padding: 45px 0; }
  .block-no { font-size: 45px; }
  .vis-switch { grid-template-columns: 1fr; }
  .deploy-submit { align-items: stretch; flex-direction: column; padding: 22px; }
  .admin-summary { grid-template-columns: 1fr; width: 100%; }
  .admin-upload { grid-template-columns: 1fr; }
  .admin-panel { padding: 22px 16px; }
  .class-workspace { margin-top: 28px; }
  .class-tabs { overflow-x: auto; }
  .class-tab { min-width: 180px; padding: 16px; }
  .class-tab span { font-size: 18px; }
  .auth-layout, .form-page { grid-template-columns: 1fr; gap: 50px; padding: 70px 0 100px; }
  .auth-intro h1, .form-intro h1 { font-size: 60px; }
  .auth-panel, .form-console { padding-left: 20px; padding-right: 20px; }
  .site-footer { grid-template-columns: 1fr; padding: 35px 0; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  #code-field, #cursor-energy { display: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  [data-tilt] { transform: none !important; }
}
