/* fan/playstation.css: /worlds/playstation/ only. Added 2026-11-21.

   Blue, and the four shapes. A company page has no one world to draw, so the
   backdrop is the two things every PlayStation has shared since 1994: a deep
   blue, and Teiyu Goto's triangle, circle, cross and square, drifting up
   through it so faintly they read as texture. They move on transform only,
   one tile at a time, so the loop is seamless and the page stays cheap.

   The one he had was a PS5, briefly (see fan-playstation.js); the hero
   drawing is the 1994 pad anyway, as an object, because it is the one every
   PlayStation since has been a revision of. */

body[data-fan="playstation"] { --a: #3d86f0; }

/* ── the backdrop ── */
.ps-sky {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background: radial-gradient(96% 78% at 50% 0%, #0c1c44 0%, #07112c 44%, #03060f 100%);
}

.ps-sky > * { position: absolute; inset: 0; }

.ps-glow { background: radial-gradient(48% 30% at 50% 6%, rgba(61,134,240,.24), transparent 72%); }

/* one 200px tile with each shape once, in Goto's four colors, drifting up by
   exactly one tile so the loop never shows a seam. The layer is a tile
   taller than the screen for the same reason. */
.ps-shapes {
  bottom: -200px; opacity: .1;
  background-size: 200px 200px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' fill='none' stroke-width='2.4' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M44 24l14 24H30z' stroke='%233fd589'/%3E%3Ccircle cx='150' cy='62' r='13' stroke='%23e0403a'/%3E%3Cpath d='M56 130l22 22M78 130l-22 22' stroke='%235fa3ec'/%3E%3Crect x='136' y='146' width='24' height='24' stroke='%23e07ab8'/%3E%3C/svg%3E");
  mask-image: linear-gradient(transparent, #000 18%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 70%, transparent);
  will-change: transform; animation: ps-rise 26s linear infinite;
}

@keyframes ps-rise { to { transform: translateY(-200px); } }

.ps-horizon { top: auto; height: 36%; background: linear-gradient(180deg, transparent, rgba(3,6,15,.92)); }

@media (prefers-reduced-motion: reduce) { .ps-shapes { animation: none; } }

/* ── hero ── */
/* Sony sets the name in a light, wide geometric sans; Avenir Next at a light
   weight is the nearest thing on a Mac, with Helvetica behind it */
body[data-fan="playstation"] .fan-title {
  font-family: "Avenir Next", "Helvetica Neue", Arial, var(--sans);
  font-weight: 400; letter-spacing: 0.04em;
  text-shadow: 0 0 32px rgba(61,134,240,.45);
}

/* ── the pad ── */
.ps-art { padding: 0 var(--gutter); max-width: var(--maxw); margin: 2.6rem 0 0; }

.ps-art svg { display: block; width: min(460px, 100%); margin-inline: auto; }

.psa-body { fill: #cfccc6; }

.psa-sh   { fill: #a9a6a0; }

.psa-well { fill: #bdbab4; }

.psa-dpad path { fill: #3a3a40; }

.psa-sm   { fill: #6f6c68; }

.psa-caps circle { fill: #2a2a30; stroke: #e8e6e0; stroke-width: 2; }

/* the four symbols, each in the color Goto gave it */
.psa-tri, .psa-cir, .psa-crs, .psa-sq {
  fill: none; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round;
}

.psa-tri { stroke: #3fd589; }

.psa-cir { stroke: #ff5a4f; }

.psa-crs { stroke: #6fb0ff; }

.psa-sq  { stroke: #f08ac8; }

.ps-art figcaption {
  margin-top: 0.9rem; text-align: center;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--mute);
}
