@font-face {
  font-family: PixelifyLocal;
  src: local("Pixelify Sans");
  font-display: swap;
}

:root {
  --blue: #1262f6;
  --blue-deep: #001eb6;
  --lime: #d4ff24;
  --lime-hot: #c8ff00;
  --ink: #070911;
  --panel: rgba(8, 10, 18, 0.88);
  --chrome: #d9d9d9;
  --shadow: rgba(0, 0, 0, 0.46);
  --pixel: PixelifyLocal, "Courier New", monospace;
  --ui: Tahoma, Verdana, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  background: #05070f;
  color: white;
  font-family: var(--ui);
  overflow: hidden;
}

.screen {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 20, 95, 0.12), rgba(0, 0, 0, 0.12)),
    url("/assets/ick-reference-bg.png") center / cover no-repeat;
}

.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(7, 8, 14, 0.05), rgba(7, 8, 14, 0.66) 66%, rgba(7, 8, 14, 0.92));
  pointer-events: none;
}

.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.16;
  background:
    linear-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 100% 4px, 4px 100%;
  mix-blend-mode: soft-light;
}

.desktop-haze {
  position: absolute;
  inset: 0;
  z-index: 1;
  backdrop-filter: blur(1.2px) saturate(0.92);
  background: rgba(2, 5, 14, 0.08);
}

.topbar {
  position: relative;
  z-index: 3;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px 0 0;
  color: #fff;
  background: linear-gradient(180deg, #61a9ff 0%, #1676f7 44%, #0652d5 45%, #0133aa 100%);
  border-bottom: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.34);
}

.brand {
  height: 43px;
  min-width: 160px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: white;
  text-decoration: none;
  background: linear-gradient(180deg, #51d75b, #159e2a 56%, #087718);
  border-radius: 0 22px 22px 0;
  box-shadow: inset 0 2px rgba(255, 255, 255, 0.55), inset 0 -3px rgba(0, 0, 0, 0.2);
}

.brand img {
  display: block;
  image-rendering: auto;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.65));
}

.brand span {
  font-size: 23px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 2px 2px rgba(0, 0, 0, 0.28);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: Georgia, serif;
  font-weight: 800;
  text-shadow: 2px 2px #001b7d;
}

.top-actions span:first-child {
  font-size: 34px;
  line-height: 1;
}

.mini-icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 21px;
  color: #111;
  background: #f4f1df;
  border: 1px solid #103070;
  text-shadow: none;
}

.status-window {
  position: relative;
  z-index: 4;
  width: min(780px, calc(100vw - 32px));
  margin: clamp(78px, 13vh, 132px) auto 0;
  border: 3px solid var(--chrome);
  border-top: 0;
  background: rgba(8, 9, 15, 0.88);
  box-shadow:
    0 34px 110px var(--shadow),
    0 0 0 1px rgba(255, 255, 255, 0.42) inset;
}

.title-bar {
  height: 39px;
  margin: -3px -3px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px 0 12px;
  color: #fff;
  font-family: var(--pixel);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #1617c6, #000083);
  border: 3px solid var(--chrome);
  border-bottom: 0;
  text-shadow: 2px 2px #000;
}

.window-controls {
  display: flex;
  gap: 5px;
}

.window-controls i {
  position: relative;
  width: 22px;
  height: 22px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 3px;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.92),
    inset -1px -2px 0 rgba(0, 26, 118, 0.42),
    0 1px 0 rgba(0, 0, 0, 0.28);
}

.window-controls .minimize,
.window-controls .maximize {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.95), transparent 21%),
    linear-gradient(180deg, #8ec5ff 0%, #2f80ff 34%, #0756d7 66%, #003ea8 100%);
}

.window-controls .close {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.95), transparent 20%),
    linear-gradient(180deg, #ffb094 0%, #f36a36 38%, #d82412 70%, #9f1209 100%);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.88),
    inset -1px -2px 0 rgba(93, 0, 0, 0.46),
    0 1px 0 rgba(0, 0, 0, 0.3);
}

.window-controls i::before,
.window-controls i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
}

.window-controls .minimize::before {
  width: 9px;
  height: 3px;
  transform: translate(-50%, 2px);
  background: #fff;
  box-shadow: 1px 1px 0 rgba(0, 0, 90, 0.55);
}

.window-controls .maximize::before {
  width: 10px;
  height: 9px;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  box-shadow: 1px 1px 0 rgba(0, 0, 90, 0.5);
}

.window-controls .close::before,
.window-controls .close::after {
  width: 13px;
  height: 3px;
  transform-origin: center;
  background: #fff;
  box-shadow: 1px 1px 0 rgba(75, 0, 0, 0.58);
}

.window-controls .close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.window-controls .close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.window-controls i:hover {
  filter: brightness(1.12);
}

.window-controls i:active {
  transform: translateY(1px);
  filter: brightness(0.94);
}

.top-actions .mini-icon {
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 900;
  background: linear-gradient(180deg, #fffef2, #d8d3bd);
  border-color: #032a89;
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 #7a7564,
    1px 1px 0 rgba(0, 0, 0, 0.22);
}

.top-actions span:not(.mini-icon) {
  filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.6));
}

.mark {
  width: clamp(150px, 17vw, 224px);
  height: auto;
  margin-bottom: 22px;
  image-rendering: auto;
  filter:
    drop-shadow(0 0 22px rgba(212, 255, 36, 0.35))
    drop-shadow(0 16px 22px rgba(0, 0, 0, 0.42));
}

.window-body {
  min-height: 430px;
  display: grid;
  justify-items: center;
  align-content: center;
  padding: clamp(36px, 6vw, 58px);
  text-align: center;
  background:
    linear-gradient(rgba(212, 255, 36, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 255, 36, 0.035) 1px, transparent 1px),
    rgba(3, 5, 9, 0.86);
  background-size: 28px 28px;
}

.file-label {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.78);
  font: 700 18px/1 var(--pixel);
  letter-spacing: 0.12em;
}

h1 {
  margin: 0;
  color: var(--lime);
  font: 800 clamp(46px, 8.6vw, 98px) / 0.95 var(--pixel);
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    4px 4px 0 #061011,
    0 0 24px rgba(212, 255, 36, 0.36);
  text-wrap: balance;
}

.note {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font: 700 clamp(18px, 2.2vw, 27px) / 1.2 var(--pixel);
  text-shadow: 2px 2px #000;
}

.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  height: 37px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px 0 0;
  background: linear-gradient(180deg, #1b2434, #070a12);
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.start-button {
  height: 37px;
  min-width: 108px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px 0 9px;
  color: #111;
  background: var(--lime);
  border-radius: 0 18px 18px 0;
  font: italic 800 21px/1 var(--ui);
}

.flag {
  width: 18px;
  height: 18px;
  background:
    linear-gradient(90deg, #ff3b00 50%, #00d4ff 0) 0 0 / 100% 50%,
    linear-gradient(90deg, #ffe600 50%, #00c94a 0) 0 100% / 100% 50%;
  background-repeat: no-repeat;
}

.task {
  min-width: 138px;
  height: 25px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.92);
  font: 800 12px/1 var(--ui);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

.tray {
  margin-left: auto;
  color: white;
  font: 13px/1 var(--ui);
  opacity: 0.88;
}

@media (max-width: 640px) {
  body {
    overflow: auto;
  }

  .screen {
    min-height: 100svh;
    padding-bottom: 56px;
    background-position: center top;
  }

  .topbar {
    height: 40px;
    padding-right: 12px;
  }

  .brand {
    min-width: 118px;
    height: 39px;
    gap: 9px;
    padding: 0 14px 0 10px;
  }

  .brand span {
    font-size: 20px;
  }

  .top-actions {
    gap: 11px;
  }

  .top-actions span:first-child {
    font-size: 24px;
  }

  .status-window {
    margin-top: 78px;
  }

  .title-bar {
    height: 34px;
    font-size: 17px;
  }

  .window-controls i {
    width: 18px;
    height: 18px;
  }

  .window-body {
    min-height: 410px;
    padding: 34px 20px;
  }

  .file-label {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .mark {
    animation: pulse 3.2s ease-in-out infinite;
  }

  @keyframes pulse {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-5px);
    }
  }
}
