/* SMP.DOG site styles. Plain CSS, no build step. */

:root {
  --brown: #c68b59;
  --caramel: #d9a06b;
  --cream: #f3e5c8;
  --sky: #8ec5e8;
  --pink: #f4a6b8;
  --mint: #a8ddb5;
  --muted: #c2b5a3;
  --cocoa: #8b5a3c;

  --bg: #fbf4e6;
  --bg-2: #f3e5c8;
  --card: #fffaf0;
  --text: #3d2a1e;
  --text-soft: #6b5446;
  --line: #ead8b8;
  --link: #8b5a3c;
  --btn: #8b5a3c;
  --btn-text: #fffaf0;
  --btn-hover: #74472d;
  --shadow: 0 2px 0 #e4cfa8, 0 10px 24px rgba(139, 90, 60, 0.08);
  --focus: #2f7fb5;

  --radius: 18px;
  --gutter: 16px;
  --max: 1080px;
  --font-head: "Baloo 2", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1611;
    --bg-2: #261c15;
    --card: #2b2119;
    --text: #f3e5c8;
    --text-soft: #c9bba8;
    --line: #3e3024;
    --link: #f0bd8c;
    --btn: #d9a06b;
    --btn-text: #2a1a0f;
    --btn-hover: #e8b37f;
    --shadow: 0 2px 0 #140f0b, 0 10px 24px rgba(0, 0, 0, 0.25);
    --focus: #8ec5e8;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--link);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.4em;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

code,
kbd {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.05em 0.35em;
  white-space: nowrap;
}

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

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

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--card);
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 10;
}

.skip:focus {
  left: 8px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- header ---------- */

.site-header {
  background: var(--bg);
  border-bottom: 2px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
}

.brand img {
  width: 38px;
  height: 38px;
}

.nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}

.nav a:hover {
  background: var(--bg-2);
}

.nav a[aria-current="page"] {
  background: var(--cream);
  color: #3d2a1e;
}

@media (prefers-color-scheme: dark) {
  .nav a[aria-current="page"] {
    background: #3a2c20;
    color: var(--cream);
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  background: var(--btn);
  color: var(--btn-text);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
  transition: transform 0.12s ease, background 0.12s ease;
}

.btn:hover {
  background: var(--btn-hover);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.btn-sky {
  background: var(--sky);
  color: #18364a;
}

.btn-sky:hover {
  background: #a3d1ef;
}

.btn-ip {
  font-size: 1.35rem;
  padding: 14px 26px;
  min-width: 220px;
}

.btn-ip .ip {
  letter-spacing: 0.02em;
}

.btn-ip .hint {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0.85;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 2px 9px;
}

.btn-ip.copied .hint {
  background: var(--mint);
  color: #1f4a2b;
  opacity: 1;
}

.btn-small {
  font-size: 0.95rem;
  padding: 7px 14px;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  text-align: center;
  padding: 48px 0 92px;
  background:
    radial-gradient(circle at 12% 25%, rgba(244, 166, 184, 0.28), transparent 320px),
    radial-gradient(circle at 88% 30%, rgba(142, 197, 232, 0.35), transparent 360px),
    linear-gradient(180deg, #e3f1fa 0%, var(--bg) 100%);
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  .hero {
    background:
      radial-gradient(circle at 12% 25%, rgba(244, 166, 184, 0.10), transparent 320px),
      radial-gradient(circle at 88% 30%, rgba(142, 197, 232, 0.12), transparent 360px),
      linear-gradient(180deg, #1c2630 0%, var(--bg) 100%);
  }
}

/* grass + dirt edge at the bottom of the hero, a little blocky nod */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  background:
    repeating-linear-gradient(90deg, #8fcf88 0 24px, #7fc178 24px 48px) top / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, #b88560 0 24px, #a97653 24px 48px) bottom / 100% 24px no-repeat;
}

@media (prefers-color-scheme: dark) {
  .hero::after {
    background:
      repeating-linear-gradient(90deg, #5f8f5a 0 24px, #557f51 24px 48px) top / 100% 12px no-repeat,
      repeating-linear-gradient(90deg, #6e4d37 0 24px, #634430 24px 48px) bottom / 100% 24px no-repeat;
  }
}

.hero .paws {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero .paws span {
  position: absolute;
  font-size: 26px;
  opacity: 0.18;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero .logo {
  width: 136px;
  height: 136px;
  margin: 0 auto 10px;
  filter: drop-shadow(0 6px 10px rgba(80, 50, 30, 0.18));
}

.title {
  font-size: clamp(3rem, 12vw, 5.2rem);
  font-weight: 800;
  color: var(--sky);
  letter-spacing: 0.01em;
  margin: 0;
  -webkit-text-stroke: 7px #6b4429;
  paint-order: stroke fill;
  text-shadow: 0 5px 0 rgba(107, 68, 41, 0.25);
}

/* the same soft white shine that slides across SMP.DOG in the in-game tab list (3 ticks per letter, 7 letters + a pause) */
.shine .shine-letters span {
  display: inline-block;
  animation: shine 2.1s linear infinite;
  animation-delay: calc(var(--i) * 0.15s);
}

@keyframes shine {
  0%, 14.3%, 100% { color: var(--sky); }
  3.5%, 10.7% { color: #cde7f7; }
  7.1% { color: #ffffff; }
}

@media (prefers-reduced-motion: reduce) {
  .shine .shine-letters span { animation: none; }
}

.pitch {
  font-size: clamp(1.1rem, 3.2vw, 1.3rem);
  color: var(--text-soft);
  max-width: 34em;
  margin: 8px auto 26px;
}

.status {
  margin: 18px 0 0;
  font-weight: 700;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  margin-right: 6px;
  vertical-align: 1px;
}

.dot.on {
  background: #4fb36a;
  box-shadow: 0 0 0 4px rgba(79, 179, 106, 0.2);
}

/* ---------- page heads (inner pages) ---------- */

.page-head {
  text-align: center;
  padding: 44px 0 30px;
  background: linear-gradient(180deg, #e3f1fa 0%, var(--bg) 100%);
}

@media (prefers-color-scheme: dark) {
  .page-head {
    background: linear-gradient(180deg, #1c2630 0%, var(--bg) 100%);
  }
}

.page-head h1 {
  font-size: clamp(2.2rem, 7vw, 3rem);
}

.page-head p {
  color: var(--text-soft);
  max-width: 34em;
  margin: 0 auto;
}

.emoji-big {
  font-size: 2.6rem;
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}

/* ---------- sections and cards ---------- */

.section {
  padding: 44px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 26px;
}

.section-title p {
  color: var(--text-soft);
  margin: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card .icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 34px;
  margin-bottom: 12px;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.08);
}

.bg-sky { background: #d7ecf8; }
.bg-pink { background: #fbdde5; }
.bg-mint { background: #d6f0dc; }
.bg-caramel { background: #f6dfc3; }
.bg-cream { background: #f3e5c8; }

@media (prefers-color-scheme: dark) {
  .bg-sky { background: #263744; }
  .bg-pink { background: #44282f; }
  .bg-mint { background: #24382a; }
  .bg-caramel { background: #45311f; }
  .bg-cream { background: #3a2f22; }
}

.card .cmd {
  font-size: 0.92rem;
  color: var(--text-soft);
}

.extras {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
}

.extras li {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 0.95rem;
}

.band {
  background: var(--bg-2);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  text-align: center;
}

.band p {
  color: var(--text-soft);
}

/* lists */

.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}

.ticks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 6px;
}

.ticks li::before {
  content: "🐾";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.85em;
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 2px 0 14px 48px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sky);
  color: #18364a;
  font-family: var(--font-head);
  font-weight: 800;
}

.note {
  background: var(--card);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--text-soft);
}

.pill {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--pink);
  color: #4a1f2b;
  border-radius: 999px;
  padding: 3px 14px;
  margin-bottom: 12px;
}

.pill.mint {
  background: var(--mint);
  color: #1f4a2b;
}

/* tips grid on join page */

.tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 14px;
}

.tip {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}

.tip code {
  font-size: 1rem;
  font-weight: 700;
}

.tip p {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ranks */

.rank-name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.rank-name .price {
  font-weight: 800;
  color: var(--text-soft);
  font-size: 1rem;
}

.rank-card {
  border-top-width: 8px;
}

.rank-card.r-biscuit { border-top-color: #e2c49e; }
.rank-card.r-squeaky { border-top-color: var(--pink); }
.rank-card.r-frisbee { border-top-color: var(--sky); }
.rank-card.r-golden { border-top-color: #f2cc6b; }
.rank-card.r-club { border-top-color: var(--mint); }

.rank-card h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  margin: 14px 0 4px;
  color: var(--text-soft);
}

.rank-card ul {
  margin: 0;
  padding-left: 20px;
}

.rank-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.rank-grid .club {
  grid-column: 1 / -1;
}

.club-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 0 24px;
}

.small {
  font-size: 0.92rem;
  color: var(--text-soft);
}

.ladder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 14px;
}

.ladder .card {
  padding: 18px;
}

.ladder ul {
  padding-left: 18px;
  margin: 6px 0 0;
  font-size: 0.93rem;
}

/* rules */

.rules {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.rules .card h2 {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rules .card ul {
  margin: 0;
  padding-left: 20px;
}

.rules .card li {
  margin-bottom: 4px;
}

.big-rule {
  background: #fde3e9;
  border-color: #f2b8c6;
  color: #3d2a1e;
}

@media (prefers-color-scheme: dark) {
  .big-rule {
    background: #3d2229;
    border-color: #6b3a47;
    color: var(--text);
  }
}

/* bone party picture */

.bone-art {
  width: 220px;
  max-width: 70%;
  margin: 6px auto 18px;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 2px solid var(--line);
  padding: 30px 0 36px;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer .brand {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.site-footer p {
  margin: 0 0 6px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}

.foot-links a {
  font-weight: 700;
}

.copy-inline {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 800;
  color: var(--link);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- small screens ---------- */

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .site-header {
    position: static;
  }

  .site-header .wrap {
    justify-content: center;
  }

  .nav {
    justify-content: center;
    gap: 2px;
  }

  .nav a {
    padding: 6px 10px;
  }

  .hero {
    padding-top: 32px;
  }

  .hero .paws span:nth-child(2),
  .hero .paws span:nth-child(4) {
    display: none;
  }

  .hero .logo {
    width: 108px;
    height: 108px;
  }

  .title {
    -webkit-text-stroke-width: 5px;
  }

  .btn-ip {
    width: 100%;
  }

  .buttons .btn {
    width: 100%;
  }

  .section {
    padding: 34px 0;
  }

  .site-footer .wrap {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ---------- store: product cards, cart ---------- */

.store-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}

.store-jump a {
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
}

.store-jump a:hover {
  border-color: var(--caramel);
}

.section[id] {
  scroll-margin-top: 80px;
}

.thanks {
  background: #d6f0dc;
  border-color: #a8ddb5;
  color: #1f4a2b;
  margin-top: 22px;
}

#store-error {
  margin-top: 22px;
}

@media (prefers-color-scheme: dark) {
  .thanks {
    background: #1f3326;
    border-color: #35553f;
    color: var(--text);
  }
}

.item-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.item-grid[data-tag="cosmetics"] {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
}

.shop-card {
  display: flex;
  flex-direction: column;
}

.shop-card h3 {
  margin: 0;
}

.shop-card > p {
  margin: 10px 0 0;
}

.shop-card .price {
  font-weight: 800;
  color: var(--text-soft);
}

.shop-card .card-foot {
  margin-top: auto;
  padding-top: 16px;
}

.shop-card .add-btn {
  width: 100%;
}

.add-btn.in-cart {
  background: var(--mint);
  color: #1f4a2b;
}

.perks {
  margin-top: 12px;
}

.perks summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--link);
}

.perks p {
  margin: 12px 0 4px;
}

.shop-card {
  text-align: left;
  min-width: 0;
  overflow-wrap: anywhere;
}

.perks ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

/* little pink paw dots instead of the browser's bullets, lined up with the text */
.perks li {
  position: relative;
  padding-left: 1.4em;
  margin: 4px 0;
}

.perks li::before {
  content: "";
  position: absolute;
  left: 0.3em;
  top: 0.55em;
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: var(--pink);
}

.club .perks ul {
  margin-bottom: 4px;
}

.cart-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  background: var(--btn);
  color: var(--btn-text);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18), 0 10px 24px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.cart-fab:hover {
  background: var(--btn-hover);
}

.cart-count {
  background: var(--pink);
  color: #4a1f2b;
  border-radius: 999px;
  min-width: 26px;
  padding: 0 7px;
  font-size: 0.95rem;
  text-align: center;
}

.cart-fab.bump {
  animation: bump 0.35s ease;
}

@keyframes bump {
  40% { transform: scale(1.1); }
}

.cart {
  border: 0;
  padding: 0;
  margin: 0 0 0 auto;
  width: min(420px, 100%);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  background: var(--bg);
  color: var(--text);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
}

.cart[open] {
  display: block;
}

.cart::backdrop {
  background: rgba(40, 25, 15, 0.45);
}

.cart-inner {
  padding: 20px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-head h2 {
  margin: 0;
}

.cart-x {
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
}

.cart-lines {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.cart-line {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}

.cl-info {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 800;
}

.cl-price {
  color: var(--text-soft);
  white-space: nowrap;
}

.cl-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
}

.qty-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.qty {
  min-width: 22px;
  text-align: center;
  font-weight: 800;
}

.rm-btn {
  margin-left: auto;
  background: none;
  border: 0;
  color: var(--link);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 6px 2px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-head);
  font-size: 1.3rem;
  border-top: 2px solid var(--line);
  padding-top: 10px;
}

.cart .small {
  margin: 0;
}

.field {
  display: grid;
  gap: 6px;
  font-weight: 800;
  margin-top: 6px;
}

.field input {
  font: inherit;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: var(--card);
  color: var(--text);
}

.field input[aria-invalid="true"] {
  border-color: #d65c6f;
}

.cart-msg {
  margin: 0;
  color: #b23a4e;
  font-weight: 700;
}

.cart-msg:empty {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .cart-msg {
    color: #f4a6b8;
  }
}

.btn-wide {
  width: 100%;
}

.btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.secure {
  text-align: center;
}

.foot-legal a {
  font-weight: 700;
}

/* ---------- legal pages ---------- */

.legal {
  max-width: 760px;
}

.legal h2 {
  font-size: 1.35rem;
  margin-top: 30px;
}

.legal ul {
  padding-left: 22px;
}

.todo {
  background: #fff1b8;
  color: #4a3b00;
  border-radius: 6px;
  padding: 0 6px;
  font-weight: 800;
}

@media (max-width: 560px) {
  .cart-fab {
    right: 12px;
    bottom: 12px;
  }
}

/* ---------- store: icons, name box, section bar, toast ---------- */

.store-page .site-header {
  position: static;
}

.store-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 2px solid var(--line);
}

.store-nav .wrap {
  display: flex;
  gap: 8px;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 8px;
  padding-bottom: 8px;
}

.store-nav .wrap::-webkit-scrollbar {
  display: none;
}

.store-nav a {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 3px 14px 3px 6px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.store-nav a img,
.icon-tile img,
.who-head,
.cl-icon,
.toast-icon,
.fab-paw,
.compare th img,
.deliver-to img {
  image-rendering: pixelated;
}

.store-nav a:hover {
  border-color: var(--caramel);
}

.store-nav a[aria-current="true"] {
  background: var(--caramel);
  border-color: var(--caramel);
  color: #2a1a0f;
}

.store-page .section[id] {
  scroll-margin-top: 64px;
}

/* little pixel paws either side of the store section titles */
.store-page .section-title h2::before,
.store-page .section-title h2::after {
  content: "";
  display: inline-block;
  width: 26px;
  height: 26px;
  margin: 0 10px;
  vertical-align: -2px;
  background: url("products/paw.png") center / contain no-repeat;
  image-rendering: pixelated;
}

.store-page .section-title h2::before {
  transform: rotate(-14deg);
}

.store-page .section-title h2::after {
  transform: rotate(14deg);
}

.paw-trail {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 10px auto;
  opacity: 0.35;
}

.paw-trail img {
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
  transform: rotate(80deg);
}

.paw-trail img:nth-child(odd) {
  margin-top: 16px;
}

/* who's shopping */

.who {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  border-color: var(--caramel);
  border-style: dashed;
}

.who.is-set {
  border-style: solid;
  border-color: var(--mint);
}

.who-head {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: var(--bg-2);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.08);
}

.who-head.paw {
  padding: 8px;
}

.who-body {
  flex: 1;
  min-width: 0;
}

.who h2 {
  font-size: 1.5rem;
  margin: 0 0 2px;
  overflow-wrap: anywhere;
}

.who .small {
  margin: 0 0 10px;
}

.who-done .small {
  margin: 0;
}

.who-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.who-form input {
  flex: 1 1 200px;
  min-width: 0;
  font: inherit;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--bg);
  color: var(--text);
}

.who-form input[aria-invalid="true"] {
  border-color: #d65c6f;
}

.who-msg {
  margin: 8px 0 0;
  color: #b23a4e;
  font-weight: 700;
  font-size: 0.95rem;
}

.who-msg:empty {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .who-msg {
    color: #f4a6b8;
  }
}

.who.nudge {
  animation: nudge 0.5s ease;
}

@keyframes nudge {
  20% { transform: translateX(-6px) rotate(-0.6deg); }
  40% { transform: translateX(6px) rotate(0.6deg); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

.link-btn {
  background: none;
  border: 0;
  padding: 4px 0;
  font: inherit;
  font-weight: 700;
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* product cards */

.shop-card {
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 0 #e4cfa8, 0 16px 30px rgba(139, 90, 60, 0.14);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.card-head {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.card-head h3 {
  margin: 0;
}

.icon-tile {
  flex: none;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.07);
}

.icon-tile img {
  width: 64px;
  height: 64px;
}

.icon-tile.big {
  width: 112px;
  height: 112px;
  border-radius: 26px;
}

/* rank cards: big icon on top, name and price under it */
.rank-card:not(.club) .card-top {
  flex-direction: column;
  text-align: center;
  gap: 10px;
  margin-bottom: 10px;
}

.rank-card:not(.club) .card-head {
  justify-items: center;
}

.icon-tile.big img {
  width: 96px;
  height: 96px;
}

.shop-card:hover .icon-tile img {
  animation: wiggle 0.5s ease;
}

@keyframes wiggle {
  25% { transform: rotate(-8deg) scale(1.06); }
  60% { transform: rotate(6deg) scale(1.06); }
}

.tile-caramel { background: #f6dfc3; }
.tile-pink { background: #fbdde5; }
.tile-sky { background: #d7ecf8; }
.tile-mint { background: #d6f0dc; }
.tile-cream { background: #efe2c6; }
.tile-gold { background: #fbecc0; }

@media (prefers-color-scheme: dark) {
  .tile-caramel { background: #45311f; }
  .tile-pink { background: #44282f; }
  .tile-sky { background: #263744; }
  .tile-mint { background: #24382a; }
  .tile-cream { background: #3a2f22; }
  .tile-gold { background: #433719; }
  .shop-card:hover { box-shadow: 0 2px 0 #140f0b, 0 16px 30px rgba(0, 0, 0, 0.35); }
}

.price-wrap {
  display: grid;
  gap: 2px;
}

.shop-card .price {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--text);
}

.rank-card .price {
  font-size: 1.45rem;
}

.price .was {
  color: var(--text-soft);
  font-size: 0.85em;
  font-weight: 700;
}

.deal,
.per {
  font-size: 0.85rem;
  font-weight: 800;
  color: #2f6b40;
}

@media (prefers-color-scheme: dark) {
  .deal,
  .per {
    color: var(--mint);
  }
}

.ribbon {
  position: absolute;
  top: -13px;
  right: 16px;
  z-index: 1;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--pink);
  color: #4a1f2b;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
  transform: rotate(3deg);
}

.ribbon-value {
  background: var(--mint);
  color: #1f4a2b;
}

.add-btn.needs-name {
  background: var(--line);
  color: var(--text-soft);
  box-shadow: none;
  cursor: not-allowed;
}

.add-btn[aria-disabled="true"].in-cart {
  cursor: default;
}

.add-hint {
  margin: 6px 0 0;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-soft);
}

.add-hint:empty {
  display: none;
}

/* rank comparison */

.compare {
  margin-top: 26px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.compare summary {
  cursor: pointer;
  padding: 14px 20px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--link);
}

.compare-hint {
  display: none;
  margin: -6px 20px 8px;
}

.compare-scroll {
  overflow-x: auto;
  position: relative;
  padding: 0 12px 14px;
}

.compare table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.compare th,
.compare td {
  padding: 8px 10px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare tbody th {
  text-align: left;
  font-weight: 700;
  position: sticky;
  left: 0;
  background: var(--card);
  min-width: 140px;
}

.compare thead th {
  vertical-align: bottom;
  font-family: var(--font-head);
}

.compare thead th img {
  width: 32px;
  height: 32px;
  margin: 0 auto 2px;
}

.ct-name,
.ct-price {
  display: block;
}

.ct-price {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-soft);
}

.compare .yes {
  color: #2f8a4c;
  font-weight: 800;
  font-size: 1.1rem;
}

.compare .no {
  color: var(--muted);
}

@media (prefers-color-scheme: dark) {
  .compare .yes {
    color: var(--mint);
  }
}

/* cart extras */

.fab-paw {
  width: 24px;
  height: 24px;
}

.btn-paw {
  width: 20px;
  height: 20px;
  image-rendering: pixelated;
  margin-left: 2px;
}

.cart-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.cl-icon {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 4px;
  border-radius: 12px;
  background: var(--bg-2);
}

.cl-body {
  flex: 1;
  min-width: 0;
}

.deliver-to {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 8px 12px;
}

.deliver-to[hidden] {
  display: none;
}

.deliver-to img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.deliver-to p {
  margin: 0;
  overflow-wrap: anywhere;
}

.deliver-to .link-btn {
  margin-left: 6px;
}

.thanks-line {
  text-align: center;
  font-weight: 700;
}

.thanks-line span {
  color: #d9607e;
}

/* "added!" toast */

.toast {
  position: fixed;
  right: 18px;
  bottom: 84px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(380px, calc(100vw - 24px));
  padding: 10px 12px 10px 10px;
  background: var(--card);
  border: 2px solid var(--mint);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(60, 35, 20, 0.22);
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast[hidden] {
  display: none;
}

.toast.show {
  opacity: 1;
  transform: none;
}

.toast-icon {
  flex: none;
  width: 48px;
  height: 48px;
  padding: 4px;
  border-radius: 12px;
  background: #d6f0dc;
}

.toast.show .toast-icon {
  animation: hop 0.7s ease 0.1s 2;
}

@keyframes hop {
  30% { transform: translateY(-9px) rotate(-6deg); }
  55% { transform: translateY(0) rotate(0); }
  70% { transform: translateY(-3px); }
}

.toast-text {
  display: grid;
  min-width: 0;
  line-height: 1.3;
}

.toast-text span {
  color: var(--text-soft);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.toast .btn {
  flex: none;
}

@media (prefers-color-scheme: dark) {
  .toast-icon {
    background: #24382a;
  }
}

@media (max-width: 560px) {
  .store-nav .wrap {
    justify-content: flex-start;
  }

  .compare table {
    min-width: 470px;
    font-size: 0.86rem;
  }

  .compare tbody th {
    min-width: 116px;
  }

  .compare th,
  .compare td {
    padding: 7px 6px;
  }

  .compare-hint {
    display: block;
  }

  .who {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .who-form .btn {
    width: 100%;
  }

  .rank-card:not(.club) .card-top {
    flex-direction: row;
    text-align: left;
    gap: 14px;
  }

  .rank-card:not(.club) .card-head {
    justify-items: start;
  }

  .icon-tile.big {
    width: 96px;
    height: 96px;
    border-radius: 22px;
  }

  .icon-tile.big img {
    width: 64px;
    height: 64px;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: 74px;
    max-width: none;
  }

  .store-page .section-title h2::before,
  .store-page .section-title h2::after {
    width: 20px;
    height: 20px;
    margin: 0 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-card,
  .shop-card:hover {
    transform: none;
  }

  .shop-card:hover .icon-tile img,
  .toast.show .toast-icon,
  .who.nudge,
  .cart-fab.bump {
    animation: none;
  }

  .toast {
    transition: none;
  }
}

/* Starter Bundle: one wide featured card above the ranks */

.store-page .bundle-sec {
  padding-top: 18px;
  padding-bottom: 8px;
}

.bundle-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  max-width: 880px;
  margin: 0 auto;
  padding: 28px;
  border: 3px solid #f2cc6b;
  background: linear-gradient(135deg, var(--card) 55%, #fbecc0);
}

.bundle-card:hover {
  transform: none;
}

.bundle-card > .icon-tile.big {
  width: 168px;
  height: 168px;
  border-radius: 34px;
}

.bundle-card > .icon-tile.big img {
  width: 128px;
  height: 128px;
}

.bundle-card h3 {
  font-size: 1.9rem;
  line-height: 1.1;
}

.bundle-card .price {
  font-size: 1.6rem;
}

.bundle-body > p {
  margin: 12px 0 0;
}

.inside {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

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

.inside img {
  flex: none;
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
}

.inside-note {
  display: block;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* the Founder Pup colors on a little dark chat line, like in game */
.founder-chat {
  display: inline-block;
  max-width: 100%;
  margin: 16px 0 0;
  padding: 8px 14px;
  border-radius: 10px;
  background: #2a1f18;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.founder-text {
  background: linear-gradient(90deg, #8ec5e8, #f4a6b8, #f3e5c8, #d9a06b, #f4a6b8, #8ec5e8);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: founder-slide 5s linear infinite;
}

.founder-sep {
  color: #c2b5a3;
}

@keyframes founder-slide {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .founder-text {
    animation: none;
  }
}

.bundle-card .card-foot {
  max-width: 340px;
}

@media (prefers-color-scheme: dark) {
  .bundle-card {
    border-color: #b8923a;
    background: linear-gradient(135deg, var(--card) 55%, #433719);
  }
}

@media (max-width: 640px) {
  .bundle-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 18px 20px;
  }

  .bundle-card > .icon-tile.big {
    justify-self: center;
    width: 132px;
    height: 132px;
    border-radius: 28px;
  }

  .bundle-card > .icon-tile.big img {
    width: 96px;
    height: 96px;
  }

  .bundle-card .card-head {
    justify-items: center;
    text-align: center;
  }

  .bundle-card .card-foot {
    max-width: none;
  }
}

@media (prefers-color-scheme: dark) {
  .founder-chat {
    background: #1a130e;
    box-shadow: inset 0 0 0 2px var(--line);
  }
}
