<style>



:root {
    --color-bg: #000000;
    --color-text: #ffffff;
    --color-accent: #fcffff;
    --color-border: #fcffff;
    transition: --color-accent 0.3s ease, --color-border 0.3s ease;
--like-color: #1ce279;
  --dislike-color: #ec2020;
  --bar-bg: #1c1c1c;

  --radius: 14px;
  --speed: 0.7s;
}

.vote-widget {
  width: auto;

}

body {
    background: linear-gradient(to bottom, #0d0d0d, #040505);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: #ffffff;
    font-family: 'Hind Madurai', sans-serif;
    max-width: 1080px;
    margin: auto;
    padding: 2rem;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
}

/* ---------- BUTTONS ---------- */

.vote-buttons {
  display: flex;
  gap: 5px;
  margin-top: 14px;
margin-bottom: -25px;
align-items: center;
    justify-content: center;
text-align: center;
}

.vote-btn {
  width: 42px;
  height: 42px;
  border-radius: 3px;
box-shadow: 0px 0px 10px rgba(252, 255, 255, 0.09);
border:none;

  background:none;
  cursor: pointer;

  transition:
    transform 0.15s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}
.vote-btn img {
  width: 22px;
  height: 28px;
  pointer-events: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.vote-btn:hover {
  transform: scale(1.15);
}

.vote-btn:active {
  transform: scale(0.9);
}

.vote-btn.active.like {
  background: #1ce279;

}

.vote-btn.active.dislike {
  background: #ec2020;

}

/* ---------- GRAPH ---------- */

.vote-graph {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 25px;
  padding: 10px;
  background: var(--bg);
  border-radius: var(--radius);

  animation: graphPop 0.45s cubic-bezier(.25,1.4,.5,1);
}

.column {
  position: relative;
  width: 40px;
margin: 0 9.5px;
  height: 70%;
  display: flex;
  align-items: flex-end;
}

.column-fill {
  width: 100%;
  height: 0%;
  border-radius: 3px;
  transition:
    height var(--speed) cubic-bezier(.2,1.4,.4,1);
}

.like-column .column-fill {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, #1ce279, white 25%),
    #1ce279
  );
}

.dislike-column .column-fill {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, #ec2020, white 25%),
    #ec2020
  );
}

/* ---------- LABELS ---------- */

.label {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;

}

.like-label {
  background: rgba(10, 183, 92, 0.8);
}

.dislike-label {
  background: rgba(190, 13, 13, 0.8);
}

/* ---------- UTIL ---------- */

.hidden {
  display: none;
}

/* ---------- ANIMATIONS ---------- */

@keyframes graphPop {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes labelFloat {
  from {
    transform: translate(-50%, 6px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}
* {
    box-sizing: border-box;
}


@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.game-score, .game-score-horizontal, .modal-score {
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

h1, h2, h3, h4 {
    font-family: 'Karla', sans-serif;
    color: var(--color-accent);
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.12);
    margin-bottom: 5px;
    margin-top: 6px;
    width: auto;
    animation: fadeInUp 0.8s ease-out;

}

h1 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    animation: expandWidth 2s ease-in-out infinite alternate;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

p {
    font-size: 1rem;
    line-height: 1.6;
    border-radius: 3px;
    padding: 0.2rem;
box-shadow: 0px 0px 10px rgba(252, 255, 255, 0.09);
    max-width: auto;
    transition: all 0.3s ease;
    color: #ffffff;
}

p:hover {
    box-shadow: 0px 0px 15px rgba(252, 255, 255, 0.19);
}



@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

a {
    color: #4d9dff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: #0055cc;
    transform: translateY(-2px);
}

a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    transition: width 0.3s ease;
}

a:hover::before {
    width: 100%;
}

#wave-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.page-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px;
    animation: slideInFromTop 0.8s ease-out;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-title {
    font-family: 'Karla', sans-serif;
    color:white;
    font-size: 5rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.12);
    text-align: center;
    animation: glow 2s ease-in-out infinite alternate;
}


.page-subtitle {
  background: linear-gradient(to bottom, #040505 70%, #0d0d0d 90%);
  box-shadow: 0px 0px 10px rgba(252, 255, 255, 0.18);
    padding: 0.5rem;
    font-size: 1rem;
    color:#ffffff;
    max-width: 800px;
    margin: 0 auto 0.4rem;
    line-height: 1.6;
    transition: all 0.3s ease;
    animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.disclaimer {
background: linear-gradient(to bottom, #1a0000 70%, #290000 90%);
  box-shadow: 0px 0px 10px rgba(252, 255, 255, 0.18);
color: white;
    padding: 0.5rem;
    margin: 0 auto 2rem;
margin-top: -20px;
    max-width: 800px;
    border-radius: 3px;
    font-size: 0.85rem;
    animation: shake 0.5s ease-in-out 0.1s both;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
 color:white;
}

.search-box {
    width: 100%;
    max-width: 500px;
    padding: 0.8rem 1.2rem;
    border-radius: 3px;
    font-family: 'Hind Madurai', sans-serif;
    font-size: 1rem;
      box-shadow: 0px 0px 10px rgba(252, 255, 255, 0.18);
    transition: all 0.3s ease;
    outline: none;
color: white;
    animation: typewriter 2s steps(20) 1s both;
  background: linear-gradient(to bottom, #040505 70%, #0d0d0d 90%);

}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

.search-box:focus {
      box-shadow: 0px 0px 10px rgba(252, 255, 255, 0.38);

    transform: scale(1.02);
}

.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1rem;
    padding: 10px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    animation: stagger 0.6s ease-out forwards;
}

@keyframes stagger {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card-horizontal {
    background: linear-gradient(to bottom, #040505 75%, #0d0d0d 92%);
    border-radius: 3px;
    padding: 8px;
  box-shadow: 0px 0px 10px rgba(252, 255, 255, 0.28);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 80px;
    position: relative;
    animation: cardAppear 0.5s ease-out;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.game-card-horizontal:hover {
    transform: translateY(-4px) scale(1.05);
      box-shadow: 0px 0px 10px rgba(252, 255, 255, 0.58);
}

.game-icon-horizontal {
    width: 50px;
    height: 50px;
    border-radius: 3px;
    object-fit: cover;
  box-shadow: 0px 0px 10px rgba(252, 255, 255, 0.28);
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

.game-card-horizontal:hover .game-icon-horizontal {
    transform: rotate(5deg) scale(1.1);
}

.game-title-horizontal {
    display: none;
}

.game-score-horizontal {
    font-family: Karla, sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
      background: black;
    background-size: 200% 200%;
    animation: gradientFlow 1.25s ease infinite;
    color: white;
    padding: 3px 10px;
    border-radius: 3px;
    margin-top: 4px;
    transition: all 0.3s ease;
box-shadow: 0px 0px 10px rgba(252, 255, 255, 0.48);
}

.favorite-icon {
    position: absolute;
    top: -15px;
    right: -10px;
    font-size: 25px;
    color: gold;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2) ; }
}

.favorite-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-left: 10px;
}

.switch-label {
    margin-left: 8px;
    font-size: px;
}

.favorite-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: relative;
    display: inline-block;
    min-width: 39px;
    width: 40px;
    height: 24px;
    background: linear-gradient(to bottom, #040505 75%, #0d0d0d 92%);
  box-shadow: 0px 0px 10px rgba(252, 255, 255, 0.38);

    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    right: 50px;
    background: linear-gradient(to bottom, #ffffff, #d4d4d4);
    transition: .4s;
    border-radius: 20px;
}

input:checked + .slider {
    background: linear-gradient(to bottom, #ffdd00, #c9af00);
    animation: switchGlow 1.5s ease-in-out infinite;
}

@keyframes switchGlow {
    0%, 100% { box-shadow: 0 0 5px gold; }
    50% { box-shadow: 0 0 15px gold; }
}

input:checked + .slider:before {
    transform: translateX(100%);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--modal-rgb), 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: scale(0);
    pointer-events: none;
    overflow-y: auto;
}

.modal.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    animation: modalAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.7) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: linear-gradient(to bottom, #040505 75%, #0d0d0d 92%);
    padding: 2rem;
    border-radius: 3px;
    max-width: 900px;
    width: 90%;
    color: var(--color-accent);
    font-family: inherit;
  box-shadow: 0px 0px 10px rgba(252, 255, 255, 0.18);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: contentSlide 0.5s ease-out;
}

@keyframes contentSlide {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-button {
    position: absolute;
    top: -0.65rem;
    right: 0.3rem;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-button:hover {
    transform: scale(1.2);
    color: #ff4444;
}

.modal-body {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: stretch;
    animation: fadeIn 0.6s ease-out 0.2s both;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


.modal-left {
background: none;
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    gap: 1px;
border-radius: 3px;
 box-shadow: 0px 0px 10px rgba(252, 255, 255, 0.18);
transition: all 0.3s ease;
align-items: center;
    justify-content: center;
text-align: center;
}

#container3D {
    width: 220px !important;
    height: 340px !important;
    box-shadow: 0px 0px 10px rgba(252, 255, 255, 0.18);
    border-radius: 3px;
    transition: all 0.3s ease;
padding-top:-100px;
}

.modal-left:hover {
    transform: translateX(-5px);
}

.modal-cover {
    width: 200px;
    height: 100%;
    border-radius: 3px;
    box-shadow: 0 12px 25px rgba(0, 90, 150, 0.35);
    transition: all 0.3s ease;
}

.modal-cover:hover {
    transform: scale(1.05) rotate(2deg);
}



.modal-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.modal-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideInRight 0.6s ease-out 0.3s both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.modal-header h2 {
  box-shadow: 0px 0px 10px rgba(252, 255, 255, 0.18);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 3px;
    padding: 5px 10px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.modal-header h2:hover {
    transform: translateX(5px);
      box-shadow: 0px 0px 10px rgba(252, 255, 255, 0.28);

}


@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.modal-score {
    font-family: 'Karla', sans-serif;
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(45deg, #4d9dff, #0073ff);
    background-size: 200% 200%;
    animation: gradientFlow 3s ease infinite;
    color: white;
    padding: 2px 10px;
    border-radius: 3px;
    max-width: 78px;
    transition: all 0.3s ease;
}

.modal-score:hover {
    transform: scale(1.5) rotate(5deg);
}

.modal-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    animation: staggerMeta 0.6s ease-out 0.4s both;
}

@keyframes staggerMeta {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-meta p {
    margin: 0;
    font-size: 0.9em;
    color: #a3a3a3;
    padding: 0.3rem;
    transition: all 0.3s ease;
}

.modal-meta p:hover {
    transform: translateY(-3px);
    background: rgba(4, 5, 5, 0.5);
}

.modal-review-container {
    position: relative;
    margin: 2px 0 0px;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.modal-review {
    margin: 2px 0 0px;
    line-height: 1.5;
    color: white;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
    transition: all 0.3s ease;
}

.modal-review.collapsed {
    max-height: 500px;
    overflow: hidden;
}

.review-toggle {
    background: none;
    border: none;
    color: var(--color-accent);
    cursor: pointer;
    padding: 0;
    font-weight: bold;
    margin-left: 5px;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.review-toggle:hover {
    transform: scale(1.1);
    color: #0055cc;
}
.modal-vote {

margin-top: -15px;
padding:10px;
border-radius: 3px;
transition: all 0.3s ease;
align-items: center;
    justify-content: center;
text-align: center;
max-height:180px;

}




.modal-video {
max-width: 250px;
max-height:180px;
margin-top: 10px;
box-shadow: 0px 0px 10px rgba(252, 255, 255, 0.18);
padding:10px;
border-radius: 3px;
transition: all 0.3s ease;
align-items: center;
    justify-content: center;
text-align: center;
}

.modal-video:hover {
box-shadow: 0px 0px 10px rgba(252, 255, 255, 0.28);
transition: all 0.3s ease;
}
.modal-video iframe {
    border-radius: 3px;
    height: 126px;
    transition: all 0.3s ease;
}

.modal-video iframe:hover {
    transform: scale(1.02);
}

.music-player{
  border-radius:3px;
  padding:12px;
  margin-top:2px;
max-width:270px;
margin-bottom:-35px;

}

.music-title{
  overflow:hidden;
  white-space:nowrap;
  border-bottom:white;
  margin-bottom:8px;
  padding-bottom:4px;
  font-size:14px;
font-style: italic;
}

.music-title span{
  display:inline-block;
  padding-left:100%;
  animation:scrollTitle 7s linear infinite;
}

@keyframes scrollTitle{
  from{transform:translateX(0);}
  to{transform:translateX(-100%);}
}

.music-controls{
  display:flex;
  align-items:center;
  gap:12px;
}

#playPauseBtn{
  background:var(--color-accent);
  color:white;
  width:35px;
  height:35px;
  border-radius:3px;
  cursor:pointer;
object-fit:contain;
display:flex;
  justify-content:center; /* centra horizontalmente */
  align-items:center;     /* centra verticalmente */


}

#playPauseBtn2{
  width:20px;
  height:20px;

}

#playPauseBtn:hover{
  background:#444;
}


#volumeSlider{
  width:100%;
  height:12px;
  border-radius:4px;
  background:linear-gradient(to right,var(--color-accent) 25%,#040505 25%);
  appearance:none;
}

.music-player iframe{
  width:0;
  height:0;
  border:0;
}

#themeToggle {
  position: fixed;
  top: 10px;
  right: 10px;
  font-size: 24px;
  background: linear-gradient(to bottom, #040505 70%, #0d0d0d 90%);
  border-radius: 3px;
  box-shadow: 0px 0px 10px rgba(252, 255, 255, 0.18);
  cursor: pointer;
color: #ffff;
}

@media (max-width: 780px) {

    body {
    animation: none;
  }

  .game-score,
  .game-score-horizontal,
  .modal-score {
    animation: none;
  }

  .music-player{
  border-radius:12px;
  padding:12px;
  margin-top:12px;
max-width:150px;
}

    .modal-left,
    .modal-cover {
        display: none;
      animation: none;
    }

    .modal-body {
        max-height: 90vh;
        overflow-y: hidden;
    }

    .modal-content {
        overflow-y: hidden;
        max-height: 90vh;
      animation: none;
    }


    .modal-header h2 {
        font-size: 2rem;
      animation: none;
    }

    .modal-score {
        font-size: 5rem;
        max-width: 500rem;
        padding: 2px 8px;
      animation: none;
    }

    .modal-meta p {
        font-size: 0.8rem;
      animation: none;
    }
.modal-video {
      animation: none;
    }
.modal-bottom {
      animation: none;
    }
.modal-vote {
      animation: none;
    }
    .modal-review {
        max-height: 45vh;          /* ajusta a tu gusto */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-right: 0.6rem;     /* espacio para que la barra no tape el texto */
    }
.modal-review::-webkit-scrollbar {
        width: 5px;
    }

.modal-review::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }

    .modal-review::-webkit-scrollbar-thumb {
        background: var(--color-accent);
        border-radius: 10px;
    }

    /* Firefox mobile */
    .modal-review {
        scrollbar-width: thin;
        scrollbar-color: var(--color-accent) rgba(255, 255, 255, 0.05);
    }

    .game-card-horizontal {
        width: 80px;
        padding: 6px;
      animation: none;
    }

    .game-icon-horizontal {
        width: 50px;
        height: 50px;
      animation: none;
    }

    .game-score-horizontal {
        font-size: 1.2rem;
        padding: 2px 10px;
      animation: none;
    }

    .favorite-icon {
        font-size: 25px;
      animation: none;
    }

    .page-title {
        font-size: 5rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .disclaimer {
        padding: 0.5rem;
        margin: 0 auto 2rem;
        max-width: 800px;
        font-size: 1rem;
    }

    .search-container {
        padding: -10 1rem;
      animation: none;
    }

    .search-box {
        font-size: 1rem;
        padding: 0.8rem 1rem;
      animation: none;
    }

    .games-container {
        grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
        justify-items: center;
      animation: none;
    }

    .close-button {
        font-size: 3rem;
        top: -8;
        right: 10;
      animation: none;
    }

    .review-toggle {
        background: none;
        border: none;
        color: var(--color-accent);
        cursor: pointer;
        font-size: 0.8rem;
        padding: 0;
        font-weight: bold;
        margin-left: 5px;
        text-decoration: underline;
      animation: none;
    }
  .game-card-horizontal:hover .game-icon-horizontal {
        transform: none;
    }
  .modal-score:hover {
        transform: none;
    }

    .modal-cover:hover {
        transform: none;
    }

    .modal-header h2:hover {
        transform: none;
    }

    .modal-video iframe:hover {
        transform: none;
    }

}
</style>
