/* The cassette index and player notes share the cabinet's cyan/amber palette. */
.community-shade{position:fixed;inset:0;background:#0009;z-index:190;backdrop-filter:blur(3px)}
.community-drawer{position:fixed;inset:0 auto 0 0;width:min(340px,90vw);z-index:191;background:linear-gradient(160deg,#122432,#080e18 60%);color:#edf8f8;border-right:1px solid #52979b;box-shadow:15px 0 70px #0008;padding:20px;overflow:auto;font:16px/1.45 Arial,sans-serif}
.community-drawer-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:20px}.community-kicker{font:700 12px/1.4 monospace;letter-spacing:.13em;color:#e6b869;margin:22px 0 12px}
.community-nav-link{display:flex;align-items:center;gap:15px;width:100%;padding:12px;border:0;border-radius:7px;text-align:left;text-decoration:none;background:none;color:#dbedf1;font:inherit;cursor:pointer}.community-nav-link svg{color:#76e8ed;flex:none}.community-nav-link:hover,.community-nav-link[aria-pressed=true]{background:#70eff218;color:#fff}.community-tag-cloud{display:flex;gap:8px;flex-wrap:wrap}.community-tag-cloud .community-nav-link{width:auto;gap:6px;font-size:13px;padding:7px 10px;border:1px solid #354752}.community-tag-cloud svg{width:14px;height:14px}
.community-menu-open{overflow:hidden!important}.community-shade[hidden],.community-drawer[hidden],.community-browse[hidden]{display:none}
.community-browse{margin:0 auto 32px;max-width:1300px;color:#edf8f8}.community-browse-heading{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin:18px 0}.community-browse-heading h2{margin:0;font-size:26px}.community-result-count{color:#90b7c0;font:13px monospace}.community-small-button{padding:8px 14px;border:1px solid #3c5d67;border-radius:7px;color:#9feaf1;background:#14242e;cursor:pointer;font:14px Arial,sans-serif}.community-browse-heading button{margin-left:auto}
.community-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}.community-result{overflow:hidden;background:#0d1923;border:1px solid #34505b;border-radius:10px;text-decoration:none;color:#fff;transition:border-color .15s,transform .15s}.community-result:hover{border-color:#76e8ed;transform:translateY(-3px)}.community-result img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:#080d15}.community-result div{padding:14px}.community-result strong{display:block;font:700 18px Arial,sans-serif}.community-result span{display:block;margin-top:7px;font:13px Arial,sans-serif;color:#a6bdc4}
body.catalog-filtered .game-selection{display:none!important}
.community-comments{width:min(1040px,100%);box-sizing:border-box;margin:24px auto 0;border:1px solid #3a525c;border-radius:10px;background:linear-gradient(130deg,#15232ae8,#10151de8);color:#e6f1f4;font:15px/1.5 Arial,sans-serif;text-align:left}
.community-comments summary{cursor:pointer;padding:18px 22px;color:#c4f4f5;font-weight:700}.community-comment-count{margin-left:14px;color:#9eafb8;font-size:13px;font-weight:400}.community-comments details[open]>:not(summary){margin-left:22px;margin-right:22px}.community-comment-intro{color:#aebec6;font-size:14px}.community-comment-form label{display:block;font-size:13px;color:#bbd1d6;margin:12px 0}.community-comment-form input,.community-comment-form textarea{display:block;box-sizing:border-box;background:#08121c;color:#eefaff;border:1px solid #38535e;border-radius:7px;padding:10px 12px;font:15px/1.5 Arial,sans-serif;margin-top:6px;width:100%;resize:vertical}.community-comment-form input{max-width:300px}.community-comment-actions{display:flex;justify-content:space-between;align-items:center;gap:14px;color:#9baeb8;font:12px monospace}.community-post{border:1px solid #74e9ed;background:#173d47;color:#cbfbff;border-radius:7px;padding:10px 18px;font:700 14px Arial,sans-serif;cursor:pointer}.community-post:disabled{opacity:.5;cursor:wait}.community-comment-status{color:#e9c881;font-size:13px;min-height:20px}.community-comment-list{list-style:none;padding:0;margin:0}.community-comment-list li{padding:16px 0;border-top:1px solid #34414c}.community-comment-meta{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.community-comment-meta time{font-size:12px;color:#94a6b2}.community-comment-list p{margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.community-delete{margin-left:auto;background:none;border:0;color:#9bc9d1;font-size:12px;text-decoration:underline;cursor:pointer}.community-comments details>button{margin-bottom:20px}
body.is-player-open:not(.native-mobile-player) #embedded-game-view.has-community{top:0;display:block;overflow-y:auto;padding-bottom:40px}
#embedded-game-view.has-community .embedded-stage{margin:20px auto 0}
#embedded-game-view:fullscreen .community-comments,body.native-mobile-player .community-comments{display:none}
body.native-mobile-player .community-topbar{display:none!important}
body:has(#embedded-game-view:fullscreen) .community-topbar{display:none!important}
.community-menu:focus-visible,.community-nav-link:focus-visible,.community-small-button:focus-visible,.community-result:focus-visible{outline:2px solid #f4bb65;outline-offset:3px}
@media(max-width:850px){.community-comments summary{padding:15px}.community-comments details[open]>:not(summary){margin-left:15px;margin-right:15px}}
@media(prefers-reduced-motion:reduce){.community-result{transition:none}}


body.is-player-open:not(.native-mobile-player):not(.is-game-fullscreen) #embedded-game-view.has-community .community-play-surface{position:relative;display:grid;place-items:center;height:calc(100dvh - 185px);min-height:380px;margin-top:18px}
body.is-player-open:not(.native-mobile-player):not(.is-game-fullscreen) #embedded-game-view.has-community .embedded-stage{margin:0;max-height:100%}
body.is-game-fullscreen .community-play-surface{display:contents}
body.is-game-fullscreen .community-comments{display:none}
body.is-game-fullscreen .community-topbar{display:none!important}
body.is-game-fullscreen #embedded-game-view.has-community{top:0!important;display:grid!important;padding:0!important;overflow:hidden!important}
body.native-mobile-player .community-play-surface{display:contents}
@media(max-width:850px){body.is-player-open:not(.native-mobile-player):not(.is-game-fullscreen) #embedded-game-view.has-community .community-play-surface{height:calc(100dvh - 190px)}}

/* Original top bar appearance from the supplied v20 archive. */
.community-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(4, 5, 8, 0.68);
  backdrop-filter: blur(20px) saturate(1.25);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.26);
}
@media(max-width:760px){.community-topbar{align-items:flex-start;padding:12px 16px}}

/* Search stays in the purple robot's speech bubble. */
.community-menu{display:flex;align-items:center;justify-content:center;min-height:42px;padding:8px 13px;border:1px solid #38515c;border-radius:8px;background:#14202b;color:#81edf3;font:13px monospace;cursor:pointer}
.community-menu svg,.scout-search svg,.community-nav-link svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hero-copy:has(.cassette-scout){display:grid;grid-template-columns:112px minmax(0,1fr);column-gap:24px;align-items:center;max-width:860px;width:100%}
.hero-copy:has(.cassette-scout) .shelf-selector{grid-column:1/-1;grid-row:1}
.hero-copy:has(.cassette-scout) .hero-logo-title{grid-column:2;grid-row:2;margin:0;width:100%}
.hero-copy .cassette-scout{display:contents}.hero-copy .scout-portrait{grid-column:1;grid-row:2}.hero-copy .scout-bubble{grid-column:2;grid-row:3;margin-top:12px}
.cassette-scout{display:flex;align-items:center;gap:24px;margin:24px auto;max-width:760px;position:relative;color:#dcedef}
.scout-portrait{width:112px;height:136px;position:relative;flex:none}.scout-robot{position:relative;display:block;border:0;background:none;width:112px;height:112px;padding:0;cursor:pointer;color:inherit;touch-action:manipulation}.scout-robot:focus-visible{outline:2px solid #ffbc59;outline-offset:6px;border-radius:16px}
.scout-bubble{position:relative;box-sizing:border-box;max-width:600px;width:100%;padding:16px 18px 12px;border:1px solid #5c7780;border-radius:16px 16px 16px 4px;background:linear-gradient(120deg,#0a2430eb,#141421ed);box-shadow:0 6px 30px #0005,inset 0 1px #c1f7f31a;text-align:left}
.scout-bubble:before{content:'';position:absolute;left:-9px;top:23px;width:16px;height:16px;background:#0b2632;border-left:1px solid #5c7780;border-bottom:1px solid #5c7780;transform:rotate(45deg)}
.hero-copy .scout-bubble:before{top:-9px;left:24px;transform:rotate(135deg)}
.scout-title{margin:0 0 9px;font:700 12px monospace;letter-spacing:.1em;color:#ffc573;text-transform:uppercase}
.scout-search{display:flex;align-items:center;border:1px solid #385867;border-radius:8px;background:#060e18}.scout-search:focus-within{border-color:#78edf1;box-shadow:0 0 0 2px #78edf11c}.scout-search input{box-sizing:border-box;min-width:0;flex:1;width:100%;border:0;outline:0;background:transparent;color:#effbff;padding:11px 12px;font:15px/1.4 Arial,sans-serif}.scout-search input::placeholder{color:#99b0bc}.scout-search button{flex:none;display:grid;place-items:center;width:42px;height:42px;border:0;background:none;color:#7ce8ec;cursor:pointer;border-radius:6px}.scout-search button:focus-visible{outline:2px solid #ffbc59}
.scout-status{min-height:18px;margin:9px 0 0;font:12px/1.5 monospace;color:#9cb9c2}.scout-bubble[aria-busy=true]{border-color:#f69dd5}
@media(max-width:650px){.hero-copy:has(.cassette-scout){grid-template-columns:80px minmax(0,1fr);column-gap:12px}.hero-copy .scout-portrait{width:80px;height:100px}.hero-copy .scout-robot{transform:scale(.72);transform-origin:top left}.hero-copy .scout-bubble{grid-column:1/-1;margin-top:4px;max-width:100%;padding:13px}.hero-copy .scout-bubble:before{left:36px}.hero-copy .hero-logo-title{min-width:0}.cassette-scout{gap:12px}.scout-status{font-size:11px}}

/* Categories reveal directly at the screen edge, without an intermediate menu. */
.community-side-rail{position:fixed;left:0;top:38%;z-index:192;display:flex;align-items:center}
.community-side-handle{width:26px;height:96px;border:1px solid #8562ad;border-left:0;border-radius:0 10px 10px 0;background:#1c122be8;color:#d5a9ff;box-shadow:0 0 18px #a85bf329;font:28px monospace;cursor:pointer;touch-action:manipulation}
.community-drawer{inset:0 auto 0 0;width:min(340px,calc(100vw - 26px));max-height:100dvh;box-sizing:border-box;padding:20px;z-index:191;background:linear-gradient(160deg,#25183b,#080e18 60%);border-color:#8562ad;transform:translateX(-100%);visibility:hidden;pointer-events:none;transition:transform .2s ease,visibility .2s ease}
.community-drawer.is-open{transform:translateX(0);visibility:visible;pointer-events:auto}
.community-side-rail.is-open{left:min(340px,calc(100vw - 26px))}.community-side-rail.is-open .community-side-handle{border-radius:0 10px 10px 0}
.community-nav-link svg{color:#c693ff}.community-nav-link:hover,.community-nav-link[aria-pressed=true]{background:#bc83ff20}
.community-side-handle:focus-visible{outline:2px solid #ffbc59;outline-offset:3px}
.hero-copy:has(.cassette-scout){position:relative}.hero-copy .scout-bubble{position:absolute;left:136px;right:0;top:100%;margin-top:12px;z-index:55}
.scout-bubble{opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-6px);transition:opacity .18s,transform .18s,visibility .18s;border-color:#9271b2;background:linear-gradient(120deg,#221234f5,#141421f5)}
.search-open .scout-bubble{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}
.scout-bubble:before{background:#241337;border-color:#9271b2}.scout-search:focus-within{border-color:#c895ff;box-shadow:0 0 0 2px #c895ff24}.scout-search button{color:#cf9fff}
body.is-player-open:not(.native-mobile-player) #embedded-game-view.has-community{top:0}
body.native-mobile-player .community-side-rail,body.native-mobile-player .community-drawer,body.is-game-fullscreen .community-side-rail,body.is-game-fullscreen .community-drawer,body:has(#embedded-game-view:fullscreen) .community-side-rail,body:has(#embedded-game-view:fullscreen) .community-drawer{display:none}
@media(max-width:650px){.hero-copy .scout-bubble{left:0;right:0;max-width:100%}.community-side-rail{top:32%}.community-side-handle{height:80px}}
@media(prefers-reduced-motion:reduce){.community-drawer,.scout-bubble{transition:none}}

/* Full-size player fallback when an iPhone cannot enter element fullscreen. */
body.is-mobile-site.is-player-open.is-game-fullscreen:not(.game-force-landscape) #embedded-game-view.has-community{height:100dvh!important;min-height:0!important;inset:0!important;margin:0!important}
body.is-mobile-site.is-player-open.is-game-fullscreen #embedded-game-view.has-community .embedded-stage{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;transform:none!important;gap:0!important;box-sizing:border-box;overflow:hidden!important;box-shadow:none!important;backdrop-filter:none!important}
body.is-mobile-site.is-player-open.is-game-fullscreen #embedded-game-view.has-community .embedded-frame,body.is-mobile-site.is-player-open.is-game-fullscreen #embedded-game-view.has-community .embedded-canvas{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;margin:0!important;border:0!important;border-radius:0!important;transform:none!important;object-fit:contain;box-sizing:border-box}
body.is-mobile-site.is-player-open.is-game-fullscreen .embedded-controls{display:none!important}
body.is-mobile-site.is-player-open.is-game-fullscreen.game-force-landscape #embedded-game-view.has-community{inset:50% auto auto 50%!important;width:var(--game-landscape-width)!important;height:var(--game-landscape-height)!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;transform:translate(-50%,-50%) rotate(90deg)!important}

/* False Orders uses a 1536 x 1024 tactical scene, including its squad HUD. */
@media (min-width: 851px) {
  body.is-player-open[data-active-game="false-orders"]:not(.is-game-fullscreen) #embedded-game-view {
    padding: 12px;
  }
  body.is-player-open[data-active-game="false-orders"]:not(.is-game-fullscreen) .now-playing h2 {
    font-size: 28px;
  }
  body.is-player-open[data-active-game="false-orders"]:not(.is-game-fullscreen) #embedded-game-view.has-community .community-play-surface {
    height: auto;
    min-height: 0;
    margin-top: 8px;
  }
  body.is-player-open[data-active-game="false-orders"]:not(.is-game-fullscreen) #embedded-game-view .embedded-stage {
    width: min(1760px, 100%, calc((100dvh - 100px) * 1.5));
    max-height: none;
    padding: 8px;
    gap: 8px;
    box-sizing: border-box;
  }
  body.is-player-open[data-active-game="false-orders"]:not(.is-game-fullscreen) .embedded-controls {
    display: none;
  }
  body.is-player-open[data-active-game="false-orders"]:not(.is-game-fullscreen) #false-orders-frame {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    max-height: none;
    box-sizing: border-box;
  }
}

/* An opened panel used to run to its natural height and swallow the bottom half
   of the window under the player. Cap it and scroll inside it, header pinned. */
.community-comments details[open]{max-height:min(38dvh,340px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#76e8ed66 transparent}
.community-comments details[open]>summary{position:sticky;top:0;z-index:2;background:linear-gradient(130deg,#15232a,#10151d)}
@media(max-width:850px){.community-comments details[open]{max-height:min(46dvh,380px)}}

/* Halloween dress for the scout robot (season-halloween is set by
   arcade-community-v1.js). The head's own colours come from the canvas theme;
   these are the trimmings: a carved-pumpkin glow behind it, a bat that flaps
   past the ear, and a candle flicker on the speech bubble's edge. */
.cassette-scout.season-halloween .scout-portrait::before{content:"";position:absolute;left:50%;top:46%;width:132px;height:132px;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle,rgba(255,138,26,.34),rgba(255,106,0,.12) 55%,transparent 72%);filter:blur(2px);pointer-events:none;animation:scout-lantern 3.4s ease-in-out infinite}
.cassette-scout.season-halloween .scout-portrait::after{content:"🦇";position:absolute;right:-6px;top:4px;font-size:19px;line-height:1;filter:drop-shadow(0 2px 5px rgba(0,0,0,.6));transform-origin:70% 50%;animation:scout-bat 5.6s ease-in-out infinite;pointer-events:none}
.cassette-scout.season-halloween .scout-robot{filter:drop-shadow(0 6px 18px rgba(255,112,16,.3))}
.cassette-scout.season-halloween .scout-bubble{border-color:rgba(255,150,46,.55);box-shadow:0 0 22px rgba(255,120,20,.18)}
.cassette-scout.season-halloween .scout-status{color:#ffc489}
@keyframes scout-lantern{0%,100%{opacity:.62;transform:translate(-50%,-50%) scale(1)}42%{opacity:1;transform:translate(-50%,-50%) scale(1.06)}68%{opacity:.78;transform:translate(-50%,-50%) scale(1.02)}}
@keyframes scout-bat{0%,62%,100%{transform:translate(0,0) rotate(0deg)}68%{transform:translate(-7px,-9px) rotate(-16deg)}74%{transform:translate(-13px,-4px) rotate(10deg)}80%{transform:translate(-6px,-10px) rotate(-12deg)}88%{transform:translate(0,-2px) rotate(4deg)}}
@media(prefers-reduced-motion:reduce){.cassette-scout.season-halloween .scout-portrait::before,.cassette-scout.season-halloween .scout-portrait::after{animation:none}}
