:root {
    /* Theme Colors */
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-color: #8a2be2;
    /* BlueViolet */
    --accent-hover: #9b4dca;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --header-height: 60px;
    --border-radius: 12px;
    --transition-speed: 0.3s;
    --bp-sm: 576px;
    --bp-md: 768px;
    --bp-lg: 992px;
    --bp-xl: 1200px;
    --bp-xxl: 1400px;
    --hero-frame-height: 560px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #060a11;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    color: var(--text-primary);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

/* Layout */
.container {
    max-width: 1900px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-fluid.play-game-box {
    max-width: none;
    margin: 0 auto;
    padding: 0 40px;
}

.p-3 {
    padding: 1rem !important;
}

.pt-20 {
    padding-top: 20px !important;
}

@media (min-width: 576px) {
    .p-sm-5 {
        padding: 2rem !important;
    }
}

@media (min-width: 768px) {
    .p-md-10 {
        padding: 3rem !important;
    }
}

@media (max-width: 768px) {
    :root {
        --hero-frame-height: min(560px, 75vh);
    }
}

@media (min-width: 992px) {
    .p-lg-0 {
        padding: 0 !important;
    }
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.justify-content-center {
    justify-content: center;
}

[class*="col-"] {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-24 {
    flex: 0 0 100%;
    max-width: 100%;
}

.col-2 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
}

.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

@media (min-width: 576px) {
    .col-sm-24 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .col-sm-2 {
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }
}

@media (min-width: 768px) {
    .col-md-24 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .col-md-2 {
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }
}

@media (min-width: 992px) {
    .col-lg-17 {
        flex: 0 0 70.833333%;
        max-width: 70.833333%;
    }

    .col-lg-3 {
        flex: 0 0 12.5%;
        max-width: 12.5%;
    }

    .col-lg-4 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }

    .d-lg-block {
        display: block !important;
    }

    .d-lg-none {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    .col-xl-12 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-xl-16 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .col-xl-6 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-xl-2 {
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }

    .col-xl-12 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 1400px) {
    .col-xxl-12 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-xxl-4 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }

    .col-xxl-14 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }

    .col-xxl-10 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }

    .col-xxl-1 {
        flex: 0 0 4.166667%;
        max-width: 4.166667%;
    }

    .col-xxl-2 {
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }

    .col-xxl-3 {
        flex: 0 0 12.5%;
        max-width: 12.5%;
    }

    .col-xxl-16 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .col-xxl-18 {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .d-xxl-block {
        display: block !important;
    }

    .d-xxl-none {
        display: none !important;
    }
}

/* 24-Column Grid System & Utilities */
.p-side {
    padding-left: 10px;
    padding-right: 10px;
}

.p-side-ads {
    padding-left: 10px;
    padding-right: 10px;
}

/* Custom 24-col widths for finer control if needed, though standard bootstrap-like percentages work */
/* We are mapping 24 cols to percentages. 1 col = 4.166666% */


/* Header */
.site-header {
    background-color: var(--bg-secondary);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

.header-content {
    gap: 32px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-color);
}

.main-nav {
    display: flex;
    flex: 1;
}

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-secondary);
}

.main-nav a:hover {
    color: var(--text-primary);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--bg-tertiary);
    border-radius: 999px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-search input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    padding: 8px 0;
    outline: none;
}

.header-search button {
    width: 18px;
    height: 18px;
    border: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27a6.471 6.471 0 001.48-5.34C15.28 5.59 12.36 3 8.9 3 5.02 3 2 6.02 2 9.9c0 3.88 3.02 6.9 6.9 6.9 1.61 0 3.09-.55 4.27-1.48l.27.28v.79L19 21l3-3-6.5-6zM8.9 15c-2.82 0-5.1-2.28-5.1-5.1S6.08 4.8 8.9 4.8s5.1 2.28 5.1 5.1S11.72 15 8.9 15z'/%3E%3C/svg%3E") no-repeat center;
    cursor: pointer;
    opacity: 0.9;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: transparent;
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.nav-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 20px;
    height: 2px;
    background-color: currentColor;
    position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
}

.nav-toggle span::before {
    top: -6px;
}

.nav-toggle span::after {
    top: 6px;
}

@media (max-width: 767px) {
    .main-nav {
        position: absolute;
        top: calc(var(--header-height) + 10px);
        right: 0;
        left: 0;
        padding: 20px 15px;
        border-radius: var(--border-radius);
        background-color: var(--bg-secondary);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: var(--card-shadow);
        display: none;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 12px;
    }

    .nav-toggle {
        display: flex;
    }
}

/* Main Content */
.main-content {
    padding: 40px 0;
    min-height: calc(100vh - var(--header-height) - 100px);
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 24px;
    border-left: 4px solid var(--accent-color);
    padding-left: 12px;
}

.ad-module {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    text-align: center;
    font-weight: 600;
}

.rate_fullscreen {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    background-color: rgba(14, 22, 34, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px 12px;
    border-radius: 32px;
    min-height: 45px;
}

.rate_fullscreen-block {
    flex: 1;
    min-width: 190px;
}

.rate-block {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-info {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1;
}

.vote-btn {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.vote-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.vote-btn.active {
    color: var(--accent-color);
}

.vote-btn.vote-up.active .vote-icon {
    fill: var(--accent-color);
}

.vote-btn.vote-down.active .vote-icon {
    fill: #ff4757;
}

.vote-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: fill 0.2s ease;
}

.vote-count {
    font-size: 0.9rem;
    font-weight: 600;
}

.full-screen-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition-speed);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    flex-shrink: 0;
}

.full-screen-btn:hover {
    background-color: var(--bg-tertiary);
}

.full-screen-icon {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Hero Panel & Tools */
.panel-content.theme-blue.hero-panel {
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

.hero-panel {
    padding: 0;
    display: flex;
    flex-direction: column;
    box-shadow: none;
}

.hero-stage-row {
    --bs-gutter-x: 24px;
    --bs-gutter-y: 24px;
}

.hero-stage-left,
.hero-stage-right {
    padding-top: 32px;
}

.hero-stage-center,
.hero-stage-wrapper {
    flex: 1;
    max-width: 100%;
    min-width: 0;
}

.hero-stage-wrapper {
    width: 100%;
}

.small-screen-only,
.horizontal-left,
.horizontal-right {
    display: block;
}

.horizontal-game-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 8px 0;
    margin: 0;
    background: transparent;
}

@media (min-width: 576px) {
    .horizontal-game-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) {
    .horizontal-game-list {
        grid-template-columns: repeat(auto-fit, minmax(101px, 1fr));
    }
}

.horizontal-game-item {
    width: 100%;
    height: 101px;
    border-radius: 18px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
}

.horizontal-thumb {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
}

.horizontal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.horizontal-title {
    display: none;
}



.hero-stage-left .side-game-stack,
.hero-stage-right .side-game-stack {
    gap: 12px;
}

.ads-play-left,
.ads-play-right,
.hero-stage-left,
.hero-stage-right {
    display: none;
}

@media (min-width: 992px) {
    .hero-stage-right {
        display: block;
        flex: 0 0 120px !important;
        max-width: 120px !important;
    }

    .hero-stage-center,
    .hero-stage-wrapper {
        flex: 1 !important;
        max-width: none !important;
    }

    .horizontal-right {
        display: none;
    }
}

@media (min-width: 1200px) {

    .hero-stage-right,
    .ads-play-right {
        display: block;
    }

    .hero-stage-right {
        flex: 0 0 120px !important;
        max-width: 120px !important;
    }

    .ads-play-right {
        flex: 0 0 320px !important;
        max-width: 320px !important;
    }

    .hero-stage-center,
    .hero-stage-wrapper {
        flex: 1 !important;
        max-width: none !important;
    }
}

@media (min-width: 1600px) {

    .hero-stage-left,
    .ads-play-left {
        display: block;
    }

    .hero-stage-left {
        flex: 0 0 120px !important;
        max-width: 120px !important;
    }

    .ads-play-left {
        flex: 0 0 320px !important;
        max-width: 320px !important;
    }

    .hero-stage-center,
    .hero-stage-wrapper {
        flex: 1 !important;
        max-width: none !important;
    }

    .small-screen-only,
    .horizontal-right,
    .horizontal-left,
    .horizontal-game-list {
        display: none !important;
    }
}

.game-play {
    width: 100%;
}

.blockblast-panel {
    background: transparent;
    border-radius: 28px;
    padding: 16px 16px 0;
    overflow: hidden;
    border: none;
    box-shadow: none;
}

.title-box {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 16px;
}



.title-game {
    margin-bottom: 18px;
}

.title-game h1 {
    font-size: 2rem;
    margin: 0;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.title-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.blockblast-body {
    background: transparent;
    border-radius: 0 0 28px 28px;
    padding: 0;
}

.blockblast-panel .title-game {
    margin-bottom: 12px;
}

.blockblast-panel .blockblast-body {
    margin: 0 -16px;
    padding: 0;
}

.blockblast-panel .play-box {
    border-radius: 16px;
    margin: 0;
    max-width: none;
    border: none;
    box-shadow: none;
    background: transparent;
}

.hero-panel .hero-tools-inline {
    padding: 16px 16px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.hero-tools-inline .rate-info {
    color: var(--text-secondary);
    margin-right: 12px;
}

.hero-tools-inline .vote-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hero-tools-inline .vote-btn .vote-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.play-box {
    width: 100%;
    height: var(--hero-frame-height);
    border-radius: 16px;
    overflow: hidden;
    background: transparent;
    border: none;
    margin-bottom: 0;
    position: relative;
}

.play-box iframe {
    border: none;
    width: 100%;
    height: 100%;
}

.ads-play-left .ad-module.ad-empty,
.ads-play-right .ad-module.ad-empty {
    min-height: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

@media (max-width: 768px) {

    .hero-tools-inline .rate-info,
    .hero-tools-inline .vote-btn span {
        display: none;
    }
}

.rate_fullscreen {
    height: 45px;
    min-height: 45px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(14, 22, 34, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 0 6px 0 16px;
}

.rate_fullscreen-block {
    flex: 1;
    display: flex;
    align-items: center;
}

.panel-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.panel-label.small {
    margin-bottom: 16px;
}

.label-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.label-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-primary);
}

.label-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.label-ad-slot {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 6px 14px;
}

.hero-meta-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.hero-title-stack {
    flex: 1;
    min-width: 240px;
}

.hero-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.hero-tools {
    flex: 0 0 auto;
    min-width: 280px;
    display: flex;
    justify-content: flex-end;
}

.blockblast-panel .hero-tools {
    width: 100%;
    margin-top: 20px;
    justify-content: flex-start;
    min-width: 0;
}

.hero-panel .text-center {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tag-strip,
.game-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag-pill,
.game-meta-tags .tag {
    background-color: rgba(255, 255, 255, 0.06);
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.discover-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.discover-label {
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.discover-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.discover-tags a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 4px 12px;
    transition: color var(--transition-speed), border-color var(--transition-speed);
}

.discover-tags a:hover {
    color: var(--text-primary);
    border-color: var(--accent-color);
}

/* Game Grid */
.game-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch;
    width: 100%;
}

@media (min-width: 576px) {
    .game-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .game-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .game-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 1400px) {
    .game-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.game-card {
    background-color: var(--bg-secondary);
    border-radius: 16px;
    padding: 12px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
    overflow: hidden;
}

@media (min-width: 1200px) {
    .game-card {
        max-width: 210px;
    }
}

@media (min-width: 1600px) {
    .game-card {
        max-width: 190px;
    }
}

.game-thumb-wrap {
    width: 135px;
    height: 135px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.game-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-thumb {
    transform: scale(1.05);
}

.game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
}

.game-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff4757;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pagination-wrapper {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.pagination .page-item {
    display: inline-flex;
}

.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.04);
    font-weight: 600;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.08);
}

.pagination .page-item.active .page-link {
    background-color: var(--accent-color);
    border-color: transparent;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 576px) {
    .pagination .page-link {
        min-width: 36px;
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}

.solver-score-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.solver-scorecard {
    flex: 1 1 220px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 18px 24px;
}

.solver-score-value {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.solver-score-label {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.solver-score-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

.solver-cta {
    flex: 1 1 260px;
    background: rgba(138, 43, 226, 0.08);
    border: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 18px;
    padding: 18px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.solver-cta-label {
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
}

.solver-cta-button {
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    background: var(--accent-color);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    width: fit-content;
    transition: background 0.2s ease;
}

.solver-cta-button:hover {
    background: var(--accent-hover);
}

.solver-cta-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 768px) {
    .solver-cta,
    .solver-scorecard {
        flex: 1 1 100%;
    }
}

.game-badge.new {
    background-color: #2ed573;
}

.game-badge.hot {
    background-color: #ff4757;
}

.game-thumb {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}

.game-info {
    padding: 0;
}

.game-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.game-category {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Game Info Section */
.game-info-section {
    margin-bottom: 0;
    background-color: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.panel-content .game-info-section {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.game-main-title {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.seo-content h2 {
    font-size: 1.4rem;
    margin: 24px 0 12px;
    color: var(--text-primary);
}

.seo-content p,
.seo-content li {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.site-footer {
    margin-top: 60px;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
}

.footer-shell {
    padding: 40px 15px 20px;
    max-width: 1900px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.footer-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px 24px;
}

.footer-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.footer-cta-text h3 {
    margin: 0 0 6px;
    color: var(--text-primary);
    font-size: 1.3rem;
}

.footer-cta-text p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-cta-action {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-btn {
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--accent-color);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.footer-btn.secondary {
    background: transparent;
    color: var(--text-primary);
}

.footer-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.footer-section h4 {
    margin: 0 0 10px;
    color: var(--text-primary);
}

.footer-section p {
    margin: 0 0 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-tags a {
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-tags a:hover {
    color: var(--text-primary);
    border-color: var(--accent-color);
}

.footer-legal {
    margin-top: 10px;
    padding: 14px 0 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-legal-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .footer-cta {
        align-items: flex-start;
    }
}
.seo-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 12px;
}

/* FAQ Styles */
.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--bg-tertiary);
    padding-bottom: 20px;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

/* Sidebar */
.sidebar-widget {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--card-shadow);
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bg-tertiary);
}

.sidebar-game-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-game-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    transition: background-color var(--transition-speed);
}

.sidebar-game-card:hover {
    background-color: var(--bg-tertiary);
}

.sidebar-game-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.sidebar-game-info h4 {
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.sidebar-game-info span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Side Game Card (New Standard) */
.side-game-column {
    padding: 0 8px;
}

.side-game-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.side-game-card {
    width: 101px;
    height: 101px;
    display: block;
    border-radius: 18px;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.side-game-card:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.side-game-thumb {
    width: 101px;
    height: 101px;
    border-radius: 18px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.side-game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.side-game-info {
    display: none;
}

.side-game-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.side-game-meta {
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.side-game-placeholder {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Order Utilities */
.order-1 {
    order: 1;
}

.order-2 {
    order: 2;
}

.order-3 {
    order: 3;
}

.order-4 {
    order: 4;
}

.order-5 {
    order: 5;
}

@media (min-width: 992px) {
    .order-lg-1 {
        order: 1;
    }

    .order-lg-2 {
        order: 2;
    }

    .order-lg-3 {
        order: 3;
    }

    .order-lg-4 {
        order: 4;
    }

    .order-lg-5 {
        order: 5;
    }
}

@media (min-width: 1400px) {
    .order-xxl-1 {
        order: 1;
    }

    .order-xxl-2 {
        order: 2;
    }

    .order-xxl-3 {
        order: 3;
    }

    .order-xxl-4 {
        order: 4;
    }

    .order-xxl-5 {
        order: 5;
    }
}

/* Footer */
.site-footer {
    background-color: var(--bg-secondary);
    padding: 40px 0;
    margin-top: auto;
    border-top: 1px solid var(--bg-tertiary);
    text-align: center;
    color: var(--text-secondary);
}

/* 3-Layer Structure & Grid System */
.panel-container {
    margin-bottom: 20px;
    width: 100%;
}

.panel-content {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    height: 100%;
    padding: 20px;
}

.panel-content.transparent {
    background: transparent;
    box-shadow: none;
}

.panel-content.theme-blue {
    background-color: #1e2a3a;
    border: 1px solid #2c3e50;
    color: #fff;
}

.panel-content.theme-dark {
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-content.theme-ghost {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

.panel-heading {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.panel-heading span {
    font-size: 1.15rem;
    font-weight: 600;
}

.panel-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.panel-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel-ads {
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
}

.ads-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.ads-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ad-placeholder {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 18px;
    text-align: center;
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.2);
}

.ads-note {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

/* 广告隐藏控制 - 无广告接入时隐藏广告位 */
/* 接入广告后：移除 HTML 中的 ad-hidden 类即可显示 */
.panel-ads.ad-hidden {
    display: none;
}

.detail-recommend-row {
    width: 100%;
    gap: 24px;
}

.detail-recommend-row.justify-content-center {
    justify-content: center;
}

.detail-panel-column,
.recommend-panel-column {
    margin-bottom: 20px;
}

@media (min-width: 1200px) {

    .detail-panel-column,
    .recommend-panel-column {
        margin-bottom: 0;
    }

    .detail-recommend-row .detail-panel-column,
    .detail-recommend-row .recommend-panel-column {
        flex: 0 0 calc(50% - 12px);
        max-width: calc(50% - 12px);
    }
}

.panel-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.detail-tip-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-tip-item h4 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.detail-tip-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.recommend-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

@media (min-width: 768px) {
    .recommend-card-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .recommend-card-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 1600px) {
    .recommend-card-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.recommend-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.recommend-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
}

.recommend-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
}

.recommend-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.recommend-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recommend-card-name {
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
}

.recommend-card-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.p-side,
.p-side-ads {
    padding-top: 10px;
    padding-bottom: 10px;
}

.p-side-ads .panel-content,
.p-side .panel-content {
    height: 100%;
}

/* Layout Containers */
.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* 3-Layer Structure Classes */
/* Layer 2: Theme/Wrapper (Positioning & Spacing) */
.ad-wrapper,
.game-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Layer 3: Content/Module (Visuals & Function) */
.ad-module,
.game-module {
    background: #fff;
    /* Default background, can be overridden */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ad-module.theme-blue {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
}

/* Legacy overrides for transition */
.panel-container {
    padding-bottom: 0;
    /* Reset legacy padding */
}


.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

/* Play Layout (Grid below game) */
.play-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

/* Game Info (Left Column) */
#game-info {
    min-width: 0;
}

.game-main-title {
    margin-top: 0;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.game-meta {
    margin: 10px 0 20px;
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.category-tag {
    background: var(--accent-color);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
}

.game-description {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--border-radius);
    line-height: 1.8;
    color: var(--text-secondary);
    box-shadow: var(--card-shadow);
}

/* Sidebar */
.sidebar-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--bg-tertiary);
    padding-bottom: 10px;
    color: var(--text-primary);
}

.sidebar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.sidebar-grid .game-card {
    display: flex;
    align-items: center;
    gap: 12px;
    height: auto;
    padding: 10px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    transition: background-color var(--transition-speed);
}

.sidebar-grid .game-card:hover {
    background-color: var(--bg-tertiary);
    transform: none;
    box-shadow: none;
}

.sidebar-grid .game-thumb {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    object-fit: cover;
}

.sidebar-grid .game-info {
    padding: 0;
}

.sidebar-grid .game-title {
    white-space: normal;
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 4px;
}

.sidebar-grid .game-category {
    font-size: 0.8rem;
}

@media (max-width: 900px) {
    .play-layout {
        grid-template-columns: 1fr;
    }

    #game-info {
        order: 1;
    }

    .sidebar {
        order: 2;
    }

    .sidebar-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* Vertical Game List (Sidebar) */
.sidebar-game-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.game-thumb-wrap {
    position: relative;
    width: 100%;
    max-width: 135px;
    aspect-ratio: 1/1;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.game-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Game Column Internal Structure */
.blockblastfree-body {
    width: 100%;
    margin-bottom: 20px;
}

.blockblastfree-content.blue {
    background-color: rgba(30, 42, 58, 0.5);
    /* Semi-transparent blue */
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 992px) {
    .header-search {
        display: none;
    }

    .main-nav {
        position: absolute;
        top: calc(var(--header-height) + 10px);
        right: 15px;
        left: 15px;
        background-color: var(--bg-secondary);
        border-radius: 16px;
        padding: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        display: none;
        flex: unset;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 12px;
    }

    .main-nav.is-open {
        display: block;
    }

    .nav-toggle {
        display: flex;
    }
}

.hero-panel .blockblastfree-body {
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .hero-meta-row {
        flex-direction: column;
    }

    .hero-tools {
        width: 100%;
        justify-content: flex-start;
    }

    .rate_fullscreen {
        width: 100%;
        border-radius: 16px;
    }
}

@media (max-width: 600px) {
    .rate_fullscreen {
        flex-direction: column;
        align-items: flex-start;
    }

    .discover-strip {
        flex-direction: column;
        align-items: flex-start;
    }
}
