.app[data-scene="glyph-press"] .visual-shell,
.app[data-scene="glyph-press"] .energy-control {
  display: none;
}

.glyph-press-shell {
  position: relative;
  min-height: clamp(500px, 62vw, 720px);
  margin-top: 18px;
  border: 1px solid rgba(129, 226, 196, 0.38);
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at var(--glyph-x, 50%) var(--glyph-y, 52%), rgba(255, 216, 116, 0.18), transparent 23%),
    linear-gradient(135deg, #050607 0%, #071110 46%, #180e10 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 48px rgba(0, 0, 0, 0.32);
  touch-action: none;
}

.glyph-press-shell[hidden] {
  display: none;
}

.glyph-press-shell[data-glyph-mode="press"] {
  border-color: rgba(255, 216, 116, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 216, 116, 0.16), 0 0 62px rgba(255, 216, 116, 0.14);
}

.glyph-press-shell[data-glyph-mode="scatter"] {
  border-color: rgba(255, 116, 124, 0.68);
  background:
    radial-gradient(circle at var(--glyph-x, 50%) var(--glyph-y, 52%), rgba(255, 116, 124, 0.24), transparent 24%),
    linear-gradient(135deg, #050607 0%, #120c10 48%, #071110 100%);
}

.glyph-press-shell[data-glyph-mode="choir"] {
  border-color: rgba(197, 206, 255, 0.62);
  background:
    radial-gradient(ellipse at 50% 70%, rgba(197, 206, 255, 0.14), transparent 36%),
    radial-gradient(circle at var(--glyph-x, 50%) var(--glyph-y, 52%), rgba(129, 226, 196, 0.18), transparent 25%),
    linear-gradient(135deg, #050607 0%, #090d15 50%, #0e1018 100%);
}

.glyph-press {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: crosshair;
  user-select: none;
}

.glyph-press:focus-visible {
  outline: 3px solid rgba(255, 216, 116, 0.34);
  outline-offset: -7px;
}

.glyph-press::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 6.25%),
    repeating-linear-gradient(180deg, transparent 0 18%, rgba(255, 238, 180, 0.08) 18.2%, transparent 18.8%);
  opacity: 0.68;
  mix-blend-mode: screen;
}

.glyph-press::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 42%, rgba(255, 216, 116, 0.12) 47%, transparent 54%),
    linear-gradient(105deg, transparent 0 38%, rgba(129, 226, 196, 0.12) 45%, transparent 53%);
  opacity: 0.88;
  animation: glyph-press-scan 5.6s linear infinite;
}

.glyph-press-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.glyph-press-plate {
  position: absolute;
  inset: 16px 16px auto;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  color: rgba(243, 240, 232, 0.72);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  pointer-events: none;
}

.glyph-press-title {
  color: #81e2c4;
}

.glyph-press-readout {
  color: #ffd874;
  text-align: right;
}

.glyph-press-stamps {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.glyph-press-stamp {
  position: absolute;
  display: block;
  color: rgba(255, 242, 190, 0.95);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(2.8rem, 8vw, 7rem);
  font-weight: 950;
  line-height: 0.85;
  text-shadow: 0 0 24px rgba(255, 216, 116, 0.52);
  transform: translate(-50%, -50%) scaleX(0.72);
  animation: glyph-stamp 1350ms cubic-bezier(0.16, 0.8, 0.2, 1) forwards;
}

@keyframes glyph-press-scan {
  0% {
    transform: translateX(-16%) skewX(-6deg);
  }

  100% {
    transform: translateX(16%) skewX(-6deg);
  }
}

@keyframes glyph-stamp {
  0% {
    opacity: 0;
    filter: blur(7px);
    transform: translate(-50%, -50%) scaleX(0.28) scaleY(1.4);
  }

  18% {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, -50%) scaleX(1.08) scaleY(0.74);
  }

  100% {
    opacity: 0;
    filter: blur(2px);
    transform: translate(-50%, -62%) scaleX(0.92) scaleY(1.06);
  }
}

@media (max-width: 760px) {
  .glyph-press-shell {
    min-height: 540px;
  }

  .glyph-press-plate {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .glyph-press-readout {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glyph-press::after,
  .glyph-press-stamp {
    animation: none;
  }
}
