/* cyrillic-ext */
@font-face {
  font-family: "Press Start 2P";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/pressstart2p/v16/e3t4euO8T-267oIAQAu6jDQyK3nYivN04w.woff2)
    format("woff2");
  unicode-range:
    U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: "Press Start 2P";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/pressstart2p/v16/e3t4euO8T-267oIAQAu6jDQyK3nRivN04w.woff2)
    format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: "Press Start 2P";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/pressstart2p/v16/e3t4euO8T-267oIAQAu6jDQyK3nWivN04w.woff2)
    format("woff2");
  unicode-range:
    U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* latin-ext */
@font-face {
  font-family: "Press Start 2P";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/pressstart2p/v16/e3t4euO8T-267oIAQAu6jDQyK3nbivN04w.woff2)
    format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Press Start 2P";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/pressstart2p/v16/e3t4euO8T-267oIAQAu6jDQyK3nVivM.woff2)
    format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: "VT323";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/vt323/v18/pxiKyp0ihIEF2isQFJXGdg.woff2)
    format("woff2");
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: "VT323";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/vt323/v18/pxiKyp0ihIEF2isRFJXGdg.woff2)
    format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "VT323";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/vt323/v18/pxiKyp0ihIEF2isfFJU.woff2)
    format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
:root {
  --accent: #00ffcc;
  --accent2: #ff00aa;
  --bg: #000;
  --card: #0a0a0a;
  --border: #1a1a1a;
  --text: #e0e0e0;
  --pixel: "Press Start 2P", monospace;
  --vt: "VT323", monospace;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: var(--bg);
  color: var(--text);
  cursor: url("/static/icons/cursor.webp"), auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  font-family: var(--pixel);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 204, 0.015) 2px,
    rgba(0, 255, 204, 0.015) 4px
  );
  pointer-events: none;
  z-index: 9999;
}
header {
  text-align: center;
  padding: 20px;
  width: 100%;
}
header h1 {
  font-family: var(--pixel);
  font-size: clamp(1rem, 4vw, 2rem);
  color: var(--accent);
  text-shadow:
    0 0 20px var(--accent),
    0 0 40px var(--accent);
  letter-spacing: 4px;
  margin-bottom: 10px;
}
h2 {
  font-family: var(--pixel);
  font-size: clamp(0.6rem, 2vw, 0.9rem);
  color: var(--accent2);
  text-shadow: 0 0 10px var(--accent2);
  margin: 10px 0;
}
p,
li,
span,
a {
  font-family: var(--vt);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  line-height: 1.5;
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 30px 20px 20px;
  text-align: center;
  width: 100%;
  max-width: 1200px;
}
#anime-greet {
  height: 200px;
  border: 2px solid var(--accent);
  box-shadow: 0 0 20px var(--accent);
  image-rendering: pixelated;
  margin-bottom: 30px;
}
#greet-slide {
  display: inline-block;
  transform: translateX(-120%);
  animation: slideToCenter 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}
@keyframes slideToCenter {
  to {
    transform: translateX(0);
  }
}

.glitch-text {
  position: relative;
  display: inline-block;
  color: var(--accent);
  font-family: var(--pixel);
  font-size: clamp(1rem, 4vw, 2rem);
  text-shadow:
    0 0 20px var(--accent),
    0 0 40px var(--accent);
  letter-spacing: 4px;
  margin-bottom: 10px;
  margin-top: 100px;
}
.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  font-family: var(--pixel);
  letter-spacing: 4px;
}
.glitch-text::before {
  color: var(--accent2);
  clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%);
  animation: glitch-top 3.5s infinite;
  text-shadow: -2px 0 var(--accent2);
}
.glitch-text::after {
  color: #00aaff;
  clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
  animation: glitch-bot 3.5s infinite;
  text-shadow: 2px 0 #00aaff;
}
@keyframes glitch-top {
  0%,
  90%,
  100% {
    transform: translate(0);
    opacity: 0;
  }
  91% {
    transform: translate(-3px, -1px);
    opacity: 1;
  }
  93% {
    transform: translate(3px, 1px);
    opacity: 1;
  }
  95% {
    transform: translate(-2px, 0);
    opacity: 1;
  }
  97% {
    transform: translate(0);
    opacity: 0;
  }
}
@keyframes glitch-bot {
  0%,
  88%,
  100% {
    transform: translate(0);
    opacity: 0;
  }
  89% {
    transform: translate(3px, 2px);
    opacity: 1;
  }
  91% {
    transform: translate(-3px, -1px);
    opacity: 1;
  }
  94% {
    transform: translate(2px, 0);
    opacity: 1;
  }
  96% {
    transform: translate(0);
    opacity: 0;
  }
}

#typing-tagline {
  font-family: var(--vt);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--accent2);
  text-shadow: 0 0 8px var(--accent2);
  min-height: 1.8em;
  display: block;
  margin-top: 6px;
}
#typing-tagline::after {
  content: "█";
  animation: blink 0.8s step-end infinite;
  color: var(--accent);
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}
nav ul li a {
  color: var(--text);
  text-decoration: none;
  padding: 10px 20px;
  display: block;
  transition: 0.2s;
  background-color: var(--card);
  border: 1px solid var(--border);
  font-family: var(--vt);
  font-size: 1.3rem;
}
nav ul li a:hover {
  background-color: var(--accent);
  color: #000;
  box-shadow: 0 0 15px var(--accent);
  border-color: var(--accent);
}
footer {
  margin-top: auto;
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
footer img {
  max-width: 200px;
  max-height: 100px;
}
.webring-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.webring-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  color: var(--text);
  font-family: var(--vt);
  font-size: 1.2rem;
  border: 1px solid var(--border);
  transition: 0.2s;
}
.webring-item:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.webring-item img {
  width: 4em;
  height: 4em;
  object-fit: contain;
}
section ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
section ul li a {
  color: var(--accent);
  text-decoration: none;
  transition: 0.2s;
}
section ul li a:hover {
  color: var(--accent2);
  text-shadow: 0 0 8px var(--accent2);
}
.game-showcase {
  width: 100%;
  max-width: 900px;
}
.game-showcase-title {
  font-family: var(--pixel);
  font-size: clamp(0.8rem, 3vw, 1.4rem);
  color: var(--accent);
  text-shadow:
    0 0 20px var(--accent),
    0 0 40px var(--accent);
  margin-bottom: 30px;
  letter-spacing: 3px;
}
.game-tabs {
  display: flex;
  margin-bottom: 0;
  border-bottom: 2px solid var(--accent);
}
.game-tab {
  font-family: var(--pixel);
  font-size: clamp(0.4rem, 1.5vw, 0.65rem);
  color: var(--text);
  background: var(--card);
  border: 2px solid var(--border);
  border-bottom: none;
  padding: 10px 16px;
  cursor: pointer;
  transition: 0.2s;
  letter-spacing: 1px;
}
.game-tab.active,
.game-tab:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.game-panel {
  display: none;
  background: var(--card);
  border: 2px solid var(--accent);
  border-top: none;
  animation: fadeIn 0.4s ease;
}
.game-panel.active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.slideshow-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/9;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  transform: scale(1.03);
}
.slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}
.slide.prev {
  opacity: 0;
  transform: scale(0.97);
  z-index: 0;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.92));
  padding: 30px 20px 15px;
  z-index: 2;
}
.slide-caption p {
  font-family: var(--vt);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent);
  text-align: left;
}
.slide-dots {
  position: absolute;
  bottom: 10px;
  right: 15px;
  display: flex;
  gap: 6px;
  z-index: 3;
}
.dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: 0.2s;
}
.dot.active {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}
.slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--pixel);
  font-size: 0.8rem;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 3;
  transition: 0.2s;
  display: none;
}
.slideshow-wrapper:hover .slide-nav {
  display: block;
}
.slide-nav:hover {
  background: var(--accent);
  color: #000;
}
.slide-nav.prev-btn {
  left: 10px;
}
.slide-nav.next-btn {
  right: 10px;
}
.game-info {
  padding: 20px 25px;
  text-align: left;
}
.game-name {
  font-family: var(--pixel);
  font-size: clamp(0.7rem, 2.5vw, 1.1rem);
  color: var(--accent2);
  text-shadow: 0 0 15px var(--accent2);
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.game-desc {
  font-family: var(--vt);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.6;
}
.game-features {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.game-features li {
  font-family: var(--vt);
  font-size: clamp(0.9rem, 2vw, 1.25rem);
  color: var(--text);
  padding-left: 16px;
  position: relative;
}
.game-features li::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7em;
  top: 3px;
}
.game-tagline {
  font-family: var(--vt);
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--accent2);
  font-style: italic;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 4px;
}
.play-btn {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--pixel);
  font-size: clamp(0.4rem, 1.5vw, 0.65rem);
  color: #000;
  background: var(--accent);
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s;
  box-shadow: 4px 4px 0 rgba(0, 255, 204, 0.3);
  letter-spacing: 1px;
}
.play-btn:hover {
  background: var(--accent2);
  box-shadow: 4px 4px 0 rgba(255, 0, 170, 0.3);
  color: #fff;
}
.progress-bar {
  height: 2px;
  background: var(--border);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width linear;
  box-shadow: 0 0 6px var(--accent);
}
#sidebar-nav {
  position: fixed;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(0, 0, 0, 0.88);
  border: 1px solid var(--accent);
  padding: 12px 10px;
  box-shadow: 0 0 18px rgba(0, 255, 204, 0.12);
}
#sidebar-nav::before {
  content: "//NAV";
  font-family: var(--pixel);
  font-size: 0.32rem;
  color: var(--accent);
  opacity: 0.55;
  text-align: center;
  display: block;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.snav-item {
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  text-decoration: none;
}
.snav-dot {
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent);
  background: transparent;
  flex-shrink: 0;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.snav-item.active .snav-dot,
.snav-item:hover .snav-dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.snav-label {
  position: absolute;
  left: 18px;
  font-family: var(--pixel);
  font-size: 0.38rem;
  color: var(--accent);
  background: rgba(0, 0, 0, 0.96);
  border: 1px solid var(--accent);
  padding: 5px 9px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-4px);
  transition:
    opacity 0.18s,
    transform 0.18s;
  letter-spacing: 1px;
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
}
.snav-item:hover .snav-label {
  opacity: 1;
  transform: translateX(0);
}
#back-to-top {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 1000;
  width: 42px;
  height: 42px;
  background: var(--bg);
  border: 2px solid var(--accent);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s,
    background 0.2s,
    box-shadow 0.2s,
    color 0.2s;
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}
#back-to-top:hover {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 16px var(--accent);
}
.pixel-arrow {
  display: grid;
  grid-template-columns: repeat(5, 5px);
  grid-template-rows: repeat(5, 5px);
}
.pixel-arrow span {
  width: 5px;
  height: 5px;
  background: currentColor;
  display: block;
}
.pixel-arrow span.e {
  background: transparent;
}
.construction-wrap {
  width: 100%;
  max-width: 420px;
  margin: 10px auto 0;
  border: 2px solid #ff6600;
  box-shadow: 0 0 16px rgba(255, 102, 0, 0.35);
  overflow: hidden;
}
.construction-wrap::before {
  display: block;
  font-family: var(--pixel);
  font-size: 0.38rem;
  color: #ff6600;
  text-align: center;
  padding: 6px;
  background: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid #ff6600;
  letter-spacing: 1px;
}
.construction-wrap img {
  width: 100%;
  display: block;
}
@media (max-width: 900px) {
  #sidebar-nav {
    display: none;
  }
}
@media (max-width: 480px) {
  .game-tabs {
    flex-direction: column;
    border-bottom: none;
  }
  .game-tab {
    border: 2px solid var(--border);
    border-bottom: none;
  }
  .game-tab:last-child {
    border-bottom: 2px solid var(--border);
  }
  .game-tab.active {
    border-color: var(--accent);
  }
  .webring-item {
    flex: 1 1 100%;
    justify-content: flex-start;
  }
}
