/* =====================================================================
   fnaf.css - ONE NIGHT AT SWIFTY'S.
   VHS grain, a purple-black office, chunky door buttons, green cams.

   This room does NOT use the site's centred 760px column. It is laid
   out as a guard post: a door frame bolted down the left edge, the
   office filling the middle, the break-room wall pinned to the right.
   Everything else on the site reads top to bottom; this reads across.
   ===================================================================== */

/* stronger grain on this page */
body.room-fnaf::after{
  content:""; position:fixed; inset:-50%; z-index:9998; pointer-events:none;
  background-image:
    repeating-radial-gradient(circle at 17% 32%, rgba(255,255,255,.05) 0 1px, transparent 1px 4px),
    repeating-radial-gradient(circle at 73% 61%, rgba(255,255,255,.04) 0 1px, transparent 1px 3px);
  animation:fgGrain .3s steps(3) infinite;
  opacity:.85;
}
/* the dark closing in: a vignette that slowly breathes */
body.room-fnaf::before{
  content:""; position:fixed; inset:0; z-index:9997; pointer-events:none;
  background:radial-gradient(115% 105% at 50% 45%, transparent 34%, rgba(0,0,0,.82) 100%);
  animation:fgBreathe 11s ease-in-out infinite;
}
@keyframes fgBreathe{
  0%,100%{ opacity:.82; transform:scale(1); }
  50%    { opacity:1;   transform:scale(1.05); }
}
/* the whole room flinches now and then */
body.room-fnaf .cn{ animation:fgFlinch 17s steps(1) infinite; }
@keyframes fgFlinch{
  0%,96%,100%{ filter:none; transform:none }
  97%{ filter:brightness(1.9) contrast(1.5) saturate(.3); transform:translateX(-2px) }
  98%{ filter:brightness(.35); transform:translateX(3px) }
  99%{ filter:brightness(1.25) hue-rotate(-12deg) }
}
@keyframes fgGrain{
  0%{ transform:translate(0,0) } 33%{ transform:translate(-2%,1%) }
  66%{ transform:translate(1%,-2%) } 100%{ transform:translate(2%,2%) }
}

/* the topbar reads as a badge scanner on this page, not a nav bar */
body.room-fnaf .topbar{
  border-bottom:1px solid #2a1416;
  box-shadow:0 1px 0 rgba(179,38,42,.35), 0 10px 26px rgba(0,0,0,.6);
}
body.room-fnaf .brand{ letter-spacing:1.5px; }

/* =====================================================================
   THE CONSOLE - the page frame
   ===================================================================== */
body.room-fnaf main.cn{
  padding:0;
  display:grid;
  grid-template-columns:clamp(138px, 14vw, 216px) minmax(0, 1fr) clamp(186px, 19vw, 264px);
  grid-template-rows:minmax(430px, 1fr);
  min-height:calc(100dvh - 58px);
  border-bottom:1px solid var(--line);
}

/* the rails: plaster, bolts, and a hard edge against the office */
.cn-rail{
  position:relative; z-index:1;
  display:flex; flex-direction:column; align-items:center;
  gap:14px; padding:16px 12px 18px; min-width:0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 3px, transparent 3px 7px),
    linear-gradient(180deg, #0a0e15 0%, #05080d 55%, #020407 100%);
}
.cn-rail-l{ border-right:1px solid #1d2531; box-shadow:inset -14px 0 26px rgba(0,0,0,.75); }
.cn-rail-r{ border-left:1px solid #1d2531; box-shadow:inset 14px 0 26px rgba(0,0,0,.75); }
/* four bolts, one per corner of each rail */
.cn-rail::before, .cn-rail::after{
  content:""; position:absolute; left:9px; right:9px; height:7px; pointer-events:none;
  background:
    radial-gradient(circle at 3px 3px, #39424f 0 2px, transparent 2px) left center/14px 7px no-repeat,
    radial-gradient(circle at 3px 3px, #39424f 0 2px, transparent 2px) right center/14px 7px no-repeat;
}
.cn-rail::before{ top:7px; }
.cn-rail::after{ bottom:7px; }

/* ---- left rail: stencil, the sign on its side, the pay stub --------- */
.cn-stencil{
  margin:6px 0 0; text-align:center;
  font-family:var(--font-pixel); font-size:9px; line-height:1.9; letter-spacing:2px;
  color:#4a5666; text-shadow:0 1px 0 #000;
}

.cn-vsign{
  writing-mode:vertical-lr; text-orientation:mixed;
  align-self:center; flex:1; min-height:0; margin:0;
  /* two block children in a vertical writing mode stack along the block
     axis, which runs left to right here - so the two halves of the name
     come out as two columns, not one long thin line. */
  display:grid; place-content:center; gap:12px;
  font-family:var(--font-pixel); font-weight:700;
  font-size:clamp(17px, 2.05vw, 30px); line-height:1; letter-spacing:3px;
  color:#c9d2de; white-space:nowrap;
  text-shadow:2px 0 rgba(179,38,42,.8), -2px 0 rgba(61,90,115,.7), 0 0 30px rgba(0,0,0,.95);
  animation:fgGlitch 4s infinite;
}
.cn-vsign span{ display:block; }
.cn-vsign .b{ color:#8c99a9; }

.cn-stub{
  width:100%; margin:0; padding:10px 10px 12px;
  background:#0d1219; border:1px solid #1d2531;
  /* torn along the bottom, like it came off a pad */
  clip-path:polygon(0 0,100% 0,100% calc(100% - 7px),92% 100%,84% calc(100% - 6px),
            76% 100%,68% calc(100% - 6px),60% 100%,52% calc(100% - 6px),44% 100%,
            36% calc(100% - 6px),28% 100%,20% calc(100% - 6px),12% 100%,4% calc(100% - 6px),0 100%);
}
.cn-stub div{ display:flex; justify-content:space-between; gap:6px; align-items:baseline; }
.cn-stub div + div{ margin-top:3px; padding-top:3px; border-top:1px dashed #1d2531; }
.cn-stub dt{
  font-family:var(--font-pixel); font-size:8px; letter-spacing:1px; color:#4a5666;
  text-transform:uppercase;
}
.cn-stub dd{
  margin:0; font-family:var(--font-term); font-size:16px; line-height:1.2; color:#9fb0c2;
}
.cn-stub dd.hot{ color:var(--accent); text-shadow:0 0 10px rgba(179,38,42,.6); }

/* ---- right rail: things taped to the wall --------------------------- */
.cn-card{
  position:relative; width:100%; padding:13px 13px 11px;
  background:#101722; border:1px solid #232d3b;
  box-shadow:0 10px 22px rgba(0,0,0,.6);
}
.cn-card::before{            /* a strip of tape across the top corner */
  content:""; position:absolute; top:-9px; left:50%; width:54px; height:17px;
  transform:translateX(-50%) rotate(-3deg);
  background:rgba(226,222,196,.16); border:1px solid rgba(226,222,196,.12);
}
.cn-punch{ transform:rotate(-1.3deg); }
.cn-poster{ transform:rotate(1.6deg); }

.cn-card-h{
  margin:0 0 8px; display:flex; justify-content:space-between; align-items:baseline; gap:6px;
  font-family:var(--font-pixel); font-size:9px; letter-spacing:1.5px; color:#8c99a9;
  border-bottom:1px solid #232d3b; padding-bottom:6px;
}
.cn-card-h span{ color:#4a5666; letter-spacing:.5px; }

.cn-hours{ list-style:none; margin:0; padding:0; }
.cn-hours li{
  display:flex; align-items:center; gap:8px;
  font-family:var(--font-term); font-size:16px; line-height:1.45; color:#6d7d90;
}
.cn-hours li i{           /* the punch hole */
  flex:0 0 9px; width:9px; height:9px; border-radius:50%;
  background:#05080d; box-shadow:inset 0 1px 2px #000;
}
.cn-hours li.goal{ color:var(--accent); text-shadow:0 0 10px rgba(179,38,42,.55); }
.cn-hours li.goal i{ background:var(--accent); box-shadow:0 0 9px var(--accent); }

.cn-card-f{
  margin:9px 0 0; padding-top:7px; border-top:1px dashed #232d3b;
  font-family:var(--font-term); font-size:15px; color:#4a5666;
}
.cn-card-f b{ color:#c3ccd8; font-size:19px; }

.cn-poster{ text-align:center; }
.cn-poster-art{ width:min(100%, 132px); margin:2px auto 4px; opacity:.72; }
.cn-poster-art svg{ width:100%; height:auto; display:block; }
.cn-poster-txt{
  margin:0; font-family:var(--font-pixel); font-size:12px; letter-spacing:3px;
  color:var(--sodium); text-shadow:0 0 12px rgba(201,138,60,.5);
}

.cn-plaque{
  margin:auto 0 8px; display:flex; align-items:center; gap:8px;
  font-family:var(--font-pixel); font-size:8.5px; letter-spacing:1.5px; color:#6d7d90;
  background:#0d1219; border:1px solid #232d3b; border-radius:3px; padding:7px 10px;
}
.cn-plaque .blip{ width:7px; height:7px; flex:0 0 7px; }

/* =====================================================================
   THE GAME
   ===================================================================== */

/* display:flex/grid on screens must not defeat the hidden attribute */
.fnaf-game [hidden]{ display:none !important; }

.fnaf-game{
  position:relative; margin:0; min-width:0; background:#060409;
  /* every screen stacks into one cell, so swapping them never resizes
     the office - the grid decides the size, not whichever screen is up */
  display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,1fr);
}
.fnaf-game > div{ grid-area:1 / 1; min-width:0; min-height:0; }

/* ---- phone guy -------------------------------------------------------- */
.fg-phone{
  position:absolute; left:4%; right:4%; bottom:6%; z-index:20;
  background:rgba(4,2,8,.92); border:1px solid #3a2a55; border-radius:10px;
  padding:14px 16px; box-shadow:0 0 24px rgba(138,63,251,.25);
}
.fg-phone-text{
  font-family:var(--font-term); font-size:19px; line-height:1.4; color:#cdbfe8;
  margin:0 0 10px; min-height:3em;
}
.fg-phone-skip{
  font-family:var(--font-pixel); font-size:10px; letter-spacing:1px;
  color:#8a6fc0; background:none; border:1px solid #3a2a55; border-radius:6px;
  padding:6px 12px; cursor:pointer;
}
.fg-phone-skip:hover{ color:#cdbfe8; border-color:#8a6fc0; }

/* ---- start menu :: split down the middle ---------------------------
   No photograph behind it any more. The left half is the title and the
   entries; the right half is him, half out of the dark, drawn from the
   site's own raccoon art. */
.fg-menu{
  position:relative;
  display:grid; grid-template-columns:minmax(0, 1.05fr) minmax(0, .95fr);
  align-items:center; gap:18px; padding:38px 5% 64px;
  background:
    radial-gradient(74% 108% at 86% 52%, rgba(179,38,42,.15), transparent 62%),
    radial-gradient(62% 84% at 10% 44%, rgba(61,90,115,.13), transparent 72%),
    linear-gradient(203deg, #080c13 0%, #04060a 46%, #010203 100%);
}
/* rolling analogue static over the whole menu */
.fg-menu::before{
  content:""; position:absolute; inset:0; pointer-events:none; z-index:1; opacity:.5;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.055) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.5) 0 2px, transparent 2px 5px);
  animation:fgRoll 7s linear infinite;
  mix-blend-mode:overlay;
}
@keyframes fgRoll{ to{ background-position:0 240px, 0 -180px; } }
/* a bright scanline sweeping down the screen */
.fg-menu::after{
  content:""; position:absolute; left:0; right:0; height:70px; z-index:2;
  pointer-events:none; opacity:.16;
  background:linear-gradient(180deg, transparent, #fff, transparent);
  animation:fgSweep 5.5s linear infinite;
}
@keyframes fgSweep{ 0%{ top:-70px } 100%{ top:100% } }
.fg-menu > *{ position:relative; z-index:3; }

.fg-menu-in{ display:flex; flex-direction:column; align-items:flex-start; gap:14px; }

.fg-title{
  font-family:var(--font-pixel); font-weight:700;
  font-size:clamp(24px, 3.4vw, 44px); line-height:1.06; color:#d8d8d8;
  letter-spacing:1px;
  text-shadow:2px 0 rgba(179,38,42,.75), -2px 0 rgba(61,90,115,.75), 0 0 26px rgba(0,0,0,.9);
  animation:fgGlitch 4s infinite;
}
@keyframes fgGlitch{
  0%,88%,91%,96%,100%{ transform:none; opacity:1 }
  89%{ transform:translateX(-4px) skewX(4deg); opacity:.55 }
  90%{ transform:translateX(4px); opacity:.85 }
  97%{ transform:translateX(-2px); opacity:.7 }
}
.fg-entries{ display:flex; flex-direction:column; align-items:flex-start; gap:4px; }
.fg-menu button{
  font-family:var(--font-pixel); font-size:15px; letter-spacing:1px;
  color:#b9b9b9; background:none; border:0; cursor:pointer; padding:3px 0 3px 30px;
  text-align:left; position:relative; text-shadow:0 2px 6px #000;
}
.fg-menu button::before{        /* the FNAF ">>" pointer */
  content:">>"; position:absolute; left:0; opacity:0; color:#d8d8d8;
}
.fg-menu button:hover, .fg-menu button:focus-visible{ color:#fff; outline:none; }
.fg-menu button:hover::before, .fg-menu button:focus-visible::before{ opacity:1; }

/* him, fading out into the dark at the edges */
.fg-menu-art{
  justify-self:center; align-self:center; width:min(100%, 290px);
  opacity:.62; filter:drop-shadow(0 0 26px rgba(179,38,42,.35)) contrast(1.15) brightness(.8);
  -webkit-mask-image:radial-gradient(64% 62% at 50% 46%, #000 42%, transparent 100%);
  mask-image:radial-gradient(64% 62% at 50% 46%, #000 42%, transparent 100%);
  animation:fgLurk 6.5s ease-in-out infinite;
}
.fg-menu-art svg{ width:100%; height:auto; display:block; }
@keyframes fgLurk{
  0%,100%{ transform:translate(0,0) scale(1); opacity:.62 }
  47%    { transform:translate(-5px,-7px) scale(1.035); opacity:.78 }
}

/* bottom strip, like the real title screen */
.fg-menu-bar{
  position:absolute; left:0; right:0; bottom:0; z-index:3;
  /* equal outer tracks, so the middle line stays dead centre no matter
     how many items sit beside it */
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:10px;
  padding:10px 5%; font-family:var(--font-term); font-size:15px; color:#5d6b7d;
  text-shadow:0 2px 5px #000;
}
.fg-menu-bar .mid{ grid-column:2; text-align:center; }

/* ---- office ---------------------------------------------------------- */
.fg-office{ display:flex; flex-direction:column; }
.fg-hud{
  display:flex; gap:16px; flex-wrap:wrap; justify-content:space-between;
  font-family:var(--font-term); font-size:19px; color:#cfc6dd;
  padding:10px 14px; border-bottom:1px solid var(--line); background:#0a0710;
}
#fg-power.low{ color:var(--down); animation:blink 1s steps(2) infinite; }

.fg-room{
  flex:1; display:flex; align-items:stretch; min-height:0;
  background:
    linear-gradient(180deg, #0b0812 0%, #120c1c 55%, #0a0710 100%);
}
.fg-side{
  width:26%; min-width:110px; display:flex; flex-direction:column; gap:8px;
  align-items:center; justify-content:center; padding:12px 8px; position:relative;
}
.fg-doorway{
  width:76px; height:150px; border:3px solid #241a35; border-radius:6px 6px 0 0;
  background:#03020a; position:relative; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
}
.fg-doorway .fg-eyes{
  font-family:var(--font-term); color:#ffd7d7; font-size:22px; letter-spacing:10px;
  text-shadow:0 0 8px var(--accent); opacity:0; transition:opacity .12s;
}
/* something in the dark: screen-blend drops the shot's black background */
.fg-doorway .fg-eyes img{
  width:84px; height:auto; display:block; mix-blend-mode:screen;
  image-rendering:auto; filter:drop-shadow(0 0 10px rgba(226,59,59,.55));
}
.lightL-on .fg-side.left .fg-doorway{ background:#1c1428; }
.lightR-on .fg-side.right .fg-doorway{ background:#1c1428; }
.eyes-L .fg-side.left .fg-eyes{ opacity:1; }
.eyes-R .fg-side.right .fg-eyes{ opacity:1; }
.fg-doorway .fg-door{
  position:absolute; inset:0; transform:translateY(-102%);
  background:repeating-linear-gradient(0deg, #2e2344 0 12px, #241a35 12px 24px);
  transition:transform .18s ease-in; border-bottom:4px solid #4b3a6e;
}
.doorL-closed .fg-side.left .fg-door{ transform:translateY(0); }
.doorR-closed .fg-side.right .fg-door{ transform:translateY(0); }

.fg-btn{
  font-family:var(--font-pixel); font-size:10px; letter-spacing:.5px;
  width:86px; padding:9px 4px; cursor:pointer; border-radius:8px;
  color:#cfc6dd; background:#181024; border:2px solid #33244d;
  transition:all .1s;
}
.fg-btn:hover{ border-color:var(--accent2); }
.doorL-closed .fg-side.left .fg-btn.door,
.doorR-closed .fg-side.right .fg-btn.door{ background:var(--accent); color:#160505; border-color:var(--accent); }
.lightL-on .fg-side.left .fg-btn.light,
.lightR-on .fg-side.right .fg-btn.light{ background:#f5efc9; color:#221; border-color:#f5efc9; }

.fg-desk{
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:flex-end;
  padding:14px; gap:6px; text-align:center;
}
.fg-desk .desk-note{ font-family:var(--font-term); font-size:17px; color:var(--muted); }

#fg-cams{
  font-family:var(--font-pixel); font-size:12px; letter-spacing:2px;
  margin:0; padding:12px; width:100%; cursor:pointer;
  color:#cfc6dd; background:#0a0710; border:0; border-top:1px solid var(--line);
}
#fg-cams:hover{ color:var(--accent2); background:#120c1c; }

/* ---- camera view ------------------------------------------------------ */
.fg-camview{ display:flex; flex-direction:column; background:#020503; }
.fg-cam-screen{
  flex:1; position:relative; min-height:0; margin:12px; border:2px solid #1c3a24;
  background:
    repeating-linear-gradient(0deg, rgba(90,255,140,.05) 0 2px, transparent 2px 4px),
    radial-gradient(500px 260px at 50% 40%, rgba(90,255,140,.08), transparent 70%),
    #04120a;
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.fg-rec{
  position:absolute; top:8px; left:10px; font-family:var(--font-term); font-size:18px;
  color:#ff4d4d;
}
.fg-rec::before{ content:"● "; animation:blink 1.2s steps(2) infinite; }
#fg-cam-label{
  position:absolute; top:8px; right:10px; font-family:var(--font-term);
  font-size:18px; color:#9ef0b4;
}
#fg-cam-body{ text-align:center; }
.fg-silhouette{ width:120px; filter:brightness(.35) sepia(1) hue-rotate(80deg); animation:fgFlicker 2s steps(3) infinite; }
.fg-silhouette svg{ width:100%; height:auto; }
@keyframes fgFlicker{ 50%{ opacity:.55 } 75%{ transform:translateX(2px) } }
.fg-empty{ font-family:var(--font-term); color:#5d8a6c; font-size:20px; }

/* ---- the desk fan, drawn in CSS ------------------------------------- */
.fg-desk .fan{
  width:34px; height:34px; margin:0 auto 6px; position:relative;
  border-radius:50%; border:2px solid #2b3543; background:#0a0f16;
}
.fg-desk .fan::before{
  content:""; position:absolute; inset:4px; border-radius:50%;
  background:conic-gradient(#39485c 0 25%, #101720 0 50%, #39485c 0 75%, #101720 0);
  animation:fanSpin 1.1s linear infinite;
}
.fg-desk .fan::after{
  content:""; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:7px; height:7px; border-radius:50%; background:#5d6b7d;
}
@keyframes fanSpin{ to{ transform:rotate(360deg) } }

/* CAM 3C - the offsite desk feed (placeholder until it goes live) */
.fg-deskcam{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px; height:100%; padding:18px; text-align:center;
  font-family:var(--font-term);
  background:repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 2px, transparent 2px 4px);
}
.fg-deskcam-main{
  margin:0; font-size:26px; letter-spacing:2px; color:#e23b3b;
  text-shadow:0 0 12px rgba(226,59,59,.6); animation:blink 2.4s steps(2) infinite;
}
.fg-deskcam-sub{ margin:0; font-size:20px; color:#9a86b8; letter-spacing:6px; text-transform:uppercase; }
.fg-deskcam-note{ margin:8px 0 0; font-size:16px; line-height:1.4; color:#6f6280; max-width:34ch; }

.fg-cam-map{
  display:flex; gap:8px; flex-wrap:wrap; justify-content:center; padding:0 12px 4px;
}
.fg-cam-btn{
  font-family:var(--font-term); font-size:18px; color:#9ef0b4; background:#04120a;
  border:1px solid #1c3a24; border-radius:6px; padding:6px 14px; cursor:pointer;
}
.fg-cam-btn.active{ background:#123920; border-color:#9ef0b4; }
#fg-cams-down{
  font-family:var(--font-pixel); font-size:12px; letter-spacing:2px;
  margin:8px 0 0; padding:12px; width:100%; cursor:pointer;
  color:#9ef0b4; background:#020503; border:0; border-top:1px solid #1c3a24;
}
#fg-cams-down:hover{ background:#04120a; }

/* ---- blackout / jumpscare / end --------------------------------------- */
.fnaf-game.blackout .fg-room{ filter:brightness(.25); }
.fnaf-game.blackout .fg-btn{ opacity:.3; pointer-events:none; }
.fnaf-game.blackout #fg-cams{ opacity:.3; pointer-events:none; }

.fg-jumpscare{
  position:fixed !important; inset:0; z-index:10000; background:#000;
  display:flex; align-items:center; justify-content:center; min-height:0 !important;
}
.fg-jumpscare svg{ width:min(80vw, 80vh); height:auto; animation:fgLunge .5s steps(4) infinite; }
@keyframes fgLunge{
  0%{ transform:scale(1) } 25%{ transform:scale(1.25) translate(-12px, 8px) }
  50%{ transform:scale(1.5) translate(10px,-6px) } 75%{ transform:scale(1.8) }
}
.fnaf-game.shake{ animation:fgShake .1s linear infinite; }
@keyframes fgShake{ 25%{ transform:translate(3px,-2px) } 75%{ transform:translate(-3px,2px) } }

.fg-end{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:10px; text-align:center; padding:30px; background:#060409;
}
#fg-end-title{
  font-family:var(--font-pixel); font-size:clamp(26px, 6vw, 44px);
  color:var(--accent); margin:0;
}
.fnaf-game.won #fg-end-title{ color:#f5efc9; text-shadow:0 0 18px #f5efc9; }
#fg-end-body{ font-family:var(--font-term); font-size:20px; color:#cfc6dd; line-height:1.5; }
.fg-end button{
  font-family:var(--font-pixel); font-size:14px; color:#cfc6dd; background:none;
  border:0; cursor:pointer; padding:4px;
}
.fg-end button:hover{ color:var(--accent); }

/* ---- footer: a strip across the whole floor, not a centred line ------ */
body.room-fnaf .site-foot{ margin-top:0; padding:14px 0 26px; border-top:0; }
body.room-fnaf .site-foot .wrap{
  max-width:none; padding:0 18px;
  font-family:var(--font-term); font-size:16px; letter-spacing:1px;
}

/* =====================================================================
   NARROWER: the guard post unfolds into bands
   ===================================================================== */
@media (max-width:1000px){
  body.room-fnaf main.cn{
    grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(430px,1fr) auto;
    min-height:0;
  }
  .cn-rail{
    flex-direction:row; flex-wrap:wrap; align-items:center; justify-content:center;
    gap:12px 18px; padding:20px 16px;
  }
  .cn-rail-l{ border-right:0; border-bottom:1px solid #1d2531; box-shadow:inset 0 -14px 26px rgba(0,0,0,.75); }
  .cn-rail-r{ border-left:0; border-top:1px solid #1d2531; box-shadow:inset 0 14px 26px rgba(0,0,0,.75); }
  .cn-rail::before, .cn-rail::after{ display:none; }

  .cn-stencil{ margin:0; text-align:left; }
  .cn-vsign{
    writing-mode:horizontal-tb; flex:1 1 auto; min-width:0; justify-content:center;
    display:block; text-align:center; font-size:clamp(20px,5vw,34px); letter-spacing:2px;
  }
  .cn-vsign span{ display:inline; }
  .cn-vsign .b{ margin-left:.5em; }
  .cn-stub{ width:auto; flex:0 1 240px; clip-path:none; border-radius:3px; }

  .cn-card{ flex:1 1 210px; max-width:280px; }
  .cn-punch, .cn-poster{ transform:none; }
  .cn-plaque{ margin:0; flex:0 0 auto; }
}

@media (max-width:640px){
  .fg-menu{ grid-template-columns:minmax(0,1fr); padding:26px 7% 58px; }
  .fg-menu-art{ display:none; }
  .fg-menu-bar{ font-size:12px; padding:8px 5%; }
  .fg-side{ min-width:96px; }
  .fg-doorway{ width:60px; height:120px; }
  .fg-btn{ width:76px; }
  .cn-card{ max-width:none; }
}

@media (prefers-reduced-motion:reduce){
  body.room-fnaf::before, body.room-fnaf .cn{ animation:none; }
  body.room-fnaf::after{ animation:none; opacity:.3; }
  .fg-menu::before, .fg-menu::after{ animation:none; }
  .fg-title, .cn-vsign, .fg-menu-art{ animation:none; }
  .fg-jumpscare svg{ animation:none; }
  .fnaf-game.shake{ animation:none; }
  .fg-silhouette{ animation:none; }
}
