:root {
  color-scheme: dark;

  --bg: #0a0b0d;
  --bg-soft: #111317;
  --panel: rgba(17, 19, 23, .94);

  --text: #f1f0eb;
  --muted: #979a9f;
  --faint: #61656b;

  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .18);

  --accent: #ffb000;
  --accent-soft: rgba(255, 176, 0, .12);

  --shadow: rgba(0, 0, 0, .35);
}

html[data-theme="light"] {
  color-scheme: light;

  --bg: #eeeae0;
  --bg-soft: #e4dfd3;
  --panel: rgba(247, 244, 237, .96);

  --text: #191815;
  --muted: #4f4d48;
  --faint: #6f6b63;

  --line: rgba(25, 24, 21, .12);
  --line-strong: rgba(25, 24, 21, .22);

  --accent: #b66d00;
  --accent-soft: rgba(182, 109, 0, .11);

  --shadow: rgba(55, 48, 30, .15);
}

/*
 * Podczas pierwszego renderowania NIE pokazujemy żadnych
 * transitionów. Dzięki temu zapisany light/dark pojawia się
 * od razu, zamiast przechodzić przez poprzedni motyw.
 */
html.theme-init *,
html.theme-init *::before,
html.theme-init *::after {
  transition: none !important;
  animation: none !important;
}

/* -----------------------------
Base
----------------------------- */

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

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  min-height: 100svh;

  margin: 0;
  overflow-x: hidden;

  background:
    radial-gradient(
      circle at 50% 42%,
      var(--accent-soft),
      transparent 28rem
    ),
    var(--bg);

  color: var(--text);

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.5;
  -webkit-font-smoothing: antialiased;

  user-select: none;
  -webkit-user-select: none;

  transition:
    background .35s ease,
    color .25s ease;
}

input,
textarea,
[contenteditable="true"] {
  user-select: text;
  -webkit-user-select: text;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* -----------------------------
Background
----------------------------- */

.noise {
  position: fixed;
  inset: 0;
  z-index: 10;

  pointer-events: none;

  opacity: .035;

  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;

  width: 180px;
  height: 180px;

  left: 0;
  top: 0;

  transform: translate(-50%, -50%);

  pointer-events: none;
  z-index: 0;

  opacity: .5;

  background:
    radial-gradient(
      circle,
      var(--accent-soft) 0,
      transparent 68%
    );
}

/* -----------------------------
Logo terminal flash
----------------------------- */

.logo-terminal-flash {
  position: fixed;
  inset: 0;

  z-index: 25;

  pointer-events: none;

  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(70, 255, 125, .20),
      rgba(35, 255, 95, .07) 30%,
      transparent 68%
    );

  opacity: 0;
}

.logo-terminal-flash.show {
  animation:
    logo-terminal-flash .9s ease-out;
}

@keyframes logo-terminal-flash {
  0% {
    opacity: 0;
  }

  12% {
    opacity: .9;
  }

  24% {
    opacity: .18;
  }

  38% {
    opacity: .48;
  }

  58% {
    opacity: .08;
  }

  100% {
    opacity: 0;
  }
}

/* -----------------------------
Header
----------------------------- */

.site-header {
  position: relative;
  z-index: 1;

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

  width: min(100% - 40px, 1120px);

  margin: 0 auto;

  padding: 28px 0 0;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mark {
  position: relative;
  overflow: hidden;

  width: 30px;
  height: 30px;

  display: grid;
  place-items: center;

  border: 1px solid var(--line-strong);
  border-radius: 8px;

  background: var(--bg-soft);
  color: var(--accent);

  font-weight: 800;

  cursor: pointer;

  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    color .15s ease,
    background .15s ease;
}

.mark:hover {
  border-color: var(--accent);

  box-shadow:
    0 0 20px var(--accent-soft);
}

.mark.animating {
  pointer-events: none;
  cursor: default;
}

.mark.spin {
  animation:
    logo-spin .76s cubic-bezier(.2, .75, .2, 1);
}

.mark.glitch-a {
  animation:
    mark-glitch-a .95s ease;
}

.mark.glitch-b {
  animation:
    mark-glitch-b 1.05s ease;
}

.mark.glitch-c {
  animation:
    mark-glitch-c 1.15s ease;
}

.mark.glitch-d {
  animation:
    mark-glitch-d 1.1s ease;
}

.mark.logo-glitch {
  animation:
    mark-logo-glitch 1.35s steps(1, end);
}

.mark.logo-question {
  color: #59ff82;

  text-shadow:
    0 0 7px rgba(75, 255, 120, .55),
    0 0 18px rgba(75, 255, 120, .25);
}

.mark.logo-scanline::after {
  content: "";

  position: absolute;
  left: -10%;
  right: -10%;

  top: -35%;

  height: 4px;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(91, 255, 132, .75),
      transparent
    );

  box-shadow:
    0 0 8px rgba(91, 255, 132, .4);

  animation:
    logo-scanline 1.15s ease-in-out;
}

.mark.logo-scanline::before {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  opacity: 0;

  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 3px,
      rgba(80, 255, 120, .08) 3px 4px
    );

  animation:
    logo-scanlines .95s ease;
}

@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes mark-glitch-a {
  0%, 100% {
    transform: translateX(0);
  }

  18% {
    transform: translateX(-3px);
  }

  35% {
    transform: translateX(3px);
    color: #fff;
  }

  52% {
    transform: translateX(-2px);
  }

  70% {
    transform: translateX(1px);
  }

  84% {
    transform: translateX(-1px);
  }
}

@keyframes mark-glitch-b {
  0%, 100% {
    transform: scale(1);
  }

  25% {
    transform: scale(.82);
  }

  45% {
    transform: scale(1.12);
    color: var(--accent);
  }

  62% {
    transform: scale(.94);
  }

  78% {
    transform: scale(1.04);
  }
}

@keyframes mark-glitch-c {
  0% {
    transform: rotate(0);
  }

  22% {
    transform: rotate(180deg);
  }

  40% {
    transform: rotate(520deg) translateY(-2px);
  }

  62% {
    transform: rotate(700deg) translateY(2px);
  }

  100% {
    transform: rotate(720deg);
  }
}

@keyframes mark-glitch-d {
  0%, 100% {
    opacity: 1;
    filter: none;
  }

  22% {
    opacity: .25;
    filter: brightness(2);
  }

  34% {
    opacity: 1;
  }

  50% {
    opacity: .45;
  }

  64% {
    opacity: 1;
  }

  78% {
    opacity: .65;
  }
}

@keyframes mark-logo-glitch {
  0%, 100% {
    transform: translateX(0) skewX(0);
    filter: none;
  }

  14% {
    transform: translateX(-2px) skewX(-4deg);
  }

  21% {
    transform: translateX(3px) skewX(5deg);
    filter: brightness(1.8);
  }

  29% {
    transform: translateX(-3px) skewX(-2deg);
  }

  42% {
    transform: translateX(2px) skewX(4deg);
    filter: contrast(1.5);
  }

  57% {
    transform: translateX(-1px) skewX(-1deg);
  }

  72% {
    transform: translateX(1px);
  }

  86% {
    transform: translateX(0);
  }
}

@keyframes logo-scanline {
  0% {
    top: -35%;
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  85% {
    opacity: .75;
  }

  100% {
    top: 125%;
    opacity: 0;
  }
}

@keyframes logo-scanlines {
  0%, 100% {
    opacity: 0;
  }

  20% {
    opacity: .8;
  }

  65% {
    opacity: .45;
  }

  85% {
    opacity: 0;
  }
}

.brand {
  font-size: .94rem;
  font-weight: 650;
  letter-spacing: -.02em;
}

/* -----------------------------
Theme toggle
----------------------------- */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 40px;

  padding: 8px 11px;

  border: 1px solid var(--line);
  border-radius: 999px;

  background: var(--panel);
  color: var(--muted);

  cursor: pointer;

  font-size: .76rem;

  transition:
    color .2s ease,
    border-color .2s ease,
    background .35s ease,
    transform .2s ease;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.theme-icon {
  position: relative;

  display: block;

  width: 15px;
  height: 15px;

  flex: 0 0 15px;

  border: 1.5px solid var(--accent);
  border-radius: 50%;

  overflow: hidden;

  background:
    linear-gradient(
      90deg,
      var(--accent) 0 50%,
      transparent 50% 100%
    );

  transform: translateY(0);
}

.theme-icon::after {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: 50%;

  background:
    linear-gradient(
      90deg,
      transparent 0 50%,
      var(--panel) 50% 100%
    );
}

/* -----------------------------
Main
----------------------------- */

main {
  position: relative;
  z-index: 1;

  width: min(100% - 40px, 1120px);

  min-height:
    calc(100vh - 104px);

  min-height:
    calc(100svh - 104px);

  margin: 0 auto;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 44px 0 48px;
}

.intro {
  width: 100%;
  max-width: 720px;

  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: var(--muted);

  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: #36d66b;

  box-shadow:
    0 0 12px rgba(54, 214, 107, .55);
}

h1 {
  margin: 18px 0 20px;

  font-size: clamp(3rem, 8vw, 6.6rem);
  line-height: .94;

  letter-spacing: -.065em;
  font-weight: 760;
}

h1 em {
  color: var(--accent);
  font-style: normal;
}

.intro-copy {
  margin: 0;

  color: var(--muted);

  font-size: clamp(1rem, 2vw, 1.14rem);
}

/* -----------------------------
Small interactive elements
----------------------------- */

.quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin-top: 38px;
}

.mini-control {
  min-width: 176px;
  min-height: 88px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;

  gap: 2px;

  padding: 14px 16px;

  border: 1px solid var(--line);
  border-radius: 12px;

  background: var(--panel);
  color: var(--text);

  text-align: left;

  cursor: pointer;

  box-shadow:
    0 8px 28px var(--shadow);

  transition:
    transform .2s ease,
    border-color .2s ease,
    background .35s ease,
    color .25s ease;
}

.mini-control:hover {
  transform: translateY(-2px);

  border-color: var(--line-strong);
  background: var(--bg-soft);
}

.mini-label {
  color: var(--faint);

  font-size: .65rem;
  font-weight: 700;

  letter-spacing: .14em;
}

#clock {
  min-width: 8ch;

  font-family:
    "SFMono-Regular",
    Consolas,
    monospace;

  font-size: 1.05rem;

  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}

.hint {
  color: var(--muted);
  font-size: .72rem;
}

.contact-trigger strong {
  font-size: 1rem;
}

.contact-trigger strong span,
.bottom-links span,
.external {
  color: var(--accent);
}

/* -----------------------------
Secret area
----------------------------- */

.secret-area {
  min-height: 92px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  padding-top: 18px;
}

.tip {
  min-height: 1.4em;

  margin: 0;
  padding: 0;

  border: 0;

  background: transparent;

  color: var(--faint);

  font-size: .76rem;

  text-align: left;

  cursor: default;

  transition:
    color .25s ease,
    opacity .25s ease;
}

.tip.secret {
  color: var(--muted);
}

.tip.secret-strong {
  color: var(--accent);
}

@media (hover: hover) and (pointer: fine) {
  .tip {
    pointer-events: none;
  }
}

@media (hover: none) and (pointer: coarse) {
  .tip {
    pointer-events: auto;
    cursor: pointer;
  }

  .tip:hover {
    color: var(--muted);
  }
}

.secret-code-form {
  width: min(100%, 380px);

  display: flex;
  gap: 7px;

  margin-top: 8px;
}

.secret-code-form[hidden] {
  display: none;
}

.secret-code-form input {
  flex: 1;

  min-width: 0;
  min-height: 38px;

  padding: 8px 11px;

  border: 1px solid var(--line);
  border-radius: 8px;

  background: var(--panel);
  color: var(--text);

  outline: 0;

  font-family:
    "SFMono-Regular",
    Consolas,
    monospace;

  font-size: .78rem;

  user-select: text;
  -webkit-user-select: text;

  transition:
    border-color .2s ease,
    background .35s ease,
    color .25s ease;
}

.secret-code-form input:focus {
  border-color: var(--accent);
}

.secret-code-form input::placeholder {
  color: var(--faint);
}

.secret-submit {
  min-height: 38px;

  padding: 7px 11px;

  border: 1px solid var(--line);
  border-radius: 8px;

  background: var(--bg-soft);
  color: var(--muted);

  cursor: pointer;

  font-family:
    "SFMono-Regular",
    Consolas,
    monospace;

  font-size: .74rem;

  transition:
    color .2s ease,
    border-color .2s ease,
    background .35s ease;
}

.secret-submit:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.secret-prompt {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 32px;

  margin-top: 4px;
  padding: 4px 9px;

  border: 0;

  background: transparent;
  color: var(--accent);

  cursor: pointer;

  font-family:
    "SFMono-Regular",
    Consolas,
    monospace;

  font-size: .74rem;

  letter-spacing: .02em;

  animation:
    prompt-pulse 1.5s ease-in-out infinite;
}

.secret-prompt:hover {
  color: var(--text);
}

.secret-prompt[hidden] {
  display: none;
}

@keyframes prompt-pulse {
  0%, 100% {
    opacity: .55;
  }

  50% {
    opacity: 1;
  }
}

.secret-area.secret-found {
  animation:
    secret-flash .55s ease;
}

@keyframes secret-flash {
  0% {
    transform: translateX(0);
  }

  30% {
    transform: translateX(2px);
  }

  55% {
    transform: translateX(-1px);
  }

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

/* -----------------------------
Bottom
----------------------------- */

.bottom-links {
  display: flex;
  gap: 20px;

  margin-top: auto;
  padding-top: 52px;
}

.bottom-links a {
  position: relative;

  color: var(--muted);

  font-size: .78rem;

  text-decoration: none;

  transition: color .2s ease;
}

.bottom-links a::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: -4px;

  height: 1px;

  background: var(--accent);

  transform: scaleX(0);
  transform-origin: right;

  transition:
    transform .2s ease;
}

.bottom-links a:hover {
  color: var(--text);
}

.bottom-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* -----------------------------
Footer
----------------------------- */

footer {
  position: relative;
  z-index: 1;

  width: min(100% - 40px, 1120px);

  margin: 0 auto;

  padding:
    0
    0
    calc(22px + env(safe-area-inset-bottom));

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

  gap: 20px;

  color: var(--faint);

  font-size: .68rem;
}

.footer-comment {
  color: var(--faint);
  opacity: .65;
}

/* -----------------------------
Dialog
----------------------------- */

.modal {
  width: min(92vw, 430px);

  padding: 0;

  border: 1px solid var(--line-strong);
  border-radius: 16px;

  background: var(--panel);
  color: var(--text);

  box-shadow:
    0 24px 80px var(--shadow);

  transition:
    background .35s ease,
    color .25s ease,
    border-color .25s ease;
}

.modal::backdrop {
  background: rgba(0, 0, 0, .58);
  backdrop-filter: blur(5px);
}

.modal-inner {
  position: relative;
  padding: 28px;
}

.close {
  position: absolute;

  top: 13px;
  right: 13px;

  width: 34px;
  height: 34px;

  border: 0;
  border-radius: 8px;

  background: transparent;
  color: var(--muted);

  cursor: pointer;

  font-size: 1.5rem;

  transition:
    color .2s ease,
    background .2s ease;
}

.close:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.modal h2 {
  margin: 8px 0 6px;

  font-size: 1.65rem;
  letter-spacing: -.04em;
}

.modal p {
  margin: 0;

  color: var(--muted);

  font-size: .9rem;
}

/* -----------------------------
Discord
----------------------------- */

.discord-line {
  display: flex;
  align-items: stretch;

  margin-top: 24px;
}

.nick {
  flex: 1;

  min-height: 48px;

  padding: 12px 14px;

  border: 1px solid var(--line);
  border-radius: 10px 0 0 10px;

  background: var(--bg-soft);
  color: var(--text);

  text-align: left;

  cursor: pointer;

  transition:
    color .2s ease,
    background .35s ease,
    border-color .2s ease;
}

.nick:hover {
  color: var(--accent);
}

.external {
  width: 48px;

  display: grid;
  place-items: center;

  border: 1px solid var(--line);
  border-left: 0;

  border-radius: 0 10px 10px 0;

  text-decoration: none;

  transition:
    background .2s ease,
    border-color .2s ease;
}

.external:hover {
  background: var(--accent-soft);
}

.copy-state {
  display: block;

  height: 1.1em;

  margin-top: 8px;

  color: var(--accent);

  font-size: .72rem;
}

/* -----------------------------
Terminal
----------------------------- */

.terminal-modal {
  width: min(94vw, 720px);

  overflow: hidden;

  background: #090a0b;
  border-color: #292c30;
}

.terminal {
  color: #d9dad8;

  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;

  font-size: .82rem;
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 10px 13px;

  border-bottom: 1px solid #25282b;

  color: #9ca0a4;
}

.terminal-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #ffb000;

  box-shadow:
    0 0 10px rgba(255, 176, 0, .5);
}

.terminal-close {
  position: static;

  width: 28px;
  height: 28px;

  font-size: 1.2rem;
}

.terminal-output {
  min-height: 250px;
  max-height: 58vh;

  overflow: auto;

  padding: 17px;

  scrollbar-width: thin;
  scrollbar-color: #333 #090a0b;

  user-select: text;
  -webkit-user-select: text;
}

.terminal-output div {
  margin-bottom: 8px;

  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.terminal-welcome {
  color: #c5c7c5;
}

.terminal-accent {
  color: #ffb000;
}

.terminal-muted {
  color: #6f7479;
}

.terminal-command {
  color: #888d92;
}

.terminal-result {
  color: #d8d9d7;
}

.terminal-error {
  color: #d58a73;
}

.terminal-neofetch {
  color: #d8d9d7;

  line-height: 1.45;
}

.terminal-neofetch-ascii {
  color: #ffb000;

  font-weight: 700;
  line-height: 1.05;

  text-shadow:
    0 0 10px rgba(255, 176, 0, .16);
}

.terminal-neofetch-info {
  margin-top: 12px;

  color: #c7cac8;
}

.terminal-neofetch-label {
  color: #777d82;
}

.terminal-neofetch-value {
  color: #e0e2df;
}

.terminal-color-bar {
  display: flex;

  width: min(100%, 330px);
  height: 9px;

  margin-top: 13px;

  border-radius: 2px;

  overflow: hidden;
}

.terminal-color-bar span {
  flex: 1;
}

.terminal-color-bar span:nth-child(1) {
  background: #ff5f56;
}

.terminal-color-bar span:nth-child(2) {
  background: #ffbd2e;
}

.terminal-color-bar span:nth-child(3) {
  background: #27c93f;
}

.terminal-color-bar span:nth-child(4) {
  background: #00a8ff;
}

.terminal-color-bar span:nth-child(5) {
  background: #a55eea;
}

.terminal-color-bar span:nth-child(6) {
  background: #00d2d3;
}

.terminal-color-bar span:nth-child(7) {
  background: #d8d9d7;
}

.terminal-form {
  display: flex;
  align-items: center;
  gap: 9px;

  padding: 0 17px 17px;

  color: #ffb000;
}

.terminal-form input {
  width: 100%;

  border: 0;
  outline: 0;

  background: transparent;
  color: #e9e9e7;

  caret-color: #ffb000;

  user-select: text;
  -webkit-user-select: text;
}

/* -----------------------------
Easter egg effect
----------------------------- */

.secret-effect {
  position: fixed;
  inset: 0;

  z-index: 30;

  display: grid;
  place-items: center;

  padding: 24px;

  background: rgba(0, 0, 0, .72);

  backdrop-filter: blur(5px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity .18s ease,
    visibility 0s linear .18s;
}

.secret-effect.show {
  visibility: visible;
  opacity: 1;

  transition:
    opacity .18s ease,
    visibility 0s linear 0s;

  pointer-events: auto;
}

.secret-effect-inner {
  width: min(88vw, 520px);

  padding: 28px;

  border: 1px solid rgba(255, 176, 0, .32);
  border-radius: 14px;

  background:
    linear-gradient(
      180deg,
      rgba(255, 176, 0, .06),
      rgba(255, 176, 0, .015)
    ),
    #090a0b;

  color: #d9dad8;

  box-shadow:
    0 0 60px rgba(255, 176, 0, .08);

  font-family:
    "SFMono-Regular",
    Consolas,
    monospace;

  font-size: .9rem;

  white-space: pre-line;
  text-align: left;

  transform: translateY(0) scale(1);

  transition:
    transform .25s ease;
}

.secret-effect.show .secret-effect-inner {
  transform: translateY(0) scale(1);
}

.secret-effect.scipio {
  background:
    linear-gradient(
      135deg,
      rgba(0, 125, 255, .12),
      rgba(255, 255, 255, .025),
      rgba(255, 176, 0, .08)
    ),
    #080a0d;

  border-color:
    rgba(100, 180, 255, .42);

  box-shadow:
    0 0 90px rgba(40, 140, 255, .12);
}

.secret-effect.scipio .secret-effect-inner {
  color: #e8edf2;
}

/* -----------------------------
Toast
----------------------------- */

.toast {
  position: fixed;

  left: 50%;
  bottom:
    calc(24px + env(safe-area-inset-bottom));

  z-index: 40;

  transform: translate(-50%, 12px);

  padding: 8px 12px;

  border: 1px solid var(--line-strong);
  border-radius: 999px;

  background: var(--panel);
  color: var(--text);

  font-size: .75rem;

  opacity: 0;
  pointer-events: none;

  transition:
    opacity .2s ease,
    transform .2s ease,
    background .35s ease,
    color .25s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* -----------------------------
Mobile
----------------------------- */

@media (max-width: 700px) {

  .site-header {
    width: min(100% - 28px, 1120px);

    padding-top:
      calc(16px + env(safe-area-inset-top));
  }

  main {
    width: min(100% - 28px, 1120px);

    min-height:
      calc(100vh - 82px);

    min-height:
      calc(100svh - 82px);

    padding:
      44px
      0
      34px;
  }

  h1 {
    font-size:
      clamp(3rem, 17vw, 5rem);
  }

  .quick-row {
    margin-top: 30px;
  }

  .mini-control {
    flex: 1 1 160px;
    min-width: 0;
  }

  .bottom-links {
    padding-top: 36px;
  }

  .cursor-glow {
    display: none;
  }

  footer {
    width: min(100% - 28px, 1120px);

    padding-bottom:
      calc(18px + env(safe-area-inset-bottom));
  }

  .footer-comment {
    display: none;
  }

  .terminal-output {
    min-height: 220px;
  }

  .secret-code-form {
    width: 100%;
  }

  .secret-code-form input {
    font-size: 16px;
  }

  .secret-submit {
    padding-left: 13px;
    padding-right: 13px;
  }

  .secret-effect-inner {
    padding: 23px;
    font-size: .78rem;
  }

  .terminal-neofetch-ascii {
    font-size: .72rem;
  }
}

/* -----------------------------
Reduced motion
----------------------------- */

@media (prefers-reduced-motion: reduce) {

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

  .cursor-glow {
    display: none;
  }

  .secret-effect {
    backdrop-filter: none;
  }
}

.secret-code-input.console-ready {
  color: #7cff9b;
  border-color: #7cff9b;
  box-shadow:
    0 0 0 1px rgba(124, 255, 155, .25),
    0 0 18px rgba(124, 255, 155, .18);
}
