.scene {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("./../img/bg.png");
  background-size: cover;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
}

a,
button,
[role='button'],
img,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

.now-playing-widget {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: min(340px, calc(100vw - 24px));
  padding: 8px 10px;
  border: 1px solid rgba(198, 214, 255, 0.24);
  border-radius: 10px;
  background: rgba(8, 13, 24, 0.38);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  opacity: 0.72;
  transition: opacity 180ms ease, transform 180ms ease;
  cursor: pointer;
}

.now-playing-widget:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.now-playing-widget.is-playing {
  border-color: rgba(120, 211, 255, 0.36);
}

.now-playing-widget.is-open {
  opacity: 0.98;
}

.now-playing-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8db4ff;
}

.now-playing-text {
  font-size: 12px;
  color: #ebf2ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.now-playing-controls {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  align-self: stretch;
  gap: 6px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(147, 180, 248, 0.2);
}

.now-playing-widget.is-open .now-playing-controls {
  display: flex;
}

.now-playing-controls[hidden] {
  display: none !important;
}

.now-playing-control-btn {
  width: 30px;
  height: 25px;
  border: 1px solid rgba(201, 156, 255, 0.55);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(118, 72, 181, 0.95) 0%, rgba(78, 37, 132, 0.96) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 240, 255, 0.12), 0 0 10px rgba(156, 98, 255, 0.24);
  color: #f8edff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.now-playing-control-btn:hover {
  filter: brightness(1.12) saturate(1.08);
}

.now-playing-control-btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 0 0 1px rgba(255, 240, 255, 0.08), 0 0 6px rgba(156, 98, 255, 0.18);
}

body.is-mobile-horizontal-nav {
  overflow: hidden;
  overscroll-behavior: none;
}

html.is-mobile-horizontal-nav,
body.is-mobile-horizontal-nav {
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

body.is-mobile-horizontal-nav {
  position: fixed;
  inset: 0;
}

body.is-mobile-horizontal-nav .scene {
  position: fixed;
  inset: 0 auto 0 0;
  transform: translate3d(calc(var(--scene-offset-x, 0px) * -1), 0, 0);
  will-change: transform;
  background-size: auto 100%;
  background-repeat: repeat-x;
  touch-action: none;
}

#startOverlay {
  opacity: 1;
  transition: opacity 0.45s ease;
}

#startOverlay.is-closing {
  opacity: 0;
  pointer-events: none;
}

#enterButton {
  animation: enterButtonFloat 2.4s ease-in-out infinite;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#enterButton:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
}

#enterButton:active {
  transform: translateY(1px) scale(0.98);
}

@keyframes enterButtonFloat {
  0% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(-4px) scale(1.02);
  }

  100% {
    transform: translateY(0px) scale(1);
  }
}

.certificate-img {
  opacity: 0.8;
  position: absolute;
  transform: scale(1.5);
  z-index: 100;
  top: 5%;
  right: 37.5%;
  cursor: pointer;
  filter: none;
  transition: filter 0.26s ease-out, transform 0.3s ease-in-out;
}

.certificate-img:hover {
  opacity: 1;
  transform: scale(1.6);
  transition: filter 0.08s ease-out, transform 0.3s ease-in-out 0.05s, opacity 0.3s ease-out;
  filter: drop-shadow(4px 4px 0 #2b1242) drop-shadow(8px 8px 0 #170a26);
}

.librero {
  position: absolute;
  width: 512px;
  bottom: 0;
  right: 0;
}

.bookshelf-books {
  position: absolute;
  right: 0;
  bottom: 450px;
  width: 400px;
  height: 250px;
  display: grid;
  grid-template-columns: repeat(10, 24px);
  grid-auto-rows: 68px;
  column-gap: 6px;
  row-gap: 34px;
  align-content: start;
  z-index: 21;
  pointer-events: auto;
}

.shelf-book {
  width: 26px;
  height: 68px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 160ms ease;
}

.shelf-book:hover {
  transform: translateY(-3px);
}

.shelf-book img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(0.6) saturate(0.55) brightness(0.76) contrast(0.9);
  transition: filter 180ms ease;
}

.shelf-book:hover img,
.shelf-book:focus-visible img {
  filter: grayscale(0.2) saturate(0.92) brightness(0.9) contrast(0.96);
}

.bookshelf-pagination {
  position: absolute;
  right: 190px;
  bottom: 64px;
  z-index: 22;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(192, 192, 192, 0.9);
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #444;
  border-bottom: 1px solid #444;
  padding: 3px 6px;
}

.bookshelf-page-btn {
  width: 22px;
  height: 20px;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #444;
  border-bottom: 1px solid #444;
  background: #c0c0c0;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.bookshelf-page-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.bookshelf-page-label {
  font-size: 11px;
  color: #111;
  min-width: 72px;
  text-align: center;
}

.pdf-viewer-modal {
  position: fixed;
  inset: 0;
  z-index: 3500;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pdf-paper {
  width: min(900px, 90vw);
  height: min(92vh, 1100px);
  background: #f7f2e8;
  border: 1px solid #d9d1c2;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), inset 0 0 60px rgba(163, 142, 104, 0.18);
  display: flex;
  flex-direction: column;
}

.pdf-paper-header {
  height: 34px;
  border-bottom: 1px solid #d3c8b4;
  background: linear-gradient(180deg, #fffdf7 0%, #ece2d3 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  font-size: 12px;
  color: #2d2a22;
}

.pdf-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pdf-fullscreen-btn {
  width: 24px;
  min-width: 24px;
  height: 24px;
  padding: 0;
}

.pdf-paper-body {
  flex: 1;
  padding: 12px;
}

#pdfViewerFrame {
  width: 100%;
  height: 100%;
  border: 1px solid #c2b59b;
  background: #fff;
}

.pdf-paper:fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  border: none;
  box-shadow: none;
}

.pdf-paper:fullscreen .pdf-paper-body {
  padding: 8px;
}

.foco {
  position: absolute;
  width: 80%;
  top: 0;
}

.windows {
  position: absolute;
  width: 512px;
  bottom: 25%;
}

.sky {
  position: absolute;
  width: 384px;
  bottom: 35%;
}

.brio {
  position: absolute;
  bottom: 0;
  cursor: pointer;
  width: 320px;
}

.monitor-bright {
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 500ms;
  cursor: pointer;
}

.book-tyc {
  position: absolute;
  top: 25%;
  left: 20%;
  transition: transform 0.3s;
  width: 120px;
  z-index: 10;
  cursor: pointer;
}

.estante {
  position: absolute;
  top: 34%;
  left: 10%;
  width: 320px;
  z-index: 11;
}

.button-brio {
  position: absolute;
  bottom: 0;
  z-index: 100;
}

.desktop {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 19;
  cursor: pointer;
  width: 512px;
}

.monitor-bright {
  position: absolute;
  bottom: 0;
  left: 0;
  opacity: 0;
  transition: opacity 500ms;
  z-index: 20;
  width: 512px;
  cursor: pointer;
}

.book-tyc {
  transition: transform 0.3s;
  cursor: pointer;
}

.book-tyc:hover,
.book-tyc:focus-visible {
  content: url("./../img/book-tyc-on.png");
  transform: scale(1.1);
  z-index: 12;
  transition: filter 0.08s ease-out, transform 0.3s ease-in-out 0.05s, opacity 0.3s ease-out;
  filter: drop-shadow(4px 4px 0 #2b1242) drop-shadow(8px 8px 0 #170a26);
}

.book-tyc:focus-visible {
  outline: 2px solid rgba(173, 125, 255, 0.9);
  outline-offset: 2px;
}

.modal-window {
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #1f1f1f;
  border-bottom: 2px solid #1f1f1f;
  background: #c0c0c0;
  box-shadow: 3px 3px 0 #000;
  font-family: "MS Sans Serif", Tahoma, Geneva, sans-serif;
  z-index: 2000;
}

#certificateModal.certificate-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(95vw, 1020px);
  min-height: 460px;
  max-height: 92vh;
  z-index: 3600;
  border: 1px solid #27386a;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(3, 8, 20, 0.72), 0 0 0 1px rgba(140, 178, 255, 0.16);
  background:
    radial-gradient(circle at 16% 18%, rgba(131, 175, 255, 0.2), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(255, 210, 95, 0.12), transparent 24%),
    linear-gradient(180deg, #18213b 0%, #0d1323 100%);
  overflow: hidden;
}

#certificateModal.certificate-modal .title-bar {
  transform-origin: top center;
}

#certificateModal.certificate-modal .certificate-reveal {
  opacity: 0;
  transform: translateY(-20px) scale(0.985);
  transform-origin: top center;
  will-change: transform, opacity;
}

#certificateModal.certificate-modal.is-opening .certificate-reveal {
  animation: certificateRevealDown 420ms cubic-bezier(0.22, 0.9, 0.26, 1) both;
  animation-delay: var(--certificate-reveal-delay, 0ms);
}

#certificateModal .title-bar {
  min-height: 44px;
  padding: 10px 12px;
  background:
    linear-gradient(90deg, rgba(255, 220, 115, 0.22) 0 120px, transparent 120px),
    linear-gradient(90deg, #1f3d87 0%, #224f9a 42%, #142a55 100%);
  border-bottom: 1px solid rgba(162, 193, 255, 0.24);
}

#certificateModal .title {
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: #f5f8ff;
}

#certificateModal .close-btn {
  border-radius: 8px;
  border-top: 1px solid #f0f4ff;
  border-left: 1px solid #f0f4ff;
  border-right: 1px solid #24345a;
  border-bottom: 1px solid #24345a;
}

.certificate-content {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%) 0 0 / 14px 14px,
    linear-gradient(180deg, #11192d 0%, #0b101d 100%);
  min-height: 410px;
  padding: 16px;
}

#certificateModal .content.certificate-content {
  min-height: 0;
  max-height: calc(92vh - 56px);
  overflow-y: auto;
  overflow-x: hidden;
}

.certificate-profile-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.certificate-profile-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(152, 188, 255, 0.36);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(246, 210, 95, 0.15), 0 18px 36px rgba(0, 0, 0, 0.45);
  background:
    linear-gradient(180deg, rgba(255, 221, 107, 0.12) 0%, transparent 28%),
    linear-gradient(180deg, #12192c 0%, #0d1322 100%);
  padding: 10px;
  overflow: hidden;
  animation: certificateProfilePulse 4.2s ease-in-out infinite;

}

.certificate-profile-frame::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(119, 154, 227, 0.32);
  border-radius: 12px;
  pointer-events: none;
}

.certificate-profile-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 8px);
  opacity: 0.24;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: certificateScanlineMove 8s linear infinite;
}

.certificate-profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right top;
  padding-left: 65px;

  transform: scale(1.8);
  image-rendering: pixelated;
  filter: saturate(1.06) contrast(1.02);
}

.certificate-profile-badge {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(129, 162, 230, 0.34);
  border-radius: 14px;
  padding: 12px 112px 12px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%),
    linear-gradient(180deg, #172039 0%, #101728 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 219, 116, 0.08);
}

.certificate-profile-badge>* {
  position: relative;
  z-index: 1;
}

.certificate-profile-badge::before {
  content: 'PLAYER CARD';
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #93aff1;
}

.certificate-profile-badge::after {
  content: '';
  position: absolute;
  inset: -35% auto -35% -48%;
  width: 42%;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(105deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.03) 30%,
      rgba(255, 255, 255, 0.26) 48%,
      rgba(255, 255, 255, 0.07) 68%,
      rgba(255, 255, 255, 0) 100%);
  transform: rotate(8deg);
  animation: certificateCardReflex 4.8s ease-in-out infinite;
}

.certificate-profile-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #f7fbff;
  text-shadow: 0 2px 12px rgba(91, 144, 255, 0.22);
}

.certificate-profile-level {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  padding: 7px 12px 6px;
  border: 1px solid rgba(255, 217, 111, 0.44);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 223, 133, 0.2) 0%, rgba(255, 179, 58, 0.08) 100%),
    rgba(25, 17, 5, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(255, 248, 215, 0.08),
    0 0 16px rgba(255, 198, 72, 0.18);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffe082;
  text-shadow: 0 0 10px rgba(255, 206, 82, 0.22);
}

.certificate-profile-class {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: #f4d25f;
}

.certificate-exp-wrap {
  margin-top: 10px;
}

.certificate-exp-track {
  position: relative;
  height: 10px;
  border: 1px solid rgba(132, 165, 236, 0.42);
  border-radius: 999px;
  background: rgba(10, 18, 35, 0.9);
  overflow: hidden;
}

.certificate-exp-fill {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  width: 0;
  background: linear-gradient(90deg, #5be7ff 0%, #74a6ff 40%, #f4d25f 100%);
  box-shadow: 0 0 14px rgba(93, 154, 255, 0.58);
  transition: width 0.45s ease;
}

.certificate-exp-fill.is-active {
  animation: certificateExpFillPowerOn 420ms cubic-bezier(0.2, 0.85, 0.3, 1) both;
}

@keyframes certificateExpFillPowerOn {
  0% {
    filter: brightness(1.8) saturate(1.45) hue-rotate(8deg);
    box-shadow:
      0 0 14px rgba(93, 154, 255, 0.58),
      0 0 22px rgba(116, 166, 255, 0.74);
  }

  45% {
    filter: brightness(2.2) saturate(1.7) hue-rotate(3deg);
    box-shadow:
      0 0 16px rgba(116, 235, 255, 0.95),
      0 0 28px rgba(82, 138, 255, 0.82);
  }

  100% {
    filter: brightness(1) saturate(1) hue-rotate(0deg);
    box-shadow: 0 0 14px rgba(93, 154, 255, 0.58);
  }
}

.certificate-exp-text {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.1px;
  color: #9db8f5;
}

.certificate-profile-toggle {
  border: 1px solid rgba(138, 171, 238, 0.45);
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(106, 160, 255, 0.22) 0%, rgba(41, 78, 152, 0.42) 100%),
    #152344;
  color: #eef5ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.55px;
  padding: 9px 10px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.certificate-profile-toggle:hover {
  filter: brightness(1.08);
}

.certificate-profile-toggle:active {
  transform: translateY(1px);
}

.certificate-sheet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.certificate-sheet-block {
  position: relative;
  border: 1px solid rgba(124, 154, 222, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.012) 100%),
    rgba(10, 15, 28, 0.9);
  box-shadow: inset 0 0 0 1px rgba(202, 212, 255, 0.08), 0 10px 22px rgba(0, 0, 0, 0.22);
  padding: 14px 14px 12px;
  min-height: 110px;
}

.certificate-sheet-block::before {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(244, 210, 95, 0.85), rgba(244, 210, 95, 0));
}

.certificate-sheet-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.1px;
  color: #f4d25f;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.certificate-sheet-value {
  color: #e8eefc;
  font-size: 13px;
  line-height: 1.6;
}

.certificate-sheet-list {
  margin: 0;
  padding-left: 16px;
  color: #e7ecff;
  font-size: 13px;
  line-height: 1.4;
}

#certificateStats.certificate-sheet-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: clamp(170px, 24vh, 240px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(120, 153, 227, 0.55) rgba(13, 20, 37, 0.65);
}

#certificateStats.certificate-sheet-list::-webkit-scrollbar {
  width: 7px;
}

#certificateStats.certificate-sheet-list::-webkit-scrollbar-track {
  background: rgba(13, 20, 37, 0.65);
  border-radius: 999px;
}

#certificateStats.certificate-sheet-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(147, 175, 241, 0.9) 0%, rgba(96, 132, 211, 0.92) 100%);
  border-radius: 999px;
}

.certificate-epithet-item {
  position: relative;
  margin: 0;
  padding: 8px 80px 8px 28px;
  border: 1px solid rgba(127, 159, 228, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(31, 49, 92, 0.86) 0%, rgba(15, 23, 44, 0.94) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 6px 14px rgba(0, 0, 0, 0.18);
  color: #eaf1ff;
  font-size: 13px;
  line-height: 1.35;
  overflow: hidden;
}

.certificate-epithet-item::before {
  content: '◆';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #f4d25f;
  font-size: 11px;
  font-weight: 700;
}

.certificate-epithet-item::after {
  content: attr(data-rarity-label);
  position: absolute;
  top: 7px;
  right: 9px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(130, 162, 232, 0.35);
  color: #b9cdfd;
  background: rgba(29, 43, 79, 0.7);
}

.certificate-epithet-item[data-rarity='comun'] {
  border-color: rgba(108, 126, 170, 0.3);
  background:
    linear-gradient(180deg, rgba(32, 41, 69, 0.7) 0%, rgba(17, 24, 42, 0.9) 100%);
  box-shadow: inset 0 0 0 1px rgba(196, 210, 255, 0.04), 0 4px 10px rgba(0, 0, 0, 0.16);
  color: #cfdaf7;
}

.certificate-epithet-item[data-rarity='comun']::before {
  content: '•';
  color: #9aabd8;
  font-size: 13px;
  text-shadow: none;
}

.certificate-epithet-item[data-rarity='comun']::after {
  color: #9fb1e0;
  border-color: rgba(111, 133, 188, 0.34);
  background: rgba(28, 39, 67, 0.7);
}

.certificate-epithet-item[data-rarity='legendario'] {
  border-color: rgba(244, 210, 95, 0.55);
  background:
    linear-gradient(112deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 240, 189, 0) 28%,
      rgba(255, 240, 189, 0.42) 46%,
      rgba(255, 255, 255, 0.86) 50%,
      rgba(255, 237, 178, 0.34) 56%,
      rgba(255, 255, 255, 0) 72%,
      rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, rgba(12, 10, 8, 0.4) 0%, rgba(12, 10, 8, 0.4) 100%),
    url('./../img/Potential_rotating_charge.gif'),
    linear-gradient(180deg, rgba(88, 62, 12, 0.5) 0%, rgba(33, 24, 9, 0.88) 100%),
    linear-gradient(180deg, rgba(31, 49, 92, 0.86) 0%, rgba(15, 23, 44, 0.94) 100%);
  background-size: 240% 100%, 100% 100%, 122% auto, auto, auto;
  background-position: -230% 0, 0 0, center center, 0 0, 0 0;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(255, 237, 177, 0.2),
    inset 0 0 24px rgba(255, 213, 102, 0.12),
    0 8px 18px rgba(0, 0, 0, 0.26),
    0 0 14px rgba(255, 214, 109, 0.2);
  color: #fff4cb;
  font-weight: 600;
  animation: certificateLegendaryReflex 4.2s cubic-bezier(0.2, 0.84, 0.28, 1) infinite,
    certificateLegendaryAura 5.2s ease-in-out infinite;
}

.certificate-epithet-item[data-rarity='legendario']::before {
  content: '✶';
  font-size: 12px;
  text-shadow: 0 0 8px rgba(255, 226, 140, 0.55);
}

.certificate-epithet-item[data-rarity='legendario']::before {
  color: #ffe082;
  border-color: rgba(244, 210, 95, 0.5);
  text-shadow: 0 0 8px rgba(255, 214, 109, 0.28);
}

.certificate-epithet-item[data-rarity='legendario']::after {
  color: #ffe082;
  border-color: rgba(244, 210, 95, 0.5);
  background: linear-gradient(180deg, rgba(110, 78, 18, 0.86) 0%, rgba(69, 49, 13, 0.88) 100%);
  text-shadow: 0 0 8px rgba(255, 214, 109, 0.28);
}

.certificate-epithet-item[data-rarity='epico'] {
  border-color: rgba(189, 144, 255, 0.52);
  background:
    linear-gradient(112deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(234, 211, 255, 0) 38%,
      rgba(234, 211, 255, 0.24) 48%,
      rgba(255, 255, 255, 0.42) 52%,
      rgba(234, 211, 255, 0.18) 58%,
      rgba(255, 255, 255, 0) 70%,
      rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, rgba(66, 38, 108, 0.45) 0%, rgba(26, 18, 49, 0.88) 100%),
    linear-gradient(180deg, rgba(31, 49, 92, 0.86) 0%, rgba(15, 23, 44, 0.94) 100%);
  background-size: 210% 100%, auto, auto;
  background-position: -205% 0, 0 0, 0 0;
  background-repeat: no-repeat;
  animation: certificateEpicReflex 6.8s cubic-bezier(0.22, 0.78, 0.26, 1) infinite;
}

.certificate-epithet-item[data-rarity='epico']::before {
  color: #ddb9ff;
  border-color: rgba(189, 144, 255, 0.52);
}

.certificate-epithet-item[data-rarity='epico']::after {
  color: #ddb9ff;
  border-color: rgba(189, 144, 255, 0.52);
  background: rgba(59, 34, 95, 0.74);
}

.certificate-epithet-item[data-rarity='epico'][data-epithet-key='japones'] {
  border-color: rgba(255, 142, 196, 0.64);
  background:
    linear-gradient(112deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 205, 230, 0) 38%,
      rgba(255, 205, 230, 0.26) 48%,
      rgba(255, 255, 255, 0.46) 52%,
      rgba(255, 205, 230, 0.22) 58%,
      rgba(255, 255, 255, 0) 70%,
      rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, rgba(35, 8, 25, 0.34) 0%, rgba(35, 8, 25, 0.42) 100%),
    url('./../img/japan-epiteto.jpg'),
    linear-gradient(180deg, rgba(138, 35, 97, 0.34) 0%, rgba(66, 14, 44, 0.86) 100%),
    linear-gradient(180deg, rgba(86, 26, 68, 0.84) 0%, rgba(40, 13, 34, 0.92) 100%);
  background-size: 210% 100%, 100% 100%, 122% auto, auto, auto;
  background-position: -205% 0, 0 0, center -48px, 0 0, 0 0;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  animation: certificateEpicReflexWithGif 6.8s cubic-bezier(0.22, 0.78, 0.26, 1) infinite;
  box-shadow:
    inset 0 0 0 1px rgba(255, 204, 230, 0.18),
    0 7px 15px rgba(0, 0, 0, 0.23),
    0 0 14px rgba(255, 120, 196, 0.22);
}

.certificate-epithet-item[data-rarity='epico'][data-epithet-key='japones']::before,
.certificate-epithet-item[data-rarity='epico'][data-epithet-key='japones']::after {
  color: #ffc8e8;
  border-color: rgba(255, 142, 196, 0.64);
}

.certificate-epithet-item[data-rarity='epico'][data-epithet-key='japones']::after {
  background: rgba(112, 26, 79, 0.78);
}

.certificate-epithet-item[data-rarity='epico'][data-epithet-key='bukowski-reader'] {
  border-color: rgba(188, 196, 215, 0.52);
  background:
    linear-gradient(112deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(219, 223, 231, 0) 38%,
      rgba(219, 223, 231, 0.2) 48%,
      rgba(255, 255, 255, 0.38) 52%,
      rgba(219, 223, 231, 0.16) 58%,
      rgba(255, 255, 255, 0) 70%,
      rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, rgba(14, 14, 16, 0.42) 0%, rgba(14, 14, 16, 0.48) 100%),
    url('./../img/bukowski-epiteto.png'),
    linear-gradient(180deg, rgba(74, 77, 88, 0.38) 0%, rgba(34, 37, 45, 0.88) 100%),
    linear-gradient(180deg, rgba(42, 46, 56, 0.82) 0%, rgba(21, 24, 33, 0.93) 100%);
  background-size: 210% 100%, 100% 100%, 122% auto, auto, auto;
  background-position: -205% 0, 0 0, center -56px, 0 0, 0 0;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  animation: certificateEpicReflexWithBukowskiGif 6.8s cubic-bezier(0.22, 0.78, 0.26, 1) infinite;
  box-shadow:
    inset 0 0 0 1px rgba(226, 232, 246, 0.16),
    0 7px 15px rgba(0, 0, 0, 0.24),
    0 0 10px rgba(169, 178, 198, 0.16);
}

.certificate-epithet-item[data-rarity='epico'][data-epithet-key='bukowski-reader']::before,
.certificate-epithet-item[data-rarity='epico'][data-epithet-key='bukowski-reader']::after {
  color: #d5dbe8;
  border-color: rgba(188, 196, 215, 0.52);
}

.certificate-epithet-item[data-rarity='epico'][data-epithet-key='bukowski-reader']::after {
  background: rgba(59, 63, 74, 0.78);
}

.certificate-epithet-item[data-rarity='raro'] {
  border-color: rgba(114, 208, 255, 0.48);
  background:
    linear-gradient(180deg, rgba(23, 70, 103, 0.4) 0%, rgba(11, 32, 56, 0.88) 100%),
    linear-gradient(180deg, rgba(31, 49, 92, 0.86) 0%, rgba(15, 23, 44, 0.94) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(173, 236, 255, 0.14),
    0 7px 15px rgba(0, 0, 0, 0.23),
    0 0 10px rgba(97, 210, 255, 0.2);
  color: #dff5ff;
  font-weight: 600;
}

.certificate-epithet-item[data-rarity='raro']::before {
  content: '✦';
  font-size: 12px;
  text-shadow: 0 0 7px rgba(133, 227, 255, 0.45);
}

.certificate-epithet-item[data-rarity='raro']::before {
  color: #9be7ff;
  border-color: rgba(114, 208, 255, 0.48);
}

.certificate-epithet-item[data-rarity='raro']::after {
  color: #9be7ff;
  border-color: rgba(114, 208, 255, 0.48);
  background: rgba(16, 62, 89, 0.72);
}

@keyframes certificateLegendaryReflex {
  0%,
  58%,
  100% {
    background-position: -230% 0, 0 0, center center, 0 0, 0 0;
  }

  24% {
    background-position: 210% 0, 0 0, center center, 0 0, 0 0;
  }
}

@keyframes certificateLegendaryAura {
  0%,
  100% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 245, 214, 0.08),
      inset 0 1px 0 rgba(255, 233, 163, 0.82),
      0 8px 14px rgba(0, 0, 0, 0.22),
      0 0 0 rgba(255, 214, 109, 0);
  }

  25% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 245, 214, 0.09),
      inset -1px 0 0 rgba(255, 233, 163, 0.82),
      0 8px 15px rgba(0, 0, 0, 0.23),
      0 0 10px rgba(255, 214, 109, 0.2);
  }

  45% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 245, 214, 0.16),
      inset 0 -1px 0 rgba(255, 233, 163, 0.86),
      0 8px 16px rgba(0, 0, 0, 0.24),
      0 0 18px rgba(255, 214, 109, 0.35);
  }

  72% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 245, 214, 0.1),
      inset 1px 0 0 rgba(255, 233, 163, 0.82),
      0 8px 15px rgba(0, 0, 0, 0.23),
      0 0 12px rgba(255, 214, 109, 0.22);
  }
}

@keyframes certificateRareReflex {
  0%,
  68%,
  100% {
    background-position: -215% 0, 0 0, 0 0;
  }

  30% {
    background-position: 205% 0, 0 0, 0 0;
  }
}

@keyframes certificateEpicReflex {
  0%,
  74%,
  100% {
    background-position: -205% 0, 0 0, 0 0;
  }

  33% {
    background-position: 190% 0, 0 0, 0 0;
  }
}

@keyframes certificateEpicReflexWithGif {
  0%,
  74%,
  100% {
    background-position: -205% 0, 0 0, center -72px, 0 0, 0 0;
  }

  33% {
    background-position: 190% 0, 0 0, center -72px, 0 0, 0 0;
  }
}

@keyframes certificateEpicReflexWithBukowskiGif {
  0%,
  74%,
  100% {
    background-position: -205% 0, 0 0, center -56px, 0 0, 0 0;
  }

  33% {
    background-position: 190% 0, 0 0, center -56px, 0 0, 0 0;
  }
}

#certificateAchievements.certificate-sheet-list {
  list-style: none;
  padding-left: 0;
}

.certificate-achievement-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  align-items: start;
  column-gap: 8px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(120, 153, 227, 0.18);
  border-radius: 10px;
  background: rgba(18, 25, 46, 0.7);
}

.certificate-achievement-icon {
  color: #f4d25f;
  font-size: 11px;
  line-height: 1.4;
}

.certificate-achievement-text {
  color: #e7ecff;
}

#certificateSkills.certificate-sheet-list {
  list-style: none;
  padding-left: 0;
  display: block;
  max-height: clamp(240px, 36vh, 320px);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#certificateSkills.certificate-sheet-list::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

#certificateSkillsBlock {
  display: flex;
  flex-direction: column;
}

.certificate-skill-group-title {
  margin: 8px 0 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #9fb2ff;
  text-transform: uppercase;
}

.certificate-skill-group-title[data-group='lenguajes'] {
  color: #ffda7d;
}

.certificate-skill-group-title[data-group='frameworks'] {
  color: #d2b7ff;
}

.certificate-skill-group-title[data-group='bases'] {
  color: #89e4ff;
}

.certificate-skill-group-title[data-group='diseno'] {
  color: #ff9ccc;
}

.certificate-skill-group-title[data-group='hobbies'] {
  color: #b8ffc8;
}

.certificate-skill-group-title:first-child {
  margin-top: 0;
}

.certificate-skill-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  column-gap: 8px;
  row-gap: 4px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(121, 152, 224, 0.18);
  border-radius: 10px;
  background: rgba(17, 25, 44, 0.72);
}

.certificate-skill-item[data-group='lenguajes'] {
  border-color: rgba(244, 210, 95, 0.38);
  box-shadow: inset 0 0 0 1px rgba(244, 210, 95, 0.08);
}

.certificate-skill-item[data-group='frameworks'] {
  border-color: rgba(197, 149, 255, 0.35);
  box-shadow: inset 0 0 0 1px rgba(197, 149, 255, 0.08);
}

.certificate-skill-item[data-group='bases'] {
  border-color: rgba(103, 212, 255, 0.34);
  box-shadow: inset 0 0 0 1px rgba(103, 212, 255, 0.08);
}

.certificate-skill-item[data-group='diseno'] {
  border-color: rgba(255, 134, 188, 0.36);
  box-shadow: inset 0 0 0 1px rgba(255, 134, 188, 0.08);
}

.certificate-skill-item[data-group='hobbies'] {
  border-color: rgba(130, 233, 144, 0.34);
  box-shadow: inset 0 0 0 1px rgba(130, 233, 144, 0.08);
}

.certificate-skill-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  image-rendering: pixelated;
}

.certificate-skill-name {
  font-size: 12px;
  color: #eef2ff;
}

.certificate-skill-meter {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 3px;
}

.certificate-skill-unit {
  height: 5px;
  border: 1px solid #5f6898;
  background: rgba(28, 36, 66, 0.85);
}

.certificate-skill-unit.is-active {
  background: linear-gradient(180deg, #ffef9c 0%, #f4d25f 100%);
  border-color: #d8b74b;
  box-shadow: 0 0 0 rgba(255, 223, 122, 0);
  animation: certificateSkillUnitPowerOn 420ms cubic-bezier(0.2, 0.85, 0.3, 1) both;
}

.certificate-skill-item[data-group='frameworks'] .certificate-skill-unit.is-active {
  background: linear-gradient(180deg, #ecd7ff 0%, #be90ff 100%);
  border-color: #af80ef;
}

.certificate-skill-item[data-group='bases'] .certificate-skill-unit.is-active {
  background: linear-gradient(180deg, #c9f6ff 0%, #6fd7ff 100%);
  border-color: #52c0e9;
}

.certificate-skill-item[data-group='diseno'] .certificate-skill-unit.is-active {
  background: linear-gradient(180deg, #ffd4e9 0%, #ff95c5 100%);
  border-color: #ea80b0;
}

.certificate-skill-item[data-group='hobbies'] .certificate-skill-unit.is-active {
  background: linear-gradient(180deg, #d5f9c9 0%, #8fe59f 100%);
  border-color: #6ccd7e;
}

@keyframes certificateSkillUnitPowerOn {
  0% {
    filter: brightness(1.85) saturate(1.5) hue-rotate(6deg);
    box-shadow: 0 0 0 rgba(116, 235, 255, 0);
  }

  45% {
    filter: brightness(2.35) saturate(1.9) hue-rotate(14deg);
    box-shadow:
      0 0 14px rgba(116, 235, 255, 0.95),
      0 0 28px rgba(82, 138, 255, 0.8),
      0 0 40px rgba(58, 98, 255, 0.42);
  }

  100% {
    filter: brightness(1) saturate(1) hue-rotate(0deg);
    box-shadow: 0 0 0 rgba(116, 235, 255, 0);
  }
}

@keyframes certificateScanlineMove {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 0 64px;
  }
}

@keyframes certificateProfilePulse {

  0%,
  100% {
    box-shadow: inset 0 0 0 1px rgba(246, 210, 95, 0.15), 0 18px 36px rgba(0, 0, 0, 0.45);
  }

  50% {
    box-shadow: inset 0 0 0 1px rgba(246, 210, 95, 0.2), 0 20px 42px rgba(0, 0, 0, 0.5), 0 0 18px rgba(116, 166, 255, 0.28);
  }
}

@keyframes certificateCardReflex {
  0% {
    transform: translateX(-150%) rotate(8deg);
    opacity: 0;
  }

  14% {
    opacity: 0.95;
  }

  34% {
    transform: translateX(290%) rotate(8deg);
    opacity: 0;
  }

  100% {
    transform: translateX(290%) rotate(8deg);
    opacity: 0;
  }
}

@keyframes certificateRevealDown {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.985);
  }

  55% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .certificate-skill-unit.is-active {
    animation: none;
    box-shadow: none;
    filter: none;
  }

  .certificate-epithet-item[data-rarity='legendario'],
  .certificate-epithet-item[data-rarity='epico'],
  .certificate-epithet-item[data-rarity='raro'] {
    animation: none;
  }

  #certificateModal.certificate-modal .certificate-reveal,
  #certificateModal.certificate-modal.is-opening .certificate-reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .certificate-profile-badge::after {
    animation: none;
  }
}

.title-bar {
  background: linear-gradient(90deg, #0a246a 0%, #2359c6 100%);
  padding: 5px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #5b5b5b;
  cursor: move;
}

.title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #fff;
  text-shadow: 1px 1px 0 #001236;
}

.close-btn {
  background: #c0c0c0;
  color: #000;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #3b3b3b;
  border-bottom: 1px solid #3b3b3b;
  width: 20px;
  height: 20px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  filter: brightness(0.95);
}

.content {
  padding: 12px;
  overflow: auto;
  height: calc(100% - 34px);
}

.options-desktop {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 56px;
  background:
    radial-gradient(circle at -12% 18%, transparent 0 52%, #8f2a86 52% 53%, transparent 53%),
    radial-gradient(circle at -12% 18%, #a72f91 0 52%, transparent 52%),
    linear-gradient(90deg, #cf3f98 0%, #c53f96 100%);
}

.desktop-folders {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px;
}

.folder-icon {
  cursor: pointer;
  user-select: none;
}

.folder-icon:active {
  transform: translateY(1px);
}

.folder-window {
  position: absolute;
  top: 50px;
  left: 50px;
  width: 420px;
  max-width: calc(100% - 100px);
  min-height: 280px;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #1f1f1f;
  border-bottom: 2px solid #1f1f1f;
  background: #c0c0c0;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
  z-index: 10;
  display: flex;
  flex-direction: column;
}

#projectsWindow {
  width: min(860px, calc(100% - 80px));
  min-height: 420px;
  height: clamp(380px, 72vh, 680px);
}

.folder-window .title-bar {
  background: linear-gradient(90deg, #0a246a 0%, #2359c6 100%);
  padding: 5px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
}

.folder-window .title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #fff;
  text-shadow: 1px 1px 0 #001236;
}

.title-actions {
  display: flex;
  gap: 4px;
}

.folder-maximize {
  font-size: 10px;
  line-height: 1;
}

.folder-window.maximized {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  max-width: none !important;
  min-height: 0 !important;
  height: 100vh !important;
  z-index: 5000 !important;
  box-shadow: none;
}

.folder-content {
  padding: 12px;
  background: #fff;
  min-height: 240px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
}

.folder-window.maximized .folder-content {
  min-height: 0;
}

.folder-content .desktop-icon {
  color: #000;
  text-shadow: none;
}

.folder-content .desktop-icon:hover {
  border: 1px dotted #000;
  background: rgba(0, 0, 128, 0.1);
}

.contact-block h3,
.social-block h3 {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-shadow: 1px 1px 0 #003030;
}

.icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.desktop-icon {
  width: 92px;
  min-height: 90px;
  padding: 6px 4px;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #fff;
}

.desktop-icon:hover {
  border: 1px dotted #fff;
  background: rgba(0, 0, 128, 0.35);
}

.desktop-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  image-rendering: pixelated;
}

.desktop-icon span {
  font-size: 11px;
  text-align: center;
  line-height: 1.2;
  text-shadow: 1px 1px 0 #000;
}

.modal-taskbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  border-top: 2px solid #fff;
  background: #c0c0c0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  gap: 12px;
}

.taskbar-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #444;
  border-bottom: 1px solid #444;
  background: #c0c0c0;
  height: 30px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  color: #111;
}

.taskbar-logo img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  image-rendering: pixelated;
}

.taskbar-sound-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #444;
  border-bottom: 1px solid #444;
  background: #c0c0c0;
  height: 30px;
  padding: 0 8px;
  cursor: pointer;
  color: #111;
  font-size: 11px;
  font-weight: 700;
}

.taskbar-sound-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  image-rendering: pixelated;
}

.taskbar-sound-btn[data-enabled="false"] {
  color: #2d2d2d;
}

.taskbar-buttons {
  display: flex;
  gap: 0;
  align-items: center;
}

.taskbar-language-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #444;
  border-bottom: 1px solid #444;
  background: #c0c0c0;
  height: 30px;
  width: 40px;
  cursor: pointer;
  color: #111;
  font-size: 11px;
  font-weight: 700;
  padding: 0;
}

.taskbar-language-btn:hover {
  background: #d0d0d0;
}

.taskbar-language-btn:active {
  border-top: 1px solid #444;
  border-left: 1px solid #444;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
}

/* Brick Game / LCD screen aesthetic for game canvases */
#snakeCanvas,
#racingCanvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border: 3px solid #2d3e2d;
  background: #9BBC0F;
  box-shadow:
    inset 0 0 20px rgba(0, 0, 0, 0.2),
    0 0 10px rgba(0, 0, 0, 0.3);
  border-radius: 2px;
}

/* Game window styling to match Brick Game console */
#snakeWindow .folder-content,
#racingWindow .folder-content {
  background: #3d4d3d;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#snakeWindow .title-bar,
#racingWindow .title-bar {
  background: linear-gradient(135deg, #2d3e2d 0%, #4d5d4d 100%);
}

/* Game controls styling */
#snakeDifficultyBtn {
  margin-top: 10px;
  padding: 6px 12px;
  background: #9BBC0F;
  color: #0F380F;
  border: 2px solid #0F380F;
  font-family: monospace;
  font-weight: bold;
  font-size: 11px;
  cursor: pointer;
  text-transform: uppercase;
}

#snakeDifficultyBtn:hover {
  background: #8BAC0F;
}

#snakeDifficultyBtn:active {
  background: #7A9B0E;
}

/* Score displays */
#snakeScore,
#racingScore {
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 14px;
  color: #9BBC0F;
  text-shadow: 0 0 5px rgba(155, 188, 15, 0.5);
  background: #0F380F;
  padding: 5px 10px;
  border: 2px solid #9BBC0F;
  border-radius: 2px;
  min-width: 120px;
  text-align: center;
}

/* Game over messages */
#snakeGameOver,
#racingGameOver {
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 12px;
  color: #0F380F;
  background: #9BBC0F;
  padding: 10px;
  border: 3px solid #0F380F;
  border-radius: 2px;
  text-align: center;
  white-space: pre-line;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 680px) {
  .desktop-icon {
    width: 84px;
    min-height: 82px;
  }

  .desktop-icon span {
    font-size: 10px;
  }
}

@media (max-width: 900px) and (pointer: coarse) {
  .scene {
    width: calc(100dvh * 16 / 9);
    min-width: calc(100dvh * 16 / 9);
    height: 100dvh;
    min-height: 100dvh;
    position: relative;
    display: block;
    --mobile-hero-width: clamp(470px, 90vw, 700px);
    --mobile-hero-bottom: clamp(170px, 22vh, 250px);
    --mobile-sky-bottom: calc(var(--mobile-hero-bottom) + clamp(88px, 11vh, 126px));
    --mobile-librero-width: clamp(400px, 72vw, 470px);
    --mobile-bookshelf-width: calc(var(--mobile-librero-width) * 0.78);
    --mobile-bookshelf-height: calc(var(--mobile-librero-width) * 0.49);
  }

  .windows {
    width: var(--mobile-hero-width);
    bottom: var(--mobile-hero-bottom);
    left: 50%;
    transform: translateX(-50%);
  }

  .sky {
    width: calc(var(--mobile-hero-width) * 0.75);
    bottom: var(--mobile-sky-bottom);
    left: 50%;
    transform: translateX(-50%);
  }

  .brio {
    width: clamp(270px, 54vw, 390px);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
  }

  .book-tyc {
    top: 21%;
    left: 11%;
  }

  .certificate-img {
    content: url("./../img/caertificates-mobile.png");
    top: 10%;
    left: 50%;
    right: auto;
    width: auto;
    max-width: 100%;
    height: 128px;
    object-fit: contain;
    transform: translateX(-50%);
    opacity: 0.9;
  }

  .certificate-img:hover,
  .certificate-img:focus-visible {
    transform: translateX(-50%) scale(1.08);
  }

  .estante {
    top: 29%;
    left: 1%;
  }

  .librero {
    width: var(--mobile-librero-width);
    right: 18px;
  }

  .bookshelf-books {
    right: 18px;
    bottom: calc(var(--mobile-librero-width) * 0.88);
    width: var(--mobile-bookshelf-width);
    height: var(--mobile-bookshelf-height);
    grid-template-columns: repeat(10, minmax(0, calc(var(--mobile-bookshelf-width) / 13.5)));
    grid-auto-rows: calc(var(--mobile-bookshelf-height) / 3.7);
    column-gap: calc(var(--mobile-bookshelf-width) / 66);
    row-gap: calc(var(--mobile-bookshelf-height) / 7.4);
  }

  .shelf-book {
    width: calc(var(--mobile-bookshelf-width) / 12.8);
    height: calc(var(--mobile-bookshelf-height) / 3.7);
  }

  .bookshelf-pagination {
    right: calc((var(--mobile-librero-width) * 0.36) + 18px);
    bottom: 52px;
  }

  .gyro-reset-btn {
    position: fixed;
    left: 50%;
    bottom: calc(10px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 6900;
    min-width: 136px;
    padding: 0 12px;
    height: 34px;
    border: 1px solid #1a2e56;
    border-radius: 18px;
    background: transparent;
    color: #e6ebf5;
    font-size: 12px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    touch-action: manipulation;
  }
}

.silence-message {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 50%;
  max-width: 320px;
  width: max-content;
  background: #ffffd7;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #2b2b2b;
  border-bottom: 2px solid #2b2b2b;
  border-radius: 0;
  padding: 8px 10px;
  font-family: "MS Sans Serif", Tahoma, Geneva, sans-serif;
  font-size: 14px;
  line-height: 1.25;
  white-space: pre-line;
  word-wrap: break-word;
  overflow-wrap: break-word;
  box-shadow: 2px 2px 0 #000;
  z-index: 6500;
  pointer-events: none;
  transition: opacity 0.5s;
}

.modal-comment-message {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  max-width: min(760px, calc(100vw - 24px));
  width: max-content;
  background: #ffffd7;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #2b2b2b;
  border-bottom: 2px solid #2b2b2b;
  padding: 8px 10px;
  font-family: "MS Sans Serif", Tahoma, Geneva, sans-serif;
  font-size: 13px;
  line-height: 1.25;
  color: #111;
  white-space: pre-line;
  word-wrap: break-word;
  overflow-wrap: break-word;
  box-shadow: 2px 2px 0 #000;
  z-index: 7000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.projects-content {
  position: relative;
  min-height: 0;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0;
}

.projects-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-bottom: 1px solid #d6d6d6;
  background: linear-gradient(180deg, #f8f8f8 0%, #ececec 100%);
}

.projects-filter-label {
  font-size: 11px;
  color: #222;
}

.projects-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.projects-filter-btn {
  min-height: 22px;
  padding: 0 8px;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #5c5c5c;
  border-bottom: 1px solid #5c5c5c;
  background: #c9c9c9;
  color: #111;
  font-size: 11px;
  cursor: pointer;
}

.projects-filter-btn.is-active {
  border-top: 1px solid #5c5c5c;
  border-left: 1px solid #5c5c5c;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  background: #b8c8ff;
  color: #0b1f66;
  font-weight: 700;
}

.projects-empty {
  font-size: 12px;
  color: #333;
  padding: 8px;
}

.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  padding: 8px;
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.projects-item {
  background: transparent;
  border: 1px solid transparent;
  cursor: default;
}

.projects-item:hover {
  border: 1px dotted #000;
  background: rgba(0, 0, 128, 0.08);
}

.projects-viewer {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 1080px);
  height: min(86vh, 760px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.9);
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #1f1f1f;
  border-bottom: 2px solid #1f1f1f;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6);
  z-index: 3600;
}

.projects-viewer-top-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
}

.projects-viewer-body {
  flex: 1;
  height: calc(100% - 42px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin: 0 6px;
  overflow: auto;
}

.projects-viewer-body.projects-viewer-body-zoomed {
  align-items: flex-start;
  justify-content: flex-start;
}

.projects-viewer-body.projects-viewer-body-draggable {
  cursor: grab;
  touch-action: none;
}

.projects-viewer-body.projects-viewer-body-dragging {
  cursor: grabbing;
}

.projects-viewer-body.projects-viewer-body-dragging .projects-viewer-media {
  pointer-events: none;
}

.projects-viewer-media {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #000;
}

.projects-viewer-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.projects-zoom-btn {
  min-width: 28px;
  height: 24px;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #444;
  border-bottom: 1px solid #444;
  background: #c0c0c0;
  color: #111;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.projects-fullscreen-btn,
.projects-close-top-btn {
  min-width: 24px;
  width: 24px;
  height: 24px;
  padding: 0;
}

.projects-zoom-btn:disabled {
  cursor: default;
  opacity: 0.6;
}

.projects-zoom-label {
  min-width: 44px;
  text-align: center;
  font-size: 11px;
  color: #fff;
}

.projects-nav-btn {
  width: 34px;
  height: 48px;
  margin: 0 6px;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #444;
  border-bottom: 1px solid #444;
  background: #c0c0c0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.projects-viewer-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px;
  background: rgba(10, 10, 10, 0.88);
  color: #fff;
  font-size: 11px;
}

#projectsViewerCaption {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-player-content {
  background: linear-gradient(180deg, #2d3241 0%, #161b26 100%);
  border: 1px solid #5e677d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #cfd7e8;
  width: 100%;
  height: 100%;
  flex: 1;
  min-height: 0;
  min-width: 0;
  flex-wrap: nowrap;
  align-content: stretch;
  box-sizing: border-box;
  overflow: hidden;
}

.music-player-content>* {
  width: 100%;
  box-sizing: border-box;
}

#musicPlayerWindow .folder-content {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
  min-width: 0;
}

#musicPlayerWindow {
  border: 1px solid #4f5668;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  background: #1b202c;
}

#musicPlayerWindow .title-bar {
  background: linear-gradient(90deg, #4d5670 0%, #313a51 45%, #7388a6 100%);
  border-bottom: 1px solid #0c111b;
}

#musicPlayerWindow .title {
  color: #e9efff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.65);
}

#musicPlayerWindow .close-btn {
  border: 1px solid #2a3244;
  background: linear-gradient(180deg, #d6dbe8 0%, #9da8bc 100%);
}

.music-now-playing {
  background: linear-gradient(180deg, #c4e26f 0%, #9ac146 100%);
  border: 1px solid #4f6f16;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #203900;
  font-family: 'Courier New', monospace;
}

.music-meta-line {
  font-size: 12px;
  line-height: 1.3;
}

.music-meta-line strong {
  color: #274402;
}

.music-controls-row {
  display: flex;
  gap: 6px;
}

.music-controls-row button {
  flex: 1;
  height: 30px;
  border: 1px solid #4b5367;
  background: linear-gradient(180deg, #d6deec 0%, #a8b4cb 45%, #8e99b0 100%);
  color: #1b2438;
  font-weight: 700;
  cursor: pointer;
}

#musicPlayerShuffleBtn[data-active='true'] {
  background: linear-gradient(180deg, #d7f7ae 0%, #9dd85b 48%, #81b947 100%);
  border-color: #527d26;
  color: #1f3709;
}

.music-volume-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #d4dced;
}

#musicPlayerVolume {
  accent-color: #8fb43f;
}

.music-playlist-wrap {
  border: 1px solid #475064;
  background: #10151f;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.music-playlist-title {
  background: linear-gradient(180deg, #3f485d 0%, #2b3346 100%);
  border-bottom: 1px solid #191f2c;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #d7deec;
}

.music-playlist-list {
  display: flex;
  flex-direction: column;
  overflow: auto;
  flex: 1;
  min-height: 0;
}

.music-track-item {
  border: 0;
  border-bottom: 1px solid #212a3b;
  background: transparent;
  text-align: left;
  padding: 6px 8px;
  cursor: pointer;
  color: #c8d0e1;
  font-size: 12px;
}

.music-track-item:hover {
  background: rgba(151, 187, 76, 0.16);
}

.music-track-item.is-active {
  background: linear-gradient(90deg, #6f8f2f 0%, #87a945 100%);
  color: #162600;
  font-weight: 700;
}

@media (max-width: 900px) and (pointer: coarse) {

  #optionsModal.modal-window,
  #termsModal.modal-window {
    position: fixed !important;
    top: max(8px, env(safe-area-inset-top)) !important;
    left: max(8px, env(safe-area-inset-left)) !important;
    width: calc(100vw - max(16px, env(safe-area-inset-left) + env(safe-area-inset-right))) !important;
    height: calc(100dvh - max(16px, env(safe-area-inset-top) + env(safe-area-inset-bottom))) !important;
    border: 1px solid #0d1f4e;
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(1, 8, 24, 0.65), inset 0 0 0 1px rgba(125, 168, 255, 0.22);
    background: linear-gradient(180deg, #c9d9f7 0%, #8ea9d8 10%, #e8eef9 10.5%, #eef3fb 100%);
    font-family: Verdana, Tahoma, sans-serif;
    overflow: hidden;
  }

  #certificateModal.certificate-modal {
    width: calc(100vw - max(16px, env(safe-area-inset-left) + env(safe-area-inset-right)));
    max-height: calc(100dvh - max(16px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
    min-height: 0;
  }

  #certificateModal .content.certificate-content {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    max-height: none;
    height: calc(100dvh - max(16px, env(safe-area-inset-top) + env(safe-area-inset-bottom)) - 54px);
    align-content: start;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: max(14px, calc(env(safe-area-inset-bottom) + 8px));
    box-sizing: border-box;
  }

  #certificateModal .certificate-profile-panel {
    gap: 10px;
  }

  #certificateModal .certificate-profile-frame {
    width: min(56vw, 220px);
    justify-self: center;
  }

  #certificateModal .certificate-profile-badge {
    padding: 10px 90px 10px 12px;
  }

  #certificateModal .certificate-profile-level {
    top: 10px;
    right: 10px;
    min-width: 72px;
    padding: 6px 10px 5px;
    font-size: 10px;
  }

  #certificateModal .certificate-sheet {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #certificateModal #certificateStats.certificate-sheet-list {
    max-height: clamp(120px, 22vh, 190px);
  }

  #certificateModal .certificate-sheet-block {
    min-height: 78px;
  }

  .modal-window .title-bar {
    min-height: 40px;
    padding: 8px 10px;
    background: linear-gradient(180deg, #5f83c8 0%, #325da8 55%, #224684 100%);
    border-bottom: 1px solid #173264;
    cursor: default;
  }

  .modal-window .title {
    font-size: 13px;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
  }

  .modal-window .close-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #0f285d;
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fbff 0%, #b7caed 100%);
    color: #0f285d;
    font-size: 14px;
  }

  .modal-window .content {
    height: calc(100% - 40px);
    padding: 10px;
    background: linear-gradient(180deg, #eef3fb 0%, #dde7f8 100%);
  }

  .options-desktop {
    gap: 10px;
    padding: 8px 8px 60px;
    background: linear-gradient(180deg, #dce9fb 0%, #d0e0f8 100%);
    background-image: repeating-linear-gradient(0deg,
        rgba(255, 255, 255, 0.25) 0,
        rgba(255, 255, 255, 0.25) 1px,
        transparent 1px,
        transparent 7px);
    background-size: auto;
  }

  .desktop-folders {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 4px;
  }

  .desktop-icon {
    width: 100%;
    min-height: 76px;
    border: 1px solid rgba(25, 51, 95, 0.22);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.65) 0%, rgba(217, 228, 246, 0.95) 100%);
    color: #10254f;
  }

  .desktop-icon span {
    color: #10254f;
    text-shadow: none;
    font-size: 10px;
  }

  .desktop-icon img {
    width: 30px;
    height: 30px;
  }

  .folder-window {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 56px;
    width: auto;
    max-width: none;
    min-height: 0;
    border: 1px solid #254f8f;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(18, 34, 69, 0.4);
    background: #eef3fb;
  }

  .folder-window .title-bar {
    min-height: 36px;
    padding: 6px 8px;
  }

  .title-actions {
    gap: 6px;
  }

  .folder-maximize {
    display: none;
  }

  .folder-content {
    padding: 8px;
    gap: 8px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0 0 10px 10px;
  }

  .modal-taskbar {
    height: 50px;
    border-top: 1px solid #274f8e;
    background: linear-gradient(180deg, #c8d8f5 0%, #a8c0e8 100%);
    padding: 0 6px;
  }

  .taskbar-logo,
  .taskbar-sound-btn,
  .taskbar-language-btn {
    height: 34px;
    border: 1px solid #375f9d;
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fbff 0%, #c6d7f2 100%);
    color: #10254f;
    font-size: 10px;
    font-weight: 700;
  }

  .taskbar-sound-btn img,
  .taskbar-logo img {
    width: 20px;
    height: 20px;
  }

  #projectsWindow .folder-content,
  #contactWindow .folder-content,
  #socialWindow .folder-content {
    align-content: flex-start;
  }

  #projectsWindow {
    height: auto;
    min-height: 0;
  }

  #snakeCanvas,
  #racingCanvas,
  #brickBreakerCanvas,
  #battleCityCanvas {
    width: min(100%, clamp(240px, 72vw, 310px)) !important;
    height: auto !important;
    max-height: min(44dvh, 310px) !important;
    margin: 6px !important;
  }

  .pdf-viewer-modal {
    padding: 8px;
  }

  .pdf-paper {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    border-radius: 12px;
    overflow: hidden;
  }

  #musicPlayerWindow .folder-content {
    padding: 8px;
    align-items: stretch;
    justify-content: flex-start;
  }

  #musicPlayerWindow.modal-window {
    background: #1b202c;
    border-color: #394256;
  }

  #musicPlayerWindow .title-bar {
    background: linear-gradient(90deg, #4d5670 0%, #313a51 45%, #7388a6 100%);
    border-bottom-color: #0c111b;
  }

  #musicPlayerWindow .content {
    background: #141924;
  }

  .music-meta-line {
    font-size: 11px;
  }

  .music-controls-row {
    gap: 6px;
  }

  .music-controls-row button {
    height: 34px;
    font-size: 11px;
  }

  .music-volume-row {
    grid-template-columns: auto 1fr;
  }

  #musicPlayerVolumeLabel {
    grid-column: 2;
    justify-self: end;
    font-size: 11px;
  }

  .music-playlist-wrap {
    min-height: 92px;
  }

  .music-track-item {
    font-size: 11px;
    padding: 7px 8px;
  }

  .mobile-brick-controls {
    --brick-btn-size: clamp(40px, 11vw, 52px);
    --brick-action-size: clamp(48px, 13vw, 60px);
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: min(92vw, 360px);
    bottom: calc(56px + env(safe-area-inset-bottom));
    z-index: 7200;
    display: flex;
    justify-content: center;
    gap: 16px;
    align-items: flex-end;
    pointer-events: none;
  }

  .mobile-brick-dpad,
  .mobile-brick-actions {
    pointer-events: auto;
    display: grid;
    gap: 6px;
  }

  .mobile-brick-dpad {
    grid-template-columns: repeat(3, var(--brick-btn-size));
    grid-template-rows: repeat(3, var(--brick-btn-size));
    grid-template-areas:
      '. up .'
      'left down right'
      '. . .';
  }

  .mobile-brick-dpad .mobile-brick-btn[data-code='ArrowUp'] {
    grid-area: up;
  }

  .mobile-brick-dpad .mobile-brick-btn[data-code='ArrowLeft'] {
    grid-area: left;
  }

  .mobile-brick-dpad .mobile-brick-btn[data-code='ArrowDown'] {
    grid-area: down;
  }

  .mobile-brick-dpad .mobile-brick-btn[data-code='ArrowRight'] {
    grid-area: right;
  }

  .mobile-brick-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: var(--brick-btn-size);
  }

  .mobile-brick-top-actions {
    display: flex;
    gap: 6px;
  }

  .mobile-brick-btn {
    width: var(--brick-btn-size);
    height: var(--brick-btn-size);
    border: 1px solid #10254f;
    border-radius: 12px;
    background: linear-gradient(180deg, #f5f9ff 0%, #bdcff0 100%);
    color: #112a57;
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 3px 0 #17386f;
    touch-action: none;
    user-select: none;
  }

  .mobile-brick-action {
    width: calc(var(--brick-action-size) + 4px);
    height: calc(var(--brick-action-size) + 4px);
    border-radius: 999px;
    font-size: 24px;
    background: linear-gradient(180deg, #faffd8 0%, #b5d172 100%);
    color: #22410f;
    border-color: #365a16;
    box-shadow: 0 3px 0 #2f5414;
  }

  .mobile-brick-start {
    width: calc(var(--brick-action-size) + 6px);
    height: calc(var(--brick-btn-size) - 2px);
    border-radius: 10px;
    font-size: 10px;
    letter-spacing: 0.3px;
    background: linear-gradient(180deg, #eaf4ff 0%, #b7ccee 100%);
  }

  .mobile-brick-reset {
    width: calc(var(--brick-action-size) + 6px);
    height: calc(var(--brick-btn-size) - 2px);
    border-radius: 10px;
    font-size: 10px;
    letter-spacing: 0.3px;
    background: linear-gradient(180deg, #fff4f2 0%, #f2c4bc 100%);
    color: #5a1f1a;
    border-color: #6a2a24;
  }

  .mobile-brick-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #17386f;
  }

  #snakeWindow .folder-content,
  #racingWindow .folder-content,
  #brickBreakerWindow .folder-content,
  #battleCityWindow .folder-content {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 6px !important;
    padding-bottom: 168px !important;
    box-sizing: border-box;
  }

  @media (max-height: 760px) {
    .mobile-brick-controls {
      --brick-btn-size: clamp(36px, 10vw, 46px);
      --brick-action-size: clamp(44px, 12vw, 56px);
      bottom: calc(52px + env(safe-area-inset-bottom));
      width: min(94vw, 340px);
      gap: 12px;
    }

    #snakeWindow .folder-content,
    #racingWindow .folder-content,
    #brickBreakerWindow .folder-content,
    #battleCityWindow .folder-content {
      padding-bottom: 150px !important;
    }
  }
}
