:root {
    color-scheme: dark;
    --bg: #0b0b0d;
    --panel: #151518;
    --border: #303036;
    --text: #ece9e4;
    --muted: #9c9995;
    --accent: #8f1d24;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(143, 29, 36, .14), transparent 28rem),
        var(--bg);
    color: var(--text);
}

.site-header {
    border-bottom: 1px solid var(--border);
    background: rgba(11, 11, 13, .9);
}

.brand,
.layout,
.site-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.brand {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid #6c2228;
    background: #251014;
    color: #f3d9da;
    font-family: Georgia, serif;
    font-weight: 700;
}

.brand h1,
.brand p { margin: 0; }

.brand h1 { font-size: 1.05rem; }

.brand p {
    margin-top: 4px;
    color: var(--muted);
    font-size: .82rem;
}

.layout { padding: 34px 0 48px; }

.panel {
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(27,27,31,.96), rgba(20,20,23,.96));
    border-radius: 12px;
    padding: 22px;
}

.hero { margin-bottom: 20px; }

.hero h2 {
    margin: 7px 0 10px;
    font-family: Georgia, serif;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 500;
}

.hero p {
    color: var(--muted);
    line-height: 1.6;
}

.eyebrow {
    color: #bf676d;
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: .16em;
    font-weight: 700;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 20px;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.panel-heading h3 { margin: 5px 0 0; }

.counter {
    min-width: 34px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
}

.list {
    display: grid;
    gap: 8px;
}

.rulebook-list {
    max-height: 460px;
    overflow: auto;
}

.list-row {
    padding: 12px 13px;
    border: 1px solid #29292e;
    background: #121215;
    border-radius: 8px;
}

.list-row strong,
.list-row small { display: block; }

.list-row small {
    margin-top: 4px;
    color: var(--muted);
}

.notice {
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 10px;
}

.notice-error {
    border: 1px solid #783039;
    background: #32161a;
}

.muted { color: var(--muted); }

.site-footer {
    padding: 20px 0 36px;
    color: #76736f;
    font-size: .76rem;
}

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