/* Help is scoped to our controls. The optional theme never filters game canvases or ads. */
.fm-guide-bar,.fm-guide-dialog,.fm-guide-caption{box-sizing:border-box;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.fm-guide-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;width:100%;margin:0 0 16px;padding:15px;border:1px solid #c7aacb;border-radius:16px;background:#fff9ee;color:#3c2548;text-align:left}
.fm-guide-bar-copy{flex:1 1 240px;min-width:0}.fm-guide-bar-copy strong{font-size:16px;line-height:1.4}.fm-guide-bar-copy p{margin:4px 0 0;font-size:13px;line-height:1.55}
.fm-guide-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.fm-guide-bar button,.fm-guide-dialog button{box-sizing:border-box;min-width:44px;min-height:44px;padding:10px 14px;margin:0;border:1px solid #826687;border-radius:12px;background:#fffdf8;color:#422e4a;font:750 13px/1.35 system-ui;letter-spacing:0;cursor:pointer;touch-action:manipulation;white-space:normal;box-shadow:none;text-transform:none;transform:none}
.fm-guide-bar [data-fm-tour],.fm-guide-dialog [data-tour-next]{background:#563263;color:#fff9ef;border-color:#563263}
.fm-guide-bar [data-fm-halloween][aria-pressed="true"],.fm-guide-dialog [data-fm-halloween][aria-pressed="true"]{background:#231b32;color:#ffe3a2;border-color:#9a734c}
.fm-guide-quick{flex:1 0 100%;border-top:1px solid #e0d0df;padding-top:6px;font-size:13px;line-height:1.5}
.fm-guide-quick summary{display:list-item;min-height:44px;padding:11px 0;cursor:pointer;font-weight:750;color:inherit}
.fm-guide-quick dl{margin:6px 0}.fm-guide-quick dt{font-weight:800;margin-top:10px}.fm-guide-quick dd{margin:3px 0 0}.fm-guide-quick p{margin:12px 0 0}
#fm-play-club .fm-guide-caption{font:500 12px/1.6 system-ui;margin:10px 0 0;color:#65556e;grid-column:1/-1}
.fm-guide-gamebar{margin:0 auto 10px;max-width:900px;padding:9px 12px;gap:8px}.fm-guide-gamebar .fm-guide-bar-copy{flex-basis:190px}.fm-guide-gamebar .fm-guide-bar-copy strong{font-size:13px}.fm-guide-gamebar .fm-guide-bar-copy p{font-size:12px}
body.pancake-playing .fm-guide-gamebar{display:none}
.fm-guide-dialog{width:calc(100vw - 28px);max-width:510px;max-height:calc(100dvh - 32px);padding:22px;border:2px solid #c9aad3;border-radius:24px;background:#fffaf3;color:#35273f;box-shadow:0 28px 100px #08030f80;text-align:left;font:15px/1.55 system-ui;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.fm-guide-dialog::backdrop{background:#140b2085}
.fm-guide-dialog *{box-sizing:border-box}.fm-guide-dialog [hidden]{display:none!important}
.fm-tour-top{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;font-weight:750;color:#66536f}
.fm-guide-dialog [data-tour-close]{padding:4px;font-size:26px;line-height:1}
.fm-guide-dialog progress{display:block;width:100%;height:6px;margin:12px 0 18px;accent-color:#79509a;border:0;border-radius:8px;overflow:hidden;background:#e7d8eb}
.fm-guide-dialog progress::-webkit-progress-bar{background:#e7d8eb}.fm-guide-dialog progress::-webkit-progress-value{background:#79509a}
.fm-tour-map{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:5px;padding:4px;border:1px solid #dbccdf;border-radius:12px;background:#f1e9f2;font-size:11px;line-height:1.4;text-align:center}
.fm-tour-map span{padding:8px 3px;border-radius:8px}.fm-tour-map .is-current{background:#553462;color:#fff9ef;font-weight:800}
.fm-guide-dialog .fm-tour-eyebrow{margin:20px 0 7px;font-size:10px;font-weight:850;letter-spacing:.07em;color:#79445c}
.fm-guide-dialog h2{margin:0 0 12px;color:inherit;font:850 clamp(22px,4vw,29px)/1.2 system-ui;letter-spacing:-.025em}
.fm-guide-dialog h2:focus{outline:none}.fm-guide-dialog p{margin:10px 0;font-size:14px;line-height:1.6;color:inherit}
.fm-guide-dialog ul{list-style:none;padding:0;margin:16px 0;display:grid;gap:8px}.fm-guide-dialog li{padding:10px 12px;border:1px solid #e3d7e3;border-radius:12px;background:#f7eef7;line-height:1.45}.fm-guide-dialog li strong{display:block;font-size:13px;margin-bottom:3px}.fm-guide-dialog li span{display:block;font-size:13px}
.fm-tour-art{float:right;margin:0 0 5px 12px;width:58px;height:65px}.fm-tour-art svg{display:block;width:100%;height:100%}
.fm-guide-dialog .fm-tour-note{padding:12px;border-left:3px solid #9970ad;font-size:12px;background:#eee7f0;border-radius:0 9px 9px 0}
.fm-tour-footer{display:flex;justify-content:space-between;gap:12px;margin-top:18px}.fm-tour-footer button{flex:1}.fm-guide-dialog button:disabled{opacity:.5;cursor:default}
.fm-guide-dialog .fm-tour-rewards{display:block;margin-top:10px;width:100%;background:transparent;border-color:transparent;text-decoration:underline}
.fm-guide-bar :is(button,summary):focus-visible,.fm-guide-dialog button:focus-visible{outline:3px solid #137483;outline-offset:3px}
/* Midnight Arcade: plum stone, warm moonlight, fine gothic arches; no downloads. */
html[data-fm-lounge-look="halloween"][data-fm-game-page] body{background-color:#120f1b!important;background-image:radial-gradient(ellipse at 75% 100px,#6753795e,transparent 500px),radial-gradient(ellipse at 10% 600px,#693c3745,transparent 700px),repeating-linear-gradient(90deg,transparent 0 118px,#b7956220 119px 120px,transparent 121px 240px)!important;background-size:auto!important;background-attachment:scroll!important}
html[data-fm-lounge-look="halloween"][data-fm-game-page] body::before{background:none!important;opacity:0!important}
html[data-fm-lounge-look="halloween"] .fmcm-games-page{background:transparent!important}
html[data-fm-lounge-look="halloween"] .fmcm-arcade-v5 .fmcm-arcade-welcome{border:1px solid #a38557;background:radial-gradient(circle at 88% 35%,#fff2bd 0 24px,#e4c38d35 25px 38px,transparent 39px),linear-gradient(125deg,#17121f,#382841 70%,#231b2a);box-shadow:inset 0 0 0 5px #231b2a,inset 0 0 0 6px #a3855759,0 8px 28px #0005}
html[data-fm-lounge-look="halloween"] .fmcm-arcade-welcome::before{background:repeating-radial-gradient(ellipse at 50% 120%,transparent 0 50px,#d5b37524 51px 52px,transparent 53px 100px)}
html[data-fm-lounge-look="halloween"] :is(.fmcm-arcade-section-head,.fmcm-arcade-section-head h2,.fmcm-arcade-section-head span,#fmcm-games-title){color:#fff0d7!important}
html[data-fm-lounge-look="halloween"] .fmcm-arcade-v5 .fm-player-profile{background:#211a2c!important;border-color:#b49764;color:#fff0d7}
html[data-fm-lounge-look="halloween"] .fm-player-profile :is(h2,p,strong){color:#fff0d7}
html[data-fm-lounge-look="halloween"] .fmcm-arcade-v5 .fmcm-arcade-card{border-color:#a88a65;box-shadow:0 6px 0 #0004,0 15px 25px #05020840}
html[data-fm-lounge-look="halloween"] #fm-play-club{--fm-bg:#19141f;--fm-surface:#241d2d;--fm-soft:#33273f;--fm-ink:#fff1dc;--fm-muted:#d4c2de;--fm-line:#786383;--arcade-edge:#9a805b;--arcade-wash:#382840;--arcade-wash2:#17131f;--arcade-heading:#f9dfae;color-scheme:dark;color:#fff1dc;border-color:#9a805b;background:repeating-radial-gradient(ellipse at 50% 120%,transparent 0 110px,#dfb76c16 111px 112px,transparent 113px 220px),linear-gradient(145deg,#312438,#17131f);box-shadow:0 6px 0 #0004,0 16px 35px #05020845}
html[data-fm-lounge-look="halloween"] #fm-play-club :is(.fm-profile,.fm-panel,.fm-save-notice,.fm-section-head,.fm-style-area,.fm-milestone,.fm-backdrops,.fm-footer-note,.fm-play-link,.fm-challenge,.fm-room-live){background:#241d2d;color:#fff1dc;border-color:#786383}
html[data-fm-lounge-look="halloween"] #fm-play-club :is(.fm-room-head,.fm-room-head h2,.fm-room-intro,.fm-room-kicker,.fm-room-context,.fm-profile h2,.fm-section-head h3,.fm-style-label,.fm-leader-head,.fm-style-help,.fm-reward-kicker,.fm-reward-small,.fm-note,.fm-guide-caption,.fm-save-notice,.fm-footer-note,.fm-challenge-note){color:#ebd9ee}
html[data-fm-lounge-look="halloween"] #fm-play-club :is(.fm-tabs,.fm-room-nav,.fm-leader-head){background:#32263e;border-color:#786383;color:#f9e2b9}
html[data-fm-lounge-look="halloween"] #fm-play-club :is(.fm-tab,.fm-style-option,.fm-equip,.fm-backdrop-options button,.fm-room-nav button,.fm-room-play,.fm-share){background:#3e2e4b;color:#fff1dc;border-color:#9a7daa}
html[data-fm-lounge-look="halloween"] #fm-play-club :is(.fm-tab[aria-selected="true"],.fm-room-nav button[aria-selected="true"],.fm-equip[aria-pressed="true"],.fm-style-option[aria-pressed="true"],.fm-backdrop-options button[aria-pressed="true"]){background:#f0c67f;color:#2a1d2d;border-color:#f7d9a5;box-shadow:none}
html[data-fm-lounge-look="halloween"] #fm-play-club :is(.fm-sticker,.fm-sticker:nth-child(n)){background:#33283d;border-color:#786383;color:#fff1dc}
html[data-fm-lounge-look="halloween"] #fm-play-club .fm-sticker.is-locked{background:#251f2f;color:#d6c5df;opacity:1}
html[data-fm-lounge-look="halloween"] #fm-play-club .fm-unlock{color:#d6c5df}
html[data-fm-lounge-look="halloween"] #fm-play-club :is(.fm-milestone h4,.fm-backdrops h4,.fm-challenge h3,.fmcm-arcade-live-head h2,.fmcm-arcade-live-head>div>span){color:#fff0d9}
html[data-fm-lounge-look="halloween"] #fm-play-club .fm-lounge{background:radial-gradient(ellipse at 90% 0,#6f45684d,transparent 55%),linear-gradient(135deg,#2f2339,#1b1723);border-color:#a18458;color:#fff1dc;box-shadow:inset 0 0 0 5px #c6a67612}
html[data-fm-lounge-look="halloween"] #fm-play-club .fm-lounge :is(.fm-lounge-head h3,.fm-lounge-head .fm-note,.fm-lounge-tools>span){color:#ffedcc}
/* Keep conversation cards and entry fields light for legibility; do not recolor embedded ads. */
html[data-fm-lounge-look="halloween"] #fm-play-club :is(.fm-message,.fm-reply,.fm-reply-form,.fm-room-join,.fm-room-result){background:#fff5e7;color:#3b2843;border-color:#d4ae7b}
html[data-fm-lounge-look="halloween"] #fm-play-club .fm-message :is(.fm-note,.fm-message-top,.fm-message-top span,p){color:#3b2843}
html[data-fm-lounge-look="halloween"] #fm-play-club :is(.fm-composer,.fm-message,.fm-reply,.fm-room-result,.fm-room-join) .fm-note{color:#655069}
html[data-fm-lounge-look="halloween"] #fm-play-club .fm-lounge :is(.fm-messages>.fm-note,.fm-lounge-head>.fm-note,.fm-lounge-empty){background:#fff5e7;color:#513e58;border-color:#d4ae7b}
html[data-fm-lounge-look="halloween"] #fm-play-club :is(.fm-room-join a,.fm-play-link a){color:#f1c987}
html[data-fm-lounge-look="halloween"] #fm-play-club .fm-room-join a{color:#793c24}
html[data-fm-lounge-look="halloween"] .fm-guide-bar{background:#211a2c;color:#fff0d9;border-color:#9a805b}
html[data-fm-lounge-look="halloween"] .fm-guide-quick{border-color:#786383}
html[data-fm-lounge-look="halloween"] .fm-guide-dialog{background:#20192a;color:#fff1dc;border-color:#b99760}
html[data-fm-lounge-look="halloween"] .fm-guide-dialog :is(.fm-tour-top,.fm-tour-eyebrow){color:#e8c994}
html[data-fm-lounge-look="halloween"] .fm-guide-dialog :is(li,.fm-tour-note,.fm-tour-map){background:#352a40;border-color:#7e658b;color:#fff1dc}
html[data-fm-lounge-look="halloween"] .fm-guide-dialog .fm-tour-map .is-current{background:#f0c67f;color:#2a1d2d}
html[data-fm-lounge-look="halloween"] .fm-guide-dialog .fm-tour-rewards{color:#ffdfa0}
html[data-fm-lounge-look="halloween"] :is(.fm-guide-bar,.fm-guide-dialog) :is(button,summary):focus-visible{outline-color:#ffe0a7}
/* Surrounding game frames only: no tile-state colors, canvas tint, ad iframe or gate changes. */
html[data-fm-lounge-look="halloween"][data-fm-game-page="pancake-stack"] :is(.brand-logo,.title-pill){color:#ffe2a6!important}
html[data-fm-lounge-look="halloween"][data-fm-game-page="pancake-stack"] .page>.panel{border-color:#ad8d60;background:#231a2e;box-shadow:0 8px 35px #0005}
html[data-fm-lounge-look="halloween"][data-fm-game-page="word-drop"] :is(.topbar,.app){background:#211a2c;border-color:#8d7256;color:#fff0d9}
html[data-fm-lounge-look="halloween"][data-fm-game-page="word-drop"] :is(.game-title,.game-title strong,.game-title span,.daily-label,.guess-label,.streak-label){color:#ffe5b7}
html[data-fm-lounge-look="halloween"][data-fm-game-page="word-drop"] .hint{background:#f9eddc;color:#3f2c42}
html[data-fm-lounge-look="halloween"][data-fm-game-page="prize-match"] :is(.app-bar,.brand){color:#ffe4b4}
html[data-fm-lounge-look="halloween"][data-fm-game-page="prize-match"] .game-shell{border-color:#ae8a57;box-shadow:0 8px 35px #0006}
@media(max-width:600px){.fm-guide-bar{padding:12px;gap:10px}.fm-guide-actions{width:100%}.fm-guide-actions button{flex:1}.fm-guide-gamebar .fm-guide-bar-copy{display:none}.fm-guide-gamebar{padding:7px 9px;margin-bottom:6px}.fm-guide-dialog{padding:16px}.fm-guide-dialog p{font-size:13px}.fm-guide-dialog li{padding:8px 10px}.fm-guide-dialog h2{font-size:24px}}
@media(prefers-reduced-motion:reduce){.fm-guide-bar *,.fm-guide-dialog *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media(forced-colors:active){.fm-guide-bar,.fm-guide-dialog{background:Canvas!important;color:CanvasText!important;border-color:ButtonText!important}.fm-guide-dialog :is(li,.fm-tour-note,.fm-tour-map){background:Canvas!important;color:CanvasText!important}.fm-guide-bar button,.fm-guide-dialog button{background:ButtonFace!important;color:ButtonText!important;border-color:ButtonText!important}}
