@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
:root {
  --theme-speed: 2s;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}


body {
  background: transparent;
  margin: 0;
  padding: 0;
  contain: none;
}

html, body {
  height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

html, body {
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}


html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}


body {
  background: transparent;
  contain: none;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  max-width: 100%;
  position: relative;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "MS Gothic", "MS PGothic", "MS UI Gothic", monospace, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text);
  background-color: var(--c-bg);
  background-image: url(https://hdbn2.neocities.org/hpo3k2.jpg);
  background-repeat: repeat;
  background-attachment: fixed;
  background-size: auto;
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  max-width: 100%;
  position: relative;
  box-sizing: border-box;
  scrollbar-gutter: stable;
}

.wrapper { width: 890px; max-width: 100%; margin: 0 auto; overflow-x: hidden; 
  position: relative;

  position: relative;
  overflow: hidden;
}

.wrapper-2 {
  display: grid !important;
  grid-template-columns: 180px 1fr 180px;
  gap: 4px;
  align-items: start;
  width: 100%;
  padding: 0;
  }
  
.sidebar-left { grid-column: 1; grid-row: 1; float: none; clear: none; align-self: start; }
.main { grid-column: 2; grid-row: 1; float: none; clear: none; align-self: start; }
.sidebar-right { grid-column: 3; grid-row: 1; float: none; clear: none; align-self: start; }
.sidebar-left, .sidebar-right { width: 180px; }
.main { width: 100%; }

.header {
  margin-top: 12px;
  background: var(--c-bg);
  border: 2px solid var(--c-border);
  width: 100%;
}

.header-shadow { padding: 8px 12px; }
.header-shadow h1 { margin: 0; font-size: 20px; font-weight: 700; color: var(--c-border); font-family: "Oswald", "MS Gothic", monospace, sans-serif; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.title { display: none; }
.footer { height: 0; }

.box {
  background: #fff var(--box-bg-image) center center no-repeat;
  background-size: var(--box-bg-size) auto;
  border: 2px solid var(--c-border);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: none;
  transform: none;
  -ms-interpolation-mode: bicubic;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.main > .box:nth-child(1) { background-position: 25% 0%; }
.main > .box:nth-child(2) { background-position: 25% 0%; }
.sidebar-left > .box:nth-child(1) { background-position: 50% 0%; }
.sidebar-left > .box:nth-child(2) { background-position: 75% 0%; }
.sidebar-left > .box:nth-child(3) { background-position: 75% 15%; }
.sidebar-right > .box:nth-child(1) { background-position: 85% 15%; }
.sidebar-right > .box:nth-child(2) { background-position: 50% 50%; }
.sidebar-right > .box:nth-child(3) { background-position: 75% 15%; }

.box h1, .box h2, .box h3, .box h4 {
  margin: 0;
  padding: 6px 8px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  color: var(--c-border);
  background: var(--c-accent);
  border-bottom: 2px solid var(--c-border);
}

h1 { font-family: "Oswald", "MS Gothic", monospace, sans-serif; font-weight: 700; color: var(--c-border); }

.inner { padding: 8px 10px 10px 10px; }
.inner p,
.inner li,
.inner ol,
.inner ul,
.inner div {
  text-shadow: 0 0 1px rgba(0,0,0,0.5);
}

a { 
  color: var(--c-border); 
  text-decoration: underline; 
  font-weight: bold;
  text-shadow: 
    -0.4px -0.4px 0 rgba(0, 0, 0, 0.9),
    0.4px -0.4px 0 rgba(0, 0, 0, 0.9),
    -0.4px 0.4px 0 rgba(0, 0, 0, 0.9),
    0.4px 0.4px 0 rgba(0, 0, 0, 0.9),
    -0.4px 0 0 rgba(0, 0, 0, 0.9),
    0.4px 0 0 rgba(0, 0, 0, 0.9),
    0 -0.4px 0 rgba(0, 0, 0, 0.9),
    0 0.4px 0 rgba(0, 0, 0, 0.9);
}

a:hover { color: var(--c-text); }
ul, ol { padding-left: 20px; }
img { image-rendering: auto; border: 1px solid var(--c-border); }
img { max-width: 100%; height: auto; }

.theme-btn {
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.theme-btn:hover {
  color: #6979c0;
}

.theme-btn:active {
  color: #cacaca;
}

body > div[style*="position:absolute"]:not(.fx-layer),
body > div[style*="position: fixed"]:not(.fx-layer){
  max-width: 100vw !important;
  max-height: 100vh !important;
  overflow: hidden !important;
}

.fx-layer {
  position: fixed;
  inset: 0;              
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  overflow: hidden;
  z-index: 999;
}

body.theme-switch * {
transition:
  background var(--theme-speed),
  color var(--theme-speed),
  border-color var(--theme-speed),
  box-shadow var(--theme-speed),
  filter var(--theme-speed),
  opacity var(--theme-speed);
}

@keyframes fall {
  0% {
    top: -10%;
    opacity: 0.9;
  }
  100% {
    top: 110%;
    opacity: 0.2;
  }
}

@keyframes sway {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(25deg); }
  100% { transform: rotate(0deg); }
}

.falling-leaf {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: none !important;
}

.falling-leaf {
  position: fixed;
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  z-index: 0;
  opacity: 0.95 !important;
  -webkit-user-drag: none !important;
  image-rendering: pixelated !important;
  image-rendering: crisp-edges !important ;
}

body {
  cursor: var(--cursor-default), auto  !important;
}

a,
button,
[role="button"],
input[type="submit"],
input[type="button"],
.markers-list img,.site-character,.girlr,span {
  cursor: var(--cursor-pointer), pointer  !important;
}

.markers-wrapper {
  width: 890px;
  max-width: 100%;
  margin: 1px auto 0;
  padding-bottom: 10px;
  box-sizing: border-box;
}

.markers-box {
  position: relative;
  width: 100%;
  height: 34px !important;
  min-height: 34px !important;

  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;

  border: 2px solid var(--c-border);
  background: #fff var(--box-bg-image) center center no-repeat;
  background-size: var(--box-bg-size) auto;

  line-height: 0;
  font-size: 0;
  box-sizing: border-box !important;

  grid-row: 2;
  z-index: 2;
  display: flex;
  align-items: center; 
}

.box.markers-box {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.markers-box h3 {
  margin: 0;
  padding: 6px 8px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  color: var(--c-border);
  background: var(--c-accent);
  border-bottom: 2px solid var(--c-border);
}

.box.markers-box + .bottom-grid {
  margin-top: 6px !important;
}

.markers-list {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;

  width: max-content;
  animation: scroll 20s linear infinite;
  animation-timing-function: linear;

  will-change: transform;
  image-rendering: auto !important;
}

.markers-box:hover .markers-list {
  animation-play-state: paused;
}

.markers-list img {
  width: 88px;
  height: 32px;
  flex-shrink: 0;
  display: block;

  margin: 0;
  padding: 0;

  cursor: pointer;
  transform-origin: center;

  border-left: 1px dashed rgb(0, 0, 0);
  border-right: 0px dashed rgba(0, 0, 0, 0);
  border-top: none;
  border-bottom: none;

  transition: transform 0.15s ease;

  filter: sepia(55%)
          saturate(80%)
          contrast(90%)
          brightness(95%)
          hue-rotate(-15deg);
}

.markers-list img:hover {
  transform: scale(1.05);
  filter: none !important;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.333%);
  }
}

.dots {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;

  animation: typing 3s steps(20) infinite alternate;
}

@keyframes typing {
  from { width: 0; }
  to { width: 20ch; }
}

.dots {
  position: absolute;
  top: 1;
  left: 1;
  width: 100%;

  line-height: 1;
  margin: 1;
  padding: 1;

  pointer-events: none;
}

body {
  padding-top: 14px;
}

.dvd-logo {
  width: 90px;
  height: auto;
  pointer-events: none;
  mix-blend-mode: multiply;
  will-change: transform;
  border: none;
  outline: none;
  box-shadow: none;
  filter: 
    saturate(1.5)
    contrast(1)
    !important;
    opacity: 1
    !important;
  position: fixed;
  left: 0;
  top: 0;
}

.g-letter {
  display: inline-block;
  cursor: pointer;
}


.glitch-text {
  word-break: normal;
  white-space: normal;
}

.g-letter {
  display: inline-block;
  white-space: nowrap; /* не даёт ломать букву */
}

.word {
  display: inline-block;
  white-space: nowrap; /* слово не ломается */
}

/* по умолчанию скрываем mobile */
.mobile-links {
  display: none;
}

.mobile-links {
  display: none;
}

/* скрыто по умолчанию */
.mobile-links {
  display: none;
}

.mobile-links {
  display: none;
}

/* скрыто по умолчанию */
.mobile-links {
  display: none;
}

/* МОБИЛКА */
@media (max-width: 768px) {

  /* скрываем основной сайт */
  .wrapper.main-index {
    display: none !important;
  }

  /* центрируем */
  body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
  }

  /* контейнер */
  .mobile-links {
    display: block;
    width: 100%;
    max-width: 320px;
  }

  /* список */
  .mobile-links .link-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  /* кнопки */
  .mobile-links .link-list li {
    margin: 10px 0;
  }

  .mobile-links .link-list a {
    display: block;
    width: 100%;
z-index: 2;
    position: relative;
    overflow: hidden;

    padding: 10px;
    text-align: center;
    text-decoration: none;

    border: 2px solid var(--c-border);
    color: #000;

    background: var(--link-bg-image);
    background-size: var(--link-bg-size);
  }

  /* ФОН (гифка) */
  .mobile-links .link-list a img {
    z-index: 2;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    pointer-events: none;
    opacity: 0.7;
  }

  /* ТЕКСТ */
  .mobile-links .link-list a span {
    position: relative;
    z-index: 2;
  }

  /* эффект нажатия */
  .mobile-links .link-list a:active {
    transform: scale(0.96);
  }



  .mobile-links .link-list a img {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

@media (max-width: 768px) {

  .mobile-links .link-list a {
    font-size: 15px;      /* было мало → увеличили */
    padding: 8px 10px;    /* было слишком жирно → уменьшили */
    letter-spacing: 0.5px; /* чуть читаемее */
  }

  .mobile-links .link-list li {
    margin: 8px 0; /* уменьшаем расстояние между кнопками */
  }

}

.sparkle-filter {
  pointer-events: none;
}

.theme-btn {

  position: relative; 

  z-index: 99999 !important;

  display: inline-block; 
  float: right; 

  color: #000;
  font-size: 14px;
  cursor: pointer;

  text-shadow: none;
}

.theme-btn:hover {
  color: #585858;
}

.theme-btn:active {
  color: #3a3a3a;
}


.falling-leaf {
  pointer-events: none !important;
}

.girlr{
  z-index: 0 !important;
}


.site-character {
  z-index: 0 !important;
}
}

/* ===== SAFARI iOS FIX ===== */

/* ===== ТВОЙ МОБИЛЬНЫЙ ЭКРАН ===== */
@media (max-width: 768px) {

  html, body {
    margin: 0 !important;
    padding: 0 !important;

    width: 100% !important;
    min-height: 100dvh !important; /* фикс Safari */

    overflow-x: hidden !important;
  }
  html, body {
  height: 100% !important;
  min-height: 100dvh !important;
}

  body {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    padding: 20px !important;
  }

  /* главный блок */
  .mobile-links {
    display: flex !important;
    flex-direction: column !important;

    width: 100% !important;
    max-width: 360px !important;

    position: relative !important;
    z-index: 10 !important;
  }

  /* список */
  .link-list {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .link-list li {
    list-style: none !important;
    margin: 12px 0 !important;
  }

  /* кнопки */
  .link-list a {
    display: block !important;
    width: 100% !important;

    position: relative !important;
    z-index: 1 !important;
  }

  /* текст поверх */
  .link-list a span {
    position: relative !important;
    z-index: 2 !important;
  }

  /* кнопка темы */
  .theme-btn {
    position: relative !important;
    z-index: 20 !important;

    display: inline-block !important;
    margin-top: 0px !important;

    align-self: flex-end !important;

    font-size: 14px !important;
    cursor: pointer !important;

    text-underline-offset: 3px !important;

    opacity: 0.8 !important;
  }

  /* чтобы эффекты не мешали кликам */
  .fx-layer,
  .sparkle-filter,
  .dots {
    pointer-events: none !important;
    z-index: 0 !important;
  }

}
@media (max-width: 768px) {
  html, body {
    background-color: var(--c-bg) !important;
  }
}

@media (max-width: 768px) {

  html, body {
    height: auto !important;
    min-height: 100dvh !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  body::after {
    content: "";
    display: block;
    height: 150px; /* создаёт небольшой скролл */
  }

}

@media (max-width: 768px) {

  .wrapper,
  .wrapper-2,
  .main {
    height: auto !important;
    overflow: visible !important;
  }

}

@media (max-width: 768px) {

  body {
    display: flex !important;
    flex-direction: column !important;

    justify-content: flex-start !important;
    align-items: center !important;

    min-height: 120dvh !important;
    padding: 0 20px !important;

    overflow-y: auto !important;
  }

  .mobile-links {
    margin-top: auto !important;
    margin-bottom: auto !important;
  }

}

.gimge { 
   width: 200px !important;
   height: 180px !important;
   object-fit: fill !important;
   border: none !important; 
   outline: none !important; 
   mix-blend-mode: multiply !important;
   opacity: 0.9;
   cursor: pointer;
   

}





  html, body {
    margin: 0 !important;
    padding: 0 !important;

    width: 100% !important;
    min-height: 100dvh !important; /* фикс Safari */

    overflow-x: hidden !important;
  }
  html, body {
  height: 100% !important;
  min-height: 100dvh !important;
}

  body {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    padding: 20px !important;
  }

  /* главный блок */
  .mobile-links {
    display: flex !important;
    flex-direction: column !important;

    width: 100% !important;
    max-width: 400px !important;

    position: relative !important;
    z-index: 10 !important;
  }

  /* список */
  .link-list {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .link-list li {
    list-style: none !important;
    margin: 12px 0 !important;
  }

  /* кнопки */
  .link-list a {
    display: block !important;
    width: 100% !important;

    position: relative !important;
    z-index: 1 !important;
  }

  /* текст поверх */
  .link-list a span {
    position: relative !important;
    z-index: 2 !important;
  }

  /* кнопка темы */
  .theme-btn {
    position: relative !important;
    z-index: 20 !important;

    display: inline-block !important;
    margin-top: 0px !important;

    align-self: flex-end !important;

    font-size: 14px !important;
    cursor: pointer !important;

    text-underline-offset: 3px !important;

    opacity: 0.8 !important;
  }

  /* чтобы эффекты не мешали кликам */
  .fx-layer,
  .sparkle-filter,
  .dots {
    pointer-events: none !important;
    z-index: 0 !important;
  }


  html, body {
    background-color: var(--c-bg) !important;
  }



  html, body {
    height: auto !important;
    min-height: 100dvh !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  body::after {
    content: "";
    display: block;
    height: 150px; /* создаёт небольшой скролл */
  }




  .wrapper,
  .wrapper-2,
  .main {
    height: auto !important;
    overflow: visible !important;
  }




  body {
    display: flex !important;
    flex-direction: column !important;

    justify-content: flex-start !important;
    align-items: center !important;

    min-height: 120dvh !important;
    padding: 0 20px !important;

    overflow-y: auto !important;
  }

  .mobile-links {
    margin-top: auto !important;
    margin-bottom: auto !important;
  }







  /* скрываем основной сайт */
  .wrapper.main-index {
    display: none !important;
  }

  /* центрируем */
  body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
  }

  /* контейнер */
  .mobile-links {
    display: block;
    width: 100%;
    max-width: 320px;
  }

  /* список */
  .mobile-links .link-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  /* кнопки */
  .mobile-links .link-list li {
    margin: 10px 0;
  }

  .mobile-links .link-list a {
    display: block;
    width: 100%;
z-index: 2;
    position: relative;
    overflow: hidden;

    padding: 10px;
    text-align: center;
    text-decoration: none;

    border: 2px solid var(--c-border);
    color: #000;

    background: var(--link-bg-image);
    background-size: var(--link-bg-size);
  }

  /* ФОН (гифка) */
  .mobile-links .link-list a img {
    z-index: 2;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    pointer-events: none;
    opacity: 0.7;
  }

  /* ТЕКСТ */
  .mobile-links .link-list a span {
    position: relative;
    z-index: 2;
  }

  /* эффект нажатия */
  .mobile-links .link-list a:active {
    transform: scale(0.96);
  }



  .mobile-links .link-list a img {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}


  .mobile-links .link-list a {
    font-size: 15px;      /* было мало → увеличили */
    padding: 8px 10px;    /* было слишком жирно → уменьшили */
    letter-spacing: 0.5px; /* чуть читаемее */
  }

  .mobile-links .link-list li {
    margin: 8px 0; /* уменьшаем расстояние между кнопками */
  }



.sparkle-filter {
  pointer-events: none;
}

.theme-btn {

  position: relative; 

  z-index: 99999 !important;

  display: inline-block; 
  float: right; 

  color: #000;
  font-size: 14px;
  cursor: pointer;

  text-shadow: none;
}

.theme-btn:hover {
  color: #585858;
}

.theme-btn:active {
  color: #3a3a3a;
}


.falling-leaf {
  pointer-events: none !important;
}

.girlr{
  z-index: 0 !important;
}


.site-character {
  z-index: 0 !important;
}


.old-theme-btn {

  position: fixed;

  right: 5px;
  bottom: 1px;

  z-index: 99999 !important;

  color: #000;
  font-size: 12px;
  cursor: pointer;

  text-shadow: none;
}

.old-theme-btn:hover {
  color: #000000;
  transform: scale(1.08);
}

.old-theme-btn:active {
  color: #000000;
}

.link-list {
  
       /* Старые Firefox */
    image-rendering: -moz-crisp-edges !important;

    /* Старые WebKit браузеры */
    image-rendering: -webkit-optimize-contrast !important;

    /* Старый Opera */
    image-rendering: -o-crisp-edges !important;

    /* Общая резкость */
    image-rendering: crisp-edges !important;

    /* Chrome, Edge, Yandex, современные браузеры */
    image-rendering: pixelated !important;

    /* Internet Explorer */
    -ms-interpolation-mode: nearest-neighbor !important;
}

.dots {
  top: 2px;
  left: 2px;
  font-size: 12px !important;
}