:root {
  color-scheme: dark;
  --page: #120e12;
  --panel: rgba(28, 22, 27, .94);
  --panel-soft: rgba(39, 30, 39, .9);
  --line: rgba(120, 87, 118, .72);
  --line-soft: rgba(185, 151, 183, .18);
  --text: #fff9ff;
  --muted: #c8b9c8;
  --mauve: #a577a2;
  --mauve-deep: #785776;
  --indigo: #6d67a3;
  --blush: #f0b58e;
  --pink: #f47b9c;
  --green: #71dfaa;
  --amber: #f4c56f;
  --red: #f27788;
  --shadow: 0 18px 48px rgba(7, 4, 7, .34);
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--page);
  background-image: url('/assets/brand/bella-background.png');
  background-position: center top;
  background-repeat: repeat-y;
  background-size: cover;
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% -12%, rgba(165, 119, 162, .26), transparent 38%),
    linear-gradient(180deg, rgba(18, 14, 18, .12), rgba(18, 14, 18, .52));
}

.brand-characters {
  position: fixed;
  inset: 112px 0 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.brand-character {
  position: absolute;
  top: 50%;
  width: min(30vw, 390px);
  max-height: 78vh;
  object-fit: contain;
  opacity: .11;
  filter: saturate(.8);
}

.brand-character--left {
  left: -130px;
  transform: translateY(-50%) scaleX(-1);
}

.brand-character--right {
  right: -130px;
  transform: translateY(-50%);
}

.brand-bar {
  position: relative;
  z-index: 10;
  min-height: 112px;
  border-bottom: 2px solid rgba(120, 87, 118, .72);
  background: radial-gradient(circle, #a577a2 0%, #6d67a3 28%, #6d67a3 72%, #a577a2 100%);
  box-shadow: 0 12px 34px rgba(8, 5, 9, .32);
}

.brand-bar__inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 112px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.brand-name { display: flex; flex-direction: column; align-items: flex-start; }
.brand-name span {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, .72);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.brand-name strong { font-size: 1.05rem; letter-spacing: -.01em; }

.brand-logo-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
}

.brand-logo-wrap::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 10px 28px rgba(42, 24, 42, .28);
}

.brand-logo-wrap img { position: relative; width: 86px; height: 86px; object-fit: contain; }

.connection-pill {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: #fff;
  background: rgba(28, 22, 27, .34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09);
  backdrop-filter: blur(12px);
  font-size: .78rem;
  font-weight: 750;
}

.connection-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(244, 197, 111, .15);
}

.connection-pill.is-live .connection-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(113, 223, 170, .16);
  animation: signal-pulse 2.4s ease-in-out infinite;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0 54px;
}

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 42px;
  margin-bottom: 46px;
  padding: clamp(28px, 5vw, 54px);
  border: 2px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 85% 0%, rgba(165, 119, 162, .28), transparent 40%),
    linear-gradient(135deg, rgba(28, 22, 27, .98), rgba(34, 26, 36, .9));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.hero::after {
  content: "";
  position: absolute;
  top: -78px;
  right: -62px;
  width: 250px;
  height: 250px;
  border: 48px solid rgba(120, 87, 118, .12);
  border-radius: 50%;
}

.hero-copy { position: relative; z-index: 1; max-width: 690px; }

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5rem);
  line-height: .97;
  letter-spacing: -.055em;
}

h1 span {
  color: var(--mauve);
  text-shadow: 0 0 28px rgba(165, 119, 162, .2);
}

.subtitle {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.hero-side {
  position: relative;
  z-index: 1;
  flex: 0 0 300px;
  display: grid;
  gap: 12px;
}

.overall {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 17px 19px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(16, 12, 16, .56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(14px);
}

.overall strong, .overall small { display: block; }
.overall strong { font-size: .9rem; }
.overall small { margin-top: 4px; color: var(--muted); font-size: .72rem; }

.pulse {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 6px rgba(244, 197, 111, .12);
}

.overall.online .pulse { background: var(--green); box-shadow: 0 0 0 6px rgba(113, 223, 170, .13); }
.overall.degraded .pulse { background: var(--amber); box-shadow: 0 0 0 6px rgba(244, 197, 111, .13); }
.overall.offline .pulse { background: var(--red); box-shadow: 0 0 0 6px rgba(242, 119, 136, .13); }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.process-card,
.status-card,
.switch-card {
  border: 1px solid var(--line-soft);
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(7, 4, 7, .24), inset 0 1px 0 rgba(255, 255, 255, .035);
}

.hero-metric {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(16, 12, 16, .56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(14px);
}

.hero-metric::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(var(--mauve), var(--indigo));
}

.hero-metric span {
  display: block;
  color: var(--muted);
  font-size: .58rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-metric strong {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  font-size: 1rem;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 15px;
}

.section-title > span { color: var(--muted); font-size: .75rem; text-align: right; }
.section-heading { display: flex; align-items: center; gap: 11px; }
.section-heading > div > span {
  display: block;
  margin-bottom: 2px;
  color: var(--mauve);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.section-heading h2 { margin: 0; font-size: 1.16rem; letter-spacing: -.02em; }

.section-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(120, 87, 118, .17);
}
.section-mark img { width: 24px; height: 24px; object-fit: contain; }

.infrastructure-section { margin-bottom: 40px; }
.stream-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.nintendo-switch { min-width: 0; }
.joy-con { display: none; }
.switch-screen-glass { position: relative; }
.switch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.kitsune-easter-egg {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(130px, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  padding: clamp(22px, 4vw, 42px);
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transform: scale(.96);
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 22%, rgba(240, 181, 142, .28), transparent 31%),
    radial-gradient(circle at 88% 82%, rgba(109, 103, 163, .42), transparent 39%),
    linear-gradient(135deg, rgba(29, 20, 30, .985), rgba(67, 42, 68, .985));
  transition:
    opacity .35s ease,
    transform .45s cubic-bezier(.2, .8, .2, 1),
    visibility 0s linear .45s;
}

.kitsune-easter-egg::before,
.kitsune-easter-egg::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(240, 181, 142, .2);
  border-radius: 50%;
}

.kitsune-easter-egg::before { width: 230px; height: 230px; top: -145px; right: -70px; }
.kitsune-easter-egg::after { width: 170px; height: 170px; bottom: -112px; left: 36%; }

.nintendo-switch.is-kitsune-awake .kitsune-easter-egg {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  transition-delay: 0s;
}

.nintendo-switch.is-kitsune-awake .switch-screen-glass { overflow: hidden; }

.kitsune-easter-egg__art {
  position: relative;
  z-index: 2;
  align-self: end;
  height: min(270px, 31vw);
  min-height: 190px;
  display: grid;
  place-items: end center;
}

.kitsune-easter-egg__art::before {
  content: "";
  position: absolute;
  inset: 15% 2% 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 123, 156, .23), rgba(165, 119, 162, .08) 48%, transparent 70%);
  filter: blur(4px);
}

.kitsune-easter-egg__art img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 13px 14px rgba(8, 4, 8, .45));
}

.nintendo-switch.is-kitsune-awake .kitsune-easter-egg__art img {
  animation: kitsune-bob 2.2s ease-in-out infinite;
}

.kitsune-easter-egg__copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.kitsune-easter-egg__copy > span {
  display: block;
  margin-bottom: 7px;
  color: var(--blush);
  font-size: .61rem;
  font-weight: 850;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.kitsune-easter-egg__copy strong {
  display: block;
  max-width: 410px;
  font-size: clamp(1.45rem, 3.2vw, 2.65rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.kitsune-easter-egg__copy p {
  max-width: 390px;
  margin: 13px 0 17px;
  color: #e5d6e4;
  font-size: clamp(.72rem, 1.2vw, .9rem);
  line-height: 1.55;
}

.kitsune-role-claim {
  display: grid;
  justify-items: start;
  gap: 7px;
  margin: -5px 0 13px;
}

.kitsune-role-claim > span {
  color: #e5d6e4;
  font-size: .67rem;
  line-height: 1.35;
}

.kitsune-discord-code {
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(240, 181, 142, .5);
  border-radius: 9px;
  color: #fff4e9;
  background: rgba(17, 12, 17, .68);
  box-shadow: 0 8px 24px rgba(8, 4, 8, .22);
  font: 800 clamp(.7rem, 1.35vw, .9rem)/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .055em;
  cursor: pointer;
}

.kitsune-discord-code:hover,
.kitsune-discord-code:focus-visible {
  border-color: var(--blush);
  background: rgba(120, 87, 118, .55);
  outline: none;
}

.kitsune-discord-code[hidden] { display: none; }

.kitsune-easter-egg__copy small {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid rgba(240, 181, 142, .25);
  border-radius: 999px;
  color: var(--blush);
  background: rgba(17, 12, 17, .38);
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.kitsune-sparkle {
  position: absolute;
  z-index: 3;
  color: var(--blush);
  opacity: 0;
  text-shadow: 0 0 12px rgba(240, 181, 142, .65);
}

.kitsune-sparkle--one { top: 15%; left: 8%; font-size: 1.4rem; }
.kitsune-sparkle--two { top: 17%; left: 42%; font-size: 1rem; }
.kitsune-sparkle--three { right: 8%; bottom: 13%; font-size: 1.2rem; }

.nintendo-switch.is-kitsune-awake .kitsune-sparkle {
  animation: kitsune-sparkle 1.4s ease-in-out infinite;
}

.nintendo-switch.is-kitsune-awake .kitsune-sparkle--two { animation-delay: .35s; }
.nintendo-switch.is-kitsune-awake .kitsune-sparkle--three { animation-delay: .7s; }

.process-card,
.status-card,
.switch-card {
  --state-color: var(--muted);
  --state-rgb: 200, 185, 200;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.process-card,
.status-card { padding: 21px; }

.process-card::before,
.status-card::before,
.switch-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--state-color), transparent 72%);
  opacity: .85;
}

.process-card::after,
.status-card::after,
.switch-card::after {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -70px;
  width: 145px;
  height: 145px;
  border-radius: 50%;
  background: rgba(var(--state-rgb), .12);
  filter: blur(48px);
  pointer-events: none;
}

.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.card-head h3 { margin: 0; font-size: .94rem; letter-spacing: -.01em; }
.card-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: .6rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(var(--state-rgb), .3);
  border-radius: 999px;
  color: var(--state-color);
  background: rgba(var(--state-rgb), .1);
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.status-metric { display: block; margin-top: 25px; font-size: 1.35rem; letter-spacing: -.025em; }

.switch-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
}

.switch-number {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--state-rgb), .28);
  border-radius: 50%;
  color: var(--state-color);
  background: rgba(var(--state-rgb), .1);
  font-size: .9rem;
  font-weight: 850;
}

.switch-copy { min-width: 0; width: 100%; }
.switch-copy .detail { margin-top: 7px; min-height: 0; }

.meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 25px; }
.process-meta { grid-template-columns: 1fr; }
.meta div { min-width: 0; }
.meta span,
.detail { display: block; color: var(--muted); font-size: .7rem; }
.meta span { font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.meta strong { display: block; margin-top: 4px; overflow: hidden; font-size: .88rem; text-overflow: ellipsis; }
.detail {
  position: relative;
  z-index: 1;
  min-height: 2.7em;
  margin: 16px 0 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.35;
}

.state-online { --state-color: var(--green); --state-rgb: 113, 223, 170; }
.state-starting,
.state-restarting,
.state-stopping,
.state-checking { --state-color: var(--amber); --state-rgb: 244, 197, 111; }
.state-degraded,
.state-backed-up { --state-color: #b99ad9; --state-rgb: 185, 154, 217; }
.state-not-configured,
.state-unknown { --state-color: var(--muted); --state-rgb: 200, 185, 200; }
.state-failed,
.state-unresponsive,
.state-stopped,
.state-offline { --state-color: var(--red); --state-rgb: 242, 119, 136; }

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(120, 87, 118, .32);
  color: var(--muted);
  font-size: .72rem;
}
.footer img { width: 22px; height: 22px; }
.footer span:first-of-type { color: var(--text); font-weight: 750; }
.footer-separator { color: var(--mauve); }

@keyframes signal-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(.78); }
}

@keyframes kitsune-bob {
  0%, 100% { transform: translateY(0) rotate(-.6deg); }
  50% { transform: translateY(-7px) rotate(.6deg); }
}

@keyframes kitsune-sparkle {
  0%, 100% { opacity: .2; transform: scale(.68) rotate(0); }
  50% { opacity: 1; transform: scale(1.18) rotate(24deg); }
}

@media (hover: hover) {
  .process-card,
  .status-card,
  .switch-card { transition: transform .18s ease, border-color .18s ease, background-color .18s ease; }
  .process-card:hover,
  .status-card:hover,
  .switch-card:hover {
    transform: translateY(-2px);
    border-color: rgba(165, 119, 162, .48);
    background-color: rgba(35, 27, 35, .96);
  }
}

@media (max-width: 1100px) {
  .brand-character { opacity: .06; }
  .brand-character--left { left: -210px; }
  .brand-character--right { right: -210px; }
}

@media (max-width: 820px) {
  body { background-attachment: scroll; }
  .brand-characters { display: none; }
  .brand-bar, .brand-bar__inner { min-height: 98px; }
  .brand-bar__inner { width: min(100% - 24px, 1120px); }
  .brand-logo-wrap { width: 78px; height: 78px; }
  .brand-logo-wrap img { width: 72px; height: 72px; }
  .brand-name span { display: none; }
  .brand-name strong { font-size: .88rem; }
  .connection-pill { padding: 8px 10px; font-size: .7rem; }
  .shell { width: min(100% - 24px, 1120px); padding-top: 28px; }
  .hero { align-items: stretch; flex-direction: column; gap: 28px; }
  .hero-side { flex-basis: auto; width: 100%; }
  .overall { min-width: 0; }
  .stream-grid, .switch-grid, .process-grid { grid-template-columns: 1fr; }
  .section-title { align-items: flex-end; }
}

@media (min-width: 821px) and (max-width: 1020px) {
  .stream-grid, .switch-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { align-items: stretch; flex-direction: column; }
  .hero-side { flex-basis: auto; width: min(100%, 520px); }
}

@media (min-width: 1021px) {
  .nintendo-switch {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 96px;
    align-items: stretch;
    filter: drop-shadow(0 24px 34px rgba(7, 4, 7, .38));
  }

  .switch-console-screen {
    position: relative;
    z-index: 2;
    min-width: 0;
    padding: 18px;
    border: 2px solid #3e353f;
    background: linear-gradient(145deg, #171218, #070607 72%);
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, .12),
      inset 0 -4px 8px rgba(0, 0, 0, .52);
  }

  .switch-console-screen::before,
  .switch-console-screen::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 6px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #030203;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  }

  .switch-console-screen::before { left: 9px; }
  .switch-console-screen::after { right: 9px; }

  .switch-screen-glass {
    height: 100%;
    padding: 9px;
    overflow: hidden;
    border: 1px solid rgba(165, 119, 162, .28);
    border-radius: 5px;
    background:
      linear-gradient(120deg, rgba(255, 255, 255, .035), transparent 28%),
      rgba(18, 14, 18, .9);
    box-shadow: inset 0 0 24px rgba(0, 0, 0, .56);
  }

  .joy-con {
    position: relative;
    z-index: 1;
    display: block;
    min-height: 100%;
    border: 2px solid rgba(255, 255, 255, .13);
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, .19),
      inset 0 -7px 14px rgba(35, 20, 38, .24);
  }

  .joy-con--left {
    border-right: 0;
    border-radius: 50px 7px 7px 50px;
    background: linear-gradient(150deg, #827bb7, var(--indigo) 62%, #534e86);
  }

  .joy-con--right {
    border-left: 0;
    border-radius: 7px 50px 50px 7px;
    background: linear-gradient(210deg, #bc8bb4, var(--mauve) 62%, #755374);
  }

  .joy-con button {
    appearance: none;
    margin: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
  }

  .joy-con button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .92);
    outline-offset: 3px;
  }

  .joy-con-minus,
  .joy-con-plus {
    position: absolute;
    top: 24px;
    width: 18px;
    height: 4px;
    border: 0;
    border-radius: 2px;
    background: rgba(20, 16, 21, .82);
    box-shadow: 0 1px 2px rgba(255, 255, 255, .14);
  }

  .joy-con-minus { right: 15px; }
  .joy-con-plus { left: 15px; }
  .joy-con-plus::after {
    content: "";
    position: absolute;
    top: -7px;
    left: 7px;
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: inherit;
  }

  .joy-con-stick {
    position: absolute;
    width: 42px;
    height: 42px;
    border: 4px solid #282329;
    border-radius: 50%;
    background: radial-gradient(circle, #514a52 0 34%, #312c32 36% 66%, #171418 68%);
    box-shadow: 0 3px 7px rgba(0, 0, 0, .52), inset 0 1px 1px rgba(255, 255, 255, .13);
  }

  .joy-con--left .joy-con-stick { top: 62px; left: 25px; }
  .joy-con--right .joy-con-stick { top: 190px; left: 25px; }

  .joy-con-buttons {
    position: absolute;
    width: 54px;
    height: 54px;
  }

  .joy-con-buttons button {
    position: absolute;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    color: rgba(255, 255, 255, .72);
    background: #272229;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .42), inset 0 1px 1px rgba(255, 255, 255, .12);
    font-size: .46rem;
    font-weight: 800;
  }

  .joy-con-buttons button:nth-child(1) { top: 0; left: 18px; }
  .joy-con-buttons button:nth-child(2) { top: 18px; right: 0; }
  .joy-con-buttons button:nth-child(3) { bottom: 0; left: 18px; }
  .joy-con-buttons button:nth-child(4) { top: 18px; left: 0; }
  .joy-con-buttons--directions { top: 131px; left: 21px; }
  .joy-con-buttons--letters { top: 60px; left: 21px; }

  .joy-con-capture,
  .joy-con-home {
    position: absolute;
    bottom: 27px;
    width: 18px;
    height: 18px;
    border: 2px solid #2c272d;
    background: rgba(28, 24, 29, .76);
  }

  .joy-con-capture { right: 18px; border-radius: 4px; }
  .joy-con-capture::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #171418;
  }

  .joy-con-home { left: 18px; border-radius: 50%; }
  .joy-con-home::after {
    content: "";
    position: absolute;
    inset: 4px 3px 3px;
    border-radius: 3px;
    background: #171418;
  }

  .joy-con button.is-pressed {
    filter: brightness(1.55);
    box-shadow: 0 0 0 3px rgba(240, 181, 142, .34), 0 0 16px rgba(240, 181, 142, .58);
    transform: scale(.86);
  }

  .switch-order-1 { order: 1; }
  .switch-order-2 { order: 2; }
  .switch-order-7 { order: 3; }
  .switch-order-3 { order: 4; }
  .switch-order-4 { order: 5; }
  .switch-order-8 { order: 6; }
  .switch-order-5 { order: 7; }
  .switch-order-6 { order: 8; }
  .switch-order-9 { order: 9; }
}

@media (max-width: 520px) {
  .brand-name { display: none; }
  .brand-bar__inner { grid-template-columns: 1fr auto 1fr; }
  .brand-logo-wrap { grid-column: 2; }
  .connection-pill {
    grid-column: 3;
    max-width: 108px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hero { margin-bottom: 38px; padding: 25px 20px; border-radius: 17px; }
  h1 { font-size: clamp(2.2rem, 13vw, 3.2rem); }
  .section-title { align-items: flex-start; flex-direction: column; gap: 8px; }
  .section-title > span { padding-left: 47px; text-align: left; }
  .switch-card { align-items: flex-start; }
  .kitsune-easter-egg { grid-template-columns: 1fr; align-content: center; text-align: center; }
  .kitsune-easter-egg__art { align-self: center; height: 240px; min-height: 0; }
  .kitsune-easter-egg__copy p { margin-inline: auto; }
  .kitsune-role-claim { justify-items: center; }
  .card-head { align-items: flex-start; }
  .footer { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
