:root {
  --bg: #02070a;
  --panel: rgba(2, 15, 19, 0.82);
  --panel-2: rgba(4, 21, 26, 0.68);
  --cyan: rgba(117, 183, 199, 0.55);
  --cyan-bright: #8ac7d4;
  --red: #ff3a32;
  --red-deep: #b91513;
  --green: #20ef62;
  --text: #d4dde0;
  --muted: #91a4ab;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 18%, rgba(24, 103, 113, 0.2), transparent 32%),
    radial-gradient(circle at 50% 85%, rgba(14, 123, 77, 0.14), transparent 28%),
    #02070a;
  color: var(--text);
  font-family: "Rajdhani", "Arial Narrow", Arial, sans-serif;
}

.poster {
  position: relative;
  width: min(828px, 100vw);
  min-height: 1790px;
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0 26%, rgba(0, 0, 0, 0.45) 33%, rgba(0, 9, 11, 0.95) 58%, #03090b 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 4px),
    #02070a;
}

.poster::before,
.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

.poster::before {
  background:
    linear-gradient(90deg, rgba(255, 42, 35, 0.08) 0 1px, transparent 1px 58px),
    linear-gradient(0deg, rgba(72, 209, 232, 0.055) 0 1px, transparent 1px 44px);
  opacity: 0.33;
  mix-blend-mode: screen;
}

.poster::after {
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.78);
}

.cursor-glow {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 239, 98, 0.14), rgba(82, 220, 238, 0.05) 42%, transparent 68%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 220ms ease;
}

.poster.pointer-live .cursor-glow {
  opacity: 1;
}

.hero {
  position: relative;
  height: 592px;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 592px;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.08) brightness(0.8) saturate(1.08);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0 51%, rgba(0, 6, 8, 0.3) 61%, #02080b 96%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.25), transparent 12%, transparent 82%, rgba(0, 0, 0, 0.25));
}

.hud-card,
.panel,
.token-card,
.stat-card {
  background: linear-gradient(180deg, rgba(5, 20, 24, 0.82), rgba(3, 11, 14, 0.78));
  border: 1px solid var(--cyan);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  box-shadow: inset 0 0 26px rgba(78, 178, 203, 0.12), 0 0 18px rgba(0, 0, 0, 0.35);
}

.hud-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-transform: uppercase;
}

.top-left {
  top: 14px;
  left: 14px;
  width: 218px;
  height: 55px;
  border-color: rgba(255, 56, 47, 0.58);
}

.top-right {
  top: 18px;
  right: 14px;
  width: 174px;
  height: 90px;
}

.hud-card p {
  margin: 0;
  color: #c9d3d6;
  font-size: 14px;
  line-height: 1.05;
  letter-spacing: 0.03em;
}

.hud-card b {
  display: block;
  margin-top: 4px;
  color: var(--red);
  font-family: "Oswald", sans-serif;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.04em;
}

.top-right i {
  display: block;
  width: 124px;
  height: 18px;
  margin-top: 10px;
  background: repeating-linear-gradient(90deg, transparent 0 2px, rgba(255, 49, 42, 0.95) 2px 3px, transparent 3px 6px);
  clip-path: polygon(0 80%, 4% 70%, 8% 90%, 12% 55%, 16% 72%, 20% 34%, 24% 80%, 28% 50%, 32% 100%, 36% 45%, 40% 64%, 44% 10%, 48% 83%, 52% 64%, 56% 98%, 60% 30%, 64% 75%, 68% 48%, 72% 88%, 76% 22%, 80% 78%, 84% 62%, 88% 90%, 92% 40%, 96% 76%, 100% 60%, 100% 100%, 0 100%);
}

.status-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.red-dot {
  background: var(--red);
  box-shadow: 0 0 16px rgba(255, 58, 50, 0.9);
}

.green-dot {
  background: var(--green);
  box-shadow: 0 0 13px rgba(32, 239, 98, 0.8);
}

.sheet-icon {
  display: inline-block;
  width: 42px;
  height: 42px;
  background-image: url("./assets/icons.png");
  background-size: 400% 200%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 9px currentColor);
  vertical-align: middle;
}

.sheet-icon.red {
  color: var(--red);
  background-image: url("./assets/icons.png");
}

.sheet-icon.green {
  color: var(--green);
  background-image: url("./assets/icons.png");
}
.sheet-icon.bio { background-position: 0% 0%; }
.sheet-icon.copy { background-position: 66.66% 0%; }
.sheet-icon.target { background-position: 100% 0%; }
.sheet-icon.eye { background-position: 33.33% 100%; }
.sheet-icon.chaos { background-position: 66.66% 100%; }
.sheet-icon.mutation { background-position: 0% 100%; }
.sheet-icon.speed { background-position: 33.33% 100%; }
.sheet-icon.heart { background-position: 100% 100%; }
.sheet-icon.small { width: 26px; height: 26px; }
.sheet-icon.tiny { width: 17px; height: 17px; }

.hero-title {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: 417px;
  text-align: center;
}

h1 {
  position: relative;
  margin: 0;
  color: #f0f0ec;
  font-family: "Anton", Impact, sans-serif;
  font-size: 112px;
  line-height: 0.9;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  text-shadow: 2px 0 rgba(255, 29, 22, 0.82), -2px 0 rgba(65, 192, 220, 0.36), 0 0 24px rgba(255, 255, 255, 0.22);
  transform: scaleX(1.04);
}

h1::before,
h1::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 55, 46, 0.95) 0 58px, transparent 58px 92px);
}

h1::before { top: -14px; }
h1::after { bottom: -14px; }

.title-icon {
  width: 30px;
  height: 30px;
  margin-top: 24px;
}

.token-row {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 28px;
  height: 94px;
  padding: 13px 14px;
  margin-top: -2px;
}

.stat-card {
  height: 68px;
  padding: 12px 16px;
  text-transform: uppercase;
}

.stat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c0cbcf;
  font-size: 15px;
  font-weight: 600;
}

.stat-body {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-top: 4px;
}

.stat-body strong {
  color: #d8e0e2;
  font-family: "Oswald", sans-serif;
  font-size: 28px;
  line-height: 1;
}

.stat-body strong span {
  margin-left: 4px;
  color: #c8d2d6;
  font-size: 20px;
}

.signal-bars {
  position: relative;
  width: 80px;
  height: 19px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: stretch;
  gap: 2px;
  padding: 2px 0;
}

.signal-bars::before {
  content: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(32, 239, 98, 0.28);
  box-shadow: 0 0 10px rgba(32, 239, 98, 0.4);
}

.signal-bars i {
  position: relative;
  z-index: 1;
  height: auto !important;
  min-height: 0;
  background: linear-gradient(180deg, rgba(97, 255, 139, 0.95), rgba(12, 190, 67, 0.82));
  clip-path: none;
  transform: none !important;
  box-shadow: 0 0 8px rgba(32, 239, 98, 0.45), inset 0 0 7px rgba(255, 255, 255, 0.15);
}

.token-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 72px;
  border-color: rgba(255, 58, 50, 0.72);
  color: #ff7973;
  text-transform: uppercase;
  box-shadow: inset 0 0 34px rgba(255, 58, 50, 0.12), 0 0 22px rgba(255, 58, 50, 0.16);
}

.token-card strong {
  font-family: "Oswald", sans-serif;
  font-size: 43px;
  letter-spacing: 0.04em;
  text-shadow: 0 0 18px rgba(255, 58, 50, 0.7);
}

.lore-gate {
  position: relative;
  display: block;
  width: 270px;
  height: 74px;
  margin: 15px auto 0;
  border: 0;
  padding: 0;
  background: transparent;
  filter: drop-shadow(0 0 18px rgba(32, 239, 98, 0.46)) drop-shadow(0 0 14px rgba(255, 231, 53, 0.28));
}

.lore-gate::before {
  content: "";
  position: absolute;
  inset: 19px 28px;
  background: linear-gradient(90deg, transparent, rgba(32, 239, 98, 0.34), rgba(255, 231, 53, 0.24), transparent);
  opacity: 0.75;
  filter: blur(16px);
}

.lore-gate img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 180ms ease, filter 180ms ease;
}

.lore-gate:hover img {
  transform: scale(1.03);
  filter: brightness(1.2) saturate(1.16);
}

.map-wrap {
  position: relative;
  z-index: 2;
  height: 405px;
  margin: 12px 14px 0;
  overflow: hidden;
}

.map-wrap::after {
  content: none;
}

.radar-sweep {
  position: absolute;
  left: 315px;
  top: 111px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, rgba(32, 239, 98, 0.22), transparent 24%);
  mix-blend-mode: screen;
  opacity: 0.55;
  transform-origin: 50% 50%;
  pointer-events: none;
  z-index: 2;
}

.infection-ping {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--red);
  background: rgba(255, 58, 50, 0.5);
  box-shadow: 0 0 18px rgba(255, 58, 50, 0.75);
  pointer-events: none;
  z-index: 2;
}

.map-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78) contrast(1.12) saturate(1.1);
}

.map-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 8, 10, 0.38), transparent 38%, rgba(0, 0, 0, 0.2));
}

.map-title {
  position: absolute;
  z-index: 2;
  top: 25px;
  left: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #d8e1e3;
  font-size: 31px;
  font-weight: 700;
}

.soft {
  background: rgba(2, 12, 15, 0.7);
}

.legend {
  position: absolute;
  z-index: 3;
  top: 66px;
  left: 17px;
  width: 182px;
  padding: 14px 16px 11px;
  border-color: rgba(255, 58, 50, 0.18);
}

.legend p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 13px;
  color: #b7c5c9;
  font-size: 12px;
}

.mini-dot {
  width: 12px;
  height: 12px;
  border: 2px solid var(--red);
  border-radius: 50%;
}

.mini-triangle {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 13px solid #ffbe2f;
  filter: drop-shadow(0 0 7px #ffbe2f);
}

.route-line {
  width: 20px;
  border-top: 2px dashed var(--red);
}

.copy-ca {
  position: absolute;
  z-index: 4;
  top: -12px;
  right: 2px;
  width: 214px;
  height: 88px;
  padding: 12px 12px;
  cursor: pointer;
}

.green-panel {
  border-color: rgba(32, 239, 98, 0.62);
  box-shadow: inset 0 0 26px rgba(32, 239, 98, 0.1), 0 0 16px rgba(32, 239, 98, 0.1);
}

.copy-ca h3 {
  margin: 0 0 7px;
  font-family: "Oswald", sans-serif;
  font-size: 22px;
  text-transform: uppercase;
}

.copy-ca div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  height: 34px;
  padding: 0 7px;
  border: 1px solid rgba(32, 239, 98, 0.4);
  color: #91a5a8;
  font-size: 14px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: inset 0 0 16px rgba(32, 239, 98, 0.08);
}

.ca-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.location {
  position: absolute;
  z-index: 3;
  left: 17px;
  bottom: 12px;
  width: 185px;
  height: 112px;
  padding: 11px 13px;
  text-transform: uppercase;
}

.location p {
  margin: 0 0 6px;
  color: #d6dddd;
  font-size: 12px;
  line-height: 1.1;
}

.location strong {
  display: block;
  color: #b9c7cb;
  font-size: 14px;
  font-weight: 500;
}

.location b {
  color: #22b7ff;
  font-size: 13px;
}

.location em {
  color: var(--green);
  font-style: normal;
  font-weight: 700;
}

.location hr {
  border: 0;
  margin: 8px 0 7px;
  border-top: 1px solid rgba(164, 207, 218, 0.18);
}

.map-tools {
  position: absolute;
  z-index: 3;
  right: 11px;
  bottom: 62px;
  width: 47px;
  height: 134px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 8px 0;
  border-color: rgba(120, 159, 170, 0.32);
}

.map-tools button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(160, 216, 225, 0.36);
  background: rgba(3, 14, 17, 0.65);
  box-shadow: inset 0 0 12px rgba(117, 183, 199, 0.12);
}

.map-tools button.active {
  border-color: rgba(32, 239, 98, 0.78);
  box-shadow: inset 0 0 14px rgba(32, 239, 98, 0.18), 0 0 14px rgba(32, 239, 98, 0.24);
}

.tool-glyph {
  position: relative;
  width: 19px;
  height: 19px;
  display: block;
  color: #cdd8dc;
  filter: drop-shadow(0 0 7px rgba(173, 226, 236, 0.48));
}

.tool-glyph.radar {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.tool-glyph.radar::before,
.tool-glyph.radar::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: currentColor;
}

.tool-glyph.radar::after {
  inset: -5px 8px auto auto;
  width: 2px;
  height: 14px;
  transform: rotate(45deg);
  transform-origin: bottom;
}

.tool-glyph.focus {
  border: 2px solid currentColor;
}

.tool-glyph.focus::before,
.tool-glyph.focus::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.tool-glyph.focus::before {
  left: 7px;
  top: -4px;
  width: 2px;
  height: 25px;
}

.tool-glyph.focus::after {
  left: -4px;
  top: 7px;
  width: 25px;
  height: 2px;
}

.tool-glyph.layers::before,
.tool-glyph.layers::after,
.tool-glyph.layers {
  border: 2px solid currentColor;
  transform: rotate(45deg);
}

.tool-glyph.layers::before,
.tool-glyph.layers::after {
  content: "";
  position: absolute;
  inset: 4px;
}

.tool-glyph.layers::after {
  inset: 8px;
}

.map-node {
  position: absolute;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 58, 50, 0.78);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 58, 50, 0.85) 0 15%, rgba(255, 58, 50, 0.18) 18% 42%, transparent 45%);
  box-shadow: 0 0 20px rgba(255, 58, 50, 0.72), inset 0 0 20px rgba(255, 58, 50, 0.3);
  z-index: 3;
}

.map-node::before,
.map-node::after {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px dashed rgba(255, 58, 50, 0.7);
  border-radius: 50%;
}

.map-node::after {
  inset: -18px;
  opacity: 0.45;
}

.map-node.active {
  border-color: #ffdf74;
  box-shadow: 0 0 28px rgba(255, 211, 68, 0.85), inset 0 0 24px rgba(255, 58, 50, 0.42);
}

.route-probe {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4438;
  box-shadow: 0 0 18px rgba(255, 68, 56, 0.9);
  z-index: 3;
  pointer-events: none;
}

.map-info {
  position: absolute;
  z-index: 5;
  right: 68px;
  bottom: 18px;
  width: 205px;
  min-height: 88px;
  padding: 12px;
  opacity: 0;
  transform: translateY(10px);
}

.map-info h3 {
  margin: 0 0 5px;
  font-family: "Oswald", sans-serif;
  font-size: 18px;
  text-transform: uppercase;
}

.map-info strong {
  display: block;
  color: #e2ebea;
  font-size: 15px;
  text-transform: uppercase;
}

.map-info p {
  margin: 5px 0 0;
  color: #a6b5b8;
  font-size: 12px;
  line-height: 1.2;
}

.capt-pose {
  position: absolute;
  display: block;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  z-index: 6;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 18px rgba(32, 239, 98, 0.28));
}

.capt-pose img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.capt-pose:hover {
  filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 25px rgba(32, 239, 98, 0.48));
}

.capt-pose:hover img {
  transform: translateY(-4px) scale(1.025);
}

.capt-pose.pose-active img {
  animation: commanderSalute 650ms ease;
}

.capt-pose:focus-visible {
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 24px rgba(32, 239, 98, 0.62));
}

.map-pose {
  right: 92px;
  bottom: -8px;
  width: 112px;
}

.map-pose::before,
.ops-pose::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 74px;
  height: 18px;
  border-radius: 50%;
  background: rgba(32, 239, 98, 0.18);
  filter: blur(9px);
  transform: translateX(-50%);
}

.map-pose img {
  animation: hantaTinyFloat 4.4s ease-in-out infinite;
}

.status-grid {
  display: grid;
  grid-template-columns: 298px 230px 1fr;
  gap: 10px;
  margin: 18px 14px 0;
}

.status-panel {
  height: 166px;
  padding: 14px;
}

.status-panel h4 {
  margin: 0 0 11px;
  color: #c4ced2;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ship-panel h4 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ship-content {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
}

.ship-content img {
  width: 120px;
  height: 92px;
  object-fit: cover;
  border: 1px solid rgba(117, 183, 199, 0.28);
  filter: brightness(0.82);
}

.ship-content strong {
  display: block;
  margin: 5px 0 13px;
  color: #e4e9ea;
  font-size: 16px;
  text-transform: uppercase;
}

.ship-content p {
  margin: 0 0 7px;
  color: #9dabb0;
  font-size: 12px;
  text-transform: uppercase;
}

.ship-content span {
  margin-left: 6px;
  color: #c2ccce;
}

.ship-content em {
  margin-left: 6px;
  color: var(--red);
  font-style: normal;
}

.level {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 72px;
}

.level strong {
  color: var(--red);
  font-family: "Oswald", sans-serif;
  font-size: 31px;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(255, 58, 50, 0.4);
}

.meter {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 3px;
  margin-top: 9px;
  height: 22px;
}

.meter i {
  background: linear-gradient(180deg, rgba(255, 72, 62, 0.35), rgba(255, 49, 41, 0.8));
  box-shadow: 0 0 8px rgba(255, 58, 50, 0.25);
}

.meter i:nth-last-child(-n+4) {
  background: #ff3129;
  box-shadow: 0 0 12px rgba(255, 58, 50, 0.8);
}

.wallets-panel p {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  margin: 0 0 7px;
  color: #abb8bc;
  font-size: 13px;
}

.wallets-panel b {
  color: var(--red);
  font-size: 14px;
}

.ops-console {
  position: relative;
  z-index: 3;
  margin: 16px 14px 0;
  padding: 17px;
  overflow: hidden;
  border-color: rgba(32, 239, 98, 0.48);
  background:
    radial-gradient(circle at 18% 35%, rgba(32, 239, 98, 0.1), transparent 31%),
    radial-gradient(circle at 72% 30%, rgba(255, 58, 50, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(5, 20, 24, 0.9), rgba(2, 10, 13, 0.88));
}

.ops-pose {
  right: 26px;
  top: 48px;
  width: 96px;
}

.ops-pose img {
  animation: hantaTinyFloat 4.9s ease-in-out infinite reverse;
}

.ops-console::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(32, 239, 98, 0.035) 14px 15px),
    repeating-linear-gradient(0deg, transparent 0 17px, rgba(126, 217, 230, 0.035) 17px 18px);
  opacity: 0.66;
  pointer-events: none;
}

.ops-console.command-fired {
  animation: opsConsolePulse 520ms ease;
}

.ops-header,
.ops-layout {
  position: relative;
  z-index: 1;
}

.ops-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
  text-transform: uppercase;
}

.ops-header p {
  margin: 0 0 4px;
  color: #8fa2a7;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.ops-header h2 {
  margin: 0;
  color: #e1ebea;
  font-family: "Oswald", sans-serif;
  font-size: 31px;
  line-height: 1;
}

.ops-status {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 170px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(32, 239, 98, 0.26);
  background: rgba(0, 0, 0, 0.2);
  color: #d8eee0;
  font-size: 13px;
}

.ops-layout {
  display: grid;
  grid-template-columns: 205px 1fr 230px;
  gap: 12px;
}

.ops-core {
  min-height: 226px;
  padding: 14px;
  display: grid;
  gap: 12px;
  justify-items: center;
  border-color: rgba(126, 217, 230, 0.22);
}

.ops-orb {
  position: relative;
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 239, 98, 0.2), rgba(0, 0, 0, 0.24) 46%, transparent 70%);
}

.ops-ring,
.ops-ring::before {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(32, 239, 98, 0.44);
  box-shadow: 0 0 18px rgba(32, 239, 98, 0.16);
}

.ops-ring {
  inset: 10px;
  animation: opsSpin 7.2s linear infinite;
}

.ops-ring::before {
  content: "";
  inset: 18px;
  border-style: dashed;
  border-color: rgba(255, 58, 50, 0.45);
}

.ops-ring.two {
  inset: 24px;
  border-color: rgba(126, 217, 230, 0.36);
  animation-duration: 5.1s;
  animation-direction: reverse;
}

.ops-ring.three {
  inset: 42px;
  border-style: dotted;
  border-color: rgba(255, 58, 50, 0.5);
  animation-duration: 3.7s;
}

.ops-nucleus {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 239, 98, 0.34), rgba(0, 0, 0, 0.7) 64%);
  box-shadow: inset 0 0 22px rgba(32, 239, 98, 0.22), 0 0 28px rgba(32, 239, 98, 0.26);
}

.ops-particle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(32, 239, 98, 0.8);
  transform-origin: 0 0;
  animation: opsParticle 2.8s linear infinite;
}

.ops-readouts {
  width: 100%;
  display: grid;
  gap: 7px;
}

.ops-readouts div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 27px;
  padding: 0 9px;
  border: 1px solid rgba(126, 217, 230, 0.15);
  background: rgba(0, 0, 0, 0.17);
  text-transform: uppercase;
}

.ops-readouts span {
  color: #8fa2a7;
  font-size: 11px;
}

.ops-readouts strong {
  color: #e8f5ef;
  font-family: "Oswald", sans-serif;
  font-size: 17px;
}

.ops-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.ops-actions button {
  position: relative;
  min-height: 108px;
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  gap: 0 10px;
  padding: 14px;
  border: 1px solid rgba(32, 239, 98, 0.34);
  color: #d4ece0;
  background:
    linear-gradient(135deg, rgba(32, 239, 98, 0.11), transparent 42%),
    rgba(0, 0, 0, 0.22);
  font-family: "Rajdhani", sans-serif;
  text-align: left;
  text-transform: uppercase;
  overflow: hidden;
}

.ops-actions button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0 36%, rgba(255, 255, 255, 0.2) 49%, transparent 62%);
  transform: translateX(-120%);
}

.ops-actions button:hover {
  border-color: rgba(32, 239, 98, 0.86);
  box-shadow: inset 0 0 22px rgba(32, 239, 98, 0.12), 0 0 18px rgba(32, 239, 98, 0.18);
}

.ops-actions button.active::after {
  animation: sheen 620ms ease forwards;
}

.ops-actions .sheet-icon,
.ops-actions .tool-glyph {
  grid-row: 1 / 3;
  justify-self: center;
}

.ops-actions b {
  align-self: end;
  color: #f0f7f3;
  font-size: 17px;
}

.ops-actions em {
  align-self: start;
  color: #8fa2a7;
  font-style: normal;
  font-size: 12px;
  line-height: 1.05;
}

.ops-telemetry {
  min-height: 226px;
  padding: 14px;
  border-color: rgba(126, 217, 230, 0.2);
}

.ops-meter {
  margin-bottom: 12px;
  text-transform: uppercase;
}

.ops-meter span {
  display: block;
  margin-bottom: 6px;
  color: #a9bbbf;
  font-size: 12px;
}

.ops-meter div {
  height: 15px;
  padding: 2px;
  border: 1px solid rgba(32, 239, 98, 0.28);
  background: rgba(0, 0, 0, 0.26);
}

.ops-meter i {
  display: block;
  width: 31%;
  height: 100%;
  background: linear-gradient(90deg, rgba(32, 239, 98, 0.45), #2dff70);
  box-shadow: 0 0 14px rgba(32, 239, 98, 0.5);
  transition: width 420ms ease;
}

.ops-meter.red div {
  border-color: rgba(255, 58, 50, 0.32);
}

.ops-meter.red i {
  width: 74%;
  background: linear-gradient(90deg, rgba(255, 58, 50, 0.36), #ff3a32);
  box-shadow: 0 0 14px rgba(255, 58, 50, 0.44);
}

.ops-log {
  height: 128px;
  overflow: hidden;
  padding: 8px;
  border: 1px solid rgba(126, 217, 230, 0.16);
  background: rgba(0, 0, 0, 0.24);
}

.ops-log p {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 8px;
  margin: 0 0 7px;
  color: #b9c9c6;
  font-size: 12px;
  line-height: 1.15;
  text-transform: uppercase;
}

.ops-log time {
  color: var(--green);
}

.bottom-grid {
  position: relative;
  display: grid;
  grid-template-columns: 300px 222px 1fr;
  gap: 12px;
  margin: 20px 14px 28px;
}

.green-outline {
  min-height: 440px;
  padding: 23px 19px;
  border-color: rgba(32, 239, 98, 0.62);
  box-shadow: inset 0 0 32px rgba(32, 239, 98, 0.08), 0 0 18px rgba(32, 239, 98, 0.1);
}

.bottom-grid h2 {
  margin: 0 0 16px;
  color: #d7dfdf;
  font-family: "Oswald", sans-serif;
  font-size: 31px;
  line-height: 1;
}

.input-row {
  display: flex;
  align-items: center;
  height: 37px;
  margin-bottom: 14px;
  border: 1px solid rgba(129, 178, 188, 0.22);
  color: #77898e;
  font-size: 14px;
}

.input-row span,
.input-row input {
  flex: 1;
  padding-left: 12px;
}

.input-row input {
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #c6d2d5;
  font: inherit;
}

.input-row input::placeholder {
  color: #77898e;
}

.input-row button {
  width: 58px;
  height: 35px;
  border: 0;
  color: #021308;
  background: linear-gradient(180deg, #2cff6c, #12aa3e);
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(32, 239, 98, 0.55);
}

.risk {
  position: relative;
  display: grid;
  grid-template-columns: 66px 1fr 74px;
  grid-template-rows: 24px 38px;
  align-items: center;
  height: 82px;
  margin-bottom: 15px;
  padding: 13px 12px;
}

.red-panel {
  border-color: rgba(255, 58, 50, 0.56);
  box-shadow: inset 0 0 26px rgba(255, 58, 50, 0.1);
}

.risk p {
  grid-column: 2 / 4;
  grid-row: 1;
  margin: 0;
  color: #a7b3b6;
  font-size: 14px;
  text-transform: uppercase;
}

.risk strong {
  grid-column: 2;
  grid-row: 2;
  display: block;
  color: var(--red);
  font-family: "Oswald", sans-serif;
  font-size: 38px;
  line-height: 1;
  text-transform: uppercase;
}

.risk b {
  grid-column: 3;
  grid-row: 2;
  align-self: end;
  color: var(--red);
  font-family: "Oswald", sans-serif;
  font-size: 31px;
  line-height: 1;
}

.risk .sheet-icon {
  grid-column: 1;
  grid-row: 1 / 3;
}

.diag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 39px;
  padding: 0 13px;
  margin-bottom: 9px;
  border: 1px solid rgba(136, 176, 184, 0.16);
  color: #9ca9ad;
  font-size: 12px;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.15);
}

.diag-row b {
  color: var(--red);
  font-size: 13px;
}

.diag-row .amber {
  color: #ffc43b;
}

button {
  cursor: pointer;
}

.danger,
.generate {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(255, 58, 50, 0.42);
  color: var(--red);
  background: rgba(255, 58, 50, 0.08);
  font-family: "Rajdhani", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: inset 0 0 20px rgba(255, 58, 50, 0.1);
}

.danger {
  position: relative;
  overflow: hidden;
}

.danger::before,
.generate::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0 38%, rgba(255, 255, 255, 0.32) 48%, transparent 58%);
  transform: translateX(-110%);
  pointer-events: none;
}

.danger:hover::before,
.generate.generating::before {
  animation: sheen 900ms ease forwards;
}

.commander {
  position: relative;
  min-height: 462px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.commander::before {
  content: "";
  position: absolute;
  inset: 190px -28px 0;
  background: linear-gradient(180deg, rgba(63, 142, 154, 0.14), rgba(0, 0, 0, 0.36));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.commander img {
  position: absolute;
  z-index: 2;
  bottom: 30px;
  width: 255px;
  height: 430px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 22px 25px rgba(0, 0, 0, 0.72));
  animation: hantaIdle 4.8s ease-in-out infinite;
}

.commander.salute img {
  animation: commanderSalute 720ms ease;
}

.commander.salute .nameplate {
  border-color: rgba(32, 239, 98, 0.9);
  box-shadow: inset 0 0 24px rgba(32, 239, 98, 0.18), 0 0 24px rgba(32, 239, 98, 0.28);
}

.nameplate {
  position: absolute;
  z-index: 4;
  bottom: 0;
  width: 210px;
  height: 59px;
  display: grid;
  grid-template-columns: 34px 1fr 16px;
  align-items: center;
  padding: 8px 10px;
  border-color: rgba(117, 183, 199, 0.42);
  text-transform: uppercase;
}

.nameplate strong {
  color: #cdd7d8;
  font-size: 18px;
  letter-spacing: 0.05em;
}

.nameplate p {
  grid-column: 2;
  margin: -8px 0 0;
  color: #a7b5b8;
  font-size: 12px;
}

.strain h5 {
  margin: 22px 0 10px;
  color: #aebabe;
  font-size: 13px;
  text-transform: uppercase;
}

.traits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 10px;
}

.traits button {
  position: relative;
  display: grid;
  grid-template-rows: 62px 16px;
  place-items: center;
  gap: 4px;
  height: 82px;
  border: 0;
  color: #b8c5c8;
  background: transparent;
  font-family: "Rajdhani", sans-serif;
  text-transform: uppercase;
}

.traits button::before {
  content: "";
  position: absolute;
  top: 0;
  width: 70px;
  height: 62px;
  background: rgba(32, 239, 98, 0.1);
  border: 2px solid rgba(32, 239, 98, 0.64);
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
  box-shadow: inset 0 0 18px rgba(32, 239, 98, 0.18), 0 0 14px rgba(32, 239, 98, 0.2);
}

.traits .sheet-icon {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: center;
  margin-top: 0;
  transform: translateY(0);
}

.traits b {
  position: relative;
  z-index: 1;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
}

.map-routes-focus .map-img {
  filter: brightness(0.92) contrast(1.25) saturate(1.3);
}

.map-layer-boost .map-node,
.map-layer-boost .infection-ping {
  filter: hue-rotate(95deg) saturate(1.2);
}

.generate {
  position: relative;
  overflow: hidden;
  height: 48px;
  margin-top: 22px;
  border-color: rgba(32, 239, 98, 0.72);
  color: #031407;
  background: linear-gradient(180deg, #39ff70, #15b541);
  font-size: 14px;
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.25), 0 0 20px rgba(32, 239, 98, 0.65);
}

.scan-flash {
  animation: redFlash 520ms ease;
}

.copied {
  border-color: rgba(32, 239, 98, 0.95);
  box-shadow: inset 0 0 30px rgba(32, 239, 98, 0.22), 0 0 26px rgba(32, 239, 98, 0.26);
}

.trait-active::before {
  background: rgba(32, 239, 98, 0.2);
  border-color: rgba(95, 255, 136, 0.98);
}

.glitching h1 {
  animation: titleGlitch 180ms steps(2) 3;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(0, 5, 7, 0.72);
  backdrop-filter: blur(8px);
}

.modal-backdrop.open {
  display: grid;
}

.modal {
  position: relative;
  width: min(520px, calc(100vw - 28px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 22px;
  background: rgba(3, 16, 19, 0.94);
  box-shadow: 0 0 42px rgba(255, 58, 50, 0.22), inset 0 0 34px rgba(100, 210, 226, 0.09);
}

.modal::-webkit-scrollbar {
  width: 5px;
}

.modal::-webkit-scrollbar-thumb {
  background: rgba(32, 239, 98, 0.52);
  border-radius: 999px;
}

.modal h2 {
  margin: 0 0 16px;
  font-family: "Oswald", sans-serif;
  font-size: 34px;
  line-height: 1;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 58, 50, 0.42);
  color: var(--red);
  background: rgba(0, 0, 0, 0.3);
  font-size: 26px;
  line-height: 1;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 18px;
  align-items: center;
}

.modal-kicker {
  margin: 0 0 4px;
  color: #8fa0a5;
  font-size: 13px;
  text-transform: uppercase;
}

.modal-grid strong,
.modal-grid b {
  display: block;
  margin: 0 0 14px;
  color: #f3f8f6;
  font-family: "Oswald", sans-serif;
  font-size: 24px;
  text-transform: uppercase;
}

.modal-grid b {
  color: var(--red);
  font-size: 36px;
}

.scan-orb {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255, 58, 50, 0.52);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 58, 50, 0.16), transparent 60%);
  box-shadow: inset 0 0 24px rgba(255, 58, 50, 0.28), 0 0 30px rgba(255, 58, 50, 0.24);
}

.scan-report {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.scan-report div {
  border: 1px solid rgba(117, 183, 199, 0.2);
  padding: 10px;
  background: rgba(0, 0, 0, 0.16);
  text-transform: uppercase;
}

.scan-report span {
  display: block;
  color: #8da0a5;
  font-size: 11px;
}

.scan-report b {
  color: #e6eeee;
  font-size: 16px;
}

.pfp-modal {
  width: min(980px, calc(100vw - 28px));
}

.pfp-layout {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(280px, 1fr);
  gap: 18px;
  align-items: start;
}

#pfpCanvas {
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  background: #02090c;
  box-shadow: 0 0 28px rgba(32, 239, 98, 0.18);
}

.pfp-controls {
  display: grid;
  gap: 12px;
  max-height: min(74vh, 620px);
  overflow: auto;
  padding-right: 6px;
}

.pfp-controls::-webkit-scrollbar {
  width: 5px;
}

.pfp-controls::-webkit-scrollbar-thumb {
  background: rgba(32, 239, 98, 0.5);
  border-radius: 999px;
}

.pfp-group {
  display: grid;
  gap: 7px;
}

.pfp-group h4 {
  margin: 0;
  color: #dfffea;
  font: 700 13px/1 "Rajdhani", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pfp-options,
.aura-options {
  display: grid;
  gap: 7px;
}

.bg-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.layer-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pfp-controls button,
.pfp-controls a {
  display: grid;
  place-items: center;
  border: 1px solid rgba(32, 239, 98, 0.38);
  color: #c8fbd6;
  background: rgba(32, 239, 98, 0.08);
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.pfp-controls button:hover,
.pfp-controls a:hover {
  border-color: rgba(32, 239, 98, 0.82);
  box-shadow: 0 0 14px rgba(32, 239, 98, 0.24);
  transform: translateY(-1px);
}

.pfp-option {
  position: relative;
  min-height: 42px;
  overflow: hidden;
  grid-template-columns: 54px 1fr;
  gap: 8px;
  justify-items: start;
  padding: 4px 8px 4px 4px;
  text-align: left;
}

.pfp-option img {
  width: 54px;
  height: 34px;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.06);
}

.pfp-option span {
  position: relative;
  z-index: 1;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.layer-options .pfp-option {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 5px;
}

.layer-options .pfp-option img {
  width: 100%;
  height: 34px;
  object-fit: cover;
  background: radial-gradient(circle, rgba(32, 239, 98, 0.22), rgba(0, 0, 0, 0.88));
}

.aura-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aura-options button {
  grid-template-columns: 18px 1fr;
  min-height: 34px;
  justify-items: start;
  gap: 7px;
  padding: 0 9px;
}

.aura-options button span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--aura);
  box-shadow: 0 0 11px var(--aura), 0 0 24px color-mix(in srgb, var(--aura) 38%, transparent);
}

.pfp-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pfp-actions button,
.pfp-actions a {
  min-height: 42px;
}

.pfp-controls .active {
  color: #031407;
  background: linear-gradient(180deg, #38ff71, #13a93d);
  box-shadow: 0 0 18px rgba(32, 239, 98, 0.5);
}

.aura-options button.active {
  color: #f7fff8;
  border-color: var(--aura);
  background: color-mix(in srgb, var(--aura) 28%, rgba(0, 0, 0, 0.72));
  box-shadow: 0 0 16px color-mix(in srgb, var(--aura) 58%, transparent);
}

.site-footer {
  position: relative;
  z-index: 4;
  margin: 24px 14px 32px;
  min-height: 120px;
  display: grid;
  place-items: center;
  border-color: rgba(255, 58, 50, 0.34);
  background:
    radial-gradient(circle at 50% 50%, rgba(32, 239, 98, 0.08), transparent 48%),
    linear-gradient(180deg, rgba(5, 20, 24, 0.88), rgba(3, 11, 14, 0.88));
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.footer-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 108px;
  height: 74px;
  border: 1px solid rgba(255, 58, 50, 0.58);
  background:
    linear-gradient(180deg, rgba(16, 34, 38, 0.86), rgba(2, 8, 10, 0.9)),
    radial-gradient(circle, rgba(255, 58, 50, 0.16), transparent 58%);
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 16px 100%, 0 50%);
  box-shadow: inset 0 0 24px rgba(255, 58, 50, 0.13), 0 0 22px rgba(255, 58, 50, 0.22);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.footer-link::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(92, 219, 237, 0.28);
  clip-path: inherit;
}

.footer-link:hover {
  transform: translateY(-4px) scale(1.04);
  border-color: rgba(32, 239, 98, 0.85);
  box-shadow: inset 0 0 28px rgba(32, 239, 98, 0.14), 0 0 34px rgba(32, 239, 98, 0.34), 0 0 24px rgba(255, 58, 50, 0.24);
}

.footer-icon {
  position: relative;
  width: 62px;
  height: 62px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 0 12px rgba(255, 58, 50, 0.74));
}

.pump .footer-icon { background-image: url("./assets/footer-icon-pump.png"); }
.dex .footer-icon { background-image: url("./assets/footer-icon-dex.png"); }
.x-link .footer-icon { background-image: url("./assets/footer-icon-x.png"); }

.lore-modal {
  width: min(720px, calc(100vw - 28px));
  padding: 18px;
  border-color: rgba(255, 58, 50, 0.72);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 58, 50, 0.2), transparent 36%),
    linear-gradient(145deg, rgba(6, 33, 38, 0.98), rgba(2, 8, 11, 0.98) 45%, rgba(38, 5, 8, 0.96));
  box-shadow: 0 0 60px rgba(255, 58, 50, 0.3), inset 0 0 50px rgba(78, 216, 235, 0.08);
}

.lore-screen {
  position: relative;
  min-height: 560px;
  max-height: min(74vh, 690px);
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 58, 50, 0.35);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 14%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 50% 50%, rgba(31, 154, 166, 0.16), transparent 44%),
    rgba(0, 8, 11, 0.86);
  box-shadow: inset 0 0 38px rgba(255, 58, 50, 0.13), inset 0 0 28px rgba(36, 220, 242, 0.08);
}

.lore-topline {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 9px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 58, 50, 0.24);
  color: #f2f6f3;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lore-topline i {
  color: #82aeb5;
  font-style: normal;
  font-size: 12px;
}

.lore-output {
  height: calc(min(74vh, 690px) - 148px);
  min-height: 418px;
  overflow: hidden auto;
  padding: 18px 12px 70px 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 58, 50, 0.55) rgba(5, 20, 24, 0.42);
  color: #f7fbf8;
  font-family: "Rajdhani", monospace;
  font-size: 18px;
  line-height: 1.22;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.65), 0 0 18px rgba(89, 222, 239, 0.22);
}

.lore-output::-webkit-scrollbar {
  width: 5px;
}

.lore-output::-webkit-scrollbar-track {
  background: rgba(5, 20, 24, 0.42);
  border: 1px solid rgba(116, 179, 193, 0.12);
}

.lore-output::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255, 58, 50, 0.8), rgba(104, 218, 235, 0.45));
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(255, 58, 50, 0.55);
}

.lore-output p {
  margin: 0 0 8px;
  opacity: 0.96;
}


.lore-cursor {
  display: inline-block;
  width: 9px;
  height: 1.08em;
  margin-left: 4px;
  transform: translateY(0.16em);
  background: #f8fbf8;
  color: #f8fbf8;
  font-size: 0;
  text-shadow: 0 0 12px white;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 18px rgba(93, 223, 238, 0.5);
  animation: cursorPulse 680ms steps(1) infinite;
}

.lore-actions {
  position: absolute;
  right: 22px;
  bottom: 18px;
  display: none;
  gap: 10px;
}

.lore-actions.ready {
  display: flex;
}

.lore-actions button {
  min-width: 92px;
  height: 38px;
  border: 1px solid rgba(255, 58, 50, 0.55);
  color: #f5faf8;
  background: rgba(255, 58, 50, 0.12);
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: inset 0 0 20px rgba(255, 58, 50, 0.12), 0 0 14px rgba(255, 58, 50, 0.16);
}

@keyframes cursorPulse {
  50% { opacity: 0; }
}


@keyframes redFlash {
  0%, 100% { box-shadow: inset 0 0 26px rgba(255, 58, 50, 0.1); }
  50% { box-shadow: inset 0 0 42px rgba(255, 58, 50, 0.35), 0 0 28px rgba(255, 58, 50, 0.4); }
}

@keyframes titleGlitch {
  0% { transform: scaleX(1.04) translateX(0); text-shadow: 2px 0 rgba(255, 29, 22, 0.82), -2px 0 rgba(65, 192, 220, 0.36); }
  50% { transform: scaleX(1.04) translateX(-3px); text-shadow: 5px 0 rgba(255, 29, 22, 0.86), -5px 0 rgba(65, 192, 220, 0.5); }
  100% { transform: scaleX(1.04) translateX(2px); }
}

@keyframes sheen {
  from { transform: translateX(-110%); }
  to { transform: translateX(110%); }
}

@keyframes hantaIdle {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  35% {
    transform: translateY(-7px) rotate(-0.7deg);
  }
  70% {
    transform: translateY(-3px) rotate(0.6deg);
  }
}

@keyframes commanderSalute {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  28% { transform: translateY(-13px) rotate(-2deg) scale(1.035); }
  62% { transform: translateY(-5px) rotate(1.4deg) scale(1.015); }
}

@keyframes hantaTinyFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  45% { transform: translateY(-6px) rotate(-1.4deg); }
  70% { transform: translateY(-2px) rotate(1deg); }
}

@keyframes opsSpin {
  to { transform: rotate(360deg); }
}

@keyframes opsParticle {
  from { transform: rotate(var(--angle)) translateX(62px) scale(0.8); opacity: 0.35; }
  50% { opacity: 1; }
  to { transform: rotate(calc(var(--angle) + 360deg)) translateX(62px) scale(1.12); opacity: 0.35; }
}

@keyframes opsConsolePulse {
  0%, 100% { box-shadow: inset 0 0 26px rgba(32, 239, 98, 0.1), 0 0 16px rgba(32, 239, 98, 0.1); }
  50% { box-shadow: inset 0 0 38px rgba(32, 239, 98, 0.24), 0 0 30px rgba(32, 239, 98, 0.24); }
}

@media (max-width: 827px) {
  .ops-layout {
    grid-template-columns: 1fr;
  }

  .ops-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pfp-layout {
    grid-template-columns: 1fr;
  }

  .pfp-controls {
    max-height: none;
    padding-right: 0;
  }

  .bg-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layer-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .poster {
    transform-origin: top center;
  }

  h1 {
    font-size: clamp(54px, 13vw, 112px);
  }
}
