:root {
  --blue: #1b1bff;
  --grey: #c0c0c0;
  --shade: #404040;
  --navy: #000080;
  --sky: #1084d0;
  --ui: "VT323", "Courier New", monospace;
  --pix: "Press Start 2P", "Pixelify Sans", monospace;
  --bar: 34px;
  --marquee: 26px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--blue);
  color: #fff;
  font-family: var(--ui);
  font-size: 20px;
  line-height: 1.2;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 4000;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 60, 0.14) 0 1px, transparent 1px 3px);
}

a { color: inherit; }
button { font: inherit; color: inherit; }

.bevel,
.taskbar button,
.studio-link,
.controls button,
.cookie button {
  border: 2px solid;
  border-color: #fff var(--shade) var(--shade) #fff;
  background: var(--grey);
  color: #000;
  cursor: pointer;
}
.taskbar button:active,
.studio-link:active,
.controls button:active,
.taskbar .pressed {
  border-color: var(--shade) #fff #fff var(--shade);
}

.taskbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--bar);
  padding: 3px 6px;
  background: var(--grey);
  border-bottom: 2px solid var(--shade);
  box-shadow: inset 0 2px 0 #fff;
  color: #000;
}
.start { padding: 0 14px; font-family: var(--pix); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; height: 100%; }
.taskbar-windows { display: flex; flex: 1; gap: 4px; min-width: 0; height: 100%; }
.task { min-width: 0; max-width: 170px; padding: 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; text-align: left; }
.studio-link { display: inline-flex; align-items: center; padding: 0 12px; height: 100%; font-size: 18px; text-decoration: none; }
.clock { padding: 0 12px; height: 100%; display: inline-flex; align-items: center; border: 2px solid; border-color: var(--shade) #fff #fff var(--shade); font-size: 20px; }

.start-menu {
  position: fixed;
  top: var(--bar);
  left: 6px;
  z-index: 3100;
  width: 230px;
  margin: 0;
  padding: 3px;
  list-style: none;
  background: var(--grey);
  border: 2px solid;
  border-color: #fff var(--shade) var(--shade) #fff;
  box-shadow: 2px 2px 0 #000;
  color: #000;
}
.start-menu button,
.start-menu a { display: block; width: 100%; padding: 7px 14px; border: 0; background: none; text-align: left; text-decoration: none; font-size: 22px; cursor: pointer; }
.start-menu button:hover,
.start-menu a:hover { background: var(--navy); color: #fff; }
.start-menu .rule { height: 2px; margin: 4px 2px; background: var(--shade); box-shadow: 0 1px 0 #fff; }

.desktop { position: relative; min-height: 1060px; padding-top: calc(var(--bar) + var(--marquee)); }
.title {
  margin: 26px 0 0;
  text-align: center;
  font-family: var(--pix);
  font-size: clamp(56px, 13vw, 168px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 6px 6px 0 var(--navy);
}

.window {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  z-index: var(--z);
  padding: 3px;
  background: var(--grey);
  border: 2px solid;
  border-color: #fff var(--shade) var(--shade) #fff;
  box-shadow: 3px 3px 0 #000, inset 1px 1px 0 #dfdfdf;
  color: #000;
}
.window.maximized { position: fixed; left: 0; top: var(--bar); right: 0; bottom: 0; width: auto; z-index: 2900 !important; display: flex; flex-direction: column; }
.window.maximized .window-body { flex: 1; max-height: none; }

.titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 26px;
  padding: 2px 3px 2px 6px;
  background: linear-gradient(90deg, #808080, #b4b4b4);
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.window.active .titlebar { background: linear-gradient(90deg, var(--navy), var(--sky)); }
.titlebar.dragging { cursor: grabbing; }
.title-text { display: inline-flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; }
.controls { display: inline-flex; gap: 3px; }
.controls button { width: 22px; height: 20px; padding: 0; font-size: 18px; line-height: 14px; font-weight: 700; }

.icon { display: inline-block; width: 16px; height: 14px; border: 2px solid #000; }
.icon-folder { background: #ffd200; }
.icon-video { background: #7a7aff; }
.icon-text { background: #fff; background-image: repeating-linear-gradient(0deg, transparent 0 2px, #000 2px 3px); }
.icon-image { background: linear-gradient(135deg, #6fdc6f 50%, #3a8bff 50%); }
.icon-mail { background: #fff; background-image: linear-gradient(135deg, transparent 46%, #000 46% 54%, transparent 54%), linear-gradient(45deg, transparent 46%, #000 46% 54%, transparent 54%); }

.menubar { display: flex; gap: 4px; margin: 0; padding: 2px 4px; list-style: none; }
.menubar button { padding: 0 8px; border: 0; background: none; font-size: 20px; cursor: pointer; }
.menubar button:hover { background: var(--navy); color: #fff; }

.window-body {
  max-height: 64vh;
  margin: 3px;
  padding: 14px;
  overflow: auto;
  background: #fff;
  border: 2px solid;
  border-color: var(--shade) #fff #fff var(--shade);
  font-size: 21px;
}
.window-body.media { padding: 6px; background: #000; }
.window-body.media video,
.window-body.media img { display: block; width: 100%; height: auto; }
.pixel { image-rendering: pixelated; background: #fff; }
.status { margin: 0 3px 3px; padding: 2px 8px; border: 1px solid var(--shade); border-color: var(--shade) #fff #fff var(--shade); font-size: 17px; }

.work { width: 100%; border-collapse: collapse; }
.work caption { padding-bottom: 8px; text-align: left; font-family: var(--pix); font-size: 13px; font-weight: 400; letter-spacing: 0.08em; }
.work th, .work td { padding: 6px 6px; border-bottom: 1px dashed #999; text-align: left; vertical-align: top; }
.work th { font-weight: 700; white-space: nowrap; }
.work .tag { text-align: right; white-space: nowrap; color: #6a6a6a; }
.work a, .work button { border: 0; background: none; padding: 0; color: #0000ee; text-decoration: underline; cursor: pointer; }
.work a:hover, .work button:hover { color: #c8002a; }

.text p { margin: 0 0 12px; }
.text p:last-child { margin-bottom: 0; }
.punch { font-family: var(--pix); font-size: 16px; line-height: 1.4; font-weight: 400; color: var(--blue); }
.mail { color: #0000ee; font-size: 24px; }
.small { font-size: 17px; color: #666; }

.ad-prize .titlebar { background: linear-gradient(90deg, #c8002a, #ff6a00) !important; }
.ad-prize .window-body { background: #ffe600; text-align: center; }
.prize-big { margin: 0 0 12px; font-family: var(--pix); font-size: 24px; font-weight: 400; line-height: 1.25; color: var(--blue); }
.prize-button { width: 100%; padding: 10px 8px; border: 2px solid #000; border-radius: 0; background: var(--blue); color: #fff; font-family: var(--pix); font-size: 10px; font-weight: 400; line-height: 1.5; cursor: pointer; animation: blink 1.1s steps(2, jump-none) infinite; }
.prize-small { margin: 8px 0 0; font-size: 15px; color: #333; }
.ad-hot .window-body { background: #000; color: #5dff5d; }
.ad-hot ul { margin: 0; padding: 0; list-style: none; }
.ad-hot li { padding: 4px 0; font-size: 24px; }
.ad-hot a { text-decoration: none; }
.ad-hot a:hover { color: #fff; background: var(--blue); }
@keyframes blink { 50% { background: #c8002a; } }

.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3500;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  align-items: center;
  padding: 18px 56px 18px 28px;
  background: #000;
  color: #fff;
}
.cookie h2 { grid-column: 1 / -1; margin: 0; font-family: var(--pix); font-size: 12px; font-weight: 400; letter-spacing: 0.06em; }
.cookie p { margin: 0; max-width: 760px; font-size: 18px; line-height: 1.25; color: #d8d8d8; }
.cookie button#cookie-manage { padding: 10px 20px; border: 2px solid #fff; background: #000; color: #fff; font-size: 20px; }
.cookie button#cookie-manage:disabled { opacity: 0.5; cursor: default; }
.cookie .cookie-close { position: absolute; top: 12px; right: 16px; width: 30px; height: 30px; border: 0; background: none; color: #fff; font-size: 30px; line-height: 1; }

@media (max-width: 760px) {
  .taskbar-windows, .studio-link span { display: none; }
  .window { position: relative; left: auto; top: auto; width: auto; margin: 16px 12px 0; z-index: 1 !important; }
  .window.maximized { position: relative; inset: auto; z-index: 1 !important; }
  .titlebar { cursor: default; }
  .desktop { padding-bottom: 260px; }
  .cookie { grid-template-columns: 1fr; padding: 14px 44px 14px 16px; }
  .work th { white-space: normal; }
  .work td:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .prize-button { animation: none; }
}

.icons { position: absolute; top: 80px; left: 14px; z-index: 2; margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.icons button { display: grid; justify-items: center; gap: 6px; width: 84px; padding: 6px 2px; border: 1px dotted transparent; background: none; color: #fff; font-size: 19px; text-shadow: 1px 1px 0 #000; cursor: pointer; }
.icons button:hover, .icons button:focus-visible { border-color: #fff; background: rgba(0, 0, 128, 0.45); outline: none; }
.icons .icon { width: 36px; height: 30px; border-width: 3px; box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5); }

.title { cursor: default; }
.title:hover { animation: glitch 0.35s steps(2, jump-none) 2; }
@keyframes glitch {
  0% { text-shadow: 6px 6px 0 var(--navy); transform: translate(0); }
  25% { text-shadow: -5px 0 0 #ff2d55, 5px 0 0 #00e5ff; transform: translate(-3px, 1px); }
  50% { text-shadow: 5px 0 0 #ff2d55, -5px 0 0 #00e5ff; transform: translate(3px, -1px); }
  100% { text-shadow: 6px 6px 0 var(--navy); transform: translate(0); }
}

.window.opening { animation: pop 0.22s steps(4, jump-none); }
@keyframes pop { from { transform: scale(0.9); opacity: 0.2; } }
.window.active { box-shadow: 5px 5px 0 #000, inset 1px 1px 0 #dfdfdf; }

.work tbody tr:hover { background: #eef0ff; }

.error .titlebar { background: linear-gradient(90deg, #8a0000, #d03030) !important; }
.error-body { display: flex; gap: 16px; align-items: center; background: var(--grey); }
.error-mark { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 3px solid #000; border-radius: 50%; background: #ffe600; font-family: var(--pix); font-size: 22px; }
.error-body p { margin: 0 0 12px; }
.error-buttons { display: flex; gap: 10px; margin: 0 !important; }
.error-buttons button { min-width: 84px; padding: 4px 12px; border: 2px solid; border-color: #fff var(--shade) var(--shade) #fff; background: var(--grey); color: #000; font-size: 20px; cursor: pointer; }
.error-buttons button:active { border-color: var(--shade) #fff #fff var(--shade); }

.shutdown { position: fixed; inset: 0; z-index: 5000; display: grid; place-content: center; gap: 28px; background: #000; color: #ff8a00; text-align: center; font-size: 30px; }
.shutdown p { margin: 0; }
.shutdown button { justify-self: center; padding: 8px 22px; border: 2px solid #ff8a00; background: #000; color: #ff8a00; font-size: 24px; cursor: pointer; }
.shutdown button:hover { background: #ff8a00; color: #000; }

@media (max-width: 760px) {
  .icons { display: none; }
  .error { position: fixed !important; left: 12px !important; right: 12px; top: 90px !important; width: auto; z-index: 4500 !important; margin: 0; }
}

.marquee { position: fixed; top: var(--bar); left: 0; right: 0; z-index: 2950; height: var(--marquee); overflow: hidden; background: #000; color: #ffe600; font-size: 20px; line-height: 25px; white-space: nowrap; border-bottom: 2px solid #000; }
.marquee-track { display: inline-flex; animation: ticker 46s linear infinite; }
.marquee-track span { padding-right: 70px; }
@keyframes ticker { to { transform: translateX(-50%); } }

.desktop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 8% 12%, #fff 50%, transparent 55%),
    radial-gradient(1.2px 1.2px at 21% 31%, #ffe600 50%, transparent 55%),
    radial-gradient(1.6px 1.6px at 36% 9%, #fff 50%, transparent 55%),
    radial-gradient(1.2px 1.2px at 52% 22%, #fff 50%, transparent 55%),
    radial-gradient(1.6px 1.6px at 67% 8%, #ffe600 50%, transparent 55%),
    radial-gradient(1.2px 1.2px at 81% 27%, #fff 50%, transparent 55%),
    radial-gradient(1.6px 1.6px at 93% 14%, #fff 50%, transparent 55%),
    radial-gradient(1.2px 1.2px at 12% 55%, #fff 50%, transparent 55%),
    radial-gradient(1.2px 1.2px at 88% 52%, #ffe600 50%, transparent 55%),
    radial-gradient(1.6px 1.6px at 47% 46%, #fff 50%, transparent 55%);
  animation: twinkle 3.4s steps(2, jump-none) infinite alternate;
}
@keyframes twinkle { from { opacity: 0.35; } to { opacity: 1; } }
body::after { content: ""; position: fixed; inset: 0; z-index: 3900; pointer-events: none; background: radial-gradient(ellipse at center, transparent 52%, rgba(0, 0, 80, 0.55) 100%); }

.icon-link { background: linear-gradient(90deg, #ffd200 50%, #ff6a00 50%); }
.video-frame iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.status a { color: #0000ee; }

.badges p { margin: 0 0 10px; }
.badges ul { display: grid; grid-template-columns: repeat(3, 88px); gap: 8px 10px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.badge { display: grid; place-items: center; width: 88px; height: 31px; padding: 0 3px; border: 2px solid; border-color: #fff var(--shade) var(--shade) #fff; font-size: 15px; font-weight: 700; line-height: 1; letter-spacing: 0.02em; text-align: center; text-decoration: none; }
a.badge { transition: transform 0.12s steps(2); }
a.badge:hover { transform: translateY(-2px); filter: brightness(1.18); }
.badge-studio { background: #bf001d; color: #fff; }
.badge-rootwork { background: #2e4629; color: #dce6d3; }
.badge-daylog { background: #141716; color: #d4f78a; }
.badge-hinge { background: #30294c; color: #ef7a59; }
.badge-afterglow { background: linear-gradient(#090e17, #3a3042); color: #e6bc92; }
.badge-animals { background: #000; color: #ffe600; }
.badge-alone { background: #fff; color: #000; border-style: dashed; }
.badge-view { background: var(--grey); color: #000; }
.badge-free { background: #00a000; color: #fff; }

.visitor { margin-top: 16px !important; font-size: 17px; color: #444; }
.led { display: inline-block; margin-left: 6px; padding: 2px 8px 0; border: 2px solid; border-color: #000 #666 #666 #000; background: #200; color: #ff2d2d; font-size: 24px; letter-spacing: 0.14em; text-shadow: 0 0 7px #ff2d2d; }

.bunny { position: fixed; left: 0; top: 0; z-index: 3400; width: 96px; height: 96px; padding: 0; border: 0; background: none; cursor: grab; touch-action: none; will-change: transform; }
.bunny:active { cursor: grabbing; }
.bunny-sprite { display: block; width: 96px; height: 96px; background: url("bunny-sheet.png") 0 0 / 384px 1344px no-repeat; image-rendering: pixelated; transform: scaleX(var(--face, 1)); }
.bunny-say { position: absolute; left: 50%; top: 4px; padding: 3px 9px 1px; border: 2px solid #000; background: #fff; color: #000; font-size: 20px; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%, -100%); }
.bunny-say.show { opacity: 1; }
.bunny:focus-visible { outline: 2px dotted #fff; outline-offset: 2px; }

@media (max-width: 760px) {
  .bunny { display: none; }
  .desktop::before { display: none; }
  .marquee { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .desktop::before, .title:hover { animation: none; }
}
