
@import url('https://fonts.googleapis.com/css2?family=Grenze+Gotisch:wght@400;700&display=swap');

/* =============================================
   GLOBAL RESET
   ============================================= */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Georgia", serif; }
body { background: #0b0b0f; color: #e6e6f0; cursor: none; overflow-x: hidden; position: relative; }

/* =============================================
   GOTHIC FONT
   ============================================= */
.gothic-font { font-family: 'Grenze Gotisch', "Blackletter", "Cloister Black", "Old English Text MT", serif; }

/* =============================================
   FIXED DECORATIVE ELEMENTS
   ============================================= */
.top-lace-decor {
  position: fixed;
  top: -30px;
  left: 0;
  width: 100%;
  height: 180px;
  background-image: url('https://datheas.neocities.org/Riru.png');
  background-repeat: repeat-x;
  background-position: top center;
  background-size: auto 155px;
  z-index: 9999;
  pointer-events: none;
}

.bottom-left-decor {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 9999;
}
.bottom-left-decor img {
  width: 250px;
  height: 150px;
  object-fit: cover;
}

.extra-left-decor {
  position: fixed;
  bottom: 0px;
  left: 190px;
  z-index: 9999;
  pointer-events: none;
}
.extra-left-decor img {
  width: 120px;
  height: auto;
  object-fit: cover;
  opacity: 0.8;
}

.bottom-right-decor {
  position: fixed;
  bottom: 0px;
  right: 90px;
  display: flex;
  justify-content: flex-end;
  z-index: 9999;
  pointer-events: none;
}
.bottom-right-decor img {
  width: 200px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: none;
  box-shadow: none;
  animation: decorGlow 8s ease-in-out infinite;
  overflow: visible;
}

.bottom-right-mirror {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 9999;
  pointer-events: none;
}
.bottom-right-mirror img {
  width: 250px;
  height: 150px;
  object-fit: cover;
  transform: scaleX(-1);
}

/* =============================================
   BACKGROUND & CLOCKS
   ============================================= */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("back.png") center/cover no-repeat;
  opacity: 0.15;
  z-index: -1;
}

.clock-wrapper {
  position: fixed;
  top: 10px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
  pointer-events: none;
  z-index: 2;
}
.clock { position: relative; transform-origin: top center; }
.clock-left  { animation: floatClockLeft  4s ease-in-out infinite alternate; }
.clock-right { animation: floatClockRight 4s ease-in-out infinite alternate; }
.clock img {
  width: 180px;
  opacity: 0.8;
  filter: drop-shadow(0 0 10px rgba(180,150,255,0.2));
}

@keyframes floatClockLeft  { 0% { transform: translateX(-25px); } 50% { transform: translateX(50px);  } 100% { transform: translateX(-25px); } }
@keyframes floatClockRight { 0% { transform: translateX(25px);  } 50% { transform: translateX(-50px); } 100% { transform: translateX(25px);  } }

/* =============================================
   CUSTOM CURSOR
   ============================================= */
.sparkle {
    position: fixed;
    width: 6px;
    height: 6px;
    background: #c2b6ff; /* Цвет искорок */
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    animation: sparkleFade 0.8s linear forwards;
}

@keyframes sparkleFade {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0) translateY(20px); opacity: 0; }
}   
/* Прячем стандартный курсор ВЕЗДЕ, даже на ссылках */
* {
    cursor: none !important;
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 35px;
    height: 35px;
    background: url('baba.png') no-repeat center/contain;
    pointer-events: none;
    z-index: 100000;
    /* Убираем все переходы (transitions), чтобы не было лагов */
    transition: none; 
    transform: translate(-50%, -50%);
    will-change: transform; /* Подсказка браузеру для плавности */
}

/* Эффект при наведении на кнопки */
.custom-cursor.active {
    transform: translate(-50%, -50%) scale(1.2); /* Увеличиваем, когда навели на ссылку */
    filter: drop-shadow(0 0 5px #c2b6ff);
}

/* =============================================
   DECORATIVE SIDE / CORNER IMAGES
   ============================================= */
.decor-img { position: fixed; pointer-events: none; z-index: 0; opacity: 0.35; }

.decor-left {
  top: 50px;
  left: 10px;
  animation: decorGlow 6s ease-in-out infinite;
  position: absolute;
}

.decor-right-banti {
  top: 50px;
  right: 10px;
  position: absolute;
  animation: decorGlow 6s ease-in-out infinite;
  transform: scaleX(-1);
}

.decor-bottom-left {
  position: fixed;
  bottom: 0;
  left: 0px;
  width: 250px;
}

.decor-bottom-right-mirror {
  position: fixed;
  bottom: 0;
  right: 0px;
  width: 250px;
  transform: scaleX(-1);
  pointer-events: none;
  opacity: 0.35;
  animation: decorGlow 8s ease-in-out infinite reverse;
}

.decor-bottom-right {
  bottom: 0px;
  width: 500px;
  right: 0px;
  opacity: 0.15;
  animation: decorGlow 8s ease-in-out infinite;
}

@keyframes decorGlow {
  0%   { filter: drop-shadow(0 0 4px rgba(194,182,255,0.2)); }
  50%  { filter: drop-shadow(0 0 12px rgba(194,182,255,0.6)); }
  100% { filter: drop-shadow(0 0 4px rgba(194,182,255,0.2)); }
}

/* =============================================
   MAIN CONTAINER
   ============================================= */
.container {
  width: 900px;
  max-width: 95%;
  margin: 80px auto;
  padding: 40px;
  border: 15px solid transparent;
  border-image: url("ramka.png") 30 stretch;
  position: relative;
  z-index: 1;
}

/* =============================================
   HEADER
   ============================================= */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #2c2c38;
  padding-bottom: 15px;
}
.header h1 { font-weight: 300; letter-spacing: 3px; }
.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.header nav { display: flex; gap: 20px; }
.header nav a { color: #c2b6ff; text-decoration: none; font-size: 14px; transition: 0.3s; }
.header nav a:hover,
.header nav a.active { color: #ffffff; text-shadow: 0 0 8px #c2b6ff; }

.header-symbols-box {
  padding: 5px 15px;
  border: 1px dashed #c2b6ff;
  border-radius: 6px;
  background-color: rgba(20,20,30,0.4);
  color: #c2b6ff;
  font-size: 14px;
  text-shadow: 0 0 8px rgba(194,182,255,0.8);
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 250px;
}

/* =============================================
   SCROLLING QUOTE BAR
   ============================================= */
.scrolling-quote-container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid #2c2c38;
  padding: 20px 0;
}

.scrolling-quote {
  display: flex; /* Legt Satz A und B nebeneinander */
  width: max-content;
  animation: scrollText 40s linear infinite; /* 40s für ruhiges Lesen */
}

.scrolling-quote span {
  display: inline-block;
  padding-right: 100px; /* Der Abstand zwischen den Sätzen */
  color: #bdbdd6;
  font-style: italic;
  font-size: 16px;
  white-space: nowrap;
}

@keyframes scrollText {
  0% {
    transform: translateX(0); /* Startet exakt bei Satz A */
  }
  100% {
    transform: translateX(-50%); /* Geht bis zur Hälfte (nach Satz B) */
  }
}

/* =============================================
   ABOUT / HOME SECTION
   ============================================= */
.about { display: flex; gap: 40px; margin-top: 20px; }
.about-left { display: flex; flex-direction: column; gap: 15px; width: 250px; }
.about-left img { width: 250px; border-radius: 6px; filter: grayscale(30%); }
.under-avatar-img {
  width: 200px;
  height: 165px;
  align-self: flex-end;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #2c2c38;
  background-color: rgba(20,20,30,0.4);
}
.about-right { flex: 1; }

.name-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 2px solid #c2b6ff;
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 10px;
  gap: 20px;
}
.name-welcome h2 { margin: 0; font-size: 20px; flex-shrink: 0; }
.name-welcome .welcome-msg {
  font-size: 16px;
  color: #bdbdd6;
  font-style: italic;
  position: relative;
  animation: welcomeGlow 3s ease-in-out infinite;
}
@keyframes welcomeGlow {
  0%   { opacity: 0.6; text-shadow: 0 0 2px rgba(194,182,255,0.2); }
  50%  { opacity: 1;   text-shadow: 0 0 8px rgba(194,182,255,0.6); }
  100% { opacity: 0.6; text-shadow: 0 0 2px rgba(194,182,255,0.2); }
}

.welcome-extra {
  border: 1px solid rgba(194,182,255,0.5);
  border-radius: 8px;
  padding: 10px 15px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #bdbdd6;
  box-shadow: 0 0 4px rgba(194,182,255,0.3);
}

.sub-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 10px 0 15px 10px;
}
.sub { font-size: 13px; color: #bdbdd6; margin: 0; }
.sub-decor-box {
  margin-left: 90px;
  padding: 2px 15px;
  border: 1px dashed #ffffff;
  border-radius: 6px;
  background-color: rgba(255,255,255,0.05);
  color: #bdbdd6;
  font-size: 12px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =============================================
   STATUS WRAPPERS
   ============================================= */
.top-status-wrapper { display: flex; gap: 20px; margin-bottom: 15px; }
.status-wrapper {
  border: 1px solid #2c2c38;
  border-radius: 8px;
  padding: 12px 15px;
  background-color: rgba(20,20,30,0.4);
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 200px;
  color: #bdbdd6;
  font-size: 14px;
  background-image: linear-gradient(rgba(15, 15, 22, 0.75), rgba(15, 15, 22, 0.75)), url('Fntr.jpg');
  background-size: cover;
  background-position: left center;
}
.status-list { list-style: none; padding: 0; margin: 0; }
.status-list li { margin-bottom: 4px; }

/* =============================================
   MOOD + MUSIC ROW
   ============================================= */
.bottom-wrapper {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  position: relative;
}

.personal-block.mood-status {
  padding: 12px 15px;
  border: 1px solid #2c2c38;
  border-radius: 8px;
  flex: 0 0 200px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  overflow: hidden;
}


.personal-block.mood-status h3 {
  color: #000000 !important;
  font-size: 14px;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.personal-block.mood-status ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.personal-block.mood-status li { margin-bottom: 6px; 
    color: #000000 !important;}
.personal-block.mood-status::after {
content: '';
position: absolute;
width: 280px;
height: 184px;
background-image: url('Tllnn.jpg');
background-size: cover;
background-position: center;
top: 0px;
right: 0px;
bottom: 0px;
border-radius: 6px;
z-index: 0;
pointer-events: none;
}

.music-block {
  flex: 1;
  border: 1px solid #2c2c38;
  border-radius: 8px;
  padding: 15px;
  background-color: rgba(20,20,30,0.4);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(rgba(15, 15, 22, 0.85), rgba(15, 15, 22, 0.85)), url('Fntr.jpg');
  background-size: cover;
  background-position: center;
}

.frame-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  padding: 10px;
}

/* =============================================
   MAIN GLOWING CELL
   ============================================= */
.large-glowing-cell {
  width: 100%;
  min-height: 500px;
  border: 2px solid #c2b6ff;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(194,182,255,0.6);
  background-color: rgba(20,20,30,0.5);
  margin: 40px 0;
  padding: 20px;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.photo-frame-outer img.frame-decor-outer {
  position: absolute;
  width: 60px;
  height: 60px;
  object-fit: cover;
  pointer-events: none;
  z-index: 5;
  opacity: 0.95;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.25));
}
.frame-decor-outer.tl { top: -20px;    left: -20px;  transform: rotate(-10deg); }
.frame-decor-outer.tr { top: -20px;    right: -20px; transform: rotate(10deg);  }
.frame-decor-outer.bl { bottom: -20px; left: -20px;  transform: rotate(6deg);   }
.frame-decor-outer.br { bottom: -20px; right: -20px; transform: rotate(-12deg); }

.photo-frame { position: relative; }
.inner-frame {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  pointer-events: none;
  z-index: 1;
}

.overlay-top-horizontal {
  width: 100%;
  min-height: 40px;
  border: 2px dashed #c2b6ff;
  border-radius: 8px;
  background: rgba(194,182,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bdbdd6;
  font-size: 12px;
  position: relative;
}

.layout-overlay {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 15px;
  width: 100%;
}

.overlay-main {
  height: 240px;
  border: 2px dashed #c2b6ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bdbdd6;
  font-size: 12px;
}

.overlay-side {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.overlay-box {
  height: 90px;
  width: 100%;
  border: 2px dashed #c2b6ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bdbdd6;
  font-size: 12px;
  position: relative;
}

.overlay-box-combined {
  flex-direction: column;
  gap: 5px;
  height: 200px;
  position: relative;
}
.inner-combined-block {
  flex: 1;
  border: 1px dashed #ffffff;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bdbdd6;
  font-size: 11px;
}

.overlay-bottom {
  height: 60px;
  width: 100%;
  border: 2px dashed #c2b6ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bdbdd6;
  font-size: 12px;
}
.horizontal { grid-column: 1 / -1; }

/* =============================================
   INNER STYLED BLOCKS
   ============================================= */
.inner-styled-block {
  background-color: rgba(15, 15, 22, 0.85);
  background-image: linear-gradient(rgba(15, 15, 22, 0.75), rgba(15, 15, 22, 0.75)), url('Fntr.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  color: #bdbdd6;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.fancy-header {
  font-family: 'Georgia', serif;
  font-size: 22px;
  color: #ffffff;
  text-shadow: 0 0 5px rgba(0,0,0,0.5);
  margin: 0 0 10px 0;
  text-align: center;
  font-style: italic;
}

.inner-outline-box {
  outline: 2px solid #c2b6ff;
  outline-offset: -10px;
  padding: 25px;
}

.lace-top-bottom {
  position: relative;
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}
.lace-top-bottom::before,
.lace-top-bottom::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 25px;
  background-image: url('Твоя_Рюша.png');
  background-repeat: repeat-x;
  background-size: contain;
  pointer-events: none;
}
.lace-top-bottom::before { top: 5px; }
.lace-top-bottom::after  { bottom: 5px; transform: scaleY(-1); }

.lace-4-sides {
  border: 25px solid transparent;
  border-image: url('Твоя_Рюша.png') 30 round;
  padding: 10px !important;
  background-clip: padding-box;
}

/* =============================================
   LIGHT IMAGE BOXES
   ============================================= */
.light-image-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}

.left-image-box {
  width: 95%;
  min-height: 310px;
  padding: 20px;
  background-image: url('Tllnn.jpg');
  background-color: #f0f0f5;
}

.right-image-box {
  width: 95%;
  min-height: 183px;
  padding: 15px;
  background-image: url('Ulun.jpg');
  background-color: #f0f0f5;
}

.dark-text { color: #111111 !important; }

h3.fancy-header.dark-text {
  color: #111111 !important;
  text-shadow: 0 0 6px rgba(255,255,255,0.9) !important;
  margin-bottom: 5px;
}

/* =============================================
   FLOATING PHOTOS
   ============================================= */
.floating-foto { z-index: 9998; overflow: hidden; }
.floating-foto img { max-width: 100%; max-height: 100%; width: auto; height: auto; }

.foto-top-right {
  position: absolute;
  top: 62px;
  right: 57%;
  width: 50px;
  height: 50px;
  pointer-events: none;
}
.foto-large-left { position: fixed; top: 75%; left: 3%; width: 170px; height: 170px; border-radius: 50%; }

/* =============================================
   WHITE / DASHED TEXT AREAS
   ============================================= */
.custom-text-area {
  background-color: rgba(255,255,255,0.05);
  border: 1px dashed #ffffff;
  border-radius: 8px;
  padding: 10px;
  color: #bdbdd6;
  font-size: 13px;
  text-align: center;
  box-shadow: 0 0 10px rgba(255,255,255,0.1);
}
.text-area-long       { width: 100%; margin-bottom: 20px; min-height: 40px; }
.text-area-small      { margin-top: 10px; width: 100%; min-height: 30px; }
.text-area-chinatsu   { flex: 1; max-width: 250px; min-height: 25px; }
.text-area-extra-cell { flex: 1; min-height: 100%; display: flex; align-items: center; justify-content: center; }

/* =============================================
   FAVORITE CHARACTER (SUNNA)
   ============================================= */
.fav-title { text-align: center; color: #c2b6ff; margin: 20px 0; }

.main-fav-block {
  display: flex;
  gap: 20px;
  border: 2px solid #c2b6ff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(194,182,255,0.6);
  background-color: rgba(20,20,30,0.5);
}
.main-fav-left { display: flex; flex-direction: column; align-items: center; }
.fav-photo-wrapper img {
  width: 180px;
  border: 2px solid #c2b6ff;
  border-radius: 6px;
  box-shadow: 0 0 15px rgba(194,182,255,0.4);
}
.char-name.highlighted { color: #ffffff; text-shadow: 0 0 10px #c2b6ff; margin-top: 6px; }
.char-info.highlighted-info {
  margin-top: 6px;
  padding: 6px 8px;
  border: 1px solid #c2b6ff;
  border-radius: 6px;
  background-color: rgba(20,20,30,0.4);
  text-align: center;
}
.main-fav-right { flex: 1; display: flex; flex-direction: column; gap: 10px; }

.sunna-stats-row { display: flex; gap: 15px; }
.sunna-stats-row .sunna-info { flex: 1; margin-bottom: 0; }

.sunna-info, .sunna-quote-block, .sunna-fact {
  padding: 10px;
  border: 1px solid #c2b6ff;
  border-radius: 8px;
  background-color: rgba(20,20,30,0.4);
}
.sunna-quote { font-style: italic; color: #bdbdd6; margin: 0; }
.from-game { text-align: right; font-size: 12px; color: #bdbdd6; }

/* =============================================
   DECORATIVE LINES
   ============================================= */
.byf-line-2, .full-width-line {
  width: 100%;
  max-width: 900px;
  display: block;
  margin: 20px auto;
  height: auto;
  object-fit: cover;
}

/* =============================================
   CATEGORY MENU & PHOTO BOXES
   ============================================= */
.category-menu-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.top-gallery-menu { display: flex; justify-content: center; gap: 15px; }
.cat-foto-box {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background-color: rgba(255,0,0,0.1);
  border: 2px dashed #ff4d4d;
  color: #ff4d4d;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: bold;
  overflow: hidden;
}
.cat-foto-box img { width: 100%; height: 100%; object-fit: cover; }

.mini-btn {
  padding: 8px 20px;
  border: 1px solid #c2b6ff;
  border-radius: 6px;
  background-color: rgba(20,20,30,0.4);
  color: #bdbdd6;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}
.mini-btn:hover {
  background-color: rgba(194,182,255,0.1);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(194,182,255,0.4);
}

/* =============================================
   CHARACTER GALLERY
   ============================================= */
.favs { margin-top: 60px; border-top: 1px solid #2c2c38; padding-top: 40px; }
.favs-text h2 { color: #c2b6ff; margin-bottom: 15px; }
.favs-images {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}
.character { text-align: center; display: flex; flex-direction: column; align-items: center; }
.character img { width: 120px; border-radius: 4px; }
.char-name { display: block; margin-top: 4px; font-size: 13px; color: #bdbdd6; }

/* =============================================
   SIDE SQUARE BOX
   ============================================= */
.side-square-box {
  float: right;
  width: 80px;
  height: 80px;
  border: 1px solid #c2b6ff;
  border-radius: 8px;
  background-color: rgba(20,20,30,0.4);
  margin-left: 20px;
  margin-bottom: 20px;
}

/* =============================================
   MINI FAVORITES & CHINATSU SECTION
   ============================================= */
.extra-section { margin-top: 60px; text-align: center; }
.chinatsu-header-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}
.chinatsu-header-wrapper .extra-title { margin-bottom: 0; white-space: nowrap; color: #c2b6ff; }

.mini-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
  justify-items: center;
}
.mini-card img {
  width: 95px;
  border-radius: 6px;
  border: 1px solid #c2b6ff;
  transition: 0.3s;
}
.mini-card img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(194,182,255,0.5);
}

/* =============================================
   BANNERS & PAGE VISIBILITY
   ============================================= */
.long-bottom-banner {
  width: 100%;
  margin: 40px auto 0 auto;
  padding: 15px 20px;
  border: 1px solid #c2b6ff;
  border-radius: 8px;
  background-color: rgba(20,20,30,0.4);
  text-align: center;
  color: #bdbdd6;
  font-size: 14px;
}
.page        { display: none; }
.page.active { display: block; }

/* =============================================
   GALLERY CANVAS
   ============================================= */
#gallery .gallery-top-frame {
  width: 100%;
  text-align: center;
  margin-bottom: 15px;
}
#gallery .gallery-top-frame img {
  width: 90%;
  max-width: 600px;
  display: inline-block;
}

#gallery .gallery-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 21;
  margin: 20px auto;
  background-color: #14141e;
  background-image: url('Fon.jpg');
  background-size: cover;
  background-position: center top;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #2c2c38;
}
#gallery .gallery-canvas img { position: absolute; display: block; }

#gallery .item-dopp-ram      { top: 5%;  left: 50%; transform: translateX(-50%); width: 74%; z-index: 5;  opacity: 0.85; }
#gallery .item-obsession     { top: 2%;  left: 50%; transform: translateX(-50%); width: 45%; z-index: 10; opacity: 0.50; }
#gallery .item-photo-mid-left  { top: 26%; left: 0%;  width: 22%; z-index: 12; min-height: 50px; }
#gallery .item-photo-top-right { top: 4%;  right: 4%; width: 25%; z-index: 12; min-height: 50px; }
#gallery .item-photo-mid-right { top: 68%; right: 5%; width: 35%; z-index: 12; min-height: 80px; }
#gallery .item-lace          { top: 36%; left: 0; width: 100%; z-index: 15; opacity: 0.20; object-fit: cover; }
#gallery .item-hanging-group { top: 36%; left: 50%; transform: translateX(-50%); width: 84%; z-index: 5;  opacity: 0.85; }
#gallery .item-cards         { top: 65%; left: 5%; width: 30%; z-index: 12; }
#gallery .item-bot-1         { top: 85%; left: 10%; width: 20%; }
#gallery .item-bottom-group  { bottom: 0%; right: 7%; left: auto; transform: none; width: 55%; z-index: 20; }

/* =============================================
   FOOTER
   ============================================= */
.social {
  margin-top: 80px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 1px solid #2c2c38;
  padding: 30px 0;
}
.footer-center { display: flex; align-items: center; gap: 30px; z-index: 2; }

.contact-box {
  padding: 10px 20px;
  border: 1px solid #c2b6ff;
  border-radius: 8px;
  color: #c2b6ff;
  font-size: 14px;
  transition: 0.3s;
  cursor: pointer;
}
.contact-box:hover {
  background-color: rgba(194,182,255,0.1);
  box-shadow: 0 0 15px rgba(194,182,255,0.2);
}

.social-icon .icon-box {
  border: 1px solid #c2b6ff;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.social-icon .icon-box img { width: 25px; height: 25px; }
.social-icon .icon-box:hover {
  background-color: rgba(194,182,255,0.1);
  box-shadow: 0 0 10px rgba(194,182,255,0.3);
}

.footer-foto-btn {
  display: inline-block;
  width: 45px;
  height: 45px;
  border: 1px dashed #c2b6ff;
  border-radius: 6px;
  overflow: hidden;
  transition: 0.3s;
}
.footer-foto-btn img { width: 100%; height: 100%; object-fit: cover; }
.footer-foto-btn:hover {
  box-shadow: 0 0 10px rgba(194,182,255,0.5);
  transform: scale(1.05);
}

.footer-side-btn {
  color: #c2b6ff;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}
.footer-side-btn:hover { color: #ffffff; text-shadow: 0 0 8px #c2b6ff; }

.footer-decor.left,
.footer-decor.right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0.25;
}
.footer-decor.left  { left: 20px; }
.footer-decor.right { right: 20px; }
.footer-decor img   { width: 50px; }

/* =============================================
   GLOWING CELL — INNER GRID
   ============================================= */
.cell-inner-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
  width: 100%;
}

.cell-left-col { display: flex; flex-direction: column; gap: 10px; }

.cell-left-main {
  display: flex;
  gap: 10px;
  height: 370px;
  border: 1px solid #c2b6ff;
  border-radius: 8px;
  background-color: rgba(20,20,30,0.6);
  padding: 10px;
}

.cell-vertical-bar {
  width: 60px;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #c2b6ff;
  flex-shrink: 0;
}
.cell-vertical-bar img { width: 100%; height: 100%; object-fit: cover; }

.cell-main-content { flex: 1; display: flex; align-items: flex-start; }

.cell-chess-row { display: flex; gap: 10px; height: 90px; }

.cell-chess-small {
  width: 75px;
  border: 1px solid #c2b6ff;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(20,20,30,0.6);
}
.cell-chess-wide {
  flex: 1;
  border: 1px solid #c2b6ff;
  border-radius: 8px;
  background-color: rgba(20,20,30,0.6);
  padding: 10px;
}

.cell-right-col { display: flex; flex-direction: column; gap: 10px; }

.cell-logo-block {
  border: 1px solid #c2b6ff;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(20,20,30,0.6);
}
.cell-logo-top {
  height: 120px;
  border-bottom: 1px solid #c2b6ff;
  overflow: hidden;
}
.cell-logo-top img { width: 100%; height: 100%; object-fit: cover; }
.cell-logo-bottom { padding: 10px; }

.cell-right-mid-row { display: flex; gap: 10px; height: 80px; }

.cell-right-square {
  width: 80px;
  border: 1px solid #c2b6ff;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(20,20,30,0.6);
}
.cell-right-small {
  flex: 1;
  border: 1px solid #c2b6ff;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(20,20,30,0.6);
}
.cell-right-text {
  flex: 1;
  border: 1px solid #c2b6ff;
  border-radius: 8px;
  background-color: rgba(20,20,30,0.6);
  padding: 10px;
}

.cell-status-block {
  flex: 1;
  min-height: 180px;
  border: 1px solid #c2b6ff;
  border-radius: 8px;
  background-color: rgba(20,20,30,0.6);
  padding: 12px;
}

.cell-photo-fill { width: 100%; height: 100%; object-fit: cover; }
.cell-text { color: #bdbdd6; font-size: 13px; line-height: 1.6; margin: 0; }

/* =============================================
   POLAROID DECORATIONS
   ============================================= */
.polaroid-decor { position: absolute; z-index: 10; pointer-events: none; }
.polaroid-tr { top: -30px; right: -35px; width: 100px; transform: rotate(12deg); }
.polaroid-bl { bottom: -30px; left: -35px; width: 90px; transform: rotate(-10deg); }
.polaroid-decor img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6));
}

/* =============================================
   DRAW PAGE (GRIMOIRE)
   ============================================= */
.stub-wrap {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 36px;
  padding: 50px 20px;
  position: relative;
  overflow: hidden;
}
.stub-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse at 25% 60%, rgba(83,74,183,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 25%, rgba(194,182,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.g-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: floatTitle 6s ease-in-out infinite;
  line-height: 1;
}
.g-line1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: -4px;
  position: relative;
  min-width: 300px;
}
.g-letter {
  font-family: 'Grenze Gotisch', serif;
  font-weight: 700;
  color: #c2b6ff;
  text-shadow: 0 0 18px rgba(194,182,255,0.45), 0 0 40px rgba(194,182,255,0.15);
  display: inline-block;
  transition: transform 0.6s cubic-bezier(0.34,1.2,0.64,1), opacity 0.5s ease;
  position: relative;
  line-height: 1;
  flex-shrink: 0;
}

.g-line2-wrap { position: relative; display: inline-block; }
.g-line2 {
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: clamp(44px, 7.5vw, 86px);
  color: #e8e0ff;
  letter-spacing: 3px;
  text-shadow: 0 0 20px rgba(232,224,255,0.35), 0 0 50px rgba(232,224,255,0.15);
  line-height: 1; position: relative; z-index: 1; display: block;
}
.g-line2-shadow {
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: clamp(44px, 7.5vw, 86px);
  color: #e8e0ff;
  letter-spacing: 3px;
  line-height: 1;
  position: absolute;
  top: calc(100% + 3px);
  left: 0; right: 0;
  text-align: center;
  transform: scaleY(-1);
  mask-image: linear-gradient(to bottom, rgba(255,255,255,0.6) 0%, transparent 55%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(255,255,255,0.6) 0%, transparent 55%);
  pointer-events: none;
  animation: reflGlow 4s ease-in-out infinite;
}
@keyframes reflGlow { 0%,100%{opacity:0.55;} 50%{opacity:0.8;} }

.portal-row { display: flex; align-items: center; gap: 28px; }
.arrow-group { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.arrow-mirror { opacity: 0.3; transform: scaleY(-1); filter: blur(0.5px); }
.portal-arrow { opacity: 0.6; user-select: none; flex-shrink: 0; }
.portal-arrow.left  { animation: arrowLeft  2.4s ease-in-out infinite; }
.portal-arrow.right { animation: arrowRight 2.4s ease-in-out infinite; animation-delay: 0.4s; }
@keyframes arrowLeft  { 0%,100%{opacity:0.3;transform:translateX(0);} 50%{opacity:0.75;transform:translateX(7px);} }
@keyframes arrowRight { 0%,100%{opacity:0.3;transform:translateX(0);} 50%{opacity:0.75;transform:translateX(-7px);} }
@keyframes arrowLeftM  { 0%,100%{opacity:0.12;transform:scaleY(-1) translateX(0);} 50%{opacity:0.28;transform:scaleY(-1) translateX(7px);} }
@keyframes arrowRightM { 0%,100%{opacity:0.12;transform:scaleY(-1) translateX(0);} 50%{opacity:0.28;transform:scaleY(-1) translateX(-7px);} }
.arrow-mirror.left  { animation: arrowLeftM  2.4s ease-in-out infinite !important; transform: scaleY(-1); }
.arrow-mirror.right { animation: arrowRightM 2.4s ease-in-out infinite !important; animation-delay: 0.4s !important; transform: scaleY(-1); }

.clock-portal { position: relative; width: 150px; height: 150px; cursor: pointer; flex-shrink: 0; }
.clock-outer-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #c2b6ff;
  box-shadow: 0 0 18px rgba(194,182,255,0.7), 0 0 40px rgba(194,182,255,0.35), inset 0 0 18px rgba(194,182,255,0.12);
  transition: box-shadow 0.3s, border-color 0.3s;
  animation: grimRingPulse 3s ease-in-out infinite;
}
@keyframes grimRingPulse {
  0%,100% { box-shadow: 0 0 18px rgba(194,182,255,0.7), 0 0 40px rgba(194,182,255,0.35), inset 0 0 18px rgba(194,182,255,0.12); }
  50%     { box-shadow: 0 0 30px rgba(194,182,255,0.95), 0 0 65px rgba(194,182,255,0.5), inset 0 0 28px rgba(194,182,255,0.2); }
}
.clock-portal:hover .clock-outer-ring {
  box-shadow: 0 0 48px rgba(194,182,255,1), 0 0 90px rgba(194,182,255,0.65), inset 0 0 32px rgba(194,182,255,0.25);
  border-color: #e8d5ff; animation: none;
}
.clock-face-wrap {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  animation: grimClockSpin 12s linear infinite;
}
.clock-face-wrap.fast { animation-duration: 0.35s; }
@keyframes grimClockSpin { from{transform:rotate(0deg);} to{transform:rotate(360deg);} }
.clock-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.clock-portal.grow { animation: grimClockGrow 0.75s ease-in forwards; }
@keyframes grimClockGrow { 0%{transform:scale(1);} 40%{transform:scale(1.12);} 100%{transform:scale(3.8);} }

.hint-wrap { position: relative; display: inline-block; }
.portal-hint {
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: 18px; color: #e8e0ff; letter-spacing: 2px;
  opacity: 0.85; text-shadow: 0 0 12px rgba(232,224,255,0.35);
  animation: floatTitle 6s ease-in-out infinite; animation-delay: 2s;
  display: block; position: relative; z-index: 1;
}
.portal-hint-shadow {
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: 18px; color: #e8e0ff; letter-spacing: 2px;
  line-height: 1;
  position: absolute; top: calc(100% + 2px); left: 0; right: 0; text-align: center;
  transform: scaleY(-1);
  mask-image: linear-gradient(to bottom, rgba(255,255,255,0.5) 0%, transparent 60%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(255,255,255,0.5) 0%, transparent 60%);
  pointer-events: none;
  animation: reflGlow 4s ease-in-out infinite; animation-delay: 0.5s;
}

.grimoire-fade {
  position: fixed; inset: 0; background: #0b0b0f;
  opacity: 0; pointer-events: none; z-index: 9999; transition: opacity 0.9s ease;
}
.grimoire-fade.active { opacity: 1; pointer-events: all; }

/* =============================================
   SIDE INFO WRAPPER
   ============================================= */

.side-info-wrapper {
  position: relative;
  z-index: 1;
  flex: 1;
  display: block;
  height: 100px;
  overflow-y: auto; 
  overflow-x: hidden; 

  border: 1px solid #2c2c38;
  border-radius: 8px;
  padding: 12px 15px;
  background-color: rgba(20,20,30,0.4);
  font-size: 14px;
  color: #000000 !important;

  /* --- МАГИЯ МНОЖЕСТВЕННОГО ФОНА --- */
  background-image: 
    url('Tllnn.jpg'),                                               
    url('Fntr.jpg');                        

  background-position: center, right bottom, center;
  background-repeat: no-repeat;
 
  background-size: cover, 300px auto, cover; 
 
  background-attachment: local, scroll, local;
}



/* =============================================
   PORTFOLIO CATEGORY CARDS
   ============================================= */
.portfolio-cats {
    display: flex;
    gap: 15px;
    margin: 25px 0 10px;
    flex-wrap: wrap;
}

.pcat-card {
    flex: 1;
    min-width: 130px;
    border: 1px solid #2c2c38;
    border-radius: 8px;
    padding: 14px 12px;
    background: linear-gradient(rgba(15,15,22,0.85), rgba(15,15,22,0.85)), url('Fntr.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.pcat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: border-color 0.4s, box-shadow 0.4s;
}

.pcat-card:hover::before {
    border-color: #c2b6ff;
    box-shadow: inset 0 0 15px rgba(194,182,255,0.08);
}

.pcat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 18px rgba(194,182,255,0.25);
}

.pcat-icon {
    font-size: 18px;
    color: #c2b6ff;
    text-shadow: 0 0 8px rgba(194,182,255,0.6);
    animation: decorGlow 4s ease-in-out infinite;
}

.pcat-label {
    font-size: 14px;
    color: #e6e6f0;
    letter-spacing: 1px;
}

.pcat-sub {
    font-size: 11px;
    color: #bdbdd6;
    font-style: italic;
    opacity: 0.8;
}
/* =============================================
   DRAW TOAST
   ============================================= */
.draw-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20,20,30,0.9);
  border: 1px solid #c2b6ff;
  border-radius: 8px;
  padding: 10px 20px;
  color: #c2b6ff;
  font-size: 14px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
}
