/* ==========================================================================
   BlaqBit Games — Shikaku game page styles
   ========================================================================== */

.game-hero {
    padding-bottom: 32px;
}

.stat-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stat-strip .dot {
    color: var(--border-highlight);
}

section {
    padding: var(--space-2xl) 0;
}

section + section {
    border-top: 1px solid var(--border-subtle);
}

/* ---------- How to Play (editorial split, no card chrome) ---------- */
.split-section {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-xl);
    align-items: center;
}

.split-section .copy h3 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    line-height: 1.2;
}

.split-section .copy p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

.rule-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rule-list li {
    display: flex;
    align-items: baseline;
    gap: 14px;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.rule-list .num {
    font-family: var(--mono);
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ---------- Two Ways to Play ---------- */
.mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-md);
}

.mode-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 400ms var(--ease-smooth);
}

.mode-card:hover {
    transform: translateY(-4px) rotate(-0.5deg);
    box-shadow: var(--shadow-float);
    border-color: var(--border-highlight);
}

.mode-card .mode-visual {
    display: flex;
    justify-content: center;
}

.mode-card .puzzle-box {
    max-width: 200px;
}

.mode-card h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-primary);
}

.mode-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

.mode-tag {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------- Mastery (icon-led list, distinct rhythm from cards) ---------- */
.mastery-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 680px;
    margin: 0 auto 36px;
}

.mastery-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 300ms var(--ease-smooth);
}

.mastery-item:hover {
    transform: translateX(8px);
}

.mastery-star {
    font-family: var(--mono);
    color: var(--accent-secondary);
    font-size: 1.2rem;
    line-height: 1.4;
    flex-shrink: 0;
    width: 28px;
}

.mastery-item h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.mastery-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.crown-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---------- Interactive Theme & Mode Previewer ---------- */
.interactive-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.preview-switcher {
    display: flex;
    gap: 6px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    padding: 4px;
    border-radius: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.preview-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--mono);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.preview-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.preview-tab-btn.active {
    background: var(--bg-primary);
    color: var(--accent-amber);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Theme classes for .puzzle-box */
.puzzle-theme-dark-neon {
    background: #0c1524;
    border-color: #345d82;
}

.puzzle-theme-dark-zen {
    background: #181513;
    border-color: #3b3530;
}
.puzzle-theme-dark-zen .cell {
    background: #12100e;
    border-color: #2b2622;
    color: #e5dfd5;
}
.puzzle-theme-dark-zen .cell.boxed-amber {
    background: rgba(201, 160, 80, 0.18);
    border-color: #c9a050;
    color: #c9a050;
}
.puzzle-theme-dark-zen .cell.boxed-blue {
    background: rgba(123, 160, 125, 0.22);
    border-color: #7ba07d;
    color: #92b894;
}

.puzzle-theme-light-zen {
    background: #f0f5ee;
    border-color: #d1d9ce;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}
.puzzle-theme-light-zen .puzzle-meta {
    color: #6b7768;
}
.puzzle-theme-light-zen .cell {
    background: #e4ebe1;
    border-color: #c8d4c5;
    color: #2e2926;
}
.puzzle-theme-light-zen .cell.boxed-amber {
    background: #fce8cc;
    border-color: #d48b3b;
    color: #8f5312;
}
.puzzle-theme-light-zen .cell.boxed-blue {
    background: #dbeef0;
    border-color: #559da6;
    color: #225e66;
}

.puzzle-theme-weird {
    background: #130d24;
    border-color: #5c3588;
}
.puzzle-theme-weird .puzzle-meta {
    color: #a78bfa;
}
.puzzle-theme-weird .cell {
    background: #0a0614;
    border-color: #2e1e47;
    color: #f3e8ff;
}
.puzzle-theme-weird .cell.boxed-poly-1 {
    background: rgba(184, 50, 128, 0.25);
    border-color: #b83280;
    color: #ff77c6;
}
.puzzle-theme-weird .cell.boxed-poly-2 {
    background: rgba(139, 92, 246, 0.25);
    border-color: #8b5cf6;
    color: #c4b5fd;
}

/* ---------- Theme swatches ---------- */
.swatch-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}

.swatch-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 18px;
}

.swatch-card h5 {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.swatch-chips {
    display: flex;
    gap: 8px;
}

.swatch-chip {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- Fair to Players callout ---------- */
.callout {
    max-width: 620px;
    margin: 0 auto;
    border-left: 3px solid var(--accent-blue);
    padding-left: 22px;
    text-align: left;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ---------- Changelog ---------- */
.changelog-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 680px;
    margin: 0 auto;
}

.release-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 22px 26px;
}

.release-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.release-version {
    font-family: var(--mono);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.release-title {
    font-family: var(--mono);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.latest-pill {
    background: rgba(226, 152, 79, 0.14);
    border-color: rgba(226, 152, 79, 0.35);
    color: var(--accent-amber);
}

.release-date {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.release-notes {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.release-notes li {
    position: relative;
    padding-left: 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.release-notes li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-blue);
}

.changelog-state {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 480px;
    margin: 0 auto;
}

/* ---------- Closing CTA ---------- */
.cta-banner {
    text-align: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 44px 24px;
}

.cta-banner h3 {
    font-family: var(--mono);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.cta-banner p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 22px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .split-section {
        grid-template-columns: 1fr;
    }
    .split-section .game-visual {
        order: -1;
        margin-bottom: 12px;
    }
}
