@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

@font-face {
  src: url(/fonts/MonsterFriendFore.otf);
  font-family: 'monster';
  font-display: block;
}

@font-face {
  src: url(/fonts/Nintendo-DS-BIOS.ttf);
  font-family: 'Nintendo-DS-BIOS';
  font-display: block;
}

@font-face {
  src: url(/fonts/Spirit.woff2);
  font-family: 'spirits';
  font-display: block;
}

@font-face {
  src: url(/fonts/angel.woff2);
  font-family: 'angel';
  font-display: block;
}

::selection {
  background-color: #fef4fa;
  color: #8d7c76;
}

::-moz-selection {
  background-color: #fef4fa;
  color: #8d7c76;
}

body {
  background-image: url(/media/backgrounds/pinkcheck.png) !important;
  background-size: 40px;
  cursor: url(/media/cursor/cursorhover.png), progress !important;
  overflow: hidden !important;
  position: fixed;
  width: 100%;
  height: 100%;
  margin: 0;
  display: grid;
  place-items: center;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s;
}

.main-wrapper {
  transform: scale(1.2);
  transform-origin: center center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100vw;
  max-height: 100vh;
}

body.fade-in-ready {
  opacity: 1 !important;
  visibility: visible !important;
}

a, p, span {
  font-display: swap;
}

a {
  text-decoration: none;
  color: #757575;
  transition: .1s;
  cursor: url(/media/cursor/cursorhover.png), progress;
}

a:link {
  color: #757575;
  background-color: transparent;
  text-decoration: none;
}

a:visited {
  color: #757575;
  background-color: transparent;
  text-decoration: none;
}

a:hover {
  color: #edaecb;
  background-color: transparent;
  text-decoration: none ! important;
  font-style: italic;
  cursor: url(/media/cursor/cursorhover.png), progress;
}

a:active {
  color: #545454;
  background-color: transparent;
  text-decoration: underline;
}

/* WRAPPER */

.console-wrap {
  display: flex;
  align-items: stretch;
  position: relative;
  justify-content: center;
}

.console-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  width: 95%;
  height: 22px;
  background: radial-gradient(ellipse at center,
      rgba(0, 0, 0, 0.25) 0%,
      rgba(0, 0, 0, 0.15) 30%,
      rgba(0, 0, 0, 0.07) 50%,
      rgba(0, 0, 0, 0.03) 65%,
      transparent 75%);
  filter: blur(8px);
  z-index: -1;
}

/* MAIN CONSOLE */

.console::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.console {
  height: 308px;
  padding: 14px;
  background:
    linear-gradient(180deg,
      #ffe6f1 0%,
      #fddae8 40%,
      #f6c7dc 100%),
    repeating-linear-gradient(45deg,
      rgba(255, 255, 255, 0.06) 0,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px,
      transparent 3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 4px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px #e8b0c7;
}

/* SCREEN */

.screen {
  background: #ffe9f2;
  width: 420px;
  height: 90%;
  padding: 16px;
}

.screen-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: block; 
  text-align: center;
  background:
    linear-gradient(180deg,
      #fff2f7 0%,
      #ffe3ee 100%);
  box-shadow:
    inset 0 0 0 2px #e8b0c7,
    inset 0 6px 8px rgba(0, 0, 0, 0.12),
    inset 0 -3px 6px rgba(255, 255, 255, 0.4);
  overflow: hidden;
}

.screen-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/media/backgrounds/bakery.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.screen-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 253, 254, 0.6),
      rgba(255, 253, 254, 0.6)),
    url("/media/backgrounds/roses.jpg");
  background-size: cover;
  background-position: center;
  opacity: 1;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.screen-inner .screen-shadow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 10;
  box-shadow:
    inset 0 0 0 2px #e8b0c7,
    inset 0 2px 4px rgba(0, 0, 0, 0.08),
    inset 0 -2px 4px rgba(255, 255, 255, 0.4);
}

.screen-inner > * {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.screen-inner h1 {
  font-family: 'monster';
  font-size: 40px;
  color: #ffffff;
  text-shadow:
    2px 2px 0 #e8b0c7,
    -2px -2px 0 #e8b0c7;
  margin: 0;
  line-height: 1.2;
  animation: blink 1.2s infinite;
}

.screen-inner p {
  font-family: monospace;
  font-size: 12px;
  color: #e8b0c7;
  margin-top: 12px;
}

/* JOYCONS */

.joycon {
  width: 104px;
  height: 300px;
  background:
    linear-gradient(180deg,
      #fff0f6 0%,
      #ffe1ec 50%,
      #f7c6db 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 4px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.joycon.left {
  border-radius: 32px 0 0 32px;
}

.joycon.right {
  border-radius: 0 32px 32px 0;
}

/* ANALOG STICKS */

.stick {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background:
    radial-gradient(circle at top, #fff7fa 0%, #f3aeca 75%),
    repeating-radial-gradient(circle at center,
      rgba(255, 255, 255, 0.06) 0,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 2px);
  box-shadow:
    inset 0 -4px 0 #e8b0c7,
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    0 2px 0 rgba(0, 0, 0, 0.15);
  cursor: url(/media/cursor/cursorhover.png), progress;
}

.stick:active {
  transform: translateY(2px) scale(0.97);
  box-shadow:
    inset 0 2px 0 #e8b0c7,
    inset 0 -1px 0 #ffffff;
}

/* BUTTON BASE */

button {
  appearance: none;
  border: none;
  background:
    radial-gradient(circle at top, #fff7fa 0%, #f8bcd4 70%),
    repeating-linear-gradient(45deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 3px);
  box-shadow:
    inset 0 -3px 0 #e8b0c7,
    inset 0 2px 0 rgba(255, 255, 255, 0.6),
    0 2px 0 rgba(0, 0, 0, 0.15);
  padding: 0;
  cursor: url(/media/cursor/cursorhover.png), progress;
}

button:active {
  transform: translateY(1.5px);
  box-shadow:
    inset 0 1px 0 rgba(0, 0, 0, 0.15),
    inset 0 -1px 0 rgba(255, 255, 255, 0.6);
}

/* PLUS / MINUS */

.plus,
.minus {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
  color: #e8b0c7;
  background: none;
  box-shadow: none;
}

.joycon.left .minus {
  align-self: flex-end;
  margin: 12px 14px 8px 0;
}

.joycon.right .plus {
  align-self: flex-start;
  margin: 12px 0 8px 14px;
}

/* DPAD */

.dpad {
  position: relative;
  width: 78px;
  height: 78px;
}

.dpad button {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: #e8b0c7;
}

.dpad .up {
  top: 0;
  left: 27px;
}

.dpad .down {
  bottom: 0;
  left: 27px;
}

.dpad .left {
  left: 0;
  top: 27px;
}

.dpad .right {
  right: 0;
  top: 27px;
}

/* ABXY */

.abxy {
  position: relative;
  width: 78px;
  height: 78px;
}

.abxy button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: #e0a5bd;
  position: absolute;
}

.abxy .x {
  top: 0;
  left: 27px;
}

.abxy .y {
  left: 0;
  top: 27px;
}

.abxy .a {
  right: 0;
  top: 27px;
}

.abxy .b {
  bottom: 0;
  left: 27px;
}

/* HOME BUTTONS */

.home {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.square-home {
  width: 22px;
  height: 22px;
  box-shadow: inset 0 0 0 2px #e8b0c7;
  align-self: flex-end;
  margin: 0 14px 12px 0;
}

.circle-home {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #e8b0c7;
  align-self: flex-start;
  margin: 0 0 12px 14px;
}

/* ICON */

.home-icon {
  width: 14px;
  height: 14px;
  display: block;
  filter: brightness(0) saturate(100%) invert(66%) sepia(14%) saturate(843%) hue-rotate(295deg);
}

.dpad button img {
  width: 12px;
  height: 12px;
  pointer-events: none;
  filter: brightness(0) saturate(100%) invert(66%) sepia(14%) saturate(843%) hue-rotate(295deg);
}

/* INTERNAL VIEWS */

.view {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  text-align: center;
  box-sizing: border-box;
  padding: 24px;
  opacity: 0;
  transform: translateX(12px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
  pointer-events: none;
}

.view.active {
  display: flex;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.view > * {
  opacity: 1;
  transition: opacity 0.35s ease;
}

.view.fading-in > * {
  opacity: 0;
}

/* MENU */

.menu {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.menu li {
  margin: 6px 0;
}

.menu button,
.back {
  background: none;
  box-shadow: none;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: #e8b0c7;
}

#menu.view {
  background: #fff !important; 
  box-shadow: 
    inset 0 0 0 2px #bcbcbc,
    inset 0 4px 6px rgba(0, 0, 0, 0.05) !important;
}

#menu.view::before {
  display: none !important;
}

.system-info {
  background: #ffffff;
  position: absolute;
  top: 15px;
  left: 20px; 
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between; 
  gap: 8px; 
  z-index: 20;
  font-family: 'Nunito', sans-serif;
  color: #606060;
}

.profile-icon {
  width: 22px; 
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.status-right-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

#digital-clock {
  font-size: 14px;
  font-weight: 600;
  color: #606060;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 8px; 
}

.wifi-icon {
  width: 16px;
  height: 16px;
  filter: brightness(0) saturate(100%) invert(38%) sepia(0%) saturate(0%) hue-rotate(137deg) brightness(96%) contrast(89%);
}

.battery-shell {
  width: 20px; 
  height: 10.5px;  
  border: 1px solid #606060; 
  border-radius: 1.5px; 
  position: relative; 
  display: flex;
  align-items: center;
  padding: 1px;
  box-sizing: border-box; 
}

.battery-level {
  width: 100%; 
  height: 100%; 
  background: #606060;
  border-radius: 0.5px;
}

.battery-tip {
  position: absolute;
  right: -2.5px; 
  top: 2px;      
  width: 1.5px;
  height: 3px;
  background: #606060;
  border-radius: 0 1px 1px 0;
}

/* SUBHEADINGS */

.view h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: #e8b0c7;
  margin: 0;
}

.view p {
  font-family: monospace;
  font-size: 11px;
  color: #e8b0c7;
  text-align: center;
  max-width: 220px;
}

.start-menu {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: #e8b0c7;
  text-align: left;
  line-height: 2.2;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e8b0c7;
  text-decoration: none;
}

.items {
  color: #edaecb;
  text-shadow:
    1px 0 0 #fff,
    -1px 0 0 #fff,
    0 1px 0 #fff,
    0 -1px 0 #fff,
    2px 0 0 #fff,
    -2px 0 0 #fff,
    0 2px 0 #fff,
    0 -2px 0 #fff,
    3px 3px 3px rgba(0, 0, 0, 0.35);
}

.cursor {
  color: #edaecb;
  width: 16px;
  display: inline-block;
  text-shadow:
    1px 0 0 #fff,
    -1px 0 0 #fff,
    0 1px 0 #fff,
    0 -1px 0 #fff,
    2px 0 0 #fff,
    -2px 0 0 #fff,
    0 2px 0 #fff,
    0 -2px 0 #fff,
    3px 3px 3px rgba(0, 0, 0, 0.35);
}

@keyframes blink {
  0% {
    opacity: 1;
  }

  49% {
    opacity: 1;
  }

  60% {
    opacity: 0;
  }

  99% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.view>* {
  max-width: 100%;
}

.ng-wrapper {
  width: 100%;
  height: 100%;
  padding: 18px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* divisor */

.ng-divider {
  border: none;
  height: 1px;
  background: #c9c9c9;
  opacity: 0.6;
}

/* imagem */

.ng-image {
  width: 100%;
  display: flex;
  justify-content: center;
}

.ng-image img {
  max-width: 120px;
  image-rendering: pixelated;
}

/* texto principal */

.ng-text {
  text-align: left;
  color: #696969;
  font-family: Nintendo-DS-BIOS, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.75em;
  line-height: 1.1;
}

.ng-text strong {
  color: #9F79B3;
}

/* escolhas */

.ng-choices {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ng-choices a {
  font-family: Nintendo-DS-BIOS;
  font-size: 0.8em;
  text-decoration: none;
}

.media-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
}

.media-row img {
  width: 100px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.media-text {
  text-align: left;
}

.media-text p {
  margin: 0;
  font-family: Nintendo-DS-BIOS;
  font-size: 25px;
  line-height: 1.1;
  color: #696969;
}

.media-text strong {
  color: #9f79b3;
}

/* =========================
           NEW GAME
   ========================= */

#newgame {
  justify-content: center;
}

/* TOP ROW (image left, options right) */

.ng-top {
  width: calc(100% - 36px);
  display: flex;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  box-sizing: border-box;
  z-index: 2;
}

/* IMAGE */

.ng-avatar {
  width: 130px;
  image-rendering: pixelated;
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
  filter: drop-shadow(0px 0px 1px white) drop-shadow(0px 0px 1px white) drop-shadow(0px 0px 1px white) drop-shadow(0px 0px 0.5px white) drop-shadow(0px 0px 1px white) drop-shadow(0px 0px 1px white) drop-shadow(0px 0px 1px white) drop-shadow(1px 1px 0px #0000002d);
  animation: idleFloat 3s ease-in-out infinite;
}

@keyframes idleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}


/* YES / NO */

.ng-options {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: fit-content;
  margin: 0 auto;
}

.ng-options a {
  font-family: Nintendo-DS-BIOS;
  font-weight: bold;
  font-size: 25px;
  text-decoration: none;
  margin: 3px;
  text-shadow:
    1px 0 0 #fff,
    -1px 0 0 #fff,
    0 1px 0 #fff,
    0 -1px 0 #fff,
    2px 0 0 #fff,
    -2px 0 0 #fff,
    0 2px 0 #fff,
    0 -2px 0 #fff,
    3px 3px 3px rgba(0, 0, 0, 0.35);
}

.gaming {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: fit-content;
  margin: 0 auto;
}

.gaming a {
  font-family: Nintendo-DS-BIOS;
  font-weight: bold;
  font-size: 21px;
  text-decoration: none;
  margin: 5px;
  margin-left: 15px;
  text-shadow:
    1px 0 0 #fff,
    -1px 0 0 #fff,
    0 1px 0 #fff,
    0 -1px 0 #fff,
    2px 0 0 #fff,
    -2px 0 0 #fff,
    0 2px 0 #fff,
    0 -2px 0 #fff,
    3px 3px 3px rgba(0, 0, 0, 0.35);
}

/* TEXT BUBBLE */

.ng-bubble {
  width: calc(100% - 20px);
  margin: -28px auto 0;
  position: relative;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.7) 0%,
      rgba(255, 255, 255, 0.7) 70%,
      rgba(255, 224, 236, 0.7) 100%);
  border-radius: 5px;
  padding: 12px 13px;
  box-sizing: border-box;
  z-index: 3;
  box-shadow:
    0 0 0 1px #e8b0c7,
    inset 0 0 0 3px #ffffff,
    inset 0 0 0 4px #e8b0c7;
  min-height: 80px; 
  display: block;
}

/* BUBBLE TEXT */

.ng-bubble p {
  margin: 0;
  display: block;
  width: 100%;
  max-width: none;
  text-align: left;
  font-family: Nintendo-DS-BIOS;
  font-size: 15px;
  line-height: 1.1;
  color: #696969;
}

.view.blank {
  background: #fffdfe;
}

.ids {
  height: 75px;
  width: 170px;
  margin: 15px;
  position: relative;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.7) 0%,
      rgba(255, 255, 255, 0.7) 70%,
      rgba(255, 224, 236, 0.7) 100%);
  border-radius: 5px;
  padding: 12px 13px;
  box-sizing: border-box;
  z-index: 3;
  box-shadow:
    0 0 0 1px #e8b0c7,
    inset 0 0 0 3px #ffffff,
    inset 0 0 0 4px #e8b0c7;
  display: flex;
  flex-direction: column;   
  justify-content: center;  
  align-items: center;      
}

.ids p {
  margin: 2px 0;
  width: 100%;            
  text-align: left;        
  display: flex;           
  align-items: center;
}

/* BUBBLE TEXT */

.ids p {
  margin: 0;
  display: block;
  width: 100%;
  max-width: none;
  text-align: left;
  font-family: Nintendo-DS-BIOS;
  font-size: 15px;
  line-height: 1.1;
  color: #666666;
}

.id-title {
  margin: 0;
  display: block;
  width: 100%;
  max-width: none;
  text-align: center;
  font-family: 'spirits';
  font-size: 15px;
  line-height: 1.1;
  color: #696969;
}

.id-title2 {
  margin: 0;
  display: block;
  width: 100%;
  max-width: none;
  text-align: center;
  font-family: 'spirits';
  font-size: 15px;
  line-height: 1.1;
  color: #696969;
  margin-bottom: 3px;
}

.ids-spacer {
  height: 6px;
  width: 1px;
}

.id-label {
  background: #f7d7e4;
  color: #696969;
  padding: 2px 4px;
  border-radius: 6px;
  font-family: Nintendo-DS-BIOS;
  font-size: 0.9em;
  margin-right: 3px;
}

.doily-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background-image: url("/media/graphics/doily.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: -2; 
  pointer-events: none;
  animation: spin-doily 20s linear infinite;
  filter: drop-shadow(0 0 8px rgba(232, 176, 199, 0.4));
}

@keyframes spin-doily {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.games-strip {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 20px;
  overflow-x: hidden;
  height: 100%;
}

.games-strip .game-option {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border: 4px solid transparent; 
  border-radius: 4px;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.games-strip .game-option img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.games-strip .game-option.active {
  transform: scale(1.1);
  border-color: #ffffff; 
  outline: 2px solid #ffd8e9;
  z-index: 2;
}

.view[id$="-sub"], 
.view[id$="-id"] {
  background: #ffffff;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  position: absolute;
  inset: 0;
}

.view[id$="-sub"].active,
.view[id$="-id"].active {
  display: flex;
}

#cookie-id, #genshin-id, #honkai-id, 
#genshin-mods, #genshin-favs, #honkai-favs, #cookie-favs {
  background: none; 
  overflow: hidden;
  position: absolute; 
  inset: 0;
}

#cookie-id::before, #genshin-id::before, #honkai-id::before, 
#genshin-mods::before, #genshin-favs::before, #honkai-favs::before, #cookie-favs::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1; 
  background-image: url('/media/backgrounds/IMG_5673.jpeg');
  background-size: cover;
  background-position: center;
  filter: blur(2px); 
  transform: scale(1.1); 
}

.sub-info {
  font-family: 'Nunito', sans-serif;
  font-weight: 600; 
  font-size: 11px; 
  color: #606060;
  text-transform: uppercase; 
  padding: 8px 12px; 
  width: 100%;
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid #e1e1e1; 
  display: flex;
  align-items: center;
  justify-content: flex-start; 
  gap: 8px; 
  box-sizing: border-box;
  text-align: left; 
}

.sub-info:before {
  content: "";
  width: 18px;
  height: 18px;
  background-image: url(/media/graphics/heart.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  display: inline-block;
  margin-bottom: 2px;
}

.sub-selection-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px; 
}

.sub-game-art img {
  width: 115px; 
  height: 115px; 
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  flex-shrink: 0; 
}

.character-mask-wrapper {
  filter: 
    drop-shadow(0px 0px 1px white) 
    drop-shadow(0px 0px 1px white) 
    drop-shadow(0px 0px 1px white) 
    drop-shadow(0px 0px 0.5px white) 
    drop-shadow(0px 0px 1px white) 
    drop-shadow(0px 0px 1px white) 
    drop-shadow(0px 0px 1px white) 
    drop-shadow(1px 1px 0px #0000002d);
}

.character-img {
  width: 125px; 
  height: auto; 
  display: block;
  -webkit-mask-image: url(/media/icons/heart.png);
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: bottom;
  mask-image: url(/media/icons/heart.png);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: bottom;
}

.sub-selection {
  display: flex;
  flex-direction: column;
  gap: 8px; 
  width: 180px; 
}

.sub-btn {
  font-family: 'Nunito', sans-serif;
  font-weight: 600; 
  font-size: 11px; 
  color: #606060;
  text-decoration: none;
  text-transform: uppercase; 
  padding: 8px 10px;
  width: 100%;
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid #e1e1e1; 
  text-align: center;
  display: block;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.sub-btn:hover {
  background-color: #ffedf5; 
  color: #606060; 
  border-color: #edacc7; 
}

.menu-footer-text {
  position: absolute;
  bottom: 25px; 
  width: 100%;
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 11px;
  color: #a0a0a0; 
  text-transform: lowercase; 
  letter-spacing: 0.5px;
  pointer-events: none; 
}

#loading-screen.view {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 9999 !important; 
  background: #000; 
  transform: none !important;
  display: flex !important; 
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
}

#loading-screen.active {
  opacity: 1 !important;
  pointer-events: auto;
}

.loading-gif {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  opacity: 0; 
  transition: opacity 0.3s ease-in-out;
}

.loading-gif.loaded {
  opacity: 1;
}

#genshin-mods {
  padding: 10px 10px 0px 10px !important;
}

#genshin-mods .mod-grid {
  padding: 10px 10px 0px 10px !important;
}

.mod-library {
  width: 100%;
  height: 100%; 
  padding: 0; 
  overflow-y: auto; 
  scrollbar-width: none; 
  -ms-overflow-style: none;
  display: flex; 
  flex-direction: column;
}

.mod-library::-webkit-scrollbar { display: none; }

.custom-dropdown {
  position: relative;
  width: 85px; 
  margin: 10px; 
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  user-select: none;
  margin-top: 15px;
  cursor: url(/media/cursor/cursorhover.png), progress !important;
  font-weight: bold !important;
}

.dropdown-selected {
  background: white;
  border: 2px solid #f7c5db;
  border-radius: 8px;
  padding: 3px 8px; 
  color: #5c5c5c; 
  text-transform: lowercase;
  text-align: center;
  font-weight: bold;
}

.dropdown-options {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: white;
  border: 2px solid #f7c5db;
  border-radius: 8px;
  z-index: 100;
  overflow: hidden;
}

.dropdown-options.show {
  display: block;
}

.option {
  color: #5c5c5c; 
  text-transform: lowercase;
  transition: background 0.2s;
  padding: 6px 15px; 
}

.option:hover {
  background-color: #feeef6; 
  font-style: italic;
}

.mod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 20px; 
}

.mod-card {
  background: #ffffff !important; 
  border-radius: 8px; 
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
  text-transform: lowercase; 
  text-align: left;
  width: 100%;
}

.mod-card:hover { transform: scale(1.03); }

.mod-card img.cover {
  width: 100%;
  aspect-ratio: 530 / 298;
  object-fit: cover;
  background: #ffffff;
  display: block;
}

.card-info {
  padding: 8px; 
  display: flex;
  flex-direction: column;
  background: #ffffff; 
  height: 40px;
  box-sizing: border-box;
  position: relative;
  overflow: visible;
}

.loading-text {
  font-family: 'Nunito', sans-serif;
  font-size: 12px; 
  font-weight: 700;
  color: #5c5c5c;
  margin: 0;
}

.card-info h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 12px; 
  font-weight: bold !important;
  margin: 0;
  line-height: 1.1;
  color: #5c5c5c;
  width: 100%;
  display: block;
  text-transform: lowercase;
}

.fav-heart {
  width: 12px;
  height: 12px;
  display: inline-block;
  vertical-align: middle; 
  margin-left: 1px;
  margin-bottom: 2px;
}

.mod-count {
  font-size: 0.8em;
  opacity: 0.7;
  font-weight: 400;
  margin-left: 5px;
}

.folder-card {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.folder-card:hover {
  transform: scale(1.02);
}

.mod-filters {
  display: none; 
  justify-content: space-between; 
  align-items: center;
  width: 100%;
  padding: 0 5px;
  box-sizing: border-box;
}

.mod-filters.show-filters {
  display: flex;
}

#folder-back-btn-container {
  width: 100px; 
}