:root {
  --void: #000;
  --panel: #0b0b0b;
  --panel2: #1c1c1c;
  --edge: #d9d9d9;
  --glow: #fff;
  --ice: #e8e8e8;
  --lilac: #fff;
  --text: #fff;
}

*,
*::before,
*::after {
  box-sizing: border-box
}

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%
}

img,
iframe {
  max-width: 100%
}

img {
  filter: grayscale(1) contrast(1.1);
  transition: filter .3s
}

img:hover {
  filter: none
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  color: var(--text);
  font-family: 'M PLUS Rounded 1c', 'MS UI Gothic', sans-serif;
  font-size: clamp(14px, 1.2vw + 10px, 17px);
  line-height: 1.5;
  background: var(--void);
  overflow-x: hidden;
  cursor: url(https://i.imgur.com/ywLgtsX.gif), auto;
}

a,
label {
  cursor: url(https://i.imgur.com/V0kF1Ce.gif), pointer
}

a {
  color: var(--ice);
  text-decoration: none
}

.sky {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url(https://blinkies.cafe/purple-stars-bg.gif);
  filter: grayscale(1) brightness(.55);
  animation: drift 90s linear infinite
}

.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0, rgba(255, 255, 255, .1), transparent 60%),
    linear-gradient(transparent 60%, var(--void))
}

@keyframes drift {
  to {
    background-position: 600px 600px
  }
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: repeating-linear-gradient(transparent 0 2px, rgba(0, 0, 0, .12) 2px 3px)
}

.wrap {
  width: min(960px, calc(100% - 16px));
  margin: clamp(6px, 2vw, 14px) auto;
  display: grid;
  gap: 8px
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 12px;
  height: 64px;
  background: #000;
  overflow: hidden;
  border: 3px double var(--edge);
  outline: 1px solid #555;
  outline-offset: 2px
}

.logo {
  margin: 0;
  font: 400 clamp(14px, 3.6vw, 22px)/1 'Press Start 2P', 'Courier New', monospace;
  letter-spacing: .02em;
  color: #fff;
  text-shadow: 2px 2px 0 #666
}

.logo span {
  display: inline-block;
  animation: bob 1.2s steps(2) infinite;
  animation-delay: calc(var(--i)*.12s)
}

@keyframes bob {
  50% {
    transform: translateY(-3px)
  }
}

.tag {
  margin: 0;
  font: 400 clamp(6px, 1.4vw, 8px)/1.6 'Press Start 2P', 'Courier New', monospace;
  color: var(--ice);
  text-align: right
}

.tag::after {
  content: "_";
  margin-left: 2px;
  animation: blink 1s steps(1) infinite
}

@keyframes blink {
  50% {
    opacity: 0
  }
}

.belt {
  overflow: hidden;
  border: 2px ridge var(--edge);
  background: var(--panel);
  padding: 3px 0
}

.belt .track {
  display: flex;
  gap: 6px;
  width: max-content;
  animation: belt 40s linear infinite
}

.belt.slow .track {
  animation-duration: 60s;
  animation-direction: reverse
}

.belt:hover .track {
  animation-play-state: paused
}

.belt img {
  height: 24px;
  width: auto;
  display: block
}

.belt.stamps img {
  height: 50px;
  width: 100px;
  object-fit: cover
}

@keyframes belt {
  to {
    transform: translateX(-50%)
  }
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 22%) minmax(0, 1fr) minmax(0, 22%);
  grid-template-areas: "left center right";
  gap: 8px;
  align-items: start
}

.left {
  grid-area: left
}

.center {
  grid-area: center
}

.right {
  grid-area: right
}

.body,
.about p {
  overflow-wrap: anywhere
}

.win {
  border: 2px ridge var(--edge);
  background: var(--panel);
  box-shadow: 0 0 0 1px #000, 0 0 0 3px #000, 4px 4px 0 #555;
  opacity: 0;
  transform: scale(.94) translateY(12px);
  animation: open .5s cubic-bezier(.2, 1.3, .4, 1) forwards;
  animation-delay: calc(var(--d, 0)*.12s + .2s)
}

@keyframes open {
  to {
    opacity: 1;
    transform: none
  }
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 8px;
  font-weight: 800;
  background: linear-gradient(90deg, #000, #777);
  border-bottom: 2px ridge var(--edge)
}

.bar i {
  display: flex;
  gap: 4px
}

.bar i b {
  width: 11px;
  height: 11px;
  border: 1px solid var(--ice);
  background: var(--panel2);
  transition: .2s
}

.bar i b:hover {
  background: var(--lilac);
  transform: rotate(90deg)
}

.body {
  padding: 10px
}

.links {
  display: grid;
  gap: 8px
}

.kawaii-button {
  display: block;
  padding: 6px 10px;
  border: 2px dashed var(--edge);
  border-radius: 3px;
  background: linear-gradient(90deg, transparent 50%, rgba(255, 255, 255, .22) 50%) 0 0/200% 100%;
  font-weight: 800;
  transition: background-position .35s, transform .25s, box-shadow .25s
}

.kawaii-button::before {
  content: "♡ ";
  color: var(--lilac);
  display: inline-block;
  transition: transform .3s
}

.kawaii-button:hover {
  background-position: -100% 0;
  transform: translateX(6px) rotate(-1deg);
  box-shadow: 3px 3px 0 #777;
  color: #fff
}

.kawaii-button:hover::before {
  transform: scale(1.5) rotate(20deg)
}

.fans {
  overflow: hidden;
  margin-top: 8px;
  background: var(--void);
  padding: 6px 0
}

.fans .track {
  display: flex;
  gap: 5px;
  width: max-content;
  animation: belt 30s linear infinite
}

.fans img {
  height: 50px;
  border: 2px solid var(--panel2);
  border-radius: 3px;
  transition: .25s
}

.fans img:hover {
  transform: scale(1.2) rotate(4deg);
  border-color: var(--lilac)
}

.ads {
  height: 150px;
  overflow: hidden;
  margin-top: 8px;
  background: var(--void);
  text-align: center
}

.ads .col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  animation: up 18s linear infinite
}

.ads:hover .col {
  animation-play-state: paused
}

.ads img {
  height: 120px;
  border: 2px solid var(--edge);
  border-radius: 3px;
  transition: .25s
}

.ads img:hover {
  transform: scale(1.08)
}

@keyframes up {
  to {
    transform: translateY(-50%)
  }
}

.about {
  min-height: 300px;
  text-align: center
}

.about h2 {
  margin: 12px 0 4px;
  font-size: 18px;
  text-decoration: underline wavy var(--glow);
  text-underline-offset: 5px
}

.about p {
  margin: 4px 0
}

.stat {
  display: inline-block;
  margin: 2px 4px;
  padding: 1px 10px;
  border: 1px solid var(--edge);
  border-radius: 99px;
  background: var(--panel2)
}

.player {
  border: 2px ridge var(--edge);
  margin-top: 8px;
  box-shadow: 0 0 16px rgba(255, 255, 255, .2);
  transition: box-shadow .3s
}

.player:hover {
  box-shadow: 0 0 28px rgba(255, 255, 255, .45)
}

.player iframe {
  display: block;
  width: 100%;
  height: 166px;
  border: 0
}

.avatar {
  display: block;
  margin: 6px auto;
  width: clamp(90px, 60%, 130px);
  aspect-ratio: 1;
  object-fit: cover;
  border: 3px double var(--lilac);
  border-radius: 50%;
  animation: float 4s ease-in-out infinite, halo 3s ease-in-out infinite
}

@keyframes float {
  50% {
    transform: translateY(-8px)
  }
}

@keyframes halo {
  50% {
    box-shadow: 0 0 22px var(--lilac)
  }
}

.pics {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  padding: 6px
}

.pics img {
  width: 30%;
  min-width: 56px;
  transition: .25s
}

.pics img:hover {
  transform: scale(1.25) rotate(-5deg);
  position: relative;
  z-index: 2
}

.spark {
  position: fixed;
  z-index: 999;
  pointer-events: none;
  font: 13px monospace;
  animation: fall 1s ease-out forwards
}

@keyframes fall {
  to {
    transform: translate(var(--x), var(--y)) scale(.2);
    opacity: 0
  }
}

:focus-visible {
  outline: 2px solid var(--lilac);
  outline-offset: 2px
}

@media(min-width:1400px) {
  .wrap {
    width: min(1120px, calc(100% - 40px))
  }

  .ads {
    height: 180px
  }

  .ads img {
    height: 150px
  }
}

@media(min-width:2000px) {
  .wrap {
    width: min(1400px, calc(100% - 80px))
  }

  body {
    font-size: 20px
  }
}

@media(max-width:1024px) {
  .grid {
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
    grid-template-areas: "left center" "right right"
  }

  /* columna derecha pasa abajo en fila */
  .right .body {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center
  }

  .right .avatar {
    margin: 0;
    width: 110px
  }

  .right .pics {
    flex: 1 1 220px;
    max-width: 420px
  }

  .right .pics img {
    width: 15%
  }
}

@media(max-width:768px) {
  .grid {
    grid-template-columns: minmax(0, 170px) minmax(0, 1fr)
  }

  .ads {
    height: 130px
  }

  .ads img {
    height: 105px
  }

  .fans img {
    height: 42px
  }
}

@media(max-width:600px) {
  .hero {
    flex-direction: column;
    justify-content: center;
    height: auto;
    gap: 8px;
    padding: 10px 8px;
    text-align: center
  }

  .tag {
    text-align: center
  }

  .grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "center" "left" "right"
  }

  .links {
    grid-template-columns: 1fr 1fr
  }

  .kawaii-button {
    text-align: center;
    padding: 8px 6px
  }

  .ads {
    height: 120px
  }

  .ads img {
    height: 96px
  }

  .about {
    min-height: 0
  }

  .about h2 {
    font-size: 1.1em
  }

  .stat {
    margin: 2px
  }

  .belt img {
    height: 20px
  }

  .belt.stamps img {
    height: 40px;
    width: 80px
  }

  .right .pics img {
    width: 30%
  }

  .win {
    box-shadow: 0 0 0 1px #000, 3px 3px 0 #555
  }
}

@media(max-width:360px) {
  .links {
    grid-template-columns: 1fr
  }

  .logo {
    font-size: 13px
  }

  .body {
    padding: 8px
  }

  .bar {
    font-size: .9em;
    padding: 2px 6px
  }
}

@media(max-height:480px) and (orientation:landscape) {
  .hero {
    height: 48px;
    padding: 4px 10px;
    flex-direction: row
  }

  .logo {
    font-size: 14px
  }

  .player iframe {
    height: 120px
  }
}

@media(hover:none) {
  .kawaii-button {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center
  }

  .kawaii-button:hover,
  .fans img:hover,
  .ads img:hover,
  .pics img:hover,
  .bar i b:hover {
    transform: none
  }

  img {
    filter: grayscale(1) contrast(1.1)
  }

  img:hover {
    filter: grayscale(1) contrast(1.1)
  }

  .belt:hover .track,
  .ads:hover .col {
    animation-play-state: running
  }
}

@media print {

  .sky,
  body::after,
  .spark {
    display: none
  }

  body {
    background: #fff;
    color: #000
  }

  .win {
    opacity: 1;
    transform: none;
    box-shadow: none;
    animation: none
  }
}

@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important
  }

  .win {
    opacity: 1;
    transform: none
  }
}