/*
Theme Name: Iconoclasm Chronicles: Miniature Game Empire
Theme URI: https://www.hobbymetal-iconoclasm.com/mge/
Author: Antigravity
Description: Warhammer 40K Cyber-Gothic meets legendary Weekly Famitsu "Game Empire" (ゲーム帝国) style newspaper editorial layout. Stark, rich parchment tones, heavy black outlines, gold accents, and custom portal forms for EDM Points.
Version: 2.5.4
Text Domain: iconoclasm-chronicles
*/

/* ==========================================================================
   ICONOCLASM CHRONICLES - Theme Stylesheet (Game Empire Cyber-Gothic)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Variables
   -------------------------------------------------------------------------- */
:root {
    --bg-base: #F9F8F6;              /* Imperial Faint Off-white/Parchment */
    --bg-surface: #FFFFFF;           /* Pristine White for text slates */
    --bg-surface-dark: #1E1E1E;      /* Cyber-Gothic Deep Charcoal */
    --bg-input: #FFFFFF;
    
    /* Ink & Borders */
    --text-primary: #2A2A2A;         /* Eye-friendly Ink Charcoal */
    --text-muted: #555555;           /* Tactically faded ink */
    --border-thick: 3px solid #2A2A2A; /* Aggressive editorial border */
    --border-thin: 1.5px solid #2A2A2A;
    --border-gold: 2px solid #D4AF37;
    
    /* High-contrast Accents */
    --accent-gold: #D4AF37;          /* Imperial Gold */
    --accent-gold-hover: #E5A823;
    --accent-red: #990000;           /* Mechanicus Red / Blood of the Martyr */
    
    /* Typography */
    --font-heading-en: 'Oswald', sans-serif;          /* Blocky news headline */
    --font-heading-gothic: 'Cinzel', serif;           /* High Gothic emblem text */
    --font-heading-jp: 'Noto Serif JP', serif;        /* Heavy, spiky bold traditional Mincho */
    --font-body: 'Noto Serif JP', 'Cinzel', serif;    /* Scholarly traditional text */
    
    /* Layout Variables */
    --box-shadow-block: 4px 4px 0px #2A2A2A;          /* Retro "Game Empire" offset drop shadow */
    --box-shadow-block-hover: 1px 1px 0px #2A2A2A;
    --transition-block: all 0.15s ease-out;
}

/* --------------------------------------------------------------------------
   2. Resets & Core Globals
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
    letter-spacing: 0.03em;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

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

/* Custom Scrollbar for Gothic Vibe */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
    border-left: var(--border-thick);
}
::-webkit-scrollbar-thumb {
    background-color: var(--text-primary);
    border: 3px solid var(--bg-base);
}

/* Imperial Gilded Dividers */
.imperial-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px auto;
    max-width: 800px;
    gap: 15px;
}

.imperial-divider::before,
.imperial-divider::after {
    content: "";
    flex: 1;
    height: 4px;
    background: var(--text-primary);
    border-top: 1px solid var(--accent-gold);
    border-bottom: 1px solid var(--accent-gold);
}

.imperial-divider i {
    color: var(--accent-gold);
    font-size: 18px;
    text-shadow: 1px 1px 0px #2A2A2A;
}

/* --------------------------------------------------------------------------
   3. Header Navigation (Solid Gothic Board)
   -------------------------------------------------------------------------- */
.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    background: var(--bg-base);
    border-bottom: var(--border-thick);
    padding: 10px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

@media (min-width: 992px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.brand-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (min-width: 992px) {
    .brand-block {
        align-items: flex-start;
        text-align: left;
    }
}

.brand-title {
    font-family: var(--font-heading-jp);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    text-shadow: 1px 1px 0px var(--accent-gold);
}

.brand-subtitle {
    font-family: var(--font-heading-gothic);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-menu ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

@media (min-width: 992px) {
    .nav-menu ul {
        gap: 25px;
    }
}

.nav-link {
    font-family: var(--font-heading-jp);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    padding: 6px 12px;
    border: var(--border-thin);
    background: var(--bg-surface);
    box-shadow: 2px 2px 0px #2A2A2A;
    transition: var(--transition-block);
}

.nav-link:hover, .nav-link.active {
    background: var(--accent-gold);
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #2A2A2A;
}

.nav-link:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #2A2A2A;
}

/* User Account Meta Badge inside Header */
.user-meta-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading-en);
    font-weight: 700;
    font-size: 13px;
    padding: 6px 14px;
    background: #111111;
    color: #FFFFFF;
    border: 2px solid var(--accent-gold);
    box-shadow: 2px 2px 0px var(--text-primary);
}

.user-meta-badge i {
    color: var(--accent-gold);
}

/* --------------------------------------------------------------------------
   4. Hero / Banner Unit (Imperial Broadcast)
   -------------------------------------------------------------------------- */
.hero-block {
    background: var(--bg-surface);
    border: var(--border-thick);
    box-shadow: var(--box-shadow-block);
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-gold), var(--accent-red));
}

.hero-emblem {
    font-family: var(--font-heading-gothic);
    font-size: 40px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: 0.15em;
    text-shadow: 2px 2px 0 var(--accent-gold);
}

.hero-title {
    font-family: var(--font-heading-jp);
    font-size: 32px;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 20px;
}

.hero-text {
    font-family: var(--font-body);
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.imperial-btn {
    font-family: var(--font-heading-jp);
    font-size: 15px;
    font-weight: 900;
    padding: 12px 30px;
    border: var(--border-thick);
    background: var(--bg-surface);
    color: var(--text-primary);
    cursor: pointer;
    box-shadow: var(--box-shadow-block);
    transition: var(--transition-block);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.imperial-btn:hover {
    background: var(--accent-gold);
    color: #000000;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #2A2A2A;
}

.imperial-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #2A2A2A;
}

.imperial-btn.btn-dark {
    background: #111111;
    color: #FFFFFF;
    border-color: #111111;
}

.imperial-btn.btn-dark:hover {
    background: var(--accent-red);
    color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   5. Two Column Editorial Newspaper Grid (Game Empire Vibe)
   -------------------------------------------------------------------------- */
.editorial-grid {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .editorial-grid {
        grid-template-columns: 1.1fr 0.9fr; /* Left News, Right Q&As and Form */
    }
}

.editorial-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.column-header {
    border-bottom: var(--border-thick);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.column-title {
    font-family: var(--font-heading-jp);
    font-size: 22px;
    font-weight: 900;
    color: var(--text-primary);
    position: relative;
}

.column-title::after {
    content: "";
    position: absolute;
    bottom: -14px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-gold);
}

.column-subtitle-en {
    font-family: var(--font-heading-en);
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   6. News Dispatch Component (WH Community Pull)
   -------------------------------------------------------------------------- */
.news-card {
    background: var(--bg-surface);
    border: var(--border-thick);
    box-shadow: var(--box-shadow-block);
    padding: 24px;
    transition: var(--transition-block);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #2A2A2A;
}

.news-card-tag {
    align-self: flex-start;
    font-family: var(--font-heading-en);
    font-size: 11px;
    font-weight: 900;
    padding: 3px 10px;
    background: #111111;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid var(--accent-gold);
}

.news-card-title {
    font-family: var(--font-heading-jp);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.5;
}

.news-card-excerpt {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: var(--border-thin);
    padding-top: 12px;
    font-family: var(--font-heading-en);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.read-more-link {
    font-family: var(--font-heading-jp);
    font-weight: 900;
    color: var(--accent-red);
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more-link:hover {
    color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   7. Vox Populi: "Game Empire" Q&A Scroll
   -------------------------------------------------------------------------- */
.qa-scroll-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qa-block {
    background: var(--bg-surface);
    border: var(--border-thick);
    box-shadow: var(--box-shadow-block);
    position: relative;
    overflow: hidden;
}

/* Reader Question Bubble */
.qa-question {
    background: var(--bg-base);
    padding: 20px;
    border-bottom: var(--border-thin);
}

.qa-question-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-family: var(--font-heading-jp);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.pen-name {
    color: var(--accent-red);
    font-weight: 900;
}

.qa-question-text {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.6;
}

.qa-question-body {
    margin-top: 8px;
    font-weight: 400;
}

.qa-question-body p:last-child {
    margin-bottom: 0;
}

/* User Submited miniature preview */
.qa-miniature-preview {
    margin-top: 12px;
    border: var(--border-thin);
    box-shadow: 2px 2px 0px #2A2A2A;
    max-height: 250px;
    overflow: hidden;
}

.qa-miniature-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Imperial Dictdict Answer Section */
.qa-answer {
    padding: 20px;
    background: #111111;
    color: #FFFFFF;
    position: relative;
}

.qa-answer::before {
    content: "帝国答弁 (IMPERIAL DECREE)";
    position: absolute;
    top: 6px;
    right: 15px;
    font-family: var(--font-heading-en);
    font-size: 9px;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
    font-weight: 900;
    opacity: 0.8;
}

.qa-answer-title {
    font-family: var(--font-heading-jp);
    font-size: 13px;
    font-weight: 900;
    color: var(--accent-gold);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.qa-answer-persona {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    padding-right: 120px;
}

.qa-answer-portrait {
    width: 56px;
    height: 56px;
    border: 1px solid var(--accent-gold);
    object-fit: cover;
    object-position: center 20%;
    background: #080706;
}

.qa-answer-persona .qa-answer-title {
    margin-bottom: 2px;
}

.qa-answer-office {
    display: block;
    color: #bba875;
    font-family: var(--font-heading-en);
    font-size: 9px;
    line-height: 1.3;
    text-transform: uppercase;
}

.qa-answer-edm {
    display: inline-block;
    margin-top: 5px;
    padding: 2px 7px;
    border: 1px solid rgba(212, 175, 55, 0.7);
    color: #f1d67b;
    font-family: var(--font-heading-en);
    font-size: 9px;
    line-height: 1.4;
}

.qa-answer-pending {
    color: #b8b1a2;
    font-style: italic;
}

.reader-submission-answer {
    margin: 0 32px 32px;
    border: 1px solid rgba(199, 154, 43, 0.65);
}

.photo-review-answer {
    border-left: 4px solid var(--accent-gold);
}

.photo-review-notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(199, 154, 43, 0.4);
}

.photo-review-notes h4 {
    margin: 0 0 8px;
    color: var(--accent-gold);
    font-size: 14px;
    letter-spacing: 0;
}

.photo-review-notes ul {
    margin: 0;
    padding-left: 20px;
}

.photo-review-notes li {
    margin-bottom: 5px;
    line-height: 1.65;
}

.qa-answer-text {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.7;
    color: #F0EDE6;
}

/* --------------------------------------------------------------------------
   8. Submission Form: Gothic Altar of Petitions (読者上奏)
   -------------------------------------------------------------------------- */
.petition-altar {
    background: #F0EDE6; /* Distinct reader box background */
    border: var(--border-thick);
    box-shadow: var(--box-shadow-block);
    padding: 30px 24px;
    position: relative;
}

.altar-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: var(--border-thin);
    padding-bottom: 15px;
}

.altar-title {
    font-family: var(--font-heading-jp);
    font-size: 20px;
    font-weight: 900;
    color: var(--text-primary);
}

.altar-desc {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* High-contrast Imperial Inputs */
.altar-form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.altar-label {
    font-family: var(--font-heading-jp);
    font-size: 13px;
    font-weight: 900;
    color: var(--text-primary);
}

.altar-input,
.altar-select,
.altar-textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 14px;
    padding: 10px 12px;
    background: var(--bg-input);
    border: var(--border-thin);
    color: var(--text-primary);
    box-shadow: 2px 2px 0px #2A2A2A;
    outline: none;
    transition: var(--transition-block);
}

.altar-input:focus,
.altar-select:focus,
.altar-textarea:focus {
    border-color: var(--accent-gold);
    box-shadow: 3px 3px 0px #2A2A2A;
    background: #FFFFFF;
}

.altar-input.is-account-locked,
.altar-input[readonly] {
    background: #24201a;
    border-color: #9a772c;
    color: #e7d6a5;
    box-shadow: inset 0 0 0 1px rgba(199, 154, 43, 0.2);
    cursor: not-allowed;
}

.altar-input.is-account-locked:focus,
.altar-input[readonly]:focus {
    background: #24201a;
    box-shadow: 0 0 0 2px rgba(199, 154, 43, 0.35);
}

.altar-account-lock-note {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 2px 0 0;
    color: #bca66f;
    font-size: 12px;
    line-height: 1.6;
}

.altar-account-lock-note i {
    color: #c79a2b;
}

.mge-login-required {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    border: 1px solid #9a772c;
    background: rgba(9, 7, 5, 0.78);
    color: #d9c99b;
}

.mge-login-required-icon {
    flex: 0 0 auto;
    margin-top: 4px;
    color: #c79a2b;
    font-size: 30px;
}

.mge-login-required h4,
.mge-login-required h5 {
    margin: 0 0 8px;
    color: #f0d58b;
    font-family: var(--font-heading-jp);
    font-size: 18px;
}

.mge-login-required p {
    margin: 0 0 16px;
    line-height: 1.8;
}

.mge-comment-login-required {
    margin-top: 24px;
}

/* Gothic Drag & Drop Upload Block */
.drag-drop-altar {
    border: 2px dashed #2A2A2A;
    background: var(--bg-base);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    box-shadow: 2px 2px 0px #2A2A2A;
    transition: var(--transition-block);
    position: relative;
}

.drag-drop-altar:hover,
.drag-drop-altar.drag-over {
    background: #FFFFFF;
    border-color: var(--accent-gold);
}

.upload-icon {
    font-size: 24px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.upload-text {
    font-family: var(--font-heading-jp);
    font-size: 12px;
    font-weight: 900;
}

.upload-hint {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* File selected indicator */
.file-selected-indicator {
    display: none;
    font-family: var(--font-heading-jp);
    font-size: 12px;
    font-weight: 900;
    color: var(--accent-red);
    margin-top: 8px;
}

.submission-image-preview {
    display: none;
    margin-top: 14px;
    border: var(--border-thin);
    background: #111;
    box-shadow: 2px 2px 0px #2A2A2A;
    overflow: hidden;
}

.submission-image-preview img {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    background: #070604;
}

.submission-image-preview-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
    background: #2A2A2A;
    color: var(--accent-gold);
    font-family: var(--font-heading-jp);
    font-size: 12px;
    font-weight: 900;
}

/* Form Message Slates */
.form-response-message {
    padding: 12px;
    border: var(--border-thin);
    font-family: var(--font-heading-jp);
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 20px;
    display: none;
    box-shadow: 2px 2px 0px #2A2A2A;
}

.form-response-message.success {
    background: #E8F5E9;
    color: #2E7D32;
    border-color: #2E7D32;
}

.form-response-message.error {
    background: #FFEBEE;
    color: #C62828;
    border-color: #C62828;
}

/* --------------------------------------------------------------------------
   9. Custom Accounts Dashboard (Portal Module)
   -------------------------------------------------------------------------- */
.portal-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 0 24px;
}

.portal-board {
    background: var(--bg-surface);
    border: var(--border-thick);
    box-shadow: var(--box-shadow-block);
    padding: 40px 30px;
    position: relative;
}

/* Logged-In Imperial Dashboard */
.imperial-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    border-bottom: var(--border-thick);
    padding-bottom: 30px;
    margin-bottom: 30px;
}

@media (min-width: 576px) {
    .imperial-profile-card {
        flex-direction: row;
        text-align: left;
    }
}

.profile-seal {
    width: 80px;
    height: 80px;
    border: var(--border-thick);
    border-radius: 50%;
    background: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #FFFFFF;
    text-shadow: 2px 2px 0px #2A2A2A;
    box-shadow: 3px 3px 0px #2A2A2A;
}

.profile-meta h2 {
    font-family: var(--font-heading-jp);
    font-size: 22px;
    font-weight: 900;
}

.profile-meta p {
    font-family: var(--font-heading-gothic);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    margin-top: 4px;
}

/* Gilded EDM Points Medal Box */
.points-gold-medal {
    background: #111111;
    border: 3px solid var(--accent-gold);
    color: #FFFFFF;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--box-shadow-block);
    margin-bottom: 30px;
}

.points-label-box {
    display: flex;
    flex-direction: column;
}

.points-label-title {
    font-family: var(--font-heading-jp);
    font-size: 16px;
    font-weight: 900;
    color: var(--accent-gold);
}

.points-label-sub {
    font-family: var(--font-heading-en);
    font-size: 10px;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

.points-balance-display {
    font-family: var(--font-heading-en);
    font-size: 36px;
    font-weight: 900;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Form Tabs for Login/Register Switch */
.portal-form-tabs {
    display: flex;
    border-bottom: var(--border-thick);
    margin-bottom: 30px;
}

.portal-form-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-family: var(--font-heading-jp);
    font-weight: 900;
    font-size: 15px;
    cursor: pointer;
    background: var(--bg-base);
    border: var(--border-thin);
    border-bottom: none;
    transition: var(--transition-block);
}

.portal-form-tab.active {
    background: var(--bg-surface);
    border-top: var(--border-thick);
    border-left: var(--border-thick);
    border-right: var(--border-thick);
    transform: translateY(3px);
}

.portal-tab-panel {
    display: none;
}

.portal-tab-panel.active {
    display: block;
}

/* --------------------------------------------------------------------------
   10. Footer Section (Solid Block)
   -------------------------------------------------------------------------- */
.main-footer {
    background: #111111;
    color: #FFFFFF;
    border-top: var(--border-thick);
    padding: 60px 0 30px 0;
    font-family: var(--font-body);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

.footer-widget-title {
    font-family: var(--font-heading-jp);
    font-size: 16px;
    font-weight: 900;
    color: var(--accent-gold);
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-gold);
    padding-left: 10px;
}

.footer-widget p {
    font-size: 13px;
    color: #D3CFC9;
    line-height: 1.8;
}

.privacy-notice {
    max-width: 1200px;
    margin: 48px auto 0;
    padding: 30px 32px 26px;
    scroll-margin-top: 210px;
    color: #d8d1c4;
    background: #090806;
    border: 1px solid rgba(199, 154, 43, 0.7);
    box-shadow: inset 0 0 0 3px #090806, inset 0 0 0 4px rgba(199, 154, 43, 0.2);
}

.privacy-notice-heading {
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(199, 154, 43, 0.35);
}

.privacy-notice-kicker {
    margin: 0 0 6px;
    color: #b88b27;
    font-family: var(--font-heading-gothic);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.privacy-notice-heading h4 {
    margin: 0 0 10px;
    color: var(--accent-gold);
    font-family: var(--font-heading-jp);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0;
}

.privacy-notice-heading p,
.privacy-notice-item p {
    margin: 0;
    color: #c9c1b5;
    font-size: 12px;
    line-height: 1.85;
}

.privacy-notice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 30px;
}

.privacy-notice-item {
    padding: 22px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.privacy-notice-item-wide {
    grid-column: 1 / -1;
}

.privacy-notice-item h5 {
    margin: 0 0 9px;
    color: #d5a93e;
    font-family: var(--font-heading-jp);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
}

.privacy-notice-item h5 i {
    width: 18px;
    color: #a20f16;
    text-align: center;
}

.privacy-notice a {
    color: #e3bb58;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.privacy-notice a:hover,
.privacy-notice a:focus-visible {
    color: #ffffff;
}

.privacy-notice-updated {
    margin: 18px 0 0;
    color: #81796f;
    font-family: var(--font-heading-gothic);
    font-size: 10px;
    text-align: right;
}

@media (max-width: 767px) {
    .privacy-notice {
        margin: 36px 16px 0;
        padding: 24px 20px 20px;
    }

    .privacy-notice-grid {
        grid-template-columns: 1fr;
    }

    .privacy-notice-item-wide {
        grid-column: auto;
    }
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list a {
    font-size: 13px;
    color: #D3CFC9;
}

.footer-links-list a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-family: var(--font-heading-gothic);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: #888888;
}

/* --------------------------------------------------------------------------
   11. Helper Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-gold { color: var(--accent-gold); }
.text-red { color: var(--accent-red); }
.hidden { display: none; }

/* --------------------------------------------------------------------------
   12. Grimdark Frontend Polish Layer (closer to current art direction)
   -------------------------------------------------------------------------- */
:root {
    --bg-base: #070706;
    --bg-surface: #f0dfbd;
    --bg-surface-dark: #0d0b09;
    --text-primary: #271809;
    --text-muted: #6d5840;
    --accent-gold: #c79a2b;
    --accent-gold-hover: #f0c45d;
    --accent-red: #8f1f17;
    --border-thick: 2px solid #1d1309;
    --border-thin: 1px solid #5d4528;
    --box-shadow-block: 0 0 0 1px #a57929, 0 0 0 4px #111, 0 18px 38px rgba(0, 0, 0, 0.45);
    --box-shadow-block-hover: 0 0 0 1px #e0b64d, 0 0 0 4px #14100b, 0 22px 44px rgba(0, 0, 0, 0.55);
}

body {
    background:
        radial-gradient(circle at 20% 0%, rgba(181, 130, 42, 0.18), transparent 28rem),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,0.025) 1px, transparent 1px),
        #070706;
    background-size: auto, 44px 44px, 44px 44px, auto;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(199,154,43,0.08), transparent 18rem),
        radial-gradient(circle at 50% 15%, rgba(255,255,255,0.06), transparent 18rem);
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: radial-gradient(circle at 50% 0%, #151a22 0%, #07090c 100%);
    border-bottom: 2px solid #8e681c;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.85);
    padding: 0;
}

.admin-bar .main-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .main-header {
        top: 46px;
    }
}

@media screen and (max-width: 600px) {
    .admin-bar .main-header {
        top: 0;
    }
}

.main-header::before,
.main-header::after {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #120e0a 0%, #c79a2b 30%, #f4dca2 50%, #c79a2b 70%, #120e0a 100%);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.8);
}

.header-container {
    max-width: 1280px;
    padding: 16px 24px;
    display: grid;
    grid-template-columns: 104px minmax(330px, 1fr) minmax(200px, auto) minmax(220px, 250px);
    align-items: center;
    gap: 16px;
    background: rgba(10, 12, 16, 0.85);
    border: 3px double rgba(199, 154, 43, 0.5);
    outline: 1px solid #1c150a;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 0, 0, 0.5);
    margin: 8px auto;
    border-radius: 4px;
    position: relative;
}

.imperial-sigil {
    display: none;
}

.imperial-sigil-ring {
    width: 96px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 3px double #c79a2b;
    background: radial-gradient(circle, rgba(23, 27, 34, 0.9) 0%, #050608 100%);
    box-shadow: 0 0 20px rgba(199, 154, 43, 0.35), inset 0 0 12px rgba(199, 154, 43, 0.25);
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 4px;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.imperial-sigil:hover .imperial-sigil-ring {
    transform: rotate(360deg) scale(1.05);
    border-color: #f2d58a;
    box-shadow: 0 0 28px rgba(242, 213, 138, 0.5), inset 0 0 15px rgba(242, 213, 138, 0.3);
}

.aquila-seal-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(199, 154, 43, 0.5));
}

@media (min-width: 992px) {
    .imperial-sigil {
        display: block;
    }
}

.brand-block {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: #f4dca2;
    transition: text-shadow 0.3s ease;
}

.brand-block:hover {
    text-shadow: 0 0 15px rgba(242, 213, 138, 0.4);
}

.brand-title {
    margin: 0;
    font-family: var(--font-heading-jp, 'Noto Serif JP', serif);
    color: #f2d58a;
    font-size: clamp(20px, 2.1vw, 29px);
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px #000, 0 0 15px rgba(199, 154, 43, 0.3);
}

.brand-title span {
    display: block;
    white-space: nowrap;
}

.brand-subtitle {
    font-family: var(--font-heading-gothic, 'Cinzel', serif);
    color: #a98b50;
    font-size: clamp(10px, 1.2vw, 13px);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 2px;
    text-shadow: 0 1px 2px #000;
}

.iconoclasm-shop-mark {
    grid-column: 4;
    grid-row: 1;
    width: 100%;
    max-width: 250px;
    justify-self: end;
    align-self: center;
    display: block;
    overflow: hidden;
    border: 2px double rgba(199, 154, 43, 0.72);
    background: #050608;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.65), 0 0 10px rgba(199, 154, 43, 0.12);
    text-decoration: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.iconoclasm-shop-mark img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 3;
    object-fit: cover;
}

.iconoclasm-shop-mark:hover,
.iconoclasm-shop-mark:focus-visible {
    border-color: #f2d58a;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.7), 0 0 16px rgba(242, 213, 138, 0.3);
    transform: translateY(-1px);
}

.nav-menu {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
}

.nav-menu ul {
    gap: 8px;
}

.nav-link {
    min-width: 146px;
    min-height: 56px;
    display: grid;
    grid-template-columns: 24px 1fr;
    grid-template-rows: auto auto;
    column-gap: 8px;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(180deg, #12151c 0%, #07080b 100%);
    border: 2px double #5e471d;
    color: #ead7aa;
    text-decoration: none;
    position: relative;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.8), 0 3px 6px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 2px;
}

.nav-link i {
    grid-row: 1 / 3;
    color: #c79a2b;
    font-size: 16px;
    filter: drop-shadow(0 0 3px rgba(199, 154, 43, 0.3));
    transition: color 0.3s ease, filter 0.3s ease;
    display: flex;
    justify-content: center;
}

.nav-link span {
    font-family: var(--font-heading-jp, 'Noto Serif JP', serif);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav-link small {
    color: #8c7350;
    font-family: var(--font-heading-gothic, 'Oswald', sans-serif);
    font-size: 8px;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-link:hover {
    background: linear-gradient(180deg, #2b2114 0%, #0f0b08 100%);
    border-color: #c79a2b;
    color: #fff3cf;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(199, 154, 43, 0.35), inset 0 0 8px rgba(199, 154, 43, 0.2);
}

.nav-link:hover i {
    color: #f2d58a;
    filter: drop-shadow(0 0 6px rgba(242, 213, 138, 0.6));
}

.nav-link:hover span {
    color: #fff;
}

.nav-link:hover small {
    color: #e2be84;
}

.nav-link.active {
    background: linear-gradient(180deg, #f2d58a 0%, #c79a2b 100%);
    border-color: #fff3cf;
    box-shadow: 0 0 20px rgba(242, 213, 138, 0.5), inset 0 0 6px rgba(255, 255, 255, 0.4);
    color: #070706 !important;
    transform: translateY(0);
}

.nav-link.active i {
    color: #070706 !important;
    filter: none;
}

.nav-link.active span {
    color: #070706 !important;
    font-weight: 900;
}

.nav-link.active small {
    color: #1a150e !important;
    font-weight: 700;
}

.header-user-status {
    grid-column: 3;
    grid-row: 1;
    justify-self: center;
    align-self: center;
}

.user-meta-badge {
    min-width: 200px;
    display: grid;
    grid-template-columns: 32px 1fr;
    align-items: center;
    padding: 8px 12px;
    background: radial-gradient(circle at center, #12151b 0%, #050608 100%);
    border: 2px double #c79a2b;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(199, 154, 43, 0.15);
    color: #ead7aa;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s ease;
    gap: 8px;
    position: relative;
}

.user-meta-badge:hover {
    border-color: #f2d58a;
    box-shadow: 0 6px 20px rgba(199, 154, 43, 0.25), inset 0 0 12px rgba(199, 154, 43, 0.2);
    transform: translateY(-1px);
}

.badge-icon-area {
    display: grid;
    place-items: center;
    height: 100%;
    border-right: 1px solid rgba(199, 154, 43, 0.3);
    padding-right: 8px;
}

.badge-icon-area i {
    color: #c79a2b;
    font-size: 16px;
    filter: drop-shadow(0 0 3px rgba(199, 154, 43, 0.4));
}

.user-meta-badge:hover .badge-icon-area i {
    color: #f2d58a;
}

.user-meta-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding-left: 2px;
}

.user-name {
    font-family: var(--font-heading-gothic, 'Oswald', sans-serif);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
    line-height: 1.1;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.user-points-row {
    display: flex;
    align-items: center;
    font-family: var(--font-heading-gothic, 'Oswald', sans-serif);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    gap: 4px;
}

.user-points-row .separator {
    color: #c79a2b;
    margin-right: 2px;
}

.points-val {
    color: #f2d58a;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(242, 213, 138, 0.3);
}

.points-unit {
    color: #a98b50;
    font-size: 10px;
    letter-spacing: 0.05em;
}

.header-user-status .imperial-btn.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font-heading-jp, 'Noto Serif JP', serif);
    font-size: 12px;
    font-weight: 900;
    color: #070706;
    background: linear-gradient(180deg, #f2d58a 0%, #c79a2b 100%);
    border: 1px solid #fff3cf;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.header-user-status .imperial-btn.login-btn:hover {
    background: linear-gradient(180deg, #fff3cf 0%, #f2d58a 100%);
    box-shadow: 0 6px 15px rgba(242, 213, 138, 0.4);
    transform: translateY(-1px);
}

.hero-block {
    max-width: 1280px;
    min-height: 530px;
    margin: 18px auto 14px;
    padding: 0;
    display: grid;
    place-items: center;
    color: #f5e5bd;
    background:
        linear-gradient(180deg, rgba(5,4,4,0.08), rgba(5,4,4,0) 42%, rgba(5,4,4,0.14) 100%),
        linear-gradient(90deg, rgba(5,4,4,0.22), rgba(5,4,4,0), rgba(5,4,4,0.22)),
        var(--hero-image) center center / cover no-repeat;
    border: 1px solid #c79a2b;
    box-shadow: var(--box-shadow-block);
    overflow: hidden;
}

.hero-block::before {
    inset: 14px;
    height: auto;
    border: 1px solid rgba(199,154,43,0.76);
    background:
        linear-gradient(90deg, rgba(199,154,43,0.9), transparent 15%, transparent 85%, rgba(199,154,43,0.9));
    opacity: 0.45;
    pointer-events: none;
}

.hero-block::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 44%, rgba(0,0,0,0), rgba(0,0,0,0.08) 66%, rgba(0,0,0,0.2)),
        linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.1));
    pointer-events: none;
}

.hero-broadcast-panel {
    position: absolute;
    z-index: 1;
    inset: 16px 28px;
    width: auto;
    max-width: none;
    box-sizing: border-box;
    min-height: auto;
    margin: 0;
    padding: 16px 26px 4px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: start;
    gap: 14px;
    text-align: center;
    background: transparent;
    transform: translateX(-18px);
}

.hero-emblem {
    color: #e7bd55;
    font-size: 40px;
    text-shadow: 0 0 22px rgba(231,189,85,0.6);
}

.hero-kicker {
    margin-bottom: 6px;
    font-family: var(--font-heading-gothic);
    color: #d3b36c;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 11px;
}

.hero-title {
    color: #f8f0df;
    font-size: clamp(22px, 2.1vw, 32px);
    line-height: 1.72;
    margin: 0;
    text-shadow: 0 3px 8px #000, 0 0 18px rgba(0,0,0,0.95);
}

.hero-line {
    display: block;
    white-space: nowrap;
}

.hero-title rt {
    font-size: 0.31em;
    letter-spacing: 0;
    color: #f8f0df;
    text-shadow: 0 2px 4px #000;
}

.hero-text {
    max-width: 1080px;
    margin: 0 auto;
    align-self: center;
    color: #f1eadb;
    font-size: clamp(14px, 1.32vw, 19px);
    line-height: 1.9;
    text-shadow: 0 3px 8px #000, 0 0 12px rgba(0,0,0,0.9);
}

.hero-text rt {
    font-size: 0.36em;
    letter-spacing: 0;
}

.hero-manifest {
    width: min(100%, 1220px);
    margin: 0;
    justify-self: center;
    color: #f8f0df;
    font-family: var(--font-heading-jp);
    font-size: clamp(23px, 2.9vw, 41px);
    font-weight: 900;
    line-height: 1.12;
    white-space: nowrap;
    text-shadow: 0 4px 10px #000, 0 0 16px rgba(0,0,0,0.92);
}

.imperial-personae {
    position: relative;
    max-width: 1280px;
    margin: 0 auto 14px;
    padding: 18px 18px 20px;
    color: #f3dfaf;
    background:
        linear-gradient(90deg, rgba(199,154,43,0.05) 1px, transparent 1px),
        linear-gradient(0deg, rgba(199,154,43,0.05) 1px, transparent 1px),
        linear-gradient(180deg, #15110d 0%, #080706 100%);
    background-size: 28px 28px, 28px 28px, auto;
    border: 1px solid #c79a2b;
    box-shadow: var(--box-shadow-block);
    overflow: hidden;
}

.imperial-personae::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(199,154,43,0.25);
    pointer-events: none;
}

.personae-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 14px;
    margin: 0 0 14px;
    padding: 0 12px 10px;
    border-bottom: 1px solid rgba(199,154,43,0.48);
    text-align: center;
}

.personae-header h2 {
    margin: 0;
    color: #f0c45d;
    font-family: var(--font-heading-jp);
    font-size: 23px;
    font-weight: 900;
    line-height: 1.35;
}

.personae-kicker {
    color: #a98b50;
    font-family: var(--font-heading-gothic);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.personae-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.persona-card {
    min-width: 0;
    overflow: hidden;
    color: #f3dfaf;
    background: #0b0907;
    border: 1px solid rgba(199,154,43,0.62);
    border-radius: 2px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025);
}

.persona-portrait {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #050403;
    border-bottom: 1px solid rgba(199,154,43,0.55);
}

.persona-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 24%;
    filter: contrast(1.04) saturate(0.92);
    transition: transform 180ms ease, filter 180ms ease;
}

.persona-card-emperor .persona-portrait img {
    object-position: center 18%;
}

.persona-card:hover .persona-portrait img {
    transform: scale(1.025);
    filter: contrast(1.08) saturate(1);
}

.persona-copy {
    min-height: 86px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 9px 7px 10px;
    text-align: center;
}

.persona-copy h3 {
    margin: 0;
    color: #f3dfaf;
    font-family: var(--font-heading-jp);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.45;
}

.persona-copy p {
    margin: 0;
    color: #a98b50;
    font-family: var(--font-heading-gothic);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.05em;
}

.imperial-btn {
    background: linear-gradient(180deg, #16110d, #080605);
    color: #ead7aa;
    border: 1px solid #b9862f;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.04), 0 4px 0 #000;
}

.imperial-btn:hover {
    background: linear-gradient(180deg, #b98420, #6d4313);
    color: #fff5d6;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.08), 0 7px 0 #000;
}

.imperial-btn.btn-dark {
    background: linear-gradient(180deg, #641911, #270907);
    border-color: #d5a044;
}

.editorial-grid {
    max-width: 1280px;
    margin-top: 0;
    padding: 34px 28px;
    gap: 38px;
    background:
        linear-gradient(90deg, rgba(61,41,20,0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(61,41,20,0.08) 1px, transparent 1px),
        #ead7aa;
    background-size: 28px 28px;
    border: 1px solid #b98b3a;
    box-shadow: var(--box-shadow-block);
}

.column-header {
    border-bottom: 1px solid rgba(39,24,9,0.55);
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.column-title {
    font-size: 28px;
}

.column-title::after {
    left: 50%;
    transform: translateX(-50%);
    bottom: -13px;
}

.news-card,
.qa-block,
.petition-altar {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.22), transparent 22%),
        #ead7aa;
    border: 1px solid #5d4528;
    box-shadow: 0 0 0 3px rgba(39,24,9,0.95), 0 0 0 4px #c79a2b;
}

.news-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    padding: 14px;
}

.news-card-media {
    min-height: 128px;
    border: 1px solid #5d4528;
    overflow: hidden;
    background: #100c08;
}

.news-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-copy {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.news-card-meta {
    grid-column: 1 / -1;
}

.qa-question {
    background: rgba(122, 27, 20, 0.08);
}

.qa-answer {
    background:
        linear-gradient(90deg, rgba(199,154,43,0.1), transparent 45%),
        #100c08;
}

.petition-altar {
    background:
        radial-gradient(circle at 80% 20%, rgba(199,154,43,0.17), transparent 14rem),
        #17110c;
    color: #ead7aa;
}

.petition-altar .altar-title,
.petition-altar .altar-label {
    color: #f0d58b;
}

.petition-altar .altar-desc {
    color: #bfa979;
}

.altar-input,
.altar-select,
.altar-textarea {
    background: #0b0907;
    color: #ead7aa;
    border: 1px solid #70502b;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.altar-input:focus,
.altar-select:focus,
.altar-textarea:focus {
    background: #100c08;
    box-shadow: 0 0 0 2px rgba(199,154,43,0.38);
}

.drag-drop-altar {
    background: #0b0907;
    border-color: #70502b;
    box-shadow: none;
}

.reader-backnumber-cta {
    margin: -16px 0 32px;
    text-align: center;
}

.reader-backnumber-band {
    max-width: 1280px;
    margin: 28px auto 0;
    padding: 30px 28px;
    background:
        linear-gradient(90deg, rgba(61,41,20,0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(61,41,20,0.08) 1px, transparent 1px),
        #ead7aa;
    background-size: 28px 28px;
    border: 1px solid #b98b3a;
    box-shadow: var(--box-shadow-block);
    color: #2A2A2A;
}

.reader-backnumber-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.reader-backnumber-card {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 14px;
    padding: 14px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.22), transparent 22%),
        #f0dfbd;
    border: 1px solid #5d4528;
    box-shadow: 0 0 0 3px rgba(39,24,9,0.95), 0 0 0 4px #c79a2b;
}

.reader-backnumber-thumb {
    display: grid;
    place-items: center;
    min-height: 112px;
    aspect-ratio: 1 / 1;
    background: #100c08;
    border: 1px solid #5d4528;
    overflow: hidden;
    color: #d3a548;
    font-size: 34px;
}

.reader-backnumber-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reader-backnumber-copy {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.reader-backnumber-meta,
.reader-backnumber-author {
    color: #6e5434;
    font-family: var(--font-heading-gothic);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.reader-backnumber-copy h4 {
    font-family: var(--font-heading-jp);
    font-size: 17px;
    line-height: 1.45;
    margin: 0;
}

.reader-backnumber-copy h4 a {
    color: #2A2A2A;
}

.reader-backnumber-copy h4 a:hover {
    color: #8b1e16;
}

.reader-backnumber-copy p {
    color: #493822;
    font-size: 12px;
    line-height: 1.7;
    margin: 0;
}

.reader-backnumber-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 26px;
}

.reader-page-link {
    min-width: 38px;
    padding: 8px 12px;
    text-align: center;
    color: #2A2A2A;
    background: #f0dfbd;
    border: 1px solid #5d4528;
    font-family: var(--font-heading-gothic);
    font-weight: 900;
    box-shadow: 2px 2px 0 #2A2A2A;
}

.reader-page-link:hover,
.reader-page-link.active {
    color: #f6e6bd;
    background: #8b1e16;
    border-color: #2A2A2A;
}

.rule-board-band {
    max-width: 1280px;
    margin: 28px auto 0;
    padding: 30px 28px;
    background:
        radial-gradient(circle at 50% 0%, rgba(122,27,20,0.2), transparent 22rem),
        linear-gradient(180deg, #17110c, #090706);
    border: 1px solid #c79a2b;
    box-shadow: var(--box-shadow-block);
    color: #ead7aa;
}

.rule-board-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.rule-topic-card {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 14px;
    padding: 16px;
    background: rgba(5,4,4,0.82);
    border: 1px solid rgba(199,154,43,0.65);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.03), 0 5px 0 #000;
}

.rule-topic-icon {
    display: grid;
    place-items: center;
    min-height: 68px;
    color: #f0c45d;
    font-size: 30px;
    background: #100c08;
    border: 1px solid #70502b;
}

.rule-topic-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rule-topic-meta {
    color: #bfa979;
    font-family: var(--font-heading-gothic);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.rule-topic-copy h4 {
    font-family: var(--font-heading-jp);
    font-size: 17px;
    line-height: 1.45;
    margin: 0;
}

.rule-topic-copy h4 a {
    color: #f5ddb0;
}

.rule-topic-copy h4 a:hover {
    color: #ff5252;
}

.rule-topic-copy p {
    color: #dbcaa2;
    font-size: 12px;
    line-height: 1.7;
    margin: 0;
}

.rule-topic-single,
.rule-comments-panel {
    max-width: 980px;
    margin: 34px auto 0;
    padding: 0 24px;
}

.rule-topic-single-card,
.rule-comments-panel {
    background:
        radial-gradient(circle at 50% 0%, rgba(122,27,20,0.18), transparent 22rem),
        linear-gradient(180deg, #17110c, #090706);
    border: 1px solid #c79a2b;
    box-shadow: var(--box-shadow-block);
    color: #ead7aa;
    padding: 28px;
}

.rule-topic-single-image {
    margin: 0 0 24px;
    border: 1px solid rgba(199,154,43,0.65);
    background: #050404;
    overflow: hidden;
}

.rule-topic-single-image img {
    display: block;
    width: 100%;
    height: auto;
}

.rule-topic-single-body {
    color: #f1dfb6;
    font-size: 15px;
    line-height: 1.9;
}

.rule-comments-list {
    margin: 0 0 28px;
    padding-left: 0;
    list-style: none;
}

.rule-comments-list .comment {
    margin-bottom: 16px;
    padding: 16px;
    background: rgba(5,4,4,0.72);
    border: 1px solid rgba(199,154,43,0.45);
}

.rule-comments-list .comment-meta,
.rule-comments-list .reply {
    font-family: var(--font-heading-gothic);
    font-size: 11px;
}

.rule-comments-panel label {
    display: block;
    margin-bottom: 7px;
    color: #f0c45d;
    font-family: var(--font-heading-jp);
    font-weight: 900;
}

.rule-comments-panel input,
.rule-comments-panel textarea {
    width: 100%;
    background: #0b0907;
    color: #ead7aa;
    border: 1px solid #70502b;
    padding: 10px 12px;
}

.rule-comments-panel .submit {
    width: auto;
    cursor: pointer;
    color: #ead7aa;
    background: linear-gradient(180deg, #641911, #270907);
    border: 1px solid #d5a044;
    font-family: var(--font-heading-jp);
    font-weight: 900;
}

.astropath-single {
    max-width: 980px;
    margin: 34px auto 0;
    padding: 0 24px;
}

.astropath-single-card {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.18), transparent 22%),
        #ead7aa;
    border: 1px solid #5d4528;
    box-shadow: 0 0 0 3px rgba(39,24,9,0.95), 0 0 0 4px #c79a2b, var(--box-shadow-block);
    padding: 34px;
    color: #2A2A2A;
}

.astropath-single-header {
    text-align: center;
    border-bottom: 1px solid rgba(39,24,9,0.55);
    padding-bottom: 22px;
    margin-bottom: 26px;
}

.astropath-single-header h2 {
    font-family: var(--font-heading-jp);
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.5;
    margin: 6px 0 14px;
    font-weight: 900;
}

.astropath-single-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    color: #6e5434;
    font-family: var(--font-heading-gothic);
    font-size: 12px;
}

.astropath-single-meta i {
    margin-right: 6px;
    color: #8b1e16;
}

.astropath-single-image {
    max-width: 920px;
    margin: 0 auto 26px;
    padding: 10px;
    border: 3px double #9f7926;
    background: #100c08;
    box-shadow: inset 0 0 0 1px #231b0d, 0 8px 20px rgba(0, 0, 0, 0.34);
    overflow: hidden;
}

.astropath-single-image img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 880px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.astropath-single-body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.95;
}

.astropath-single-body a {
    color: #8b1e16;
    font-weight: 900;
}

.astropath-single-body img {
    max-width: 100%;
    height: auto;
}

.astropath-single-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(39,24,9,0.55);
    text-align: center;
}

.astropath-source-body {
    margin: 26px 0;
}

.astropath-source-body h2,
.astropath-source-body h3 {
    color: #3b2415;
    font-family: var(--font-heading-jp);
    font-weight: 900;
    line-height: 1.5;
    margin: 34px 0 14px;
}

.astropath-source-body h2 {
    font-size: 28px;
}

.astropath-source-body h3 {
    font-size: 23px;
}

.astropath-source-body figure,
.astropath-source-body picture,
.astropath-source-body video,
.astropath-source-body iframe {
    display: block;
    margin: 24px auto;
    max-width: 100%;
}

.astropath-source-body img,
.astropath-source-body video,
.astropath-source-body iframe {
    height: auto;
    max-width: 100%;
}

.astropath-source-body figcaption {
    color: #6e5434;
    font-size: 12px;
    line-height: 1.6;
    margin-top: 7px;
    text-align: center;
}

.astropath-source-credit {
    border-top: 1px solid rgba(39,24,9,0.35);
    margin-top: 34px;
    padding-top: 18px;
    text-align: right;
}

.miniature-gallery-band {
    max-width: 1280px;
    margin: 28px auto 0;
    padding: 30px 28px;
    background:
        radial-gradient(circle at 50% 0%, rgba(199,154,43,0.18), transparent 22rem),
        linear-gradient(180deg, #17110c, #090706);
    border: 1px solid #c79a2b;
    box-shadow: var(--box-shadow-block);
    color: #ead7aa;
}

.gallery-header {
    text-align: center;
    margin-bottom: 24px;
}

.gallery-header h3 {
    font-family: var(--font-heading-jp);
    color: #f0c45d;
    font-size: 30px;
    margin: 4px 0 8px;
}

.gallery-header p {
    color: #cbb98d;
    font-size: 13px;
}

.miniature-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.gallery-relic-card {
    background: #0b0907;
    border: 1px solid rgba(199,154,43,0.65);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.03), 0 5px 0 #000;
    overflow: hidden;
}

.gallery-relic-image {
    display: block;
    aspect-ratio: 4 / 3;
    padding: 7px;
    border-bottom: 1px solid rgba(199, 154, 43, 0.65);
    background: #050404;
    overflow: hidden;
}

.gallery-relic-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 180ms ease, filter 180ms ease;
}

.gallery-relic-card:hover .gallery-relic-image img {
    transform: scale(1.04);
    filter: brightness(1.08);
}

.gallery-relic-copy {
    padding: 12px;
}

.gallery-relic-meta {
    display: block;
    color: #bfa979;
    font-family: var(--font-heading-gothic);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.gallery-relic-copy h4 {
    font-family: var(--font-heading-jp);
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
}

.gallery-relic-copy a {
    color: #f5ddb0;
}

.gallery-relic-copy a:hover {
    color: #ff5252;
}

.gallery-review-preview {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid rgba(199, 154, 43, 0.35);
}

.gallery-review-preview img {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border: 1px solid var(--accent-gold);
    background: #080706;
}

.gallery-review-preview strong {
    display: block;
    margin-bottom: 3px;
    color: var(--accent-gold);
    font-size: 12px;
    line-height: 1.3;
}

.gallery-review-preview p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #d8ceb9;
    font-size: 12px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* --------------------------------------------------------------------------
   Public relic page and manually approved character appraisal
   -------------------------------------------------------------------------- */
.relic-single-page {
    min-height: 100vh;
    padding: 48px 18px 64px;
    background:
        radial-gradient(circle at 50% 0, rgba(126, 88, 25, 0.18), transparent 46%),
        #0b0709;
}

.relic-single-entry {
    max-width: 1040px;
    margin: 0 auto;
}

.relic-parchment-container {
    position: relative;
    padding: clamp(28px, 5vw, 58px);
    color: #251b12;
    border: 8px double #7b5921;
    outline: 1px solid #d5b85e;
    background:
        linear-gradient(rgba(255, 250, 228, 0.92), rgba(230, 211, 163, 0.94)),
        #e5d4a8;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.65), inset 0 0 40px rgba(91, 56, 17, 0.2);
}

.relic-header-seal {
    display: grid;
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    place-items: center;
    color: #f0cf68;
    border: 3px double #d2aa42;
    border-radius: 50%;
    background: #651617;
    box-shadow: 0 3px 0 #321010;
}

.relic-seal-icon {
    font-size: 28px;
    line-height: 1;
}

.relic-parchment-container > .column-subtitle-en {
    display: block;
    color: #71501e;
    text-align: center;
}

.relic-title {
    margin: 8px 0 10px;
    color: #1b1510;
    font-family: var(--font-heading-jp);
    font-size: clamp(28px, 5vw, 50px);
    line-height: 1.25;
    text-align: center;
}

.relic-vower-name {
    margin: 0 0 28px;
    color: #664821;
    font-family: var(--font-heading-gothic);
    text-align: center;
}

.relic-image-frame {
    display: flex;
    max-width: 900px;
    min-height: 220px;
    margin: 0 auto 30px;
    padding: clamp(10px, 2vw, 18px);
    align-items: center;
    justify-content: center;
    border: 8px ridge #a9822d;
    outline: 2px solid #25190c;
    background: #080706;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9), 0 8px 18px rgba(53, 31, 8, 0.42);
}

.relic-image-frame .relic-main-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 920px;
    height: auto;
    margin: auto;
    object-fit: contain;
    object-position: center;
}

.relic-commentary {
    max-width: 820px;
    margin: 0 auto 34px;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.9;
}

.relic-photo-review {
    max-width: 880px;
    margin: 38px auto 28px;
    padding: clamp(20px, 4vw, 34px);
    color: #eee7d7;
    border: 2px solid #b58a2a;
    border-left-width: 7px;
    background: #12100d;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 8px 0 rgba(67, 40, 10, 0.35);
}

.relic-review-heading {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(199, 154, 43, 0.45);
}

.relic-review-portrait {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: cover;
    border: 2px solid #c79a2b;
    background: #050404;
}

.relic-review-heading h2 {
    margin: 2px 0 1px;
    color: #f4d77c;
    font-family: var(--font-heading-jp);
    font-size: clamp(19px, 3vw, 27px);
    line-height: 1.35;
}

.relic-review-heading .column-subtitle-en,
.relic-review-office {
    display: block;
    color: #baaa82;
    font-family: var(--font-heading-gothic);
    font-size: 10px;
    letter-spacing: 0.09em;
}

.relic-review-prose {
    padding: 18px 0 4px;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.85;
}

.relic-review-edm {
    color: #f2d373;
    font-family: var(--font-heading-gothic);
}

.relic-review-notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.relic-review-notes section {
    padding: 16px;
    border: 1px solid rgba(199, 154, 43, 0.48);
    background: rgba(255, 255, 255, 0.035);
}

.relic-review-notes h3 {
    margin: 0 0 10px;
    color: #f0cd65;
    font-size: 15px;
}

.relic-review-notes ul {
    margin: 0;
    padding-left: 20px;
}

.relic-review-notes li {
    margin-bottom: 6px;
    line-height: 1.65;
}

.relic-meta-data {
    margin-top: 34px;
    padding-top: 16px;
    color: #71501e;
    border-top: 1px solid rgba(91, 58, 18, 0.4);
    font-family: var(--font-heading-gothic);
    font-size: 11px;
    text-align: center;
}

.relic-meta-data p {
    margin: 4px 0;
}

@media (max-width: 640px) {
    .relic-single-page {
        padding: 26px 10px 40px;
    }

    .relic-parchment-container {
        padding: 24px 14px;
        border-width: 5px;
    }

    .relic-image-frame {
        padding: 8px;
        border-width: 5px;
    }

    .relic-review-heading {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .relic-review-portrait {
        width: 48px;
        height: 48px;
    }

    .relic-review-notes {
        grid-template-columns: 1fr;
    }
}

.gallery-review-pending {
    display: block;
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid rgba(199, 154, 43, 0.35);
    color: #c8b88f;
    font-size: 12px;
}

.civic-portal-band {
    max-width: 1280px;
    margin: 28px auto 0;
    padding: 26px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 26px;
    align-items: stretch;
    background:
        linear-gradient(90deg, rgba(137,31,23,0.78), rgba(28,16,9,0.92)),
        url('images/hobby_supplies.png') right center / auto 100% no-repeat;
    border: 1px solid #c79a2b;
    box-shadow: var(--box-shadow-block);
    color: #f0dfbd;
}

.civic-portal-copy {
    border-right: 1px solid rgba(199,154,43,0.45);
    padding-right: 26px;
}

.civic-portal-copy h3 {
    font-family: var(--font-heading-jp);
    color: #f0c45d;
    font-size: 30px;
    margin: 4px 0 12px;
}

.civic-portal-copy p {
    color: #e6d3aa;
    font-size: 14px;
}

.civic-portal-links {
    display: grid;
    grid-template-columns: repeat(6, minmax(110px, 1fr));
    gap: 12px;
}

.civic-portal-links a {
    min-height: 128px;
    display: grid;
    place-items: center;
    gap: 8px;
    text-align: center;
    padding: 16px;
    color: #f6e6bd;
    background: rgba(5,4,4,0.72);
    border: 1px solid rgba(199,154,43,0.65);
}

.civic-portal-links i {
    color: #e7bd55;
    font-size: 34px;
}

.civic-portal-links span {
    font-family: var(--font-heading-jp);
    font-weight: 900;
}

.main-footer {
    margin-top: 28px;
    background: linear-gradient(180deg, #0e0b08, #030302);
    border-top: 1px solid #c79a2b;
}

@media (max-width: 991px) {
    .header-container {
        grid-template-columns: 72px minmax(0, 1fr);
        grid-template-rows: auto auto auto auto;
        gap: 12px;
        padding: 12px;
        text-align: left;
    }

    .imperial-sigil {
        display: block;
        grid-column: 1;
        grid-row: 1;
        align-self: start;
    }

    .imperial-sigil-ring {
        width: 72px;
    }

    .brand-block {
        grid-column: 2;
        grid-row: 1;
        align-items: flex-start;
        min-width: 0;
    }

    .brand-title {
        font-size: clamp(18px, 4vw, 24px);
        line-height: 1.45;
    }

    .brand-subtitle {
        font-size: 9px;
        letter-spacing: 0.1em;
    }

    .iconoclasm-shop-mark {
        grid-column: 1 / -1;
        grid-row: 3;
        width: min(100%, 280px);
    }

    .header-user-status {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
    }

    .nav-menu {
        grid-column: 1 / -1;
        grid-row: 4;
        width: 100%;
    }

    .nav-menu ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .nav-link {
        min-width: 0;
        width: 100%;
    }

    .hero-block {
        min-height: 560px;
    }

    .personae-grid {
        display: flex;
        gap: 10px;
        padding-bottom: 10px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-color: #9f7726 #080706;
        scrollbar-width: thin;
    }

    .persona-card {
        flex: 0 0 180px;
        scroll-snap-align: start;
    }

    .news-card {
        grid-template-columns: 1fr;
    }

    .news-card-media {
        min-height: 210px;
    }

    .civic-portal-band {
        grid-template-columns: 1fr;
    }

    .miniature-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reader-backnumber-grid {
        grid-template-columns: 1fr;
    }

    .rule-board-grid {
        grid-template-columns: 1fr;
    }

    .civic-portal-copy {
        border-right: 0;
        border-bottom: 1px solid rgba(199,154,43,0.45);
        padding-right: 0;
        padding-bottom: 18px;
    }

    .civic-portal-links {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }
}

@media (max-width: 560px) {
    .hero-actions,
    .civic-portal-links,
    .miniature-gallery-grid {
        grid-template-columns: 1fr;
    }

    .header-container {
        width: calc(100% - 8px);
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 10px;
        margin: 4px auto;
        padding: 10px;
    }

    .imperial-sigil-ring {
        width: 64px;
    }

    .brand-title {
        font-size: 18px;
        line-height: 1.5;
    }

    .brand-subtitle {
        font-size: 8px;
    }

    .iconoclasm-shop-mark {
        width: min(100%, 250px);
    }

    .user-meta-badge {
        min-width: min(200px, 100%);
    }

    .nav-menu ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-menu li:last-child {
        grid-column: 1 / -1;
    }

    .reader-backnumber-card {
        grid-template-columns: 1fr;
    }

    .rule-topic-card {
        grid-template-columns: 1fr;
    }

    .nav-link {
        width: 100%;
        min-width: 0;
        padding: 7px 9px;
    }

    .nav-link span {
        font-size: 11px;
    }

    .hero-broadcast-panel {
        inset: 16px;
        min-height: auto;
        width: auto;
        margin: 0;
        padding: 28px 16px 16px;
        transform: none;
    }

    .hero-line {
        white-space: normal;
    }

    .hero-manifest {
        white-space: normal;
        line-height: 1.2;
    }

    .imperial-personae {
        width: calc(100% - 8px);
        padding: 15px 12px 14px;
    }

    .personae-header {
        display: block;
        margin-bottom: 10px;
    }

    .personae-header h2 {
        margin-top: 2px;
        font-size: 20px;
    }

    .personae-kicker {
        font-size: 9px;
    }

    .persona-card {
        flex-basis: 156px;
    }

    .persona-copy {
        min-height: 82px;
    }

    .persona-copy h3 {
        font-size: 13px;
    }

    .qa-answer::before {
        position: static;
        display: block;
        margin-bottom: 8px;
        text-align: right;
    }

    .qa-answer-persona {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 9px;
        padding-right: 0;
    }

    .qa-answer-portrait {
        width: 48px;
        height: 48px;
    }

    .reader-submission-answer {
        margin: 0 12px 20px;
    }

    .photo-review-notes {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ========================================================================== 
   SUBMISSION JOURNEY 3.0
   帝国上奏所 -> 完成品お披露目 -> 帝国展示廊
   Front-end only. Server-side intake remains unchanged.
   ========================================================================== */

.mge-submission-system {
    --mge-route-ink: #17130e;
    --mge-route-paper: #f4efe3;
    --mge-route-gold: #c79a2b;
    --mge-route-red: #8d1717;
    max-width: 920px;
    margin-right: auto;
    margin-left: auto;
    padding: 34px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
        repeating-linear-gradient(0deg, rgba(23, 19, 14, 0.025) 0 1px, transparent 1px 5px),
        var(--mge-route-paper);
}

.mge-submission-system::before,
.mge-submission-system::after {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    pointer-events: none;
}

.mge-submission-system::before {
    top: 9px;
    left: 9px;
    border-top: 2px solid var(--mge-route-gold);
    border-left: 2px solid var(--mge-route-gold);
}

.mge-submission-system::after {
    right: 9px;
    bottom: 9px;
    border-right: 2px solid var(--mge-route-gold);
    border-bottom: 2px solid var(--mge-route-gold);
}

.mge-submission-system .altar-header {
    max-width: 690px;
    margin-right: auto;
    margin-left: auto;
    border-bottom: 0;
}

.mge-submission-system .altar-title {
    font-size: clamp(24px, 4vw, 34px);
    letter-spacing: 0.04em;
}

.mge-submission-system .altar-desc {
    font-size: 13px;
    line-height: 1.75;
}

.mge-photo-field[hidden],
.mge-category-field[hidden] {
    display: none !important;
}

.mge-showcase-review-note {
    display: none;
    gap: 9px;
    align-items: flex-start;
    margin: -8px 0 24px;
    padding: 11px 13px;
    color: #594314;
    background: rgba(244, 215, 125, 0.22);
    border: 1px solid rgba(145, 102, 14, 0.42);
    font-size: 11px;
    line-height: 1.65;
}

.mge-showcase-review-note i {
    margin-top: 3px;
    color: #9b6c0b;
}

.is-showcase-mode .mge-showcase-review-note {
    display: flex;
}

.mge-submission-system.is-showcase-mode {
    background:
        radial-gradient(circle at 80% 18%, rgba(199, 154, 43, 0.14), transparent 16rem),
        linear-gradient(rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.76)),
        repeating-linear-gradient(0deg, rgba(23, 19, 14, 0.03) 0 1px, transparent 1px 5px),
        #efe6d4;
}

.mge-submission-system .altar-form-group {
    margin-bottom: 22px;
}

.mge-submission-system .altar-label {
    font-size: 14px;
}

.mge-submission-system .altar-input,
.mge-submission-system .altar-select,
.mge-submission-system .altar-textarea {
    padding: 13px 14px;
    border: 2px solid #272019;
    box-shadow: 3px 3px 0 rgba(39, 32, 25, 0.9);
}

.mge-submission-system .drag-drop-altar {
    min-height: 190px;
    display: grid;
    align-content: center;
    border: 2px dashed #5c4931;
    background:
        linear-gradient(rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.42)),
        repeating-linear-gradient(45deg, rgba(199, 154, 43, 0.08) 0 8px, transparent 8px 16px),
        #eee6d8;
}

.mge-submission-system .drag-drop-altar:hover,
.mge-submission-system .drag-drop-altar:focus-visible,
.mge-submission-system .drag-drop-altar.drag-over {
    border-color: var(--mge-route-gold);
    background-color: #fff8e5;
    outline: none;
}

.mge-submission-system .drag-drop-altar.has-file {
    border-style: solid;
    border-color: #4d6f3c;
}

.mge-submission-system .drag-drop-altar.has-error {
    border-color: #ad1d1d;
    box-shadow: 0 0 0 3px rgba(173, 29, 29, 0.16);
}

.mge-submission-system .submission-image-preview {
    max-width: 620px;
    margin: 16px auto 0;
    background: #0d0a07;
    border-color: var(--mge-route-gold);
}

.mge-submission-system .submission-image-preview img {
    max-height: 520px;
    object-fit: contain;
}

.mge-submission-system .imperial-btn[type="submit"] {
    min-height: 54px;
    border-color: #090706;
    font-size: 14px;
    letter-spacing: 0.04em;
}

.mge-submission-system.is-showcase-mode .imperial-btn[type="submit"] {
    color: #171006;
    background: linear-gradient(135deg, #f4d77d, #c79a2b);
}

.mge-submission-system.is-showcase-mode .imperial-btn[type="submit"]:hover {
    background: linear-gradient(135deg, #ffe99d, #d9ad3a);
}

.mge-submission-system .form-response-message {
    display: none;
    margin: 0 0 24px;
    padding: 15px 17px;
    text-align: left;
}

.mge-response-heading,
.mge-response-body,
.mge-response-review-note {
    display: block;
}

.mge-response-heading {
    margin-bottom: 4px;
    font-family: var(--font-heading-jp);
    font-size: 14px;
}

.mge-response-body {
    font-size: 12px;
    line-height: 1.7;
}

.mge-response-review-note {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid currentColor;
    font-size: 11px;
    line-height: 1.6;
    opacity: 0.86;
}

.mge-response-review-note i {
    margin-top: 3px;
}

.mge-relic-route-target {
    scroll-margin-top: 110px;
}

.mge-relic-route-target .gallery-header {
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
}

.mge-gallery-submit-link {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    margin-top: 13px;
    padding: 8px 12px;
    color: #f0cf73;
    border: 1px solid rgba(240, 207, 115, 0.7);
    font-family: var(--font-heading-jp);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.mge-gallery-submit-link:hover,
.mge-gallery-submit-link:focus-visible {
    color: #1b1205;
    background: #f0cf73;
    outline: none;
}

.mge-gallery-empty-state {
    display: grid;
    justify-items: center;
    gap: 9px;
    padding: 38px 18px;
    color: #bcae90;
    border: 1px dashed rgba(199, 154, 43, 0.58);
    text-align: center;
}

.mge-gallery-empty-state > i {
    margin-bottom: 3px;
    color: #d5b254;
    font-size: 34px;
}

.mge-gallery-empty-state strong {
    color: #f3dfb0;
    font-family: var(--font-heading-jp);
    font-size: 16px;
}

.mge-gallery-empty-state span {
    font-size: 11px;
}

.mge-gallery-empty-state .imperial-btn {
    margin-top: 10px;
}

@media (max-width: 860px) {
    .mge-submission-system {
        padding: 28px 20px;
    }

}

@media (max-width: 560px) {
    .mge-submission-system {
        width: 100%;
        min-width: 0;
        margin-left: 0;
        padding: 24px 14px;
    }

    .mge-submission-system .altar-input,
    .mge-submission-system .altar-select,
    .mge-submission-system .altar-textarea {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .mge-submission-system .drag-drop-altar {
        min-height: 165px;
        padding: 18px 10px;
    }

    .mge-showcase-review-note,
    .mge-response-review-note {
        font-size: 10px;
    }
}

/* --------------------------------------------------------------------------
   13. Third-party Widget Suppression
   -------------------------------------------------------------------------- */
#mycred-loyalty-widget-root,
#mycred-loyalty-widget-root *,
.mycred-loyalty-widget,
.mycred-loyalty-launcher,
.mycred-reward-program,
.mycred-rewards-widget,
.mycred-floating-widget,
[class*="mycred"][class*="loyalty"],
[class*="mycred"][class*="reward"] {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}
