.rogue-page {
    --rogue-bg: #17121a;
    --rogue-panel: #211a26;
    --rogue-fg: #faf2e7;
    --rogue-muted: #cfc2ca;
    --rogue-line: #564352;
    --rogue-accent: #ffb465;
    background: var(--rogue-bg);
    color: var(--rogue-fg);
}
.rogue-page .header { position: sticky; top: 0; }
.rogue-page .header-menu-button { display: none; }
.rogue-page .languages [aria-current="page"] { color: #ffca94; }
.rogue-main {
    width: 100%; max-width: 1280px; margin-inline: auto; padding: 20px clamp(20px, 4vw, 52px) 48px;
    min-width: 0;
}
.rogue-main [hidden] { display: none !important; }
.rogue-main p { line-height: 1.55; }
.rogue-main a:focus-visible, .rogue-main button:focus-visible, .rogue-main summary:focus-visible,
.rogue-main input:focus-visible { outline: 2px solid var(--rogue-accent); outline-offset: 3px; }
.rogue-hero {
    position: relative; display: grid; align-items: center; isolation: isolate; min-height: 530px;
    overflow: hidden; border: 1px solid var(--rogue-line); border-radius: 20px; background: #211522;
}
.rogue-art, .rogue-art img, .rogue-hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.rogue-art img { object-fit: cover; object-position: 57% 49%; }
.rogue-hero::after {
    content: ''; z-index: -1;
    background: linear-gradient(90deg, #19121df7 0%, #19121de6 26%, #19121d88 51%, transparent 79%),
        linear-gradient(0deg, #19121dad, transparent 31%);
}
.rogue-art { z-index: -2; }
.rogue-hero-copy { padding: clamp(26px, 4vw, 57px); max-width: 650px; }
.rogue-context { color: #ffd39c; font-size: 0.81rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.rogue-hero h1 { margin: 11px 0 18px; font-size: clamp(3rem, 6.4vw, 6.2rem); line-height: .92; letter-spacing: -.071em; }
.rogue-hero h1 span { display: block; margin-top: 12px; color: #ffc582; font-size: .32em; line-height: 1.05; letter-spacing: .06em; text-transform: uppercase; }
.rogue-summary { max-width: 36ch; color: var(--rogue-fg); font-size: clamp(1rem, 1.6vw, 1.2rem); }
.rogue-actions { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 10px; }
.rogue-hero .rogue-actions { margin-block: 21px 15px; }
.rogue-button {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .65rem 1.05rem;
    border: 1px solid #997c8e; border-radius: 9px; background: #271d2ad9; color: var(--rogue-fg);
    font: inherit; font-weight: 690; line-height: 1.23; text-align: center; cursor: pointer; text-decoration: none;
}
.rogue-button:hover { background: #422c3c; }
.rogue-button:disabled { opacity: .58; cursor: wait; }
.rogue-primary { color: #28170b; background: #ffb465; border-color: #ffb465; }
.rogue-primary:hover { background: #ffca8f; }
.rogue-danger { color: #ffe2dc; border-color: #a76463; background: #3c232b; }
.rogue-availability { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: .88rem; color: var(--rogue-muted); }
.rogue-availability a, .rogue-text-link, .rogue-crumbs a, .rogue-sharing a, #quota { color: #ffd094; text-decoration: underline; text-underline-offset: 3px; }
.rogue-availability a, .rogue-text-link { display: inline-flex; align-items: center; min-height: 44px; gap: 5px; }
.rogue-coop, .rogue-gameplay { scroll-margin-top: 86px; }
.rogue-coop { display: grid; grid-template-columns: 1.13fr 1fr; align-items: start; gap: clamp(20px, 4vw, 42px); margin: 28px 0; }
.rogue-coop h2, .rogue-gameplay h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); line-height: 1.11; margin: 0 0 .65rem; letter-spacing: -.035em; }
.rogue-coop h3 { font-size: 1.2rem; margin: 0 0 .55rem; }
.rogue-coop-intro { padding: 14px 2px; min-width: 0; }
.rogue-list, .rogue-gameplay, .rogue-panel { border: 1px solid var(--rogue-line); background: var(--rogue-panel); border-radius: 16px; }
.rogue-list { padding: clamp(14px, 3vw, 23px); min-width: 0; }
.rogue-list p, .rogue-steps, .rogue-subtitle, .rogue-form small { color: var(--rogue-muted); }
.rogue-steps { padding-left: 1.25em; margin: 15px 0 0; display: grid; gap: 8px; line-height: 1.45; list-style: decimal; }
.rogue-steps li { display: list-item; font-size: inherit; margin: 0; }
.rogue-main ol li::before { content: none; }
.rogue-steps li::marker { color: var(--rogue-accent); }
.rogue-gameplay { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: clamp(18px, 4vw, 40px); align-items: center; padding: clamp(16px, 3vw, 28px); }
.rogue-gameplay figure { margin: 0; min-width: 0; }
.rogue-gameplay img { display: block; width: 100%; height: auto; border-radius: 9px; background: #100e13; }
.rogue-gameplay figcaption { margin-top: 7px; color: var(--rogue-muted); font-size: .85rem; }
.rogue-gameplay p { margin-bottom: 12px; }
.rogue-invite-input { flex: 1 0 auto; max-width: 380px; }
.rogue-main details { margin-top: 0; }
.rogue-main summary { list-style: none; }
.rogue-main summary::-webkit-details-marker { display: none; }
.rogue-invite-input .rogue-form { margin-top: 12px; }
.rogue-subpage { max-width: 760px; }
.rogue-crumbs { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 12px; }
.rogue-crumbs a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.rogue-panel { padding: clamp(17px, 4vw, 38px); }
.rogue-panel h1 { font-size: clamp(1.65rem, 5vw, 2.65rem); line-height: 1.05; margin: 0 0 6px; overflow-wrap: anywhere; }
.rogue-panel h2 { font-size: 1.2rem; margin: 0 0 10px; }
.rogue-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; margin-top: 18px; }
.rogue-form input:not([type=radio],[type=checkbox]) { display: block; width: 100%; min-height: 48px; background: #17121b; color: var(--rogue-fg); border: 1px solid var(--rogue-line); border-radius: 8px; padding: 9px 12px; font: inherit; }
.rogue-form input[type=radio], .rogue-form input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--rogue-accent); flex-shrink: 0; }
.rogue-form label { color: var(--rogue-fg); }
.rogue-form fieldset { border: 1px solid var(--rogue-line); padding: 10px 13px; margin: 1px 0; border-radius: 8px; min-width: 0; }
.rogue-form fieldset label, .rogue-check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.rogue-form #password-wrap { display: grid; gap: 7px; }
.rogue-form button { justify-self: start; }
.rogue-room-cap { font-size: .9rem; color: var(--rogue-muted); }
.rogue-room-cap strong { margin-left: .4em; color: var(--rogue-fg); }
.rogue-status, #invitation-error { color: #ffca9d; margin-block: 12px; }
.rogue-room-title { display: flex; align-items: flex-start; gap: 10px 22px; flex-wrap: wrap; justify-content: space-between; }
.rogue-room-code { color: #ffd39c; font-family: ui-monospace, monospace; border: 1px solid var(--rogue-line); padding: .45em .55em; border-radius: 6px; }
#room { margin-top: 19px; }
.rogue-roster, #room-feed { list-style: none; padding: 0; display: grid; gap: 10px; margin: 0 0 10px; }
.rogue-roster li, #room-feed li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 15px; border: 1px solid var(--rogue-line); border-radius: 9px; padding: 11px 12px; margin: 0; min-width: 0; }
.rogue-roster li[data-state="ready"] { border-color: #708476; }
.rogue-roster li[data-state="ready"] .rogue-seat-state { color: #c3e6d3; }
.rogue-roster li[data-state="free"] { border-style: dashed; }
.rogue-seat-state, .rogue-seat-caption { color: var(--rogue-muted); font-size: .84rem; }
.rogue-seat-name { display: block; overflow-wrap: anywhere; }
.rogue-sharing { margin-block: 18px; padding-top: 15px; border-top: 1px solid var(--rogue-line); }
.rogue-sharing #invite { display: block; overflow-wrap: anywhere; font-size: .85rem; margin-bottom: 10px; }
.rogue-sharing #qr { max-width: min(180px, 100%); margin-top: 11px; }
.rogue-sharing svg { display: block; width: 100%; height: auto; background: white; border-radius: 4px; }
.rogue-room-actions { margin-top: 14px; }
.rogue-panel dialog { background: #211a26; color: var(--rogue-fg); border-color: var(--rogue-line); }
@media (max-width: 900px) {
    .rogue-hero { min-height: 475px; }
    .rogue-art img { object-position: 62% 49%; }
    .rogue-coop { gap: 19px; }
}
@media (max-width: 760px) {
    .rogue-page { padding-bottom: 0; }
    .rogue-page .header { padding-inline: 20px; gap: 8px; }
    .rogue-page .header .brand { white-space: nowrap; }
    .rogue-page .header-menu-button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--rogue-line); border-radius: 8px; background: #251c28; flex: none; }
    .rogue-page .header-menu-button img { filter: brightness(0) invert(1); }
    .rogue-page .header #header-nav.is-open { display: grid; position: absolute; top: 100%; left: 0; right: 0; padding: 12px 20px; gap: 0; background: #201923; border-bottom: 1px solid var(--rogue-line); }
    .rogue-page .header #header-nav.is-open a { display: flex; align-items: center; min-height: 44px; }
    .rogue-page .site-footer { flex-wrap: wrap; gap: 8px 17px; }
}
@media (max-width: 600px) {
    .rogue-main { padding: 12px 16px 30px; }
    .rogue-hero { min-height: 500px; align-items: end; }
    .rogue-hero-copy { padding: 20px; }
    .rogue-art img { object-position: center 34%; }
    .rogue-hero::after { background: linear-gradient(0deg, #19121d 8%, #19121df5 39%, #19121d23 72%, transparent 93%); }
    .rogue-hero .rogue-actions { margin-block: 16px 9px; }
    .rogue-hero .rogue-button { padding-inline: .85rem; }
    .rogue-coop, .rogue-gameplay { grid-template-columns: minmax(0,1fr); }
    .rogue-coop { margin-block: 15px 22px; }
    .rogue-coop-intro { padding-block: 6px 0; }
    .rogue-room-title { align-items: center; }
}
@media (max-width: 360px) {
    .rogue-hero .rogue-actions > a, .rogue-coop-intro .rogue-actions > a { flex: 1 1 auto; }
    .rogue-hero h1 { font-size: 2.72rem; }
}
