@font-face {
  font-family: AS1;
  src: url(https://file.garden/aqV4LX6geJZCqMJ_/ambulance_shotgun.ttf);
}

:root {
  --bg-body: #030303;
  --bg-center: url('https://file.garden/aqV4LX6geJZCqMJ_/istockphoto-2052016090-1024x1024_1bit.png');
  --bg-card: #000000;
  --bg-sidebar: #000000;
  --bg-header: #000000;
  --text-main: #c8c8c8;
  --text-bright: #e8e8e8;
  --text-muted: #888888;
  --accent: #ffffff;
  --accent-2: #ffffff;
  --border: #444444;
  --border-light: #666666;
  --font-pixel: "Press Start 2P", "VT323", monospace;
  --font-body: "VT323", "Courier New", monospace;
  --font-size-base: 15px;
  --line-height: 1.5;
  --center-width: 1050px;
  --left-width: 155px;
  --right-width: 145px;
  --gap: 0;
  --padding: 0.75rem;
  --radius: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  height: 100%;
}

body {
  font-family: var(--font-body);
  line-height: var(--line-height);
  color: var(--text-main);
  background-color: #030303;
  min-height: 100vh;
  margin: 0;
}

.fixed-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background-image: url('https://file.garden/aqV4LX6geJZCqMJ_/dithered-ordered--bayer--1790072461041.png');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.page-wrapper {
  position: relative;
  width: 100%;
  max-width: var(--center-width);
  margin: 0 auto;
  background-clip: border-box;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  border-style: solid;
  border-color: var(--bg-center);
  border-width: 0 60px;
  border-image-source: url("https://file.garden/aqV4LX6geJZCqMJ_/_l_extra17_16_s512_extra17_16_3.png");
  border-image-slice: 90;
  border-image-width: 0 60px;
  border-image-repeat: repeat;
  border-image-outset: 0;
}

.site-header {
  background: var(--bg-header);
  text-align: center;
  padding: 1.1rem 0.75rem 0.85rem;
  border-bottom: 1px dashed var(--border);
}

.header-deco {
  color: #555;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
}

.site-title {
  font-family: AS1;
  font-size: 3rem;
  color: var(--accent);
  text-shadow: 2px 2px 0 #3a1a28;
  letter-spacing: 5px;
  font-weight: normal;
}

.site-nav {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  padding: 0.4rem 0.75rem;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
}

.nav-list a {
  color: var(--text-bright);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.15s;
}

.nav-list a:hover {
  color: var(--accent);
}

.layout {
  display: grid;
  grid-template-columns: var(--left-width) 1fr var(--right-width);
  flex: 1;
  border-top: 1px solid var(--border);
  align-items: stretch;
}

.sidebar {
  background: var(--bg-sidebar);
  padding: 0.85rem 0.55rem;
  font-size: 0.8rem;
}

.left-sidebar {
  border-right: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
}

.right-sidebar {
  border-left: 1px dashed var(--border);
}

.side-section {
  background: var(--bg-card);
  padding: 0.55rem 0.55rem 0.6rem;
  margin-bottom: 0.55rem;
  position: relative;
}

.side-section::before {
  content: "··";
  position: absolute;
  top: -0.55rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-sidebar);
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  padding: 0 0.35rem;
  line-height: 1;
}

.side-section h2 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-bright);
  text-align: center;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.35rem;
  margin-bottom: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-section p {
  margin-bottom: 0.3rem;
  color: var(--text-main);
}

.status-online {
  color: #6dff6d;
  margin-bottom: 0.5rem !important;
}

.side-section ul {
  list-style: none;
}

.side-section ul li {
  margin-bottom: 0.25rem;
}

.side-section a {
  color: var(--text-main);
  text-decoration: none;
}

.side-section a:hover {
  color: var(--accent);
}

.buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin: 0.5rem 0;
}

.btn-placeholder {
  background: #1a1a1a;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  text-align: center;
  padding: 0.3rem;
  font-size: 0.8rem;
  width: 88px;
  margin: 0 auto;
}

.note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.main-content {
  padding: 0.85rem;
  background: var(--bg-center);
  background-image: url('https://file.garden/aqV4LX6geJZCqMJ_/istockphoto-2052016090-1024x1024_1bit.png');
}

.main-content iframe {
  display: block;
  max-width: 100%;
  margin: 0.65rem 0;
  border: none;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.65rem;
}

.welcome-card h2 {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  color: var(--accent);
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.welcome-card p {
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.welcome-card .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.notice {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0.45rem 0 0.7rem;
  padding-left: 0.5rem;
  border-left: 2px solid var(--border);
  background-image: linear-gradient(90deg, rgb(255 255 255 / 7%) 0%, rgb(255 255 255 / 14%) 100%);
}

.image-card {
  padding: 0;
  overflow: hidden;
}

.placeholder-img {
  width: 100%;
  height: 150px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  border-radius: var(--radius);
}

.bottom-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.bottom-cards .card h3 {
  font-size: 0.8rem;
  color: var(--text-bright);
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.bottom-cards .card hr {
  border: none;
  border-top: 1px dashed var(--border);
  margin-bottom: 0.6rem;
}

.bottom-cards .card p {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.site-footer {
  background: var(--bg-header);
  color: var(--text-muted);
  text-align: center;
  padding: 0.55rem;
  font-size: 0.9rem;
  border-top: 1px dashed var(--border);
}

.site-footer a {
  color: var(--accent);
}

.button {
  width: 88px;
  align-items: center;
}

a {
  color: #fff;
}

.sidebar-img {
  margin-top: auto;
  width: 130px;
  display: block;
  align-self: center;
}

.cursor-glitter {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10001;
  pointer-events: none;
  user-select: none;
  font-size: 13px;
  line-height: 1;
  text-shadow:
    0 0 3px currentColor,
    0 0 7px currentColor;
  transform: translate(-50%, -50%);
  animation: glitter-fall 700ms ease-out forwards;
}

@keyframes glitter-fall {
  0% {
    opacity: 1;
    transform:
      translate(-50%, -50%)
      translate(0, 0)
      rotate(0deg)
      scale(1);
  }
  100% {
    opacity: 0;
    transform:
      translate(-50%, -50%)
      translate(var(--glitter-x), var(--glitter-y))
      rotate(var(--glitter-rotation))
      scale(0.2);
  }
}

* {
  scrollbar-width: thin;
  scrollbar-color: #c8c8c8 #111;
}

::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

::-webkit-scrollbar-track {
  background: #050505;
  border-left: 1px dashed #333;
}

::-webkit-scrollbar-thumb {
  background: #222;
  border: 3px solid #050505;
  background-clip: content-box;
  box-shadow:
    inset 0 0 0 1px #666,
    inset 0 0 0 2px #111;
}

::-webkit-scrollbar-thumb:hover {
  background: #fff;
  box-shadow:
    inset 0 0 0 1px #fff,
    inset 0 0 0 2px #000;
}

::-webkit-scrollbar-thumb:active {
  background: #c8c8c8;
}

::-webkit-scrollbar-corner {
  background: #050505;
  border-left: 1px dashed #333;
}

@media (max-width: 1050px) {
  .page-wrapper {
    max-width: 100%;
    border-width: 0;
    border-image: none;
  }

  .layout {
    display: flex;
    flex-direction: column;
  }

  .main-content {
    order: 1;
  }

  .left-sidebar {
    order: 2;
    border-right: none;
    border-bottom: 1px dashed var(--border);
  }

  .right-sidebar {
    order: 3;
    border-left: none;
    border-top: 1px dashed var(--border);
  }

  .sidebar {
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .bottom-cards {
    grid-template-columns: 1fr;
  }

  .site-title {
    font-size: 1.4rem;
    letter-spacing: 3px;
  }

  .corner-image {
    display: none;
  }

  .sidebar-img {
    display: none;
  }
}

@media (max-width: 500px) {
  .nav-list {
    gap: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }

  .site-title {
    font-size: 1.1rem;
  }
}