:root {
  color-scheme: light;
  --ink: #2f3b40;
  --muted: #75868d;
  --cyan: #14cfe4;
  --cyan-dark: #0796b8;
  --green: #63d53d;
  --orange: #ff9e2c;
  --yellow: #ffc632;
  --blue: #218bff;
  --pink: #ff5faf;
  --glass: rgba(255, 255, 255, 0.46);
  --glass-strong: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.78);
  --shadow: 0 20px 46px rgba(86, 111, 119, 0.24);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e8fbff;
  --muted: #a9c3ca;
  --cyan: #38eaf5;
  --cyan-dark: #5cebf2;
  --green: #72f05c;
  --orange: #ffaf4d;
  --yellow: #ffd75a;
  --blue: #65a8ff;
  --pink: #ff78c5;
  --glass: rgba(11, 20, 28, 0.38);
  --glass-strong: rgba(20, 36, 48, 0.56);
  --line: rgba(210, 246, 255, 0.28);
  --shadow: 0 22px 56px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Nunito", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 20% 16%, rgba(161, 246, 235, 0.55), transparent 24%),
    radial-gradient(ellipse at 78% 20%, rgba(255, 238, 160, 0.45), transparent 22%),
    radial-gradient(ellipse at 50% 95%, rgba(122, 210, 255, 0.42), transparent 28%),
    #eef4f2;
  overflow-x: hidden;
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(ellipse at 20% 16%, rgba(44, 232, 222, 0.2), transparent 26%),
    radial-gradient(ellipse at 76% 20%, rgba(105, 82, 255, 0.24), transparent 24%),
    radial-gradient(ellipse at 50% 95%, rgba(15, 136, 174, 0.26), transparent 32%),
    #071118;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(30deg, rgba(132, 153, 157, 0.16) 12%, transparent 12.5%, transparent 87%, rgba(132, 153, 157, 0.16) 87.5%, rgba(132, 153, 157, 0.16)),
    linear-gradient(150deg, rgba(132, 153, 157, 0.16) 12%, transparent 12.5%, transparent 87%, rgba(132, 153, 157, 0.16) 87.5%, rgba(132, 153, 157, 0.16)),
    linear-gradient(30deg, rgba(132, 153, 157, 0.16) 12%, transparent 12.5%, transparent 87%, rgba(132, 153, 157, 0.16) 87.5%, rgba(132, 153, 157, 0.16)),
    linear-gradient(150deg, rgba(132, 153, 157, 0.16) 12%, transparent 12.5%, transparent 87%, rgba(132, 153, 157, 0.16) 87.5%, rgba(132, 153, 157, 0.16));
  background-position: 0 0, 0 0, 18px 31px, 18px 31px;
  background-size: 36px 62px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.8));
}

:root[data-theme="dark"] body::before {
  background-image:
    linear-gradient(30deg, rgba(124, 222, 236, 0.11) 12%, transparent 12.5%, transparent 87%, rgba(124, 222, 236, 0.11) 87.5%, rgba(124, 222, 236, 0.11)),
    linear-gradient(150deg, rgba(124, 222, 236, 0.11) 12%, transparent 12.5%, transparent 87%, rgba(124, 222, 236, 0.11) 87.5%, rgba(124, 222, 236, 0.11)),
    linear-gradient(30deg, rgba(124, 222, 236, 0.11) 12%, transparent 12.5%, transparent 87%, rgba(124, 222, 236, 0.11) 87.5%, rgba(124, 222, 236, 0.11)),
    linear-gradient(150deg, rgba(124, 222, 236, 0.11) 12%, transparent 12.5%, transparent 87%, rgba(124, 222, 236, 0.11) 87.5%, rgba(124, 222, 236, 0.11));
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.2) 46%, rgba(215, 226, 226, 0.5));
  pointer-events: none;
}

:root[data-theme="dark"] body::after {
  background: linear-gradient(180deg, rgba(11, 23, 31, 0.58), rgba(7, 17, 24, 0.14) 46%, rgba(2, 8, 12, 0.58));
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.wii-shell,
.shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 12px 0 46px;
}

.status-strip,
.topbar {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.22) 48%, rgba(213, 239, 244, 0.44)),
    rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 22px rgba(89, 111, 116, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.92), inset 0 -1px 0 rgba(138, 160, 166, 0.16);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
}

:root[data-theme="dark"] .status-strip,
:root[data-theme="dark"] .topbar {
  border-color: rgba(221, 250, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(233, 253, 255, 0.18), rgba(27, 45, 58, 0.24) 48%, rgba(34, 87, 102, 0.2)),
    rgba(8, 18, 25, 0.44);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.24);
}

.profile-chip,
.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  font-weight: 900;
}

.avatar,
.brand-orb {
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  border: 1px solid rgba(118, 137, 142, 0.26);
  border-radius: 8px;
  color: white;
  font-size: 0.82rem;
  font-weight: 900;
  background: linear-gradient(180deg, #4ec9ff, #0878b9);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.72), 0 4px 10px rgba(42, 119, 156, 0.24);
}

.status-center {
  display: flex;
  gap: 10px;
  color: #5d6b70;
  font-size: 0.86rem;
  font-weight: 800;
}

.status-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.music-toggle,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid rgba(153, 172, 176, 0.55);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--ink);
  font-weight: 900;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.28)),
    rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 4px 10px rgba(85, 105, 110, 0.12);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  cursor: pointer;
}

.music-toggle[aria-pressed="true"],
.theme-toggle[aria-pressed="true"] {
  color: white;
  border-color: rgba(0, 143, 180, 0.4);
  background: linear-gradient(180deg, #35e6ed, #078db7);
}

:root[data-theme="dark"] .music-toggle,
:root[data-theme="dark"] .theme-toggle,
:root[data-theme="dark"] .nav a,
:root[data-theme="dark"] .pill-button {
  color: var(--ink);
  border-color: rgba(221, 250, 255, 0.24);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(21, 39, 50, 0.34)),
    rgba(12, 25, 34, 0.46);
}

.plaza {
  position: relative;
  min-height: clamp(650px, calc(100vh - 94px), 820px);
  margin-top: 12px;
  border-radius: 8px;
  overflow: hidden;
  perspective: 900px;
}

.floor-glow {
  position: absolute;
  width: 280px;
  height: 150px;
  border-radius: 50%;
  background: rgba(108, 230, 219, 0.26);
  filter: blur(10px);
}

.glow-a {
  left: 13%;
  top: 34%;
}

.glow-b {
  right: 12%;
  top: 50%;
  background: rgba(255, 215, 88, 0.24);
}

.plaza-tile {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: clamp(96px, 13vw, 150px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 23%;
  color: var(--ink);
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.95), transparent 22%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.18) 55%, rgba(213, 230, 234, 0.38)),
    rgba(255, 255, 255, 0.32);
  box-shadow:
    0 18px 20px rgba(89, 109, 116, 0.18),
    inset 0 3px 0 rgba(255, 255, 255, 0.9),
    inset 0 -10px 16px rgba(147, 165, 170, 0.18),
    inset 0 0 20px rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  transform: translateZ(0);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

:root[data-theme="dark"] .plaza-tile {
  border-color: rgba(221, 250, 255, 0.25);
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.35), transparent 22%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(24, 45, 58, 0.24) 55%, rgba(2, 12, 18, 0.42)),
    rgba(8, 18, 25, 0.42);
  box-shadow:
    0 18px 24px rgba(0, 0, 0, 0.34),
    inset 0 3px 0 rgba(255, 255, 255, 0.2),
    inset 0 -10px 16px rgba(0, 0, 0, 0.24),
    inset 0 0 20px rgba(255, 255, 255, 0.07);
}

.plaza-tile:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow:
    0 28px 28px rgba(89, 109, 116, 0.22),
    inset 0 3px 0 rgba(255, 255, 255, 0.95),
    inset 0 -8px 14px rgba(147, 165, 170, 0.2);
}

.tile-glass {
  position: absolute;
  inset: 8px;
  border-radius: 21%;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.28) 28%, transparent 46%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent);
  pointer-events: none;
}

.tile-symbol {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 18px;
  color: white;
  font-size: clamp(1.45rem, 3vw, 2.8rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg, var(--cyan), var(--cyan-dark));
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.58);
}

.plaza-tile strong {
  position: absolute;
  left: 50%;
  bottom: -25px;
  width: max-content;
  max-width: 140px;
  transform: translateX(-50%);
  color: #526168;
  font-size: 0.85rem;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 1px 0 white;
}

:root[data-theme="dark"] .plaza-tile strong,
:root[data-theme="dark"] .dock a {
  color: #d7f8ff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.8);
}

.tile-projects {
  left: 10%;
  top: 10%;
}

.tile-projects .tile-symbol {
  background: linear-gradient(180deg, #ffb15a, #f07820);
}

.tile-github {
  left: 33%;
  top: 6%;
}

.tile-github .tile-symbol {
  background: linear-gradient(180deg, #8f9ca0, #4d5a5f);
}

.tile-buttons {
  right: 28%;
  top: 11%;
}

.tile-buttons .tile-symbol {
  background: linear-gradient(180deg, #ffdb5c, #f3a600);
}

.tile-raider {
  right: 7%;
  top: 23%;
}

.raider-glow {
  overflow: hidden;
}

.raider-glow::before,
.raider-card::before,
.raider-feature::before,
.raider-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(112deg, transparent 0 19%, rgba(126, 160, 255, 0.78) 19% 24%, transparent 24% 30%, rgba(48, 218, 235, 0.78) 30% 36%, transparent 36% 43%, rgba(82, 255, 10, 0.82) 43% 49%, transparent 49% 57%, rgba(255, 187, 6, 0.8) 57% 64%, transparent 64%),
    radial-gradient(circle at 78% 28%, rgba(140, 0, 110, 0.26), transparent 42%),
    linear-gradient(135deg, rgba(4, 7, 12, 0.8), rgba(26, 6, 32, 0.42));
  opacity: 0.2;
  pointer-events: none;
}

.raider-glow::before {
  border-radius: inherit;
  opacity: 0.32;
}

.raider-glow .tile-symbol,
.raider-glow strong,
.raider-glow .tile-glass {
  z-index: 1;
}

.tile-raider .tile-symbol {
  font-size: clamp(1.1rem, 2.2vw, 1.9rem);
  background:
    linear-gradient(135deg, rgba(126, 160, 255, 0.9), rgba(48, 218, 235, 0.95) 34%, rgba(82, 255, 10, 0.95) 64%, rgba(255, 187, 6, 0.95)),
    #d42d7f;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.58), 0 0 18px rgba(82, 255, 10, 0.34);
}

.tile-chat {
  left: 19%;
  top: 46%;
}

.tile-chat .tile-symbol {
  background: linear-gradient(180deg, #33e6e9, #009bbd);
}

.tile-smw {
  left: 42%;
  top: 32%;
}

.tile-smw .tile-symbol {
  font-size: clamp(1rem, 2vw, 1.7rem);
  background: linear-gradient(180deg, #7cf24f, #23a823);
}

.tile-links {
  right: 15%;
  top: 54%;
}

.tile-links .tile-symbol {
  background: linear-gradient(180deg, #55a7ff, #176ce5);
}

.wii-dialog {
  position: absolute;
  left: 50%;
  bottom: 66px;
  z-index: 8;
  width: min(350px, calc(100% - 42px));
  transform: translateX(-50%);
  padding: 18px 22px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.3) 50%, rgba(235, 247, 249, 0.5)),
    rgba(255, 255, 255, 0.42);
  box-shadow: 0 22px 42px rgba(65, 82, 88, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.96), inset 0 -1px 0 rgba(132, 152, 158, 0.14);
  backdrop-filter: blur(26px) saturate(1.35);
  -webkit-backdrop-filter: blur(26px) saturate(1.35);
}

:root[data-theme="dark"] .wii-dialog,
:root[data-theme="dark"] .dock,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .project-card,
:root[data-theme="dark"] .project-feature {
  border-color: rgba(221, 250, 255, 0.25);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.17), rgba(15, 30, 40, 0.38) 55%, rgba(20, 57, 72, 0.26)),
    rgba(8, 18, 25, 0.46);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -1px 0 rgba(0, 0, 0, 0.28);
}

.eyebrow,
.section-heading p {
  margin: 0 0 8px;
  color: var(--cyan-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

.wii-dialog h1 {
  color: #3d4a4f;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 0.95;
}

:root[data-theme="dark"] .wii-dialog h1,
:root[data-theme="dark"] .section-heading h2,
:root[data-theme="dark"] .project-card strong,
:root[data-theme="dark"] .project-feature strong {
  color: var(--ink);
}

.wii-dialog p,
.intro {
  margin: 12px auto 0;
  max-width: 520px;
  color: #59696f;
  font-size: 1.04rem;
  line-height: 1.45;
  font-weight: 800;
}

:root[data-theme="dark"] .wii-dialog p,
:root[data-theme="dark"] .intro,
:root[data-theme="dark"] .project-card small,
:root[data-theme="dark"] .project-feature small,
:root[data-theme="dark"] .feature-copy,
:root[data-theme="dark"] .brand small {
  color: var(--muted);
}

.pill-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 136px;
  min-height: 34px;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: #39474c;
  font-weight: 900;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(232, 240, 241, 0.48) 56%, rgba(202, 220, 224, 0.38)),
    rgba(255, 255, 255, 0.36);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.92), 0 4px 10px rgba(87, 103, 108, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mii-crowd {
  position: absolute;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 16px);
  gap: 8px 10px;
  opacity: 0.9;
  transform: rotateX(54deg);
}

.mii-crowd i {
  position: relative;
  width: 12px;
  height: 25px;
  border-radius: 9px 9px 5px 5px;
  background: var(--green);
  box-shadow: 0 8px 8px rgba(79, 92, 96, 0.22);
}

.mii-crowd i::before {
  content: "";
  position: absolute;
  left: 2px;
  top: -8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5d4737;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.22);
}

.mii-crowd i:nth-child(2n) {
  background: var(--orange);
}

.mii-crowd i:nth-child(3n) {
  background: var(--cyan);
}

.mii-crowd i:nth-child(4n) {
  background: var(--yellow);
}

.crowd-a {
  left: 25%;
  top: 31%;
}

.crowd-b {
  right: 24%;
  top: 36%;
}

.crowd-c {
  left: 48%;
  top: 64%;
}

.plaza-arrow {
  position: absolute;
  top: 40%;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 62px;
  height: 118px;
  border: 0;
  color: rgba(133, 147, 151, 0.72);
  font-size: 5rem;
  line-height: 1;
  background: transparent;
}

.arrow-left {
  left: 0;
}

.arrow-right {
  right: 0;
}

.dock {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(620px, 100%);
  margin: -54px auto 0;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.24)),
    rgba(255, 255, 255, 0.32);
  box-shadow: 0 14px 28px rgba(75, 92, 98, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
}

:root[data-theme="dark"] .dock {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(11, 24, 33, 0.36)),
    rgba(8, 18, 25, 0.42);
}

.dock a {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: #536269;
  font-size: 0.78rem;
  font-weight: 900;
}

.dock span {
  display: grid;
  place-items: center;
  width: 36px;
  aspect-ratio: 1;
  border-radius: 9px;
  color: white;
  background: linear-gradient(180deg, #39e3e9, #0793b8);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.62);
}

.home-panels {
  margin-top: 22px;
}

.shell {
  padding-top: 18px;
}

.topbar {
  grid-template-columns: 1fr auto auto auto;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.1rem;
  line-height: 1;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
}

.nav {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-radius: 999px;
  padding: 0 14px;
  font-weight: 900;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.24)),
    rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.nav a[aria-current="page"] {
  color: white;
  background: linear-gradient(180deg, #36e5ea, #078db7);
}

.page-hero {
  padding: 58px 8px 22px;
}

.page-hero h1 {
  color: white;
  font-size: clamp(3.4rem, 11vw, 7rem);
  line-height: 0.9;
  text-shadow: 0 4px 0 rgba(94, 113, 118, 0.2), 0 16px 36px rgba(82, 102, 108, 0.24);
}

.panel,
.project-card,
.project-feature {
  border: 1px solid rgba(255, 255, 255, 0.68);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.22) 58%, rgba(222, 244, 248, 0.36)),
    rgba(255, 255, 255, 0.32);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.94), inset 0 -1px 0 rgba(130, 150, 156, 0.12);
  backdrop-filter: blur(24px) saturate(1.32);
  -webkit-backdrop-filter: blur(24px) saturate(1.32);
}

.panel {
  margin-top: 16px;
  padding: 20px;
  border-radius: 8px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading h2 {
  font-size: 1.9rem;
}

.project-grid,
.split {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.split {
  grid-template-columns: 1.1fr 0.9fr;
}

.project-card {
  position: relative;
  min-height: 168px;
  padding: 15px;
  border-radius: 8px;
  transition: transform 170ms ease, box-shadow 170ms ease;
  overflow: hidden;
}

.project-card:hover,
.project-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(86, 111, 119, 0.25), inset 0 1px 0 white;
}

.project-badge {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 40px;
  margin-bottom: 28px;
  border-radius: 8px;
  color: white;
  font-weight: 900;
  background: linear-gradient(180deg, #79ed53, #1fa82b);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), 0 8px 14px rgba(67, 110, 77, 0.16);
}

.project-card strong,
.project-card small,
.project-feature strong,
.project-feature small {
  position: relative;
  z-index: 1;
  display: block;
}

.project-card strong,
.project-feature strong {
  font-size: 1.18rem;
}

.project-card small,
.project-feature small {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.42;
  font-weight: 800;
}

.project-list {
  display: grid;
  gap: 12px;
}

.project-feature {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 108px;
  padding: 15px;
  border-radius: 8px;
  transition: transform 170ms ease, box-shadow 170ms ease;
  overflow: hidden;
}

.raider-card::before,
.raider-feature::before,
.raider-panel::before {
  opacity: 0.14;
}

.raider-card .project-badge,
.raider-feature .project-badge {
  background:
    linear-gradient(135deg, #7ea0ff, #30daeb 34%, #52ff0a 64%, #ffbb06);
  color: #101a1d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.raider-panel {
  position: relative;
  overflow: hidden;
}

.raider-panel > * {
  position: relative;
  z-index: 1;
}

.project-feature .project-badge {
  margin-bottom: 0;
}

.project-feature b {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(180deg, #35e6ed, #078db7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.site-button,
.empty-button,
.friend-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 31px;
  border: 1px solid #5b2c00;
  font-size: 11px;
  line-height: 1;
  overflow: hidden;
}

.site-button {
  position: relative;
  background: transparent;
  box-shadow: none;
}

.site-button img {
  display: block;
  width: 88px;
  height: 31px;
  image-rendering: pixelated;
}

.friend-button {
  border-color: rgba(35, 54, 58, 0.4);
  background: rgba(255, 255, 255, 0.44);
}

.friend-button img {
  display: block;
  width: 88px;
  height: 31px;
}

.empty-button {
  color: #4c7b89;
  background: rgba(255, 255, 255, 0.48);
  border-style: dashed;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.link-list,
.note-list {
  display: grid;
  gap: 10px;
}

.link-list a,
.link-list p,
.note-list p,
.feature-copy,
.copy-box {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 900;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.22)),
    rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

:root[data-theme="dark"] .link-list a,
:root[data-theme="dark"] .link-list p,
:root[data-theme="dark"] .note-list p,
:root[data-theme="dark"] .feature-copy,
:root[data-theme="dark"] .copy-box {
  color: var(--ink);
  border-color: rgba(221, 250, 255, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(9, 22, 31, 0.34)),
    rgba(7, 18, 26, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.link-list span {
  color: var(--cyan-dark);
}

.note-list p {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.feature-copy {
  display: block;
  margin: 0;
  color: #52646b;
  font-size: 1rem;
  line-height: 1.58;
  font-weight: 800;
}

.button-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.big-preview {
  transform: scale(2);
  transform-origin: left center;
  margin: 18px 62px 18px 0;
}

.copy-box {
  display: grid;
  min-width: min(100%, 360px);
  justify-content: stretch;
}

.copy-box code {
  overflow-wrap: anywhere;
  color: var(--cyan-dark);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.86rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  .status-strip,
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .status-center,
  .nav {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .status-actions {
    justify-self: end;
  }

  .plaza {
    min-height: 840px;
  }

  .tile-projects {
    left: 8%;
    top: 10%;
  }

  .tile-github {
    left: 58%;
    top: 8%;
  }

  .tile-buttons {
    right: 12%;
    top: 34%;
  }

  .tile-raider {
    left: 38%;
    right: auto;
    top: 29%;
  }

  .tile-chat {
    left: 9%;
    top: 36%;
  }

  .tile-smw {
    left: 9%;
    top: 58%;
  }

  .tile-links {
    right: 10%;
    top: 62%;
  }

  .crowd-a {
    left: 30%;
    top: 28%;
  }

  .crowd-b,
  .crowd-c {
    display: none;
  }

  .project-grid,
  .project-feature,
  .split {
    grid-template-columns: 1fr;
  }

  .project-feature b {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .wii-shell,
  .shell {
    width: min(100% - 18px, 1180px);
  }

  .profile-chip span:last-child {
    display: none;
  }

  .status-actions {
    gap: 6px;
  }

  .theme-toggle,
  .music-toggle {
    padding: 0 10px;
  }

  .plaza {
    min-height: 890px;
  }

  .plaza-tile {
    width: 102px;
  }

  .tile-projects {
    left: 7%;
  }

  .tile-github {
    left: auto;
    right: 8%;
  }

  .tile-buttons {
    right: 7%;
    top: 30%;
  }

  .tile-raider {
    left: 7%;
    top: 49%;
  }

  .tile-chat {
    left: 7%;
    top: 33%;
  }

  .tile-smw {
    left: auto;
    right: 7%;
    top: 49%;
  }

  .tile-links {
    right: 7%;
    top: 66%;
  }

  .wii-dialog {
    bottom: 58px;
    padding: 18px;
  }

  .dock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: -32px;
  }

  .plaza-arrow {
    display: none;
  }

  .page-hero {
    padding-top: 42px;
  }

  .big-preview {
    margin-right: 0;
    transform: scale(1.55);
  }
}
