/* Chonk Blocker Retro browser room — the cartridge, the tube, nothing between. */
.retro-play-page {
  --retro-bg: #030611;
  --retro-panel: #080e22;
  --retro-line: rgba(97, 225, 244, .2);
  min-width: 320px;
  background-color: var(--retro-bg);
  background-image:
    linear-gradient(rgba(68, 239, 239, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68, 239, 239, .022) 1px, transparent 1px),
    radial-gradient(900px 650px at 72% 2%, rgba(47, 116, 255, .14), transparent 62%),
    radial-gradient(820px 660px at 8% 26%, rgba(212, 40, 127, .11), transparent 66%);
  background-size: 48px 48px, 48px 48px, auto, auto;
}
.retro-play-page .site-header { background: rgba(3, 6, 17, .88); }
.retro-play-page .site-header .wrap,
.retro-play-wrap,
.retro-play-footer .wrap { --maxw: 1260px; }
.retro-play-page .nav-links { gap: clamp(10px, 1.6vw, 22px); }
.retro-play-page .nav-link { font-size: .76rem; }

.retro-play-main { position: relative; isolation: isolate; overflow: hidden; }
.retro-play-room { position: relative; padding: clamp(16px, 2.2vw, 28px) 0 clamp(24px, 3vw, 40px); }
.retro-play-wrap { position: relative; z-index: 1; }
.retro-play-intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: clamp(10px, 1.5vw, 16px);
}
.retro-play-intro h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 3.8vw, 4rem);
  font-weight: 400;
  line-height: .9;
  white-space: nowrap;
  text-transform: uppercase;
  color: #ecf7f5;
  -webkit-text-stroke: clamp(1px, .12vw, 2px) #01040d;
  paint-order: stroke fill;
  text-shadow: 0 4px 0 #020510;
}
.retro-play-intro h1 span { color: var(--chonk); }
.retro-play-rain { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; opacity: .54; }
.retro-play-rain i {
  position: absolute;
  left: var(--x);
  top: -70px;
  width: 22px;
  height: 22px;
  transform: rotate(45deg);
  border: 1px solid color-mix(in srgb, var(--color) 72%, white);
  border-radius: 5px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--color) 68%, white), var(--color) 54%, color-mix(in srgb, var(--color) 55%, black));
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .32), 0 0 22px color-mix(in srgb, var(--color) 48%, transparent);
  animation: retro-play-fall var(--speed) linear infinite;
  animation-delay: var(--delay);
}
.retro-play-rain i:nth-child(even) { width: 15px; height: 15px; opacity: .58; }
@keyframes retro-play-fall { to { transform: translateY(calc(1550px + 100svh)) rotate(405deg); } }

.retro-player-stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(12px, 2vw, 24px);
  border: 1px solid rgba(68, 239, 239, .12);
  border-radius: 34px;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(68, 239, 239, .075), transparent 52%),
    linear-gradient(155deg, rgba(8, 14, 33, .88), rgba(2, 4, 12, .96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 40px 100px rgba(0, 0, 0, .46);
}
.retro-player-stage::before {
  content: "";
  position: absolute;
  inset: 12% 13% -10%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(68, 239, 239, .09);
  filter: blur(74px);
  opacity: 0;
  transition: opacity .3s ease;
}
.retro-player-stage.effect-bloom::before { opacity: 1; }
.retro-stage-gems { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.retro-stage-gems i { position: absolute; left: var(--x); top: -40px; width: 16px; height: 16px; border: 1px solid color-mix(in srgb, var(--gem) 78%, white); border-radius: 4px; background: linear-gradient(145deg, color-mix(in srgb, var(--gem) 70%, white), var(--gem) 58%, color-mix(in srgb, var(--gem) 52%, black)); box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .35), 0 0 16px color-mix(in srgb, var(--gem) 42%, transparent); opacity: .54; animation: retro-stage-fall var(--speed) linear infinite; animation-delay: var(--delay); }
.retro-stage-gems i:nth-child(even) { width: 11px; height: 11px; opacity: .4; }
@keyframes retro-stage-fall { to { transform: translateY(calc(100vh + 600px)) rotate(420deg); } }
.retro-player-console {
  position: relative;
  z-index: 1;
  width: min(100%, 1050px);
  margin-top: clamp(40px, 5vw, 58px);
  padding: clamp(18px, 3.6vw, 42px) clamp(18px, 4.2vw, 50px) clamp(18px, 2.8vw, 32px);
  border: 1px solid #777783;
  border-radius: 28px 28px 38px 38px;
  background:
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(255, 255, 255, .012) 2px 3px),
    linear-gradient(145deg, #6f7079, #4c4e59 18%, #30333e 54%, #1b1e28 84%, #11141c);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, .38),
    inset -5px -9px 18px rgba(0, 0, 0, .42),
    0 40px 88px rgba(0, 0, 0, .68),
    0 0 54px rgba(68, 239, 239, .08);
}
.retro-player-console::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(130deg, rgba(220, 222, 228, .72), transparent 24%, transparent 72%, rgba(112, 70, 172, .72));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.retro-player-console::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: -2px;
  left: 50%;
  width: clamp(145px, 21vw, 205px);
  height: 9px;
  border: 1px solid #17151c;
  border-radius: 4px 4px 7px 7px;
  background: linear-gradient(#08080c, #16131c 58%, #706d77 65%, #292a31 76%);
  box-shadow: 0 -1px 0 rgba(130, 93, 173, .68), 0 2px 0 rgba(255, 255, 255, .14), 0 5px 8px rgba(0, 0, 0, .5);
  transform: translateX(-50%);
  pointer-events: none;
}
.retro-loaded-cartridge {
  position: absolute;
  z-index: 3;
  top: -68px;
  left: 50%;
  width: clamp(150px, 19vw, 190px);
  height: 70px;
  overflow: hidden;
  color: #dedce5;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .66));
  transform: translateX(-50%);
  transition: filter .18s ease, transform .18s ease;
}
.retro-loaded-cartridge img {
  position: absolute;
  inset: 0 auto auto 50%;
  display: block;
  width: 100%;
  height: auto;
  transform: translate(-50%, -16%);
  transition: transform .22s cubic-bezier(.2, .75, .25, 1);
}
.retro-loaded-cartridge span {
  position: absolute;
  right: 4px;
  top: 5px;
  z-index: 2;
  padding: 3px 5px;
  border: 1px solid rgba(205, 194, 218, .46);
  border-radius: 999px;
  color: #f3f0f7;
  background: rgba(35, 30, 42, .88);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .5);
  font: 800 .38rem/1 var(--mono);
  letter-spacing: .08em;
}
.retro-loaded-cartridge span b { color: #b598d1; font-size: .56rem; }
.retro-loaded-cartridge:hover,
.retro-loaded-cartridge:focus-visible { filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .72)) drop-shadow(0 0 7px rgba(140, 100, 195, .32)); transform: translateX(-50%) translateY(-2px); }
.retro-loaded-cartridge:hover img,
.retro-loaded-cartridge:focus-visible img { transform: translate(-50%, -18%); }
.retro-loaded-cartridge:focus-visible { outline: 2px solid #b99bdd; outline-offset: 4px; border-radius: 9px 9px 0 0; }
.retro-loaded-cartridge:active { transform: translateX(-50%) translateY(1px); }
.retro-player-topline {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 7px clamp(13px, 2vw, 20px);
  color: #cac7d0;
  font: 700 clamp(.54rem, 1.2vw, .68rem)/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.retro-player-topline i { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, #8b8793, transparent); }
.retro-player-bezel {
  padding: clamp(10px, 1.8vw, 20px);
  border-radius: 18px;
  background: linear-gradient(145deg, #080a10, #020306);
  box-shadow: inset 0 2px 8px #000, inset 0 0 0 1px rgba(255, 255, 255, .035), 0 1px 0 rgba(255, 255, 255, .06);
}
.retro-player-glass {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 11px / 9px;
  background: #000;
  isolation: isolate;
  box-shadow: inset 0 0 70px rgba(0, 0, 0, .5), 0 0 30px rgba(68, 239, 239, .08);
  transition: border-radius .22s ease, box-shadow .22s ease;
}
.effect-curvature .retro-player-glass { border-radius: 3.2% / 4.2%; box-shadow: inset 0 0 52px rgba(0, 0, 0, .64), 0 0 34px rgba(68, 239, 239, .11); }
.retro-emulator { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.retro-emulator.ejs_parent,
.retro-emulator > .ejs_game,
.retro-emulator > .ejs_canvas_parent { width: 100% !important; height: 100% !important; max-width: none !important; }
.retro-emulator canvas,
.retro-emulator video { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: fill; }

/* EmulatorJS owns the controls; ChonkVision gives them a compact bottom dock. */
#retro-emulator.ejs_big_screen > .ejs_menu_bar {
  inset: auto auto 10px 50% !important;
  width: max-content !important;
  height: auto !important;
  max-width: calc(100% - 20px) !important;
  min-height: 42px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 5px 8px !important;
  flex-wrap: nowrap !important;
  border: 1px solid rgba(121, 239, 239, .24);
  border-radius: 10px !important;
  background: rgba(2, 6, 16, .9) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .52), inset 0 1px 0 rgba(255, 255, 255, .07);
  backdrop-filter: blur(10px);
  transform: translateX(-50%) !important;
}
#retro-emulator.ejs_big_screen > .ejs_menu_bar.ejs_menu_bar_hidden { transform: translate(-50%, calc(100% + 22px)) !important; }
#retro-emulator.ejs_big_screen > .ejs_menu_bar .ejs_menu_button { display: grid; place-items: center; width: 32px; min-width: 32px; min-height: 32px; margin: 0 1px !important; padding: 7px !important; }
#retro-emulator.ejs_big_screen > .ejs_menu_bar .ejs_menu_button svg { width: 17px; height: 17px; }
#retro-emulator.ejs_big_screen > .ejs_menu_bar .ejs_menu_bar_spacer { flex: 0 0 8px !important; min-width: 8px; }
#retro-emulator.ejs_big_screen > .ejs_menu_bar .ejs_volume_parent { flex: 0 0 auto; max-width: none; padding-right: 0; }
#retro-emulator.ejs_big_screen > .ejs_menu_bar .ejs_volume_parent input[type="range"] { display: none !important; min-height: 0; }
#retro-emulator.ejs_big_screen > .ejs_menu_bar .ejs_menu_text { font-size: 11px; }

.retro-boot {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #03040a;
  transition: opacity .5s ease, visibility .5s ease;
}
.retro-boot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; filter: blur(5px) saturate(.72) brightness(.34); transform: scale(1.06); opacity: .58; }
.retro-boot-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(7, 13, 30, .28), rgba(1, 2, 8, .94) 78%); }
.retro-boot-content { position: relative; z-index: 1; display: grid; justify-items: center; width: min(88%, 540px); padding: 32px; text-align: center; }
.retro-boot strong { display: grid; color: var(--chonk); font: 400 clamp(1.8rem, 5vw, 4rem)/.92 var(--display); text-transform: uppercase; text-shadow: 0 4px 0 #02040b; }
.retro-boot strong em { color: #8df7ff; font-style: normal; font-size: 1.18em; text-shadow: 0 3px 0 #315ad1, 0 7px 0 #02040b; }
.retro-power-on {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-width: 180px;
  min-height: 50px;
  margin-top: 18px;
  padding: 0 20px;
  border: 1px solid rgba(68, 239, 239, .66);
  border-radius: 7px;
  color: #031316;
  background: linear-gradient(180deg, #8dffff, #44efef 62%, #28c8cc);
  box-shadow: 0 12px 34px rgba(68, 239, 239, .22), inset 0 1px 0 rgba(255, 255, 255, .62);
  font: 800 .72rem/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}
.retro-power-on:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(68, 239, 239, .3), inset 0 1px 0 rgba(255, 255, 255, .7); }
.retro-power-on span { width: 10px; height: 10px; border: 2px solid #062226; border-radius: 50%; box-shadow: inset 0 0 0 2px #53eff1; }
.retro-player-console.is-loading .retro-power-on { pointer-events: none; opacity: .78; }
.retro-player-console.is-loading .retro-power-on span { border-top-color: transparent; animation: retro-spinner .72s linear infinite; }
.retro-player-console.is-running .retro-boot { opacity: 0; visibility: hidden; pointer-events: none; }
.retro-player-console.is-error .retro-boot > img { filter: grayscale(1) blur(5px) brightness(.26); }
@keyframes retro-spinner { to { transform: rotate(360deg); } }

.retro-crt-layer { position: absolute; inset: 0; z-index: 20; pointer-events: none; opacity: 0; transition: opacity .2s ease; }
.effect-scanlines .retro-crt-scanlines {
  opacity: 1;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, .2) 2px 4px);
  animation: retro-crt-flicker 7s linear infinite;
}
.effect-grille .retro-crt-grille {
  opacity: .72;
  background: repeating-linear-gradient(90deg, rgba(255, 70, 70, .035) 0 1px, rgba(70, 255, 80, .03) 1px 2px, rgba(70, 90, 255, .035) 2px 3px);
}
.effect-grille .retro-crt-wires { opacity: 1; background: linear-gradient(transparent 33.2%, rgba(0, 0, 0, .17) 33.3%, transparent 33.5%, transparent 66.4%, rgba(0, 0, 0, .17) 66.5%, transparent 66.7%); }
.effect-curvature .retro-crt-vignette { opacity: 1; background: radial-gradient(ellipse at center, transparent 56%, rgba(0, 0, 0, .18) 74%, rgba(0, 0, 0, .7) 100%); }
.effect-curvature .retro-crt-glare { opacity: 1; background: radial-gradient(ellipse at 28% 17%, rgba(255, 255, 255, .065), transparent 43%), linear-gradient(135deg, rgba(255, 255, 255, .025), transparent 40% 68%, rgba(255, 255, 255, .012)); }
.effect-bloom .retro-crt-sweep { opacity: 1; left: 0; right: 0; height: 80px; background: linear-gradient(transparent, rgba(255, 255, 255, .025), transparent); animation: retro-crt-sweep 8s linear infinite; }
@keyframes retro-crt-flicker { 0%, 7%, 43%, 84%, 100% { opacity: 1; } 6%, 42%, 83% { opacity: .96; } }
@keyframes retro-crt-sweep { 0%, 72% { transform: translateY(-100px); opacity: 0; } 76% { opacity: 1; } 100% { transform: translateY(760px); opacity: 0; } }

.retro-player-grille { height: clamp(9px, 1.4vw, 15px); margin: clamp(9px, 1.5vw, 14px) 2px 0; border-radius: 2px; background: repeating-linear-gradient(0deg, #17141c 0 1px, #34303b 1px 3px); box-shadow: inset 0 1px 3px #000, 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 1px rgba(122, 78, 166, .12); }
.retro-player-panel { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 44px; padding: 10px 8px 0; }
.retro-player-actions { display: inline-flex; align-items: center; gap: 14px; }
.retro-hardware-button,
.retro-crt-toggle,
.retro-fullscreen { appearance: none; border: 0; color: #8d9bb3; background: transparent; font: 700 .58rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.retro-hardware-button { display: inline-flex; align-items: center; gap: 9px; padding: 8px 4px; }
.retro-power-led { width: 9px; height: 9px; border-radius: 50%; background: #431631; box-shadow: inset 0 1px 1px #0d0208; transition: background .2s ease, box-shadow .2s ease; }
.retro-player-console.is-loading .retro-power-led,
.retro-player-console.is-running .retro-power-led { background: #ed338f; box-shadow: 0 0 11px #ed338f, inset 0 1px 1px rgba(255, 255, 255, .45); }
.retro-crt-toggle,
.retro-fullscreen { display: inline-flex; align-items: center; gap: 8px; padding: 8px 4px; }
.retro-crt-toggle { position: relative; padding-inline: 10px; border: 1px solid rgba(141, 155, 179, .16); border-radius: 999px; transition: color .18s ease, border-color .18s ease, background .18s ease; }
.retro-crt-toggle.is-active { color: #75e8df; border-color: rgba(68, 239, 239, .28); background: rgba(68, 239, 239, .055); }
.retro-crt-toggle svg,
.retro-fullscreen svg { width: 18px; height: 18px; }
.retro-hardware-button:hover,
.retro-crt-toggle:hover,
.retro-fullscreen:hover { color: var(--cyan); }
.retro-key-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(13px, 2.4vw, 27px);
  margin: 5px auto 0;
  padding: 9px 8px 1px;
  border-top: 1px solid rgba(97, 225, 244, .11);
  color: #8293aa;
  font: 700 .5rem/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.retro-key-legend > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.retro-key-legend dt { color: #66788f; }
.retro-key-legend dd,
.retro-key-set { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.retro-key-alt { margin-inline: 2px; color: #4f6278; font-size: .44rem; }
.retro-key-legend kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid #46536c;
  border-bottom-color: #29334a;
  border-radius: 4px;
  color: #dce9ea;
  background: linear-gradient(#1b253a, #11192b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 2px 0 #050914;
  font: 800 .55rem/1 var(--mono);
  letter-spacing: 0;
  text-transform: none;
}
.retro-key-legend .retro-key-wide { min-width: 45px; padding-inline: 8px; font-size: .48rem; text-transform: uppercase; }
.retro-play-fineprint { display: flex; justify-content: flex-end; align-items: center; gap: 24px; margin-top: 14px; color: #657d89; font: 600 .64rem/1.5 var(--mono); letter-spacing: .02em; }
.retro-play-fineprint p { margin: 0; }
.retro-play-fineprint a { color: #8fb8ba; text-decoration: underline; text-decoration-color: rgba(143, 184, 186, .32); text-underline-offset: 4px; }
.retro-play-fineprint a:hover { color: var(--cyan); }
.retro-play-footer { padding-block: 24px; background: rgba(2, 4, 12, .9); }
.retro-play-footer .footer-bottom { margin-top: 0; padding-top: 0; border-top: 0; }
.retro-play-footer .footer-bottom a { color: var(--cyan); }
.retro-play-legal { max-width: 820px; margin: 15px auto 0; color: #566c78; font: 600 .53rem/1.55 var(--mono); letter-spacing: .025em; text-align: center; }

/* Keep the complete set comfortably in view on common 1920x1080 desktops. */
@media (min-width: 901px) and (max-height: 1100px) {
  .retro-play-room { padding-top: 14px; }
  .retro-play-intro { gap: 18px; margin-bottom: 10px; }
  .retro-play-intro h1 { font-size: clamp(2.75rem, 4vw, 3.8rem); }
  .retro-player-stage { width: min(100%, 1040px); margin-inline: auto; padding: 14px; }
  .retro-player-console { width: min(100%, 820px); margin-top: 44px; padding: 20px 28px 18px; }
  .retro-loaded-cartridge { width: 160px; height: 60px; top: -58px; }
  .retro-player-topline { padding-bottom: 12px; }
  .retro-player-bezel { padding: 12px; }
  .retro-player-grille { height: 10px; margin-top: 8px; }
  .retro-player-panel { min-height: 38px; padding-top: 6px; }
  .retro-key-legend { padding-top: 7px; }
}

@media (min-width: 801px) and (max-height: 900px) {
  .retro-play-room { padding-top: 10px; }
  .retro-play-intro { margin-bottom: 8px; }
  .retro-play-intro h1 { font-size: clamp(2.35rem, 3.5vw, 3rem); }
  .retro-player-stage { width: min(100%, 920px); padding: 10px; }
  .retro-player-console { width: min(100%, 720px); margin-top: 38px; padding: 16px 22px 14px; }
  .retro-loaded-cartridge { width: 145px; height: 54px; top: -52px; }
  .retro-player-topline { padding-bottom: 9px; }
  .retro-player-bezel { padding: 9px; }
  .retro-player-grille { height: 8px; margin-top: 6px; }
  .retro-player-panel { min-height: 34px; padding-top: 4px; }
  .retro-key-legend { margin-top: 2px; padding-top: 6px; }
}

.retro-player-stage:fullscreen,
.retro-player-stage:-webkit-full-screen {
  width: 100%;
  height: 100%;
  padding: clamp(8px, 2.2vh, 22px);
  border: 0;
  border-radius: 0;
  background: radial-gradient(ellipse at 50% 40%, #101a31, #03050d 72%);
}
.retro-player-stage:fullscreen .retro-player-console,
.retro-player-stage:-webkit-full-screen .retro-player-console { width: min(96vw, calc((100vh - 156px) * 1.45)); max-height: 98vh; margin-top: 40px; padding: clamp(12px, 2.4vh, 28px) clamp(14px, 3.2vh, 34px) clamp(12px, 2vh, 22px); }
.retro-player-stage:fullscreen .retro-player-topline,
.retro-player-stage:-webkit-full-screen .retro-player-topline { padding-bottom: clamp(8px, 1.2vh, 14px); }
.retro-player-stage:fullscreen .retro-player-grille,
.retro-player-stage:-webkit-full-screen .retro-player-grille { margin-top: 8px; }
.retro-player-stage:fullscreen .retro-player-panel,
.retro-player-stage:-webkit-full-screen .retro-player-panel { min-height: 32px; padding-top: 5px; }
.retro-player-stage:fullscreen .retro-key-legend,
.retro-player-stage:-webkit-full-screen .retro-key-legend { margin-top: 2px; padding-top: 6px; }

@media (max-width: 900px) {
  .retro-play-intro { gap: 14px; }
  .retro-play-intro h1 { font-size: clamp(2.15rem, 6vw, 3.4rem); }
}
@media (max-width: 720px) {
  .retro-play-page .nav-links { background: rgba(3, 6, 17, .98); }
  .retro-play-room { padding-top: 14px; }
  .retro-player-stage { margin-inline: calc(var(--gutter) * -.45); padding: 7px; border-radius: 20px; }
  .retro-player-console { margin-top: 34px; padding: 14px 12px 13px; border-radius: 17px 17px 23px 23px; }
  .retro-player-topline { padding-inline: 3px; }
  .retro-player-bezel { padding: 7px; border-radius: 10px; }
  .retro-player-panel { gap: 8px; padding-inline: 2px; }
  .retro-key-legend { gap: 11px; padding-inline: 2px; }
  .retro-key-legend > div { gap: 5px; }
  .retro-fullscreen span { display: none; }
  .retro-play-fineprint { align-items: flex-start; flex-direction: column; gap: 9px; }
}
@media (max-width: 520px) {
  .retro-play-intro h1 { font-size: clamp(1.75rem, 8.3vw, 2.1rem); line-height: .78; white-space: normal; text-align: center; }
  .retro-play-intro h1 span { display: block; margin-top: 7px; font-size: .74em; letter-spacing: .08em; }
  .retro-loaded-cartridge { width: 132px; height: 52px; top: -50px; }
  .retro-loaded-cartridge span { right: 2px; top: 4px; }
  .retro-player-console::after { width: 142px; }
  .retro-player-topline span:first-child { display: none; }
  .retro-boot-content { padding: 14px; }
  .retro-power-on { min-width: 150px; min-height: 42px; margin-top: 10px; }
  .retro-player-grille { display: none; }
  .retro-player-panel { min-height: 38px; padding-top: 7px; }
  .retro-hardware-button b { display: none; }
  .retro-player-actions { gap: 8px; }
  .retro-crt-toggle { padding-inline: 8px; }
  .retro-key-legend { flex-wrap: wrap; row-gap: 8px; }
  .retro-key-alt,
  .retro-key-wasd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .retro-play-rain { display: none; }
  .retro-stage-gems { display: none; }
  .retro-crt-sweep,
  .retro-crt-scanlines { animation: none !important; }
}
