/* DartStation-X — the PlayStation getup over the DART Channel's set, for the grey box and its year, 1998: the porch is a
   black jewel case's world (the black spine with the name running up it, a polygon floor running off into the dark, the
   pad's four shapes turning in the air); the start button is the console from above, its round lid flipping up for a
   disc; the room is a late-'90s bedroom at night (glow-in-the-dark stars on the wall, blue carpet); the set is a
   charcoal flat-screen tube with a silver chin, the console under it with its lid and green light; and the phone pad is
   a DualShock. (Only loaded on /DartStation-X/; all scoped to .sys-psx.) */

@font-face { font-family: "Press Start 2P"; src: url(../fonts/PressStart2P.woff2) format("woff2"); font-display: block; }
@font-face { font-family: "DSX Wide"; src: url(fonts/Michroma.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "DSX Ital"; src: url(fonts/Exo2-ExtraBoldItalic.woff2) format("woff2"); font-display: swap; }
.sys-psx { --tri: #35d6a0; --cir: #ff4a5f; --crs: #7aa6ff; --sqr: #f487d0; --grey: #bfc0c5; --grey2: #a3a4aa; --grey3: #7b7c83; --ink: #05060b;
  --px: "Press Start 2P", monospace; --wide: "DSX Wide", "Arial Black", sans-serif; --ital: "DSX Ital", "Arial Black", sans-serif;
  background: #000; color: #eef0f6; }

/* ---------- the porch: the black case's world ---------- */
.sys-psx .aero-scene { background: radial-gradient(ellipse 80% 55% at 55% 42%, #151a3c 0%, #070917 55%, #000 100%); perspective: 900px; overflow: hidden; }
.sys-psx .aero-sky, .sys-psx .aero-cloud, .sys-psx .aero-hills, .sys-psx #bubbles { display: none !important; }
/* the floor: a checker running away into the dark, scrolling toward you */
.sys-psx .aero-scene::before {
  content: ""; position: absolute; left: -60%; right: -60%; bottom: -8%; height: 70%; z-index: 0;
  transform-origin: 50% 100%; transform: rotateX(72deg);
  background:
    linear-gradient(90deg, rgba(122,166,255,.28) 2px, transparent 2px) 0 0 / 80px 80px,
    linear-gradient(rgba(122,166,255,.28) 2px, transparent 2px) 0 0 / 80px 80px,
    conic-gradient(#121a4a 25%, #0a0f30 0 50%, #121a4a 0 75%, #0a0f30 0) 0 0 / 160px 160px;
  -webkit-mask-image: linear-gradient(0deg, #000 30%, transparent 92%); mask-image: linear-gradient(0deg, #000 30%, transparent 92%);
  animation: psxFloor 2.4s linear infinite;
}
@keyframes psxFloor { to { background-position: 0 160px, 0 160px, 0 160px; } }
/* the black spine down the left, the name running up it, the four colours at its foot */
.sys-psx .aero-scene::after {
  content: "DARTSTATION"; position: absolute; left: 0; top: 0; bottom: 0; width: clamp(34px, 5vw, 62px); z-index: 3; box-sizing: border-box;
  display: flex; align-items: center; justify-content: flex-end; padding-bottom: clamp(70px, 12vh, 120px);
  writing-mode: vertical-rl; transform: rotate(180deg);
  font: clamp(13px, 1.8vw, 24px)/1 var(--wide); letter-spacing: .32em; color: #e8eaf2;
  background:
    linear-gradient(180deg, var(--tri) 0 6px, var(--cir) 6px 12px, var(--crs) 12px 18px, var(--sqr) 18px 24px, transparent 24px) 50% calc(100% - 14px) / 60% 24px no-repeat,
    linear-gradient(90deg, #000 0, #0b0b0f 85%, #24252c 100%);
  box-shadow: 4px 0 0 rgba(255,255,255,.06), 10px 0 30px rgba(0,0,0,.6);
}
/* the four shapes, turning in the air (the sun's element and its three lights) */
.sys-psx .aero-sun { position: absolute; inset: 0; width: auto; height: auto; border-radius: 0; background: none; box-shadow: none; filter: none; animation: none; opacity: 1; z-index: 1; pointer-events: none; transform-style: preserve-3d; }
.sys-psx .aero-sun > i, .sys-psx .aero-sun::before {
  content: ""; display: block !important; position: absolute; width: clamp(60px, 9vw, 120px); aspect-ratio: 1; border-radius: 0; opacity: .9; filter: drop-shadow(0 0 14px currentColor); background: none;
  animation: psxSpin 9s linear infinite, psxFloat 5s ease-in-out infinite alternate; inset: auto; transform-style: preserve-3d;
}
.sys-psx .aero-sun > i.bloom { left: 12%; top: 16%; color: var(--tri); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 10 L92 84 L8 84 Z' fill='none' stroke='%2335d6a0' stroke-width='12' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; animation-delay: 0s, -1s; }
.sys-psx .aero-sun > i.spikes { right: 9%; top: 12%; color: var(--cir); border: clamp(8px, 1.2vw, 15px) solid var(--cir); border-radius: 50%; box-sizing: border-box; animation-delay: -3s, -2s; animation-duration: 11s, 6s; }
.sys-psx .aero-sun > i.core { right: 16%; bottom: 14%; color: var(--sqr); border: clamp(8px, 1.2vw, 15px) solid var(--sqr); box-sizing: border-box; animation-delay: -5s, -3s; animation-duration: 13s, 5.5s; }
.sys-psx .aero-sun::before { left: 16%; bottom: 12%; color: var(--crs); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M16 16 L84 84 M84 16 L16 84' stroke='%237aa6ff' stroke-width='13' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; animation-delay: -7s, -4s; animation-duration: 10s, 6.5s; }
.sys-psx .aero-sun::after { display: none; }
@keyframes psxSpin { from { rotate: y 0deg; } to { rotate: y 360deg; } }
@keyframes psxFloat { from { translate: 0 -10px; } to { translate: 0 14px; } }
@media (max-width: 700px) { .sys-psx .aero-sun > i, .sys-psx .aero-sun::before { width: 52px; opacity: .55; } }

/* ---------- the start button: the console from above, a disc above its lid ---------- */
.sys-psx .bap {
  display: flex; flex-direction: column; align-items: center; width: min(86vmin, 600px); aspect-ratio: auto; padding: 0; gap: 0;
  border-radius: 0; background: none; box-shadow: none; animation: none; -webkit-backdrop-filter: none; backdrop-filter: none; margin-left: clamp(20px, 4vw, 40px);
}
.sys-psx .bap::after, .sys-psx .bap .label { display: none; }
.sys-psx .bap:hover { transform: none; }
.sys-psx .bap:focus-visible { outline: none; }
.sys-psx .bap:focus-visible .pd-btn.power i { outline: 3px solid var(--crs); outline-offset: 3px; }
.sys-psx .bap img { width: auto; margin: 0; filter: none; }

.psx-deck { position: relative; z-index: 1; display: flex; flex-direction: column; width: 100%; margin-top: 22%; filter: drop-shadow(0 18px 24px rgba(0,0,0,.6)); perspective: 800px; }
/* the top: grey, a soft sheen, the ribs at the back, the round lid, the buttons */
.pd-top {
  position: relative; display: block; aspect-ratio: 1.62; border-radius: 14px 14px 6px 6px;
  background:
    radial-gradient(ellipse 70% 50% at 35% 20%, rgba(255,255,255,.28), rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #cfd0d5 0%, #bfc0c5 55%, #a9aaaf 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.7), inset 0 -3px 0 rgba(0,0,0,.18), 0 0 0 1px #6f7076;
}
.pd-ribs { position: absolute; right: 6%; top: 7%; width: 34%; height: 13%; background: repeating-linear-gradient(90deg, rgba(0,0,0,.18) 0 2px, rgba(255,255,255,.25) 2px 4px, transparent 4px 9px); border-radius: 3px; }
/* the well under the lid (seen when it opens), its spindle */
.pd-well { position: absolute; left: 6%; top: 9%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #2a2b31 0 12%, #121216 13% 60%, #050507 100%); box-shadow: inset 0 6px 14px #000; }
.pd-spindle { position: absolute; left: 50%; top: 50%; width: 14%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, #8a8b92, #3a3b42); }
/* the lid: a disc of the same grey, a ring round it, the mark in its middle; hinged at the back */
.pd-lid {
  position: absolute; left: 6%; top: 9%; width: 46%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; z-index: 2;
  transform-origin: 50% 0; transition: transform .25s cubic-bezier(.3,1.4,.6,1);
  background:
    radial-gradient(circle, rgba(0,0,0,0) 0 60%, rgba(0,0,0,.12) 61% 62%, rgba(0,0,0,0) 63%),
    radial-gradient(ellipse 70% 50% at 40% 25%, rgba(255,255,255,.4), rgba(255,255,255,0) 70%),
    linear-gradient(160deg, #d8d9de, #b4b5ba);
  box-shadow: 0 0 0 2px #8e8f95, 0 0 0 4px #c8c9ce, 0 0 0 5px #75767c, 0 6px 10px rgba(0,0,0,.25);
}
.pd-lid img { width: 34% !important; opacity: .95; filter: drop-shadow(0 1px 0 rgba(255,255,255,.6)) !important; }
/* the disc: black underside, rainbow at its edge; it bobs above the lid, waiting */
.psx-disc {
  position: absolute; left: 9%; top: 12%; width: 40%; aspect-ratio: 1; z-index: 3; border-radius: 50%; display: block;
  background:
    radial-gradient(circle, transparent 0 13%, rgba(210,220,240,.55) 13.5% 26%, transparent 27%),
    conic-gradient(from 10deg, #1c1d28, #5a3d8a, #2b9fd0, #53e0a0, #e9d64a, #ff6a4a, #1c1d28 45%, #24263a 55%, #6b46a0, #2ab0d8, #62e6a8, #f0dc54, #ff7050, #1c1d28);
  box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 20px 30px rgba(0,0,0,.5);
  transform: translateY(-78%) rotateX(18deg); transition: transform .3s cubic-bezier(.4,1.5,.5,1);
  animation: psxBob 2.6s ease-in-out infinite;
}
.psx-disc::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #000; }
.pdisc-label { position: absolute; inset: 6%; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle, transparent 0 26%, #0b0b10 27%), conic-gradient(from 0deg, #0b0b10, #151622, #0b0b10);
  -webkit-mask: radial-gradient(circle, transparent 0 27%, #000 28%); mask: radial-gradient(circle, transparent 0 27%, #000 28%); animation: psxSpinZ 6s linear infinite; }
.pdisc-label img { position: absolute; left: 33%; top: 9%; width: 34% !important; }
@keyframes psxBob { 50% { translate: 0 -8px; } }
@keyframes psxSpinZ { to { rotate: 360deg; } }
.bap:hover .psx-disc { transform: translateY(-52%) rotateX(12deg); }
.bap.popped .psx-disc { animation: none; transform: translateY(0) rotateX(0); transition-duration: .18s; transition-delay: .08s; }
.bap.popped .psx-disc .pdisc-label { animation-duration: .25s; }
.bap.popped .pd-lid { transform: rotateX(78deg); }
/* the name, pressed into the plastic, and the buttons: OPEN big and round, RESET, POWER, the light */
.pd-name { position: absolute; left: 6%; bottom: 7%; display: flex; align-items: baseline; gap: 2px; }
.pd-name b { font: 400 clamp(9px, 2.2vmin, 15px)/1 var(--wide); letter-spacing: .14em; color: #8a8b91; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.pd-name i { font: normal 400 clamp(12px, 3vmin, 21px)/1 var(--ital); color: #e6162d; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.pd-btns { position: absolute; right: 7%; top: 34%; width: 36%; height: 46%; display: grid; grid-template-columns: 1.3fr 1fr 1fr; align-items: end; gap: 8%; }
.pd-btn { display: grid; justify-items: center; gap: 5px; font: 400 clamp(5px, 1.1vmin, 8px)/1 var(--wide); color: #6f7076; letter-spacing: .08em; }
.pd-btn i { display: block; width: clamp(18px, 4.6vmin, 34px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #e6e7eb, #a9aaaf 70%); box-shadow: 0 0 0 2px #8e8f95, 0 3px 0 #6f7076, inset 0 2px 0 #fff; transition: transform .06s, box-shadow .06s; }
.pd-btn.open i { width: clamp(28px, 7vmin, 52px); }
.bap:active .pd-btn.power i, .bap.popped .pd-btn.power i { transform: translateY(2px); box-shadow: 0 0 0 2px #8e8f95, 0 1px 0 #6f7076, inset 0 2px 3px rgba(0,0,0,.25); }
.pd-led { position: absolute; right: -2%; bottom: 38%; width: clamp(5px, 1.1vmin, 8px); aspect-ratio: 1; border-radius: 50%; background: #0d3a1a; box-shadow: inset 0 0 0 1px #000; transition: background .1s, box-shadow .1s; }
.bap:hover .pd-led { background: #1d6a32; }
.bap.popped .pd-led { background: #3dff6e; box-shadow: 0 0 10px #3dff6e, 0 0 2px #d0ffe0; }
/* the front edge: two controller ports and two memory card slots */
.pd-front {
  display: flex; align-items: center; justify-content: center; gap: 4%; height: clamp(18px, 5vmin, 34px); margin: 0 2%; border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #9a9ba1, #7d7e84); box-shadow: inset 0 2px 0 rgba(0,0,0,.25), 0 0 0 1px #5d5e64;
}
.pd-port { position: relative; width: 12%; height: 52%; border-radius: 4px 4px 10px 10px; background: #2a2b31; box-shadow: inset 0 0 0 2px #45464d; display: grid; place-items: center; }
.pd-port b { font: 400 clamp(5px, 1vmin, 8px)/1 var(--wide); color: #8e8f95; }
.pd-card { width: 9%; height: 24%; border-radius: 2px; background: #2a2b31; box-shadow: inset 0 0 0 1px #45464d; }
.psx-press {
  align-self: center; margin-top: clamp(14px, 3vmin, 24px); font: clamp(9px, 2vmin, 14px)/1 var(--wide); letter-spacing: .3em; color: #fff;
  text-shadow: 0 0 10px rgba(122,166,255,.8); animation: psxBlink 1.2s steps(2, start) infinite;
}
@keyframes psxBlink { to { visibility: hidden; } }
.sys-psx .bap.popped { animation: psxOn .55s ease-in forwards .35s; }
@keyframes psxOn { to { opacity: 0; filter: brightness(3) blur(2px); } }
.sys-psx .bap-hint { margin-top: 20px; font: 10px/1.6 var(--wide); letter-spacing: .1em; color: #8e97b4; text-shadow: none; }

/* ---------- the gate (no snoot yet): a system-menu window, frosted dark glass, a bevelled grey edge ---------- */
.sys-psx .window {
  position: relative; z-index: 2; border-radius: 14px; border: 0; padding: 5px;
  background: linear-gradient(180deg, rgba(40,48,92,.95), rgba(10,12,30,.96) 18%, rgba(4,5,14,.97));
  box-shadow: 0 0 0 2px #000, 0 0 0 3px #7b86a6, 0 0 0 5px #1a1f36, 0 20px 50px rgba(0,0,0,.7), 0 0 60px rgba(70,90,220,.25);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.sys-psx .window::before, .sys-psx .window::after { display: none; }
.sys-psx .titlebar { background: linear-gradient(180deg, #2c3354, #161a30); color: #fff; border-radius: 10px 10px 0 0; border-bottom: 2px solid #000; box-shadow: 0 2px 0 rgba(255,255,255,.06); }
.sys-psx .titlebar::after { display: none; }
.sys-psx .titlebar .name { color: #dfe3f0; font: 10px var(--wide); letter-spacing: .08em; text-shadow: none; }
.sys-psx .titlebar .btn { border-radius: 50%; background: #3a4060; border-color: #000; }
.sys-psx .titlebar .btn.close { background: var(--cir); }
.sys-psx .body { color: #e8eaf2; background: transparent; border-radius: 0 0 10px 10px; box-shadow: none; }
.sys-psx h1 { color: #fff; background: none; -webkit-background-clip: border-box; background-clip: border-box; filter: none; font: 22px/1.3 var(--ital); letter-spacing: .02em; text-shadow: 0 0 18px rgba(122,166,255,.5); }
.sys-psx .sub { color: #a9b1cc; font: 12px/1.7 var(--wide); }
.sys-psx .sub b { color: #ffd75a; font-weight: 400; }
.sys-psx .gel::before, .sys-psx .gel::after { display: none; }
.sys-psx .gel { border-radius: 8px; border: 0; color: #fff; font: 12px var(--wide); letter-spacing: .12em; text-shadow: 0 1px 0 #000;
  background: linear-gradient(90deg, var(--crs), rgba(122,166,255,.25)); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 0 1px #000, 0 0 18px rgba(122,166,255,.35); }
.sys-psx .sig input { border-radius: 8px; border: 1px solid #5a6488; background: #05060f; color: #fff; font: 14px var(--wide); box-shadow: inset 0 2px 6px #000; }
.sys-psx .gate-msg { font: 11px/1.6 var(--wide); color: var(--tri); }
.sys-psx .gate-msg.bad { color: var(--cir); }
.sys-psx .foot { font: 9px var(--wide); letter-spacing: .1em; color: #6c7594; }
.psx-mark { display: grid; justify-items: center; gap: 8px; margin: 4px auto 14px; }
.psx-mark img { width: 120px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.6)); }
.psx-word { font: 26px/1 var(--wide); letter-spacing: .08em; color: #f2f4fa; text-shadow: 0 2px 0 #000; }
.psx-word b { font: 400 38px/1 var(--ital); color: #e6162d; margin-left: 2px; vertical-align: -4px; }
.psx-line { font: 9px var(--wide); letter-spacing: .14em; color: #6c7594; }
@media (max-width: 480px) { .psx-word { font-size: 18px; } .psx-word b { font-size: 28px; } }

/* ---------- the room: a late-'90s bedroom at night. Glow-in-the-dark stars on the wall, blue carpet ---------- */
.sys-psx .room { --glow: 110, 140, 255; background: #04050c; }
.sys-psx .room::before {
  background:
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.1) 35%, rgba(0,0,0,.4)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='180'%3E%3Cg fill='%23c8ffd0' fill-opacity='.16'%3E%3Cpath d='M30 20 l3 7 7 1 -5 5 1 7 -6 -3 -6 3 1 -7 -5 -5 7 -1z'/%3E%3Cpath d='M160 50 l2 5 5 .7 -3.6 3.4 .8 5 -4.2 -2.4 -4.4 2.4 .8 -5 -3.6 -3.4 5 -.7z'/%3E%3Cpath d='M96 120 l3 7 7 1 -5 5 1 7 -6 -3 -6 3 1 -7 -5 -5 7 -1z'/%3E%3Ccircle cx='200' cy='150' r='4'/%3E%3Ccircle cx='60' cy='90' r='2.5'/%3E%3Ccircle cx='130' cy='20' r='3'/%3E%3C/g%3E%3Cpath d='M180 100 a14 14 0 1 0 10 24 a11 11 0 1 1 -10 -24z' fill='%23c8ffd0' fill-opacity='.12'/%3E%3C/svg%3E") 0 0 / 220px 180px,
    radial-gradient(ellipse 120% 90% at 50% 30%, #161b3e 0%, #0b0e24 55%, #03040b 100%);
}
.sys-psx .room::after {
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,.07) 0 1px, transparent 1.5px) 0 0 / 5px 5px,
    radial-gradient(circle at 70% 70%, rgba(0,0,0,.45) 0 1px, transparent 1.6px) 0 0 / 4px 4px,
    linear-gradient(180deg, #2a3264 0, #1d2350 12%, #10142f 60%, #05060f);
  box-shadow: 0 -1px 0 rgba(150,170,255,.18), inset 0 10px 18px rgba(0,0,0,.6);
}

/* ---------- the set: a charcoal flat-screen tube, a silver chin with the keys ---------- */
.sys-psx .tv-cabinet {
  border-radius: calc(var(--u) * 2.6);
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0) 6%, rgba(0,0,0,0) 84%, rgba(0,0,0,.55)),
    linear-gradient(90deg, #121318, #23252d 22%, #1b1c22 50%, #24262e 78%, #121318);
  box-shadow:
    inset 0 calc(var(--u) * .3) 0 rgba(255,255,255,.16), inset 0 calc(var(--u) * -.5) 0 rgba(0,0,0,.5), 0 0 0 calc(var(--u) * .3) #000,
    0 calc(var(--u) * 3) calc(var(--u) * 5) rgba(0,0,0,.85), 0 0 calc(var(--u) * 12) rgba(var(--glow), calc(var(--glowA) * .3));
}
.sys-psx .tv-cabinet::before { opacity: .25; }
.sys-psx .tv-bezel {
  border-radius: calc(var(--u) * 1.6);
  background: linear-gradient(180deg, #0b0c10, #17181e 50%, #0b0c10);
  box-shadow: inset 0 0 0 calc(var(--u) * .25) #2c2e36, inset 0 0 0 calc(var(--u) * .9) rgba(255,255,255,.04), 0 0 0 calc(var(--u) * .3) #000;
}
/* (a flat-screen tube: barely curved) */
.sys-psx .tv-tube { border-radius: calc(var(--u) * 1.6) / calc(var(--u) * 2); box-shadow: 0 0 0 calc(var(--u) * .4) #050506, 0 0 0 calc(var(--u) * .7) #22232a; }
.sys-psx .tv-panel {
  left: calc(var(--u) * 4); right: calc(var(--u) * 4); top: calc(var(--u) * 71.4); height: calc(var(--u) * 8.4); padding: 0 calc(var(--u) * 2);
  border-radius: calc(var(--u) * .9);
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, rgba(0,0,0,0) 1px 3px), linear-gradient(180deg, #d9dbe2, #a8aab3 45%, #8c8e97 55%, #b9bbc4);
  box-shadow: 0 0 0 calc(var(--u) * .2) #000, inset 0 calc(var(--u) * .15) 0 rgba(255,255,255,.7), inset 0 calc(var(--u) * -.3) 0 rgba(0,0,0,.35);
}
.sys-psx .tv-brand span { font: calc(var(--u) * 1.4) var(--wide); color: #2a2c34; letter-spacing: calc(var(--u) * .12); text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.sys-psx .tv-brand b { color: #e6162d; font-weight: 400; }
.sys-psx .tv-grille {
  border-radius: calc(var(--u) * .4); height: calc(var(--u) * 5.2);
  background: radial-gradient(circle, #1a1b20 0 40%, transparent 45%) 0 0 / calc(var(--u) * .8) calc(var(--u) * .8), #7c7e86;
  box-shadow: inset 0 calc(var(--u) * .2) calc(var(--u) * .4) rgba(0,0,0,.5), 0 0 0 calc(var(--u) * .12) #5a5c64;
}
.sys-psx .tv-btn i {
  width: calc(var(--u) * 2.4); height: calc(var(--u) * 2.4); border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #f6f7fa, #b9bbc4 60%, #8c8e97);
  box-shadow: 0 calc(var(--u) * .25) 0 #5a5c64, 0 0 0 calc(var(--u) * .12) #50525a, inset 0 calc(var(--u) * .1) 0 #fff;
}
.sys-psx .tv-btn.power i { background: radial-gradient(circle at 40% 30%, #ffffff, #c4c6ce 60%, #8c8e97); box-shadow: 0 calc(var(--u) * .25) 0 #5a5c64, 0 0 0 calc(var(--u) * .15) #2a2c34; }
.sys-psx .tv-btn.net i { background: radial-gradient(circle at 40% 30%, #d6e4ff, var(--crs) 60%, #3c5fb8); }
.sys-psx .tv-btn.mic i { background: radial-gradient(circle at 40% 30%, #ffe0f4, var(--sqr) 60%, #a24d86); }
.sys-psx .tv-btn span { font: calc(var(--u) * .5) var(--wide); color: #3a3c44; letter-spacing: calc(var(--u) * .05); }
.sys-psx .tv-led { border-radius: 50%; background: #3dff6e; box-shadow: 0 0 calc(var(--u) * .9) #3dff6e; }
.sys-psx .room.off .tv-led { background: #ff3030; box-shadow: 0 0 calc(var(--u) * .5) #ff3030; }

/* the console under the set: the grey box, its round lid, OPEN / RESET / POWER and the green light */
.sys-psx .tv-feet {
  left: 26%; right: 26%; bottom: calc(var(--u) * -9.4); height: calc(var(--u) * 9.4); border-radius: calc(var(--u) * 1) calc(var(--u) * 1) calc(var(--u) * .5) calc(var(--u) * .5);
  background:
    linear-gradient(180deg, transparent 0 74%, #7d7e84 74%, #6a6b71),
    radial-gradient(ellipse 70% 50% at 30% 15%, rgba(255,255,255,.3), rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #c9cacf, #a9aaaf);
  box-shadow: 0 0 0 calc(var(--u) * .12) #5d5e64, 0 calc(var(--u) * .6) calc(var(--u) * .9) rgba(0,0,0,.7);
}
.sys-psx .tv-feet::before {
  /* the lid: a round grey disc with its ring */
  content: ""; position: absolute; left: 6%; top: 8%; height: 62%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,0,0,0) 0 58%, rgba(0,0,0,.15) 60% 62%, rgba(0,0,0,0) 64%), linear-gradient(160deg, #d8d9de, #b4b5ba);
  box-shadow: 0 0 0 calc(var(--u) * .12) #8e8f95, 0 0 0 calc(var(--u) * .25) #cfd0d5, 0 0 0 calc(var(--u) * .33) #75767c;
}
.sys-psx .tv-feet::after {
  content: "DARTSTATION"; position: absolute; left: 6%; bottom: 3%; font: calc(var(--u) * .7) var(--wide); letter-spacing: calc(var(--u) * .1); color: #3a3b42;
}
.sys-psx .tv-feet i { top: 16%; bottom: auto; height: 40%; border-radius: calc(var(--u) * .2); background: none; box-shadow: none; }
.sys-psx .tv-feet i:first-child {
  /* OPEN, RESET, POWER */
  left: 52%; right: auto; width: 34%;
  background:
    radial-gradient(circle at 40% 35%, #eceef2, #a9aaaf 65%, #8e8f95 70%, transparent 72%) 0 50% / calc(var(--u) * 2.6) calc(var(--u) * 2.6) no-repeat,
    radial-gradient(circle at 40% 35%, #eceef2, #a9aaaf 65%, #8e8f95 70%, transparent 72%) 62% 50% / calc(var(--u) * 1.8) calc(var(--u) * 1.8) no-repeat,
    radial-gradient(circle at 40% 35%, #eceef2, #a9aaaf 65%, #8e8f95 70%, transparent 72%) 100% 50% / calc(var(--u) * 1.8) calc(var(--u) * 1.8) no-repeat;
}
.sys-psx .tv-feet i:last-child {
  /* the power light */
  left: auto; right: 7%; top: 64%; height: calc(var(--u) * .7); width: calc(var(--u) * .7); border-radius: 50%;
  background: #3dff6e; box-shadow: 0 0 calc(var(--u) * .8) #3dff6e;
}
.sys-psx .room.off .tv-feet i:last-child { background: #0d3a1a; box-shadow: none; }
body.sys-psx.mobile .tv-feet { display: none; }

.sys-psx .fs-chip { border-radius: 8px; background: linear-gradient(90deg, var(--crs), #3c5fb8); border: 1px solid #000; font-family: var(--wide); letter-spacing: .08em; }
.sys-psx .install-chip { border-radius: 10px; background: linear-gradient(180deg, #2c3354, #10142c); border: 1px solid #7b86a6; font-family: var(--wide); box-shadow: 0 0 18px rgba(122,166,255,.35); }
.sys-psx .fps-note { border-radius: 10px; border-color: var(--crs); font-family: var(--wide); }
.sys-psx .intro-skip { font-family: var(--wide); letter-spacing: .1em; }

/* ---------- phones: the DualShock ---------- */
body.sys-psx.mobile .mpad { background: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(var(--glow), calc(var(--glowA) * .4)), rgba(0,0,0,0) 70%), linear-gradient(180deg, #11142c 0, #090b1a 30%, #030409); }
.sys-psx .mp-key { border-radius: 8px; background: linear-gradient(180deg, #c9cacf, #9c9da3); color: #2a2c34; border-color: #5d5e64; text-shadow: 0 1px 0 rgba(255,255,255,.6); box-shadow: inset 0 1px 0 #fff, 0 3px 0 #4a4b51; font-family: var(--wide); }
.sys-psx .mp-key:active { background: linear-gradient(180deg, #9db9ff, var(--crs)); }
.mp-body.psx {
  /* the grey shell: two grips hanging down, a soft sheen across the top */
  border-radius: calc(var(--k) * 9) calc(var(--k) * 9) calc(var(--k) * 16) calc(var(--k) * 16) / calc(var(--k) * 7) calc(var(--k) * 7) calc(var(--k) * 22) calc(var(--k) * 22);
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255,255,255,.35), rgba(255,255,255,0) 70%),
    radial-gradient(ellipse 30% 30% at 50% 100%, rgba(0,0,0,.35), rgba(0,0,0,0) 70%),
    linear-gradient(180deg, #cdced3 0%, #b4b5ba 45%, #9c9da3 100%);
  box-shadow: inset 0 calc(var(--k) * .35) 0 rgba(255,255,255,.7), inset 0 calc(var(--k) * -.6) calc(var(--k) * 1.2) rgba(0,0,0,.3), 0 0 0 1px #6a6b71, 0 calc(var(--k) * 1.2) calc(var(--k) * 2.5) rgba(0,0,0,.7);
}
.mp-body.psx .mp-sheen { display: none; }
.mp-body.psx .mp-plate { top: calc(var(--ky) * 9); background: none; box-shadow: none; padding: 0; }
.mp-body.psx .mp-brand { font-family: var(--wide); color: #6a6b72; font-size: calc(var(--k) * 1.6); letter-spacing: calc(var(--k) * .3); text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.mp-body.psx .mp-brand b { color: #6a6b72; margin-left: 0; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.mp-body.psx .mp-sub { font-family: var(--wide); color: #7d7e85; font-size: calc(var(--k) * .9); letter-spacing: calc(var(--k) * .35); }
.mp-body.psx .mp-led { left: 50%; top: calc(var(--k) * 7.4); margin-left: calc(var(--k) * -.45); background: #4a1010; }
.mp-body.psx.live .mp-led { background: #ff3030; box-shadow: 0 0 calc(var(--k) * 1.2) #ff3030; }
/* the D-pad: four separate black arrows in a round dish (the cross shape is the dish's own) */
.mp-body.psx .mp-dcross { background: radial-gradient(circle, #8e8f95 0 60%, #a3a4aa 66%, rgba(0,0,0,0) 70%); box-shadow: inset 0 calc(var(--k) * .5) calc(var(--k) * 1) rgba(0,0,0,.35); perspective: calc(var(--k) * 40); }
.mp-body.psx .mp-dcross .mp-cross { inset: 10%; filter: drop-shadow(0 calc(var(--k) * .4) calc(var(--k) * .3) rgba(0,0,0,.5)); }
.mp-body.psx .mp-dcross .mp-cross::before, .mp-body.psx .mp-dcross .mp-cross::after { border-radius: calc(var(--k) * .7); background: linear-gradient(180deg, #4a4b52, #2a2b31); box-shadow: inset 0 calc(var(--k) * .25) 0 rgba(255,255,255,.18); }
.mp-body.psx .mp-dcross::after { width: 26%; height: 26%; background: radial-gradient(circle, #9c9da3, #8e8f95); box-shadow: none; }
.mp-body.psx .mp-dcross .mp-arrow { opacity: .8; z-index: 2; }
.mp-body.psx .mp-dcross .mp-arrow.up { border-bottom-color: #9c9da3; } .mp-body.psx .mp-dcross .mp-arrow.down { border-top-color: #9c9da3; }
.mp-body.psx .mp-dcross .mp-arrow.left { border-right-color: #9c9da3; } .mp-body.psx .mp-dcross .mp-arrow.right { border-left-color: #9c9da3; }
.mp-body.psx .mp-dcross.up .mp-arrow.up, .mp-body.psx .mp-dcross.down .mp-arrow.down, .mp-body.psx .mp-dcross.left .mp-arrow.left, .mp-body.psx .mp-dcross.right .mp-arrow.right { opacity: 1; filter: drop-shadow(0 0 calc(var(--k) * .6) var(--crs)) brightness(1.6); }
/* the left stick: a black rubber knob in its ring (it follows the thumb: mobile.js moves the knob) */
.mp-body.psx .mp-dpad.mp-stick { background: none; box-shadow: none; perspective: none; }
.mp-body.psx .mp-dpad.mp-stick::after, .mp-body.psx .mp-dpad.mp-stick .mp-arrow { display: none; }
.mp-body.psx .mp-gate { position: absolute; inset: 5%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #1a1b20 0 58%, #3a3b42 63%, #8e8f95 69%, rgba(0,0,0,0) 71%); box-shadow: inset 0 calc(var(--k) * .6) calc(var(--k) * 1) rgba(0,0,0,.5); }
.mp-body.psx .mp-knob { position: absolute; left: 24%; top: 24%; width: 52%; height: 52%; border-radius: 50%; pointer-events: none; transition: transform .03s;
  background: radial-gradient(circle at 45% 35%, #4a4b53, #22232a 60%, #121318), repeating-radial-gradient(circle, rgba(255,255,255,.06) 0 1px, transparent 1px 3px);
  box-shadow: 0 0 0 calc(var(--k) * .5) #2a2b31, 0 calc(var(--k) * 1) calc(var(--k) * 1.4) rgba(0,0,0,.6); }
/* the face buttons: dark grey caps, each shape in its own colour */
.mp-body.psx .mp-well { background: radial-gradient(circle, #6e6f75 0 60%, #8e8f95 100%); box-shadow: inset 0 calc(var(--k) * .4) calc(var(--k) * .6) rgba(0,0,0,.45); }
.mp-body.psx .mp-btn { font-family: "Segoe UI Symbol", "DejaVu Sans", Arial, sans-serif; font-size: calc(var(--k) * 3.6); font-weight: 700;
  background: radial-gradient(ellipse 55% 38% at 42% 24%, rgba(255,255,255,.22), rgba(255,255,255,0) 70%), radial-gradient(circle at 50% 55%, #4a4b53 0%, #2c2d34 60%, #1a1b20 100%);
  box-shadow: inset 0 calc(var(--k) * -.4) calc(var(--k) * .7) rgba(0,0,0,.6), inset 0 calc(var(--k) * .2) 0 rgba(255,255,255,.18), 0 calc(var(--k) * .5) calc(var(--k) * .5) rgba(0,0,0,.6); }
.mp-body.psx .mp-btn.b-TRIANGLE { color: var(--tri); } .mp-body.psx .mp-btn.b-CIRCLE { color: var(--cir); }
.mp-body.psx .mp-btn.b-CROSS { color: var(--crs); } .mp-body.psx .mp-btn.b-SQUARE { color: var(--sqr); }
.mp-body.psx .mp-btn.small { font: calc(var(--k) * 1.2) var(--wide); color: #c6c8d0; }
.mp-body.psx .mp-btn.on { transform: translateY(calc(var(--k) * .35)) scale(.94); filter: brightness(1.3); box-shadow: 0 0 0 calc(var(--k) * .3) currentColor, 0 0 calc(var(--k) * 2.6) currentColor; }
/* SELECT and START: little black pills */
.mp-body.psx .mp-btn.pill, .mp-body.psx .mp-well.pill { transform: none; border-radius: 999px; }
.mp-body.psx .mp-btn.pill { background: linear-gradient(180deg, #4a4b52, #24252b); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 calc(var(--k) * .3) 0 #55565c; }
.mp-body.psx .mp-btn.pill.on { transform: translateY(calc(var(--k) * .25)); background: var(--crs); box-shadow: 0 0 calc(var(--k) * 1.6) var(--crs); }
.mp-body.psx .mp-label { color: #55565d; text-shadow: 0 1px 0 rgba(255,255,255,.6); font-family: var(--wide); letter-spacing: calc(var(--k) * .15); }
/* the shoulders: grey tabs along the top edge, L2/R2 a shade darker */
.mp-body.psx .mp-btn.shoulder { border-radius: calc(var(--k) * 2.2) calc(var(--k) * 2.2) calc(var(--k) * .8) calc(var(--k) * .8); z-index: -1; overflow: visible;
  background: linear-gradient(180deg, #d8d9de, #a9aaaf); box-shadow: inset 0 1px 0 #fff, 0 calc(var(--k) * .4) calc(var(--k) * .6) rgba(0,0,0,.45); }
.mp-body.psx .mp-btn.shoulder.b-LTWO, .mp-body.psx .mp-btn.shoulder.b-RTWO { background: linear-gradient(180deg, #b4b5ba, #8e8f95); }
.mp-body.psx .mp-shoulder-cap { position: absolute; inset: 0; display: grid; place-items: center; font: calc(var(--k) * 1.4) var(--wide); color: #4a4b52; text-shadow: 0 1px 0 rgba(255,255,255,.6); pointer-events: none; }
.mp-body.psx .mp-btn.shoulder.b-LONE .mp-shoulder-cap, .mp-body.psx .mp-btn.shoulder.b-RONE .mp-shoulder-cap { font-size: 0; }
.mp-body.psx .mp-btn.shoulder.b-LONE .mp-shoulder-cap::after { content: "L1"; font-size: calc(var(--k) * 1.4); }
.mp-body.psx .mp-btn.shoulder.b-RONE .mp-shoulder-cap::after { content: "R1"; font-size: calc(var(--k) * 1.4); }
.mp-body.psx .mp-btn.shoulder.b-LTWO .mp-shoulder-cap { font-size: 0; } .mp-body.psx .mp-btn.shoulder.b-LTWO .mp-shoulder-cap::after { content: "L2"; font-size: calc(var(--k) * 1.4); }
.mp-body.psx .mp-btn.shoulder.b-RTWO .mp-shoulder-cap { font-size: 0; } .mp-body.psx .mp-btn.shoulder.b-RTWO .mp-shoulder-cap::after { content: "R2"; font-size: calc(var(--k) * 1.4); }
.mp-body.psx .mp-btn.shoulder.on { transform: translateY(calc(var(--k) * .35)); filter: brightness(1.1); box-shadow: 0 0 calc(var(--k) * 2) var(--crs); }
.sys-psx .mp-hint { color: var(--crs); text-shadow: 0 0 calc(var(--k) * .8) rgba(122,166,255,.6), 0 1px 0 #000; z-index: 3; font-family: var(--wide); }
.sys-psx .rotate-note { background: #000; }
