/*
 Theme Name:   Appyn RomsMania
 Theme URI:    https://romsmania.games
 Description:  Appyn RomsMania
 Author:       RomsMania
 Author URI:   https://romsmania.games
 Template:     appyn
 Version:      1.0.0
*/

    /* Estilos para el nuevo diseño, respetando la estructura original */
    body {
        font-family: 'Inter', sans-serif;
        background-color: #eeeeee;
        color: #111827;
    }
    .main-container-v16 {
        width: 100%;
        max-width: 1100px;
        margin: 0 auto;
        padding: 0 1rem;
    }
    .entry-content { padding: 0 !important; }

    /* Estilos para el nuevo layout */
    .styled-box {
        background-color: white;
        padding: 1.5rem;
        border-radius: 0.5rem;
        border: 1px solid #e5e7eb;
        box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    }

    /* Estilos específicos para el header con imagen - MÁS COMPACTO */
    .game-header {
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid #d1d5db;
        color: white;
        min-height: 200px;
    }
    .game-header-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }
    .game-header-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: blur(2px);
    }
    .game-header-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.75);
        z-index: 1;
    }
    .game-header-content {
        position: relative;
        z-index: 10;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1.5rem;
    }
    .game-thumbnail {
        flex-shrink: 0;
    }
    .game-thumbnail img {
        width: 120px;
        height: 120px;
        object-fit: cover;
        border-radius: 8px;
        border: 2px solid rgba(255, 255, 255, 0.5);
    }
    .game-info {
        text-align: center;
    }
    .game-title {
        font-size: 1.75rem;
        font-weight: 900;
        letter-spacing: -0.025em;
        margin-bottom: 0.5rem;
        color: white !important;
    }

    /* Estilos para el sistema de rating personalizado */
    .custom-rating {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }
    .stars-container {
        display: flex;
        align-items: center;
        gap: 0.125rem;
    }
    .star {
        color: #fbbf24;
        font-size: 1.25rem;
    }
    .star.empty {
        color: rgba(255, 255, 255, 0.3);
    }
    .rating-score {
        font-size: 1.125rem;
        font-weight: 700;
        color: #fbbf24;
    }
    .rating-votes {
        font-size: 0.875rem;
        color: rgba(255, 255, 255, 0.8);
    }
    .rating-comment {
        font-size: 0.875rem;
        color: rgba(255, 255, 255, 0.9);
        font-style: italic;
        margin-top: 0.25rem;
    }

    @media (min-width: 768px) {
        .game-header-content {
            flex-direction: row;
            align-items: center;
            padding: 1.5rem 2rem;
        }
        .game-info {
            text-align: left;
            flex: 1;
        }
        .game-title {
            font-size: 2rem;
        }
        .game-thumbnail img {
            width: 130px;
            height: 130px;
        }
        /* Rating a la izquierda en desktop */
        .custom-rating {
            align-items: flex-start;
        }
    }
    
    *, ::before, ::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/* ! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com */*,::after,::before{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}::after,::before{--tw-content:''}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.my-8{margin-top:2rem;margin-bottom:2rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mr-3{margin-right:0.75rem}.mt-2{margin-top:0.5rem}.mt-3{margin-top:0.75rem}.mt-8{margin-top:2rem}.box-content{box-sizing:content-box}.block{display:block}.flex{display:flex}.grid{display:grid}.h-auto{height:auto}.w-full{width:100%}.grid-cols-1{grid-template-columns:repeat(1, minmax(0, 1fr))}.grid-cols-2{grid-template-columns:repeat(2, minmax(0, 1fr))}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-4{gap:1rem}.gap-8{gap:2rem}.space-y-4 > :not([hidden]) ~ :not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.rounded-lg{border-radius:0.5rem}.rounded-r-lg{border-top-right-radius:0.5rem;border-bottom-right-radius:0.5rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l-4{border-left-width:4px}.border-dashed{border-style:dashed}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-4{padding:1rem}.p-6{padding:1.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-2{padding-bottom:0.5rem}.text-center{text-align:center}.text-right{text-align:right}.text-2xl{font-size:1.5rem;line-height:2rem}.text-sm{font-size:0.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-red-800{--tw-text-opacity:1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.group:hover .group-hover\:opacity-80{opacity:0.8}@media (min-width: 768px){.md\:h-60{height:15rem}.md\:grid-cols-4{grid-template-columns:repeat(4, minmax(0, 1fr))}}@media (min-width: 1024px){.lg\:col-span-1{grid-column:span 1 / span 1}.lg\:col-span-2{grid-column:span 2 / span 2}.lg\:grid-cols-3{grid-template-columns:repeat(3, minmax(0, 1fr))}}


/* Estrellas siempre en línea y del mismo alto */
.rm-stars svg { display:block; width:20px; height:20px; }

/* Card "Dónde comprar" borde clarito + hover */
.styled-box .group { border-radius: .5rem; border:1px solid #e5e7eb; transition: box-shadow .2s, border-color .2s; }
.styled-box .group:hover { border-color:#d1d5db; box-shadow: 0 1px 6px rgba(0,0,0,.06); }

/* Separación del summary inyectado */
.rm-summary { margin-bottom: 1rem; }

/* ---- Ritmo de espacios globales ---- */
:root{
  --rm-space-2: 1rem;     /* 16px */
  --rm-space-3: 1.5rem;   /* 24px */
  --rm-space-4: 2rem;     /* 32px */
  --rm-space-5: 2.5rem;   /* 40px */
}

/* Espacio por debajo del header del juego */
.game-header{
  margin-bottom: var(--rm-space-5);
}

/* Separación vertical del bloque principal (grid donde comprar + detalles) */
.main-container-v16 > section{
  margin-top: var(--rm-space-4);
}

/* Caja “Dónde comprar” y otras styled-box con más respiración */
.styled-box{
  padding: 1.25rem; /* 20px */
}
.styled-box h2{
  margin-bottom: var(--rm-space-3) !important;
}

/* Separación extra bajo el grid de tiendas (para que no quede pegado) */
.styled-box .grid{
  gap: 1rem; /* por si necesitas un pelín más */
  margin-bottom: var(--rm-space-3);
}

/* Bloque “Juega Seguro y Legal” más separado del contenido anterior */
.main-container-v16 > .mt-8{
  margin-top: var(--rm-space-5) !important;
}

/* En desktop, aún más oxígeno si quieres */
@media (min-width: 1024px){
  .game-header{ margin-bottom: 3rem; }           /* 48px */
  .main-container-v16 > section{ margin-top: 2.5rem; } /* 40px */
}

/* ===== FAQ (acordeón) ===== */
#rm-faq{
  background:#fff;
  border:1px solid #eee;
  border-radius:12px;
  padding:20px;
}

/* Cada item */
#rm-faq details{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  overflow:hidden;
  transition:box-shadow .2s ease, border-color .2s ease;
}
#rm-faq details:hover{
  box-shadow:0 6px 16px rgba(0,0,0,.06);
  border-color:#d1d5db;
}

/* Q (cabecera) */
#rm-faq summary{
  /* anula estilos oscuros del tema */
  background:#fff !important;
  color:#111827 !important;           /* gray-900 */
  font-weight:600;
  padding:14px 48px 14px 16px;
  display:flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  list-style:none;                    /* Firefox */
  position:relative;
  outline:none;
}
#rm-faq summary::-webkit-details-marker{ display:none; }

/* Icono +/– a la derecha */
#rm-faq summary::after{
  content:'+';
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  font-weight:700;
  color:#6b7280;                      /* gray-500 */
  transition:transform .2s ease, color .2s ease;
}

/* Triangulito a la izquierda (opcional) */
#rm-faq summary::before{
  content:'';
  width:0; height:0;
  border-left:6px solid #9ca3af;      /* gray-400 */
  border-top:4px solid transparent;
  border-bottom:4px solid transparent;
  margin-right:6px;
  transition:transform .2s ease, border-left-color .2s ease;
}

/* Estado abierto */
#rm-faq details[open] summary{
  background:#f9fafb !important;      /* gray-50 */
  border-bottom:1px solid #e5e7eb;
}
#rm-faq details[open] summary::after{ content:'–'; color:#374151; } /* gray-700 */
#rm-faq details[open] summary::before{
  transform:rotate(90deg);
  border-left-color:#6b7280;          /* gray-500 */
}

/* A (respuesta) */
#rm-faq .faq-content{
  background:#fff;
  color:#374151;                       /* gray-700 */
  line-height:1.7;
  padding:16px;
}

/* Espaciado entre items */
#rm-faq .space-y-3 > * + *{
  margin-top:12px;
}

/* Accesibilidad: foco visible con teclado */
#rm-faq summary:focus-visible{
  box-shadow:0 0 0 3px rgba(59,130,246,.35); /* anillo azul */
  border-radius:8px;
}

/* Respeta usuarios sin animaciones */
@media (prefers-reduced-motion: reduce){
  #rm-faq *,
  #rm-faq *::before,
  #rm-faq *::after{
    transition:none !important;
  }
}

