/* =========================================================
   Pixel SMP — base styles
   ========================================================= */

:root {
    /* Brand */
    --c-purple:    #8b2fc9;
    --c-purple-2:  #a855f7;
    --c-cyan:      #29c7e6;
    --c-cyan-2:    #5fdcf2;
    --c-green:     #6dff5c;
    --c-green-2:   #b6ffae;
    --c-sky:       #5ec8ff;
    --c-sky-2:     #a4e0ff;
    --c-sun:       #ffe27a;

    /* Surfaces */
    --c-bg:        #0d0a1f;
    --c-bg-2:      #16113a;
    --c-bg-3:      #221a55;
    --c-panel:     #1b1442;
    --c-text:      #f4f1ff;
    --c-text-dim:  #b9b0e2;
    --c-border:    #2c1e6e;

    /* Type */
    --f-display: 'Press Start 2P', system-ui, monospace;
    --f-body:    'VT323', ui-monospace, 'Courier New', monospace;

    /* Layout */
    --container:   1200px;
    --radius:      0; /* pixel = no radius */
    --pixel:       4px;

    --shadow-pixel:        4px 4px 0 0 rgba(0,0,0,0.55);
    --shadow-pixel-strong: 6px 6px 0 0 rgba(0,0,0,0.65);
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--f-body);
    font-size: 20px;
    line-height: 1.55;
    color: var(--c-text);
    background: var(--c-bg);
    background-image:
        radial-gradient(ellipse at top, rgba(139,47,201,0.25), transparent 60%),
        radial-gradient(ellipse at bottom, rgba(41,199,230,0.18), transparent 65%);
    min-height: 100vh;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--c-cyan-2); text-decoration: none; }
a:hover { color: var(--c-green-2); }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
    font-family: var(--f-display);
    line-height: 1.25;
    margin: 0 0 .8em;
    letter-spacing: .5px;
    color: var(--c-text);
    text-shadow: 3px 3px 0 rgba(0,0,0,0.55);
}
h1 { font-size: clamp(1.4rem, 4.2vw, 2.4rem); }
h2 { font-size: clamp(1.1rem, 2.6vw, 1.6rem); }
h3 { font-size: clamp(.85rem, 1.6vw, 1.05rem); }

p { margin: 0 0 1rem; }

.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--c-green); color: #000;
    padding: .5rem 1rem; z-index: 1000;
    font-family: var(--f-display); font-size: .8rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13,10,31,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: var(--pixel) solid var(--c-purple);
    box-shadow: 0 6px 0 0 rgba(0,0,0,0.35);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 0;
    position: relative;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--f-display);
    font-size: .95rem;
    color: var(--c-text);
    text-shadow: 2px 2px 0 #000;
}
.brand:hover { color: var(--c-green); }
.brand-pixel {
    width: 28px; height: 28px;
    background:
        linear-gradient(135deg, var(--c-purple) 0 50%, var(--c-cyan) 50% 100%);
    box-shadow: inset 0 0 0 2px #000, 2px 2px 0 #000;
    image-rendering: pixelated;
}
.brand-text { color: var(--c-purple-2); text-shadow: 2px 2px 0 #000, 0 0 10px rgba(168,85,247,.5); }
.brand-text-accent { color: var(--c-cyan); text-shadow: 2px 2px 0 #000; }

/* Burger */
.burger {
    display: none;
    background: var(--c-bg-2);
    border: 3px solid var(--c-purple);
    width: 44px; height: 44px;
    padding: 0;
    box-shadow: var(--shadow-pixel);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.burger span {
    display: block; width: 22px; height: 3px;
    background: var(--c-cyan);
    transition: transform .2s ease, opacity .15s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.primary-nav { display: flex; align-items: center; }

.nav-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    align-items: center;
    gap: .25rem;
}

.nav-link {
    display: inline-flex; align-items: center; gap: .35rem;
    background: transparent; border: 0;
    color: var(--c-text);
    font-family: var(--f-display);
    font-size: .7rem;
    padding: .75rem .9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0 #000;
    position: relative;
}
.nav-link:hover,
.nav-link[aria-expanded="true"] { color: var(--c-green); }
.nav-link:focus-visible {
    outline: 3px solid var(--c-cyan);
    outline-offset: 2px;
}

.has-dropdown { position: relative; }

.dropdown {
    list-style: none;
    margin: 0; padding: .5rem;
    position: absolute;
    top: calc(100% + .25rem);
    left: 0;
    min-width: 220px;
    background: var(--c-panel);
    border: 3px solid var(--c-purple);
    box-shadow: var(--shadow-pixel-strong);
    display: none;
    z-index: 90;
}
.has-dropdown.is-open > .dropdown { display: block; }

.dropdown a {
    display: block;
    padding: .6rem .8rem;
    color: var(--c-text);
    font-family: var(--f-body);
    font-size: 1.15rem;
    border-left: 3px solid transparent;
}
.dropdown a:hover, .dropdown a:focus-visible {
    background: var(--c-bg-3);
    color: var(--c-green);
    border-left-color: var(--c-cyan);
    outline: none;
}
.dropdown small { color: var(--c-text-dim); }

/* CTA */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: var(--f-display);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: .9rem 1.2rem;
    color: #0a0420;
    background: var(--c-green);
    border: 3px solid #000;
    box-shadow: var(--shadow-pixel);
    text-shadow: none;
    transition: transform .08s ease, box-shadow .08s ease, background .15s ease;
    text-decoration: none;
}
.btn:hover { background: var(--c-green-2); color: #0a0420; }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 0 rgba(0,0,0,.6); }
.btn:focus-visible { outline: 3px solid var(--c-cyan); outline-offset: 3px; }

.btn-cta {
    background: linear-gradient(180deg, var(--c-green) 0%, #3fd62f 100%);
    border-color: #0b3b06;
    box-shadow: 4px 4px 0 0 #0b3b06, 0 0 18px rgba(109,255,92,.55);
    animation: pulseGlow 2.4s ease-in-out infinite;
}
.btn-cta .btn-icon { color: #0b3b06; }
@keyframes pulseGlow {
    0%, 100% { box-shadow: 4px 4px 0 0 #0b3b06, 0 0 18px rgba(109,255,92,.55); }
    50%      { box-shadow: 4px 4px 0 0 #0b3b06, 0 0 28px rgba(109,255,92,.95); }
}

.btn-secondary {
    background: var(--c-cyan);
    color: #04222b;
    border-color: #04222b;
}
.btn-secondary:hover { background: var(--c-cyan-2); color: #04222b; }

.btn-purple {
    background: var(--c-purple);
    color: #fff;
    border-color: #2a0a45;
}
.btn-purple:hover { background: var(--c-purple-2); color: #fff; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(2rem, 8vw, 5rem) 0 clamp(3rem, 10vw, 7rem);
    background: linear-gradient(180deg, #6cc9ff 0%, #95dcff 55%, #c1ecff 100%);
    color: #0a1828;
    border-bottom: var(--pixel) solid var(--c-purple);
}
.hero-inner {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
}
.hero-logo-wrap {
    width: min(720px, 92%);
    filter: drop-shadow(6px 6px 0 rgba(0,0,0,.35));
}
.hero-tagline {
    font-family: var(--f-display);
    font-size: clamp(.8rem, 2vw, 1rem);
    color: #1b0a3a;
    background: rgba(255,255,255,.55);
    padding: .6rem 1rem;
    border: 3px solid #1b0a3a;
    box-shadow: var(--shadow-pixel);
    text-shadow: none;
    margin: 0;
}
.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Scroll indicator */
.scroll-hint {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    color: #1b0a3a;
    font-family: var(--f-display);
    font-size: .65rem;
    z-index: 5;
    animation: floatY 2.2s ease-in-out infinite;
}
@keyframes floatY {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50%     { transform: translateX(-50%) translateY(8px); }
}

/* =========================================================
   Sections
   ========================================================= */
.section {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0;
    position: relative;
}
.section-eyebrow {
    display: inline-block;
    font-family: var(--f-display);
    font-size: .65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--c-cyan);
    background: var(--c-bg-2);
    padding: .35rem .6rem;
    border: 2px solid var(--c-cyan);
    box-shadow: 3px 3px 0 #000;
    margin-bottom: 1rem;
}
.section-title {
    color: var(--c-text);
}
.section-intro {
    color: var(--c-text-dim);
    max-width: 60ch;
    font-size: 1.2rem;
}
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head .section-intro { margin-inline: auto; }

/* Join Info */
.join-section {
    background:
        linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-2) 100%);
    border-bottom: var(--pixel) solid var(--c-cyan);
}
.join-card {
    background: var(--c-panel);
    border: 4px solid var(--c-cyan);
    box-shadow: 6px 6px 0 #000;
    padding: clamp(1.5rem, 3vw, 2.4rem);
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}
.copy-ip {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}
.copy-ip-label {
    font-family: var(--f-display);
    font-size: .7rem;
    color: var(--c-text-dim);
    letter-spacing: 1px;
}
.copy-ip-btn {
    width: 100%;
    justify-content: space-between;
    font-size: clamp(.85rem, 2vw, 1.1rem);
    padding: 1.1rem 1.2rem;
    background: var(--c-green);
    color: #0a0420;
    border-color: #0a0420;
    word-break: break-all;
}
.copy-ip-btn .ip {
    font-family: var(--f-display);
    color: #0a0420;
}
.copy-ip-btn .copy-icon {
    font-size: 1.1em;
}
.copy-ip-hint {
    font-size: 1rem;
    color: var(--c-text-dim);
}

.join-meta {
    display: grid;
    gap: .8rem;
}
.badge {
    display: flex;
    align-items: center;
    gap: .8rem;
    background: var(--c-bg-3);
    border: 3px solid var(--c-purple);
    box-shadow: var(--shadow-pixel);
    padding: .8rem 1rem;
}
.badge-icon {
    font-family: var(--f-display);
    font-size: .7rem;
    background: var(--c-purple);
    color: #fff;
    padding: .35rem .5rem;
    border: 2px solid #000;
    min-width: 70px;
    text-align: center;
}
.badge-text {
    font-size: 1.15rem;
    color: var(--c-text);
}
.badge-text strong { color: var(--c-cyan); font-family: var(--f-display); font-size: .85rem; }

.platform-row {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}
.platform-pill {
    display: inline-flex; align-items: center; gap: .4rem;
    font-family: var(--f-display);
    font-size: .7rem;
    background: var(--c-green);
    color: #0a0420;
    border: 3px solid #000;
    padding: .55rem .75rem;
    box-shadow: 3px 3px 0 #000;
}
.platform-pill.is-cyan { background: var(--c-cyan); }

/* ===== Join Tabs (Java / Bedrock) ===== */
.join-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 6px;
    background: #0a0420;
    border: 3px solid #000;
    box-shadow: inset 3px 3px 0 rgba(0,0,0,.5);
}
.join-tab {
    appearance: none;
    border: 3px solid #000;
    background: var(--c-bg-3);
    color: var(--c-text-dim);
    font-family: var(--f-display);
    font-size: .7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: .9rem .8rem;
    cursor: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    transition: transform .1s ease, box-shadow .1s ease, background .15s ease, color .15s ease;
    box-shadow: 3px 3px 0 #000;
    border-top: 3px solid #fefefe;
    border-left: 3px solid #fefefe;
    border-right: 3px solid #373737;
    border-bottom: 3px solid #373737;
}
.join-tab:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 #000;
    color: var(--c-text);
}
.join-tab.is-active {
    background: var(--c-green);
    color: #0a0420;
    border-color: #0a0420;
    box-shadow: inset 3px 3px 0 rgba(0,0,0,.25);
    transform: translate(1px, 1px);
}
.join-tab[data-tab="bedrock"].is-active {
    background: var(--c-cyan);
}
.join-tab .mc-icon { width: 1.4em; height: 1.4em; }

.join-panel {
    background: var(--c-bg-3);
    border: 3px solid #000;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.04);
    padding: clamp(1.2rem, 2.5vw, 1.8rem);
    animation: panelFade .25s ease-out;
}
.join-panel[hidden] { display: none; }
@keyframes panelFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.panel-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 1.4rem;
    padding-bottom: 1rem;
    border-bottom: 2px dashed rgba(255,255,255,.12);
}
.panel-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--f-display);
    font-size: .65rem;
    background: #1b1442;
    color: var(--c-text);
    border: 2px solid #000;
    padding: .5rem .7rem;
    box-shadow: 2px 2px 0 #000;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.panel-pill strong {
    color: var(--c-green);
    font-family: var(--f-display);
    margin-left: .3rem;
}

.join-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .9rem;
}
.join-steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    background: var(--c-panel);
    border: 3px solid #000;
    border-left: 5px solid var(--c-green);
    padding: 1rem 1.1rem;
    box-shadow: 3px 3px 0 #000;
}
.join-panel[data-panel="bedrock"] .join-steps li {
    border-left-color: var(--c-cyan);
}
.step-num {
    font-family: var(--f-display);
    font-size: 1rem;
    background: var(--c-green);
    color: #0a0420;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #000;
    box-shadow: 2px 2px 0 #000;
    flex-shrink: 0;
}
.join-panel[data-panel="bedrock"] .step-num {
    background: var(--c-cyan);
}
.join-steps h4 {
    margin: 0 0 .3rem 0;
    font-family: var(--f-display);
    font-size: .85rem;
    color: var(--c-text);
    letter-spacing: 1px;
}
.join-steps p {
    margin: 0;
    font-size: 1.05rem;
    color: var(--c-text-dim);
    line-height: 1.55;
}
.join-steps p code {
    font-family: var(--f-display);
    font-size: .75rem;
    background: #0a0420;
    color: var(--c-green);
    padding: .15rem .45rem;
    border: 2px solid #000;
    display: inline-block;
    margin-top: .2rem;
}
.join-panel[data-panel="bedrock"] .join-steps p code {
    color: var(--c-cyan);
}
.join-steps p strong { color: var(--c-text); }

@media (max-width: 540px) {
    .join-tab span { display: none; }
    .join-tab .mc-icon { width: 1.6em; height: 1.6em; }
    .join-tab { padding: 1rem .5rem; }
}

/* Identity cards */
.identity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}
.id-card {
    background: var(--c-panel);
    border: 4px solid var(--c-purple);
    box-shadow: 6px 6px 0 #000;
    padding: 1.6rem 1.4rem;
    text-align: center;
    transition: transform .15s ease, box-shadow .15s ease;
}
.id-card:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 #000; }
.id-card .icon {
    font-size: 2.6rem;
    display: block;
    margin-bottom: .8rem;
    filter: drop-shadow(3px 3px 0 rgba(0,0,0,.5));
}
.id-card h3 { color: var(--c-cyan); margin-bottom: .6rem; }
.id-card p { color: var(--c-text-dim); margin: 0; font-size: 1.1rem; }

/* Be kind */
.kind-section {
    background:
        linear-gradient(180deg, var(--c-bg-2) 0%, var(--c-bg) 100%);
}
.kind-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: 1fr;
}
@media (min-width: 720px) { .kind-grid { grid-template-columns: 1fr 1fr; } }

.kind-card {
    padding: 1.6rem;
    background: var(--c-panel);
    border: 4px solid var(--c-green);
    box-shadow: 6px 6px 0 #000;
    text-align: center;
}
.kind-card .q-icon { font-size: 2.4rem; display: block; margin-bottom: .6rem; }
.kind-card h3 { color: var(--c-green); font-size: .95rem; }

.kind-message {
    margin-top: 2rem;
    text-align: center;
    background: var(--c-bg-3);
    border: 3px dashed var(--c-cyan);
    padding: 1.4rem;
    font-size: 1.2rem;
    color: var(--c-text);
}

/* Voice chat */
.voice-section {
    background: linear-gradient(135deg, var(--c-bg-2), var(--c-bg-3));
    border-top: var(--pixel) solid var(--c-cyan);
    border-bottom: var(--pixel) solid var(--c-purple);
}
.voice-card {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: 1fr;
    align-items: center;
    background: var(--c-panel);
    border: 4px solid var(--c-cyan);
    box-shadow: 6px 6px 0 #000;
    padding: 1.8rem;
}
@media (min-width: 760px) {
    .voice-card { grid-template-columns: auto 1fr auto; }
}
.voice-icon {
    width: 64px; height: 64px;
    background: var(--c-cyan);
    border: 3px solid #000;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    box-shadow: 4px 4px 0 #000;
    image-rendering: pixelated;
}
.voice-text h3 { color: var(--c-cyan); margin-bottom: .4rem; }
.voice-text p  { margin: 0; color: var(--c-text-dim); font-size: 1.15rem; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
    margin-top: 3rem;
    padding: 2rem 0;
    background: #07051a;
    border-top: var(--pixel) solid var(--c-purple);
    color: var(--c-text-dim);
    font-size: 1.05rem;
}
.footer-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    align-items: center;
}
@media (min-width: 760px) {
    .footer-grid { grid-template-columns: 1fr auto 1fr; }
    .footer-nav { justify-self: center; }
    .footer-copy { justify-self: end; margin: 0; text-align: right; }
}
.footer-brand {
    display: flex; align-items: center; gap: .7rem;
    font-family: var(--f-display); font-size: .8rem;
    color: var(--c-text);
}
.pixel-logo-mini {
    width: 22px; height: 22px;
    background: linear-gradient(135deg, var(--c-purple) 0 50%, var(--c-cyan) 50% 100%);
    box-shadow: inset 0 0 0 2px #000, 2px 2px 0 #000;
}
.footer-ip { color: var(--c-cyan); font-size: .7rem; }
.footer-nav { display: flex; gap: 1rem; }
.footer-nav a { color: var(--c-text-dim); font-family: var(--f-display); font-size: .7rem; }
.footer-nav a:hover { color: var(--c-green); }
.footer-copy { margin: 0; }

/* =========================================================
   Toast
   ========================================================= */
.toast {
    position: fixed;
    left: 50%;
    bottom: 2rem;
    transform: translate(-50%, 30px);
    background: var(--c-green);
    color: #0a0420;
    border: 3px solid #000;
    padding: .8rem 1.2rem;
    font-family: var(--f-display);
    font-size: .8rem;
    box-shadow: 5px 5px 0 #000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 1000;
}
.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* =========================================================
   Responsive nav (mobile)
   ========================================================= */
@media (max-width: 960px) {
    .burger { display: inline-flex; }

    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--c-bg);
        border-bottom: 4px solid var(--c-purple);
        box-shadow: 0 8px 0 0 rgba(0,0,0,.45);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }
    .primary-nav.is-open {
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: .25rem;
    }
    .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 1rem;
        font-size: .8rem;
        background: var(--c-bg-2);
        border: 2px solid var(--c-border);
    }
    .has-dropdown { position: static; }
    .dropdown {
        position: static;
        margin-top: .25rem;
        margin-bottom: .5rem;
        box-shadow: none;
        background: var(--c-bg-3);
    }
    .nav-cta-item { margin-top: .5rem; }
    .btn-cta { width: 100%; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    html { scroll-behavior: auto; }
}

/* =========================================================
   Subpages — page hero, breadcrumbs, rules list
   ========================================================= */
.page-hero {
    position: relative;
    padding: clamp(2rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
    background:
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,.015) 0 8px,
            transparent 8px 16px
        ),
        linear-gradient(180deg, var(--c-bg-2) 0%, var(--c-bg) 100%);
    border-bottom: var(--pixel) solid var(--c-purple);
    overflow: hidden;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(168,85,247,.5), transparent),
        radial-gradient(2px 2px at 70% 60%, rgba(41,199,230,.4), transparent),
        radial-gradient(2px 2px at 40% 80%, rgba(109,255,92,.4), transparent);
    background-size: 200px 200px;
    opacity: .6;
    pointer-events: none;
}
.page-hero-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
    position: relative;
    z-index: 1;
}
.page-hero-icon {
    background: var(--c-panel);
    border: 4px solid var(--c-cyan);
    box-shadow: 6px 6px 0 #000;
    width: clamp(72px, 12vw, 110px);
    height: clamp(72px, 12vw, 110px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-hero-icon .mc-icon {
    width: 60%;
    height: 60%;
}
.page-hero h1 {
    margin: .3rem 0 .6rem;
    font-size: clamp(1.4rem, 4vw, 2.3rem);
    line-height: 1.1;
}

/* Breadcrumbs */
.crumbs {
    font-family: var(--f-display);
    font-size: .65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--c-text-dim);
    margin: 0 0 1.2rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    align-items: center;
}
.crumbs a {
    color: var(--c-cyan);
    text-decoration: none;
    border-bottom: 2px dashed transparent;
    padding-bottom: 1px;
}
.crumbs a:hover { border-bottom-color: var(--c-cyan); }
.crumbs span { color: var(--c-text-dim); }

/* Rules list */
.rules-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: rules;
    display: grid;
    gap: 1rem;
}
.rule-card {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 1rem;
    align-items: start;
    background: var(--c-panel);
    border: 3px solid #000;
    border-left: 6px solid var(--c-green);
    box-shadow: 5px 5px 0 #000;
    padding: 1.1rem 1.2rem;
    transition: transform .12s ease, box-shadow .12s ease;
}
.rule-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 #000;
}
.rule-card.is-voice {
    border-left-color: var(--c-purple);
}
.rule-num {
    font-family: var(--f-display);
    font-size: .9rem;
    background: var(--c-green);
    color: #0a0420;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #000;
    box-shadow: 2px 2px 0 #000;
    flex-shrink: 0;
}
.rule-card.is-voice .rule-num {
    background: var(--c-purple);
    color: #fff;
}
.rule-icon {
    background: var(--c-bg-3);
    border: 2px solid #000;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.rule-icon .mc-icon { width: 28px; height: 28px; vertical-align: middle; }
.rule-body { min-width: 0; }
.rule-body h3 {
    margin: 0 0 .35rem 0;
    font-family: var(--f-display);
    font-size: .85rem;
    color: var(--c-text);
    letter-spacing: 1px;
    line-height: 1.3;
}
.rule-card.is-voice .rule-body h3 { color: var(--c-purple-2, #a855f7); }
.rule-body p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--c-text-dim);
}
.rule-body p strong { color: var(--c-text); }
.rule-body p code {
    font-family: var(--f-display);
    font-size: .7rem;
    background: #0a0420;
    color: var(--c-cyan);
    padding: .1rem .4rem;
    border: 2px solid #000;
}

/* Disclaimer banner */
.rules-disclaimer {
    margin-top: 1.8rem;
    background:
        repeating-linear-gradient(
            45deg,
            rgba(255,216,74,.06) 0 12px,
            transparent 12px 24px
        ),
        var(--c-panel);
    border: 4px solid #ffd84a;
    box-shadow: 6px 6px 0 #000;
    padding: 1.2rem 1.4rem;
    text-align: center;
}
.rules-disclaimer .disc-label {
    display: inline-block;
    font-family: var(--f-display);
    font-size: .7rem;
    letter-spacing: 2px;
    color: #ffd84a;
    text-shadow: 2px 2px 0 #000;
    margin-bottom: .6rem;
}
.rules-disclaimer p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--c-text);
    line-height: 1.55;
}

@media (max-width: 540px) {
    .rule-card {
        grid-template-columns: auto 1fr;
    }
    .rule-icon { display: none; }
}
