/* ==========================================================================
   Rexyrex Game Park — "felt toybox" theme
   Stitched seams, squishy sticker buttons, scalloped edges and painted covers,
   matched to the felt-and-clay hero illustration.
   ========================================================================== */

@font-face {
  font-family: "Fredoka";
  src: url("assets/fonts/fredoka-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/nunito-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --cream: #fff4dc;
  --cream-deep: #f8e6bd;
  --paper: #fffbf3;
  --ink: #2d2742;
  --ink-soft: #625a7a;
  --ink-faint: #8e87a3;
  --mint: #3dbd98;
  --mint-deep: #1d8a6c;
  --forest: #23846a;
  --peach: #ff8a6b;
  --coral: #ef6450;
  --lilac: #a58ff0;
  --butter: #ffd36b;
  --pink: #ff9bc0;
  --online: #2fb487;
  --offline: #ea6a5b;
  --line: rgba(45, 39, 66, 0.12);
  --line-strong: rgba(45, 39, 66, 0.2);
  --shell: 1320px;
  --display: "Fredoka", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --sticker: 0 4px 0 rgba(45, 39, 66, 0.1);
  --soft: 0 22px 48px -24px rgba(96, 66, 24, 0.4);
  --squish: cubic-bezier(0.34, 1.56, 0.64, 1);
  --felt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .42 0 0 0 0 .2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    var(--felt),
    radial-gradient(circle at 12% 8%, rgba(255, 211, 107, 0.28), transparent 32rem),
    radial-gradient(circle at 92% 40%, rgba(165, 143, 240, 0.12), transparent 30rem),
    radial-gradient(circle at 6% 70%, rgba(61, 189, 152, 0.1), transparent 30rem);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0;
}

button,
input {
  font: inherit;
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

svg {
  display: block;
}

::selection {
  color: var(--ink);
  background: var(--butter);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 12px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

/* ---------- Shared bits ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px 0 22px;
  border: 0;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s var(--squish), box-shadow 0.25s ease, background-color 0.2s ease;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.button--primary {
  color: #fff;
  background: var(--coral);
  box-shadow: 0 5px 0 #c24636, 0 16px 28px -12px rgba(194, 70, 54, 0.6);
}

.button--primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 0 #c24636, 0 22px 32px -12px rgba(194, 70, 54, 0.6);
}

.button--primary:active {
  transform: translateY(3px) scale(0.98);
  box-shadow: 0 1px 0 #c24636, 0 6px 14px -8px rgba(194, 70, 54, 0.6);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--coral);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-kicker svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.section-kicker--light {
  color: var(--butter);
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 5;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 18px;
}

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

.brand__mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  flex: none;
  border-radius: 18px;
  background: var(--mint);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35), 0 4px 0 var(--mint-deep);
  transition: transform 0.35s var(--squish);
}

.brand:hover .brand__mark {
  transform: rotate(-8deg) scale(1.06);
}

.brand__mark svg {
  width: 46px;
  height: 46px;
  overflow: visible;
}

.brand__head {
  fill: #fffbf3;
}

.brand__spike {
  fill: var(--butter);
}

.brand__nostril {
  fill: var(--ink);
  opacity: 0.45;
}

.brand__eye {
  fill: var(--ink);
}

.brand__glint {
  fill: #fff;
}

.brand__cheek {
  fill: #ffb3a5;
}

.brand__smile {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.brand__type {
  display: grid;
  line-height: 1;
}

.brand__type strong {
  font-family: var(--display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand__type small {
  margin-top: 4px;
  color: var(--mint-deep);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fleet {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px 0 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 251, 243, 0.85);
  box-shadow: var(--sticker);
  font-size: 14px;
  white-space: nowrap;
}

.fleet__beads {
  display: inline-flex;
  gap: 4px;
}

.led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ddd6c6;
}

.led--up {
  background: var(--online);
  box-shadow: 0 0 0 2px rgba(47, 180, 135, 0.2);
}

.led--down {
  background: var(--offline);
}

.fleet__label {
  color: var(--ink-soft);
  font-weight: 700;
}

.fleet__count {
  font-family: var(--display);
  font-weight: 600;
}

.fleet--online .fleet__count {
  color: var(--mint-deep);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px 0 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 4px 0 #17132a;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  transition: transform 0.25s var(--squish), box-shadow 0.2s ease;
}

.nav__cta svg {
  width: 14px;
  height: 14px;
  fill: var(--butter);
}

.nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #17132a;
}

.nav__cta:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #17132a;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: 6px;
}

.hero__frame {
  position: relative;
  aspect-ratio: 1821 / 864;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 44px;
  background: #fbf3c9;
  box-shadow: 0 8px 0 var(--cream-deep), 0 40px 80px -40px rgba(96, 66, 24, 0.55);
  animation: rise-in 0.8s var(--squish) both;
}

/* The stitched seam that runs just inside every felt panel. */
.hero__frame::after,
.game-card__cover::after,
.promise__points li::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 3;
  border: 2px dashed rgba(255, 255, 255, 0.75);
  border-radius: 34px;
  pointer-events: none;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}

.hero__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255, 250, 222, 0.82) 0%, rgba(255, 250, 222, 0.5) 34%, transparent 52%);
  pointer-events: none;
}

.hero__content {
  position: absolute;
  top: 50%;
  left: 5.5%;
  z-index: 2;
  width: min(44%, 560px);
  transform: translateY(-54%);
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  color: var(--mint-deep);
  background: #fff;
  box-shadow: var(--sticker);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  transform: rotate(-2deg);
}

.hero__kicker svg {
  width: 16px;
  height: 16px;
  fill: var(--butter);
  stroke: #e6ad2e;
  stroke-width: 1.4;
}

.hero h1 {
  font-size: clamp(46px, 5.8vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.squiggle {
  position: relative;
  display: inline-block;
  color: var(--coral);
  white-space: nowrap;
}

.squiggle::after {
  content: "";
  position: absolute;
  right: 2%;
  bottom: -0.2em;
  left: 0;
  height: 0.26em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9c9-7 15-7 21 0s12 7 19 0 13-7 19 0 13 7 19 0 13-7 19 0 12 6 17 1' fill='none' stroke='%23ffd36b' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  z-index: -1;
}

.hero__tagline {
  max-width: 34ch;
  text-wrap: pretty;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 700;
  line-height: 1.45;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 30px;
}

.hero__aside {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: rgba(255, 251, 243, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 800;
}

.hero__aside::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 0 4px rgba(47, 180, 135, 0.2);
}

.hero__hello {
  position: absolute;
  top: 9%;
  right: 4.5%;
  z-index: 2;
  display: grid;
  padding: 12px 20px 13px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 5px 0 rgba(45, 39, 66, 0.1), 0 16px 30px -16px rgba(45, 39, 66, 0.4);
  line-height: 1.2;
  transform: rotate(3deg);
  animation: hello-bob 4.5s ease-in-out infinite;
}

.hero__hello::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 30px;
  width: 24px;
  height: 18px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 10% 100%);
}

.hero__hello strong {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
}

.hero__hello small {
  color: var(--mint-deep);
  font-size: 13px;
  font-weight: 800;
}

.hero__stats {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: -38px 0 0 5.5%;
  padding: 0;
  list-style: none;
}

.stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 10px;
  border: 2px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--sticker), var(--soft);
  animation: rise-in 0.8s var(--squish) both;
}

.stat:nth-child(1) {
  transform: rotate(-2deg);
  animation-delay: 0.15s;
}

.stat:nth-child(2) {
  transform: rotate(1.5deg);
  animation-delay: 0.22s;
}

.stat:nth-child(3) {
  transform: rotate(-1deg);
  animation-delay: 0.29s;
}

.stat strong {
  display: grid;
  min-width: 52px;
  height: 52px;
  padding: 0 10px;
  place-items: center;
  border-radius: 17px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.stat--mint strong {
  color: var(--mint-deep);
  background: #d8f3e8;
}

.stat--lilac strong {
  color: #6d55c9;
  background: #ebe4ff;
}

.stat--peach strong {
  color: #cf503c;
  background: #ffe3da;
}

.stat span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Ribbon ---------- */

.ribbon {
  position: relative;
  margin: 72px 0 0;
  overflow: hidden;
  background: var(--mint);
  box-shadow: 0 6px 0 var(--mint-deep);
  transform: rotate(-1.4deg);
  width: 104%;
  margin-left: -2%;
}

.ribbon::before,
.ribbon::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  height: 0;
  border-top: 2px dashed rgba(255, 255, 255, 0.6);
}

.ribbon::before {
  top: 7px;
}

.ribbon::after {
  bottom: 7px;
}

.ribbon__track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.ribbon:hover .ribbon__track {
  animation-play-state: paused;
}

.ribbon__half {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 14px;
  padding-right: 28px;
}

.ribbon__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  white-space: nowrap;
}

.ribbon__emoji {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  font-size: 20px;
}

.ribbon__sep {
  width: 18px;
  height: 18px;
  flex: none;
  fill: var(--butter);
}

/* ---------- Collection ---------- */

.collection {
  padding: 96px 0 120px;
}

.collection__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 60px;
  margin-bottom: 36px;
}

.collection h2 {
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1;
}

.collection h2 span {
  display: block;
  color: var(--mint-deep);
}

.collection__intro {
  max-width: 400px;
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 600;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 251, 243, 0.8);
  box-shadow: var(--sticker);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  --filter: var(--mint);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 8px 0 6px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s var(--squish), background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover {
  background: color-mix(in srgb, var(--filter) 12%, #fff);
  border-color: color-mix(in srgb, var(--filter) 30%, transparent);
  transform: translateY(-2px);
}

.filter-btn:active {
  transform: scale(0.96);
}

.filter-btn__icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--filter) 18%, #fff);
  font-size: 18px;
  transition: transform 0.35s var(--squish);
}

.filter-btn:hover .filter-btn__icon {
  transform: rotate(-12deg) scale(1.1);
}

.filter-btn__count {
  display: grid;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  place-items: center;
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(45, 39, 66, 0.07);
  font-size: 14px;
}

.filter-btn[aria-pressed="true"] {
  color: #fff;
  background: var(--filter);
  box-shadow: 0 4px 0 color-mix(in srgb, var(--filter) 70%, #000);
  border-color: transparent;
}

.filter-btn[aria-pressed="true"]:hover {
  transform: translateY(-1px);
}

.filter-btn[aria-pressed="true"] .filter-btn__icon {
  background: rgba(255, 255, 255, 0.95);
}

.filter-btn[aria-pressed="true"] .filter-btn__count {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 260px;
  max-width: 420px;
  min-width: 220px;
}

.search svg {
  position: absolute;
  left: 18px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 2.4;
  stroke-linecap: round;
  pointer-events: none;
}

.search input {
  width: 100%;
  min-height: 50px;
  padding: 0 48px 0 48px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search input::placeholder {
  color: var(--ink-faint);
}

.search input:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 5px rgba(61, 189, 152, 0.2);
}

.search input::-webkit-search-cancel-button {
  display: none;
}

.search kbd {
  position: absolute;
  right: 14px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 2px solid var(--line);
  border-bottom-width: 3px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
}

.search input:focus ~ kbd {
  opacity: 0;
}

.results-line {
  margin: 26px 4px 20px;
  color: var(--ink-soft);
  font-weight: 800;
}

/* ---------- Game cards ---------- */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
  gap: 30px;
}

.game-card {
  --accent: var(--peach);
  --accent2: var(--butter);
  --tone: color-mix(in srgb, var(--accent) 70%, var(--ink));
  position: relative;
  border-radius: 34px;
  animation: card-in 0.6s var(--squish) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

.game-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: inherit;
  background: var(--paper);
  box-shadow:
    0 6px 0 color-mix(in srgb, var(--accent) 28%, #ecdcb9),
    0 26px 44px -30px color-mix(in srgb, var(--accent) 60%, #5c4018);
  transition: transform 0.35s var(--squish), box-shadow 0.3s ease, border-color 0.3s ease;
}

.game-card__link:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow:
    0 10px 0 color-mix(in srgb, var(--accent) 38%, #ecdcb9),
    0 36px 54px -30px color-mix(in srgb, var(--accent) 70%, #5c4018);
  transform: translateY(-8px) rotate(-0.6deg);
}

.game-card:nth-child(even) .game-card__link:hover {
  transform: translateY(-8px) rotate(0.6deg);
}

.game-card__link:active {
  transform: translateY(-2px) scale(0.99);
}

.game-card__link:focus-visible {
  outline-offset: 5px;
  border-radius: 34px;
}

.game-card__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 30%, #fff5dd), color-mix(in srgb, var(--accent2) 34%, #fff5dd));
  isolation: isolate;
}

.game-card__cover::after {
  inset: 8px;
  border-color: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
}

.game-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.game-card__link:hover .game-card__img {
  transform: scale(1.07);
}

.game-card__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 60%, rgba(20, 16, 36, 0.22) 100%);
  pointer-events: none;
}

.game-card__badges {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.status,
.game-card__access,
.game-card__type {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 13px 0 11px;
  border-radius: 999px;
  background: rgba(255, 251, 243, 0.95);
  box-shadow: 0 3px 0 rgba(45, 39, 66, 0.14);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.status {
  color: var(--ink-soft);
}

.status__dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b7afc4;
}

.status--up {
  color: var(--mint-deep);
}

.status--up .status__dot {
  background: var(--online);
}

.status--up .status__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--online);
  animation: ping 2.2s ease-out infinite;
}

.status--down {
  color: #c2463a;
}

.status--down .status__dot {
  background: var(--offline);
}

.game-card__access {
  color: #6d55c9;
}

.game-card__access svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}

.game-card__type {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 4;
  max-width: calc(100% - 36px);
  min-height: 34px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 14px 8px;
}

.game-card__name {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
}

.game-card__tagline {
  margin-top: 6px;
  color: var(--tone);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
}

.game-card__description {
  display: -webkit-box;
  margin-top: 12px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.game-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 18px;
}

.game-card__fact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 9px;
  border-radius: 12px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--accent) 10%, #f7efdd);
  font-size: 13px;
  font-weight: 800;
}

.game-card__fact svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: var(--tone);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.game-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: auto -4px 0;
  padding: 14px 0 0 4px;
  border-top: 2px dashed var(--line);
}

.game-card__url {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-card__play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 46px;
  padding: 0 22px 0 18px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--accent);
  box-shadow: 0 4px 0 color-mix(in srgb, var(--accent) 60%, var(--ink));
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  transition: transform 0.3s var(--squish), box-shadow 0.2s ease;
}

.game-card__play svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.game-card__link:hover .game-card__play {
  transform: scale(1.06);
  animation: wiggle 0.6s ease 0.1s;
}

/* Fallback cover (no painted art): emoji sticker on a tinted felt panel. */

.cover-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.cover-art__blob {
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 46% 54% 52% 48%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 0 rgba(45, 39, 66, 0.08);
}

.cover-art__glyph {
  position: relative;
  font-size: clamp(64px, 7vw, 92px);
  line-height: 1;
  filter: drop-shadow(0 6px 0 rgba(45, 39, 66, 0.12));
  transition: transform 0.45s var(--squish);
}

.game-card__link:hover .cover-art__glyph {
  transform: scale(1.12) rotate(-6deg);
}

.cover-art__mini {
  position: absolute;
  font-size: 26px;
  opacity: 0.8;
}

.cover-art__mini--one {
  top: 24%;
  left: 18%;
  transform: rotate(-14deg);
}

.cover-art__mini--two {
  right: 18%;
  bottom: 28%;
  transform: rotate(12deg);
}

.cover-art__mini--three {
  top: 22%;
  right: 24%;
  font-size: 18px;
}

.cover-art__line {
  display: none;
}

.loading-card {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 34px;
  background: var(--paper);
}

.loading-card::before {
  content: "";
  position: absolute;
  inset: 10px 10px auto;
  aspect-ratio: 16 / 10;
  border-radius: 26px;
  background: linear-gradient(100deg, #f5ead2 30%, #fdf6e6 50%, #f5ead2 70%) 0 0 / 300% 100%;
  animation: shimmer 1.4s linear infinite;
}

.notice {
  grid-column: 1 / -1;
  padding: 40px;
  border: 2px dashed var(--line-strong);
  border-radius: 30px;
  color: var(--ink-soft);
  font-weight: 800;
  text-align: center;
}

.empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 56px 20px 64px;
  border: 2px dashed var(--line-strong);
  border-radius: 36px;
  text-align: center;
}

.empty[hidden] {
  display: none;
}

.empty__egg {
  position: relative;
  width: 84px;
  height: 104px;
  margin-bottom: 10px;
  border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%;
  background: #fff8e8;
  box-shadow: inset -8px -10px 0 rgba(45, 39, 66, 0.06), 0 6px 0 var(--cream-deep);
  animation: egg-wobble 2.4s ease-in-out infinite;
}

.empty__egg::before,
.empty__egg::after,
.empty__egg span {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.empty__egg::before {
  top: 22px;
  left: 18px;
  width: 20px;
  height: 20px;
  background: var(--peach);
}

.empty__egg::after {
  top: 50px;
  right: 16px;
  width: 16px;
  height: 16px;
  background: var(--lilac);
}

.empty__egg span {
  bottom: 18px;
  left: 30px;
  width: 12px;
  height: 12px;
  background: var(--mint);
}

.empty h3 {
  font-size: 28px;
}

.empty p {
  color: var(--ink-soft);
  font-weight: 700;
}

.empty .button {
  margin-top: 14px;
}

/* ---------- Promise band ---------- */

.promise {
  --band: var(--forest);
  position: relative;
  color: #fff;
  background-color: var(--band);
  background-image: var(--felt);
}

/* Scalloped felt edges, top and bottom. */
.promise::before,
.footer::before {
  content: "";
  position: absolute;
  top: -21px;
  right: 0;
  left: 0;
  height: 22px;
  background: radial-gradient(circle at 22px 22px, var(--band) 21px, transparent 22px) 0 0 / 44px 22px repeat-x;
}

.promise__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px 72px;
  padding: 96px 0 110px;
}

.promise h2 {
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.02;
}

.promise h2 span {
  display: block;
  color: var(--butter);
}

.promise__copy > p:last-child {
  max-width: 46ch;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  font-weight: 600;
}

.promise__points {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.promise__points li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 18px;
  padding: 18px 22px 18px 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.12);
}

.promise__points li:nth-child(2) {
  margin-left: 32px;
}

.promise__points li::after {
  inset: 6px;
  border-color: rgba(255, 255, 255, 0.22);
  border-radius: 22px;
}

.promise__icon {
  display: grid;
  grid-row: span 2;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.14);
  font-size: 28px;
}

.promise__points strong {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
}

.promise__points small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 700;
}

/* ---------- Footer ---------- */

.footer {
  --band: var(--ink);
  position: relative;
  color: rgba(255, 244, 220, 0.8);
  background: var(--band);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  padding: 44px 0 48px;
}

.brand--footer {
  color: #fff;
}

.brand--footer .brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 15px;
}

.brand--footer .brand__mark svg {
  width: 38px;
  height: 38px;
}

.brand--footer .brand__type strong {
  font-size: 21px;
}

.brand--footer .brand__type small {
  color: var(--mint);
}

.footer__note {
  flex: 1;
  min-width: 220px;
  font-weight: 700;
}

.footer__top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 2px dashed rgba(255, 244, 220, 0.3);
  border-radius: 999px;
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.footer__top:hover {
  border-color: var(--butter);
  background: rgba(255, 211, 107, 0.12);
}

/* ---------- Motion ---------- */

@keyframes rise-in {
  from {
    opacity: 0;
    translate: 0 18px;
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    translate: 0 22px;
    scale: 0.97;
  }
}

@keyframes hello-bob {
  50% {
    translate: 0 -6px;
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes ping {
  0% {
    opacity: 0.8;
    scale: 0.6;
  }
  80%,
  100% {
    opacity: 0;
    scale: 1.5;
  }
}

@keyframes wiggle {
  25% {
    rotate: -5deg;
  }
  60% {
    rotate: 4deg;
  }
}

@keyframes egg-wobble {
  0%,
  100% {
    rotate: -4deg;
  }
  50% {
    rotate: 4deg;
  }
}

@keyframes shimmer {
  to {
    background-position: -300% 0;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero__frame {
    aspect-ratio: 16 / 10;
  }

  .hero__img {
    object-position: 76% 50%;
  }

  .hero__frame::before {
    background: linear-gradient(90deg, rgba(255, 250, 222, 0.9) 0%, rgba(255, 250, 222, 0.62) 42%, transparent 62%);
  }

  .hero__content {
    width: 52%;
  }

  .hero__hello {
    top: 6%;
  }

  .promise__inner {
    grid-template-columns: 1fr;
  }

  .promise__points li:nth-child(2) {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .nav {
    padding: 16px 0 14px;
  }

  .fleet__label {
    display: none;
  }

  .fleet {
    padding: 0 14px 0 12px;
  }

  .nav__cta {
    display: none;
  }

  .brand__type strong {
    font-size: 22px;
  }

  .hero__frame {
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
    border-radius: 34px;
    background: #fdf7d6;
  }

  .hero__frame::before {
    display: none;
  }

  .hero__frame::after {
    inset: 8px;
    border-radius: 26px;
  }

  .hero__content {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    padding: 34px 26px 8px;
    transform: none;
  }

  .hero__img {
    position: relative;
    order: 2;
    height: 250px;
    object-position: 80% 70%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
  }

  .hero__kicker {
    margin-bottom: 18px;
    font-size: 14px;
  }

  .hero__tagline {
    margin-top: 18px;
  }

  .hero__actions {
    margin-top: 24px;
  }

  .hero__hello {
    top: auto;
    right: 18px;
    bottom: 178px;
    padding: 9px 15px 10px;
  }

  .hero__hello strong {
    font-size: 16px;
  }

  .hero__hello small {
    font-size: 12px;
  }

  .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: -30px 6px 0;
  }

  .stat {
    flex-direction: column;
    gap: 6px;
    padding: 10px 6px 12px;
    text-align: center;
  }

  .stat strong {
    min-width: 44px;
    height: 44px;
    font-size: 24px;
    border-radius: 14px;
  }

  .stat span {
    font-size: 10.5px;
  }

  .stat span br {
    display: none;
  }

  .ribbon {
    margin-top: 52px;
  }

  .ribbon__item {
    font-size: 18px;
  }

  .ribbon__emoji {
    width: 32px;
    height: 32px;
    font-size: 17px;
  }

  .collection {
    padding: 70px 0 96px;
  }

  .collection__head {
    margin-bottom: 26px;
  }

  .toolbar {
    flex-direction: column-reverse;
    flex-wrap: nowrap;
    align-items: stretch;
    padding: 10px;
    border-radius: 28px;
  }

  .search {
    flex-basis: auto;
    max-width: none;
    min-width: 0;
  }

  .filters {
    flex-wrap: nowrap;
    min-width: 0;
    margin: 0 -10px;
    padding: 2px 10px 6px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex: none;
    scroll-snap-align: start;
  }

  .game-grid {
    gap: 24px;
  }

  .game-card__name {
    font-size: 26px;
  }

  .promise__inner {
    gap: 36px;
    padding: 76px 0 90px;
  }

  .promise__points li {
    padding: 16px 18px 16px 14px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (hover: none) {
  .game-card__link:hover,
  .game-card:nth-child(even) .game-card__link:hover {
    transform: none;
  }

  .game-card__link:hover .game-card__img {
    transform: none;
  }
}

@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;
  }

  .ribbon__track {
    animation: none;
  }
}
