:root {
  --bg: #060809;
  --bg-2: #0a0f10;
  --panel: #080d0e;
  --ink: #cdd9d1;
  --ink-soft: #9fb2a7;
  --dim: #70867a;
  --line: #1d2a25;
  --line-bright: #2c3f37;
  --lime: #b6ff3c;
  --magenta: #ff3d81;
  --cyan: #39f2ff;
  --mono: "Cascadia Code", "JetBrains Mono", "Fira Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --page: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(182, 255, 60, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(182, 255, 60, 0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.65;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 61;
  pointer-events: none;
  opacity: 0.24;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0,
    rgba(0, 0, 0, 0.5) 1px,
    transparent 1px,
    transparent 3px
  );
}

::selection {
  background: var(--lime);
  color: #050806;
}

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

::-webkit-scrollbar-track {
  background: #070b0c;
}

::-webkit-scrollbar-thumb {
  background: #1d2a25;
  border: 2px solid #070b0c;
}

::-webkit-scrollbar-thumb:hover {
  background: #2f463b;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    620px circle at var(--mx, 50%) var(--my, 30%),
    rgba(182, 255, 60, 0.07),
    transparent 58%
  );
}

body.is-booting {
  overflow: hidden;
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background-color: #040606;
  background-image:
    linear-gradient(rgba(182, 255, 60, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(182, 255, 60, 0.032) 1px, transparent 1px);
  background-size: 32px 32px;
  font-family: var(--mono);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.boot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.38;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55) 0,
    rgba(0, 0, 0, 0.55) 1px,
    transparent 1px,
    transparent 3px
  );
}

.boot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.72) 100%);
}

.boot.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.boot-panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: min(900px, 100%);
  height: min(560px, calc(100vh - 48px));
  border: 1px solid var(--line-bright);
  background: rgba(6, 10, 11, 0.97);
  box-shadow: 0 0 0 1px #000, 0 0 70px rgba(182, 255, 60, 0.05), 10px 10px 0 rgba(0, 0, 0, 0.45);
}

.boot-head,
.boot-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 14px;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.boot-foot {
  border-top: 1px solid var(--line);
}

.boot-body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  padding: 20px 26px 18px;
}

.boot-log {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.85;
  white-space: pre-wrap;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.boot-log .boot-ok {
  color: var(--lime);
}

.boot-log .boot-warn {
  color: var(--magenta);
}

.boot-log .boot-dim {
  color: #4d6257;
}

.boot-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: var(--lime);
  animation: blink 0.9s steps(1) infinite;
}

.boot-complete {
  position: absolute;
  inset: 54px 20px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.boot.is-complete .boot-complete {
  opacity: 1;
  visibility: visible;
}

.boot.is-complete .boot-log {
  opacity: 0.1;
  filter: blur(1px);
}

.boot-complete-text {
  position: relative;
  display: inline-block;
  color: var(--lime);
  font-size: clamp(42px, 9vw, 92px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-shadow: 4px 0 rgba(255, 61, 129, 0.55), -4px 0 rgba(57, 242, 255, 0.4);
}

.boot-complete-text::before,
.boot-complete-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.boot-complete-text::before {
  color: var(--magenta);
  transform: translate(3px, -1px);
  clip-path: inset(12% 0 58% 0);
  animation: boot-slice-a 2.6s steps(1) infinite;
}

.boot-complete-text::after {
  color: var(--cyan);
  transform: translate(-3px, 1px);
  clip-path: inset(58% 0 8% 0);
  animation: boot-slice-b 2.2s steps(1) infinite;
}

.boot-complete-sub {
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.boot-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.boot-progress-label {
  min-width: 118px;
}

.boot-track {
  position: relative;
  flex: 1;
  height: 10px;
  border: 1px solid var(--line-bright);
  background: #0a100e;
}

.boot-track i {
  display: block;
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--lime) 0 5px, transparent 5px 8px);
  transition: width 0.18s steps(4);
}

.boot-pct {
  min-width: 38px;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.boot-skip {
  padding: 3px 9px;
  border: 1px solid var(--line-bright);
  background: transparent;
  color: var(--dim);
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.boot-skip:hover {
  border-color: var(--lime);
  background: var(--lime);
  color: #071006;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 46px;
  padding: 0 24px;
  background: rgba(6, 8, 9, 0.95);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}

.brand span {
  color: var(--magenta);
}

.brand:hover {
  color: var(--lime);
}

.nav {
  display: flex;
  gap: 20px;
  margin-left: 10px;
}

.nav a {
  color: var(--dim);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.topbar-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  animation: pulse 2.4s ease-in-out infinite;
}

.sep {
  color: #2f4038;
}

.hero {
  position: relative;
  z-index: 1;
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 76px) 24px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--dim);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  margin-right: 6px;
  color: var(--magenta);
}

.logo-wrap {
  display: inline-block;
  cursor: pointer;
  user-select: none;
}

.logo {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(11px, 2.5vw, 33px);
  line-height: 1.04;
  letter-spacing: 0;
  color: var(--lime);
  text-shadow: 2px 0 rgba(255, 61, 129, 0.35), -2px 0 rgba(57, 242, 255, 0.22);
  animation: logo-flicker 11s steps(1) infinite;
}

.logo-wrap:hover .logo {
  text-shadow: 3px 0 rgba(255, 61, 129, 0.55), -3px 0 rgba(57, 242, 255, 0.35);
}

.logo-wrap.is-glitching .logo {
  animation: logo-glitch 0.62s steps(1) 1;
}

.tagline {
  min-height: 3.2em;
  max-width: 44ch;
  margin: 26px 0 22px;
  color: #e3eee7;
  font-size: clamp(15px, 1.8vw, 20px);
  line-height: 1.5;
  font-variant-ligatures: none;
}

.tagline #typed {
  white-space: pre-wrap;
}

.caret {
  display: inline-block;
  width: 0.62em;
  height: 1.02em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: var(--lime);
  animation: blink 1s steps(1) infinite;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--line-bright);
  background: rgba(10, 15, 16, 0.6);
  color: var(--ink-soft);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
  transition: transform 0.16s ease, box-shadow 0.16s ease, color 0.16s, border-color 0.16s, background 0.16s;
}

.btn span {
  color: var(--lime);
}

.btn:hover {
  border-color: var(--lime);
  color: var(--lime);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.55);
}

.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
}

.btn-solid {
  border-color: var(--lime);
  background: var(--lime);
  color: #071006;
  font-weight: 700;
  box-shadow: 4px 4px 0 rgba(255, 61, 129, 0.65);
}

.btn-solid span {
  color: #071006;
}

.btn-solid:hover {
  color: #071006;
  box-shadow: 6px 6px 0 rgba(255, 61, 129, 0.8);
}

.hero-side {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 26px;
}

.stamp {
  position: absolute;
  top: 0;
  right: 6px;
  padding: 3px 9px;
  transform: rotate(3deg);
  border: 1px solid var(--magenta);
  background: rgba(255, 61, 129, 0.06);
  color: var(--magenta);
  font-size: 9px;
  letter-spacing: 0.28em;
}

.status-card {
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #0a1012 0%, #070b0c 100%);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35);
}

.status-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--line-bright);
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-card dl {
  margin: 0;
}

.status-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dotted var(--line);
  font-size: 12px;
}

.status-card dt {
  padding-top: 2px;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-card dd {
  margin: 0;
  color: var(--ink-soft);
  text-align: right;
}

.lime {
  color: var(--lime);
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bar {
  position: relative;
  flex: 1;
  height: 8px;
  border: 1px solid var(--line-bright);
  background: #0c1210;
}

.bar::after {
  content: "";
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: 1px;
  width: calc(var(--v) - 2px);
  background: repeating-linear-gradient(90deg, var(--lime) 0 4px, transparent 4px 7px);
}

.status-foot {
  margin: 12px 0 0;
  padding-top: 8px;
  border-top: 1px dotted var(--line);
  color: #4f6459;
  font-size: 10.5px;
}

.section {
  position: relative;
  z-index: 1;
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 24px 0;
  scroll-margin-top: 60px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 26px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  margin: 0;
  color: #e9f2ec;
  font-size: clamp(19px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.num {
  display: inline-block;
  margin-right: 10px;
  padding: 1px 7px 2px;
  transform: translateY(-3px);
  background: var(--lime);
  color: #071006;
  font-size: 0.62em;
  letter-spacing: 0.06em;
}

.head-meta {
  margin-left: auto;
  padding-bottom: 4px;
  color: var(--dim);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-align: right;
}

.term {
  max-width: 100%;
  border: 1px solid var(--line-bright);
  background: var(--panel);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.35);
}

.term-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  background: #0d1517;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.term-btns {
  color: #3a4c44;
  letter-spacing: 0.25em;
}

.term-body {
  padding: 18px 20px 20px;
  font-size: 13.5px;
}

.term-body p {
  margin: 0 0 8px;
}

.term-body p:last-child {
  margin-bottom: 0;
}

.ps1 {
  margin-right: 8px;
  color: var(--lime);
}

.ok {
  color: var(--lime);
}

.dim {
  color: var(--dim);
}

.blink {
  color: var(--lime);
  animation: blink 1.1s steps(1) infinite;
}

.whoami {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  gap: clamp(24px, 3.5vw, 40px);
  align-items: start;
}

.whoami > *,
.games > *,
.contact > * {
  min-width: 0;
}

.side-col {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.panel {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--magenta);
  background: rgba(10, 15, 16, 0.6);
}

.panel h3 {
  margin: 0 0 14px;
  color: var(--magenta);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px dotted var(--line);
  font-size: 12.5px;
}

.plain-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.plain-list span {
  color: var(--dim);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.plain-list b {
  color: var(--ink-soft);
  font-weight: 500;
}

.quote {
  margin: 0;
  padding: 2px 0 2px 16px;
  border-left: 2px solid var(--lime);
  color: #dbe7df;
  font-size: 14px;
}

.quote cite {
  display: block;
  margin-top: 10px;
  color: var(--dim);
  font-size: 10.5px;
  font-style: normal;
  letter-spacing: 0.04em;
}

.games {
  display: grid;
  grid-template-columns: minmax(0, 646px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.game-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 646px;
}

.game-frame {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: #07100b;
  outline: 1px solid var(--line-bright);
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.4);
  transition: outline-color 0.2s;
}

.game-frame:hover {
  outline-color: var(--lime);
}

.game-frame iframe {
  display: block;
  width: 646px;
  height: 190px;
  border: 0;
  transform-origin: top left;
}

.games-side {
  position: sticky;
  top: 76px;
  padding-top: 4px;
}

.games-note {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.contact-lines {
  margin: 16px 0 18px;
  padding: 8px 14px;
  border: 1px dashed var(--line-bright);
  background: rgba(182, 255, 60, 0.015);
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dotted var(--line);
  font-size: 12.5px;
}

.contact-line:last-child {
  border-bottom: 0;
}

.contact-line .k {
  flex: none;
  width: 78px;
  color: var(--dim);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-line .v {
  color: #dce8e0;
  overflow-wrap: anywhere;
}

.copy {
  flex: none;
  margin-left: auto;
  padding: 2px 7px;
  border: 1px solid var(--line-bright);
  background: transparent;
  color: var(--dim);
  font-family: inherit;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.copy:hover {
  border-color: var(--lime);
  background: var(--lime);
  color: #071006;
}

.shell {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.shell-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}

.shell-line .ps1 {
  margin-right: 0;
  font-size: 11.5px;
  white-space: nowrap;
}

.shell-line input {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  padding: 2px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 13px;
  caret-color: var(--lime);
}

.shell-line input::placeholder {
  color: #3f5349;
}

.shell-run {
  flex: none;
  width: 26px;
  height: 24px;
  border: 1px solid var(--line-bright);
  background: #0c1210;
  color: var(--lime);
  font-family: inherit;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.shell-run:hover {
  background: var(--lime);
  color: #071006;
}

.shell-out {
  max-height: 190px;
  margin-top: 10px;
  overflow-y: auto;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.shell-out .out-cmd {
  margin-top: 6px;
  color: var(--lime);
}

.shell-out .out-cmd:first-child {
  margin-top: 0;
}

.shell-out .err {
  color: var(--magenta);
}

.contact-side {
  padding-top: 6px;
}

.big-line {
  margin: 0 0 12px;
  color: #e7f1ea;
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 600;
  line-height: 1.3;
}

.contact-side .dim {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 13px;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--line-bright);
  color: var(--lime);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.availability .dot {
  width: 6px;
  height: 6px;
}

.tiny {
  margin: 24px 0 0;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  max-width: var(--page);
  margin: clamp(64px, 9vw, 110px) auto 0;
  padding: 22px 24px 44px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.f-left .lime {
  color: var(--lime);
}

.f-left .dim {
  margin-left: 8px;
}

.f-mid {
  margin: 0 auto;
  color: #31453b;
  letter-spacing: 0.4em;
}

.f-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.f-right a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px dashed var(--line-bright);
}

.f-right a:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  padding: 9px 14px;
  transform: translateY(8px);
  border: 1px solid var(--lime);
  background: #0a110d;
  color: var(--lime);
  font-size: 11px;
  letter-spacing: 0.04em;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

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

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--lime); }
  50% { opacity: 0.45; box-shadow: 0 0 2px var(--lime); }
}

@keyframes boot-slice-a {
  0%, 82%, 100% { transform: translate(3px, -1px); clip-path: inset(12% 0 58% 0); }
  84% { transform: translate(-5px, 1px); clip-path: inset(4% 0 70% 0); }
  86% { transform: translate(5px, 0); clip-path: inset(60% 0 8% 0); }
  88% { transform: translate(-3px, -1px); clip-path: inset(30% 0 40% 0); }
}

@keyframes boot-slice-b {
  0%, 78%, 100% { transform: translate(-3px, 1px); clip-path: inset(58% 0 8% 0); }
  80% { transform: translate(4px, -1px); clip-path: inset(20% 0 46% 0); }
  83% { transform: translate(-5px, 0); clip-path: inset(70% 0 4% 0); }
  86% { transform: translate(2px, 1px); clip-path: inset(44% 0 26% 0); }
}

@keyframes logo-flicker {
  0%, 90%, 100% { opacity: 1; }
  91% { opacity: 0.72; }
  92% { opacity: 1; }
  94% { opacity: 0.86; }
  95% { opacity: 1; }
}

@keyframes logo-glitch {
  0% { transform: none; text-shadow: 2px 0 rgba(255, 61, 129, 0.35), -2px 0 rgba(57, 242, 255, 0.22); clip-path: none; }
  10% { transform: translate(-4px, 2px) skewX(-4deg); text-shadow: 6px 0 var(--magenta), -6px 0 var(--cyan); clip-path: inset(10% 0 55% 0); }
  20% { transform: translate(5px, -1px); text-shadow: -6px 0 var(--cyan), 6px 0 var(--magenta); clip-path: inset(50% 0 10% 0); }
  30% { transform: translate(-2px, 0); text-shadow: 4px 0 var(--cyan); clip-path: inset(20% 0 30% 0); }
  45% { transform: none; text-shadow: 2px 0 rgba(255, 61, 129, 0.35), -2px 0 rgba(57, 242, 255, 0.22); clip-path: none; }
  60% { transform: translate(2px, 1px); text-shadow: -5px 0 var(--magenta), 5px 0 var(--lime); clip-path: inset(35% 0 20% 0); }
  70% { transform: none; text-shadow: 2px 0 rgba(255, 61, 129, 0.35), -2px 0 rgba(57, 242, 255, 0.22); clip-path: none; }
  100% { transform: none; text-shadow: 2px 0 rgba(255, 61, 129, 0.35), -2px 0 rgba(57, 242, 255, 0.22); clip-path: none; }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding-top: 20px;
  }

  .stamp {
    top: -4px;
    right: auto;
    left: 0;
  }

  .whoami,
  .games,
  .contact {
    grid-template-columns: 1fr;
  }

  .games-side {
    position: static;
    padding-top: 0;
  }

  .contact-side {
    padding-top: 8px;
  }

  .head-meta {
    display: none;
  }
}

@media (max-width: 700px) {
  .games {
    gap: 30px;
  }

  .boot {
    padding: 12px;
  }

  .boot-panel {
    height: min(520px, calc(100vh - 24px));
  }

  .boot-head,
  .boot-foot {
    padding: 7px 10px;
    font-size: 9px;
    letter-spacing: 0.06em;
  }

  .boot-body {
    padding: 16px 14px 14px;
  }

  .boot-log {
    font-size: 11px;
    line-height: 1.75;
  }

  .boot-complete {
    inset: 38px 12px 58px;
    gap: 10px;
  }

  .boot-complete-text {
    font-size: clamp(36px, 12vw, 64px);
  }

  .boot-complete-sub {
    font-size: 8.5px;
    letter-spacing: 0.14em;
  }

  .boot-progress {
    gap: 8px;
    font-size: 9px;
  }

  .boot-progress-label {
    min-width: 96px;
  }

  .boot-foot > span {
    display: none;
  }

  .boot-foot {
    justify-content: flex-end;
  }
}

@media (max-height: 560px) {
  .boot-panel {
    height: calc(100vh - 16px);
  }

  .boot-body {
    padding: 12px 16px;
  }

  .boot-log {
    font-size: 11px;
    line-height: 1.6;
  }

  .boot-complete {
    inset: 30px 12px 50px;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 14px;
  }

  .topbar {
    gap: 12px;
    padding: 0 16px;
  }

  .nav {
    display: none;
  }

  .online-label,
  .sep {
    display: none;
  }

  .hero {
    padding: 36px 16px 0;
  }

  .logo {
    font-size: 3.55vw;
  }

  .hero-side {
    grid-template-columns: 1fr;
    padding-top: 18px;
  }

  .section {
    padding: 56px 16px 0;
  }

  .section-head {
    margin-bottom: 20px;
  }

  .term-body {
    padding: 14px;
  }

  .contact-line {
    flex-wrap: wrap;
    gap: 2px 10px;
  }

  .contact-line .k {
    width: 100%;
  }

  .contact-line .v {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .copy {
    margin-left: auto;
  }

  .shell-line {
    gap: 6px;
  }

  .shell-line .ps1 {
    font-size: 10px;
  }

  .footer {
    margin-top: 56px;
    padding: 20px 16px 36px;
  }

  .f-mid {
    display: none;
  }

  .f-right {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .f-left .dim {
    display: block;
    margin: 2px 0 0;
  }

  .toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    text-align: center;
  }
}

@media (hover: none) {
  .cursor-glow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .cursor-glow {
    display: none;
  }
}
