


.gfx-hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(40px, 7vw, 90px) 0 clamp(60px, 8vw, 100px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.gfx-hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  opacity: .55;
}

.gfx-hero-canvas.no-gl {
  background:
    radial-gradient(70% 60% at 75% 25%, rgba(255, 90, 31,.12), transparent 60%),
    radial-gradient(50% 50% at 20% 80%, rgba(120,200,255,.08), transparent 60%);
}
.gfx-hero-in { position: relative; z-index: 1; }
.gfx-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(10,10,11,.35) 0%, rgba(10,10,11,.7) 65%, var(--bg) 100%);
  pointer-events: none;
}
.gfx-title {
  margin-top: 18px;
  font-family: var(--disp); font-weight: 700;
  font-size: clamp(30px, 5.4vw, 64px);
  letter-spacing: -.03em; line-height: 1.03;
}
.gfx-lead {
  margin-top: 24px; max-width: 660px;
  color: var(--muted); font-size: clamp(15px, 1.6vw, 17.5px); line-height: 1.75;
}
.gfx-badge {
  display: inline-block; margin-top: 26px;
  border: 1px solid var(--line-2); padding: 8px 14px;
  color: var(--faint);
}
.gfx-badge.ok { color: var(--accent); border-color: rgba(255, 90, 31,.4); }
.gfx-badge.bad { color: #ff9d6b; border-color: rgba(255,157,107,.4); }
.gfx-scroll {
  position: absolute; left: 50%; bottom: 18px; z-index: 1;
  transform: translateX(-50%);
  color: var(--faint); letter-spacing: .3em;
}


.gfx-stage {
  position: relative;
  border: 1px solid var(--line);
  background: #08080a;
  overflow: hidden;
}
.gfx-stage canvas {
  display: block; width: 100%;
  height: clamp(300px, 46vh, 460px);
  touch-action: none;
}
.gfx-stage canvas.no-gl {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 12px, transparent 12px 24px),
    radial-gradient(60% 60% at 50% 45%, rgba(255, 90, 31,.10), transparent 65%);
}
.gfx-hud {
  position: absolute; top: 12px; left: 14px; right: 14px;
  display: flex; gap: 18px; flex-wrap: wrap;
  color: var(--faint); pointer-events: none;
}
.gfx-hud b { color: var(--accent); font-weight: 600; }
.gfx-ctl {
  position: relative;
  display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 14px 16px;
  background: var(--panel);
}
.gfx-ctl label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .05em; color: var(--faint);
}
.gfx-stage-liquid canvas { cursor: crosshair; }


.gl-fallback {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  max-width: 300px; text-align: center;
  font-family: var(--mono); font-size: 12px; line-height: 1.7;
  color: var(--muted);
  border: 1px dashed var(--line-2);
  padding: 16px 20px;
  background: rgba(10,10,11,.7);
}
.gl-fallback b { color: var(--accent); display: block; margin-bottom: 6px; }


.ring-stage {
  position: relative;
  height: clamp(300px, 44vh, 420px);
  border: 1px solid var(--line);
  background: radial-gradient(65% 70% at 50% 42%, #131317 0%, #08080a 70%);
  overflow: hidden;
  perspective: 1100px;
  cursor: grab;
  touch-action: pan-y;
}
.ring-stage:active { cursor: grabbing; }
.ring {
  position: absolute; left: 50%; top: 46%;
  width: 168px; height: 108px;
  margin: -54px 0 0 -84px;
  transform-style: preserve-3d;
  transform: rotateX(-9deg) rotateY(var(--ry, 0deg));
}
.ring-card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 18px;
  border: 1px solid var(--line-2);
  background: linear-gradient(160deg, rgba(24,24,29,.95), rgba(14,14,17,.95));
  backface-visibility: visible;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.ring-card span {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--accent);
}
.ring-card b {
  position: relative; z-index: 1; max-width: 100%;
  font-family: var(--disp); font-size: 15px; font-weight: 600;
  line-height: 1.15; letter-spacing: 0; overflow-wrap: anywhere;
}
.ring-card span { position: relative; z-index: 1; }
.ring-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, rgba(8,8,10,.55));
  pointer-events: none;
}
.ring-floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  background: linear-gradient(180deg, transparent, rgba(8,8,10,.95));
  pointer-events: none;
}


.goo-stage {
  position: relative;
  height: clamp(280px, 40vh, 380px);
  border: 1px solid var(--line);
  background: #08080a;
  overflow: hidden;
}
.goo-defs { position: absolute; width: 0; height: 0; }
.goo-layer {
  position: absolute; inset: 0;
  filter: url(#goo);
}
.blob {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  will-change: transform;
}
.blob.b1 { width: 88px; height: 88px; left: 18%; top: 30%; animation: float1 9s ease-in-out infinite; }
.blob.b2 { width: 64px; height: 64px; left: 42%; top: 55%; animation: float2 11s ease-in-out infinite; }
.blob.b3 { width: 104px; height: 104px; left: 62%; top: 26%; animation: float3 13s ease-in-out infinite; }
.blob.b4 { width: 52px; height: 52px; left: 76%; top: 62%; animation: float1 10s ease-in-out infinite reverse; }
.blob.b5 { width: 74px; height: 74px; left: 30%; top: 66%; animation: float3 12s ease-in-out infinite reverse; }
.blob.cursor { width: 62px; height: 62px; left: 0; top: 0; margin: -31px 0 0 -31px; opacity: 0; transition: opacity .3s ease; }
.goo-stage.live .blob.cursor { opacity: 1; }
@keyframes float1 { 0%,100% { transform: translate(0,0); } 33% { transform: translate(70px,-38px); } 66% { transform: translate(-42px,32px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-88px,-46px); } }
@keyframes float3 { 0%,100% { transform: translate(0,0); } 40% { transform: translate(-58px,44px); } 75% { transform: translate(46px,-30px); } }


.gfx-facts {
  list-style: none;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(28px, 4vw, 44px);
}
.gfx-facts li { background: var(--panel); padding: clamp(20px, 2.4vw, 28px); }
.gfx-facts b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.gfx-facts span { font-size: 13.5px; color: var(--muted); line-height: 1.65; }


@media (max-width: 940px) {
  .gfx-facts { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .gfx-hud { position: static; padding: 12px 14px 0; }
  .gfx-stage canvas { height: clamp(240px, 38vh, 320px); }
  .ring { width: 132px; height: 92px; margin: -46px 0 0 -66px; }
  .ring-card { padding: 12px; }
  .ring-card b { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none !important; }
  .gfx-hero-canvas { opacity: .4; }
}


.ascii-stage {
  position: relative;
  border: 1px solid var(--line);
  background: #08080a;
  overflow: hidden;
  display: grid; place-items: center;
  min-height: clamp(300px, 46vh, 460px);
  padding: 20px 10px;
}
.ascii {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(6px, 1.05vw, 12px);
  line-height: 1.02;
  letter-spacing: .06em;
  color: var(--accent);
  white-space: pre;
  text-shadow: 0 0 14px rgba(255, 90, 31, .28);
  user-select: none;
}
.ascii-hud {
  position: absolute; top: 12px; left: 14px; right: 14px;
  display: flex; justify-content: space-between; gap: 12px;
  color: var(--faint); pointer-events: none;
}
.ascii-hud b { color: var(--accent); font-weight: 600; }
.ascii-ctl {
  display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); flex-wrap: wrap;
  border: 1px solid var(--line); border-top: 0;
  padding: 14px 16px;
  background: var(--panel);
}
.ascii-ctl label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .05em; color: var(--faint);
}
.ascii-ctl select {
  font-family: var(--mono); font-size: 12px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 7px 10px; cursor: pointer;
}
.ascii-ctl select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }


.dust-stage {
  position: relative;
  border: 1px solid var(--line);
  background: #08080a;
  overflow: hidden;
}
.dust-stage canvas {
  display: block; width: 100%;
  height: clamp(260px, 40vh, 400px);
  touch-action: none;
}
.dust-hud {
  position: absolute; top: 12px; left: 14px; right: 14px;
  display: flex; justify-content: space-between; gap: 12px;
  color: var(--faint); pointer-events: none;
}
.dust-hud b { color: var(--accent); font-weight: 600; }
.dust-ctl {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border: 1px solid var(--line); border-top: 0;
  padding: 14px 16px;
  background: var(--panel);
}
.dust-input {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 220px;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .05em; color: var(--faint);
}
.dust-input input {
  flex: 1; min-width: 0;
  font-family: var(--disp); font-size: 15px; font-weight: 600;
  letter-spacing: .02em;
  color: var(--text); background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 9px 12px;
}
.dust-input input:focus { outline: none; border-color: var(--accent); }

@media (max-width: 600px) {
  .ascii { font-size: 5.4px; letter-spacing: .02em; }
  .ascii-ctl label, .dust-input { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ascii { text-shadow: none; }
}
