:root {
  --gogout-yellow: #ffd100;
  --sun: #ffbf00;
  --ink: #1f1b16;
  --soft-ink: rgba(31, 27, 22, 0.72);
  --line: rgba(31, 27, 22, 0.18);
  --paper: #fffaf0;
  --cream: #fff3c9;
  --grass: #96bf69;
  --grass-dark: #557f3a;
  --sky: #0f8be8;
  --orange: #f2752f;
  --blue-soft: #d9efff;
  --shadow: rgba(58, 44, 4, 0.16);
  --mono: "Space Mono", monospace;
  --body: "Nunito", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(31, 27, 22, 0.035) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(180deg, #fffaf0 0%, #fff7df 42%, #ffe071 100%);
  font-family: var(--body);
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

body.site-locked {
  overflow: hidden;
}

body.site-locked .site-nav,
body.site-locked main {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

.password-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(31, 27, 22, 0.08) 1px, transparent 1px) 0 0 / 54px 54px,
    rgba(255, 209, 0, 0.94);
}

.password-gate[hidden] {
  display: none;
}

.password-card {
  display: grid;
  width: min(460px, 100%);
  gap: 16px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  padding: 26px;
  background: #fffaf0;
  box-shadow: 12px 14px 0 rgba(31, 27, 22, 0.2);
}

.password-card img {
  width: 190px;
}

.password-card h1 {
  font-size: 2.8rem;
}

.password-card p {
  margin: 0;
  color: var(--soft-ink);
  font-weight: 900;
  line-height: 1.45;
}

.password-card label {
  display: grid;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.password-card input {
  min-height: 50px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0 14px;
  background: #fffdf6;
  box-shadow: inset 3px 3px 0 rgba(31, 27, 22, 0.08);
  font-family: var(--body);
  font-size: 1rem;
  text-transform: none;
}

.password-note {
  min-height: 22px;
  font-family: var(--mono);
  font-size: 0.72rem;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(31, 27, 22, 0.08) 0.8px, transparent 0.8px);
  background-size: 9px 9px;
  content: "";
  opacity: 0.32;
  pointer-events: none;
}

button,
input,
select {
  font: inherit;
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 76px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.88);
  backdrop-filter: blur(16px);
}

.menu-button {
  display: none;
  justify-self: start;
  min-height: 40px;
  margin-left: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fffdf6;
  box-shadow: none;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.nav-logo-link {
  position: static;
  display: grid;
  width: 154px;
  height: 48px;
  place-items: center;
  justify-self: start;
  border-radius: 0;
  background: transparent;
  transform: none;
}

.nav-logo {
  display: block;
  width: 132px;
  height: auto;
  max-height: 38px;
  object-fit: contain;
}

.site-nav nav {
  position: static;
  justify-self: end;
  display: flex;
  gap: clamp(18px, 2.8vw, 42px);
  margin-top: 0;
}

.site-nav a,
.nav-icons a {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-icons {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  margin-right: 0;
}

.hero-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
  min-height: auto;
  padding: 42px 5vw 28px;
}

.kicker {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0 0 18px;
  font-size: 5.6rem;
  line-height: 0.95;
}

h2 {
  margin: 0;
  font-size: 3.35rem;
  line-height: 1;
}

h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.12;
}

.play-intro p,
.story-copy p,
.family-section p {
  max-width: 440px;
  margin: 0;
  color: var(--soft-ink);
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.52;
}

.hero-board {
  position: relative;
  width: min(1240px, 100%);
  aspect-ratio: 5 / 1;
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-board::before,
.hero-board::after {
  display: none;
}

.hero-board::before {
  top: 48px;
}

.hero-board::after {
  bottom: 96px;
}

.hero-board-logo {
  display: none;
}

.hero-scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.hero-scene img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
  filter: saturate(1.05);
}

.hero-board-caption {
  display: none;
}

.hero-board-caption span {
  font-size: 0.82rem;
  text-transform: uppercase;
}

.hero-board-caption strong {
  max-width: 360px;
  text-align: right;
}

.collection-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
  width: 100%;
  margin: 18px auto 0;
}

.collection-strip button,
.text-link,
.upload-card {
  color: var(--ink);
  text-decoration: none;
}

.collection-strip button {
  display: grid;
  min-height: 48px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fffdf6;
  box-shadow: 3px 4px 0 rgba(31, 27, 22, 0.1);
  font-family: var(--mono);
  font-weight: 700;
}

.collection-strip button.active {
  background: var(--gogout-yellow);
}

.shop-section,
.play-section,
.story-section,
.family-section {
  padding: 78px 5vw;
}

.shop-section {
  padding: 34px 5vw 78px;
}

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

.product-card {
  position: relative;
  display: grid;
  gap: 0;
  min-height: 370px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 16px;
  background: #fffdf6;
  box-shadow: 7px 8px 0 rgba(31, 27, 22, 0.1);
  animation: product-pop 260ms ease both;
  cursor: pointer;
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translate(-2px, -3px);
  box-shadow: 10px 12px 0 rgba(31, 27, 22, 0.13);
  outline: none;
}

.product-card p {
  margin: 14px 0 6px;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.product-card > span {
  display: block;
  margin-top: 10px;
  color: var(--soft-ink);
  font-weight: 800;
  line-height: 1.35;
}

.product-card small {
  position: absolute;
  right: 14px;
  top: 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--gogout-yellow);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
}

.product-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.product-card-meta strong {
  font-family: var(--mono);
  font-size: 0.86rem;
}

.card-swatches,
.variant-swatches {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.color-dot {
  display: inline-block;
  width: 18px;
  height: 18px;
  min-height: 18px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  padding: 0;
  background: var(--product-color, var(--gogout-yellow));
  box-shadow: none;
  cursor: pointer;
}

.product-open {
  width: 100%;
  min-height: 42px;
  margin-top: 16px;
  padding: 0 12px;
  background: var(--gogout-yellow);
  font-family: var(--mono);
  font-size: 0.78rem;
}

@keyframes product-pop {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-art {
  position: relative;
  height: 170px;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, transparent 63%, rgba(85, 127, 58, 0.24) 63%),
    var(--cream);
  --product-color: var(--gogout-yellow);
  --product-accent: var(--ink);
}

.product-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  object-fit: contain;
  padding: 8px;
}

.product-art::before,
.product-art::after {
  position: absolute;
  content: "";
}

.product-art.leash::before {
  inset: 42px 44px 54px;
  border: 9px solid var(--product-color);
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(-22deg);
}

.product-art.leash::after {
  right: 32px;
  bottom: 42px;
  width: 108px;
  height: 10px;
  border-radius: 999px;
  background: var(--product-accent);
  transform: rotate(-18deg);
}

.product-art.bowl::before {
  left: 50%;
  bottom: 42px;
  width: 158px;
  height: 52px;
  border: 5px solid var(--ink);
  border-radius: 0 0 80px 80px;
  background: var(--product-color);
  transform: translateX(-50%);
}

.product-art.bowl::after {
  left: 50%;
  bottom: 84px;
  width: 170px;
  height: 42px;
  border: 5px solid var(--ink);
  border-radius: 50%;
  background: #fffdf6;
  transform: translateX(-50%);
}

.product-art.pouch::before {
  left: 50%;
  bottom: 36px;
  width: 118px;
  height: 112px;
  border: 5px solid var(--ink);
  border-radius: 8px 8px 22px 22px;
  background: var(--product-color);
  transform: translateX(-50%) rotate(2deg);
}

.product-art.pouch::after {
  left: 50%;
  top: 44px;
  width: 68px;
  height: 28px;
  border: 4px solid var(--ink);
  border-radius: 999px 999px 8px 8px;
  transform: translateX(-50%);
}

.product-art.roll::before {
  left: 50%;
  top: 48px;
  width: 96px;
  height: 96px;
  border: 5px solid var(--ink);
  border-radius: 50%;
  background: var(--product-color);
  transform: translateX(-50%);
}

.product-art.roll::after {
  left: 50%;
  top: 76px;
  width: 38px;
  height: 38px;
  border: 5px solid var(--ink);
  border-radius: 50%;
  background: #fffdf6;
  transform: translateX(-50%);
}

.product-art.ball::before {
  left: 50%;
  top: 38px;
  width: 104px;
  height: 104px;
  border: 5px solid var(--ink);
  border-radius: 50%;
  background: var(--product-color);
  box-shadow:
    -58px 38px 0 -24px var(--product-accent),
    62px 48px 0 -28px var(--orange);
  transform: translateX(-50%);
}

.product-art.ball::after {
  left: 50%;
  top: 82px;
  width: 118px;
  height: 10px;
  border-radius: 999px;
  background: rgba(31, 27, 22, 0.82);
  transform: translateX(-50%) rotate(-18deg);
}

.product-art.light::before {
  left: 50%;
  top: 44px;
  width: 86px;
  height: 86px;
  border: 5px solid var(--ink);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 50%, #fffdf6 0 18px, transparent 19px),
    var(--product-color);
  box-shadow: 0 0 0 10px rgba(255, 209, 0, 0.2);
  transform: translateX(-50%) rotate(8deg);
}

.product-art.light::after {
  left: 50%;
  top: 30px;
  width: 42px;
  height: 24px;
  border: 5px solid var(--ink);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  transform: translateX(-50%) rotate(8deg);
}

.product-art.tag::before {
  left: 50%;
  top: 44px;
  width: 104px;
  height: 118px;
  border: 5px solid var(--ink);
  border-radius: 50% 50% 8px 8px;
  background: var(--product-color);
  transform: translateX(-50%) rotate(-7deg);
}

.product-art.tag::after {
  left: 50%;
  top: 88px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--product-accent);
  transform: translateX(-50%);
}

.product-art.kit::before {
  left: 44px;
  bottom: 40px;
  width: 82px;
  height: 92px;
  border: 5px solid var(--ink);
  border-radius: 8px;
  background: var(--product-color);
  transform: rotate(-5deg);
}

.product-art.kit::after {
  right: 44px;
  bottom: 44px;
  width: 86px;
  height: 76px;
  border: 5px solid var(--ink);
  border-radius: 8px;
  background: var(--product-accent);
  transform: rotate(6deg);
}

.marketplace-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 18px;
  background: var(--gogout-yellow);
  box-shadow: 7px 8px 0 rgba(31, 27, 22, 0.12);
}

.shop-eyebrow {
  display: inline-flex;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.marketplace-panel h2 {
  margin: 0 0 4px;
  font-size: 1.5rem;
}

.marketplace-panel p {
  margin: 0;
  max-width: 560px;
  font-weight: 800;
}

.marketplace-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.marketplace-link {
  min-height: 56px;
  min-width: 160px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 8px 12px;
  background: #fffdf6;
  color: var(--ink);
  box-shadow: 3px 4px 0 rgba(31, 27, 22, 0.14);
  cursor: pointer;
  text-align: left;
}

.marketplace-link.disabled,
.marketplace-link:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: 3px 4px 0 rgba(31, 27, 22, 0.1);
}

.marketplace-link span {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.marketplace-link strong {
  display: block;
  margin-top: 3px;
  font-size: 0.96rem;
}

.checkout-note {
  grid-column: 1 / -1;
  min-height: 24px;
  color: rgba(31, 27, 22, 0.78);
  font-size: 0.9rem;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  padding: 28px;
  align-items: center;
  justify-content: center;
}

.product-modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  min-height: auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: rgba(31, 27, 22, 0.48);
  box-shadow: none;
  cursor: default;
}

.modal-backdrop:hover,
.modal-backdrop:active {
  transform: none;
  box-shadow: none;
}

.product-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 0.7fr);
  gap: 24px;
  width: min(1180px, 100%);
  max-height: min(860px, calc(100svh - 56px));
  overflow: auto;
  border: 3px solid var(--ink);
  border-radius: 8px;
  padding: 22px;
  background: #fffaf0;
  box-shadow: 12px 14px 0 rgba(31, 27, 22, 0.26);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  min-height: 40px;
  padding: 0 12px;
  background: var(--gogout-yellow);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.product-gallery {
  display: grid;
  gap: 12px;
}

.gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 209, 0, 0.38), rgba(255, 250, 240, 0.86)),
    #fffdf6;
}

.gallery-art {
  position: absolute;
  inset: 38px;
  height: auto;
  min-height: 360px;
  border-color: rgba(31, 27, 22, 0.22);
  background:
    linear-gradient(180deg, transparent 62%, rgba(85, 127, 58, 0.2) 62%),
    #fff3c9;
}

.product-photo.gallery-art {
  inset: 16px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  min-height: 0;
  padding: 18px;
  object-fit: contain;
}

.gallery-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 250, 240, 0.9);
  box-shadow: 0 8px 22px rgba(31, 27, 22, 0.1);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 10px;
}

.gallery-thumb {
  display: grid;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 8px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fffdf6;
  box-shadow: 4px 5px 0 rgba(31, 27, 22, 0.1);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-align: center;
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: contain;
}

.gallery-thumb.active {
  background: var(--gogout-yellow);
}

.product-buybox {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 8px 4px 4px;
}

.product-family {
  margin: 0;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.product-buybox h2 {
  padding-right: 86px;
  font-size: 2.7rem;
}

.product-copy {
  margin: 0;
  color: var(--soft-ink);
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.5;
}

.price-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  padding: 14px 0;
}

.price-line strong {
  font-family: var(--mono);
  font-size: 1.5rem;
}

.price-line span {
  color: var(--soft-ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-align: right;
}

.variant-block {
  display: grid;
  gap: 8px;
}

.variant-block > span {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.color-choice,
.size-choice {
  min-height: 44px;
  padding: 0 12px;
  background: #fffdf6;
  box-shadow: none;
  font-size: 0.84rem;
}

.color-choice {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  min-height: 58px;
  text-align: left;
}

.choice-copy,
.size-choice {
  display: grid;
  gap: 2px;
}

.choice-copy small,
.size-choice small {
  color: var(--soft-ink);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}

.size-choice {
  min-width: 104px;
  justify-items: center;
  padding: 8px 12px;
}

.color-choice.active,
.size-choice.active {
  background: var(--gogout-yellow);
}

.color-choice.sold-out,
.size-choice.sold-out {
  position: relative;
  color: rgba(31, 27, 22, 0.58);
  background:
    repeating-linear-gradient(135deg, rgba(31, 27, 22, 0.08) 0 8px, rgba(31, 27, 22, 0) 8px 16px),
    #f3efe2;
}

.color-choice.sold-out::after,
.size-choice.sold-out::after {
  position: absolute;
  top: 6px;
  right: 8px;
  content: "Sold out";
  border: 1px solid rgba(31, 27, 22, 0.35);
  border-radius: 999px;
  padding: 2px 6px;
  background: rgba(255, 250, 240, 0.92);
  color: var(--soft-ink);
  font-family: var(--mono);
  font-size: 0.52rem;
  font-weight: 800;
  text-transform: uppercase;
}

.variant-sizes,
.modal-marketplaces {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-detail-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.product-detail-list span {
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fffdf6;
  font-weight: 900;
  text-align: center;
  overflow-wrap: anywhere;
}

.product-bullet-list {
  display: grid;
  gap: 8px;
}

.product-bullet-list p {
  margin: 0;
  border-left: 5px solid var(--gogout-yellow);
  padding: 9px 10px;
  background: rgba(255, 209, 0, 0.12);
  color: var(--soft-ink);
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.38;
}

.modal-marketplaces .marketplace-link {
  flex: 1 1 170px;
}

.play-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(560px, 1fr) minmax(320px, 0.52fr);
  gap: 22px;
  align-items: start;
  background:
    linear-gradient(180deg, rgba(255, 209, 0, 0.3), rgba(255, 250, 240, 0.9)),
    #fff5cc;
}

.play-intro {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 16px;
  padding-top: 18px;
}

.play-intro h2 {
  font-size: 3rem;
}

.park-panel {
  position: sticky;
  top: 96px;
  height: 650px;
  min-height: 560px;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--gogout-yellow);
  box-shadow: 10px 12px 0 rgba(31, 27, 22, 0.12);
}

#dogPark {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

#dogPark.dragging {
  cursor: grabbing;
}

.map-toolbar {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}

.map-toolbar > div {
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 9px 11px;
  background: rgba(255, 250, 240, 0.86);
  box-shadow: 4px 5px 0 rgba(31, 27, 22, 0.12);
  backdrop-filter: blur(8px);
}

.map-toolbar strong,
.map-toolbar span,
.map-toolbar em {
  display: block;
}

.map-toolbar span,
.tooltips {
  font-size: 0.8rem;
  font-weight: 900;
}

.map-toolbar em {
  max-width: 260px;
  margin-top: 2px;
  color: var(--soft-ink);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
}

.zoom-controls {
  display: flex;
  gap: 6px;
  padding: 6px;
  pointer-events: auto;
}

.zoom-controls button {
  display: grid;
  width: 36px;
  min-height: 34px;
  padding: 0;
  place-items: center;
  border-width: 2px;
  border-radius: 8px;
  box-shadow: none;
  background: var(--paper);
  font-size: 1rem;
}

.save-panel {
  display: grid;
  gap: 14px;
  align-self: start;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 250, 240, 0.92);
  box-shadow: 8px 10px 0 rgba(31, 27, 22, 0.1);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.panel-heading h2 {
  font-size: 2rem;
}

.panel-heading img {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.creator,
.save-form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

label span {
  font-size: 0.78rem;
  text-transform: uppercase;
}

input,
select {
  min-height: 48px;
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fffdf6;
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--ink);
  box-shadow: 4px 5px 0 rgba(31, 27, 22, 0.14);
}

.button-row,
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

button {
  min-height: 48px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0 16px;
  background: #fffdf6;
  box-shadow: 4px 5px 0 rgba(31, 27, 22, 0.14);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

button:hover {
  transform: translate(-1px, -2px);
  box-shadow: 6px 7px 0 rgba(31, 27, 22, 0.16);
}

button:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 3px 0 rgba(31, 27, 22, 0.16);
}

.primary {
  background: var(--gogout-yellow);
}

.secondary,
.icon-action {
  background: #fffdf6;
}

.full {
  width: 100%;
}

.preview-note,
.save-note {
  margin: 0;
  border: 2px dashed rgba(31, 27, 22, 0.32);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.56);
  font-size: 0.9rem;
  font-weight: 900;
}

.icon-action span {
  display: inline-grid;
  min-width: 28px;
  height: 28px;
  margin-right: 8px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gogout-yellow);
  font-size: 0.78rem;
}

.id-card {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 209, 0, 0.35), transparent 42%),
    #fffdf6;
  box-shadow: 5px 6px 0 rgba(31, 27, 22, 0.12);
}

.id-card.previewing {
  animation: preview-pop 340ms ease both;
}

.id-card.rolling {
  animation: card-roll 520ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.id-card.rolling::before {
  position: absolute;
  inset: -10px;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 209, 0, 0.96) 0 18px, rgba(242, 117, 47, 0.9) 18px 34px),
    var(--gogout-yellow);
  color: var(--ink);
  content: "ROLLING...";
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 700;
  animation: roll-cover 520ms ease both;
}

@keyframes preview-pop {
  0% {
    transform: rotate(1.2deg) scale(0.96);
  }

  70% {
    transform: rotate(-0.5deg) scale(1.02);
  }

  100% {
    transform: rotate(1.2deg) scale(1);
  }
}

@keyframes card-roll {
  0% {
    transform: rotate(1.2deg) translateY(0) scale(1);
  }

  45% {
    transform: rotate(-3deg) translateY(-10px) scale(0.98);
  }

  100% {
    transform: rotate(1.2deg) translateY(0) scale(1);
  }
}

@keyframes roll-cover {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }

  25%,
  76% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.05);
  }
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.card-top strong {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
  background: var(--gogout-yellow);
}

.portrait {
  display: grid;
  height: 150px;
  margin: 14px 0;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(transparent 68%, rgba(85, 127, 58, 0.3) 68%),
    repeating-linear-gradient(90deg, rgba(150, 191, 105, 0.2) 0 8px, transparent 8px 15px),
    #cfeaa1;
}

.portrait-sprite {
  display: none;
  width: 100%;
  height: 100%;
  background-image: url("./assets/dog-sprites.png");
  background-repeat: no-repeat;
  background-size: 400% 300%;
  filter: drop-shadow(0 8px 8px rgba(31, 27, 22, 0.14));
}

.portrait.has-sprite .portrait-sprite {
  display: block;
}

.portrait.pixel-style .portrait-sprite {
  image-rendering: pixelated;
}

.portrait.has-sprite .portrait-dog {
  display: none;
}

.portrait-dog {
  position: relative;
  width: calc(112px * var(--body-x, 1));
  height: calc(70px * var(--body-y, 1));
  border: 3px solid var(--ink);
  border-radius: 48% 44% 42% 45%;
  background: #d99a55;
  --accent: #8c5a31;
  --body-x: 1;
  --body-y: 1;
  --head: 1;
  --leg: 1;
  --muzzle: #fff4e0;
  --collar: #f2752f;
}

.portrait-dog::before {
  position: absolute;
  top: calc(-24px * var(--head, 1));
  left: calc(70px * var(--body-x, 1));
  width: calc(44px * var(--head, 1));
  height: calc(40px * var(--head, 1));
  border: 3px solid var(--ink);
  border-radius: 48% 50% 43% 45%;
  background: inherit;
  content: "";
}

.portrait-dog::after {
  position: absolute;
  top: calc(-30px * var(--head, 1));
  left: calc(94px * var(--body-x, 1));
  width: calc(18px * var(--head, 1));
  height: calc(26px * var(--head, 1));
  border: 3px solid var(--ink);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: var(--accent);
  transform: rotate(18deg);
  content: "";
}

.portrait-dog.ear-flop::after {
  top: calc(-24px * var(--head, 1));
  left: calc(77px * var(--body-x, 1));
  width: calc(16px * var(--head, 1));
  height: calc(34px * var(--head, 1));
  border-bottom: 3px solid var(--ink);
  border-radius: 999px;
  transform: rotate(36deg);
}

.portrait-dog.ear-bat::after {
  top: calc(-38px * var(--head, 1));
  left: calc(91px * var(--body-x, 1));
  width: calc(28px * var(--head, 1));
  height: calc(38px * var(--head, 1));
  border-bottom: 3px solid var(--ink);
  border-radius: 80% 20% 70% 20%;
  transform: rotate(4deg);
}

.portrait-dog .leg {
  position: absolute;
  bottom: calc(-19px * var(--leg, 1));
  width: 9px;
  height: calc(22px * var(--leg, 1));
  border: 3px solid var(--ink);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: inherit;
}

.portrait-dog .leg:nth-child(1) {
  left: 18%;
}

.portrait-dog .leg:nth-child(2) {
  left: 52%;
}

.portrait-dog .muzzle,
.portrait-dog .mark,
.portrait-dog .collar {
  position: absolute;
  pointer-events: none;
}

.portrait-dog .muzzle {
  top: calc(-14px * var(--head, 1));
  left: calc(92px * var(--body-x, 1));
  width: calc(20px * var(--head, 1));
  height: calc(14px * var(--head, 1));
  border-radius: 999px;
  background: var(--muzzle);
}

.portrait-dog .collar {
  top: 15%;
  right: 20%;
  width: 28px;
  height: 10px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--collar);
  transform: rotate(14deg);
}

.portrait-dog .mark {
  display: none;
  background: var(--accent);
}

.portrait-dog.mark-spot .mark,
.portrait-dog.mark-freckles .mark {
  display: block;
  top: 18%;
  left: 20%;
  width: 22px;
  height: 15px;
  border-radius: 50%;
  transform: rotate(-18deg);
}

.portrait-dog.mark-saddle .mark {
  display: block;
  top: 6%;
  left: 18%;
  width: 52%;
  height: 46%;
  border-radius: 50% 50% 40% 60%;
}

.portrait-dog.mark-chest .mark,
.portrait-dog.mark-blaze .mark {
  display: block;
  top: 24%;
  right: 20%;
  width: 24px;
  height: 35px;
  border-radius: 50%;
  background: #fffaf0;
}

.id-card h2 {
  margin: 0;
  font-size: 2rem;
}

.id-card p {
  margin: 4px 0 14px;
  font-weight: 900;
}

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

.tag-row span {
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 6px 9px;
  background: #bfe88c;
  font-size: 0.78rem;
  font-weight: 900;
}

.share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.share-actions button {
  min-height: 42px;
  padding: 0 8px;
  font-size: 0.78rem;
}

.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 9px;
  align-items: start;
  font-weight: 700;
}

.consent input {
  min-height: auto;
  height: 20px;
  padding: 0;
  box-shadow: none;
  accent-color: var(--orange);
}

.consent span {
  text-transform: none;
  font-size: 0.86rem;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 0.7fr);
  gap: 44px;
  align-items: center;
  background: #fffaf0;
}

.story-art {
  display: grid;
  min-height: 420px;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  background: var(--gogout-yellow);
  box-shadow: 10px 12px 0 rgba(31, 27, 22, 0.12);
}

.story-art img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
}

.story-copy {
  display: grid;
  gap: 16px;
}

.text-link {
  display: inline-grid;
  width: max-content;
  min-height: 48px;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0 18px;
  background: var(--gogout-yellow);
  box-shadow: 4px 5px 0 rgba(31, 27, 22, 0.14);
  font-family: var(--mono);
  font-weight: 700;
}

.family-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(320px, 0.55fr);
  gap: 32px;
  align-items: center;
  min-height: 520px;
  background: var(--gogout-yellow);
}

.family-section h2 {
  margin-bottom: 16px;
}

.upload-card {
  display: grid;
  gap: 18px;
  justify-items: center;
  border: 3px solid var(--ink);
  border-radius: 8px;
  padding: 22px;
  background: #fffdf6;
  box-shadow: 10px 12px 0 rgba(31, 27, 22, 0.14);
  font-family: var(--mono);
  font-weight: 700;
  text-align: center;
}

.upload-card img {
  width: min(100%, 280px);
  border-radius: 8px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 40px));
  border: 3px solid var(--ink);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--paper);
  box-shadow: 5px 6px 0 rgba(31, 27, 22, 0.16);
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1260px) {
  .site-nav nav {
    display: flex;
    gap: 20px;
  }

  .hero-section,
  .play-section {
    grid-template-columns: 1fr;
  }

  .play-intro,
  .park-panel {
    position: relative;
    top: auto;
  }

  .save-panel {
    grid-template-columns: minmax(260px, 360px) minmax(280px, 420px);
    align-items: start;
  }

  .panel-heading,
  .creator,
  .actions,
  .save-form {
    grid-column: 1;
  }

  .id-card,
  .share-actions {
    grid-column: 2;
  }
}

@media (max-width: 920px) {
  .site-nav {
    grid-template-columns: auto 1fr;
    gap: 12px;
    min-height: 68px;
    padding: 0 18px;
  }

  .menu-button {
    display: none;
    margin-left: 0;
  }

  .nav-logo-link {
    width: 138px;
    height: 46px;
  }

  .nav-logo {
    width: 118px;
  }

  .site-nav nav {
    justify-self: end;
    gap: 14px;
  }

  .nav-icons {
    display: none;
  }

  .nav-icons a {
    font-size: 0.7rem;
  }

  .hero-section,
  .shop-section,
  .play-section,
  .story-section,
  .family-section {
    padding: 46px 18px;
  }

  h1 {
    font-size: 4rem;
  }

  h2,
  .play-intro h2 {
    font-size: 2.35rem;
  }

  .hero-board {
    min-height: 0;
  }

  .hero-board-logo {
    width: 150px;
  }

  .collection-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 560px;
  }

  .product-grid,
  .marketplace-panel,
  .product-dialog,
  .story-section,
  .family-section {
    grid-template-columns: 1fr;
  }

  .product-modal {
    padding: 14px;
  }

  .product-dialog {
    max-height: calc(100svh - 28px);
    padding: 16px;
  }

  .gallery-main {
    min-height: 0;
  }

  .gallery-art {
    inset: 16px;
    min-height: 0;
  }

  .product-buybox h2 {
    padding-right: 0;
    font-size: 2.2rem;
  }

  .marketplace-buttons {
    justify-content: stretch;
  }

  .marketplace-link {
    width: 100%;
  }

  .park-panel {
    height: 64vh;
    min-height: 460px;
  }

  .save-panel {
    grid-template-columns: 1fr;
  }

  .panel-heading,
  .creator,
  .actions,
  .save-form,
  .id-card,
  .share-actions {
    grid-column: auto;
  }

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

  .tooltips {
    display: none;
  }
}

@media (max-width: 560px) {
  .menu-button {
    display: none;
  }

  .site-nav {
    grid-template-columns: 1fr;
    min-height: 64px;
    justify-items: center;
  }

  .nav-logo-link {
    width: 132px;
    height: 48px;
    justify-self: center;
  }

  .nav-logo {
    width: 116px;
  }

  .nav-icons a:nth-child(1),
  .nav-icons a:nth-child(2) {
    display: none;
  }

  .site-nav nav {
    display: none;
  }

  h1 {
    font-size: 3.1rem;
  }

  .hero-board {
    min-height: 0;
    box-shadow: none;
  }

  .hero-board-caption {
    display: none;
  }

  .hero-board-caption strong {
    text-align: left;
  }

  .product-card {
    min-height: 280px;
  }

  .product-art {
    height: 140px;
  }

  .gallery-thumbs,
  .product-detail-list {
    grid-template-columns: 1fr 1fr;
  }

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

  .price-line span {
    text-align: left;
  }

  .share-actions {
    grid-template-columns: 1fr;
  }
}
