@import url('https://fonts.googleapis.com/css2?family=Zalando+Sans+Expanded:wght@200;300;400;500;600;700;800;900&display=swap');

:root {
  --pink: rgb(255, 121, 224);
  --cyan: #39e5e8;
  --black: #0a0a0a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Zalando Sans Expanded', sans-serif;
}

body {
  background: #fff;
  scroll-behavior: smooth;
}
@media screen and (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}


/* LOADING SCREEN */
#loadingScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 99999;
}

#animationWrapper {
  width: 50px;
  height: 50px;
  background-image: url('../images/frames.png');
  background-repeat: no-repeat;
  background-size: 400px 50px;
  image-rendering: pixelated;
  animation: playFrames .8s steps(8, jump-none) infinite;
  transform: scale(4);
  transform-origin: center;
}

@keyframes playFrames {
  from { background-position: 0% 0%; }
  to { background-position: 100% 0%; }
}

#loadingScreen p {
  color: white;
  position: absolute;
  bottom: 50px;
  font-size: 16px;
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background: #fff;
  color: #111;
  position: sticky;
  top: 0;
  z-index: 3000;
}

.logo {
  font-size: clamp(30px, 6vw, 60px);
}

/* HAMBURGER */
.toggle {
  width: 40px;
  height: 40px;
  background: url('../images/menu.png') center/contain no-repeat;
  cursor: pointer;
  position: relative;
  z-index: 4000;
}

.toggle.active {
  background: url('../images/icone-x-rose.png') center/contain no-repeat;
}

/* MENU */
.menu {
  position: fixed;
  top: 70px;
  right: 0;
  width: 250px;
  height: calc(100vh - 70px);
  background: white;
  transform: translateX(100%);
  transition: 0.4s ease;
  z-index: 2500;

  display: flex;
  justify-content: center;
  align-items: center;

  border-left: 2px solid black;
}

.menu.active {
  transform: translateX(0);
}

.menu ul {
  list-style: none;
}

.menu li {
  margin: 18px 0;
  transition: transform 0.2s ease;
}

.menu a {
  text-decoration: none;
  font-size: 20px;
  color: black;
  transition: color 0.2s ease;
}

.menu li:hover {
  transform: scale(1.1);
}

.menu li:hover a,
.menu a:hover {
  color: var(--pink);
}

/* HERO */
.hero {
  width: 100%;
  height: 50vh;
  overflow: hidden;
  position: relative;
}

.hero picture,
.hero img {
  width: 100%;
  height: 100%;
  display: block;
}

.hero img {
  object-fit: cover;
  object-position: center;
}

/* TEXT LOOP */
.text-loop {
  width: 100%;
  overflow: hidden;
  background: #000;
  border-top: 2px solid var(--pink);
  border-bottom: 2px solid var(--pink);
  padding: 2px 0;
}

.text-loop-track {
  display: flex;
  width: max-content;
  animation: loopText 14s linear infinite;
}

.text-loop-track span {
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
  text-transform: lowercase;
  color: var(--cyan);
  padding-right: 30px;
  letter-spacing: 7px;
}

@keyframes loopText {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* STARTER PACK */
.starter-pack {
 padding: 80px 20px;
  text-align: center;
}

.starter-editorial-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 175px;
  border-bottom: 2px solid black;
  padding-bottom: 10px;
}

.starter-editorial-header h2 {
  font-size: clamp(28px, 5vw, 64px);
  line-height: 0.9;
  text-transform: lowercase;
  letter-spacing: -2px;
}

.starter-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: black;
}
@media (max-width: 768px) {
  .starter-editorial-header {
    display: block;
  }

  .starter-editorial-header h2 {
    margin-top: 10px;
    font-size: 42px;
  }

  .starter-label {
    font-size: 10px;
  }
}
.starter-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 500px;
  margin: 0 auto;
}

/* CHARACTER */
.character {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.character img {
  width: 180px;
  display: block;
}

/* ITEMS */
.item {
  position: absolute;
  width: clamp(65px, 7vw, 95px);
  cursor: pointer;
  transition: transform 0.15s ease, left 0.1s ease, top 0.1s ease;
  transform: rotate(-3deg);
  z-index: 5;
}

.item img {
  width: 100%;
  display: block;
  pointer-events: none;
}

.item:hover {
  transform: rotate(6deg) scale(1.1);
  z-index: 20;
}

.item:active {
  cursor: grabbing;
  transform: scale(1.1);
}

/* TOOLTIP */
.item::after {
  content: attr(data-name);
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: black;
  color: white;
  font-size: 12px;
  padding: 3px 7px;
  border-radius: 10px;
  opacity: 0;
  transition: 0.2s ease;
  white-space: nowrap;
  pointer-events: none;
}

.item:hover::after {
  opacity: 1;
}

/* ITEM POSITIONS */
.sewing { top: 10%; left: 15%; }
.controller { top: 30%; left: 5%; }
.mic { top: 55%; left: 12%; }
.tattoo { top: -10%; left: 5%; }
.wig { bottom: 10%; left: 20%; }
.sushi { bottom: 20%; left: 0%; }

.dj { top: 10%; right: 15%; }
.book { top: 30%; right: 5%; }
.crystals { top: 55%; right: 12%; }
.smoothie { bottom: 10%; right: 20%; }
.cam { top: -10%; right: 0%; }
.superstar { top: 60%; right: 0%; }

.minecraft { top: -25%; right: 45%; }

/* XP WINDOW */
.xp-window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  width: 280px;
  background: var(--black);
  border: 2px solid var(--pink);
  box-shadow: 4px 4px 0 var(--pink);
  display: none;
  z-index: 100;
  font-family: 'Courier New', monospace;
}

.xp-header {
  background: linear-gradient(to right, #ff79e0, #ff3ec9);
  color: black;
  padding: 6px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.xp-title {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  font-family: 'Courier New', monospace;
}

.xp-buttons {
  display: flex;
  gap: 4px;
}

.btn {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid black;
  cursor: pointer;
}

.close {
  background: #ff2b6a;
}

.xp-content {
  padding: 12px;
  font-size: 13px;
  color: var(--pink);
  line-height: 1.4;
  font-family: 'Courier New', monospace;
}

.clothes-carousel {
  padding: 70px 20px;
  overflow: hidden;
}

.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.carousel-title {
  font-size: clamp(30px, 6vw, 80px);
}

.carousel-buttons button {
  border: 1px solid black;
  background: white;
  padding: 8px 14px;
  cursor: pointer;
}
.carousel-buttons button:hover {
color: black;
background-color: #ff79e0;
}
.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 30px 0;
  cursor: grab;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.clothes-card {
  flex: 0 0 calc((100% - 72px) / 4);
  scroll-snap-align: start;
  transition: transform 0.25s ease;
}

.clothes-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.clothes-card h3 {
  margin-top: 12px;
  font-size: 18px;
}

.clothes-card p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
}

/* tablet */
@media (max-width: 900px) {
  .clothes-card {
    flex-basis: calc((100% - 24px) / 2);
  }
}

/* mobile */
@media (max-width: 600px) {
  .clothes-carousel {
    padding: 50px 15px;
  }

  .carousel-track {
    gap: 18px;
  }

  .clothes-card {
    flex-basis: 72%;
  }

  .carousel-buttons button {
    padding: 6px 10px;
  }
}

/* VVS COLOR PALETTE */
.vvs-palette {
  padding: 80px 20px;
  background: #fff;
}

.palette-editorial-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
  border-bottom: 2px solid black;
  padding-bottom: 10px;
}

.palette-editorial-header h2 {
  font-size: clamp(28px, 5vw, 64px);
  line-height: 0.9;
  text-transform: lowercase;
  letter-spacing: -2px;
}

.palette-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: black;
}

.palette-grid {
  display: flex;
  width: 100%;
  min-height: 600px;
  border: 2px solid black;
  overflow: hidden;
}

/* INDIVIDUAL PANEL */
.color-panel {
  position: relative;
  flex: 1;
  overflow: hidden;
  padding: 20px;
  background: var(--panel-color);
  filter: grayscale(100%) brightness(0.65);
  cursor: pointer;
  border-right: 2px solid black;
  transition:
    flex 0.45s ease,
    filter 0.35s ease,
    transform 0.35s ease;
}

.color-panel:last-child {
  border-right: none;
}

/* subtle dark overlay before hover */
.color-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  opacity: 1;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.palette-grid:hover .color-panel {
  flex: 0.85;
}

.palette-grid .color-panel:hover,
.palette-grid .color-panel:focus {
  flex: 1.5;
  filter: grayscale(0%) brightness(1);
  z-index: 2;
}

.color-panel:hover::after,
.color-panel:focus::after {
  opacity: 0;
}

/* COLOR CODES */
.color-code {
  position: relative;
  z-index: 2;
  font-size: 10px;
  line-height: 1.45;
  font-weight: 800;
  text-transform: uppercase;
  color: black;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.color-panel:hover .color-code,
.color-panel:focus .color-code {
  opacity: 1;
  transform: translateY(0);
}

.color-panel h3 {
  position: absolute;
  bottom: 30%;
  left: 50%;
  z-index: 2;

  transform: translateX(-50%) rotate(-90deg);
  transform-origin: center;

  font-size: clamp(28px, 4vw, 54px);
  font-weight: 900;
  white-space: normal;
  line-height: 1;

  opacity: 0.55;

  text-shadow:
    0 0 8px currentColor;
  

  transition: opacity 0.35s ease, text-shadow 0.35s ease;
}

.color-panel:hover h3,
.color-panel:focus h3 {
  opacity: 1;
  text-shadow:
    0 0 14px currentColor,
    2px 2px 0 rgba(0, 0, 0, 0.2);
}


/* PALETTE COLORS */
.violet {
  --panel-color: #9D4EDD;
}

.citric {
  --panel-color: #C8FF3D;
}

.aquamarine {
  --panel-color: #39e5e8;
}

.fuchsia {
  --panel-color: #FF2FAF;
}

/* INVERTED TITLE COLORS */
.violet h3 {
  color: #C8FF3D;
}

.citric h3 {
  color: #9D4EDD; 
}

.aquamarine h3 {
  color: #FF2FAF; 
}

.fuchsia h3 {
  color: #8FEBDD;
}

.violet .color-code {
  color: #C8FF3D;
}

.citric .color-code {
  color: #9D4EDD;
}

.aquamarine .color-code {
  color: #FF2FAF;
}

.fuchsia .color-code {
  color: #8FEBDD;
}

/* MOBILE: no hover needed */
@media (max-width: 768px) {
  .palette-editorial-header {
    display: block;
  }

  .palette-editorial-header h2 {
    margin-top: 10px;
    font-size: 42px;
  }

  .palette-label {
    font-size: 10px;
  }
}
@media (max-width: 768px) {
  .vvs-palette {
    padding: 60px 15px;
  }

  .palette-grid {
    flex-direction: column;
    min-height: auto;
  }

  .color-panel {
    min-height: 150px;
    flex: none;
    filter: grayscale(0%) brightness(1);
    border-right: none;
    border-bottom: 2px solid black;
  }

  .color-panel:last-child {
    border-bottom: none;
  }

  .palette-grid:hover .color-panel,
  .palette-grid .color-panel:hover,
  .palette-grid .color-panel:focus {
    flex: none;
    transform: none;
  }

  .color-panel::after {
    opacity: 0;
  }

  .color-code {
    opacity: 1;
    transform: none;
    font-size: 9px;
  }

  .color-panel h3 {
    left: auto;
    right: 18px;
    bottom: 16px;
    transform: none;
    font-size: 34px;
    opacity: 1;
  }

  .color-panel:active {
    box-shadow: inset 0 0 0 6px white;
  }
}

#home a {
color: #111;
text-align: center;
text-decoration: none;
list-style-type: none;
display: block;
}

#home a:hover,
#home a:focus {
    color: rgb(255, 121, 224);
    letter-spacing: 6px;
    text-decoration: none;
}


.footer {
  overflow: hidden;
  padding: 60px 0 20px;
  text-align: center;
}

.footer-logo {
  font-size: clamp(60px, 15vw, 220px);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -5px;
  color: black;
  white-space: nowrap;
}

.footer-logo span {
  display: inline-block;
  transition: transform 0.25s ease, color 0.25s ease;
  cursor: default;
}

.footer-logo span:hover {
  transform: translateY(-25px) rotate(8deg);
  color: var(--pink);
}

.footer-logo span:nth-child(even):hover {
  transform: translateY(-30px) rotate(-8deg);
}

/* MOBILE */
@media (max-width: 768px) {
  .hero {
    height: 40vh;
  }

  .hero img {
    object-position: center top;
  }

  .menu {
    top: 65px;
    height: calc(100vh - 65px);
    width: 220px;
  }

  .text-loop {
    padding: 8px 0;
  }

  .text-loop-track span {
    font-size: 16px;
    letter-spacing: 4px;
  }

  .starter-container {
    height: 420px;
  }

  .starter-title {
    font-size: 32px;
    margin-bottom: 50px;
  }

  .character img {
    width: 120px;
  }

  .item {
    width: 55px;
  }

  .xp-window {
    width: 250px;
  }

  footer {
    font-size: 42px;
  }
}