/* fan/xbox.css: /worlds/xbox/ only. Written 2026-11-21 with the page.

   Green, and the ring of light. Like Nintendo the company has no one world
   to draw, so the backdrop is the thing every Xbox 360 owner looked at
   first: four quarters of light around the power button, the top-left one
   lit for player one, and three of them flashing red when the console had
   died. Here it is huge, dim, and turning about once every
   eighty seconds, on transform only, so the page stays cheap.

   The personal facts on this page (a 360, a One and a One S, and the avatar
   from fan-shots.js) live in fan-xbox.js; nothing in here depends on them. */

body[data-fan="xbox"] { --a: #52b043; }

/* ── the backdrop ── */
.xb-sky {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background: radial-gradient(92% 72% at 50% 0%, #102a11 0%, #09160a 48%, #050806 100%);
}

.xb-sky > span { position: absolute; }

.xb-glow { inset: 0; background: radial-gradient(46% 30% at 50% 6%, rgba(82,176,67,.22), transparent 72%); }

/* the ring: a conic gradient of four quarters with small gaps, cut down to a
   thin band by a radial mask. The first quarter starts at nine o'clock, so
   the lit one is the top-left, the player-one light. */
.xb-ring {
  left: 50%; top: -40vmin; width: 120vmin; height: 120vmin; margin-left: -60vmin;
  border-radius: 50%;
  background: conic-gradient(from -90deg,
    rgba(130,226,96,.34) 0 22%, transparent 22% 25%,
    rgba(82,176,67,.11) 25% 47%, transparent 47% 50%,
    rgba(82,176,67,.11) 50% 72%, transparent 72% 75%,
    rgba(82,176,67,.11) 75% 97%, transparent 97%);
  mask-image: radial-gradient(closest-side, transparent 86%, #000 88.5%, #000 92%, transparent 94.5%);
  -webkit-mask-image: radial-gradient(closest-side, transparent 86%, #000 88.5%, #000 92%, transparent 94.5%);
  will-change: transform; animation: xb-turn 80s linear infinite;
}

@keyframes xb-turn { to { transform: rotate(360deg); } }

.xb-horizon { inset: auto 0 0 0; height: 36%; background: linear-gradient(180deg, transparent, rgba(5,8,6,.9)); }

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

/* ── hero ── */
/* wide, heavy capitals, the way the name has been set since 2001; Futura is
   the nearest wide geometric face that ships on a Mac */
body[data-fan="xbox"] .fan-title {
  font-family: Futura, "Century Gothic", "Avenir Next", var(--sans);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em;
  text-shadow: 0 0 30px rgba(82,176,67,.45);
}

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

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

.xb-body  { fill: #e6e8e3; }

.xb-bump  { fill: #c3c7c0; }

.xb-well  { fill: #c4c8c1; }

.xb-stick { fill: #3a3d3a; }

.xb-grip  { fill: none; stroke: #5e625e; stroke-width: 2; }

.xb-dpad  { fill: #8f948c; }

.xb-y { fill: #e8c247; }

.xb-x { fill: #3a7fe0; }

.xb-b { fill: #e0403a; }

.xb-a { fill: #52b043; }

.xb-small { fill: #a7aca4; }

.xb-guide { fill: #c9cdc6; stroke: #8f948c; stroke-width: 2; }

.xb-light { fill: none; stroke: #4a564a; stroke-width: 5; stroke-linecap: round; }

/* player one, and the only thing on the pad that moves: a slow breath in
   opacity, never a blink */
.xb-light.is-on {
  stroke: #8fe86a;
  filter: drop-shadow(0 0 6px rgba(143,232,106,.8));
  animation: xb-glow 2.8s ease-in-out infinite alternate;
}

@keyframes xb-glow { from { opacity: .72; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) { .xb-light.is-on { animation: none; } }

.xb-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);
}
