﻿:root {
  --bg: #050a06;
  --fg: #8bff8b;
  --fg-bright: #b7ffb7;
  --fg-dim: rgba(139, 255, 139, 0.74);
  --fg-faint: rgba(139, 255, 139, 0.48);
  --line: rgba(139, 255, 139, 0.22);
  --line-strong: rgba(139, 255, 139, 0.38);
  --line-hot: rgba(139, 255, 139, 0.54);
  --shadow: rgba(139, 255, 139, 0.16);
  --glow: rgba(139, 255, 139, 0.34);
  --warn: #ffe17a;
  --bad: #ff6f6f;
  --radius: 14px;
  --radius-sm: 10px;
  --panel-pad: 14px;
  --max: 1120px;
  --map-parallax-x: 0px;
  --map-parallax-y: 0px;
  --font-main: "Share Tech Mono", "VT323", "Overseer", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

@font-face {
  font-family: "Fallout76IconTags";
  src: url("../assets/fonts/Fallout76IconTags_v10.3.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html,
body,
.table-wrap,
.hack-log,
.classified-minerva-lists,
.classified-search-results {
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 255, 139, 0.56) rgba(0, 0, 0, 0.38);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid var(--line);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(139, 255, 139, 0.64), rgba(139, 255, 139, 0.24));
  border: 1px solid rgba(139, 255, 139, 0.72);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(139, 255, 139, 0.76), rgba(139, 255, 139, 0.34));
}

body {
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  font-family: var(--font-main);
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.02);
  opacity: 0;
  animation: flicker 5.5s infinite;
}

.screen-vignette,
.screen-map,
.screen-grid,
.screen-scanlines,
.screen-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.screen-vignette {
  z-index: 1;
  background:
    radial-gradient(140% 100% at 50% 45%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.56) 90%),
    radial-gradient(1200px 700px at 50% 30%, rgba(139, 255, 139, 0.12), rgba(0, 0, 0, 0) 55%);
  mix-blend-mode: screen;
  opacity: 0.86;
}

.screen-map {
  z-index: 0;
  opacity: 0.17;
  mix-blend-mode: screen;
  background-image:
    radial-gradient(100% 85% at 52% 46%, rgba(139, 255, 139, 0.14), rgba(0, 0, 0, 0) 72%),
    linear-gradient(to bottom, rgba(7, 19, 12, 0.35), rgba(0, 0, 0, 0.12)),
    url("../assets/images/appalachia-map-texture.svg");
  background-position: center center, center center, center center;
  background-size: 120% 120%, 100% 100%, cover;
  background-repeat: no-repeat;
  transform: translate3d(var(--map-parallax-x), var(--map-parallax-y), 0) scale(1.06);
  transition: transform 240ms ease-out, opacity 240ms ease;
  will-change: transform;
  animation: mapGlow 10s ease-in-out infinite;
}

.screen-scanlines {
  z-index: 2;
  opacity: 0.5;
  overflow: hidden;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.2) 3px,
    rgba(0, 0, 0, 0.2) 4px
  );
  animation: scanPulse 7s linear infinite;
}

.screen-grid {
  z-index: 1;
  opacity: 0.16;
  mix-blend-mode: screen;
  background-image:
    linear-gradient(to right, rgba(139, 255, 139, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(139, 255, 139, 0.05) 1px, transparent 1px),
    radial-gradient(1000px 620px at 52% 35%, rgba(139, 255, 139, 0.12), rgba(0, 0, 0, 0) 65%);
  background-size: 38px 100%, 100% 26px, 100% 100%;
  animation: gridPulse 8.5s ease-in-out infinite;
}

.screen-scanlines::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -40%;
  height: 40%;
  opacity: 0.12;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0),
    rgba(139, 255, 139, 0.26),
    rgba(0, 0, 0, 0)
  );
  animation: scanSweep 11s linear infinite;
}

.screen-noise {
  z-index: 3;
  opacity: 0.08;
  mix-blend-mode: screen;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(139, 255, 139, 0.09) 0 1px, transparent 1.35px),
    radial-gradient(circle at 64% 72%, rgba(139, 255, 139, 0.08) 0 1px, transparent 1.45px),
    radial-gradient(circle at 50% 48%, rgba(139, 255, 139, 0.06) 0 1px, transparent 1.6px);
  background-size: 3px 3px, 4px 4px, 5px 5px;
  animation: noiseShift 0.45s steps(2) infinite;
}

body.is-syncing .screen-grid,
body.is-classified-loading .screen-grid,
body.is-hacking .screen-grid {
  opacity: 0.24;
}

body.is-syncing .screen-map,
body.is-classified-loading .screen-map,
body.is-hacking .screen-map {
  opacity: 0.23;
}

body.is-syncing .screen-noise,
body.is-classified-loading .screen-noise,
body.is-hacking .screen-noise {
  opacity: 0.12;
}

body.is-classified .screen-map {
  opacity: 0.19;
}

body.is-classified .screen-grid {
  opacity: 0.2;
}

body.is-syncing .screen-scanlines::before,
body.is-classified-loading .screen-scanlines::before,
body.is-hacking .screen-scanlines::before {
  opacity: 0.2;
  animation-duration: 8s;
}

.fo76-icon {
  display: inline-block;
  margin-right: 0.36ch;
  color: var(--warn);
  font-family: "Fallout76IconTags", var(--font-main);
  font-size: 0.95em;
  line-height: 1;
  transform: translateY(0.02em);
}

.fo76-icon:empty {
  display: none;
}

body.is-booting {
  overflow: hidden;
}

body.is-booting .pipboy-terminal {
  visibility: hidden;
  opacity: 0;
}

.pipboy-terminal {
  position: relative;
  z-index: 5;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 14px 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms ease, transform 420ms ease;
}

body.is-ready .pipboy-terminal {
  opacity: 1;
  transform: translateY(0);
}

.topbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--panel-pad);
  background: linear-gradient(to bottom, rgba(139, 255, 139, 0.06), rgba(0, 0, 0, 0));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55) inset, 0 18px 60px rgba(0, 0, 0, 0.6);
}

.topbar-left,
.topbar-right {
  display: grid;
  gap: 8px;
}

.topbar-right {
  justify-items: start;
}

.micro {
  margin: 0;
  color: var(--fg-dim);
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}

#mainTitle {
  margin: 0;
  color: var(--fg-bright);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow: 0 0 18px var(--glow);
}

.tab-strip {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(74px, 1fr));
  gap: 8px;
  width: min(320px, 100%);
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 10px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--fg-dim);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(139, 255, 139, 0.2);
}

.tab.active {
  background: rgba(139, 255, 139, 0.1);
  border-color: rgba(139, 255, 139, 0.45);
  color: var(--fg);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6) inset, 0 0 24px rgba(139, 255, 139, 0.12);
}

.lang-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 6px 4px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55) inset;
  color: var(--fg-faint);
  font-size: 11px;
  text-transform: uppercase;
}

.utility-controls {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

#langLabel {
  letter-spacing: 0.04em;
  color: var(--fg-faint);
}

.lang-dropdown {
  position: relative;
}

.lang-trigger {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  min-width: 92px;
  font: inherit;
  color: var(--fg);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 7px 30px 6px 12px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45) inset;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.lang-trigger:hover {
  border-color: var(--line-strong);
  background: rgba(139, 255, 139, 0.08);
}

.lang-trigger:focus,
.lang-trigger:focus-visible {
  border-color: rgba(139, 255, 139, 0.5);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45) inset,
    0 0 0 3px rgba(139, 255, 139, 0.12);
}

.lang-dropdown.is-open .lang-trigger {
  border-color: rgba(139, 255, 139, 0.52);
  background: rgba(139, 255, 139, 0.1);
}

.lang-caret {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg-dim);
  font-size: 11px;
  pointer-events: none;
  text-shadow: 0 0 8px rgba(139, 255, 139, 0.2);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 28;
  min-width: 100%;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.92);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55) inset, 0 10px 26px rgba(0, 0, 0, 0.55);
}

.lang-option {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--fg);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  padding: 7px 8px 6px;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.lang-option:hover,
.lang-option:focus-visible {
  border-color: var(--line);
  background: rgba(139, 255, 139, 0.08);
  color: var(--fg-bright);
  outline: none;
}

.lang-option.is-selected {
  border-color: rgba(139, 255, 139, 0.44);
  background: rgba(139, 255, 139, 0.14);
  color: var(--fg-bright);
}

#langSelect[hidden] {
  display: none;
}

.status-strip {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.status-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 10px 9px;
  background: rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 2px;
}

.label {
  color: var(--fg-faint);
  font-size: 11px;
  text-transform: uppercase;
}

.mono-value {
  color: var(--fg);
  font-size: 13px;
}

#dataSignal {
  animation: linkBlink 1.7s ease-in-out infinite;
}

.refresh-btn,
.hack-btn,
.classified-back {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
  color: var(--fg);
  font: inherit;
  font-size: 13px;
  padding: 9px 12px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 120ms ease, border-color 160ms ease, background 160ms ease;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.refresh-btn {
  grid-column: 1 / -1;
}

.refresh-btn:hover,
.hack-btn:hover,
.classified-back:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(139, 255, 139, 0.08);
}

.refresh-btn:active,
.hack-btn:active,
.classified-back:active {
  transform: translateY(0);
}

.refresh-btn:disabled,
.hack-btn:disabled,
.classified-back:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
}

.refresh-btn:focus-visible,
.hack-btn:focus-visible,
.classified-back:focus-visible,
.hack-word:focus-visible,
.hack-pair:focus-visible,
.classified-search-input:focus-visible,
a:focus-visible {
  outline: 1px solid var(--line-hot);
  outline-offset: 2px;
}

.grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.panel,
.classified-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55) inset, 0 18px 60px rgba(0, 0, 0, 0.55);
}

.panel {
  opacity: 1;
  transform: translateY(0);
}

.panel h2,
.panel h3,
.classified-card h3,
.classified-list-heading {
  margin: 0;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 0 18px var(--glow);
}

.panel h2 {
  font-size: 14px;
}

.panel h3,
.classified-card h3,
.classified-list-heading {
  font-size: 13px;
}

.panel > h2,
.panel > .hint,
.panel > .expiry,
.panel > .code-grid,
.panel > .source,
.panel > .summary,
.panel > .meta-grid,
.panel > h3,
.panel > .table-wrap,
.panel > .classified-search-wrap,
.panel > .classified-minerva-lists {
  margin-left: var(--panel-pad);
  margin-right: var(--panel-pad);
}

.panel > h2,
.panel > .summary,
.panel > h3,
.classified-card > h3 {
  margin-top: var(--panel-pad);
}

.panel > .source,
.panel > .classified-minerva-lists,
.classified-card > .classified-search-wrap,
.classified-card > .classified-minerva-lists,
.classified-card > p:last-child {
  margin-bottom: var(--panel-pad);
}

.hint,
.summary,
.classified-warning,
.classified-search-hint,
#classifiedMinervaHint {
  color: var(--fg-faint);
  font-size: 12px;
  line-height: 1.3;
}

.hint {
  margin-top: 6px;
  margin-bottom: 10px;
}

.summary {
  margin-top: 8px;
  margin-bottom: 10px;
}

.expiry {
  margin-top: 0;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(139, 255, 139, 0.06);
  color: var(--fg);
  font-size: 13px;
}

.code-grid {
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.silo-panel .code-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.code-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px 11px;
  background: rgba(0, 0, 0, 0.25);
}

.silo-panel {
  position: relative;
  isolation: isolate;
}

.silo-panel::after {
  content: "";
  position: absolute;
  inset: 44% -2% -4%;
  pointer-events: none;
  background:
    radial-gradient(130% 100% at 50% 100%, rgba(0, 0, 0, 0) 46%, rgba(0, 0, 0, 0.82) 100%),
    linear-gradient(to top, rgba(86, 255, 148, 0.18), rgba(8, 28, 15, 0.56)),
    url("../assets/images/output-onlinegiftools.gif") center bottom / 100% auto no-repeat;
  opacity: 0.16;
  mix-blend-mode: screen;
  filter: grayscale(1) sepia(1) hue-rotate(56deg) saturate(2.1) brightness(0.63) contrast(1.1) blur(0.6px);
  -webkit-mask-image: radial-gradient(145% 115% at 50% 100%, #000 52%, transparent 92%);
  mask-image: radial-gradient(145% 115% at 50% 100%, #000 52%, transparent 92%);
}

.silo-panel > * {
  position: relative;
  z-index: 1;
}

.silo-panel .code-card {
  padding: 14px 14px 12px;
}

.silo-panel .site {
  font-size: 12px;
}

.silo-panel .code {
  font-size: clamp(2rem, 3.4vw, 2.55rem);
  letter-spacing: 0.1em;
  line-height: 1;
}

.site {
  color: var(--fg-faint);
  font-size: 11px;
  text-transform: uppercase;
}

.code {
  margin-top: 4px;
  color: var(--fg);
  font-size: clamp(1.45rem, 2.2vw, 1.7rem);
  letter-spacing: 0.08em;
}

.meta-grid {
  margin-top: 8px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.meta-grid > div,
.meta-grid > .meta-card-btn {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 10px 8px;
  background: rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 2px;
}

.meta-label {
  color: var(--fg-faint);
  font-size: 11px;
  text-transform: uppercase;
}

#minervaWindow {
  display: block;
  white-space: pre-line;
  line-height: 1.28;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

.table-wrap {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
  max-height: 470px;
  background: rgba(0, 0, 0, 0.24);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  text-transform: uppercase;
  padding: 10px 12px 9px;
  border-bottom: 1px solid var(--line);
  background: rgba(139, 255, 139, 0.06);
}

tbody td {
  padding: 10px 12px 9px;
  border-bottom: 1px solid rgba(139, 255, 139, 0.14);
  color: var(--fg);
  font-size: 13px;
  vertical-align: top;
}

tbody tr:hover td {
  background: rgba(139, 255, 139, 0.05);
}

tbody td:last-child,
#tablePriceHeader {
  width: 32%;
  white-space: nowrap;
}

a {
  color: var(--fg-bright);
  text-decoration: none;
  border-bottom: 1px dotted rgba(139, 255, 139, 0.4);
}

a:hover {
  color: #d4ffd4;
  border-bottom-color: rgba(139, 255, 139, 0.8);
}

.source {
  margin-top: 10px;
  color: var(--fg-faint);
  font-size: 12px;
  text-transform: uppercase;
}

#minervaPanel {
  position: relative;
}

#minervaPanel.is-detail-open > :not(.minerva-subview) {
  display: none;
}

.meta-card-btn {
  appearance: none;
  text-align: left;
  width: 100%;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.meta-card-btn:hover,
.meta-card-btn:focus-visible {
  border-color: var(--line-strong);
  background: rgba(139, 255, 139, 0.08);
  outline: none;
}

.meta-card-btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(139, 255, 139, 0.14);
}

.minerva-item-trigger {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: var(--fg-bright);
  font: inherit;
  text-align: left;
  cursor: pointer;
  text-transform: none;
  border-bottom: 1px dotted rgba(139, 255, 139, 0.35);
}

.minerva-item-trigger:hover {
  color: #d4ffd4;
  border-bottom-color: rgba(139, 255, 139, 0.8);
}

.minerva-item-external {
  margin-left: 0.45ch;
  color: var(--fg-faint);
  border-bottom: none;
  font-size: 0.9em;
}

.minerva-item-external:hover {
  color: var(--fg-bright);
}

.minerva-detail-view {
  margin: var(--panel-pad);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.26);
  padding: 12px;
}

.minerva-detail-view.is-entering {
  animation: panelReveal 0.3s ease both;
}

.minerva-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.minerva-detail-back {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.32);
  color: var(--fg);
  font: inherit;
  font-size: 12px;
  padding: 7px 10px 6px;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.minerva-detail-back:hover {
  border-color: var(--line-strong);
  background: rgba(139, 255, 139, 0.08);
}

.minerva-detail-wiki {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.06em;
  border-bottom: none;
}

.minerva-detail-name {
  margin: 0 0 8px;
  color: var(--fg-bright);
  font-size: 1.12rem;
  letter-spacing: 0.06em;
  text-transform: none;
}

.minerva-detail-status {
  margin: 0;
  color: var(--fg-faint);
  font-size: 12px;
}

.minerva-detail-status.is-revealing {
  animation: panelReveal 0.2s ease both;
}

.minerva-detail-content {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.minerva-detail-content.is-revealing {
  animation: panelReveal 0.28s ease both;
}

.minerva-detail-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.32);
  padding: 10px;
}

.minerva-detail-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.minerva-detail-sections {
  display: grid;
  gap: 10px;
}

.minerva-detail-block {
  border: 1px solid rgba(139, 255, 139, 0.2);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  padding: 10px;
}

.minerva-detail-label {
  margin: 0 0 8px;
  color: var(--fg);
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.minerva-detail-list {
  margin: 0;
  padding-left: 18px;
  color: var(--fg-dim);
  display: grid;
  gap: 6px;
  font-size: 12px;
  text-transform: none;
}

.minerva-detail-unlocks {
  margin: 0;
  color: var(--fg-dim);
  font-size: 12px;
  line-height: 1.38;
  text-transform: none;
}

.minerva-location-view {
  margin: var(--panel-pad);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.26);
  padding: 12px;
}

.minerva-location-view.is-entering {
  animation: panelReveal 0.3s ease both;
}

.minerva-location-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.minerva-location-title {
  margin: 0 0 6px;
  color: var(--fg-bright);
  font-size: 1.08rem;
  letter-spacing: 0.06em;
}

.minerva-location-status {
  margin: 0;
  color: var(--fg-dim);
  font-size: 12px;
}

.minerva-location-layout {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(168px, 214px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.minerva-location-figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    radial-gradient(120% 90% at 50% 15%, rgba(139, 255, 139, 0.12), rgba(0, 0, 0, 0) 62%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.18));
  padding: 10px;
}

.minerva-location-figure::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 8px;
  border: 1px solid rgba(139, 255, 139, 0.18);
  background:
    linear-gradient(to bottom, rgba(139, 255, 139, 0.08), rgba(0, 0, 0, 0.2)),
    repeating-linear-gradient(
      to bottom,
      rgba(139, 255, 139, 0.045) 0px,
      rgba(139, 255, 139, 0.045) 1px,
      rgba(0, 0, 0, 0) 2px,
      rgba(0, 0, 0, 0) 4px
    );
  pointer-events: none;
}

.minerva-location-portrait {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.minerva-location-map-card {
  border: 1px solid rgba(139, 255, 139, 0.2);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  padding: 10px;
}

.minerva-location-map-wrap {
  position: relative;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.32);
}

.minerva-location-map-image {
  display: block;
  width: min(100%, 360px);
  margin: 0 auto;
  height: auto;
}

.minerva-location-pins {
  position: absolute;
  inset: 0;
}

.minerva-location-map-name {
  position: absolute;
  left: 8px;
  bottom: 8px;
  margin: 0;
  z-index: 3;
  padding: 4px 8px 3px;
  border-radius: 999px;
  border: 1px solid rgba(139, 255, 139, 0.55);
  background: rgba(0, 0, 0, 0.74);
  color: var(--fg-bright);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(139, 255, 139, 0.26);
}

.minerva-loc-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 9px;
  letter-spacing: 0.05em;
  color: rgba(183, 255, 183, 0.82);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(139, 255, 139, 0.26);
  border-radius: 999px;
  padding: 2px 6px;
  white-space: nowrap;
}

.minerva-loc-pin::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(139, 255, 139, 0.38);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  z-index: -1;
}

.minerva-loc-pin.is-target {
  color: #d9ffd9;
  border-color: rgba(139, 255, 139, 0.68);
  background: rgba(10, 22, 14, 0.8);
  box-shadow: 0 0 10px rgba(139, 255, 139, 0.34);
}

.minerva-loc-pin.is-target::before {
  background: rgba(139, 255, 139, 0.95);
  box-shadow: 0 0 0 2px rgba(139, 255, 139, 0.28), 0 0 16px rgba(139, 255, 139, 0.55);
  animation: minervaPinPulse 1.6s ease-in-out infinite;
}

.minerva-loc-pin[data-location="Crater"] {
  left: 47%;
  top: 24%;
}

.minerva-loc-pin[data-location="Fort Atlas"] {
  left: 57%;
  top: 44%;
}

.minerva-loc-pin[data-location="Foundation"] {
  left: 52%;
  top: 66%;
}

.minerva-loc-pin[data-location="The Whitespring"] {
  left: 66%;
  top: 56%;
}

.minerva-location-window {
  margin-top: 10px;
  border: 1px solid rgba(139, 255, 139, 0.22);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.minerva-location-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.minerva-location-value {
  color: var(--fg-bright);
  font-size: 12px;
  text-align: right;
}

.minerva-location-row.is-countdown {
  margin-top: 4px;
  padding-top: 7px;
  border-top: 1px solid rgba(139, 255, 139, 0.14);
}

.minerva-location-countdown {
  color: var(--warn);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.error {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 111, 111, 0.5);
  border-radius: 12px;
  color: var(--bad);
  background: rgba(255, 111, 111, 0.1);
  font-size: 13px;
}

.summary.error {
  margin-top: 8px;
}

.footer-note {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--fg-faint);
  background: rgba(0, 0, 0, 0.2);
  font-size: 12px;
  text-align: center;
  text-transform: uppercase;
}

body.error-page .pipboy-terminal {
  max-width: 860px;
  padding-top: 28px;
}

.error-topbar {
  align-items: center;
}

.error-chip {
  margin: 0;
  padding: 8px 12px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
  color: var(--fg-dim);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#errorTitle {
  font-size: clamp(1.35rem, 3.8vw, 2.1rem);
}

.error-grid {
  grid-template-columns: minmax(0, 1fr);
}

.error-panel {
  padding-bottom: var(--panel-pad);
}

.error-panel > h2 {
  font-size: 14px;
}

.error-path {
  margin: 0 var(--panel-pad) 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.32);
  color: var(--fg-bright);
  font-family: inherit;
  font-size: 13px;
  min-height: 42px;
  white-space: pre-wrap;
  word-break: break-all;
}

.error-actions {
  margin: 0 var(--panel-pad);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.error-actions .refresh-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.error-page.is-unauthorized #errorTitle,
body.error-page.is-unauthorized #errorCode {
  color: var(--warn);
  text-shadow: 0 0 18px rgba(255, 225, 122, 0.28);
}

body.error-page.is-unauthorized .error-path {
  border-color: rgba(255, 225, 122, 0.4);
  background: rgba(255, 225, 122, 0.08);
  color: #ffefaf;
}

.sync-overlay,
.hack-overlay,
.classified-load-overlay,
.boot-overlay {
  position: fixed;
  inset: 0;
}

.sync-overlay,
.hack-overlay,
.classified-load-overlay {
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(1px);
  transition: opacity 220ms ease;
}

.classified-load-overlay {
  z-index: 22;
}

.sync-overlay.is-active,
.hack-overlay.is-active,
.classified-load-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sync-core,
.classified-load-core {
  width: min(700px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.65) inset, 0 18px 80px rgba(0, 0, 0, 0.75);
}

.sync-title,
.classified-load-title {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 22px rgba(139, 255, 139, 0.22);
}

.sync-bar,
.classified-load-bar {
  margin-top: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.sync-bar span,
.classified-load-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(to right, rgba(139, 255, 139, 0.12), rgba(139, 255, 139, 0.65));
  box-shadow: 0 0 18px rgba(139, 255, 139, 0.22);
  animation: syncSweep 1.1s linear infinite;
}

body.is-syncing .pipboy-terminal {
  filter: saturate(1.05) brightness(1.02);
}

body.is-classified-loading .pipboy-terminal {
  filter: saturate(1.06) brightness(1.03);
}

.boot-overlay {
  z-index: 25;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(1px);
}

.boot-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(1200px 700px at 50% 30%, rgba(139, 255, 139, 0.1), rgba(0, 0, 0, 0) 56%);
  opacity: 0.7;
}

.boot-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: rgba(255, 255, 255, 0.7);
  mix-blend-mode: screen;
}

.boot-overlay.is-blooming::after {
  animation: crtBloom 0.45s ease-out forwards;
}

.boot-overlay.is-hidden {
  animation: bootFadeOut 0.42s ease forwards;
}

.boot-core {
  position: relative;
  width: min(820px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.65) inset, 0 18px 80px rgba(0, 0, 0, 0.75);
  opacity: 0;
  transform: translateY(6px);
}

.boot-overlay.is-boot-running .boot-core {
  animation: bootCoreIn 0.28s ease-out forwards;
}

.boot-title {
  margin: 0;
  font-size: clamp(1.9rem, 6.8vw, 3.2rem);
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 20px var(--glow);
}

.boot-overlay.is-boot-running .boot-title {
  animation: bootTitleIgnite 0.32s ease-out forwards;
}

.boot-subtitle {
  margin: 6px 0 0;
  color: var(--fg-faint);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.boot-log {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  padding: 12px;
  height: clamp(170px, 28vh, 240px);
  overflow: auto;
  line-height: 1.3;
}

.boot-log-line {
  color: var(--fg-dim);
  font-size: 13px;
  line-height: 1.3;
  padding: 2px 0;
  opacity: 0;
  animation: panelReveal 0.2s ease forwards;
}

.boot-log-line.is-ready {
  color: var(--fg-bright);
}

.boot-progress {
  margin-top: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

#bootBar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(to right, rgba(139, 255, 139, 0.12), rgba(139, 255, 139, 0.65));
  box-shadow: 0 0 18px rgba(139, 255, 139, 0.22);
  transition: width 170ms linear;
}

.boot-hint {
  margin: 10px 0 0;
  color: var(--fg-faint);
  font-size: 12px;
  text-transform: uppercase;
}

.boot-lines-source {
  display: none;
}

.boot-line,
.boot-ready {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  border-right: 0;
  opacity: 1;
  max-width: none;
  overflow: visible;
  white-space: normal;
}

.boot-line::before {
  content: none;
}

.boot-ready {
  color: inherit;
}

.boot-ready::before {
  content: none;
}

.hack-overlay {
  animation: panelFadeIn 180ms ease;
}

.hack-core {
  width: min(1120px, 100%);
}

.hack-frame {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.74);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.65) inset, 0 18px 80px rgba(0, 0, 0, 0.75);
  display: grid;
  gap: 10px;
}

.hack-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.hack-title,
.hack-subtitle {
  margin: 0;
  text-transform: uppercase;
}

.hack-title {
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--fg);
}

.hack-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: var(--warn);
}

.hack-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px 7px;
  background: rgba(0, 0, 0, 0.26);
  font-size: 12px;
}

#hackAttempts {
  color: var(--fg-bright);
  letter-spacing: 0.1em;
}

.hack-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 10px;
}

.hack-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.26);
  padding: 10px;
}

.hack-memory-panel {
  background: rgba(0, 0, 0, 0.24);
}

.hack-log-panel {
  background: rgba(0, 0, 0, 0.28);
}

.hack-panel-title {
  margin: 0 0 8px;
  color: var(--fg-faint);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hack-memory {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.hack-enter-line {
  margin: 0;
  color: var(--fg-bright);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hack-hint-line {
  margin: 0;
  color: var(--fg-faint);
  font-size: 12px;
  text-transform: uppercase;
}

.hack-columns {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: nowrap;
  min-height: 0;
}

.hack-column {
  flex: 1 1 0;
  min-width: 0;
}

.hack-line {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 8px;
  line-height: 1.25;
}

.hack-addr {
  color: var(--fg-faint);
}

.hack-dump {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  letter-spacing: 0.06em;
}

.hack-word,
.hack-pair {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.hack-token {
  padding: 0 1px;
}

.hack-word:hover,
.hack-pair:hover {
  color: var(--fg-bright);
  text-shadow: 0 0 12px var(--glow);
  background: rgba(139, 255, 139, 0.12);
}

.hack-word-used,
.hack-pair-used,
.hack-dud {
  color: var(--fg-faint);
}

.hack-log {
  margin: 0;
  min-height: 300px;
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  padding: 12px;
  color: var(--fg);
  font-size: 13px;
  line-height: 1.3;
  white-space: pre-wrap;
}

.hack-log::after {
  content: "_";
  margin-left: 0.2ch;
  color: var(--fg-bright);
  animation: cursorBlink 1s steps(1, end) infinite;
}

.hack-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.hack-btn {
  min-width: 112px;
}

.hack-overlay.is-success .hack-core {
  animation: hackSuccessOut 0.56s ease forwards;
}

.classified-page {
  margin-top: 12px;
}

.classified-page.is-entering {
  animation: panelReveal 0.28s ease both;
}

body.is-classified #intelGrid,
body.is-classified #statusStrip {
  display: none;
}

.classified-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--panel-pad);
  background: linear-gradient(to bottom, rgba(139, 255, 139, 0.06), rgba(0, 0, 0, 0));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55) inset, 0 18px 60px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.classified-hero-copy {
  max-width: 70ch;
}

.classified-chip {
  display: inline-flex;
  border: 1px solid rgba(255, 225, 122, 0.44);
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--warn);
  background: rgba(255, 225, 122, 0.08);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#classifiedTitle {
  margin: 8px 0 0;
  color: var(--fg);
  font-size: clamp(1.2rem, 2.8vw, 1.8rem);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-shadow: 0 0 20px var(--glow);
}

.classified-warning {
  margin-top: 8px;
}

.classified-back {
  min-width: 168px;
  align-self: flex-start;
}

.classified-layout {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(230px, 0.36fr) minmax(0, 1fr);
  gap: 10px;
}

.classified-sidebar {
  display: grid;
  gap: 10px;
  align-content: start;
}

.classified-main {
  min-width: 0;
}

.classified-card {
  padding: var(--panel-pad);
}

.classified-card-archive {
  min-height: 440px;
}

.classified-search-wrap {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.24);
}

.classified-search-label {
  color: var(--fg-faint);
  font-size: 11px;
  text-transform: uppercase;
}

.classified-search-input {
  margin-top: 6px;
  width: 100%;
  font: inherit;
  color: var(--fg);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 10px 8px;
  outline: none;
}

.classified-search-input::placeholder {
  color: var(--fg-faint);
}

.classified-search-input:focus {
  border-color: rgba(139, 255, 139, 0.5);
  box-shadow: 0 0 0 3px rgba(139, 255, 139, 0.12);
}

.classified-search-hint {
  margin: 8px 0 0;
}

.classified-search-results {
  margin-top: 8px;
  max-height: 360px;
  overflow: auto;
  display: grid;
  gap: 8px;
}

.classified-search-meta,
.classified-search-empty {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 10px 8px;
  background: rgba(0, 0, 0, 0.26);
  color: var(--fg-faint);
  font-size: 12px;
}

.classified-search-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 10px 8px;
  background: rgba(0, 0, 0, 0.26);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.classified-search-cell {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.classified-search-k {
  color: var(--fg-faint);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.classified-search-v {
  color: var(--fg);
  font-size: 12px;
  word-break: break-word;
}

.classified-search-item .classified-search-v {
  font-size: 13px;
}

.classified-minerva-lists {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 480px;
  overflow: auto;
}

.classified-list-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.24);
  padding: 10px;
}

.classified-list-heading {
  margin-bottom: 8px;
}

.classified-item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(139, 255, 139, 0.14);
}

.classified-item-row:last-child {
  border-bottom: 0;
}

.classified-item-name,
.classified-item-price {
  display: inline-flex;
  align-items: center;
  gap: 0.25ch;
  min-width: 0;
  font-size: 12px;
}

.classified-item-name {
  color: var(--fg);
  flex: 1;
}

.classified-item-price {
  color: var(--warn);
}

.classified-minerva-empty {
  margin: 0;
  border: 1px solid rgba(255, 111, 111, 0.5);
  border-radius: 12px;
  color: var(--bad);
  background: rgba(255, 111, 111, 0.1);
  padding: 10px;
  font-size: 13px;
}

.reveal-item {
  opacity: 0;
  transform: translateY(6px);
  animation: itemReveal 260ms ease forwards;
}

@keyframes flicker {
  0%,
  100% {
    opacity: 0.02;
  }
  20% {
    opacity: 0.035;
  }
  21% {
    opacity: 0.01;
  }
  32% {
    opacity: 0.03;
  }
  33% {
    opacity: 0.01;
  }
  50% {
    opacity: 0.032;
  }
  51% {
    opacity: 0.012;
  }
  70% {
    opacity: 0.03;
  }
  71% {
    opacity: 0.016;
  }
}

@keyframes scanPulse {
  0%,
  100% {
    opacity: 0.48;
  }

  50% {
    opacity: 0.58;
  }
}

@keyframes mapGlow {
  0%,
  100% {
    filter: brightness(0.95) saturate(0.94);
  }

  50% {
    filter: brightness(1.03) saturate(1.04);
  }
}

@keyframes gridPulse {
  0%,
  100% {
    opacity: 0.14;
    transform: translateY(0);
  }

  50% {
    opacity: 0.2;
    transform: translateY(-1px);
  }
}

@keyframes scanSweep {
  0% {
    transform: translateY(-200%);
  }

  100% {
    transform: translateY(340%);
  }
}

@keyframes noiseShift {
  0% {
    transform: translate3d(0, 0, 0);
  }

  25% {
    transform: translate3d(-1.2%, 0.8%, 0);
  }

  50% {
    transform: translate3d(0.9%, -0.7%, 0);
  }

  75% {
    transform: translate3d(-0.7%, -0.5%, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes linkBlink {
  0%,
  45% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0.62;
  }
}

@keyframes panelFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes panelReveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes syncSweep {
  0% {
    width: 0%;
    transform: translateX(0);
  }

  50% {
    width: 100%;
    transform: translateX(0);
  }

  100% {
    width: 100%;
    transform: translateX(100%);
  }
}

@keyframes cursorBlink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@keyframes bootCoreIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bootTitleIgnite {
  from {
    opacity: 0.4;
    filter: blur(0.4px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes bootType {
  0% {
    opacity: 0;
    max-width: 0;
  }

  100% {
    opacity: 1;
    max-width: 100%;
  }
}

@keyframes bootReady {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes bootFadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes crtBloom {
  0% {
    opacity: 0;
  }

  35% {
    opacity: 0.7;
  }

  100% {
    opacity: 0;
  }
}

@keyframes hackSuccessOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.02);
  }
}

@keyframes itemReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes minervaPinPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.26);
    opacity: 0.78;
  }
}

@media (min-width: 860px) {
  .topbar {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }

  .topbar-right {
    justify-items: end;
  }

  .status-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: stretch;
  }

  .refresh-btn {
    grid-column: auto;
    min-width: 180px;
  }
}

@media (max-width: 1020px) {
  .grid,
  .meta-grid,
  .code-grid {
    grid-template-columns: 1fr;
  }

  .hack-grid {
    grid-template-columns: 1fr;
  }

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

  .classified-minerva-lists {
    grid-template-columns: 1fr;
  }

  .minerva-detail-content {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  .status-strip {
    grid-template-columns: 1fr;
  }

  .tab-strip {
    width: 100%;
  }

  .utility-controls {
    width: 100%;
    justify-content: space-between;
  }

  .classified-hero {
    flex-direction: column;
  }

  .classified-back {
    width: 100%;
  }

  .classified-search-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .classified-search-item {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .pipboy-terminal {
    padding: 10px 8px 14px;
  }

  .topbar,
  .panel,
  .classified-card,
  .classified-hero,
  .footer-note,
  .boot-core,
  .sync-core,
  .classified-load-core,
  .hack-frame {
    border-radius: 12px;
  }

  .tab-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .tab {
    padding: 8px 6px 7px;
    font-size: 12px;
  }

  #mainTitle {
    font-size: 1.4rem;
  }

  .boot-subtitle,
  .boot-hint,
  .boot-log-line {
    font-size: 11px;
  }

  .hack-actions {
    flex-wrap: wrap;
  }

  .hack-btn {
    flex: 1;
    min-width: 0;
  }

  .hack-line {
    grid-template-columns: 72px 1fr;
    font-size: 12px;
  }

  .hack-columns {
    flex-direction: column;
    gap: 6px;
  }

  .minerva-detail-top {
    flex-direction: column;
    align-items: stretch;
  }

  .minerva-detail-back,
  .minerva-detail-wiki {
    width: 100%;
    text-align: center;
  }

  .minerva-location-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .minerva-location-value,
  .minerva-location-countdown {
    text-align: left;
  }

  .classified-search-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
