/* The header, footer, typography and main container come from /rooms/style.css,
   shared with the home page, CS16, Generals and Half-Life. Keep game rules scoped. */
html{scroll-behavior:auto;scroll-padding-top:24px}
#mohaa-guide{--accent:#d1b16b;line-height:1.55;min-width:0}
#mohaa-guide .game-links{display:flex;align-items:center;gap:24px;margin:0 0 20px;font-size:13px;color:var(--muted)}
#mohaa-guide .game-links a{display:flex;align-items:center;min-height:32px}
#mohaa-guide .game-links a:last-child{margin-left:auto}
#mohaa-guide .hero{isolation:isolate;position:relative;overflow:hidden;border-radius:24px;min-height:560px;display:flex;align-items:center;padding:60px 44px;background:#141818}
#mohaa-guide .hero::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#101414f2 0%,#10141485 55%,#10141422);z-index:-1}
#mohaa-guide .hero-copy{max-width:670px}
#mohaa-guide .kicker,#mohaa-guide .role{text-transform:uppercase;letter-spacing:.1em;font-size:12px;font-weight:700;color:var(--accent)}
#mohaa-guide h1{font-size:clamp(38px,5.7vw,68px);line-height:1.02;font-weight:850;letter-spacing:-.04em;margin:18px 0 22px}
#mohaa-guide h1 span{display:block;font-size:.46em;letter-spacing:.15em;font-weight:500;margin-top:14px}
#mohaa-guide .lead{font-size:22px;max-width:520px}
#mohaa-guide .actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}
#mohaa-guide .button{padding:14px 24px;min-height:52px;background:#292d2d;border:0;border-radius:10px;font-size:15px;font-weight:750}
#mohaa-guide .button.primary{background:var(--accent);color:#14100b}
#mohaa-guide .mode{max-width:760px;font-size:18px;margin:28px 0 0}
#mohaa-guide .contents{display:flex;height:auto;flex-wrap:wrap;gap:10px 26px;margin:28px 0 50px;color:var(--muted)}
#mohaa-guide .contents a{border:0;min-height:36px}
#mohaa-guide .contents a:hover,#mohaa-guide .game-links a:hover{color:var(--accent)}
#mohaa-guide section.guide{margin:64px 0 80px}
#mohaa-guide h2{font-size:clamp(28px,3.3vw,40px);letter-spacing:-.025em;line-height:1.15;margin:0 0 18px}
#mohaa-guide .intro{max-width:700px;color:var(--muted);margin-bottom:30px}
#mohaa-guide .downloads{display:flex;flex-wrap:wrap;gap:14px;margin:24px 0}
#mohaa-guide .downloads a{background:var(--surface);border-radius:10px;padding:18px 24px;min-width:250px}
#mohaa-guide .downloads small{display:block;color:var(--muted);font-size:13px}
#mohaa-guide .step{display:grid;grid-template-columns:minmax(240px,4fr) minmax(0,7fr);gap:40px;align-items:center;margin:44px 0 64px}
#mohaa-guide .step h3{font-size:24px;line-height:1.25;margin:10px 0 14px;font-weight:650}
#mohaa-guide .step p{color:var(--muted);margin:0}
#mohaa-guide .number{color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums;margin-right:10px}
#mohaa-guide figure{margin:0;min-width:0}
#mohaa-guide figure a{display:block}
#mohaa-guide figure img{display:block;width:100%;height:auto;background:var(--surface);border-radius:10px}
#mohaa-guide figcaption{font-size:12px;color:var(--muted);margin-top:9px}
#mohaa-guide .notice{padding:20px 24px;background:var(--surface);border-radius:10px;max-width:760px}
#mohaa-guide details{padding:18px 0;max-width:860px;margin:0}
#mohaa-guide summary{cursor:pointer;font-size:18px;font-weight:650;padding:0;color:var(--text)}
#mohaa-guide details p{color:var(--muted);max-width:760px;margin:14px 0 0}
#mohaa-guide #install figure img{max-height:440px;width:auto;max-width:100%;margin:auto}
@media(max-width:760px){
 #mohaa-guide .game-links{gap:16px;font-size:12px}
 #mohaa-guide .hero{min-height:480px;padding:36px 22px;border-radius:18px}
 #mohaa-guide .hero::before{background-position:58% center}
 #mohaa-guide h1{font-size:clamp(30px,8vw,48px)}
 #mohaa-guide .lead{font-size:19px}
 #mohaa-guide .actions .button{flex:1 1 190px}
 #mohaa-guide .mode{font-size:16px}
 #mohaa-guide .step{grid-template-columns:1fr;gap:20px;margin-bottom:48px}
 #mohaa-guide .step h3{font-size:22px}
 #mohaa-guide .contents{margin-bottom:36px;gap:8px 20px;font-size:14px}
 #mohaa-guide section.guide{margin:48px 0}
 #mohaa-guide h2{font-size:30px}
 #mohaa-guide .downloads a{width:100%;min-width:0}
 #mohaa-guide .intro{margin-bottom:26px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

#mohaa-guide .hero-art{position:absolute;inset:0;z-index:-2}
#mohaa-guide .hero-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
@media(max-width:760px){#mohaa-guide .hero-art img{object-position:58% center}}

/* Match the shared game landing layout, retaining MOHAA's muted gold. */
#mohaa-guide .hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,.82fr);gap:48px;min-height:600px;padding:64px 44px}
#mohaa-guide .hero-copy{min-width:0}
#mohaa-guide h1{font-size:clamp(36px,4.6vw,58px)}
#mohaa-guide h1 span{letter-spacing:.07em}
#mohaa-guide .hero::before{background:linear-gradient(90deg,#0b1214e8,#0b121465 62%,#0b121442),linear-gradient(0deg,#0b1214b0,transparent 70%)}
#mohaa-guide .badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}
#mohaa-guide .badges span{padding:6px 12px;border:1px solid #ffffff40;background:#17211d70;border-radius:30px;font-size:13px}
#mohaa-guide .room-card{padding:28px;background:#131d18f5;border:1px solid #ffffff25;border-radius:20px;min-width:0}
#mohaa-guide .room-card h2{font-size:29px;line-height:1.15;margin:0 0 20px}
#mohaa-guide .room-card p{color:var(--muted);font-size:16px;line-height:1.55;margin:0 0 22px}
#mohaa-guide .card-actions{display:grid;gap:10px}
#mohaa-guide .card-actions .button{display:flex;align-items:center;justify-content:center;text-align:center;width:100%;font:inherit;font-weight:750;cursor:pointer;padding:14px 12px}
#mohaa-guide .download-link{display:block;width:fit-content;margin:26px auto 12px;text-decoration:underline;text-underline-offset:5px;font-weight:600}
#mohaa-guide .room-card small{display:block;text-align:center;color:var(--muted);font-size:12px;line-height:1.5}
#mohaa-guide .screenshot-link{cursor:zoom-in;border:1px solid #ffffff20;border-radius:11px;overflow:hidden}
#mohaa-guide .screenshot-link:hover{border-color:var(--accent)}
#mohaa-guide :focus-visible,#join-dialog :focus-visible,#image-dialog :focus-visible{outline:2px solid #d1b16b;outline-offset:4px}
#join-dialog,#image-dialog{color:#f0e9df;background:#131d18;border:1px solid #ffffff30;border-radius:18px;padding:32px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px)}
#join-dialog{width:500px}
#join-dialog::backdrop,#image-dialog::backdrop{background:#080b0ce8}
.dialog-close{float:right;border:0;color:#f0e9df;background:#303931;border-radius:8px;width:44px;height:44px;font-size:28px;cursor:pointer;margin:-12px -12px 12px 12px}
#join-dialog h2{font-size:26px;margin:0 0 26px;line-height:1.2}
#join-form{display:grid;gap:12px;clear:both}
#join-form label{font-size:14px;color:#bbc0bb}
#invite-input{box-sizing:border-box;width:100%;min-width:0;background:#28312b;border:1px solid #ffffff30;padding:14px;color:#f0e9df;border-radius:8px;font:inherit}
#join-form .button{border:0;background:#d1b16b;color:#14100b;padding:16px;border-radius:8px;font:inherit;font-weight:700;cursor:pointer}
#join-error{color:#f3b5a7;font-size:14px;margin:0}
#join-error:empty{display:none}
#join-dialog .catalog-link{display:block;margin-top:24px;text-align:center;text-decoration:underline}
#image-dialog{padding:12px;width:fit-content;overflow:auto}
#image-dialog .dialog-close{position:sticky;top:0;float:right;margin:0 0 8px 8px}
#image-dialog img{display:block;clear:both;width:auto;height:auto;max-width:100%;max-height:calc(100dvh - 110px);object-fit:contain;margin:auto}
@media(max-width:980px){#mohaa-guide .hero{grid-template-columns:1fr;gap:32px;padding:40px 28px}#mohaa-guide .room-card{max-width:560px;width:100%;box-sizing:border-box}#mohaa-guide .hero-copy{max-width:650px}}
@media(max-width:760px){#mohaa-guide .hero{padding:30px 20px;gap:28px}#mohaa-guide h1{font-size:clamp(29px,7vw,42px)}#mohaa-guide .room-card{padding:22px 18px}#mohaa-guide .room-card h2{font-size:26px}#mohaa-guide .lead{font-size:18px}#mohaa-guide .badges{gap:7px}#mohaa-guide .badges span{font-size:12px;padding:5px 10px}#join-dialog{padding:24px}}
