/* Shared Fitzgerald Creative Studios furniture, on every GameStation route. */
@font-face {
  font-family: FCS Inter;
  src: url("inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: FCS Display;
  src: url("barlow-condensed-black.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}
:root:root {
  --fcs-edge: clamp(18px, 4vw, 90px);
  --fcs-header-height: 64px;
  --header: var(--fcs-header-height);
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  scrollbar-color: #fff #000;
  scroll-padding-top: var(--fcs-header-height);
}
/* The studio's 8px track stays fixed while its inset thumb widens on hover. */
@media (pointer:fine) and (forced-colors:none) {
  @supports selector(::-webkit-scrollbar) {
    :root:root { scrollbar-width:auto; scrollbar-color:auto; }
    :is(html,body)::-webkit-scrollbar { width:8px; height:8px; background:#000; }
    :is(html,body)::-webkit-scrollbar-track { background:#000; }
    :is(html,body)::-webkit-scrollbar-thumb {
      min-height:32px; border:2px solid transparent; border-radius:8px;
      background:#fff; background-clip:padding-box;
    }
    :is(html,body)::-webkit-scrollbar-thumb:hover { border-inline-width:1px; }
    :is(html,body)::-webkit-scrollbar-thumb:active { border-inline-width:0; }
    :is(html,body)::-webkit-scrollbar-corner { background:#000; }
  }
}
@media (pointer:coarse) {
  :root:root { scrollbar-gutter:auto; scrollbar-width:auto; scrollbar-color:auto; }
}
html.lenis.lenis-smooth { scroll-behavior: auto !important; }
html.lenis.lenis-stopped { overflow: clip; }
body[data-collection], body.game-page { padding-top: var(--fcs-header-height); }
.fcs-header, .fcs-drawer, .fcs-footer, .fcs-skip {
  box-sizing: border-box;
  font-family: "FCS Inter", Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #fff;
}
.fcs-header {
  position: fixed;
  z-index: 150;
  inset: 0 0 auto;
  height: var(--fcs-header-height);
  display: grid;
  grid-template-columns: minmax(260px,1.45fr) repeat(3,minmax(100px,1fr));
  align-items: center;
  padding: 0 var(--fcs-edge);
  color: #fff;
  background: #000;
  font-size: clamp(17px,1.24vw,20px);
  font-weight: 600;
  letter-spacing: -.057em;
  line-height: 1;
}
.fcs-header .fcs-brand, .fcs-header .fcs-brand:is(:visited,:hover,:focus,:active) {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  color: inherit;
  white-space: nowrap;
  text-decoration: none;
}
.fcs-header .fcs-brand::before, .fcs-header .fcs-brand::after { content: none; }
.fcs-header .fcs-nav { display: contents; }
.fcs-header .fcs-nav a, .fcs-drawer a {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: .4em;
  min-height: 44px;
  padding: 0;
  color: inherit;
  text-decoration: none;
  transition: color .18s ease;
}
.fcs-header .fcs-nav a:last-child { justify-self: end; }
.fcs-header .fcs-nav a:hover, .fcs-drawer a:hover { color: #fff; }
.fcs-header a, .fcs-header a:is(:link,:visited,:hover,:focus,:active),
.fcs-footer a, .fcs-footer a:is(:link,:visited,:hover,:focus,:active),
.fcs-drawer a, .fcs-drawer a:is(:link,:visited,:hover,:focus,:active) { text-decoration:none; border:0; }
.fcs-header a::before, .fcs-header a::after, .fcs-footer a::before, .fcs-footer a::after,
.fcs-drawer a::before, .fcs-drawer a::after { content:none; }
.fcs-external { display: inline-block; font-size: .88em; font-weight: 400; }
.fcs-header .fcs-toggle { display: none; }
.fcs-drawer[hidden] { display:none; }
.fcs-drawer {
  position: fixed;
  z-index: 145;
  inset: var(--fcs-header-height) 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  padding: 5vh var(--fcs-edge) calc(12vh + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #000;
  font-size: clamp(48px,11vw,78px);
  line-height: 1.12;
  font-weight: 530;
  letter-spacing: -.07em;
}
.fcs-skip {
  position: fixed;
  z-index: 152;
  inset: 5px auto auto var(--fcs-edge);
  transform: translateY(-160%);
  padding: 10px 16px;
  background: #fff; color: #000;
  text-decoration: none;
}
.fcs-skip:focus { transform: none; }
.fcs-header :is(a,button):focus-visible, .fcs-drawer a:focus-visible, .fcs-footer a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
body.fcs-menu-open { overflow: hidden; }
.fcs-footer {
  display: block;
  min-height: 0;
  margin: 0;
  padding: clamp(64px,7.3vw,140px) var(--fcs-edge) max(25px,env(safe-area-inset-bottom));
  border: 0;
  background: #000;
  font-size: clamp(16px,1.14vw,19px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -.038em;
}
.fcs-footer .fcs-closing-title {
  font:900 clamp(68px,8.7vw,156px)/.98 "FCS Display",Impact,sans-serif;
  letter-spacing:-.018em; color:#fff; margin:0 0 clamp(28px,3vw,58px); padding:0;
}
.fcs-closing-signature {display:flex;align-items:center;gap:clamp(16px,2.3vw,44px);}
.fcs-footer .fcs-closing-copy {
  margin:0; color:#fff; font:500 clamp(17px,1.45vw,25px)/1.43 "FCS Inter",Inter,Arial,sans-serif;
  letter-spacing:-.045em;
}
.fcs-closing-copy span {display:block;}
.fcs-copyright {display:block;margin-top:clamp(38px,5.6vw,95px);}
/* Studio mark at the foot of the page and the studio's original floating control. */
.fcs-footer .fcs-return-slot { position: relative; display:block; width:80px; height:80px; flex:none; }
.fcs-footer .fcs-return-mark { display:block; width:100%; height:100%; object-fit:contain; filter:none; }

/* Both the collection index and the game stage use the same Back control. */
#main .return-link {
  box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center;
  min-width:100px; min-height:52px; gap:8px; padding:13px 16px;
  border:0; border-radius:99px; background:#fff; color:#000;
  font:900 clamp(20px,1.4vw,24px)/1 "FCS Display",Impact,sans-serif;
  text-transform:uppercase; letter-spacing:0; white-space:nowrap; text-decoration:none;
  transition:background-color .15s ease, color .15s ease, scale .12s ease;
}
#main .return-link img { width:21px; height:21px; filter:none; }
#main .return-link i { font:400 21px/1 Arial,sans-serif; color:inherit; }
#main .return-link:focus-visible {
  outline:2px solid #fff; outline-offset:4px;
}
@media (hover:hover) {
  #main .return-link:hover { background:#000; color:#fff; box-shadow:inset 0 0 0 2px #fff; }
  #main .return-link:hover img { filter:invert(1); }
}
#main .return-link:active { background:#000; color:#fff; box-shadow:inset 0 0 0 2px #fff; scale:.97; }
#main .return-link:active img {filter:invert(1);}
#main .route-nav {padding-block:clamp(16px,2.8svh,32px);}
.fcs-footer .rf-top-btn, :where(.fcs-footer .rf-top-btn) svg { all:unset; box-sizing:border-box; }
.fcs-footer .rf-top-btn{
  position:fixed;
  right:22px;
  bottom:22px;
  width:52px;
  height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  margin:0;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.07);
  background:rgba(8,8,8,.82);
  color:#f3f3f3;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  box-shadow:none;
  outline:none;
  opacity:0;
  pointer-events:none;
  transform:translateY(12px);
  transition:
    opacity .26s cubic-bezier(.22,.61,.36,1),
    transform .26s cubic-bezier(.22,.61,.36,1),
    border-color .22s ease,
    background .22s ease;
  z-index:10050;
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
}

.fcs-footer .rf-top-btn:hover{
  background:rgba(10,10,10,.96);
  border-color:rgba(201,169,74,.18);
  transform:translateY(-2px);
}

.fcs-footer .rf-top-btn:focus,
.fcs-footer .rf-top-btn:focus-visible{
  outline:none;
  box-shadow:none;
}

.fcs-footer .rf-top-btn.is-visible{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}

.fcs-footer .rf-top-btn::before,
.fcs-footer .rf-top-btn::after{
  content:none !important;
}

.fcs-footer .rf-top-progress{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  transform:rotate(-90deg);
  pointer-events:none;
}

.fcs-footer .rf-top-track,
.fcs-footer .rf-top-fill{
  fill:none;
  stroke-width:2;
}

.fcs-footer .rf-top-track{
  stroke:rgba(255,255,255,.08);
}

.fcs-footer .rf-top-fill{
  stroke:#C9A94A;
  stroke-linecap:round;
  stroke-dasharray:175.93;
  stroke-dashoffset:175.93;
}

.fcs-footer .rf-top-icon{
  position:relative;
  z-index:2;
  width:22px;
  height:22px;
}

.fcs-footer .rf-top-icon path{
  fill:none;
  stroke:currentColor;
  stroke-width:2.15;
  stroke-linecap:round;
  stroke-linejoin:round;
}

@media (max-width:720px){
  .fcs-footer .rf-top-btn{
    right:16px;
    bottom:16px;
    width:48px;
    height:48px;
  }

  .fcs-footer .rf-top-icon{
    width:20px;
    height:20px;
  }
}
.fcs-footer .rf-top-btn { backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); visibility:hidden; }
.fcs-footer .rf-top-btn.is-visible { visibility:visible; }
.fcs-footer .rf-top-icon { transform:none; inset:auto; }
.fcs-footer .rf-top-fill { transform:none; transform-origin:center; }
.fcs-footer .rf-top-btn.is-docked {
  position:absolute; inset:0; width:100%; height:100%; z-index:1; visibility:visible;
  opacity:1; pointer-events:auto; transform:none; transition:none; border:0; border-radius:0;
  background:transparent; backdrop-filter:none; -webkit-backdrop-filter:none;
}
.fcs-footer .rf-top-btn.is-docked svg { visibility:hidden; }
.fcs-footer .rf-top-btn:focus-visible { outline:2px solid white; outline-offset:3px; }
.fcs-footer .rf-top-btn:not(.is-docked) { left:auto; right:max(22px,env(safe-area-inset-right)); bottom:max(22px,env(safe-area-inset-bottom)); }
@media(max-width:860px){ .fcs-footer .rf-top-btn:not(.is-docked){right:max(20px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));} }
body.immersive { padding-top: 0; }
body.immersive :is(.fcs-header,.fcs-footer,.fcs-drawer) { display: none; }
@media (max-width: 720px) {
  :root:root { --fcs-header-height: 58px; }
  .fcs-header { grid-template-columns: minmax(0,1fr) auto; font-size: 16px; }
  .fcs-header .fcs-nav { display: inline-flex; gap: 9px; font-size: 12px; }
  .shell-ready .fcs-header .fcs-nav { display: none; }
  .shell-ready .fcs-header .fcs-toggle {
    grid-column: 2; display: flex; align-items: center; justify-content: center; flex-direction: column;
    width: 44px; height: 44px; gap: 6px; margin: 0 -8px 0 0; padding: 0;
    border: 0; background: transparent; color: inherit; cursor: pointer;
  }
  .fcs-toggle span { width: 22px; height: 1px; background: currentColor; transition: transform .24s ease; }
  .fcs-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .fcs-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .fcs-footer { min-height: 100px; }
  .fcs-footer .fcs-return-slot { width: 58px; height: 58px; }
}
@media (orientation:landscape) and (max-height:540px) {
  :root:root { --fcs-header-height: 40px; }
  .fcs-header .fcs-brand, .fcs-header .fcs-nav a { min-height: 36px; }
}
@media (prefers-reduced-motion:reduce) {
  #main .return-link, .fcs-header *, .fcs-footer *, .fcs-drawer * { transition: none; }
  #main .return-link:active { scale:1; }
}
/* Capture the viewport once. The masthead stays in registration across routes. */
@media (prefers-reduced-motion:no-preference) {
  @view-transition { navigation: auto; }
  .fcs-header { view-transition-name: studio-masthead; }
  ::view-transition-group(root), ::view-transition-group(studio-masthead) { animation-duration: 210ms; }
  ::view-transition-old(root), ::view-transition-new(root),
  ::view-transition-old(studio-masthead), ::view-transition-new(studio-masthead) { mix-blend-mode: normal; }
  ::view-transition-old(root), ::view-transition-new(studio-masthead) { animation: none; }
  ::view-transition-old(studio-masthead) { display:none; }
  ::view-transition-new(root) { animation: fcs-route-enter 210ms cubic-bezier(.22,.7,.32,1) both; }
  @keyframes fcs-route-enter {
    from { transform: translateY(7px); clip-path: inset(0 0 2.5% 0); }
    to { transform: translateY(0); clip-path: inset(0); }
  }
}
