/* Finland Flag Theme — Sisu TTRPG */

:root {
    --blue-primary: #003580;
    --blue-medium: #1a56a0;
    --blue-light: #4a8fd4;
    --blue-pale: #eef4fb;
    --blue-border: #c0d8f0;
    --white: #ffffff;
    --off-white: #f7f9fc;
    --text-dark: #111111;
    --text-muted: #4a4a4a;
    --text-light: #777777;
    --shadow: 0 2px 12px rgba(0, 53, 128, 0.10);
    --shadow-hover: 0 6px 24px rgba(0, 53, 128, 0.18);
    --transition: 0.2s ease;
    --radius: 6px;
    --max-width: 1100px;
    --header-height: 64px;
}

/* ========================
   RESET
======================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.7;
}

img {
    max-width: 100%;
    display: block;
}

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

a:hover {
    color: var(--blue-primary);
    text-decoration: underline;
}

/* ========================
   TYPOGRAPHY
======================== */
h1, h2, h3, h4, h5 {
    font-family: 'Raleway', system-ui, sans-serif;
    line-height: 1.2;
    color: var(--blue-primary);
}

h1 { font-size: 2.8rem; font-weight: 800; }
h2 { font-size: 2rem;   font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1rem; }

p:last-child { margin-bottom: 0; }

/* ========================
   LAYOUT
======================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================
   HEADER / NAV
======================== */
.site-header {
    background: var(--blue-primary);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    background: rgba(0, 53, 128, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-logo {
    font-family: 'Raleway', sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.06em;
    text-decoration: none;
}

.site-logo:hover {
    color: var(--blue-border);
    text-decoration: none;
}

.site-logo span {
    color: var(--blue-light);
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list a {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0 1.2rem;
    height: var(--header-height);
    line-height: var(--header-height);
    transition: background var(--transition), color var(--transition);
    position: relative;
}

.nav-list a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-decoration: none;
}

.nav-list a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--blue-light);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

@media (max-width: 680px) {
    .nav-toggle { display: block; }

    .site-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--blue-primary);
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .site-nav.open { display: block; }

    .nav-list { flex-direction: column; }

    .nav-list a {
        padding: 1rem 1.5rem;
        height: auto;
        line-height: 1.5;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-list a.active::after { display: none; }
}

/* ========================
   BUTTONS
======================== */
.btn {
    display: inline-block;
    background: var(--white);
    color: var(--blue-primary);
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.9rem 2.5rem;
    border-radius: var(--radius);
    transition: all var(--transition);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.btn:hover {
    background: var(--blue-pale);
    color: var(--blue-primary);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.btn-primary {
    background: var(--blue-primary);
    color: var(--white);
    border-color: var(--blue-primary);
}

.btn-primary:hover {
    background: var(--blue-medium);
    color: var(--white);
    border-color: var(--blue-medium);
}

/* ========================
   HERO
======================== */
.hero {
    background: var(--blue-primary);
    background-image: linear-gradient(135deg, #001e55 0%, #003580 55%, #1a56a0 100%);
    color: var(--white);
    padding: 6rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M40 0L0 40 40 80 80 40z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero h1 {
    color: var(--white);
    font-size: 4rem;
    margin-bottom: 0.6rem;
    position: relative;
    letter-spacing: 0.04em;
}

.hero h1 span {
    color: var(--blue-light);
}

.hero .subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.85;
    margin-bottom: 1.5rem;
    position: relative;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero .lead {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 620px;
    margin: 0 auto 2.5rem;
    position: relative;
    line-height: 1.75;
}

.hero .btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2.6rem; }
    .hero { padding: 4rem 0 3.5rem; }
    .hero .subtitle { font-size: 1.1rem; }
}

/* ========================
   SECTIONS
======================== */
.section {
    padding: 5rem 0;
}

.section-sm {
    padding: 3rem 0;
}

.section-alt {
    background: var(--blue-pale);
}

.section-dark {
    background: var(--blue-primary);
    color: var(--white);
}

.section-dark h2 {
    color: var(--white);
}

.section-dark p {
    color: rgba(255, 255, 255, 0.8);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 620px;
    margin: 0.75rem auto 0;
    font-size: 1.05rem;
}

.divider {
    width: 56px;
    height: 4px;
    background: var(--blue-light);
    border-radius: 2px;
    margin: 0.75rem auto 0;
}

/* ========================
   CARDS
======================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    border-top: 4px solid var(--blue-primary);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.card-icon {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.card h3 {
    color: var(--blue-primary);
    margin-bottom: 0.6rem;
    font-size: 1.25rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.97rem;
    margin: 0;
}

/* ========================
   STAT CARDS (HOME)
======================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--blue-primary);
    background-image: linear-gradient(135deg, #002a6a, #003580);
    color: var(--white);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.stat-card h3 {
    color: var(--white);
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
    letter-spacing: 0.05em;
}

.stat-card .die {
    font-size: 0.8rem;
    opacity: 0.65;
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.85rem;
    color: var(--blue-light);
}

.stat-card p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* ========================
   HIGHLIGHT BOX
======================== */
.highlight-box {
    background: var(--blue-pale);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    border-left: 5px solid var(--blue-primary);
}

.highlight-box p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto;
}

.highlight-box .btn {
    margin-top: 1.75rem;
}

.text-center { text-align: center; }

/* ========================
   PAGE HEADER
======================== */
.page-header {
    background: var(--blue-pale);
    border-bottom: 3px solid var(--blue-border);
    padding: 3rem 0 2.25rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.4rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0;
}

/* ========================
   ABOUT PAGE
======================== */
.about-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3.5rem;
    align-items: start;
}

.about-sidebar {
    background: var(--blue-pale);
    border-radius: var(--radius);
    padding: 1.75rem;
    border-top: 4px solid var(--blue-primary);
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
}

.about-sidebar h3 {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blue-primary);
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--blue-border);
}

.about-sidebar ul {
    list-style: none;
}

.about-sidebar ul li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    border-bottom: 1px solid var(--blue-border);
}

.about-sidebar ul li:last-child {
    border-bottom: none;
}

.about-sidebar ul li strong {
    color: var(--blue-primary);
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.1rem;
}

.about-content h2 { margin-bottom: 1.25rem; }
.about-content h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.about-content p { color: var(--text-muted); font-size: 1rem; }

.about-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.about-content ul li {
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

@media (max-width: 760px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-sidebar { position: static; }
}

/* ========================
   RULES PAGE
======================== */
.rules-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 3rem;
    align-items: start;
    padding: 3rem 0;
}

.rules-toc {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
    background: var(--blue-pale);
    border-radius: var(--radius);
    border-left: 4px solid var(--blue-primary);
    padding: 1.5rem;
    max-height: calc(100vh - var(--header-height) - 3rem);
    overflow-y: auto;
}

.rules-toc h3 {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--blue-border);
}

.rules-toc ul {
    list-style: none;
}

.rules-toc ul li a {
    display: block;
    padding: 0.28rem 0.5rem;
    font-size: 0.83rem;
    color: var(--text-muted);
    border-radius: 4px;
    transition: all var(--transition);
    line-height: 1.4;
}

.rules-toc ul li a:hover {
    background: var(--white);
    color: var(--blue-primary);
    text-decoration: none;
    padding-left: 0.75rem;
}

.rules-toc .toc-sub a {
    padding-left: 1.25rem;
    font-size: 0.8rem;
}

.rules-content {
    min-width: 0;
}

.wip-notice {
    background: #fff8e1;
    border-left: 4px solid #f9a825;
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    color: #5a3e00;
}

.rules-section {
    margin-bottom: 3.5rem;
    scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

.rules-section h2 {
    font-size: 1.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--blue-border);
    margin-bottom: 1.5rem;
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

.rules-section h3 {
    font-size: 1.2rem;
    color: var(--blue-medium);
    margin: 1.75rem 0 0.6rem;
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

.rules-section p {
    color: var(--text-muted);
}

/* Stat boxes in rules */
.stat-boxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

@media (max-width: 560px) {
    .stat-boxes {
        grid-template-columns: 1fr;
    }
}

.stat-box {
    background: var(--blue-primary);
    background-image: linear-gradient(135deg, #002a6a, #003a8c);
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-box h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    letter-spacing: 0.05em;
}

.stat-box p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* Equipment tables */
.equipment-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.93rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.equipment-table thead th {
    background: var(--blue-primary);
    color: var(--white);
    padding: 0.8rem 1rem;
    text-align: left;
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.equipment-table tbody td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--blue-border);
    color: var(--text-muted);
}

.equipment-table tbody tr:nth-child(even) td {
    background: var(--blue-pale);
}

.equipment-table tbody tr:last-child td {
    border-bottom: none;
}

.equipment-table tbody tr:hover td {
    background: #dceaf8;
}

/* Skills grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.skill-card {
    background: var(--white);
    border: 1px solid var(--blue-border);
    border-radius: var(--radius);
    padding: 1.25rem 1.4rem;
    box-shadow: 0 1px 4px rgba(0, 53, 128, 0.07);
    transition: box-shadow var(--transition);
}

.skill-card:hover {
    box-shadow: var(--shadow);
}

.skill-card h4 {
    color: var(--blue-primary);
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

.skill-card .prereq {
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 0.5rem;
    display: block;
}

.skill-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* Conditions grid */
.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.condition-card {
    background: var(--white);
    border: 1px solid var(--blue-border);
    border-left: 4px solid var(--blue-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.25rem 1.4rem;
}

.condition-card h4 {
    color: var(--blue-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.condition-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.condition-card .recovery {
    font-size: 0.82rem;
    color: var(--text-light);
    font-style: italic;
    margin: 0;
}

/* Upgrade list */
.upgrade-list {
    list-style: none;
    counter-reset: upgrade-counter;
}

.upgrade-list li {
    counter-increment: upgrade-counter;
    padding: 0.85rem 1rem 0.85rem 3.25rem;
    margin-bottom: 0.6rem;
    background: var(--blue-pale);
    border-radius: var(--radius);
    position: relative;
    color: var(--text-muted);
    font-size: 0.97rem;
}

.upgrade-list li::before {
    content: counter(upgrade-counter);
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--blue-primary);
    color: var(--white);
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    line-height: 1.6rem;
    text-align: center;
}

/* Info box inside rules */
.rules-info-box {
    background: var(--blue-pale);
    border-radius: var(--radius);
    border-left: 4px solid var(--blue-medium);
    padding: 1.25rem 1.5rem;
    margin: 1.25rem 0;
    color: var(--text-muted);
    font-size: 0.97rem;
}

.rules-info-box p { margin-bottom: 0.5rem; }
.rules-info-box p:last-child { margin-bottom: 0; }
.rules-info-box strong { color: var(--blue-primary); }

@media (max-width: 820px) {
    .rules-layout {
        grid-template-columns: 1fr;
        padding: 2rem 0;
    }

    .rules-toc { display: none; }
}

/* ========================
   RESOURCES PAGE
======================== */
.resource-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.resource-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color, #dde6f0);
}

.resource-list li:last-child {
    border-bottom: none;
}

/* ========================
   FOOTER
======================== */
.site-footer {
    background: var(--blue-primary);
    background-image: linear-gradient(135deg, #001e55, #003580);
    color: rgba(255, 255, 255, 0.65);
    padding: 2.75rem 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    color: var(--white);
    font-size: 1.2rem;
    letter-spacing: 0.06em;
}

.footer-brand span {
    color: var(--blue-light);
}

.footer-social a {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--transition);
}

.footer-social a:hover {
    color: var(--white);
}

.footer-social svg {
    width: 22px;
    height: 22px;
}

.footer-copy {
    font-size: 0.85rem;
}

.footer-copy a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-copy a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: var(--white);
    text-decoration: none;
}

@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

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

/* ========================
   EXAMPLE OF PLAY PAGE
======================== */
.ep-container {
    padding-top: 0;
    padding-bottom: 4rem;
}

.ep-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--blue-primary);
    margin-bottom: 0;
}

.ep-tab {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    padding: 0.65rem 2rem;
    border: 2px solid var(--blue-border);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--off-white);
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    bottom: -2px;
    margin-right: 4px;
    transition: background var(--transition), color var(--transition);
}

.ep-tab:hover:not(.ep-tab-active) {
    background: var(--blue-pale);
    color: var(--blue-primary);
}

.ep-tab-active {
    background: var(--white);
    color: var(--blue-primary);
    border-color: var(--blue-primary);
    border-bottom-color: var(--white);
}

.ep-panel {
    display: none;
    padding-top: 2rem;
}

.ep-panel.ep-panel-active {
    display: block;
}

.ep-panel-header {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--blue-border);
}

.ep-panel-header h2 {
    font-size: 1.6rem;
    margin-bottom: 0.15rem;
}

.ep-genre {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-muted);
    margin: 0;
}

/* Setup block */
.ep-setup {
    background: var(--blue-pale);
    border-left: 4px solid var(--blue-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 0.9rem 1.2rem;
    margin-bottom: 1.25rem;
    font-size: 0.93rem;
    color: var(--text-dark);
}

.ep-setup p { margin: 0; }

/* Character cards */
.ep-chars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.ep-char {
    background: var(--off-white);
    border: 1px solid var(--blue-border);
    border-radius: var(--radius);
    padding: 0.7rem 0.9rem;
    font-size: 0.8rem;
    line-height: 1.5;
}

.ep-char-top {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.2rem;
}

.ep-char-player {
    background: var(--blue-primary);
    color: var(--white);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    flex-shrink: 0;
}

.ep-char-name {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: 0.88rem;
    color: var(--blue-primary);
}

.ep-char-desc {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.76rem;
    margin-bottom: 0.3rem;
}

.ep-char-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.22rem;
    margin-bottom: 0.3rem;
}

.ep-stat {
    background: var(--blue-primary);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    padding: 0.1rem 0.38rem;
    border-radius: 3px;
}

.ep-char-vitals,
.ep-char-weapon,
.ep-char-skills {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 0.1rem;
}

.ep-char-skills::before {
    content: 'Skills: ';
    color: var(--text-dark);
    font-weight: 600;
}

.ep-char-weapon::before {
    content: 'Weapon: ';
    color: var(--text-dark);
    font-weight: 600;
}

.ep-char-flaw {
    font-size: 0.74rem;
    font-style: italic;
    color: #8b3a3a;
    margin-top: 0.15rem;
}

.ep-char-flaw::before {
    content: 'Flaw: ';
    font-weight: 700;
    font-style: normal;
}

/* Scene headers */
.ep-scene {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blue-primary);
    border-bottom: 2px solid var(--blue-primary);
    padding: 0.35rem 0;
    margin: 1.75rem 0 0.5rem;
}

/* Transcript / dialogue */
.ep-transcript {
    border: 1px solid var(--blue-border);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: 0.875rem;
    line-height: 1.55;
}

.ep-line {
    display: grid;
    grid-template-columns: 3.5rem 1fr;
    gap: 0.5rem;
    padding: 0.38rem 0.7rem;
    align-items: baseline;
    border-bottom: 1px solid rgba(0, 53, 128, 0.05);
}

.ep-line:last-child { border-bottom: none; }

.ep-gm { background: rgba(0, 53, 128, 0.04); }

.ep-speaker {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--blue-light);
    text-align: right;
    padding-top: 0.1rem;
    white-space: nowrap;
}

.ep-gm .ep-speaker { color: var(--blue-primary); }

.ep-text { color: var(--text-dark); }

.ep-roll {
    font-style: normal;
    font-size: 0.8em;
    color: var(--text-light);
    font-weight: 600;
}

.ep-ooc { color: var(--text-muted); font-style: italic; }

.ep-ic { font-style: italic; }

.ep-stage { color: var(--text-light); font-style: italic; }

/* Round separator */
.ep-round-sep {
    text-align: center;
    font-family: 'Raleway', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue-light);
    padding: 0.45rem;
    background: var(--blue-pale);
    border-top: 1px solid var(--blue-border);
    border-bottom: 1px solid var(--blue-border);
}


@media (max-width: 680px) {
    .ep-chars-grid {
        grid-template-columns: 1fr;
    }

    .ep-line {
        grid-template-columns: 2.8rem 1fr;
        font-size: 0.82rem;
    }

    .ep-tab {
        padding: 0.55rem 1.1rem;
        font-size: 0.83rem;
    }
}

/* ========================
   DARKPOINT PAGE
======================== */
.page-darkpoint h2 {
    margin-bottom: 1.1rem;
}

.page-darkpoint .section {
    padding: 3rem 0;
}

.dp-hero {
    position: relative;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.dp-hero-content {
    position: relative;
    z-index: 1;
    padding: 4.5rem 1.5rem;
    max-width: 780px;
    margin: 0 auto;
}

.dp-hero h1 {
    color: var(--white);
    font-size: 5rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.dp-hero .dp-tagline {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.78;
    margin-bottom: 1.75rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    color: var(--white);
}

.dp-hero .dp-teaser {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.88;
    max-width: 620px;
    margin: 0 auto;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    color: var(--white);
}

.dp-era-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.dp-era-card {
    background: var(--white);
    border-left: 4px solid var(--blue-primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.25rem 1.4rem;
    box-shadow: var(--shadow);
}

.dp-era-card h4 {
    color: var(--blue-primary);
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.dp-era-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.6;
}

.dp-maps {
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 4rem 0;
    color: var(--white);
}

.dp-maps h2 {
    color: var(--white);
}

.dp-maps p {
    color: rgba(255, 255, 255, 0.78);
}

.dp-maps figcaption {
    color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 600px) {
    .dp-hero h1 { font-size: 3rem; letter-spacing: 0.12em; }
    .dp-hero { min-height: 400px; }
    .dp-hero .dp-tagline { font-size: 0.85rem; }
    .dp-hero .dp-teaser { font-size: 1rem; }
    .dp-maps { background-attachment: scroll; background-position: center bottom; }
}

/* ========================
   LIGHTBOX THUMBNAILS
======================== */
.lightbox-thumb {
    position: relative;
    display: inline-block;
}

.lightbox-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background-color: rgba(0, 53, 128, 0);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0;
    transition: background-color 0.2s ease, background-size 0.2s ease;
    pointer-events: none;
}

.lightbox-thumb:hover::after {
    background-color: rgba(0, 53, 128, 0.4);
    background-size: 2.5rem;
}
