:root {
    --guide-gold: #e6c15c;
    --guide-gold-bright: #f2d47d;
    --guide-gold-soft: rgba(230, 193, 92, .13);
    --guide-glass: rgba(38, 44, 48, .58);
    --guide-glass-strong: rgba(29, 34, 38, .72);
    --guide-glass-soft: rgba(255, 255, 255, .045);
    --guide-border: rgba(230, 193, 92, .25);
    --guide-muted-border: rgba(255, 255, 255, .12);
    --guide-text: #ece8df;
    --guide-muted: #b8b4ac;
    --guide-shadow: 0 18px 42px rgba(0, 0, 0, .30);
}

.uros-guide-page .content,
.uros-guide-page #content {
    background: transparent;
}

.uros-guide-shell {
    width: min(1180px, calc(100% - 28px));
    margin: 28px auto 48px;
    color: var(--guide-text);
}

.uros-guide-hero,
.uros-guide-section,
.uros-guide-footer-note,
.uros-rules-shell .info-box,
.uros-rules-shell .matrix-container {
    -webkit-backdrop-filter: blur(14px) saturate(115%);
    backdrop-filter: blur(14px) saturate(115%);
}

.uros-guide-hero {
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid var(--guide-border);
    border-left: 4px solid var(--guide-gold);
    border-radius: 12px;
    background:
        linear-gradient(125deg, rgba(230, 193, 92, .10), transparent 48%),
        var(--guide-glass);
    box-shadow: var(--guide-shadow);
}

.uros-guide-hero h1 {
    margin: 4px 0 10px;
    color: var(--guide-gold-bright);
    font: 700 clamp(2rem, 5vw, 3.15rem)/1.05 'Cinzel', Georgia, serif;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-shadow: 0 4px 16px rgba(0, 0, 0, .35);
}

.uros-guide-hero p {
    max-width: 900px;
    margin: 0;
    color: #ded9d0;
    font-size: 1.02rem;
    line-height: 1.7;
}

.uros-guide-eyebrow {
    color: #d8bc6a;
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.uros-guide-section {
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid var(--guide-muted-border);
    border-radius: 11px;
    background: var(--guide-glass);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .23);
}

.uros-guide-section.is-open {
    border-color: var(--guide-border);
}

.uros-guide-section-header {
    width: 100%;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px 19px;
    border: 0;
    border-left: 3px solid transparent;
    background: rgba(255, 255, 255, .035);
    color: #f6f1e8;
    cursor: pointer;
    text-align: left;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.uros-guide-section-header:hover,
.uros-guide-section-header:focus-visible,
.uros-guide-section.is-open .uros-guide-section-header {
    border-left-color: var(--guide-gold);
    background: var(--guide-gold-soft);
    color: var(--guide-gold-bright);
    outline: none;
}

.uros-guide-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font: 700 1.08rem/1.3 'Cinzel', Georgia, serif;
}

.uros-guide-section-title i {
    width: 30px;
    color: var(--guide-gold);
    text-align: center;
}

.uros-guide-section-header > [data-uros-accordion-icon] {
    color: var(--guide-gold);
}

.uros-guide-section-body {
    padding: 22px;
    border-top: 1px solid var(--guide-muted-border);
    background: rgba(18, 22, 25, .26);
}

.uros-guide-section-body[hidden] {
    display: none;
}

.uros-guide-intro {
    max-width: 980px;
    margin: 0 0 18px;
    color: #dedad2;
    line-height: 1.7;
}

.uros-command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.uros-command-card {
    padding: 16px;
    border: 1px solid var(--guide-muted-border);
    border-radius: 8px;
    background: var(--guide-glass-soft);
}

.uros-command-card h3 {
    margin: 0 0 8px;
    font-size: .93rem;
}

.uros-command-card code,
.uros-guide-footer-note code {
    display: inline-block;
    padding: 3px 7px;
    border: 1px solid rgba(230, 193, 92, .28);
    border-radius: 5px;
    background: rgba(230, 193, 92, .10);
    color: #f4db8d;
    white-space: normal;
}

.uros-command-card p {
    margin: 0;
    color: #e0ddd6;
    line-height: 1.55;
}

.uros-command-meta {
    margin-top: 8px;
    color: var(--guide-muted);
    font-size: .80rem;
    line-height: 1.5;
}

.uros-guide-notes {
    margin: 18px 0 0;
    padding: 14px 16px 14px 34px;
    border: 1px solid rgba(230, 193, 92, .18);
    border-left: 4px solid var(--guide-gold);
    border-radius: 7px;
    background: rgba(230, 193, 92, .07);
}

.uros-guide-notes li {
    margin-bottom: 7px;
    line-height: 1.55;
}

.uros-guide-notes li:last-child {
    margin-bottom: 0;
}

.uros-guide-footer-note {
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px solid var(--guide-border);
    border-radius: 10px;
    background: var(--guide-glass);
    color: #d6d1c7;
    line-height: 1.6;
}

/* Rules share the same shell and accordion treatment as the player guide. */
.uros-rules-shell .uros-guide-section-body {
    color: #e4e0d8;
    line-height: 1.65;
}

.uros-rules-shell .uros-guide-section-body h4 {
    margin: 28px 0 12px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    color: var(--guide-gold-bright);
    font: 700 1.03rem/1.35 'Cinzel', Georgia, serif;
    text-transform: uppercase;
}

.uros-rules-shell .uros-guide-section-body h4:first-child {
    margin-top: 0;
}

.uros-rules-shell .uros-guide-section-body p,
.uros-rules-shell .uros-guide-section-body li {
    color: #e1ddd5;
}

.uros-rules-shell .uros-guide-section-body ul {
    margin: 0 0 18px 22px;
}

.uros-rules-shell .uros-guide-section-body li {
    margin-bottom: 9px;
}

.example-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 15px 0 24px;
}

.ex-card,
.combat-card {
    padding: 16px;
    border: 1px solid var(--guide-muted-border);
    border-radius: 9px;
    background: rgba(255, 255, 255, .045);
}

.ex-bad {
    border-left: 4px solid #ef7b73;
}

.ex-good {
    border-left: 4px solid #69c98f;
}

.ex-title,
.cc-title {
    display: block;
    margin-bottom: 7px;
    color: #fff;
    font-weight: 800;
}

.ex-text,
.cc-desc {
    color: #d8d4cc;
    line-height: 1.55;
}

.combat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 24px;
}

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

.cc-icon {
    margin-bottom: 10px;
    color: var(--guide-gold);
    font-size: 1.45rem;
}

.conseq {
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px solid rgba(230, 193, 92, .22);
    border-left: 4px solid var(--guide-gold);
    border-radius: 7px;
    background: rgba(230, 193, 92, .075);
    color: #e7e1d5;
}

.info-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 32px;
}

.info-box {
    padding: 22px;
    border: 1px solid var(--guide-border);
    border-left: 4px solid var(--guide-gold);
    border-radius: 10px;
    background: var(--guide-glass);
}

.info-box h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    color: var(--guide-gold-bright);
    font: 700 1.12rem/1.35 'Cinzel', Georgia, serif;
    text-transform: uppercase;
}

.matrix-title {
    margin: 40px 0 18px;
    color: var(--guide-gold-bright);
    font: 700 clamp(1.45rem, 3vw, 2rem)/1.2 'Cinzel', Georgia, serif;
    text-align: center;
    text-transform: uppercase;
}

.matrix-container {
    overflow-x: auto;
    padding: 16px;
    border: 1px solid var(--guide-muted-border);
    border-radius: 11px;
    background: var(--guide-glass);
}

.clean-matrix {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    color: #eee9e0;
}

.clean-matrix th,
.clean-matrix td {
    padding: 11px 10px;
    border: 1px solid rgba(255, 255, 255, .10);
    text-align: left;
}

.clean-matrix th {
    background: rgba(230, 193, 92, .11);
    color: var(--guide-gold-bright);
    font-family: 'Cinzel', Georgia, serif;
}

.clean-matrix td {
    background: rgba(255, 255, 255, .025);
}

.clean-matrix .h-col {
    text-align: center;
    white-space: nowrap;
}

.bg-green { background: rgba(76, 175, 112, .18) !important; color: #a7e9bd; }
.bg-orange { background: rgba(236, 142, 62, .18) !important; color: #ffc38f; }
.bg-red { background: rgba(220, 75, 75, .20) !important; color: #ffadad; }
.bg-black { background: rgba(0, 0, 0, .25) !important; color: #c5c0b7; }

.sev-tag {
    display: inline-block;
    width: 100%;
    padding: 4px 8px;
    border-radius: 5px;
    background: rgba(0, 0, 0, .18);
    text-align: center;
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.matrix-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    margin-top: 16px;
    color: #d1ccc2;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 3px;
}

@media (max-width: 850px) {
    .combat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .uros-guide-shell {
        width: calc(100% - 12px);
        margin-top: 12px;
    }

    .uros-guide-hero,
    .uros-guide-section-body {
        padding: 18px;
    }

    .uros-command-grid,
    .example-box,
    .info-section,
    .combat-grid {
        grid-template-columns: 1fr;
    }

    .uros-guide-section-title {
        font-size: .98rem;
    }
}
