@font-face {
  font-family: "Lanapixel";
  src: url("assets/fonts/lanapixel-latin-ext.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/poppins-500-basic.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #fff9e4;
  --green: #5bc972;
  --sky: #57c4c9;
  --sun: #f1e084;
  --ink: #191919;
  --teal: #006458;
  --navy: #161a35;
  --line: 4px solid var(--navy);
  --pixel-shadow: 6px 6px 0 var(--navy);
  --pixel-grid:
    linear-gradient(rgb(22 26 53 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(22 26 53 / 0.035) 1px, transparent 1px);
}

* {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
  cursor: url("assets/cursor-arrow-32.png") 0 0, auto;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--navy);
  font-family: "Lanapixel", "Courier New", monospace;
  image-rendering: pixelated;
}

main,
section,
footer {
  min-width: 0;
}

a {
  color: inherit;
  cursor: url("assets/cursor-hand-32.png") 14 3, pointer;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.itch-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 4px solid var(--navy);
  background: var(--green);
  box-shadow: 5px 5px 0 var(--navy);
}

.itch-button img {
  width: 22px;
  height: 22px;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: clamp(18px, 4vw, 54px) clamp(16px, 5vw, 72px);
  border-bottom: var(--line);
  background:
    var(--pixel-grid),
    var(--green);
  background-size: 8px 8px, 8px 8px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: -1;
  width: max(100vw, 100dvh);
  height: max(100vw, 100dvh);
  background: url("assets/hero-pattern.webp") center / cover no-repeat;
  image-rendering: pixelated;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(90deg) scale(1.08);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
b {
  font-weight: normal;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1;
}

h3 {
  margin: 12px 0 0;
  font-size: 22px;
}

.hero-window {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1120px, 100%);
  min-width: 0;
  border: var(--line);
  background: url("assets/xp-bg.png") center / cover no-repeat, var(--navy);
  box-shadow: var(--pixel-shadow);
}

.hero-window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 5px 6px 5px 9px;
  background: var(--navy);
  color: var(--cream);
}

.hero-window-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1;
  white-space: nowrap;
}

.hero-window-title img {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  object-fit: contain;
  image-rendering: pixelated;
  transform: scale(1.38);
}

.hero-window-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
}

.hero-window-control {
  position: relative;
  display: block;
  width: 30px;
  height: 28px;
  padding: 0;
  border-top: 2px solid #fff;
  border-right: 2px solid #424242;
  border-bottom: 2px solid #424242;
  border-left: 2px solid #fff;
  background: #c6c6c6;
  box-shadow: inset 2px 2px 0 #e9e9e9, inset -2px -2px 0 #808080;
  cursor: url("assets/cursor-hand-32.png") 14 3, pointer;
}

.hero-window-control:hover,
.hero-window-control:focus-visible {
  background: var(--cream);
  outline: 2px dotted var(--navy);
  outline-offset: -5px;
}

.hero-window-control:active {
  border-top-color: #424242;
  border-right-color: #fff;
  border-bottom-color: #fff;
  border-left-color: #424242;
  box-shadow: inset 2px 2px 0 #808080;
}

.hero-window-minimize::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 7px;
  width: 11px;
  height: 3px;
  background: var(--navy);
}

.hero-window-maximize::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 6px;
  width: 12px;
  height: 11px;
  border: 2px solid var(--navy);
  box-shadow: inset 0 2px 0 var(--navy);
}

.hero-window-close::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 3px;
  height: 3px;
  background: var(--navy);
  box-shadow:
    3px 3px 0 var(--navy),
    6px 6px 0 var(--navy),
    9px 9px 0 var(--navy),
    9px 0 0 var(--navy),
    6px 3px 0 var(--navy),
    3px 6px 0 var(--navy),
    0 9px 0 var(--navy);
}

.hero-window.is-system-minimized {
  display: none;
}

.system-restore-button {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: max(20px, env(safe-area-inset-left));
  z-index: 100;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  padding: 8px;
  border-top: 4px solid #fff;
  border-right: 4px solid #424242;
  border-bottom: 4px solid #424242;
  border-left: 4px solid #fff;
  background: var(--cream);
  box-shadow: inset 2px 2px 0 #e9e9e9, inset -2px -2px 0 #808080;
  cursor: url("assets/cursor-hand-32.png") 14 3, pointer;
}

.system-restore-button[hidden] {
  display: none;
}

.system-restore-button:hover,
.system-restore-button:focus-visible {
  background: var(--sky);
  outline: 3px dotted var(--navy);
  outline-offset: -9px;
}

.system-restore-button:active {
  border-top-color: #424242;
  border-right-color: #fff;
  border-bottom-color: #fff;
  border-left-color: #424242;
  box-shadow: inset 3px 3px 0 #808080;
}

.system-restore-button img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  image-rendering: pixelated;
}

.app-shell-ready:fullscreen .hero,
.app-shell-ready.app-css-fullscreen .hero {
  padding: 0;
}

.app-shell-ready:fullscreen .hero-window,
.app-shell-ready.app-css-fullscreen .hero-window {
  border: 0;
  box-shadow: none;
}

.app-shell-ready.app-css-fullscreen body {
  position: fixed;
  inset: 0;
}

@media (max-width: 620px) {
  .system-restore-button {
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(12px, env(safe-area-inset-left));
    width: 72px;
    height: 72px;
    padding: 7px;
    border-width: 3px;
  }

  .system-restore-button img {
    width: 46px;
    height: 46px;
  }
}

.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(260px, 0.9fr);
  align-items: center;
  gap: clamp(18px, 4vw, 54px);
  width: 100%;
  min-width: 0;
  min-height: min(72dvh, 690px);
  margin: 0;
  overflow: hidden;
  background: transparent;
}

.model-slot {
  position: relative;
  z-index: 2;
  min-height: clamp(340px, 52vw, 590px);
}

.hero-cactus-canvas {
  position: absolute;
  right: max(-30px, -4vw);
  bottom: -3%;
  width: min(112%, 610px);
}

.hero-cactus-canvas {
  z-index: 2;
  aspect-ratio: 1 / 1;
  height: auto;
  image-rendering: auto;
  touch-action: none;
}

.hero-menu {
  position: relative;
  z-index: 3;
  display: grid;
  align-items: center;
  justify-items: stretch;
  gap: 16px;
  padding: clamp(22px, 4vw, 56px);
}

.hero-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: clamp(56px, 7vw, 78px);
  padding: 14px clamp(18px, 3vw, 28px);
  border: var(--line);
  background: var(--cream);
  color: var(--navy);
  font: inherit;
  box-shadow: 4px 4px 0 var(--navy);
  font-size: clamp(20px, 2.7vw, 36px);
  font-weight: normal;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 160ms steps(2, end), box-shadow 160ms steps(2, end), background 160ms steps(2, end);
}

.hero-button:nth-child(1) {
  background: var(--sun);
}

.hero-button:nth-child(2) {
  background: var(--cream);
}

.hero-button:hover,
.hero-button:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--navy);
  outline: none;
}

.hero-button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--navy);
}

.hero-button-itch {
  background: #fa5c5c;
}

.hero-button-itch img {
  width: clamp(22px, 2.3vw, 30px);
  height: clamp(22px, 2.3vw, 30px);
  object-fit: contain;
  image-rendering: pixelated;
  transform: translateY(-2px);
}

.strip-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 48px);
  padding: clamp(36px, 6vw, 74px) clamp(16px, 5vw, 72px);
  border-bottom: var(--line);
}

.strip-heading {
  align-self: start;
}

.strip-heading h2 {
  display: inline-block;
  max-width: 100%;
  padding: 12px 18px 10px;
  border: var(--line);
  background: var(--cream);
  color: var(--navy);
  box-shadow: var(--pixel-shadow);
}

.work {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
}

.work::before {
  content: none;
}

.work::after {
  content: none;
}

.work > * {
  position: relative;
  z-index: 2;
}

.work.strip-section {
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 46px);
}

.work .strip-heading {
  justify-self: center;
  text-align: center;
}

.team-card {
  min-width: 0;
  border: var(--line);
}

.games-desktop {
  position: relative;
  width: 100%;
  min-height: clamp(610px, 52vw, 690px);
  overflow: hidden;
  background: transparent;
}

.desktop-shortcuts {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: 46%;
}

.game-shortcut {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 154px;
  padding: 9px 6px 7px;
  border: 2px solid transparent;
  background: transparent;
  color: var(--navy);
  font: inherit;
  text-align: center;
  user-select: none;
  touch-action: manipulation;
  cursor: url("assets/cursor-hand-32.png") 14 3, pointer;
  transition: background-color 120ms steps(2, end), transform 120ms steps(2, end);
}

.game-shortcut:nth-child(1) {
  top: 7%;
  left: 8%;
}

.game-shortcut:nth-child(2) {
  top: 15%;
  left: 54%;
}

.game-shortcut:nth-child(3) {
  top: 39%;
  left: 21%;
}

.game-shortcut:nth-child(4) {
  top: 57%;
  left: 58%;
}

.game-shortcut:nth-child(5) {
  top: 72%;
  left: 8%;
}

.game-shortcut:hover,
.game-shortcut:focus-visible {
  background: rgb(21 89 200 / 0.18);
  outline: 2px dotted var(--navy);
  outline-offset: -4px;
  transform: translate(-2px, -2px);
}

.game-shortcut.is-selected {
  background: #1559c8;
  color: #fff;
  outline: 2px dotted #fff;
  outline-offset: -4px;
}

.game-shortcut.is-dragging {
  z-index: 6;
  background: rgb(21 89 200 / 0.28);
  outline: 2px dotted var(--navy);
  outline-offset: -4px;
  transform: none;
  transition: none;
}

@media (min-width: 981px) {
  .game-shortcut {
    touch-action: none;
  }
}

.game-shortcut-icon {
  position: relative;
  display: block;
  width: 112px;
  height: 112px;
}

.game-shortcut-icon::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: -2px;
  width: 22px;
  height: 22px;
  border-radius: 3px;
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 19 V12 C5 9 7 7 10 7 H16' fill='none' stroke='%23161a35' stroke-width='2.6' stroke-linecap='round'/%3E%3Cpath d='M13 3 L20 7 L13 11 Z' fill='%23161a35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 68%;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.5);
}

.game-shortcut-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(2px 3px 2px rgb(0 0 0 / 0.4));
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.game-shortcut-name {
  max-width: 100%;
  padding: 3px 5px 2px;
  font-size: 17px;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-shadow: 2px 2px 0 var(--cream);
}

.game-shortcut.is-selected .game-shortcut-name {
  text-shadow: 2px 2px 0 var(--navy);
}

.game-detail-window {
  position: absolute;
  top: 28px;
  right: 2%;
  z-index: 4;
  width: min(60%, 760px);
  min-height: 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: var(--line);
  background: #c6c6c6;
  box-shadow: 8px 8px 0 var(--navy);
}

.game-detail-window.is-positioned {
  top: var(--game-window-top);
  right: auto;
  left: var(--game-window-left);
}

.game-detail-window.is-dragging {
  z-index: 7;
}

.game-detail-window.is-minimized,
.game-detail-window.is-closed {
  display: none;
}

.game-detail-window.is-maximized {
  inset: 18px;
  width: auto;
  display: flex;
  flex-direction: column;
}

.game-window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 5px 6px 5px 8px;
  background: var(--navy);
  color: var(--cream);
  cursor: move;
  touch-action: none;
  user-select: none;
}

.game-window-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  line-height: 1;
}

.game-window-title img {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border: 2px solid var(--cream);
  object-fit: cover;
}

.game-window-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-window-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
}

.game-window-control {
  position: relative;
  display: block;
  width: 27px;
  height: 25px;
  padding: 0;
  border-top: 2px solid #fff;
  border-right: 2px solid #424242;
  border-bottom: 2px solid #424242;
  border-left: 2px solid #fff;
  background: #c6c6c6;
  box-shadow: inset 1px 1px 0 #e9e9e9, inset -1px -1px 0 #808080;
  cursor: url("assets/cursor-hand-32.png") 14 3, pointer;
}

.game-window-control:focus-visible {
  outline: 2px dotted var(--cream);
  outline-offset: 2px;
}

.game-window-minimize::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 6px;
  width: 9px;
  height: 3px;
  background: var(--navy);
}

.game-window-maximize::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 5px;
  width: 10px;
  height: 9px;
  border: 2px solid var(--navy);
  box-shadow: inset 0 2px 0 var(--navy);
}

.game-window-close::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 3px;
  height: 3px;
  background: var(--navy);
  box-shadow:
    3px 3px 0 var(--navy),
    6px 6px 0 var(--navy),
    9px 9px 0 var(--navy),
    9px 0 0 var(--navy),
    6px 3px 0 var(--navy),
    3px 6px 0 var(--navy),
    0 9px 0 var(--navy);
}

.game-window-body {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 0.95fr) minmax(190px, 1.05fr);
  gap: clamp(14px, 2vw, 22px);
  min-height: 0;
  padding: clamp(12px, 2vw, 20px);
  border-top: 4px solid var(--navy);
  background: var(--cream);
}

.game-detail-window.is-maximized .game-window-body {
  flex: 1;
  overflow: auto;
}

.game-detail-cover-frame {
  display: contents;
}

.game-detail-cover {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  aspect-ratio: 315 / 250;
  border: 3px solid var(--navy);
  object-fit: cover;
  background: #fff;
}

.game-detail-copy {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.game-detail-copy h3 {
  margin: 16px 0 10px;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1;
}

.game-detail-copy p {
  margin: 0 0 20px;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
}

.game-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.game-detail-meta span {
  padding: 5px 7px 3px;
  border: 2px solid var(--navy);
  background: var(--sun);
  font-size: 11px;
  line-height: 1;
}

.game-play-link {
  grid-column: 2;
  grid-row: 1;
  z-index: 2;
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  margin-top: auto;
  padding: 9px 12px;
  border: 3px solid var(--navy);
  background: #ff5f62;
  box-shadow: 4px 4px 0 var(--navy);
  font-size: 17px;
  line-height: 1;
}

.game-play-link:hover,
.game-play-link:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--navy);
  outline: none;
}

.game-play-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.team {
  background: transparent;
  color: var(--cream);
}

.team.strip-section {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.team h2 {
  color: var(--navy);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: clamp(22px, 3vw, 38px);
  width: min(1280px, 100%);
  text-align: left;
}

.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: clamp(14px, 1.5vw, 20px);
  border: var(--line);
  background: #251b35;
  color: var(--cream);
  overflow: hidden;
  animation: team-float 4.8s ease-in-out infinite;
  transition: transform 180ms steps(2, end), border-color 180ms steps(2, end);
}

.team-card:nth-child(2) {
  background: #1f05ac;
  animation-delay: -1.4s;
}

.team-card:nth-child(3) {
  background: #5920ff;
  animation-delay: -2.6s;
}

.team-card:hover,
.team-card:focus-within {
  transform: translateY(-5px);
  border-color: var(--cream);
}

.team-art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: clamp(190px, 22vw, 285px);
}

.team-art img {
  width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  margin: 0 auto;
}

.team-copy {
  margin-top: 14px;
  padding: 0;
  background: transparent;
}

.team-copy p {
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.55;
  color: var(--cream);
}

.team-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.team-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 3px solid var(--cream);
  background: rgb(25 25 25 / 0.32);
  color: var(--cream);
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  transition: background 160ms steps(2, end), color 160ms steps(2, end);
}

.team-links a img {
  width: 18px;
  height: 14px;
  image-rendering: pixelated;
  transform: translateY(-1px);
}

.team-links a:nth-child(2) img {
  width: 14px;
  height: 14px;
  transform: translateY(-2px);
}

.team-links a:hover,
.team-links a:focus-visible {
  background: var(--cream);
  color: var(--navy);
  outline: none;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(16px, 5vw, 72px);
  background:
    var(--pixel-grid),
    var(--navy);
  background-size: 8px 8px, 8px 8px;
  color: var(--cream);
}

.footer-socials {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 3px solid var(--cream);
  box-shadow: 4px 4px 0 var(--green);
  color: var(--cream);
  transition: transform 160ms steps(2, end), box-shadow 160ms steps(2, end), color 160ms steps(2, end);
}

.footer-social img {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  image-rendering: pixelated;
  transform: translateY(-2px);
}

.footer-social img.linkedin-icon {
  width: 14px;
  height: 14px;
  transform: translateY(-4px);
}

.footer-social:hover,
.footer-social:focus-visible {
  color: var(--green);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--green);
  outline: none;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-12px) rotate(2deg);
  }
}

@keyframes team-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

@keyframes sand-idle {
  0%,
  100% {
    transform: translate3d(-1px, 0, 0);
  }
  50% {
    transform: translate3d(1px, -2px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .strip-section {
    grid-template-columns: 1fr;
  }

  .hero-window {
    width: calc(100% - 32px);
    margin: 0 auto;
  }

  .hero-stage {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(300px, 1fr) auto;
    align-content: stretch;
    width: 100%;
    min-height: min(760px, calc(100dvh - 96px));
    margin: 0 auto;
  }

  .hero-menu {
    grid-row: 2;
    align-self: end;
    padding: 24px;
  }

  .model-slot {
    position: relative;
    z-index: 2;
    grid-row: 1;
    min-height: 0;
    align-self: stretch;
  }

  .hero-cactus-canvas {
    right: auto;
    bottom: -6%;
    left: 50%;
    width: min(
      78%,
      520px,
      calc(487px - 0.667 * clamp(18px, 4vw, 54px)),
      calc(66.7vh - 112px - 0.667 * clamp(18px, 4vw, 54px))
    );
    transform: translateX(-50%);
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .games-desktop {
    min-height: 0;
    padding: 24px;
  }

  .desktop-shortcuts {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(90px, 1fr));
    gap: 18px 14px;
    width: 100%;
  }

  .desktop-shortcuts .game-shortcut {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
  }

  .game-shortcut-icon {
    width: 88px;
    height: 88px;
  }

  .game-detail-window {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    min-height: 0;
    margin-top: 24px;
  }

  .game-detail-window.is-maximized {
    position: absolute;
    inset: 18px;
    width: auto;
    margin: 0;
  }

  .team-grid {
    width: min(720px, 100%);
  }
}

@media (max-width: 620px) {
  html {
    cursor: auto;
    scroll-padding-top: 10px;
  }

  a {
    cursor: pointer;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: max(10px, env(safe-area-inset-top)) 10px max(48px, calc(env(safe-area-inset-bottom) + 42px));
  }

  .hero::before {
    width: 145dvh;
    height: 145dvh;
    transform: translate(-50%, -50%) rotate(90deg);
  }

  .itch-button {
    padding: 9px 11px;
    box-shadow: 4px 4px 0 var(--navy);
  }

  .game-detail-window.is-positioned {
    top: auto;
    right: auto;
    left: auto;
  }

  .game-window-titlebar {
    cursor: default;
    touch-action: auto;
  }

  .hero-window {
    width: 100%;
    border-width: 3px;
    box-shadow: 4px 4px 0 var(--navy);
  }

  .hero-window-titlebar {
    min-height: 38px;
    padding: 4px 4px 4px 6px;
  }

  .hero-window-title {
    gap: 6px;
    max-width: calc(100% - 93px);
    font-size: clamp(13px, 4.2vw, 17px);
  }

  .hero-window-title img {
    width: 18px;
    height: 18px;
  }

  .hero-window-controls {
    gap: 3px;
  }

  .hero-window-control {
    width: 25px;
    height: 24px;
    box-shadow: inset 1px 1px 0 #e9e9e9, inset -1px -1px 0 #808080;
  }

  .hero-window-minimize::after {
    bottom: 4px;
    left: 6px;
    width: 9px;
  }

  .hero-window-maximize::after {
    top: 4px;
    left: 5px;
    width: 10px;
    height: 9px;
  }

  .hero-window-close::before {
    top: 4px;
    left: 4px;
  }

  .hero-stage {
    width: 100%;
    min-height: calc(100vh - max(110px, calc(env(safe-area-inset-top) + env(safe-area-inset-bottom) + 100px)));
    min-height: calc(100svh - max(110px, calc(env(safe-area-inset-top) + env(safe-area-inset-bottom) + 100px)));
    max-height: 760px;
    grid-template-rows: clamp(250px, 42vh, 340px) auto;
    grid-template-rows: clamp(250px, 42svh, 340px) auto;
    align-content: center;
  }

  .hero-menu {
    justify-self: center;
    gap: 26px;
    width: 100%;
    padding: 12px 14px 16px;
  }

  .hero-button {
    min-height: 48px;
    padding: 10px 12px;
    border-width: 3px;
    box-shadow: 4px 4px 0 var(--navy);
    font-size: clamp(17px, 5.6vw, 23px);
  }

  .hero-button-itch img {
    width: 18px;
    height: 18px;
  }

  .hero-button:hover,
  .hero-button:focus-visible {
    transform: translate(-2px, -2px);
    box-shadow: 7px 7px 0 var(--navy);
  }

  .model-slot {
    align-self: stretch;
    min-height: 0;
    overflow: visible;
  }

  .hero-cactus-canvas {
    top: 43%;
    bottom: auto;
    width: min(92vw, 380px);
    transform: translate(-50%, -50%);
  }

  .strip-section {
    gap: 24px;
    padding: 34px 14px 46px;
  }

  .strip-heading {
    width: 100%;
    text-align: center;
  }

  .strip-heading h2 {
    padding: 10px 12px 8px;
    box-shadow: 4px 4px 0 var(--navy);
  }

  h2 {
    font-size: clamp(30px, 10vw, 43px);
    text-wrap: balance;
  }

  .team-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .games-desktop {
    padding: 16px 10px;
  }

  .desktop-shortcuts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 6px;
  }

  .desktop-shortcuts .game-shortcut {
    gap: 6px;
    padding: 6px 2px 5px;
  }

  .game-shortcut-icon {
    width: 80px;
    height: 80px;
  }

  .game-shortcut-icon::after {
    width: 17px;
    height: 17px;
  }

  .game-shortcut-name {
    padding-inline: 3px;
    font-size: 14px;
  }

  .game-detail-window {
    margin-top: 22px;
    border-width: 3px;
    box-shadow: 4px 4px 0 var(--navy);
  }

  .game-detail-window.is-maximized {
    position: fixed;
    inset: 8px;
    z-index: 20;
    width: auto;
    max-height: calc(100dvh - 16px);
    margin: 0;
  }

  .game-window-titlebar {
    min-height: 38px;
    padding: 4px 4px 4px 6px;
  }

  .game-window-title {
    gap: 6px;
    font-size: 14px;
  }

  .game-window-title img {
    width: 18px;
    height: 18px;
  }

  .game-window-controls {
    gap: 3px;
  }

  .game-window-control {
    width: 25px;
    height: 24px;
  }

  .game-window-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 10px;
    border-top-width: 3px;
  }

  .game-detail-cover-frame {
    display: block;
    position: relative;
    flex: 0 0 auto;
  }

  .game-detail-cover {
    aspect-ratio: 16 / 7;
  }

  .game-detail-copy {
    flex: 0 0 auto;
  }

  .game-detail-copy h3 {
    margin-top: 10px;
    font-size: clamp(27px, 9vw, 36px);
  }

  .game-detail-copy p {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.6;
  }

  .game-play-link {
    position: absolute !important;
    right: 8px;
    bottom: 8px !important;
    width: auto;
    min-height: 34px;
    padding: 6px 10px;
    font-size: 13px;
    box-shadow: none;
  }

  .game-play-link:hover,
  .game-play-link:focus-visible {
    transform: none;
    box-shadow: none;
  }

  .team-grid {
    gap: 24px;
  }

  .team-art {
    height: clamp(210px, 68vw, 290px);
  }

  .team-card {
    width: 100%;
    padding: 14px;
    animation-name: team-float-mobile;
  }

  .team-copy {
    margin-top: 12px;
  }

  .team-copy p {
    font-size: clamp(14px, 4.2vw, 16px);
    line-height: 1.62;
  }

  .team-links {
    gap: 8px;
    margin-top: 14px;
  }

  .team-links a {
    flex: 1 1 0;
    justify-content: center;
    min-height: 42px;
    padding: 8px 7px;
    font-size: 11px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 14px max(28px, calc(env(safe-area-inset-bottom) + 18px));
    line-height: 1.45;
  }

  .footer-socials {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .footer-social {
    justify-content: center;
    min-height: 44px;
  }
}

@media (max-width: 380px) {
  .hero-menu {
    padding-inline: 10px;
  }

  .hero-button {
    font-size: 17px;
  }

  .team-links {
    flex-direction: column;
  }

  .team-links a {
    flex-basis: auto;
  }
}

.app-taskbar {
  display: none;
}

.app-shell-ready body {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.app-shell-ready main {
  height: 100%;
}

.app-shell-ready body > footer {
  display: none;
}

.app-shell-ready .hero {
  height: 100%;
  min-height: 0;
  padding: 14px;
  border-bottom: 0;
  overflow: clip;
}

.app-shell-ready .hero-window {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  margin: 0;
}

.app-shell-ready .hero-window-titlebar {
  flex: 0 0 auto;
}

.app-shell-ready .app-view {
  flex: 1 1 auto;
  min-height: 0;
}

.app-shell-ready .app-view[hidden] {
  display: none !important;
}

.app-shell-ready .hero-stage {
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
}

.app-shell-ready .hero-window > .strip-section {
  min-height: 0;
  padding: 18px 20px 20px;
  border: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: var(--navy) #c6c6c6;
  scrollbar-width: thin;
}

.app-shell-ready .hero-window > .strip-section::-webkit-scrollbar {
  width: 15px;
}

.app-shell-ready .hero-window > .strip-section::-webkit-scrollbar-track {
  background: #c6c6c6;
  border-left: 3px solid var(--navy);
}

.app-shell-ready .hero-window > .strip-section::-webkit-scrollbar-thumb {
  border: 3px solid #c6c6c6;
  background: var(--navy);
}

.app-shell-ready .strip-heading h2 {
  padding: 9px 14px 7px;
  font-size: clamp(32px, 4vw, 48px);
}

.app-shell-ready .work.strip-section,
.app-shell-ready .team.strip-section {
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
}

.app-shell-ready .games-desktop {
  height: 100%;
  min-height: 0;
}

.app-shell-ready .team-grid {
  align-self: start;
  width: 100%;
  gap: clamp(16px, 2vw, 24px);
}

.app-shell-ready .team-card {
  padding: 14px;
}

.app-shell-ready .team-art {
  height: clamp(170px, 19vw, 235px);
}

.app-shell-ready .team-copy p {
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.5;
}

.app-shell-ready .team-links {
  margin-top: 13px;
}

.app-shell-ready .app-taskbar {
  position: relative;
  z-index: 40;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  height: 58px;
  padding: 5px 7px;
  border-top: 4px solid var(--navy);
  background: var(--sun);
}

.app-start-button,
.app-task-tab,
.app-task-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 4px 12px;
  border-top: 3px solid #fff;
  border-right: 3px solid #424242;
  border-bottom: 3px solid #424242;
  border-left: 3px solid #fff;
  background: rgb(255 249 228 / 0.94);
  color: var(--navy);
  box-shadow: inset 1px 1px 0 #e9e9e9, inset -1px -1px 0 #808080;
  font: inherit;
  line-height: 1;
}

.app-start-button {
  min-width: 164px;
  justify-content: center;
  gap: 10px;
  font-size: 26px;
  cursor: url("assets/cursor-hand-32.png") 14 3, pointer;
}

.app-start-button img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  clip-path: inset(8% 17% 19% 17%);
  transform: translateY(2px) scale(1.34);
  transform-origin: center;
}

.app-start-button.is-active,
.app-start-button:active,
.app-task-tab.is-active,
.app-task-tab:active {
  border-top-color: #424242;
  border-right-color: #fff;
  border-bottom-color: #fff;
  border-left-color: #424242;
  box-shadow: inset 2px 2px 0 #808080;
  background: var(--sun);
}

.app-shell-ready .hero-window[data-active-view="home"] .app-start-button.is-active {
  background: var(--green);
}

.app-shell-ready .hero-window[data-active-view="games"] .app-task-tab[data-open-view="games"].is-active {
  background: var(--cream);
}

.app-shell-ready .hero-window[data-active-view="team"] .app-task-tab[data-open-view="team"].is-active {
  background: var(--sky);
}

.app-task-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-task-tab {
  min-width: 152px;
  justify-content: flex-start;
  font-size: 19px;
  cursor: url("assets/cursor-hand-32.png") 14 3, pointer;
}

.app-task-tab img {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  object-fit: contain;
  image-rendering: pixelated;
}

.app-task-socials {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 2px;
  border: 2px solid var(--navy);
  background: rgb(255 249 228 / 0.72);
}

.app-task-social {
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 4px;
  border-width: 2px;
  cursor: url("assets/cursor-hand-32.png") 14 3, pointer;
}

.app-task-social:nth-child(1) {
  background: #fa5c5c;
}

.app-task-social:nth-child(2) {
  background: linear-gradient(135deg, #833ab4 0%, #c13584 42%, #f77737 72%, #fcaf45 100%);
}

.app-task-social:nth-child(3) {
  background: #0a66c2;
}

.app-task-social:hover,
.app-task-social:focus-visible {
  background: var(--cream);
  outline: 2px dotted var(--navy);
  outline-offset: -4px;
}

.app-task-social:nth-child(1):hover,
.app-task-social:nth-child(1):focus-visible {
  background: #ff7777;
}

.app-task-social:nth-child(2):hover,
.app-task-social:nth-child(2):focus-visible {
  background: linear-gradient(135deg, #9146bd 0%, #d13d91 42%, #ff8546 72%, #ffbb55 100%);
  outline-color: var(--cream);
}

.app-task-social:nth-child(3):hover,
.app-task-social:nth-child(3):focus-visible {
  background: #1479d1;
  outline-color: var(--cream);
}

.app-task-social img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  image-rendering: pixelated;
}

.app-task-social:nth-child(2) img,
.app-task-social:nth-child(3) img {
  filter: brightness(0) invert(1);
}

.app-task-clock {
  margin-left: 0;
  padding: 7px 11px 5px;
  border-top: 2px solid #808080;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #808080;
  background: var(--cream);
  font-size: 13px;
}

@media (min-width: 1100px) {
  .app-shell-ready .hero-stage {
    grid-template-columns: minmax(420px, 500px) minmax(500px, 620px);
    justify-content: center;
    gap: clamp(40px, 3vw, 54px);
  }

  .app-shell-ready .hero-menu {
    width: 100%;
    padding: clamp(24px, 3vw, 38px) 0;
  }

  .app-shell-ready .hero-button {
    min-height: 82px;
    font-size: clamp(29px, 2.3vw, 36px);
  }

  .app-shell-ready .hero-cactus-canvas {
    right: 50%;
    bottom: -6%;
    width: min(116%, 680px);
    transform: translateX(50%);
  }

  .app-shell-ready .team-grid {
    align-self: center;
    width: min(1240px, 100%);
    gap: 22px;
  }

  .app-shell-ready .team-card {
    padding: 16px;
  }

  .app-shell-ready .team-art {
    height: 260px;
  }

  .app-shell-ready .team-copy p {
    font-size: 16px;
  }
}

@media (min-width: 1280px) {
  .app-shell-ready .team-card {
    padding: 18px;
  }

  .app-shell-ready .team-art {
    height: 285px;
  }

  .app-shell-ready .team-copy p {
    font-size: 17px;
  }
}

@media (max-width: 980px) {
  .app-shell-ready .hero-window {
    width: 100%;
    margin: 0;
  }

  .app-shell-ready .hero-stage {
    grid-template-rows: minmax(0, 4fr) minmax(0, 2fr);
    min-height: 0;
  }

  .app-shell-ready .hero-menu {
    gap: 8px;
    padding: 10px;
  }

  .app-shell-ready .hero-button {
    min-height: 42px;
    padding: 8px 14px;
    font-size: clamp(15px, 2.2vw, 24px);
  }

  .app-shell-ready .hero-window > .strip-section {
    display: grid;
  }

  .app-shell-ready .games-desktop {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .desktop-shortcuts {
    flex: 0 0 auto;
  }

  .app-shell-ready .game-detail-window {
    flex: 1 1 auto;
    min-height: 0;
  }

  .game-window-titlebar {
    flex: 0 0 auto;
  }

  .game-window-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }

  .game-play-link {
    position: sticky;
    bottom: 0;
  }
}

@media (min-width: 981px) {
  .app-shell-ready .work.strip-section {
    overflow: hidden;
  }
}

@media (max-width: 620px) {
  .app-shell-ready .hero {
    height: 100vh;
    height: 100svh;
    padding: max(7px, env(safe-area-inset-top)) 7px max(7px, env(safe-area-inset-bottom));
  }

  .app-shell-ready .hero-window {
    height: 100%;
    max-height: 100%;
  }

  .app-shell-ready .hero-stage {
    min-height: 0;
    max-height: none;
    grid-template-rows: clamp(250px, 42vh, 340px) auto;
    grid-template-rows: clamp(250px, 42svh, 340px) auto;
    overflow: auto;
  }

  .app-shell-ready .hero-menu {
    gap: 12px;
    padding: 8px 11px 13px;
  }

  .app-shell-ready .hero-window > .strip-section {
    padding: 12px 9px 16px;
  }

  .app-shell-ready .work.strip-section,
  .app-shell-ready .team.strip-section {
    grid-template-rows: auto;
    gap: 0;
  }

  .app-shell-ready .strip-heading h2 {
    padding: 8px 11px 6px;
    font-size: clamp(28px, 9vw, 38px);
  }

  .app-shell-ready .team-art {
    height: clamp(205px, 66vw, 280px);
  }

  .app-shell-ready .app-taskbar {
    height: 44px;
    gap: 5px;
    padding: 4px;
    border-top-width: 3px;
  }

  .app-start-button,
  .app-task-tab,
  .app-task-social {
    height: 32px;
    padding: 3px 6px;
  }

  .app-start-button {
    min-width: 88px;
    gap: 6px;
    font-size: 18px;
  }

  .app-start-button img {
    width: 22px;
    height: 22px;
    transform: translateY(1px) scale(1.3);
  }

  .app-task-tabs {
    gap: 4px;
  }

  .app-task-tab {
    min-width: 68px;
    gap: 4px;
    font-size: 13px;
  }

  .app-task-tab img,
  .app-task-social img {
    width: 14px;
    height: 14px;
  }

  .app-task-social img {
    width: 10px;
    height: 10px;
  }

  .app-task-socials {
    gap: 3px;
    padding: 1px;
    border-width: 1px;
  }

  .app-task-social {
    width: 24px;
    height: 24px;
    padding: 2px;
    border-width: 2px;
  }

  .app-task-clock {
    display: none;
  }
}

@keyframes team-float-mobile {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -4px;
  }
}

/* Party roster */
.party-select-screen {
  --party-accent: var(--green);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(1480px, 100%);
  min-height: 620px;
  overflow: hidden;
  border: 4px solid var(--navy);
  background: transparent;
  color: var(--cream);
}

.party-roster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(6px, 1vw, 14px);
  min-height: 0;
  padding: 16px 18px 0;
  border-bottom: 4px solid var(--navy);
  background: transparent;
}

.party-slot {
  --slot-color: #251b35;
  --class-color: var(--green);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  height: 100%;
  padding: 0 10px 10px;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--cream);
  font: inherit;
  text-align: center;
  cursor: url("assets/cursor-hand-32.png") 14 3, pointer;
  transition:
    transform 180ms steps(2, end),
    filter 180ms steps(2, end),
    opacity 180ms steps(2, end);
}

.party-slot::before {
  content: "";
  position: absolute;
  inset: 12px 8px 66px;
  z-index: -1;
  clip-path: polygon(
    8px 0,
    calc(100% - 8px) 0,
    calc(100% - 8px) 8px,
    100% 8px,
    100% calc(100% - 8px),
    calc(100% - 8px) calc(100% - 8px),
    calc(100% - 8px) 100%,
    8px 100%,
    8px calc(100% - 8px),
    0 calc(100% - 8px),
    0 8px,
    8px 8px
  );
  background: var(--slot-color);
  opacity: 1;
}

.party-slot::after {
  content: "";
  position: absolute;
  inset: 5px 2px 5px;
  z-index: 4;
  border: 4px solid var(--cream);
  box-shadow: 0 0 0 4px var(--navy);
  opacity: 0;
  pointer-events: none;
}

.party-slot-yagiz {
  --slot-color: #251b35;
  --class-color: var(--green);
}

.party-slot-yagiz::before {
  opacity: 1;
}

.party-slot-mehmet {
  --slot-color: #1f05ac;
  --class-color: var(--sun);
}

.party-slot-atakan {
  --slot-color: #5920ff;
  --class-color: #d4ff1a;
}

.party-slot.is-selected {
  z-index: 3;
  transform: translateY(-5px) scale(1.035);
}

.party-slot.is-selected::after,
.party-slot:focus-visible::after {
  opacity: 1;
}

.party-slot:focus-visible {
  outline: none;
}

.party-portrait {
  position: relative;
  z-index: 1;
  display: block;
  align-self: end;
  width: 100%;
  height: clamp(205px, 22vw, 292px);
  overflow: hidden;
}

.party-portrait img {
  position: absolute;
  top: 0;
  left: 50%;
  width: 120%;
  max-width: none;
  height: auto;
  transform: translateX(-50%);
  transform-origin: center bottom;
  user-select: none;
  pointer-events: none;
}

.party-slot-yagiz .party-portrait img {
  left: 47%;
}

.party-slot-atakan .party-portrait img {
  left: 51%;
}

.party-slot.is-selected .party-portrait img {
  animation: party-selected-idle 2.8s steps(2, end) infinite;
}

.party-slot-copy {
  position: relative;
  z-index: 5;
  display: grid;
  gap: 5px;
  width: 100%;
  min-height: 58px;
  align-content: center;
  padding: 8px 8px 6px;
  border-top: 4px solid var(--class-color);
  background: var(--navy);
  box-shadow:
    0 -30px 0 var(--navy),
    0 -34px 0 var(--class-color);
}

.party-slot-copy strong {
  font-size: clamp(18px, 1.75vw, 25px);
  font-weight: 700;
  line-height: 1;
  text-wrap: balance;
}

.party-slot-copy span {
  color: var(--class-color);
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1;
}

.party-hud {
  display: grid;
  grid-template-columns: minmax(145px, 0.72fr) minmax(340px, 1.8fr) minmax(220px, 1fr) auto;
  align-items: stretch;
  gap: clamp(12px, 1.5vw, 20px);
  min-height: 154px;
  padding: 14px 16px;
  background: var(--cream);
  color: var(--navy);
  text-align: left;
}

.party-hud > div {
  min-width: 0;
}

.party-hud > div + div {
  padding-left: clamp(12px, 1.4vw, 18px);
  border-left: 3px solid var(--navy);
}

.party-hud-label {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
}

.party-hud-identity {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.party-hud-identity strong {
  color: var(--party-accent);
  font-size: clamp(27px, 2.6vw, 38px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.party-hud-profile {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.party-hud-profile > strong {
  margin-bottom: 8px;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.1;
}

.party-hud-profile p {
  max-width: 68ch;
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  font-size: clamp(12px, 0.95vw, 14px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.48;
}

.party-hud-specialties {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.party-specialty-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.party-specialty-list span {
  padding: 6px 7px 4px;
  border: 2px solid var(--navy);
  background: var(--party-accent);
  font-size: 11px;
  line-height: 1;
}

.party-hud-links {
  display: grid;
  align-content: center;
  gap: 8px;
}

.party-hud-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 116px;
  min-height: 40px;
  padding: 7px 10px;
  border: 3px solid var(--navy);
  background: var(--navy);
  color: var(--cream);
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
}

.party-hud-links a img {
  width: 18px;
  height: 14px;
  object-fit: contain;
  image-rendering: pixelated;
}

.party-hud-links a.party-link-instagram img,
.party-hud-links a:last-child img {
  width: 16px;
  height: 16px;
}

.party-hud-links a:hover,
.party-hud-links a:focus-visible {
  background: var(--party-accent);
  color: var(--navy);
  outline: 2px dotted var(--navy);
  outline-offset: -7px;
}

.app-shell-ready .team.strip-section {
  padding: 0;
  overflow: hidden;
}

.app-shell-ready .party-select-screen {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
}

@media (max-width: 980px) {
  .app-shell-ready .team.strip-section {
    overflow-y: auto;
  }

  .app-shell-ready .party-select-screen {
    height: auto;
    min-height: 640px;
    align-self: start;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .party-roster {
    min-height: 365px;
  }

  .party-hud {
    grid-template-columns: minmax(130px, 0.7fr) minmax(0, 1.3fr);
  }

  .party-hud-identity {
    grid-column: 1;
    grid-row: 1;
  }

  .party-hud-specialties {
    grid-column: 2;
    grid-row: 1;
  }

  .party-hud-profile {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .party-hud-links {
    grid-column: 1 / -1;
    grid-row: 3;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .party-hud > div + div {
    padding-left: 0;
    border-left: 0;
  }

  .party-hud-profile,
  .party-hud-links {
    padding-top: 12px;
    border-top: 3px solid var(--navy);
  }

  .party-hud-specialties {
    padding-left: 14px !important;
    border-left: 3px solid var(--navy) !important;
  }
}

@media (max-width: 980px) {
  .app-shell-ready .party-select-screen {
    min-height: 620px;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-self: stretch;
  }

  .party-roster {
    gap: 3px;
    min-height: 260px;
    padding: 8px 5px 0;
  }

  .party-slot {
    padding: 0 2px 6px;
  }

  .party-slot::before {
    inset: 7px 2px 54px;
  }

  .party-slot::after {
    inset: 2px 0;
    border-width: 3px;
    box-shadow: 0 0 0 2px var(--navy);
  }

  .party-slot.is-selected {
    transform: translateY(-2px) scale(1.025);
  }

  .party-portrait {
    align-self: stretch;
    height: auto;
    min-height: 154px;
  }

  .party-portrait img {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: inset(0 0 15% 0);
    transform: none;
  }

  .party-slot-yagiz .party-portrait img {
    left: 0;
    object-position: 28% top;
  }

  .party-slot-mehmet .party-portrait img {
    object-position: 29% top;
  }

  .party-slot-atakan .party-portrait img {
    left: 0;
    object-position: 40% top;
  }

  .party-slot-copy {
    gap: 4px;
    min-height: 50px;
    padding: 6px 3px 5px;
    border-top-width: 3px;
  }

  .party-slot-copy strong {
    font-size: clamp(12px, 3.8vw, 15px);
    line-height: 1.05;
  }

  .party-slot-copy span {
    font-size: clamp(9px, 2.7vw, 11px);
  }

  .party-hud {
    gap: 10px;
    min-height: 0;
    padding: 11px;
  }

  .party-hud-label {
    margin-bottom: 6px;
    font-size: 10px;
  }

  .party-hud-identity strong {
    font-size: clamp(24px, 8vw, 32px);
  }

  .party-hud-profile > strong {
    font-size: 15px;
  }

  .party-hud-profile p {
    font-size: 12px;
    line-height: 1.5;
  }

  .party-specialty-list {
    gap: 5px;
  }

  .party-specialty-list span {
    padding: 5px 5px 3px;
    font-size: 9px;
  }

  .party-hud-links a {
    min-width: 0;
    min-height: 38px;
    padding: 6px;
    font-size: 10px;
  }
}

@keyframes party-selected-idle {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -3px;
  }
}

.app-sound-toggle {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: 0;
  padding: 0;
  border-top: 2px solid #fff;
  border-right: 2px solid #424242;
  border-bottom: 2px solid #424242;
  border-left: 2px solid #fff;
  background: var(--cream);
  color: var(--navy);
  box-shadow: inset 1px 1px 0 #e9e9e9, inset -1px -1px 0 #808080;
  cursor: url("assets/cursor-hand-32.png") 14 3, pointer;
}

.app-sound-toggle:hover,
.app-sound-toggle:focus-visible {
  background: var(--sky);
  outline: 2px dotted var(--navy);
  outline-offset: -7px;
}

.app-sound-toggle:active {
  border-top-color: #424242;
  border-right-color: #fff;
  border-bottom-color: #fff;
  border-left-color: #424242;
  box-shadow: inset 2px 2px 0 #808080;
}

.app-sound-toggle[aria-pressed="false"] {
  background: #c6c6c6;
}

.pixel-speaker {
  position: relative;
  display: block;
  width: 26px;
  height: 20px;
  transform: scale(0.72);
}

.pixel-speaker-body {
  position: absolute;
  top: 7px;
  left: 1px;
  width: 6px;
  height: 8px;
  background: var(--navy);
}

.pixel-speaker-body::before,
.pixel-speaker-body::after {
  content: "";
  position: absolute;
  background: var(--navy);
}

.pixel-speaker-body::before {
  top: -4px;
  left: 6px;
  width: 4px;
  height: 16px;
}

.pixel-speaker-body::after {
  top: -2px;
  left: 10px;
  width: 3px;
  height: 12px;
}

.pixel-speaker-waves {
  position: absolute;
  top: 4px;
  right: 5px;
  width: 3px;
  height: 3px;
  background: var(--navy);
  box-shadow:
    3px 3px 0 var(--navy),
    3px 6px 0 var(--navy),
    0 9px 0 var(--navy);
}

.app-sound-toggle[aria-pressed="false"] .pixel-speaker-waves {
  top: 5px;
  right: 4px;
  box-shadow:
    3px 3px 0 var(--navy),
    6px 6px 0 var(--navy),
    6px 0 0 var(--navy),
    0 6px 0 var(--navy);
}

@media (max-width: 620px) {
  .app-sound-toggle {
    width: 30px;
    height: 30px;
    border-width: 2px;
  }

  .pixel-speaker {
    transform: scale(0.8);
  }
}

/* Relaxed party portraits: keep the supplied artwork intact instead of force-cropping it. */
.party-roster {
  align-items: center;
}

.party-slot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: auto;
  max-height: none;
  padding: 18px 14px 16px;
}

.party-slot::before {
  inset: 16px 10px;
}

.party-slot.is-selected {
  transform: translateY(-3px) scale(1.022);
}

.party-portrait {
  position: relative;
  inset: auto;
  display: grid;
  place-items: center;
  width: 100%;
  height: auto;
  aspect-ratio: 1.42;
  min-height: 0;
  overflow: hidden;
}

.party-portrait img,
.party-slot-yagiz .party-portrait img,
.party-slot-mehmet .party-portrait img,
.party-slot-atakan .party-portrait img {
  position: static;
  inset: auto;
  width: 86%;
  max-width: 86%;
  height: 86%;
  object-fit: contain;
  object-position: center bottom;
  clip-path: none;
  transform: none;
}

.party-slot-copy {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  min-height: 64px;
  max-height: none;
  margin-top: -64px;
  padding: 11px 8px 8px;
  box-shadow: none;
}

.party-slot-copy strong {
  font-size: clamp(20px, 1.8vw, 29px);
}

.party-hud {
  grid-template-columns: minmax(175px, 0.72fr) minmax(0, 2.35fr) auto;
  align-items: center;
  gap: clamp(14px, 1.6vw, 24px);
  min-height: 118px;
  padding: 16px 20px;
}

.party-hud-name,
.party-hud-profile,
.party-hud-links {
  grid-column: auto;
  grid-row: auto;
}

.party-hud-name {
  display: flex;
  align-items: center;
}

.party-hud-name strong {
  font-size: clamp(22px, 2vw, 31px);
  line-height: 1.05;
  text-wrap: balance;
}

.party-hud-profile p {
  max-width: 92ch;
  font-size: clamp(15px, 1.12vw, 18px);
  line-height: 1.55;
}

.party-hud-links {
  grid-template-columns: 118px;
  width: max-content;
  padding-left: clamp(16px, 2vw, 26px) !important;
  border-top: 0 !important;
  border-left: 3px solid var(--navy) !important;
}

.party-hud-links a {
  width: 118px;
  min-width: 0;
  min-height: 34px;
  padding: 5px 8px;
  font-size: 10px;
}

@media (max-width: 980px) {
  .party-roster {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 10px;
    padding: 10px 16px 12px;
  }

  .party-slot {
    height: auto;
    max-height: none;
  }

  .party-portrait {
    height: auto;
  }

  .party-portrait img,
  .party-slot-yagiz .party-portrait img,
  .party-slot-mehmet .party-portrait img,
  .party-slot-atakan .party-portrait img {
    object-fit: contain;
    object-position: center center;
  }

  .party-slot-copy {
    min-height: 58px;
    margin-top: -58px;
  }

  .party-hud {
    grid-template-columns: minmax(145px, 0.68fr) minmax(0, 1.8fr) auto;
    gap: 12px;
    padding: 14px;
  }

  .party-hud-name strong {
    font-size: clamp(19px, 2.8vw, 25px);
  }

  .party-hud-profile p {
    font-size: clamp(14px, 1.7vw, 16px);
  }

  .party-hud-links {
    grid-template-columns: 106px;
    padding-left: 12px !important;
  }

  .party-hud-links a {
    width: 106px;
  }
}

@media (max-width: 980px) {
  .party-roster {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1 1 auto;
    gap: 10px;
    min-height: 0;
    padding: 10px 8px 10px;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-snap-type: none;
  }

  .party-slot {
    flex: 1 1 0;
    height: auto;
    max-height: 210px;
    min-height: 100px;
    padding: 6px 4px 8px;
  }

  .party-hud {
    flex: 0 0 auto;
  }

  .party-slot::before {
    inset: 5px 2px 7px;
  }

  .party-portrait {
    justify-self: center;
    width: auto;
    height: 100%;
    aspect-ratio: 1.42;
    margin: 0 auto;
  }

  .party-portrait img,
  .party-slot-yagiz .party-portrait img,
  .party-slot-mehmet .party-portrait img,
  .party-slot-atakan .party-portrait img {
    object-fit: contain;
    object-position: center bottom;
  }

  .party-slot-copy {
    min-height: 56px;
    margin-top: -56px;
    padding: 8px 3px 6px;
  }

  .party-slot-copy strong {
    font-size: 18px;
  }

  .party-hud {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px;
  }

  .party-hud-name {
    grid-column: 1;
    grid-row: 1;
  }

  .party-hud-name strong {
    font-size: 19px;
  }

  .party-hud-profile {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-top: 11px !important;
    padding-left: 0 !important;
    border-top: 3px solid var(--navy) !important;
    border-left: 0 !important;
  }

  .party-hud-profile p {
    font-size: 13px;
    line-height: 1.52;
  }

  .party-hud-links {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: repeat(2, 96px);
    padding: 0 !important;
    border: 0 !important;
  }

  .party-hud-links a {
    width: 96px;
    min-height: 34px;
    font-size: 11px;
  }
}

@media (min-width: 621px) and (max-width: 980px) {
  .party-hud-links {
    grid-template-columns: repeat(3, 96px);
  }
}

@media (max-width: 440px) {
  .party-hud {
    grid-template-columns: 1fr;
  }

  .party-hud-name,
  .party-hud-links {
    grid-column: 1;
  }

  .party-hud-links {
    grid-row: 3;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    padding-top: 10px !important;
    border-top: 3px solid var(--navy) !important;
  }

  .party-hud-links a {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    gap: 4px;
    padding: 4px;
    font-size: 9px;
  }
}
