:root {
  color-scheme: dark;
  --bg: #0b1120;
  --surface: #141e30;
  --line: #26354d;
  --text: #eef4ff;
  --muted: #a7b6cd;
  --accent-blue: #81bbff;
  font-family: Lato, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
[hidden], .icons { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 4px; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: fixed; z-index: 5; left: 16px; top: 16px; padding: 12px; background: var(--surface); transform: translateY(-160%); }
.skip:focus { transform: none; }
.shell { display: flex; flex-direction: column; min-height: 100dvh; }
.site-header { position: sticky; top: 0; z-index: 4; background: #10192a; border-bottom: 1px solid var(--line); }
.header-inner {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  align-items: center;
  gap: 20px;
  max-width: 1600px;
  margin-inline: auto;
  padding: 12px 32px;
}
.brand { display: flex; align-items: center; gap: 10px; justify-self: start; }
.brand strong { display: block; font-size: 17px; font-weight: 900; letter-spacing: .06em; }
.brand small { color: var(--accent-blue); letter-spacing: .19em; font-size: 11px; font-weight: 800; }
.site-nav { display: flex; gap: 5px; }
.site-nav a { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; padding: 0 11px; border: 1px solid transparent; color: var(--muted); font-weight: 700; }
.site-nav a:hover { background: #1a2940; color: var(--text); }
.site-nav a[aria-current] { color: var(--accent-blue); background: #1c3455; border-color: #31557d; }
.site-nav a[aria-current]::after { content: ''; position: absolute; inset: auto 10px -1px; height: 2px; background: var(--accent-blue); }
.site-nav a svg { width: 18px; height: 18px; }
.server strong, .server small { display: block; }
.server small { margin-top: 4px; color: var(--muted); }
main { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.player-status, .server-state { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); }
.player-status { justify-self: end; }
.player-status { background: #17263e; border: 1px solid #30445f; color: #d0e0f6; padding: 6px 10px; }
.player-status i, .server-state i { width: 7px; height: 7px; flex: none; background: #bb9c5e; }
.page { width: min(100%, 1600px); margin-inline: auto; padding: 24px 32px 32px; }
.hero {
  position: relative;
  min-height: clamp(405px, 38vw, 540px);
  display: flex;
  align-items: center;
  isolation: isolate;
  border: 1px solid #334b69;
  background: #101b32;
}
.hero::before, .hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.hero::before {
  z-index: -2;
  background: url('./assets/ville.webp') center 53% / cover no-repeat;
  filter: hue-rotate(95deg) saturate(.88);
}
.hero::after {
  z-index: -1;
  background: linear-gradient(90deg,#091326fa,#0a162ae0 27%,#10264758 68%,#11325028),
    linear-gradient(0deg,#0b172bba,transparent 38%),
    repeating-linear-gradient(0deg,#0000 0 3px,#0002 3px 4px);
}
.hero-copy { padding: 42px clamp(26px, 5vw, 77px); }
.eyebrow { color: var(--accent-blue); font-size: 13px; font-weight: 900; letter-spacing: .17em; display: flex; align-items: center; gap: 10px; margin: 0 0 17px; }
.eyebrow span { background: var(--accent-blue); width: 18px; height: 2px; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { font-family: Lato, Arial, sans-serif; font-size: clamp(3.1rem, 7.25vw, 7.35rem); font-weight: 1000; letter-spacing: -.065em; line-height: .87; margin: 0 0 21px; text-shadow: 0 5px #070f20; }
.hero h1 em { font-style: normal; color: var(--accent-blue); }
.intro { max-width: 355px; color: #dce7f7; margin-bottom: 24px; line-height: 1.55; }
.secondary, .primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 43px; padding: 9px 15px; font-weight: 800; }
.secondary { background: #132239dd; border: 1px solid #577aa4; }
.secondary:hover { background: #233f63; }
.secondary svg { width: 17px; height: 17px; }
.hero-mark { position: absolute; right: 23px; bottom: 20px; display: flex; gap: 5px; }
.hero-mark span { width: 6px; height: 11px; background: #86b9ff; transform: skew(-18deg); opacity: .7; }
.playbar { padding: 11px 16px; min-height: 75px; background: var(--surface); border: 1px solid var(--line); border-top: 0; display: grid; grid-template-columns: 1fr minmax(155px, 224px) 1fr; align-items: center; gap: 15px; }
.server { display: flex; align-items: center; gap: 11px; }
.server-icon { display: grid; place-items: center; width: 41px; height: 41px; background: #1f3455; border: 1px solid #345b88; color: var(--accent-blue); flex: none; }
.primary { background: var(--accent-blue); color: #0b1c34; border: 1px solid #acd3ff; box-shadow: inset 0 -4px #478bda; min-height: 48px; letter-spacing: .11em; }
.primary:hover { background: #a7d1ff; }
.primary:active { box-shadow: inset 0 -1px #478bda; }
.server-state { justify-self: end; }
.server-state i { background: #8598b5; }
.explore { margin-top: 27px; }
.explore h2 { font-size: 24px; letter-spacing: -.025em; margin-bottom: 15px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.tile { --accent: #85bbff; --tone: #233c59; position: relative; isolation: isolate; overflow: hidden; min-height: 139px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; gap: 11px; border: 1px solid var(--line); border-top-color: var(--accent); background: linear-gradient(120deg, var(--tone), #182539 80%); }
.tile:hover { border-color: var(--accent); }
.tile.violet { --accent: #b3abff; --tone: #292743; }
.tile h3 { margin-bottom: 4px; font-size: 19px; }
.tile p { margin: 0 18px 0 0; font-size: 14px; color: #c5d2e7; }
.tile-icon { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: var(--tone); color: var(--accent); }
.tile-icon svg { width: 18px; height: 18px; }
.tile-symbol { position: absolute; z-index: -1; width: 103px; height: 103px; color: var(--accent); opacity: .12; top: 7px; right: 9px; transform: rotate(-12deg); }
.tile-next { width: 17px; height: 17px; position: absolute; bottom: 15px; right: 12px; color: var(--accent); }
footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 19px 32px calc(66px + env(safe-area-inset-bottom, 0px));
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
footer strong { display: block; color: var(--text); }
footer p { max-width: 62ch; margin: 6px auto 0; }
.inner { padding-top: 50px; }
.inner h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -.055em; margin-bottom: 15px; }
.lead, dialog p { color: var(--muted); line-height: 1.6; max-width: 64ch; }
details { background: var(--surface); border: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 20px; }
.filters label { display: grid; gap: 8px; min-width: 0; }
input, select { min-width: 0; padding: 10px; color: var(--text); background: var(--surface); border: 1px solid #4a5d7a; border-radius: 0; }
.jobs { max-width: 760px; display: grid; gap: 9px; }
details { padding: 16px; }
summary { cursor: pointer; color: var(--accent-blue); font-weight: 800; }
summary span { color: var(--text); display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 9px; }
summary small { color: var(--muted); font-weight: 400; }
dialog { width: min(480px, calc(100% - 32px)); padding: 30px; border: 1px solid #4c6890; background: var(--surface); color: var(--text); }
dialog::backdrop { background: #060b16cc; }
.close { float: right; display: grid; place-items: center; padding: 4px; background: transparent; color: var(--text); border: 1px solid var(--line); }
@media (max-width: 1060px) {
  .page, .header-inner, footer { padding-inline: 20px; }
  .server-state { font-size: 13px; }
}
@media (max-width: 760px) {
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; padding-block: 8px; }
  .brand img { width: 33px; height: 33px; }
  .site-nav { display: grid; grid-row: 2; grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
  .site-nav a { min-height: 38px; padding: 0 4px; gap: 5px; font-size: 14px; }
  .site-nav a svg { width: 15px; height: 15px; }
  .hero { min-height: 360px; }
  .hero::before { background-position: 55% center; }
  .hero h1 { font-size: clamp(2.3rem, 9.5vw, 4.6rem); }
  .playbar { grid-template-columns: minmax(0, 1fr) minmax(99px, .75fr); }
  .server-state { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 530px) {
  .page, .header-inner, footer { padding-inline: 12px; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 105px; }
  .hero-copy { padding-inline: 15px; }
  .hero-mark { display: none; }
  .server-icon { display: none; }
}
.source { color: var(--accent-blue); text-decoration: underline; text-underline-offset: .17em; }
details ul { margin: 14px 0 0; padding-inline-start: 23px; color: var(--muted); line-height: 1.55; }
details li + li { margin-top: 7px; }
.rules-link { margin: 20px 0 0; }

@font-face {
  font-family: Monocraft;
  src: url('./assets/monocraft.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
:root { --pixel-font: Monocraft, "Courier New", monospace; }
.brand strong, .hero h1, .inner h1, .explore h2, .join h2, dialog h2, .playbar .primary {
  font-family: var(--pixel-font);
  font-weight: 400;
}
.hero h1 { font-size: clamp(2.45rem, 6.7vw, 6.6rem); letter-spacing: -.07em; }
.playbar .primary { font-size: 1.15rem; }
.explore .tile-symbol { display: none; }
.tile { background: #17243a; border-color: #2d435f; padding: 18px; }
.tile-icon { background: transparent; }
.join {
  --band: #17263f;
  --gutter: 32px;
  position: relative;
  margin: 65px calc(-1 * var(--gutter)) 13px;
  padding: clamp(65px, 8vw, 100px) var(--gutter) clamp(65px, 8vw, 105px);
  background: var(--band);
}
.join::before, .join::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--band);
  mask: url('./assets/pixel-edge.png') repeat-x left bottom / 560px 40px;
  image-rendering: pixelated;
  pointer-events: none;
}
.join::before { bottom: 100%; }
.join::after { top: 100%; transform: rotate(180deg); }
.join-launcher { text-align: center; margin-inline: auto; }
.join h2 { font-size: clamp(1.35rem, 2.45vw, 2.3rem); color: #edf4ff; line-height: 1.28; margin: 0 0 13px; }
.join-launcher h2 { text-transform: uppercase; }
.join h2::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  margin-bottom: 20px;
  background: #79aaff;
  box-shadow: 11px 0 #62c5eb, 22px 0 #a79cff;
}
.join-launcher h2::before { margin-inline: auto; transform: translateX(-11px); }
.join p { color: #c0cde2; line-height: 1.55; margin: 0 0 23px; }
.join .primary, .discord-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 9px 18px;
  border-radius: 3px;
  font-weight: 700;
}
.join .primary { font-family: var(--pixel-font); font-weight: 400; letter-spacing: 0; }
.join-community {
  max-width: 700px;
  margin: clamp(42px, 6vw, 72px) auto 0;
  text-align: center;
}
.join-community > .mascot-dock:not(:has(.mascot-scene)) { display: none; }
.join-community h2::before { margin-inline: auto; transform: translateX(-11px); }
.join-community h2 { font-size: clamp(1.24rem, 2.1vw, 1.85rem); }
.discord-button { background: #909deb; color: #191d38; box-shadow: inset 0 -4px #6576c3; }
.discord-button:hover { background: #b2bbff; }
.mascot-scene { position: relative; height: 300px; display: grid; place-items: center; perspective: 700px; }
.mascot-shadow { position: absolute; width: 195px; height: 29px; bottom: 24px; border-radius: 50%; background: #13150e99; filter: blur(7px); }
.mascot {
  position: relative; width: 1px; height: 1px; transform-style: preserve-3d;
  animation: voxel-idle 5s ease-in-out infinite;
}
.voxel-piece { position: absolute; transform-style: preserve-3d; transform: translate3d(var(--x), var(--y), var(--z)) rotateZ(var(--angle, 0deg)); }
.voxel-face { position: absolute; inset: 0 auto auto 0; display: block; backface-visibility: hidden; }
.voxel-front, .voxel-back { width: var(--w); height: var(--h); background: var(--front); }
.voxel-front { transform: translate3d(-50%, -50%, calc(var(--d) / 2)); }
.voxel-back { transform: translate3d(-50%, -50%, calc(var(--d) / -2)) rotateY(180deg); }
.voxel-side { width: var(--d); height: var(--h); background: var(--side); }
.voxel-right { transform: translate3d(calc((var(--w) - var(--d)) / 2), -50%, 0) rotateY(90deg); }
.voxel-left { transform: translate3d(calc((var(--w) + var(--d)) / -2), -50%, 0) rotateY(-90deg); }
.voxel-cap { width: var(--w); height: var(--d); background: var(--cap); }
.voxel-top { transform: translate3d(-50%, calc((var(--h) + var(--d)) / -2), 0) rotateX(90deg); }
.voxel-bottom { transform: translate3d(-50%, calc((var(--h) - var(--d)) / 2), 0) rotateX(-90deg); filter: brightness(.7); }
.voxel-face::after {
  content: '';
  position: absolute;
  inset: 0;
  background: conic-gradient(from 90deg, #0000 25%, #0000000d 0 50%, #0000 0 75%, #ffffff12 0) 0 0 / 16px 16px;
  pointer-events: none;
}
.voxel-head .voxel-front {
  background:
    linear-gradient(#fcffe6,#fcffe6) 25% 35% / 5px 5px no-repeat,
    linear-gradient(#fcffe6,#fcffe6) 76% 35% / 5px 5px no-repeat,
    linear-gradient(#192e31,#192e31) 23% 43% / 15px 20px no-repeat,
    linear-gradient(#192e31,#192e31) 77% 43% / 15px 20px no-repeat,
    linear-gradient(#e9a29b,#e9a29b) 12% 65% / 17px 8px no-repeat,
    linear-gradient(#e9a29b,#e9a29b) 88% 65% / 17px 8px no-repeat,
    linear-gradient(#375851,#375851) 50% 66% / 14px 5px no-repeat,
    linear-gradient(#b3dfab,#b3dfab) 50% 86% / 114px 37px no-repeat,
    var(--front);
}
.voxel-bib .voxel-front { background: linear-gradient(#b4d7b6,#b4d7b6) 50% 41% / 35px 31px no-repeat, var(--front); }
@keyframes voxel-idle {
  0%, 100% { transform: translateY(3px) rotateX(-9deg) rotateY(-19deg); }
  50% { transform: translateY(-7px) rotateX(-11deg) rotateY(13deg); }
}
@media (max-width: 1060px) { .join { --gutter: 20px; } }
@media (max-width: 760px) {
  .hero h1 { font-size: clamp(2rem, 8.6vw, 4.3rem); }
  .mascot-scene { height: 246px; transform: scale(.85); }
}
@media (max-width: 530px) { .join { --gutter: 12px; } }
@media (prefers-reduced-motion: reduce) {
  .mascot { animation: none; transform: rotateX(-9deg) rotateY(-16deg); }
}

.mascot-scene {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.mascot-egg, .mascot-sleep { position: absolute; pointer-events: none; visibility: hidden; }
.mascot-egg {
  left: calc(50% + 96px);
  top: calc(50% + 13px);
  width: 19px;
  height: 23px;
  background: linear-gradient(90deg, #fff5cc 54%, #d9b392 54%);
  clip-path: polygon(32% 0,68% 0,68% 13%,83% 13%,83% 33%,100% 33%,100% 80%,84% 80%,84% 100%,16% 100%,16% 80%,0 80%,0 33%,17% 33%,17% 13%,32% 13%);
  z-index: 1;
}
.is-firing .mascot-egg { visibility: visible; animation: egg-arc 1.05s steps(32, end) both; }
.is-firing .mascot { animation: mascot-recoil .68s ease-out both; }
.is-asleep .mascot {
  transform: translate3d(0, 64px, -24px) rotateZ(-7deg) rotateX(76deg) rotateY(-13deg);
  animation: mascot-fall .7s ease-in both;
}
@keyframes mascot-fall {
  0% { transform: translateY(-2px) rotateX(-8deg) rotateY(-13deg); }
  22% { transform: translateY(-7px) rotateX(-15deg) rotateY(-13deg); }
  76% { transform: translate3d(0, 67px, -25px) rotateZ(-7deg) rotateX(82deg) rotateY(-13deg); }
  88% { transform: translate3d(0, 60px, -24px) rotateZ(-7deg) rotateX(72deg) rotateY(-13deg); }
  100% { transform: translate3d(0, 64px, -24px) rotateZ(-7deg) rotateX(76deg) rotateY(-13deg); }
}
.is-asleep .mascot-shadow { transform: translateY(5px) scaleX(1.12); }
.voxel-foot .voxel-bottom {
  background: repeating-linear-gradient(90deg, #436254 0 5px, #527565 5px 9px);
  filter: none;
}
.is-asleep .voxel-launcher { visibility: hidden; }
.is-asleep .voxel-head .voxel-front {
  background:
    linear-gradient(#253b3a,#253b3a) 22% 53% / 16px 4px no-repeat,
    linear-gradient(#253b3a,#253b3a) 78% 53% / 16px 4px no-repeat,
    linear-gradient(#e9a29b,#e9a29b) 12% 65% / 17px 8px no-repeat,
    linear-gradient(#e9a29b,#e9a29b) 88% 65% / 17px 8px no-repeat,
    linear-gradient(#375851,#375851) 50% 70% / 8px 7px no-repeat,
    linear-gradient(#b3dfab,#b3dfab) 50% 86% / 114px 37px no-repeat,
    var(--front);
}
.mascot-sleep {
  left: calc(50% + 55px);
  top: 19px;
  color: #b6c3ff;
  font: 1.4rem var(--pixel-font);
  text-shadow: 2px 2px #353c63;
}
.is-asleep .mascot-sleep { visibility: visible; }
.mascot-sleep i { display: inline-block; font-style: normal; animation: sleepy-letters 2.8s steps(9, end) infinite; }
.mascot-sleep i:nth-child(2) { animation-delay: .24s; }
.mascot-sleep i:nth-child(3) { animation-delay: .48s; }
@keyframes egg-arc {
  0% { transform: translate(0, 0) rotate(25deg); opacity: 1; }
  45% { transform: translate(110px, -39px) rotate(145deg); opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translate(236px, 65px) rotate(315deg); opacity: 0; }
}
@keyframes mascot-recoil {
  0%, 100% { transform: rotateX(-9deg) rotateY(-8deg); }
  15% { transform: translate(-8px, -5px) rotateX(-8deg) rotateY(-13deg) rotateZ(-5deg); }
}
@keyframes sleepy-letters {
  0%, 100% { transform: translate(0, 15px); opacity: .2; }
  48% { transform: translate(6px, -9px); opacity: 1; }
}
@media (max-width: 760px) {
  .mascot-egg { left: calc(50% + 76px); }
  .is-firing .mascot-egg { animation-name: egg-arc-small; }
}
@keyframes egg-arc-small {
  0% { transform: translate(0, 0) rotate(25deg); opacity: 1; }
  55% { transform: translate(48px, -35px) rotate(126deg); opacity: 1; }
  100% { transform: translate(94px, 44px) rotate(285deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .is-asleep .mascot, .is-firing .mascot, .is-firing .mascot-egg, .mascot-sleep i { animation: none; }
}

.is-waking .mascot { animation: mascot-wake .76s ease-in-out both; }
.is-waking .voxel-launcher { visibility: hidden; }
@keyframes mascot-wake {
  0% { transform: translate3d(0, 64px, -24px) rotateZ(-7deg) rotateX(76deg) rotateY(-13deg); }
  43% { transform: translate3d(-4px, 50px, -15px) rotateZ(-5deg) rotateX(39deg) rotateY(-17deg); }
  78% { transform: translate3d(0, 10px, -3px) rotateX(-15deg) rotateY(-19deg); }
  100% { transform: translateY(3px) rotateX(-9deg) rotateY(-19deg); }
}
@media (max-width: 360px) {
  .mascot-egg { left: calc(50% + 66px); }
  .mascot-scene { overflow: clip; }
}
@media (prefers-reduced-motion: reduce) {
  .is-waking .mascot { animation: none; }
}

.voxel-leg {
  position: absolute;
  transform-style: preserve-3d;
  transform: translate3d(var(--hip), 57px, 0) rotateX(var(--bend, 0deg));
}
.voxel-leg-left { --hip: -20px; --step: -1; }
.voxel-leg-right { --hip: 20px; --step: 1; }
.is-asleep .voxel-leg {
  --bend: calc(5deg * var(--step));
  animation: legs-fall .7s ease-out both;
}
.is-waking .voxel-leg { animation: legs-stand .76s ease-in-out both; }
.is-firing .voxel-leg { animation: legs-brace .68s ease-out both; }
@keyframes legs-fall {
  0%, 20% { transform: translate3d(var(--hip), 57px, 0); }
  52% { transform: translate3d(var(--hip), 57px, 0) rotateX(calc(-20deg + 13deg * var(--step))); }
  79% { transform: translate3d(var(--hip), 57px, 0) rotateX(calc(16deg + 8deg * var(--step))); }
  100% { transform: translate3d(var(--hip), 57px, 0) rotateX(var(--bend)); }
}
@keyframes legs-stand {
  0% { transform: translate3d(var(--hip), 57px, 0) rotateX(calc(5deg * var(--step))); }
  42% { transform: translate3d(var(--hip), 57px, 0) rotateX(calc(-42deg + 13deg * var(--step))); }
  72% { transform: translate3d(var(--hip), 57px, 0) rotateX(calc(-13deg + 11deg * var(--step))); }
  100% { transform: translate3d(var(--hip), 57px, 0); }
}
@keyframes legs-brace {
  0%, 100% { transform: translate3d(var(--hip), 57px, 0); }
  26% { transform: translate3d(var(--hip), 57px, 0) rotateX(calc(14deg * var(--step))); }
}
@media (prefers-reduced-motion: reduce) {
  .is-asleep .voxel-leg, .is-waking .voxel-leg, .is-firing .voxel-leg { animation: none; }
}

.mascot-dock { min-height: 300px; }
.mascot-scene.is-roaming {
  position: fixed;
  z-index: 3;
  width: 238px;
  height: 270px;
  margin: 0;
  overflow: visible;
  transform: translate(-50%, -50%) scale(.58);
}
.is-walking .mascot { animation: mascot-walk .46s ease-in-out infinite; }
.is-walking .voxel-leg { animation: legs-walk .46s ease-in-out infinite; }
@keyframes mascot-walk {
  0%, 100% { transform: translateY(3px) rotateX(-7deg) rotateY(var(--walking-turn)); }
  25%, 75% { transform: translateY(-2px) rotateX(-7deg) rotateY(var(--walking-turn)); }
}
@keyframes legs-walk {
  0%, 100% { transform: translate3d(var(--hip), 57px, 0) rotateX(calc(var(--step) * 29deg)); }
  50% { transform: translate3d(var(--hip), 57px, 0) rotateX(calc(var(--step) * -29deg)); }
}
@media (max-width: 760px) {
  .mascot-dock { min-height: 246px; }
  .mascot-scene.is-roaming { transform: translate(-50%, -50%) scale(.49); }
}

.mascot-hint {
  display: none;
  position: absolute;
  z-index: 1;
  bottom: calc(100% + 17px);
  left: calc(50% + var(--hint-offset, 0px));
  transform: translateX(-50%);
  width: max-content;
  max-width: 240px;
  padding: 9px 13px;
  border: 2px solid #81bbff;
  background: #142742;
  color: #e7f2ff;
  box-shadow: 0 4px #0c1628;
  font: 1.15rem var(--pixel-font);
}
.mascot-hint::after {
  content: '';
  position: absolute;
  left: clamp(8px, calc(50% - var(--hint-offset, 0px) - 5px), calc(100% - 18px));
  bottom: -7px;
  width: 10px;
  height: 7px;
  background: #81bbff;
}
[data-hint-side="below"] .mascot-hint { top: calc(100% + 9px); bottom: auto; }
[data-hint-side="below"] .mascot-hint::after { top: -7px; bottom: auto; }
.mascot-scene:is(.is-guiding, .is-greeting) .mascot-hint { display: block; }
#play-button.is-highlighted {
  outline: 2px solid #c2e0ff;
  outline-offset: 4px;
  box-shadow: inset 0 -4px #478bda, 0 0 19px #78b8ff9e;
}

.voxel-arm {
  position: absolute;
  transform-style: preserve-3d;
  transform: translate3d(var(--shoulder-x), var(--shoulder-y), 2px) rotateZ(var(--arm-rest));
}
.voxel-arm-left { --shoulder-x: -39px; --shoulder-y: 13px; --arm-rest: 18deg; --arm-cheer: 147deg; }
.voxel-arm-right { --shoulder-x: 39px; --shoulder-y: 3px; --arm-rest: -32deg; --arm-cheer: -147deg; }
.mascot-confetti {
  position: absolute;
  left: 50%;
  top: 43%;
  display: none;
  pointer-events: none;
  z-index: 1;
}
.mascot-confetti i {
  position: absolute;
  width: 9px;
  height: 13px;
  background: var(--paper-color);
  opacity: 0;
  animation: mascot-paper .95s var(--paper-delay) ease-out both;
}
.mascot-confetti i:nth-child(3n) { width: 15px; height: 7px; }
.is-celebrating .mascot { animation: mascot-jump 1.35s ease-in-out both; }
.is-celebrating .voxel-arm { animation: mascot-arms-up 1.35s ease-in-out both; }
.is-celebrating .voxel-launcher { visibility: hidden; }
.is-celebrating .mascot-confetti { display: block; }
.is-celebrating .voxel-head .voxel-front {
  background:
    linear-gradient(#192e31,#192e31) 23% 43% / 15px 7px no-repeat,
    linear-gradient(#192e31,#192e31) 77% 43% / 15px 7px no-repeat,
    linear-gradient(#e9a29b,#e9a29b) 12% 65% / 17px 8px no-repeat,
    linear-gradient(#e9a29b,#e9a29b) 88% 65% / 17px 8px no-repeat,
    linear-gradient(#e8908d,#e8908d) 50% 70% / 12px 4px no-repeat,
    linear-gradient(#25453e,#25453e) 50% 68% / 22px 12px no-repeat,
    linear-gradient(#b3dfab,#b3dfab) 50% 86% / 114px 37px no-repeat,
    var(--front);
}
@keyframes mascot-jump {
  0%, 100% { transform: translateY(3px) rotateX(-9deg) rotateY(-12deg); }
  14% { transform: translateY(11px) rotateX(-7deg) rotateY(-12deg) scaleY(.95); }
  40% { transform: translateY(-66px) rotateX(-12deg) rotateY(10deg) rotateZ(-5deg); }
  65% { transform: translateY(5px) rotateX(-8deg) rotateY(-2deg) scaleY(.96); }
  81% { transform: translateY(-13px) rotateX(-9deg) rotateY(-8deg); }
}
@keyframes mascot-arms-up {
  0%, 100% { transform: translate3d(var(--shoulder-x), var(--shoulder-y), 2px) rotateZ(var(--arm-rest)); }
  36%, 70% { transform: translate3d(var(--shoulder-x), var(--shoulder-y), 2px) rotateZ(var(--arm-cheer)); }
}
@keyframes mascot-paper {
  0%, 15% { opacity: 0; transform: translate(0, 0) rotate(0deg); }
  21% { opacity: 1; }
  57% { opacity: 1; transform: translate(var(--paper-mid-x), var(--paper-mid-y)) rotate(170deg); }
  100% { opacity: 0; transform: translate(var(--paper-x), calc(var(--paper-y) + 35px)) rotate(350deg); }
}
@media (prefers-reduced-motion: reduce) {
  .is-celebrating .mascot, .is-celebrating .voxel-arm, .mascot-confetti i { animation: none; }
  .is-celebrating .mascot { transform: rotateX(-9deg) rotateY(-12deg); }
  .is-celebrating .voxel-arm {
    transform: translate3d(var(--shoulder-x), var(--shoulder-y), 2px) rotateZ(var(--arm-cheer));
  }
  .is-celebrating .mascot-confetti i {
    opacity: 1;
    transform: translate(var(--paper-mid-x), var(--paper-mid-y)) rotate(25deg);
  }
}

.mascot-hint {
  max-width: 290px;
  line-height: 1.35;
  text-align: center;
}

.tile.is-highlighted, .discord-button.is-highlighted {
  outline: 2px solid #c2e0ff;
  outline-offset: 4px;
  box-shadow: 0 0 19px #78b8ff9e;
}
@media (min-width: 850px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.history-story {
  max-width: 850px;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: clamp(18px, 4vw, 38px);
  border: 1px solid #354f73;
  background: #192940;
}
.story-copy h2 { font: 1.5rem var(--pixel-font); }
.story-copy p { color: #d3ddce; line-height: 1.55; }
.story-copy .story-sources { margin: 18px 0 0; font-size: .87rem; }
@media (max-width: 670px) {
  .history-story { grid-template-columns: 1fr; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.history-story {
  background:
    radial-gradient(ellipse at 20% 66%, #334c73 0%, transparent 42%),
    linear-gradient(130deg, #1f3453, #14223a 76%);
}
.story-bubble {
  position: relative;
  min-height: 7rem;
  padding: 15px 17px;
  margin: 0 0 13px;
  background: #deeaff;
  border: 2px solid #7897c5;
  box-shadow: 0 4px #0b1528;
}
.story-bubble::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 28px;
  width: 14px;
  height: 18px;
  background: #deeaff;
  clip-path: polygon(0 0,100% 0,100% 100%,68% 100%,68% 67%,35% 67%,35% 35%,0 35%);
}
.story-copy .story-bubble p { color: #172845; margin: 0; }
#story-line.is-typing::after {
  content: '';
  display: inline-block;
  vertical-align: -.1em;
  width: .32em;
  height: .86em;
  margin-left: .17em;
  background: #496ca4;
  animation: story-cursor .8s step-end infinite;
}
.story-controls { display: flex; align-items: center; gap: 12px; }
#story-progress { color: var(--muted); font: .9rem var(--pixel-font); }
.is-talking .voxel-head .voxel-front::before {
  content: '';
  position: absolute;
  top: 61%;
  left: calc(50% - 7px);
  width: 14px;
  height: 10px;
  background: #375851;
  animation: story-mouth .35s steps(2, end) infinite alternate;
}
@keyframes story-mouth {
  from { transform: scaleY(.4); }
  to { transform: scaleY(1); }
}
@keyframes story-cursor { 50% { opacity: 0; } }
@media (max-width: 670px) {
  .story-bubble::before { left: 18px; top: -12px; width: 18px; height: 12px; transform: rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) {
  #story-line.is-typing::after, .is-talking .voxel-head .voxel-front::before { animation: none; }
}

html { scroll-padding-top: 76px; }
@media (max-width: 760px) {
  html { scroll-padding-top: 104px; }
}
@media (max-width: 355px) {
  .site-nav a svg { display: none; }
}

.mascot-scene.is-greeting .mascot,
.mascot-scene:is(.is-guiding, .is-talking):not(.is-celebrating) .mascot {
  animation: none;
  transform: none;
}
.mascot-scene.is-greeting .voxel-arm-right { animation: mascot-wave 1.25s ease-in-out both; }
@keyframes mascot-wave {
  0%, 100% { transform: translate3d(var(--shoulder-x), var(--shoulder-y), 2px) rotateZ(var(--arm-rest)); }
  20%, 55%, 80% { transform: translate3d(var(--shoulder-x), var(--shoulder-y), 2px) rotateZ(-152deg); }
  36%, 67% { transform: translate3d(var(--shoulder-x), var(--shoulder-y), 2px) rotateZ(-120deg); }
}
.mascot-scene:is(.is-guiding, .is-talking):not(.is-celebrating) .voxel-arm { transition: transform .24s ease-out; }
.mascot-scene:is(.is-guiding, .is-talking):not(.is-celebrating)[data-pointing-arm="left"] .voxel-arm-left,
.mascot-scene:is(.is-guiding, .is-talking):not(.is-celebrating)[data-pointing-arm="right"] .voxel-arm-right {
  transform: translate3d(var(--shoulder-x), var(--shoulder-y), 2px) rotateZ(var(--point-angle));
}
.mascot-scene:is(.is-greeting, .is-guiding, .is-talking) .voxel-launcher { visibility: hidden; }
.is-guiding.is-celebrating .mascot-hint { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .mascot-scene:is(.is-guiding, .is-talking):not(.is-celebrating) .voxel-arm { transition: none; }
}

.mascot-scene:where([data-costume]) .voxel-bib .voxel-front {
  background:
    linear-gradient(#e9ead3,#e9ead3) 73% 30% / 8px 8px no-repeat,
    linear-gradient(#202b2c,#202b2c) center / 5px 100% no-repeat,
    var(--costume-color);
}
.mascot-scene[data-costume] .voxel-bib .voxel-side {
  background: color-mix(in srgb, var(--costume-color), #171718 33%);
}
.voxel-syringe, .voxel-syringe-fill, .voxel-syringe-plunger { display: none; }
[data-costume="medic"] :is(.voxel-syringe, .voxel-syringe-fill, .voxel-syringe-plunger) { display: block; }
[data-costume="medic"] .voxel-launcher { visibility: hidden; }
[data-costume="medic"] .voxel-bib .voxel-front {
  background:
    linear-gradient(#c54b64,#c54b64) 77% 33% / 5px 13px no-repeat,
    linear-gradient(#c54b64,#c54b64) 81% 38% / 13px 5px no-repeat,
    linear-gradient(#8daba8,#8daba8) center / 5px 100% no-repeat,
    var(--costume-color);
}
[data-costume="bandana"] .voxel-head .voxel-front::before {
  content: '';
  position: absolute;
  inset: 49% 1% 4%;
  background: linear-gradient(90deg, #a32641 0 15%, #d64b57 15% 80%, #a82d43 80%);
  clip-path: polygon(0 0,100% 0,100% 52%,90% 52%,90% 72%,72% 72%,72% 86%,60% 86%,60% 100%,38% 100%,38% 86%,21% 86%,21% 71%,10% 71%,10% 53%,0 53%);
}
[data-costume="mask"] .voxel-head .voxel-front::before {
  content: '';
  position: absolute;
  inset: 3% 7% 3%;
  clip-path: polygon(9% 0,91% 0,91% 9%,100% 9%,100% 78%,82% 78%,82% 90%,67% 90%,67% 100%,33% 100%,33% 90%,18% 90%,18% 78%,0 78%,0 9%,9% 9%);
  background:
    linear-gradient(#a75ec5,#a75ec5) 22% 30% / 19px 31px no-repeat,
    linear-gradient(#272131,#272131) 23% 36% / 31px 13px no-repeat,
    linear-gradient(#272131,#272131) 77% 36% / 31px 13px no-repeat,
    linear-gradient(#35a49b,#35a49b) 81% 46% / 10px 24px no-repeat,
    linear-gradient(#c74464,#c74464) 50% 56% / 14px 13px no-repeat,
    linear-gradient(#941c4b,#941c4b) 50% 77% / 34px 6px no-repeat,
    #efe8da;
}
.mascot-scene.is-performing .mascot { animation: costume-show .95s ease-in-out both; }
.mascot-scene.is-performing[data-costume="bandana"] .voxel-arm-left { animation: costume-bandana .95s ease-in-out both; }
.mascot-scene.is-performing[data-costume="medic"] .voxel-arm-right { animation: costume-lift 1.4s ease-in-out both; }
.mascot-scene.is-performing[data-costume="medic"] .voxel-syringe-plunger { animation: costume-press 1.4s ease-in-out both; }
.mascot-scene.is-performing[data-costume="medic"] .voxel-syringe-fill { animation: costume-fill 1.4s both; }
.costume-splash { position: absolute; left: calc(50% - 65px); top: 55%; pointer-events: none; display: none; }
.is-performing[data-costume="medic"] .costume-splash { display: block; }
.costume-splash i {
  position: absolute;
  width: 10px;
  height: 7px;
  opacity: 0;
  background: #54edd3;
  box-shadow: inset -3px -2px #1f9f92;
  animation: costume-drop .8s calc(.48s + var(--drop-delay)) ease-out both;
}
@keyframes costume-show {
  from, to { transform: rotateX(-7deg) rotateY(-12deg); }
  45% { transform: translateY(-8px) rotateX(-10deg) rotateY(26deg); }
}
@keyframes costume-bandana {
  from, to { transform: translate3d(var(--shoulder-x), var(--shoulder-y), 2px) rotateZ(var(--arm-rest)); }
  43% { transform: translate3d(var(--shoulder-x), var(--shoulder-y), 14px) rotateZ(-125deg); }
}
@keyframes costume-lift {
  from, to { transform: translate3d(var(--shoulder-x), var(--shoulder-y), 2px) rotateZ(var(--arm-rest)); }
  35%, 75% { transform: translate3d(var(--shoulder-x), var(--shoulder-y), 10px) rotateZ(-27deg); }
}
@keyframes costume-press {
  from, 35%, to { transform: translate3d(var(--x), var(--y), var(--z)); }
  62%, 75% { transform: translate3d(calc(var(--x) + 10px), var(--y), var(--z)); }
}
@keyframes costume-fill {
  from, 35%, to { opacity: 1; }
  65%, 90% { opacity: .15; }
}
@keyframes costume-drop {
  0% { opacity: 1; transform: translate(0, 0); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--drop-x), var(--drop-y)) rotate(50deg); }
}
@media (prefers-reduced-motion: reduce) {
  .mascot-scene.is-performing :is(.mascot, .voxel-arm, .voxel-syringe-plunger, .voxel-syringe-fill),
  .costume-splash i { animation: none; }
}

.costume-prop {
  position: absolute;
  display: none;
  width: 128px;
  height: 72px;
  background: url('./assets/metiers-voxel.png') var(--sprite-x, 0) var(--sprite-y, 0) / 512px 288px no-repeat;
  image-rendering: pixelated;
  backface-visibility: hidden;
  pointer-events: none;
}
.costume-prop-hat { left: -64px; top: -125px; transform: translateZ(55px) scale(1.2); }
.costume-prop-face { left: -64px; top: -81px; transform: translateZ(52px); }
.costume-prop-held { left: -34px; top: -6px; transform: translateZ(26px); }
.costume-prop-ground { left: -174px; top: 28px; transform: translateZ(19px); }

.mascot-scene:is(.is-on-home, .is-on-jobs) .voxel-launcher { visibility: hidden; }
[data-costume="mayor"] .voxel-bib .voxel-front {
  overflow: hidden;
  background: #433b5b;
}
[data-costume="mayor"] .voxel-bib .voxel-front::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 23px;
  height: 110px;
  transform: translate(-50%, -50%) rotate(-44deg);
  background: linear-gradient(90deg, #2559c5 0 33.33%, #fff8f0 33.33% 66.67%, #e6384b 66.67%);
  box-shadow: 0 0 0 1px #232439;
}
[data-costume="police"] .voxel-bib .voxel-front {
  background: linear-gradient(#e9ba62,#e9ba62) 72% 33% / 11px 9px no-repeat, linear-gradient(#273b58,#273b58) center / 5px 100% no-repeat, #3f6393;
}
[data-costume="commissioner"] .voxel-bib .voxel-front {
  background: linear-gradient(#ddaf6b,#ddaf6b) 71% 28% / 8px 8px no-repeat, linear-gradient(90deg,#8b6042 0 34%,#343f58 34% 64%,#8b6042 64%);
}
[data-costume="thief"] .voxel-bib .voxel-front {
  background: repeating-linear-gradient(#282731 0 8px, #ede9de 8px 14px);
}
[data-costume="spy"] .voxel-bib .voxel-front,
[data-costume="hacker"] .voxel-bib .voxel-front {
  background: linear-gradient(132deg, #55566a 31%, transparent 31%) left / 55% 100% no-repeat, linear-gradient(224deg,#55566a 33%,transparent 33%) right / 55% 100% no-repeat, linear-gradient(90deg,#35374a 0 43%,#222735 43% 57%,#35374a 57%);
}
[data-costume="dress"] .voxel-bib .voxel-front {
  background: linear-gradient(#df719b,#df719b) center 68% / 62px 9px no-repeat, #a84870;
}
[data-costume="dress"] .voxel-head .voxel-front::before {
  content: '';
  position: absolute;
  top: 61%;
  left: 42%;
  width: 17%;
  height: 13%;
  background: #d63564;
  clip-path: polygon(0 28%,25% 28%,25% 8%,47% 8%,47% 20%,57% 20%,57% 8%,78% 8%,78% 28%,100% 28%,100% 60%,78% 60%,78% 82%,25% 82%,25% 60%,0 60%);
}
[data-costume="dress"] .voxel-bib .voxel-front::before {
  content: '';
  position: absolute;
  top: 52%;
  left: -18%;
  width: 136%;
  height: 53%;
  background: #ba537e;
  clip-path: polygon(13% 0,87% 0,100% 100%,0 100%);
}
:is([data-costume="guard"], [data-costume="mobster"]) .voxel-bib .voxel-front {
  background: linear-gradient(90deg,#25262c 0 35%,#e5e3d8 35% 45%,#20212a 45% 55%,#e5e3d8 55% 65%,#25262c 65%);
}
[data-costume="dealer"] .voxel-bib .voxel-front {
  background: linear-gradient(#ffc263,#ffc263) 73% 30% / 12px 9px no-repeat, linear-gradient(90deg,#b03748 0 29%,#ede2c9 29% 71%,#b03748 71%);
}
:is([data-costume="police"], [data-costume="commissioner"]) .costume-prop-hat { display: block; }
[data-costume="thief"] .costume-prop-hat { display: block; --sprite-x: -128px; }
:is([data-costume="spy"], [data-costume="hacker"], [data-costume="mobster"]) .costume-prop-hat { display: block; --sprite-x: -256px; }
[data-costume="dealer"] .costume-prop-face { display: block; --sprite-x: -384px; }
[data-costume="guard"] .costume-prop-face { display: block; --sprite-x: -128px; --sprite-y: -216px; }
[data-costume="mobster"] .costume-prop-face { display: block; --sprite-y: -144px; top: -68px; left: -40px; }
:is([data-costume="police"], [data-costume="commissioner"]) .costume-prop-held { display: block; --sprite-y: -72px; }
[data-costume="sniper"] .costume-prop-held { display: block; --sprite-x: -128px; --sprite-y: -72px; }
[data-costume="armorer"] .costume-prop-ground { display: block; --sprite-x: -256px; --sprite-y: -72px; }
[data-costume="spy"] .costume-prop-ground { display: block; --sprite-x: -384px; --sprite-y: -72px; }
[data-costume="bartender"] .costume-prop-ground { display: block; --sprite-x: -128px; --sprite-y: -144px; }
[data-costume="tent"] .costume-prop-ground { display: block; --sprite-x: -256px; --sprite-y: -144px; }
[data-costume="hacker"] .costume-prop-ground { display: block; --sprite-x: -384px; --sprite-y: -144px; }
[data-costume="plant"] .costume-prop-ground { display: block; --sprite-y: -216px; transform-origin: center bottom; }

.voxel-car {
  display: none;
  position: absolute;
  transform-style: preserve-3d;
  transform: translate3d(-126px, 94px, 12px) rotateY(-26deg);
}
[data-costume="dealer"] .voxel-car { display: block; animation: dealership-turn 3.2s linear infinite; }
.mascot-scene.is-performing[data-costume="dealer"] .mascot { animation: costume-jump 1.8s ease-in-out both; }
.is-performing[data-costume="bartender"] .costume-prop-ground { animation: costume-shake .29s ease-in-out 4 alternate; }

.is-performing[data-costume="plant"] .costume-prop-ground { animation: costume-grow 1.35s cubic-bezier(.15,.55,.3,1) both; }
.is-performing[data-costume="plant"] .voxel-arm-left { --clap: -66deg; }
.is-performing[data-costume="plant"] .voxel-arm-right { --clap: 66deg; }
.is-performing[data-costume="plant"] .voxel-arm { animation: costume-clap .29s .35s ease-in-out 3; }
@keyframes dealership-turn {
  from { transform: translate3d(-126px, 94px, 12px) rotateY(-26deg); }
  to { transform: translate3d(-126px, 94px, 12px) rotateY(334deg); }
}
@keyframes costume-jump {
  0%, 100% { transform: rotateX(-10deg) rotateY(-12deg); }
  21%, 63% { transform: translateY(-42px) rotateX(-12deg) rotateY(6deg); }
  42%, 84% { transform: translateY(3px) rotateX(-8deg) rotateY(-12deg); }
}
@keyframes costume-shake {
  from { transform: translate3d(-4px, -6px, 19px) rotateZ(-14deg); }
  to { transform: translate3d(5px, -15px, 19px) rotateZ(14deg); }
}
@keyframes costume-grow {
  0% { transform: translateZ(19px) scaleY(.18); }
  80% { transform: translateZ(19px) scaleY(1.06); }
  100% { transform: translateZ(19px) scaleY(1); }
}
@keyframes costume-clap {
  0%, 100% { transform: translate3d(var(--shoulder-x), var(--shoulder-y), 17px) rotateZ(var(--arm-rest)); }
  53% { transform: translate3d(var(--shoulder-x), var(--shoulder-y), 28px) rotateZ(var(--clap)); }
}
@media (prefers-reduced-motion: reduce) {
  .mascot-scene.is-performing[data-costume="dealer"] .mascot,
  [data-costume="dealer"] .voxel-car,
  .is-performing:is([data-costume="bartender"], [data-costume="spy"], [data-costume="plant"]) :is(.voxel-arm, .costume-prop-ground) { animation: none; }
}

.voxel-medical {
  display: none;
  position: absolute;
  transform-style: preserve-3d;
  transform: translate3d(-135px, 26px, 22px);
}
[data-costume="medic"] .voxel-medical { display: block; }
.voxel-medical::before {
  content: '';
  position: absolute;
  width: 82px;
  height: 24px;
  top: 38px;
  left: -30px;
  background: linear-gradient(#85a9a0 0 29%, #405e58 29% 100%);
  border: 2px solid #293e3d;
}

.voxel-assassin-cape, .voxel-assassin-buckle, .voxel-assassin-collar { display: none; }
[data-costume="assassin"] :is(.voxel-assassin-cape, .voxel-assassin-buckle, .voxel-assassin-collar) { display: block; }
[data-costume="assassin"] :is(.voxel-ear, .voxel-sprout) { display: none; }
[data-costume="assassin"] .voxel-head .voxel-side { background: #a7a395; }
[data-costume="assassin"] .voxel-head .voxel-top { background: #f3eee1; }
[data-costume="assassin"] .voxel-head .voxel-back { background: #e4dfd1; }
[data-costume="assassin"] .voxel-head .voxel-front::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, #bbb6a9 5%, #fbf7e9 32% 64%, #cfcbba 82%);
  clip-path: polygon(0 0,100% 0,100% 100%,80% 100%,80% 85%,91% 85%,91% 29%,74% 29%,74% 21%,63% 21%,50% 38%,37% 21%,26% 21%,26% 29%,9% 29%,9% 85%,20% 85%,20% 100%,0 100%);
}
[data-costume="assassin"] .voxel-bib .voxel-front {
  background:
    linear-gradient(#78453e,#78453e) center 79% / 100% 12px no-repeat,
    linear-gradient(133deg, transparent 46%, #ad4859 46% 58%, transparent 58%),
    linear-gradient(90deg, #c0bba9 0 15%, #efecdf 15% 84%, #a9a495 84%);
}
[data-costume="assassin"] .voxel-assassin-cape .voxel-back {
  background:
    linear-gradient(90deg, #a54b59 0 7%, transparent 7% 93%, #a54b59 93%),
    linear-gradient(90deg, #c5bfb0, #f3ecdb 48%, #c9c4b8);
}
[data-costume="assassin"] .voxel-assassin-cape .voxel-back::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 16px;
  width: 40px;
  height: 39px;
  background: #884253;
  clip-path: polygon(50% 0,60% 19%,56% 30%,86% 20%,100% 28%,71% 47%,81% 57%,64% 62%,60% 79%,50% 100%,40% 79%,36% 62%,19% 57%,29% 47%,0 28%,14% 20%,44% 30%,40% 19%);
}
.mascot-scene[data-costume="assassin"]:not(.is-performing, .is-walking, .is-asleep, .is-waking, .is-greeting, .is-talking, .is-guiding, .is-celebrating, .is-firing, .is-asking, .is-knocked, .is-giving-key) .mascot {
  animation: none;
  transform: rotateX(-7deg) rotateY(-12deg);
}
.mascot-scene.is-performing[data-costume="assassin"] .mascot { animation: assassin-cape-reveal 2.1s ease-in-out both; }
@keyframes assassin-cape-reveal {
  0%, 100% { transform: rotateX(-7deg) rotateY(-12deg); }
  33%, 67% { transform: rotateX(-7deg) rotateY(176deg); }
}
@media (prefers-reduced-motion: reduce) {
  .mascot-scene.is-performing[data-costume="assassin"] .mascot { animation: none; transform: rotateX(-7deg) rotateY(176deg); }
}

.jobs-preview { display: none; }
@media (min-width: 900px) {
  .jobs-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(350px, 34vw, 520px);
    align-items: start;
    gap: clamp(24px, 4vw, 60px);
  }
  .jobs-catalog .jobs { max-width: none; }
  .jobs-catalog .filters { margin-top: 0; }
  .jobs-preview {
    display: block;
    position: sticky;
    top: 88px;
    z-index: 1;
    min-width: 0;
    padding: 18px 18px 14px;
    border: 1px solid #344b6e;
    background: #15213a;
  }
  .jobs-preview h2 {
    margin-bottom: 12px;
    color: #dfeaff;
    font: 1.15rem var(--pixel-font);
  }
  .jobs-preview-stage {
    padding-inline-start: 22px;
    background:
      radial-gradient(ellipse at 50% 76%, #2b4064 3%, transparent 57%),
      linear-gradient(#1b2c47, #0e192c);
    border: 1px solid #2c4161;
  }
  .jobs-preview-stage .mascot-scene {
    height: clamp(300px, 40vh, 420px);
  }
  #job-preview-name {
    margin: 14px 0 0;
    text-align: center;
    color: var(--accent-blue);
    font-weight: 700;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mascot-scene.is-roaming:not(.is-guiding) .mascot { animation: none; }
}

.mascot-scene:is(.is-asleep, .is-waking, .is-greeting, .is-guiding, .is-talking, .is-firing) .costume-prop-held {
  visibility: hidden;
}
.mascot-scene.is-firing:not(.is-on-home, .is-on-jobs) .voxel-launcher { visibility: visible; }

.is-asking .mascot-hint { display: block; }
.mascot-scene.is-asking .mascot { animation: mascot-question .85s ease-in-out both; }
.is-asking .voxel-arm-right { animation: question-gesture .85s ease-in-out both; }
.is-asking .costume-prop-held { visibility: hidden; }
@keyframes mascot-question {
  0%, 100% { transform: rotateX(-7deg) rotateY(-12deg); }
  45%, 70% { transform: rotateX(-6deg) rotateY(-8deg) rotateZ(-11deg); }
}
@keyframes question-gesture {
  0%, 100% { transform: translate3d(var(--shoulder-x), var(--shoulder-y), 2px) rotateZ(var(--arm-rest)); }
  40%, 68% { transform: translate3d(var(--shoulder-x), var(--shoulder-y), 2px) rotateZ(-121deg); }
}
@media (prefers-reduced-motion: reduce) {
  .mascot-scene.is-asking :is(.mascot, .voxel-arm-right) { animation: none; }
}

.player-status { white-space: nowrap; }
.player-status[data-online="true"] i, .server-state[data-online="true"] i { background: #81bbff; }
@media (max-width: 450px) {
  .player-status { gap: 5px; padding-inline: 6px; font-size: 12px; }
}

[data-costume="builder"] .voxel-sprout { display: none; }
[data-costume="builder"] .costume-prop-hat {
  display: block;
  left: -77px;
  top: -135px;
  width: 154px;
  height: 54px;
  transform: translateZ(52px);
  background: none;
}
[data-costume="builder"] .costume-prop-hat::before {
  content: '';
  position: absolute;
  inset: 0 12px 9px;
  background:
    linear-gradient(#ffe97d,#ffe97d) 49% 0 / 17% 83% no-repeat,
    linear-gradient(90deg, #ce8d20 0 18%, #ffc83d 18% 72%, #e6a722 72%);
  clip-path: polygon(0 100%,0 58%,8% 58%,8% 34%,20% 34%,20% 16%,37% 16%,37% 0,64% 0,64% 16%,81% 16%,81% 34%,93% 34%,93% 59%,100% 59%,100% 100%);
}
[data-costume="builder"] .costume-prop-hat::after {
  content: '';
  position: absolute;
  inset: 38px 0 2px;
  background: linear-gradient(#ffe378 0 28%, #f7bd33 28% 72%, #ac731e 72%);
  clip-path: polygon(5% 0,95% 0,95% 20%,100% 20%,100% 76%,93% 76%,93% 100%,7% 100%,7% 76%,0 76%,0 20%,5% 20%);
}

.is-asking .mascot-hint { padding-bottom: 58px; }
.bug-shortcut {
  position: fixed;
  z-index: 4;
  transform: translateX(-50%);
  min-height: 24px;
  padding: 2px 8px;
  border: 1px solid #88bbfa;
  background: #101f36;
  color: #e6f2ff;
  font-size: 13px;
  font-weight: 700;
}
.bug-shortcut:hover { background: #244b7b; }
.bug-form { display: grid; gap: 12px; }
.bug-form label { display: grid; gap: 4px; }
.bug-form textarea {
  resize: vertical;
  min-height: 5rem;
  padding: 10px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid #4a5d7a;
}
.bug-form input[name="answer"] { width: 7rem; }
.bug-feedback { margin: 0; min-height: 1.5em; }
#bug-dialog { max-height: calc(100dvh - 24px); }

.mascot-scene.is-greeting .voxel-arm-right { animation: kiro-wave-loop .86s ease-in-out infinite alternate; }
@keyframes kiro-wave-loop {
  0% { transform: translate3d(var(--shoulder-x), var(--shoulder-y), 2px) rotateZ(-108deg); }
  45% { transform: translate3d(var(--shoulder-x), var(--shoulder-y), 2px) rotateZ(-151deg); }
  100% { transform: translate3d(var(--shoulder-x), var(--shoulder-y), 2px) rotateZ(-118deg); }
}
.mascot-scene.is-knocked .mascot-hint { display: block; padding-bottom: 58px; }
.mascot-scene.is-knocked .mascot { animation: kiro-knockout .58s ease-in-out both; }
.is-knocked .costume-prop-held { visibility: hidden; }
@keyframes kiro-knockout {
  0% { transform: rotateX(-7deg) rotateY(-12deg); }
  24% { transform: translateY(-18px) rotateZ(9deg); }
  78% { transform: translate3d(0, 60px, -20px) rotateX(79deg) rotateZ(-17deg); }
  100% { transform: translate3d(0, 54px, -20px) rotateX(71deg) rotateZ(-15deg); }
}
@media (prefers-reduced-motion: reduce) {
  .mascot-scene.is-knocked .mascot {
    animation: none;
    transform: translate3d(0, 54px, -20px) rotateX(71deg) rotateZ(-15deg);
  }
}

.mascot-scene { pointer-events: none; }
.mascot-control {
  position: absolute;
  inset: 5px 0 12px;
  z-index: 3;
  padding: 0;
  border: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
  pointer-events: auto;
}
.voxel-face { -webkit-backface-visibility: hidden; }

.mascot-scene.is-parked {
  top: auto;
  left: auto;
  right: calc(-48px + env(safe-area-inset-right, 0px));
  bottom: calc(-52px + env(safe-area-inset-bottom, 0px));
  transform: scale(.49);
}

#history-dock { position: relative; }
.story-key {
  position: absolute;
  z-index: 4;
  top: calc(50% - 23px);
  left: min(calc(50% + 61px), calc(100% - 55px));
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  color: #ffdd73;
  background: #222b3c;
  border: 2px solid #dcb35b;
  box-shadow: 0 0 16px #e9c15a75;
  animation: key-handoff .9s ease-out both;
}
.story-key svg { width: 32px; height: 32px; stroke-width: 2.5; }
.story-key:hover:not(:disabled) { background: #3a3740; color: #fff3ad; }
.story-key:disabled { cursor: default; }
.mascot-scene.is-giving-key .mascot { animation: none; transform: none; }
.is-giving-key .voxel-arm-right {
  animation: offer-city-key .9s ease-out both;
  transform: translate3d(var(--shoulder-x), var(--shoulder-y), 2px) rotateZ(-93deg);
}
.is-giving-key :is(.voxel-launcher, .costume-prop-held) { visibility: hidden; }
@keyframes offer-city-key {
  from { transform: translate3d(var(--shoulder-x), var(--shoulder-y), 2px) rotateZ(var(--arm-rest)); }
  to { transform: translate3d(var(--shoulder-x), var(--shoulder-y), 2px) rotateZ(-93deg); }
}
@keyframes key-handoff {
  0%, 25% { opacity: 0; transform: translate(-29px, 13px) rotate(-30deg) scale(.5); }
  100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .story-key, .is-giving-key .voxel-arm-right { animation: none; }
}

.help-launch {
  position: fixed;
  z-index: 3;
  left: calc(12px + env(safe-area-inset-left, 0px));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 12px;
  background: #172941;
  border: 1px solid #6faaf2;
  color: #e6f2ff;
  font: inherit;
  font-weight: 700;
}
.help-launch svg { width: 19px; height: 19px; color: var(--accent-blue); }
.help-launch:hover { background: #26456c; }
.help-actions { display: grid; gap: 10px; }
