/* ==========================================================
   PythonOS — style.css
   Retro Web Revival theme (early-2000s vibe, modern semantics)
   ========================================================== */

/* ----------------------------------------------------------
   Design tokens
   ---------------------------------------------------------- */
:root {
  /* Background */
  --bg:     #050014;
  --panel:  #0b1a33;
  --panel2: #081024;

  /* Text */
  --text:   #e7f2ff;
  --muted:  #b9c7dd;

  /* Accents */
  --link:    #00a2ff;
  --visited: #d16bff;
  --accent:  #44ff88;
  --warn:    #ffcc00;
  --hot:     #ff4d6d;

  /* Bevel colours (fake 3-D border effect) */
  --bevel-light: #c9d6ff;
  --bevel-mid:   #7f93c8;
  --bevel-dark:  #0b0b18;

  /* Layout */
  --maxw: 980px;
}

/* ----------------------------------------------------------
   Reset / base
   ---------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "VT323", "Courier New", Courier, monospace;
  letter-spacing: 0.2px;
  line-height: 1.5;
  background-color: var(--bg);

  /* Subtle scanline + grid pattern */
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(68, 255, 136, 0.08) 0px,
      rgba(68, 255, 136, 0.08) 1px,
      transparent 7px,
      transparent 7px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0, 162, 255, 0.06) 0px,
      rgba(0, 162, 255, 0.06) 1px,
      transparent 7px,
      transparent 7px
    );
}

a          { color: var(--link); }
a:visited  { color: var(--visited); }

/* Chunky, high-contrast focus ring */
:focus-visible {
  outline: 3px dashed var(--accent);
  outline-offset: 3px;
}

/* ----------------------------------------------------------
   Skip link (hidden until focused)
   ---------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--warn);
  color: #000;
  font-family: "Silkscreen", system-ui, sans-serif;
  z-index: 9999;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

/* ----------------------------------------------------------
   Layout — centred column shared by header/main/footer
   ---------------------------------------------------------- */
.site-header,
.site-main,
.site-footer {
  width: min(var(--maxw), calc(100% - 20rem));
  margin-inline: auto;
}

/* ----------------------------------------------------------
   Header
   ---------------------------------------------------------- */
.site-header {
  padding: 1rem 0 0.75rem;
}

.masthead {
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.12));
  border: 3px solid var(--bevel-mid);
  box-shadow:
    0 0 0 2px var(--bevel-dark),
    0 0 0 4px rgba(255, 255, 255, 0.08);
}

.kicker {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.site-title {
  margin: 0;
  font-family: "Silkscreen", system-ui, sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.9rem);
  letter-spacing: 1px;
}

/* ----------------------------------------------------------
   Navigation bar
   ---------------------------------------------------------- */
.site-nav {
  display: flex;
  flex-direction: horizontal;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  padding: 0.75rem 0;
  border-top: 2px solid rgba(255,255,255,0.18);
}

.site-nav a {
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  background: var(--panel);
  border: 2px solid var(--bevel-mid);
  box-shadow:
    inset 2px 2px 0 rgba(255,255,255,0.18),
    inset -2px -2px 0 rgba(0,0,0,0.45);
  transition:
    border-color 120ms ease,
    transform     120ms ease,
    background-color 120ms ease;
}

.site-nav a:hover          { border-color: var(--accent); transform: translateY(-1px); }
.site-nav a[aria-current]  { border-color: var(--accent); color: var(--accent); }

/* ----------------------------------------------------------
   Marquee (decorative, pauses on hover)
   ---------------------------------------------------------- */
.marquee {
  margin-top: 0.75rem;
  border: 2px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
  padding: 0.25rem 0.5rem;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

/* Screen-reader text (visually hidden) */
.marquee__sr {
  position: absolute;
  left: -9999px;
}

.marquee__viewport {
  overflow: hidden;
  white-space: nowrap;
}

.marquee__track {
  display: inline-flex;
  gap: 2rem;
  will-change: transform;
  animation: marquee 14s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----------------------------------------------------------
   Window / panel component
   ---------------------------------------------------------- */
.window {
  margin: 1.25rem 0;
  background: var(--panel);
  border: 3px solid var(--bevel-mid);
  box-shadow:
    0 0 0 2px var(--bevel-dark),
    inset 2px 2px 0 rgba(255,255,255,0.16),
    inset -2px -2px 0 rgba(0,0,0,0.45);
}

.window__titlebar {
  padding: 0.5rem 0.75rem;
  background: linear-gradient(90deg, rgba(0,162,255,0.35), rgba(255,77,109,0.20));
  border-bottom: 2px solid rgba(255,255,255,0.2);
}

.window__titlebar h2 {
  margin: 0;
  font-family: "Silkscreen", system-ui, sans-serif;
  font-size: 1rem;
}

.window__body {
  padding: 0.85rem 0.9rem 1rem;
  background: var(--panel2);
}

.window__body > p { max-width: 140ch; }

.window__fixed {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 1000;
  margin: 0.5rem 0.5rem;
  pointer-events: none;
}

.window__fixed img {
  width: 150px;
  height: auto;
}

.window__sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 250px;
  height: fill;
  z-index: 1000;
  margin: 1.25rem 0.25rem;
  background: var(--panel);
  border: 3px solid var(--bevel-mid);
  box-shadow:
    0 0 0 2px var(--bevel-dark),
    inset 2px 2px 0 rgba(255,255,255,0.16),
    inset -2px -2px 0 rgba(0,0,0,0.45);
}

.window__titlebar__sidebar {
  padding: 0.5rem 0.75rem;
  background: linear-gradient(90deg, rgba(0,59,128,0.35), rgba(255,181,0,0.81));
  border-bottom: 2px solid rgba(255,255,255,0.2);
}

.window__titlebar__sidebar h2 {
  margin: 0;
  font-family: "Silkscreen", system-ui, sans-serif;
  font-size: 1rem;
}

.window__titlebar__chat {
  padding: 0.5rem 0.75rem;
  background: linear-gradient(90deg, rgba(0,59,128,0.35), rgba(0,179,42,0.20));
  border-bottom: 2px solid rgba(255,255,255,0.2);
}

.window__titlebar__chat h2 {
  margin: 0;
  font-family: "Silkscreen", system-ui, sans-serif;
  font-size: 1rem;
}

.window__chat {
  background: var(--panel);
  border: 1px solid var(--bevel-mid);
  box-shadow:
    0 0 0 2px var(--bevel-dark),
    inset 2px 2px 0 rgba(255,255,255,0.16),
    inset -2px -2px 0 rgba(0,0,0,0.45);
}

.window__chat iframe {
  width: 100%;
  height: 750px;
  border: none;
  display: block;
}

.window__body ul,
.window__body ol {
    margin: 1rem 0;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
}

/* Base list item */
.window__body li {
    position: relative;
    padding: 0.45rem 0.75rem 0.45rem 2.25rem;

    background:
        linear-gradient(
            90deg,
            rgba(0, 162, 255, 0.10),
            rgba(255,255,255,0.02)
        );

    border: 2px solid rgba(255,255,255,0.12);

    box-shadow:
        inset 2px 2px 0 rgba(255,255,255,0.08),
        inset -2px -2px 0 rgba(0,0,0,0.35);

    transition:
        transform 120ms ease,
        border-color 120ms ease,
        background-color 120ms ease;
}

/* Hover effect */
.window__body li:hover {
    transform: translateX(3px);
    border-color: var(--accent);

    background:
        linear-gradient(
            90deg,
            rgba(68, 255, 136, 0.12),
            rgba(255,255,255,0.03)
        );
}

/* Custom bullet */
.window__body ul li::before {
    content: "▣";

    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);

    color: var(--accent);
    font-size: 0.9rem;

    text-shadow:
        0 0 4px rgba(68,255,136,0.6);
}

/* Ordered lists get digital numbers */
.window__body ol {
    counter-reset: retro-counter;
}

.window__body ol li {
    counter-increment: retro-counter;
}

.window__body ol li::before {
    content: counter(retro-counter) ".";

    position: absolute;
    left: 0.65rem;
    top: 50%;
    transform: translateY(-50%);

    color: var(--warn);
    font-family: "Silkscreen", system-ui, sans-serif;
    font-size: 0.7rem;
}

/* ----------------------------------------------------------
   Callout blocks
   ---------------------------------------------------------- */
.note {
  margin: 0.75rem 0;
  padding: 0.6rem 0.75rem;
  border-left: 5px solid var(--warn);
  background: rgba(255, 204, 0, 0.12);
  color: var(--muted);
}

.warning {
  margin: 0.75rem 0;
  padding: 0.6rem 0.75rem;
  border-left: 5px solid var(--hot);
  background: rgba(255, 77, 109, 0.12);
}

/* ----------------------------------------------------------
   Controls toolbar
   ---------------------------------------------------------- */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.8rem;
  align-items: center;
  margin: 0.75rem 0 0.5rem;
}

.controls button {
  font-family: "Silkscreen", system-ui, sans-serif;
  padding: 0.45rem 0.75rem;
  background: rgba(0,0,0,0.35);
  color: var(--text);
  border: 2px solid var(--bevel-mid);
  box-shadow:
    inset 2px 2px 0 rgba(255,255,255,0.16),
    inset -2px -2px 0 rgba(0,0,0,0.45);
  cursor: pointer;
  transition:
    border-color 120ms ease,
    transform     120ms ease;
}

.controls button:hover    { border-color: var(--accent); transform: translateY(-1px); }
.controls button:disabled { opacity: 0.55; cursor: not-allowed; }

.file-label,
.small-field,
.toggle {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  color: var(--muted);
}

.file-label input[type="file"] { max-width: 16rem; }

/* ----------------------------------------------------------
   Status line
   ---------------------------------------------------------- */
.status {
  margin: 0.5rem 0 0.25rem;
  color: var(--muted);
}

/* ----------------------------------------------------------
   Image wall / Web Viewer (index.html)
   ---------------------------------------------------------- */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
  gap: 0.75rem;
  padding: 0.75rem 0 0.25rem;
}

.image-tile {
  margin: 0;
  background: rgba(0,0,0,0.25);
  border: 2px solid rgba(255,255,255,0.18);
  box-shadow:
    inset 2px 2px 0 rgba(255,255,255,0.12),
    inset -2px -2px 0 rgba(0,0,0,0.35);
  overflow: hidden;
  transition:
    border-color 120ms ease,
    transform     120ms ease;
}

.image-tile:hover { border-color: var(--accent); transform: translateY(-2px); }

.image-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  image-rendering: pixelated;
  background: rgba(0,0,0,0.35);
}

.image-tile figcaption {
  padding: 0.35rem 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.12);
}

/* ----------------------------------------------------------
   Webring links
   ---------------------------------------------------------- */
.webring-links img { max-width: 100%; height: auto; }

/* ----------------------------------------------------------
   Projects page
   ---------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.9rem;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  padding: 0.75rem;
  border: 2px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.18);
}

.project-figure { margin: 0; }

.project-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid rgba(255,255,255,0.14);
}

.project-body h3 {
  margin: 0.25rem 0 0.35rem;
  font-family: "Silkscreen", system-ui, sans-serif;
  font-size: 1rem;
}

/* ----------------------------------------------------------
   Utility classes
   ---------------------------------------------------------- */
.small {
  font-size: 0.95rem;
  color: var(--muted);
}

.tag {
  padding: 0.1rem 0.35rem;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.25);
}

.tag--hot  { color: var(--hot);    border-color: rgba(255, 77, 109, 0.35); }
.tag--ok   { color: var(--accent); border-color: rgba(68, 255, 136, 0.35); }
.tag--warn { color: var(--warn);   border-color: rgba(255, 204, 0, 0.35); }

.flex   { display: flex; }
.center { display: grid; place-items: center; }
.hidden { display: none !important; }

.visually-hidden {
  position: absolute;
  left: -9999px;
}

/* ----------------------------------------------------------
   Blinkie badge
   ---------------------------------------------------------- */
.blink {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  margin-right: 0.35rem;
  color: #000;
  background: var(--hot);
  font-family: "Silkscreen", system-ui, sans-serif;
  animation: blink 1s steps(2, end) infinite;
}

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

/* ----------------------------------------------------------
   Preformatted / code blocks
   ---------------------------------------------------------- */
.code-block {
  background: rgba(0,0,0,0.4);
  border: 2px solid var(--bevel-mid);
  padding: 0.5rem;
  font-family: monospace;
  font-size: 0.85rem;
  overflow-x: auto;
}

/* ----------------------------------------------------------
   Optional CRT scanline overlay  (add class="crt" to <body>)
   ---------------------------------------------------------- */
body.crt::before {
  z-index: 9999;
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.03),
    rgba(255,255,255,0.03) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* ----------------------------------------------------------
   GIF library page (gifs.html)
   ---------------------------------------------------------- */
.gif-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.8rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.table-scroller {
  overflow-x: auto;
  border: 2px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
}

.gif-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px; /* horizontal scroll on narrow viewports */
}

.gif-table th,
.gif-table td {
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  vertical-align: middle;
}

.gif-table thead th {
  position: sticky;
  top: 0;
  background: rgba(0,0,0,0.45);
  border-bottom: 2px solid rgba(255,255,255,0.18);
  font-family: "Silkscreen", system-ui, sans-serif;
  font-size: 0.9rem;
}

.gif-thumb {
  width: 80px;
  height: 60px;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
  border: 2px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.35);
}

.gif-cell-name code {
  display: inline-block;
  max-width: 24ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gif-input {
  width: 18ch;
  max-width: 100%;
  font-family: "VT323", "Courier New", monospace;
  padding: 0.15rem 0.3rem;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--text);
}

.gif-actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

/* Preview area — used by both modal and inline fallback */
.gif-preview {
  display: grid;
  gap: 0.75rem;
  align-items: start;
}

.gif-preview img {
  width: auto;
  max-width: min(100%, 256px);
  height: auto;
  image-rendering: pixelated;
  border: 2px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.22);
}

/* ----------------------------------------------------------
   Retro <dialog> skin (GIF preview modal)
   ---------------------------------------------------------- */
.retro-dialog {
  padding: 0;
  border: 3px solid var(--bevel-mid);
  background: var(--panel);
  box-shadow: 0 0 0 2px var(--bevel-dark);
}

.retro-dialog::backdrop { background: rgba(0,0,0,0.65); }

.retro-dialog__frame { margin: 0; padding: 0; }

.retro-dialog__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(90deg, rgba(0,162,255,0.35), rgba(255,77,109,0.20));
  border-bottom: 2px solid rgba(255,255,255,0.2);
}

.retro-dialog__title {
  margin: 0;
  font-family: "Silkscreen", system-ui, sans-serif;
  font-size: 1rem;
}

.retro-dialog__close {
  font-family: "Silkscreen", system-ui, sans-serif;
  padding: 0.25rem 0.5rem;
  background: rgba(0,0,0,0.35);
  color: var(--text);
  border: 2px solid var(--bevel-mid);
  cursor: pointer;
}

.retro-dialog__body {
  padding: 0.85rem 0.9rem 1rem;
  background: var(--panel2);
}

/* ----------------------------------------------------------
   Drop zone (available for future use)
   ---------------------------------------------------------- */
.drop-zone {
  margin: 0.75rem 0;
  padding: 0.85rem;
  border: 2px dashed rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.25);
}

.drop-zone.is-dragover {
  border-color: var(--accent);
  background: rgba(68, 255, 136, 0.10);
}

/* ----------------------------------------------------------
   Motion preferences
   ---------------------------------------------------------- */

/* Respect OS-level preference */
@media (prefers-reduced-motion: reduce) {
  .marquee__track,
  .blink {
    animation: none !important;
  }
}

/* Manual toggle: add class="motion-off" to <body> */
body.motion-off .marquee__track,
body.motion-off .blink {
  animation: none !important;
}

/* ----------------------------------------------------------
   Responsive overrides
   ---------------------------------------------------------- */
@media (max-width: 600px) {
  .site-header,
  .site-main,
  .site-footer {
    width: min(var(--maxw), calc(100% - 1rem));
  }

  .controls,
  .gif-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
.site-footer {
  padding: 1.25rem 0 2rem;
  border-top: 2px solid rgba(255,255,255,0.18);
  margin-top: 1.5rem;
}

/* ==========================================================
 * Radio Player
 * ========================================================== */

.radio-window {
    position: fixed;

    bottom: 1rem;
    left: 1rem;

    width: 460px;
    height: 440px;

    background: var(--panel);

    border: 3px solid var(--bevel-mid);

    box-shadow:
    0 0 0 2px var(--bevel-dark),
    inset 2px 2px 0 rgba(255,255,255,0.16),
    inset -2px -2px 0 rgba(0,0,0,0.45);

    z-index: 9999;

    user-select: none;
}

.radio-titlebar {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 0.45rem 0.7rem;

    cursor: move;

    background:
    linear-gradient(
        90deg,
        rgba(0,162,255,0.35),
        rgba(108,175,255,1)
    );

    border-bottom:
    2px solid rgba(255,255,255,0.2);
}

.radio-titlebar h2 {
    margin: 0;

    font-size: 0.9rem;

    font-family:
    "Silkscreen",
    system-ui,
    sans-serif;
}

.radio-led {
    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: var(--hot);

    box-shadow:
    0 0 8px var(--hot);
}

.radio-body {
    padding: 0.85rem;
    background: var(--panel2);
}

.radio-nowplaying {
    margin-bottom: 0.75rem;

    padding: 0.4rem;

    border:
    2px solid rgba(255,255,255,0.15);

    background:
    rgba(0,0,0,0.25);

    color: var(--accent);

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.radio-controls {
    display: flex;

    justify-content: center;

    gap: 0.6rem;

    margin-bottom: 0.8rem;
}

.radio-controls button {
    width: 54px;
    height: 42px;

    font-size: 1rem;

    font-family:
    "Silkscreen",
    system-ui,
    sans-serif;

    background:
    rgba(0,0,0,0.35);

    color: var(--text);

    border:
    2px solid var(--bevel-mid);

    cursor: pointer;

    box-shadow:
    inset 2px 2px 0 rgba(255,255,255,0.16),
    inset -2px -2px 0 rgba(0,0,0,0.45);
}

.radio-controls button:hover {
    border-color: var(--accent);
}

.radio-progress {
    display: grid;

    grid-template-columns:
    42px 1fr 42px;

    align-items: center;

    gap: 0.45rem;

    margin-bottom: 0.8rem;
}

.radio-progress span {
    font-size: 0.9rem;

    color: var(--muted);
}

#seekBar {
    width: 100%;
}

.radio-playlist select {
    width: 100%;

    padding: 0.45rem;

    background:
    rgba(0,0,0,0.35);

    color: var(--text);

    border:
    2px solid var(--bevel-mid);

    font-family:
    "VT323",
    monospace;
}


/*MY GAME WINDOW*/

#game-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(255,255,255,0.14);
    background: rgba(0,0,0,0.35);
}

#game-container canvas {
    width: 100%;
    height: 100%;
    display: block;
    image-rendering: pixelated;

}

/* ==========================================================
 * 404 PAGE
 * ========================================================== */

.error-window {
    max-width: 700px;
    margin: 8vh auto;
}

.error-window .window__body {
    text-align: center;
    padding: 2rem;
}

.error-code {
    display: inline-block;

    font-family: "Silkscreen", sans-serif;

    font-size: clamp(4rem, 15vw, 8rem);

    color: var(--hot);

    text-shadow:
        0 0 8px rgba(255,77,109,0.8),
        0 0 24px rgba(255,77,109,0.5);

    margin-bottom: 1rem;
}

.error-title {
    font-family: "Silkscreen", sans-serif;
    font-size: 1.5rem;
    color: var(--warn);
    margin: 0.5rem 0;
}

.error-text {
    color: var(--muted);
    font-size: 1.2rem;
}

.error-terminal {
    margin: 1.5rem auto;
    max-width: 500px;
    text-align: left;
    color: var(--accent);
}

.error-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;

    margin-top: 1.5rem;
}

.error-btn {
    text-decoration: none;

    font-family: "Silkscreen", sans-serif;

    padding: 0.75rem 1rem;

    background: var(--panel);

    color: var(--text);

    border: 2px solid var(--bevel-mid);

    box-shadow:
        inset 2px 2px 0 rgba(255,255,255,0.16),
        inset -2px -2px 0 rgba(0,0,0,0.45);

    transition:
        transform 120ms ease,
        border-color 120ms ease;
}

.error-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.error-btn button {
    all: unset
}

/* ==========================================================
 * Search Bar
 * ========================================================== */

.search-window {
    margin: 1rem 0;
    padding: 0.75rem;

    background: var(--panel);

    border: 3px solid var(--bevel-mid);

    box-shadow:
        0 0 0 2px var(--bevel-dark),
        inset 2px 2px 0 rgba(255,255,255,0.16),
        inset -2px -2px 0 rgba(0,0,0,0.45);
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;

    padding: 0.6rem 0.75rem;

    background: rgba(0,0,0,0.35);

    color: var(--text);

    border: 2px solid var(--bevel-mid);

    font-family: "VT323", monospace;
    font-size: 1.2rem;

    box-shadow:
        inset 2px 2px 0 rgba(0,0,0,0.45),
        inset -2px -2px 0 rgba(255,255,255,0.08);
}

.search-input::placeholder {
    color: var(--muted);
}

.search-input:focus {
    border-color: var(--accent);
    outline: none;
}

.search-button {
    padding: 0.6rem 1rem;

    background: rgba(0,0,0,0.35);

    color: var(--text);

    border: 2px solid var(--bevel-mid);

    font-family: "Silkscreen", sans-serif;
    font-size: 0.8rem;

    cursor: pointer;

    box-shadow:
        inset 2px 2px 0 rgba(255,255,255,0.16),
        inset -2px -2px 0 rgba(0,0,0,0.45);

    transition:
        transform 120ms ease,
        border-color 120ms ease;
}

.search-button:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.search-button:active {
    transform: translateY(1px);
}