/* =====================================================================
   CAMPBOUND TRADING POST — Tebex template styles
   Same design language as campboundmc.net: cream parchment, forest and
   sage greens, warm wood, honey and ember accents, crisp pixel frames.

   All colours and fonts live in :root below. Change them there only.
   Pixel frames are small PNGs (cb-*.png) scaled 3x with image-rendering:
   pixelated, exactly like the website. Their URLs are set as --i-* variables
   in layout.html with Tebex's asset() function, so they always resolve.
   ===================================================================== */

:root {
  /* palette (matches campboundmc.net) */
  --ink: #3B2A20;
  --ink-soft: #6A5040;
  --cream: #FFF6E3;
  --paper: #FFF8E8;
  --parch: #F6E7C4;
  --parch-d: #E2CC9A;
  --parch-dd: #C9AE78;
  --forest: #2E5C40;
  --forest-d: #24492F;
  --leaf: #4E8350;
  --sage: #8DAA63;
  --sage-l: #C9DBA5;
  --sage-ll: #E7EFD6;
  --wood: #8A5634;
  --honey: #E9B949;
  --ember: #E0712F;
  --berry: #C2566B;

  /* type (the website's four fonts) */
  --display: 'Jersey 10', ui-monospace, monospace;
  --ui: 'M PLUS Rounded 1c', ui-rounded, 'Nunito', system-ui, sans-serif;
  --micro: 'M PLUS Rounded 1c', ui-rounded, 'Nunito', system-ui, sans-serif;
  --body: 'M PLUS Rounded 1c', ui-rounded, 'Nunito', system-ui, sans-serif;

  /* layout */
  --wrap: 1180px;
  --gutter: 20px;
  --radius: 0px;              /* pixel game: square corners */
  --step: steps(2);           /* chunky pixel motion */

  /* Tebex legal footer (must stay visible; colours only) */
  --tebex-legal-footer-background-color: #24492F;
  --tebex-legal-footer-text-color: #DCE8C8;
  --tebex-legal-footer-border-color: #2E5C40;
  --tebex-legal-footer-logo-color: #DCE8C8;
  --tebex-legal-footer-max-width: 1180px;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  font-variant-ligatures: none;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--leaf); }
a:hover { color: var(--ember); }
button { font: inherit; }
:focus-visible { outline: 3px dashed var(--ember); outline-offset: 3px; }
.cb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cb-wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.px { image-rendering: pixelated; }

h1, h2, h3, h4 { margin: 0; color: var(--forest); text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; line-height: 1; }
h3, h4 { font-family: var(--ui); font-weight: 600; letter-spacing: .02em; line-height: 1.15; }
p { margin: 0; }

/* ----------------------------------------------------------- pixel frames */
.f-hud { border: 24px solid transparent; border-image: var(--i-hud) 8 fill / 24px / 0 round; image-rendering: pixelated; }
.f-tag { border: 15px solid transparent; border-image: var(--i-tag) 5 fill / 15px / 0 round; image-rendering: pixelated; }

/* ------------------------------------------------------------- buttons */
/* primary: the website's wooden sign-tab */
.cb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 56px; box-sizing: border-box;
  border: 15px solid transparent; border-image: var(--i-play) 5 fill / 15px / 0 round; image-rendering: pixelated;
  padding: 0 4px 3px; background: none; cursor: pointer;
  font-family: var(--ui); font-weight: 700; font-size: 16px; letter-spacing: .06em; color: var(--forest);
  text-decoration: none; text-transform: uppercase; white-space: nowrap;
  filter: drop-shadow(0 3px 0 rgba(46, 92, 64, .2));
  transition: transform .1s var(--step);
}
.cb-btn i { width: 22px; height: 21px; flex: none; background: var(--i-tent-icon) center / contain no-repeat; image-rendering: pixelated; }
.cb-btn:hover { color: var(--forest); border-image-source: var(--i-play-h); transform: translateY(-2px); }
.cb-btn:active { transform: translateY(1px); }
.cb-btn[aria-disabled="true"], .cb-btn:disabled { filter: grayscale(.9) opacity(.6); pointer-events: none; }
.cb-btn--wide { width: 100%; }

/* secondary: small parchment chip */
.cb-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 9px solid transparent; border-image: var(--i-chip) 3 fill / 9px / 0 round; image-rendering: pixelated;
  padding: 1px 6px; background: none; cursor: pointer;
  font-family: var(--ui); font-weight: 700; font-size: 14px; letter-spacing: .06em; color: var(--forest);
  text-decoration: none; white-space: nowrap; line-height: 1.3;
  transition: transform .1s var(--step);
}
.cb-chip:hover { border-image-source: var(--i-chip-h); color: var(--ink); transform: translateY(-2px); }

/* text link with an ember dotted underline on hover, like the site nav */
.cb-link { font-family: var(--ui); font-weight: 600; font-size: 15px; letter-spacing: .05em; color: var(--forest); text-decoration: none; position: relative; }
.cb-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--ember) 0 4px, transparent 4px 8px); opacity: 0; transition: opacity .12s var(--step); }
.cb-link:hover { color: var(--ember); }
.cb-link:hover::after { opacity: 1; }
.cb-link--arrow::before { content: "\2190\00a0"; }

/* ---------------------------------------------------------------- header */
.cb-top {
  position: relative; z-index: 30;
  background: var(--forest) var(--i-forest-tile) 0 0 / 96px 96px repeat;
  padding: 12px 0 0;
}
.cb-top::after { /* treeline edge melting into the cream page */
  content: ""; display: block; height: 48px; margin-top: 10px;
  background: var(--i-treeline) center bottom / auto 48px repeat-x; image-rendering: pixelated;
  transform: scaleY(-1);
}
.cb-top-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cb-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.cb-brand i { width: 24px; height: 20px; margin: -6px 0 -4px; background: var(--i-brand-tent) center / 100% 100% no-repeat; image-rendering: pixelated; }
.cb-brand b { font-family: var(--ui); font-weight: 600; font-size: 15px; letter-spacing: .14em; color: var(--forest); margin: -6px 0; }
.cb-brand small { display: block; margin: 4px 0 -8px; font-family: var(--micro); font-size: 9px; letter-spacing: .1em; color: var(--wood); }

.cb-nav { display: flex; align-items: center; border-width: 20px; margin: 0; filter: drop-shadow(0 3px 0 rgba(10, 24, 16, .25)); }
.cb-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; margin: -12px 0; padding: 0; }
.cb-nav a { position: relative; display: block; padding: .35em .55em; font-family: var(--ui); font-weight: 600; font-size: 15px; letter-spacing: .07em;
  color: var(--forest); text-decoration: none; text-transform: uppercase; }
.cb-nav a::after { content: ""; position: absolute; left: .55em; right: .55em; bottom: .15em; height: 2px;
  background: repeating-linear-gradient(90deg, var(--ember) 0 4px, transparent 4px 8px); opacity: 0; transition: opacity .12s var(--step); }
.cb-nav a:hover, .cb-nav a[aria-current="page"] { color: var(--ember); }
.cb-nav a:hover::after, .cb-nav a[aria-current="page"]::after { opacity: 1; }

.cb-acts { display: flex; align-items: center; gap: 10px; }
.cb-basket { display: inline-flex; align-items: center; gap: 8px; border-width: 15px 14px; text-decoration: none;
  font-family: var(--ui); font-weight: 700; font-size: 15px; letter-spacing: .04em; color: var(--wood);
  filter: drop-shadow(0 3px 0 rgba(10, 24, 16, .25)); transition: transform .12s var(--step); }
.cb-basket span { margin: -8px -2px; display: inline-flex; align-items: center; gap: 8px; }
.cb-basket em { font-style: normal; min-width: 22px; height: 22px; padding: 0 5px; display: inline-grid; place-items: center;
  background: var(--forest); color: var(--cream); font-size: 13px; box-shadow: 0 2px 0 var(--forest-d); }
.cb-basket:hover { color: var(--ember); transform: translateY(-2px); }

.cb-burger { display: none; width: 48px; height: 48px; border-width: 15px; padding: 0; cursor: pointer; background: none; color: var(--forest); }
.cb-burger span { display: block; width: 18px; height: 2px; margin: 3px auto; background: currentColor; box-shadow: 0 1px 0 rgba(255,255,255,.4); }

/* store category rail (all seven categories, always one tap away) */
.cb-rail { position: relative; z-index: 2; padding-top: 18px; }
.cb-rail ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; list-style: none; margin: 0; padding: 0; }
.cb-rail a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 7px; text-decoration: none; white-space: nowrap;
  font-family: var(--ui); font-weight: 600; font-size: 14px; letter-spacing: .05em; color: var(--forest);
  background: var(--paper); box-shadow: 0 0 0 2px var(--parch-d), 0 4px 0 2px var(--parch-dd); transition: transform .1s var(--step); }
.cb-rail a::before { content: ""; width: 9px; height: 6px; background: var(--i-glyph) 0 0 / 100% 100% no-repeat; image-rendering: pixelated; }
.cb-rail a:hover { transform: translateY(-2px); color: var(--ember); }
.cb-rail a[aria-current="page"] { background: var(--forest); color: var(--cream); box-shadow: 0 0 0 2px var(--forest-d), 0 4px 0 2px #1b3824; }

/* toast (Tebex page.message) */
.cb-toast { max-width: 720px; margin: 18px auto 0; padding: 12px 16px; font-weight: 700; font-size: 15px;
  background: var(--paper); box-shadow: 0 0 0 2px var(--parch-d), 0 4px 0 2px var(--parch-dd); }
.cb-toast--error, .cb-toast--danger { box-shadow: 0 0 0 2px var(--berry), 0 4px 0 2px #8f3a4b; color: #7b2a3a; }
.cb-toast--success { box-shadow: 0 0 0 2px var(--leaf), 0 4px 0 2px var(--forest); color: var(--forest); }

/* ---------------------------------------------------------------- hero */
.cb-hero { padding: 22px 0 8px; }
/* BANNER SLOT: replace via Template Options > "Hero banner". Recommended 1920 x 600 (16:5). */
.cb-banner { position: relative; aspect-ratio: 16 / 5; width: 100%; overflow: hidden;
  background: var(--sage-ll) var(--i-canvas-tile) 0 0 / 32px 32px repeat;
  box-shadow: 0 0 0 3px var(--parch-d), 0 0 0 6px var(--paper), 0 0 0 8px var(--parch-dd), 0 10px 0 8px rgba(46, 92, 64, .14); }
.cb-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.cb-banner--empty::before { /* calm resting state when no banner is uploaded yet: no text, no broken image */
  content: ""; position: absolute; inset: 0;
  background: var(--i-treeline) center bottom / auto 48px repeat-x; image-rendering: pixelated; opacity: .55; }
.cb-banner--empty::after { content: ""; position: absolute; left: 50%; top: 42%; width: 57px; height: 54px; transform: translate(-50%, -50%);
  background: var(--i-tent-icon) center / contain no-repeat; image-rendering: pixelated; opacity: .35; }

.cb-hero-card { position: relative; max-width: 820px; margin: -46px auto 0; text-align: center; border-width: 24px; }
.cb-hero-card h1 { font-size: clamp(38px, 5vw, 58px); margin-top: -6px; text-shadow: 0 2px 0 rgba(255, 246, 227, .8); }
.cb-hero-card p { max-width: 560px; margin: 10px auto 0; color: var(--ink-soft); font-size: 17px; }
.cb-hero-acts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 16px; margin: 18px 0 -4px; }
.cb-ip { display: inline-flex; align-items: center; gap: 12px; padding: 0 2px; min-height: 56px; }
.cb-ip span { display: grid; text-align: left; line-height: 1.1; }
.cb-ip small { font-family: var(--micro); font-size: 10px; letter-spacing: .08em; color: var(--leaf); }
.cb-ip code { font-family: var(--ui); font-weight: 600; font-size: 17px; color: var(--ink); }
.cb-hero-sub { margin-top: 12px; }

/* ------------------------------------------------------------ sections */
.cb-sec { padding: 64px 0; }
.cb-sec + .cb-sec { padding-top: 24px; }
.cb-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 26px; }
.cb-head h2 { font-size: clamp(34px, 4.2vw, 48px); }
.cb-head p { max-width: 560px; color: var(--ink-soft); }
.cb-head .cb-link { margin-bottom: 6px; }
.cb-divider { height: 26px; margin: 8px auto; max-width: 560px; background: var(--i-divider) center / 100% 100% no-repeat; image-rendering: pixelated; }

/* welcome strip: three short steps, set like field notes (no boxes) */
.cb-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 34px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.cb-steps li { position: relative; padding: 16px 0 0 0; border-top: 2px dotted var(--parch-dd); counter-increment: s; }
.cb-steps li::before { content: counter(s); position: absolute; top: -14px; left: 0; width: 26px; height: 26px; display: grid; place-items: center;
  font-family: var(--ui); font-weight: 700; font-size: 14px; color: var(--cream); background: var(--leaf); box-shadow: 0 2px 0 var(--forest); }
.cb-steps h3 { font-size: 18px; margin: 6px 0 4px; }
.cb-steps p { font-size: 15px; color: var(--ink-soft); }

/* ------------------------------------------------------------- art slot */
/* Every package keeps a fixed artwork box so future pixel art drops in cleanly.
   Upload a package image in Tebex and it fills this box (contain, pixel-crisp). */
.cb-art { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--sage-ll) var(--i-canvas-tile) 0 0 / 32px 32px repeat; }
.cb-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.cb-art--empty::after { /* tiny sprout, low contrast: reads as "art goes here" without shouting */
  content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 24px; transform: translate(-50%, -50%);
  background: var(--i-sp-two) center / contain no-repeat; image-rendering: pixelated; opacity: .32; }
.cb-art--wide { aspect-ratio: 4 / 3; }

/* --------------------------------------------------------- product card */
.cb-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.cb-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cb-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--paper);
  box-shadow: 0 0 0 2px var(--parch-d), 0 5px 0 2px var(--parch-dd);
  transition: transform .12s var(--step), box-shadow .12s var(--step); }
.cb-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--sage), 0 8px 0 2px var(--parch-dd); }
.cb-card::after { content: ""; position: absolute; top: -9px; right: 10px; width: 14px; height: 14px;
  background: var(--i-sp-curl) center / contain no-repeat; image-rendering: pixelated; opacity: 0; transition: opacity .12s var(--step); }
.cb-card:hover::after { opacity: 1; }
.cb-card .cb-art { border-bottom: 2px solid var(--parch-d); }
.cb-card-b { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 14px 16px 16px; }
.cb-card h3 { font-size: 20px; }
.cb-card h3 a { color: inherit; text-decoration: none; }
.cb-card h3 a::before { content: ""; position: absolute; inset: 0; } /* whole card is the link target */
.cb-card .cb-sub { font-size: 14.5px; line-height: 1.45; color: var(--ink-soft); }
.cb-card-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.cb-card-f .cb-chip { position: relative; z-index: 1; }

.cb-price { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; letter-spacing: .03em; color: var(--ink); white-space: nowrap; }
.cb-price small { font-family: var(--ui); font-weight: 600; font-size: 12px; letter-spacing: .06em; color: var(--ink-soft); }
.cb-price del { font-weight: 400; font-size: 19px; color: var(--ink-soft); margin-right: 4px; }
.cb-price--soon { font-family: var(--ui); font-size: 13px; letter-spacing: .06em; color: var(--wood); text-transform: uppercase; }
.cb-pill { display: inline-block; padding: 2px 7px 3px; font-family: var(--micro); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--forest); background: var(--sage-ll); box-shadow: 0 0 0 1px var(--sage); }

/* rank ladder: one card per animal, a quiet "everything before" line */
.cb-ranks .cb-card-b { gap: 4px; }
.cb-ranks .cb-stack { font-family: var(--micro); font-size: 9.5px; letter-spacing: .08em; color: var(--leaf); text-transform: uppercase; }
.cb-note { position: relative; margin-top: 22px; padding-left: 26px; font-size: 14.5px; color: var(--ink-soft); }
.cb-note::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; background: var(--i-sp-tiny) center / 10px 10px no-repeat; image-rendering: pixelated; }

/* ------------------------------------------------------- Frog feature */
.cb-band { background: var(--sage-ll); box-shadow: inset 0 2px 0 var(--sage-l), inset 0 -2px 0 var(--sage-l); }
.cb-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: center; }
.cb-feature .cb-art { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--sage), 0 8px 0 5px rgba(46, 92, 64, .12); }
.cb-feature h2 { font-size: clamp(34px, 4.2vw, 48px); margin-bottom: 10px; }
.cb-feature > div > p { color: var(--ink-soft); }
.cb-ticks { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 7px; }
.cb-ticks li { position: relative; padding-left: 22px; font-size: 15.5px; }
.cb-ticks li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; background: var(--i-leaf) center / 12px 12px no-repeat; image-rendering: pixelated; }
.cb-billing { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 18px; }
.cb-billing .cb-price { font-size: 32px; }
.cb-terms { margin-top: 10px; font-size: 13.5px; color: var(--ink-soft); }

/* ------------------------------------------------- keys + keyrings */
.cb-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cb-item { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; background: var(--paper);
  box-shadow: 0 0 0 2px var(--parch-d), 0 4px 0 2px var(--parch-dd); transition: transform .12s var(--step), box-shadow .12s var(--step); }
.cb-item:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--sage), 0 6px 0 2px var(--parch-dd); }
.cb-item .cb-art { box-shadow: 0 0 0 2px var(--parch-d); }
.cb-item h3 { font-size: 17px; }
.cb-item h3 a { color: inherit; text-decoration: none; }
.cb-item h3 a::before { content: ""; position: absolute; inset: 0; }
.cb-item .cb-sub { font-size: 13.5px; line-height: 1.4; color: var(--ink-soft); margin: 2px 0 6px; }
.cb-item .cb-price { font-size: 22px; }
.cb-contents { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 6px; padding: 0; list-style: none; }
.cb-contents li { font-size: 12.5px; font-weight: 700; padding: 1px 7px; color: var(--forest); background: var(--sage-ll); box-shadow: 0 0 0 1px var(--sage-l); }
.cb-subhead { display: flex; align-items: center; gap: 12px; margin: 34px 0 16px; font-family: var(--ui); font-weight: 600; font-size: 20px; color: var(--forest); }
.cb-subhead::after { content: ""; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--parch-dd) 0 4px, transparent 4px 8px); }

/* ------------------------------------------- themes + pet skins (tiles) */
.cb-split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; }
.cb-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cb-tile { position: relative; background: var(--paper); box-shadow: 0 0 0 2px var(--parch-d), 0 4px 0 2px var(--parch-dd); transition: transform .12s var(--step); }
.cb-tile:hover { transform: translateY(-2px); }
.cb-tile .cb-art { aspect-ratio: 4 / 3; border-bottom: 2px solid var(--parch-d); }
.cb-tile b { display: block; padding: 8px 10px 0; font-family: var(--ui); font-weight: 600; font-size: 15px; color: var(--forest); }
.cb-tile b a { color: inherit; text-decoration: none; }
.cb-tile b a::before { content: ""; position: absolute; inset: 0; }
.cb-tile > span { display: block; padding: 0 10px 9px; font-size: 13px; color: var(--ink-soft); }
.cb-col h3 { font-size: 22px; margin-bottom: 4px; }
.cb-col > p { font-size: 15px; color: var(--ink-soft); margin-bottom: 14px; }
.cb-soonlist { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cb-soonlist li { font-family: var(--ui); font-weight: 600; font-size: 14px; padding: 6px 10px; color: var(--forest); background: var(--paper);
  box-shadow: 0 0 0 2px var(--parch-d), 0 3px 0 2px var(--parch-dd); }
.cb-soontag { display: inline-block; margin-top: 12px; font-family: var(--micro); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--wood); }

/* ------------------------------------------------------------- help */
.cb-help { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px; align-items: start; }
.cb-faq { margin: 0; }
.cb-faq details { border-top: 2px dotted var(--parch-dd); padding: 12px 0; }
.cb-faq details:last-child { border-bottom: 2px dotted var(--parch-dd); }
.cb-faq summary { cursor: pointer; list-style: none; font-family: var(--ui); font-weight: 600; font-size: 17px; color: var(--forest); display: flex; justify-content: space-between; gap: 12px; }
.cb-faq summary::-webkit-details-marker { display: none; }
.cb-faq summary::after { content: "+"; font-family: var(--ui); color: var(--wood); }
.cb-faq details[open] summary::after { content: "\2212"; }
.cb-faq details p { margin-top: 8px; font-size: 15px; color: var(--ink-soft); }
.cb-support { border-width: 24px; }
.cb-support h3 { font-size: 20px; margin-bottom: 6px; }
.cb-support p { font-size: 15px; color: var(--ink-soft); margin-bottom: 12px; }
.cb-support .cb-chip { margin: 0 6px 6px 0; }

/* ------------------------------------------------ category page */
.cb-page { padding: 26px 0 70px; }
.cb-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; font-family: var(--ui); font-size: 14px; color: var(--ink-soft); }
.cb-crumbs a { color: var(--leaf); text-decoration: none; }
.cb-crumbs a:hover { color: var(--ember); }
.cb-crumbs span::before { content: "/"; margin-right: 6px; color: var(--parch-dd); }
.cb-cathead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 30px; align-items: end; margin-bottom: 30px; }
.cb-cathead h1 { font-size: clamp(42px, 5.4vw, 64px); }
.cb-cathead .cb-catdesc { max-width: 640px; color: var(--ink-soft); }
.cb-cathead .cb-catdesc p + p { margin-top: 8px; }
.cb-empty { padding: 40px 20px; text-align: center; color: var(--ink-soft); }
.cb-empty b { display: block; font-family: var(--ui); font-size: 20px; color: var(--forest); margin-bottom: 4px; }

/* ------------------------------------------------- package page */
.cb-pkg { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 44px; align-items: start; }
.cb-pkg-art { position: sticky; top: 20px; }
.cb-pkg-art .cb-art { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--parch-d), 0 10px 0 5px rgba(46, 92, 64, .12); }
.cb-pkg h1 { font-size: clamp(44px, 5.4vw, 64px); }
.cb-pkg-kind { margin-bottom: 8px; }
.cb-buy { margin: 18px 0 6px; padding: 18px 18px 16px; background: var(--paper); box-shadow: 0 0 0 2px var(--parch-d), 0 5px 0 2px var(--parch-dd); }
.cb-buy .cb-price { font-size: 40px; }
.cb-buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 12px; }
.cb-recurring { margin-top: 12px; padding: 10px 12px; font-size: 14.5px; color: var(--forest); background: var(--sage-ll); box-shadow: inset 3px 0 0 var(--leaf); }
.cb-recurring b { font-family: var(--ui); }
.cb-reason { margin-top: 10px; font-size: 14px; color: var(--wood); }
.cb-req { margin-top: 14px; font-size: 14.5px; color: var(--ink-soft); }
.cb-req b { color: var(--ink); }

/* package descriptions written in the Tebex editor get these styles automatically */
.cb-desc { margin-top: 26px; font-size: 16px; }
.cb-desc > * + * { margin-top: 12px; }
.cb-desc h2, .cb-desc h3, .cb-desc h4 { font-family: var(--ui); font-weight: 600; font-size: 19px; letter-spacing: .02em; color: var(--forest);
  margin-top: 26px; padding-bottom: 6px; border-bottom: 2px dotted var(--parch-dd); }
.cb-desc ul { list-style: none; padding: 0; display: grid; gap: 7px; }
.cb-desc ul li { position: relative; padding-left: 22px; }
.cb-desc ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 12px; background: var(--i-leaf) center / 12px 12px no-repeat; image-rendering: pixelated; }
.cb-desc strong { color: var(--ink); }
.cb-desc code { font-family: var(--ui); font-size: 15px; padding: 0 5px; background: var(--parch); box-shadow: 0 0 0 1px var(--parch-d); }
.cb-desc blockquote { margin: 18px 0 0; padding: 10px 14px; font-size: 14.5px; color: var(--forest); background: var(--sage-ll); box-shadow: inset 3px 0 0 var(--leaf); }
.cb-desc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cb-desc td, .cb-desc th { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--parch-d); }
.cb-related { margin-top: 64px; }

/* ------------------------------------------------- basket + login */
.cb-panel { max-width: 860px; margin: 0 auto; border-width: 24px; }
.cb-panel h1 { font-size: clamp(38px, 4.6vw, 52px); margin-bottom: 6px; }
.cb-panel > p { color: var(--ink-soft); }
.cb-lines { list-style: none; margin: 20px 0 0; padding: 0; }
.cb-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 2px dotted var(--parch-dd); }
.cb-line:last-child { border-bottom: 2px dotted var(--parch-dd); }
.cb-line .cb-art { box-shadow: 0 0 0 2px var(--parch-d); }
.cb-line b { font-family: var(--ui); font-weight: 600; font-size: 17px; color: var(--forest); }
.cb-line small { display: block; font-size: 13px; color: var(--ink-soft); }
.cb-line .cb-price { font-size: 23px; }
.cb-remove { font-family: var(--ui); font-size: 13px; letter-spacing: .04em; color: var(--berry); text-decoration: none; padding: 6px; }
.cb-remove:hover { color: var(--ember); text-decoration: underline; }
.cb-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 16px; font-family: var(--ui); font-size: 18px; color: var(--forest); }
.cb-total .cb-price { font-size: 36px; }
.cb-checkout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.cb-who { font-size: 14.5px; color: var(--ink-soft); }
.cb-who b { color: var(--ink); font-family: var(--ui); }
.cb-safe { margin-top: 14px; font-size: 13.5px; color: var(--ink-soft); }

.cb-form { display: grid; gap: 10px; margin-top: 18px; }
.cb-form label { font-family: var(--ui); font-weight: 600; font-size: 15px; color: var(--forest); }
.cb-input { width: 100%; padding: 12px 14px; font-family: var(--ui); font-size: 18px; color: var(--ink); background: var(--paper); border: 0;
  box-shadow: inset 0 0 0 2px var(--parch-dd), inset 0 3px 0 2px rgba(138, 86, 52, .08); }
.cb-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--leaf), 0 0 0 3px var(--sage-l); }
.cb-hint { font-size: 13.5px; color: var(--ink-soft); }
/* ---- Java + Bedrock username help */
.cb-ign-help { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.cb-ign-help b { color: var(--ink); }
.cb-ign-help code, .cb-bedrock code { font-family: var(--body); font-weight: 700; font-size: 14px; padding: 0 5px; color: var(--ink); background: var(--parch); box-shadow: 0 0 0 1px var(--parch-d); }
.cb-bedrock { margin-top: 26px; padding: 16px 20px 18px; background: var(--paper); border: 2px dotted var(--parch-dd); }
.cb-bedrock h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 0 0 6px; color: var(--forest); }
.cb-bedrock h3 i { display: inline-block; background-size: 100% 100%; image-rendering: pixelated; }
.cb-bedrock p { font-size: 15px; color: var(--ink-soft); margin: 0 0 8px; max-width: 70ch; }
.cb-bedrock ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 15px; color: var(--ink-soft); }
.cb-bedrock li b { color: var(--ink); }

/* ------------------------------------------------- CMS pages */
.cb-article { max-width: 780px; margin: 0 auto; }
.cb-article h1 { font-size: clamp(40px, 5vw, 56px); margin-bottom: 18px; }

/* ------------------------------------------------- footer */
.cb-foot { margin-top: 40px; background: var(--forest); color: #DCE8C8; }
.cb-foot::before { content: ""; display: block; height: 48px; background: var(--cream) var(--i-treeline) center bottom / auto 48px repeat-x; image-rendering: pixelated; }
.cb-foot-in { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 28px; padding-block: 34px 30px; }
.cb-foot h4 { font-family: var(--micro); font-weight: 400; font-size: 11px; letter-spacing: .1em; color: var(--sage-l); text-transform: uppercase; margin-bottom: 10px; }
.cb-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cb-foot a { color: #F3EEDB; text-decoration: none; font-family: var(--ui); font-size: 15px; }
.cb-foot a:hover { color: var(--honey); }
.cb-foot p { font-size: 14px; color: #C7D6B3; max-width: 380px; }
.cb-foot .cb-brand b { color: var(--cream); }
.cb-foot small { display: block; margin-top: 10px; font-size: 12px; color: #A9BE98; }

/* ------------------------------------------------- motion + responsive */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

@media (max-width: 1020px) {
  .cb-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cb-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cb-split, .cb-help { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .cb-nav { display: none; }
  .cb-burger { display: inline-block; }
  .cb-nav.is-open { display: block; position: absolute; left: var(--gutter); right: var(--gutter); top: 74px; z-index: 50; }
  .cb-nav.is-open ul { flex-direction: column; align-items: stretch; margin: -8px 0; gap: 2px; }
  .cb-nav.is-open a { padding: .7em .6em; font-size: 16px; }
  .cb-feature, .cb-pkg { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .cb-feature .cb-art { max-width: 520px; }
  .cb-pkg-art { max-width: 460px; position: static; }
}
@media (max-width: 700px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .cb-sec { padding: 46px 0; }
  .cb-steps { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .cb-items { grid-template-columns: minmax(0, 1fr); }
  .cb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cb-cathead { grid-template-columns: minmax(0, 1fr); }
  .cb-foot-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cb-foot-in > :first-child { grid-column: 1 / -1; }
  .cb-hero-card { margin-top: -24px; border-width: 18px; }
  .cb-banner { aspect-ratio: 16 / 7; }   /* taller crop on phones; keep key art centred in your banner */
  .cb-brand small { display: none; }
  .cb-rail ul { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
  .cb-rail ul::-webkit-scrollbar { display: none; }
  .cb-rail a { flex: none; }
  .cb-line { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .cb-line .cb-remove { grid-column: 2 / -1; justify-self: start; padding: 0; }
}
@media (max-width: 560px) {
  .cb-grid--4, .cb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .cb-card-b { padding: 10px 11px 12px; }
  .cb-card h3 { font-size: 17px; }
  .cb-card .cb-sub { font-size: 13px; }
  .cb-card-f { flex-direction: column; align-items: stretch; gap: 8px; }
  .cb-card-f .cb-chip { width: 100%; }
  .cb-basket b { display: none; }
}

/* =====================================================================
   FUN LAYER: icons, characters, colour and shop-shelf personality.
   Still the website's palette and pixel frames, just more alive.
   ===================================================================== */

/* pixel icons (drawn 1:1, shown 2-3x) */
.ic { display: inline-block; flex: none; width: 18px; height: 18px; background: center / contain no-repeat; image-rendering: pixelated; }
.ic-key { background-image: var(--i-ic-key); width: 26px; height: 14px; background-size: 26px 14px; }
.ic-paw { background-image: var(--i-ic-paw); width: 18px; height: 16px; background-size: 18px 16px; }
.ic-mush { background-image: var(--i-ic-mush); width: 18px; height: 18px; }
.ic-tent { background-image: var(--i-ic-tent); width: 20px; height: 15px; }
.ic-pine { background-image: var(--i-ic-pine); width: 15px; height: 15px; }
.ic-star { background-image: var(--i-ic-star); width: 15px; height: 15px; }
.ic-teddy { background-image: url("cb-i-teddy.svg"); }
.ic-frog { background-image: var(--i-ic-frog); width: 17px; height: 15px; }
.ic-heart { background-image: var(--i-ic-heart); width: 16px; height: 16px; }
.ic-basket { background-image: var(--i-ic-basket); width: 20px; height: 14px; }

/* ---- brand tag: two neat lines, nothing clipped */
.cb-brand { gap: 10px; padding: 0 2px; }
.cb-brand i { margin: 0; width: 24px; height: 20px; }
.cb-brand span { display: grid; gap: 1px; margin: -6px 0; }
.cb-brand b { margin: 0; line-height: 1.1; }
.cb-brand small { margin: 0; line-height: 1; font-size: 8.5px; letter-spacing: .16em; }

/* ---- nav: each link is its own little wooden button inside the plank */
.cb-nav { border-width: 18px; }
.cb-nav ul { gap: 6px; margin: -10px -6px; }
.cb-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px 8px; font-size: 14.5px; letter-spacing: .05em;
  background: var(--paper); box-shadow: inset 0 0 0 2px var(--parch-d), 0 3px 0 0 var(--parch-dd);
  transition: transform .1s var(--step), background .1s var(--step); }
.cb-nav a::after { display: none; }
.cb-nav a:hover { color: var(--forest); background: #FFF1C9; box-shadow: inset 0 0 0 2px var(--honey), 0 3px 0 0 #C99A3A; transform: translateY(-2px); }
.cb-nav a:hover .ic { animation: cbHop .4s steps(2) 2; }
.cb-nav a[aria-current="page"] { color: var(--cream); background: var(--leaf); box-shadow: inset 0 0 0 2px var(--forest), 0 3px 0 0 var(--forest-d); }
.cb-nav-out a { background: transparent; box-shadow: none; color: var(--wood); }
.cb-nav-out a:hover { background: transparent; box-shadow: none; color: var(--ember); }
@keyframes cbHop { 50% { transform: translateY(-3px); } }
.cb-basket span { gap: 8px; }
.cb-basket:hover .ic { animation: cbHop .4s steps(2) 2; }

/* the separate category rail is gone: Ranks and Crate Keys pages use tabs instead */
.cb-rail { display: none; }
.cb-top + * { margin-top: 0; }

/* ---- category tabs (Ranks / Rank Upgrades / Frog, Crate Keys / Keyrings) */
.cb-tabs { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 22px; border-bottom: 3px solid var(--parch-d); }
.cb-tabs a { position: relative; padding: 10px 16px 9px; margin-bottom: -3px; font-family: var(--ui); font-weight: 600; font-size: 15px; letter-spacing: .04em;
  color: var(--ink-soft); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.cb-tabs a:hover { color: var(--ember); }
.cb-tabs a[aria-current="page"] { color: var(--forest); border-bottom-color: var(--leaf); background: var(--paper);
  box-shadow: inset 2px 0 0 var(--parch-d), inset -2px 0 0 var(--parch-d), inset 0 2px 0 var(--parch-d); }

/* ---- section heading badges */
.cb-badge { display: inline-grid; place-items: center; width: 44px; height: 44px; margin: 0 12px 0 0; vertical-align: 6px;
  background: var(--paper) center / 24px 24px no-repeat; image-rendering: pixelated;
  box-shadow: 0 0 0 2px var(--parch-d), 0 4px 0 2px var(--parch-dd); transform: rotate(-4deg); }
.cb-badge.ic-tent { background-image: var(--i-ic-tent); background-size: 28px 21px; }
.cb-badge.ic-paw { background-image: var(--i-ic-paws); background-size: 34px 30px; }
.cb-badge.ic-key { background-image: var(--i-ic-key); background-size: 39px 21px; }
.cb-badge.ic-mush { background-image: var(--i-ic-mush); }
.cb-badge.ic-heart { background-image: var(--i-ic-heart); }
.cb-head h2:hover .cb-badge { animation: cbWiggle .36s steps(2) 2; }
@keyframes cbWiggle { 50% { transform: rotate(6deg); } }

/* ---- hero: butterflies over the banner, Kyrie greeting customers */
.cb-stage { position: relative; }
.cb-bfly { position: absolute; z-index: 3; width: 20px; height: 16px; background: 0 0 / 40px 16px no-repeat; image-rendering: pixelated; pointer-events: none;
  animation: cbFlap .3s steps(2) infinite, var(--path) var(--dur) steps(80) infinite; }
.cb-bfly--a { background-image: var(--i-bfly0); left: 18%; top: 62%; --path: cbFlyA; --dur: 16s; }
.cb-bfly--b { background-image: var(--i-bfly1); left: 74%; top: 30%; --path: cbFlyB; --dur: 21s; }
@keyframes cbFlap { to { background-position: -40px 0; } }
@keyframes cbFlyA { 0%,100% { translate: 0 0; } 25% { translate: 90px -40px; } 50% { translate: 200px 10px; } 75% { translate: 80px 30px; } }
@keyframes cbFlyB { 0%,100% { translate: 0 0; } 25% { translate: -110px 30px; } 50% { translate: -40px -30px; } 75% { translate: 60px 20px; } }

.cb-keeper { position: absolute; left: -150px; bottom: -14px; width: 102px; display: grid; justify-items: center; pointer-events: none; }
.cb-spr { display: block; image-rendering: pixelated; background-repeat: no-repeat; animation: cbIdle 4.2s steps(6) infinite; }
.cb-spr--kyrie { width: 68px; height: 124px; background-image: var(--i-kyrie); background-size: 408px 124px; }
@keyframes cbIdle { to { background-position: -408px 0; } }
.cb-bubble { position: relative; margin-bottom: 10px; padding: 8px 10px; width: 170px; font-family: var(--ui); font-weight: 600; font-size: 13.5px; line-height: 1.3; text-align: left;
  color: var(--forest); background: var(--paper); box-shadow: 0 0 0 2px var(--forest), 0 4px 0 2px rgba(46, 92, 64, .25);
  transform: translateX(34px); animation: cbBob 3s steps(2) infinite; }
.cb-bubble::after { content: ""; position: absolute; left: 30px; bottom: -8px; width: 8px; height: 8px; background: var(--paper);
  box-shadow: 2px 0 0 var(--forest), 0 2px 0 var(--forest), 2px 2px 0 var(--forest); }
@keyframes cbBob { 50% { transform: translate(34px, -3px); } }

/* ---- primary button: a little sparkle pops on hover */
.cb-btn { position: relative; }
.cb-btn::after { content: ""; position: absolute; right: -14px; top: -16px; width: 15px; height: 15px; background: var(--i-spark) center / contain no-repeat;
  image-rendering: pixelated; opacity: 0; transform: scale(.4); transition: opacity .12s var(--step), transform .12s var(--step); pointer-events: none; }
.cb-btn:hover::after { opacity: 1; transform: scale(1); }
.cb-btn:hover i { animation: cbHop .45s steps(2) infinite; }

/* ---- price hang-tag on product cards */
.cb-tagwrap { display: inline-flex; align-items: center; border: 12px solid transparent; border-image: var(--i-pricetag) 4 fill / 12px / 0 round;
  image-rendering: pixelated; margin: -8px 0 -8px -6px; transform: rotate(-3deg); transition: transform .12s var(--step); }
.cb-tagwrap .cb-price { margin: -4px 0; }
.cb-card:hover .cb-tagwrap { transform: rotate(2deg) translateY(-1px); }

/* ---- accent colours: every animal, crate and theme gets its own colour */
.cb-acc { --acc: var(--sage); --acc-d: var(--leaf); --acc-l: var(--sage-ll); }
.cb-r1 { --acc: #B98A63; --acc-d: #7A5536; --acc-l: #F3E3D2; }   /* Hedgehog: chestnut */
.cb-r2 { --acc: #E28B45; --acc-d: #A9561F; --acc-l: #FBE3CC; }   /* Squirrel: rust orange */
.cb-r3 { --acc: #C9A26B; --acc-d: #8C6A3A; --acc-l: #F5EAD4; }   /* Capybara: sandy tan */
.cb-r4 { --acc: #E0712F; --acc-d: #A4471A; --acc-l: #FCE0CC; }   /* Fox: ember */
.cb-k1, .cb-g1 { --acc: #8BA3C9; --acc-d: #5A7099; --acc-l: #E4EAF4; }  /* Lost & Found: dusty blue */
.cb-k2, .cb-g2 { --acc: #4E8350; --acc-d: #2E5C40; --acc-l: #E2EED8; }  /* Ranger's Chest: forest */
.cb-k3, .cb-g3 { --acc: #E9B949; --acc-d: #B0832A; --acc-l: #FBF0D2; }  /* Camp Locker: warm gold */
.cb-t1 { --acc: #D6503F; --acc-d: #9C3328; --acc-l: #F8DFDA; }   /* Mushroom */
.cb-t2 { --acc: #E77FA6; --acc-d: #B5506F; --acc-l: #FBE3EC; }   /* Wildflower */
.cb-t3 { --acc: #5E6FB8; --acc-d: #3A4785; --acc-l: #E1E5F5; }   /* Moonlit */
.cb-t4 { --acc: #D9772F; --acc-d: #9E4E17; --acc-l: #FAE4CF; }   /* Autumn */
.cb-t5 { --acc: #E9B949; --acc-d: #B0832A; --acc-l: #FBF0D2; }   /* Honeybee */
.cb-t6 { --acc: #A27453; --acc-d: #6E4A31; --acc-l: #F1E4D8; }   /* Teddy */
.cb-p1 { --acc: #B85A44; --acc-d: #7F3A2A; --acc-l: #F6E0DA; }   /* Mushroom Grove */
.cb-p2 { --acc: #D98FB6; --acc-d: #A35E84; --acc-l: #F9E6EF; }   /* Wildflower Meadow */
.cb-p3 { --acc: #6A79C2; --acc-d: #414E8E; --acc-l: #E3E6F6; }   /* Moonlit Woods */
.cb-p4 { --acc: #E0566A; --acc-d: #A63346; --acc-l: #FBE0E4; }   /* Strawberry Picnic */
.cb-p5 { --acc: #C9782F; --acc-d: #8E5017; --acc-l: #F8E6D2; }   /* Autumn Trails */

.cb-card.cb-acc { box-shadow: 0 0 0 2px var(--parch-d), 0 5px 0 2px var(--parch-dd); }
.cb-card.cb-acc .cb-art { background-color: var(--acc-l); background-blend-mode: multiply; border-bottom: 4px solid var(--acc); }
.cb-card.cb-acc h3 { color: var(--acc-d); }
.cb-card.cb-acc:hover { box-shadow: 0 0 0 2px var(--acc), 0 8px 0 2px var(--acc-d); transform: translateY(-4px) rotate(-.6deg); }
.cb-card.cb-acc .cb-stack { color: var(--acc-d); }
.cb-item.cb-acc { box-shadow: inset 0 4px 0 var(--acc), 0 0 0 2px var(--parch-d), 0 4px 0 2px var(--parch-dd); padding-top: 16px; }
.cb-item.cb-acc .cb-art { background-color: var(--acc-l); background-blend-mode: multiply; box-shadow: 0 0 0 2px var(--acc); }
.cb-item.cb-acc h3 { color: var(--acc-d); }
.cb-item.cb-acc:hover { box-shadow: inset 0 4px 0 var(--acc), 0 0 0 2px var(--acc), 0 6px 0 2px var(--acc-d); }
.cb-item.cb-acc .cb-contents li { color: var(--acc-d); background: var(--acc-l); box-shadow: 0 0 0 1px var(--acc); }
.cb-tile.cb-acc .cb-art { background-color: var(--acc-l); background-blend-mode: multiply; border-bottom: 4px solid var(--acc); }
.cb-tile.cb-acc b { color: var(--acc-d); }
.cb-tile.cb-acc:hover { box-shadow: 0 0 0 2px var(--acc), 0 5px 0 2px var(--acc-d); }

/* ---- shop shelf under key rows */
.cb-shelf { position: relative; padding-bottom: 34px; }
.cb-shelf::after { content: ""; position: absolute; left: -10px; right: -10px; bottom: 8px; height: 15px; background: var(--i-shelf) 0 0 / 72px 15px repeat-x; image-rendering: pixelated; filter: drop-shadow(0 4px 0 rgba(59, 42, 32, .15)); }
.cb-shelf + .cb-subhead { margin-top: 30px; }

/* ---- Frog band: lily pond */
.cb-band--frog { background: #DCEBC6 var(--i-lily) 0 0 / 128px 128px repeat; box-shadow: inset 0 3px 0 #B8D49A, inset 0 -3px 0 #B8D49A; }
.cb-band--frog .cb-feature > div:last-child { padding: 22px 24px; background: var(--paper); box-shadow: 0 0 0 2px #9CC27A, 0 6px 0 2px #7FA85E; }
.cb-pill--frog { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 4px; color: #2F6B2B; background: #E3F2D2; box-shadow: 0 0 0 1px #8DBB6A; }
.cb-pill--frog .ic { width: 14px; height: 12px; }
.cb-band--frog .cb-ticks li::before { background-image: var(--i-ic-frog); background-size: 12px 11px; }

/* ---- coming-soon names get their colours too */
.cb-soonlist li { display: inline-flex; align-items: center; gap: 7px; }
.cb-soonlist li::before { content: ""; width: 10px; height: 10px; background: var(--sage); box-shadow: 0 0 0 1px rgba(59, 42, 32, .35); }
.cb-soonlist--themes li:nth-child(1)::before { background: #D6503F; }
.cb-soonlist--themes li:nth-child(2)::before { background: #E77FA6; }
.cb-soonlist--themes li:nth-child(3)::before { background: #5E6FB8; }
.cb-soonlist--themes li:nth-child(4)::before { background: #D9772F; }
.cb-soonlist--themes li:nth-child(5)::before { background: #E9B949; }
.cb-soonlist--themes li:nth-child(6)::before { background: #A27453; }
.cb-soonlist--pets li:nth-child(1)::before { background: #B85A44; }
.cb-soonlist--pets li:nth-child(2)::before { background: #D98FB6; }
.cb-soonlist--pets li:nth-child(3)::before { background: #6A79C2; }
.cb-soonlist--pets li:nth-child(4)::before { background: #E0566A; }
.cb-soonlist--pets li:nth-child(5)::before { background: #C9782F; }
.cb-soonlist li:hover { transform: translateY(-2px); }

/* ---- Mireya waves from the help card */
.cb-support { position: relative; }
.cb-spr--mireya { position: absolute; right: 10px; top: -118px; width: 76px; height: 124px; background-image: var(--i-mireya); background-size: 456px 124px; animation: cbIdleM 4.8s steps(6) infinite; }
@keyframes cbIdleM { to { background-position: -456px 0; } }

@media (max-width: 1180px) { .cb-keeper { left: -118px; transform: scale(.85); transform-origin: bottom center; } }
@media (max-width: 1060px) { .cb-keeper { display: none; } }
@media (max-width: 900px) {
  .cb-nav.is-open { top: 70px; }
  .cb-nav.is-open a { width: 100%; padding: 11px 12px; }
  .cb-spr--mireya { top: -96px; transform: scale(.8); transform-origin: bottom right; }
}
@media (max-width: 700px) {
  .cb-badge { width: 36px; height: 36px; margin-right: 10px; vertical-align: 4px; background-size: 20px 20px; }
  .cb-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .cb-tabs::-webkit-scrollbar { display: none; }
  .cb-band--frog .cb-feature > div:last-child { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .cb-bfly { display: none; } }
@media (max-width: 560px) { .cb-card-f .cb-tagwrap { align-self: flex-start; margin-left: -4px; } }

/* =====================================================================
   CUTE HEADER: shop awning, sky, drifting clouds, bunting, treeline,
   and colour-coded wooden buttons.
   ===================================================================== */
.cb-top { position: relative; overflow: hidden; background: #A9DCE8; padding: 58px 0 0; }
.cb-awning { position: absolute; left: 0; right: 0; top: 0; height: 48px; z-index: 4;
  background: var(--i-awning) 0 0 / 72px 48px repeat-x; image-rendering: pixelated; filter: drop-shadow(0 4px 0 rgba(46, 92, 64, .18)); }
.cb-bunting { position: absolute; left: 0; right: 0; top: 46px; height: 36px; z-index: 1; opacity: .9;
  background: var(--i-bunting) 0 0 / 96px 36px repeat-x; image-rendering: pixelated; }
.cb-cloud { position: absolute; z-index: 0; display: block; background: center / 100% 100% no-repeat; image-rendering: pixelated; pointer-events: none; }
.cb-cloud--a { width: 228px; height: 84px; top: 70px; left: 6%; background-image: var(--i-cloud0); animation: cbDrift 70s linear infinite; }
.cb-cloud--b { width: 180px; height: 69px; top: 92px; left: 64%; background-image: var(--i-cloud1); animation: cbDrift 90s linear infinite reverse; opacity: .9; }
@keyframes cbDrift { 50% { translate: 120px 0; } }
.cb-top::after { content: ""; display: block; position: relative; z-index: 2; height: 48px; margin-top: 18px; transform: none;
  background: var(--i-treeline) center bottom / auto 48px repeat-x; image-rendering: pixelated; }
.cb-top-in { position: relative; z-index: 3; }

/* hanging signs: little ropes up to the awning */
.cb-brand, .cb-basket { position: relative; }
.cb-brand::before, .cb-basket::before { content: ""; position: absolute; top: -40px; left: 16px; right: 16px; height: 30px; pointer-events: none;
  background: linear-gradient(var(--wood), var(--wood)) left top / 3px 100% no-repeat, linear-gradient(var(--wood), var(--wood)) right top / 3px 100% no-repeat; }
.cb-brand { animation: cbSwing 4s steps(4) infinite; transform-origin: top center; }
.cb-basket { animation: cbSwing 4.6s steps(4) infinite reverse; transform-origin: top center; }
@keyframes cbSwing { 0%, 100% { rotate: -1.2deg; } 50% { rotate: 1.2deg; } }
.cb-brand b { font-size: 16px; color: var(--forest); }
.cb-brand small { color: var(--ember); }
.cb-brand i { animation: cbHop 2.4s steps(2) infinite; }

/* nav: cream plank with pastel, colour-coded buttons that never wrap */
.cb-nav { filter: drop-shadow(0 4px 0 rgba(46, 92, 64, .22)); }
.cb-nav a { white-space: nowrap; padding: 7px 12px 8px; font-size: 14px; }
.cb-nav li { --bt: #F2EBD6; --bt-e: var(--parch-d); --bt-s: var(--parch-dd); --bt-h: #FFF6DA; }
.cb-nav .n-home   { --bt: #E4F0D2; --bt-e: #A9C98A; --bt-s: #86AC66; --bt-h: #EEF7E0; }
.cb-nav .n-ranks  { --bt: #FCE3CF; --bt-e: #E8B08A; --bt-s: #C98A60; --bt-h: #FFEEDF; }
.cb-nav .n-keys   { --bt: #FBEFC8; --bt-e: #E2C46E; --bt-s: #BE9D45; --bt-h: #FFF6DA; }
.cb-nav .n-themes { --bt: #F9DCD5; --bt-e: #E39B8C; --bt-s: #BF7262; --bt-h: #FFE9E3; }
.cb-nav .n-pets   { --bt: #FADDE8; --bt-e: #E8A3BD; --bt-s: #C27A96; --bt-h: #FFEAF1; }
.cb-nav li > a { background: var(--bt); box-shadow: inset 0 0 0 2px var(--bt-e), 0 3px 0 0 var(--bt-s); }
.cb-nav li > a:hover { background: var(--bt-h); box-shadow: inset 0 0 0 2px var(--bt-s), 0 5px 0 0 var(--bt-s); transform: translateY(-2px); color: var(--forest); }
.cb-nav li > a:active { transform: translateY(1px); box-shadow: inset 0 0 0 2px var(--bt-s), 0 1px 0 0 var(--bt-s); }
.cb-nav li > a[aria-current="page"] { color: var(--forest); background: var(--bt-h); box-shadow: inset 0 0 0 3px var(--bt-s), 0 3px 0 0 var(--bt-s); }
.cb-nav li > a[aria-current="page"]::before { content: ""; position: absolute; left: 50%; bottom: -12px; width: 9px; height: 6px; margin-left: -4px;
  background: var(--i-glyph) 0 0 / 100% 100% no-repeat; image-rendering: pixelated; }
.cb-nav .cb-nav-out a { background: transparent; box-shadow: none; color: var(--wood); }
.cb-nav .cb-nav-out a:hover { background: transparent; box-shadow: none; color: var(--ember); }

/* switch to the burger menu before the buttons run out of room */
@media (max-width: 1140px) {
  .cb-nav { display: none; }
  .cb-burger { display: inline-block; }
  .cb-nav.is-open { display: block; position: absolute; left: var(--gutter); right: var(--gutter); top: 64px; z-index: 50; }
  .cb-nav.is-open ul { flex-direction: column; align-items: stretch; margin: -8px 0; gap: 6px; }
  .cb-nav.is-open a { width: 100%; padding: 11px 12px; font-size: 15px; }
  .cb-nav.is-open a[aria-current="page"]::before { display: none; }
  .cb-top { overflow: visible; }
}
@media (max-width: 700px) {
  .cb-top { padding-top: 50px; }
  .cb-awning { height: 36px; background-size: 54px 36px; }
  .cb-bunting { top: 34px; height: 27px; background-size: 72px 27px; }
  .cb-cloud--a { width: 152px; height: 56px; top: 64px; }
  .cb-cloud--b { display: none; }
  .cb-brand::before, .cb-basket::before { top: -30px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) { .cb-brand, .cb-basket, .cb-cloud { animation: none; } }

/* ---- the cast: Cinniebon waves the Campbound pennant, Yun shows off an outfit, Anjali by the pet skins */
.cb-owner { position: absolute; right: -150px; bottom: -14px; pointer-events: none; }
.cb-spr--cinnie { width: 112px; height: 144px; }
@keyframes cbIdleC { to { background-position: -1568px 0; } }
.cb-col { position: relative; }
.cb-spr--yun, .cb-spr--anjali { position: absolute; right: 0; top: -112px; }
.cb-spr--yun { width: 92px; height: 132px; background-image: var(--i-yun); background-size: 552px 132px; animation: cbIdleY 4.8s steps(6) infinite; }
@keyframes cbIdleY { to { background-position: -552px 0; } }
.cb-spr--anjali { width: 64px; height: 124px; top: -104px; right: 8px; background-image: var(--i-anjali); background-size: 384px 124px; animation: cbIdleA 5s steps(6) infinite; }
@keyframes cbIdleA { to { background-position: -384px 0; } }
@media (max-width: 1180px) { .cb-owner { right: -122px; transform: scale(.85); transform-origin: bottom center; } }
@media (max-width: 1060px) { .cb-owner { display: none; } }
@media (max-width: 1020px) { .cb-split .cb-col + .cb-col { margin-top: 70px; } }
@media (max-width: 700px) { .cb-spr--yun { transform: scale(.75); transform-origin: bottom right; top: -98px; } .cb-spr--anjali { transform: scale(.75); transform-origin: bottom right; top: -92px; } }

/* =====================================================================
   COLOUR PASS: soft coloured bands, a sky in the empty banner, coloured
   step numbers and badges. Still cream-based, never neon.
   ===================================================================== */
.cb-tint { position: relative; }
.cb-tint--peach { background: #FCEBDD; box-shadow: inset 0 3px 0 #F3D2B8, inset 0 -3px 0 #F3D2B8; }
.cb-tint--sky   { background: #E2F1F4; box-shadow: inset 0 3px 0 #BFDDE5, inset 0 -3px 0 #BFDDE5; }
.cb-tint--rose  { background: #FBE8EA; box-shadow: inset 0 3px 0 #F1CDD2, inset 0 -3px 0 #F1CDD2; }
.cb-sec.cb-tint, .cb-sec.cb-band { padding-top: 60px; padding-bottom: 60px; }
.cb-sec + .cb-sec.cb-tint, .cb-sec.cb-tint + .cb-sec, .cb-band + .cb-sec { padding-top: 60px; }
/* a scalloped edge on top of each coloured band, like the awning */
.cb-tint::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 9px;
  background: radial-gradient(circle at 9px 9px, var(--tint) 8px, transparent 9px) 0 0 / 18px 9px repeat-x; }
.cb-tint--peach { --tint: #FCEBDD; }
.cb-tint--sky { --tint: #E2F1F4; }
.cb-tint--rose { --tint: #FBE8EA; }

/* empty banner = a little sky until the real banner arrives */
.cb-banner--empty { background: #A9DCE8; }
.cb-banner--empty::after { width: 228px; height: 84px; left: 26%; top: 34%; background-image: var(--i-cloud0); opacity: 1; }
.cb-banner--empty .cb-bfly { display: block; }
.cb-banner--empty::before { opacity: 1; }
.cb-stage::after { content: ""; position: absolute; right: 18%; top: 18%; width: 180px; height: 69px; background: var(--i-cloud1) center / 100% 100% no-repeat; image-rendering: pixelated; pointer-events: none; }
.cb-stage:has(.cb-banner img)::after { display: none; }

/* coloured step numbers */
.cb-steps li:nth-child(1)::before { background: #E58B6B; box-shadow: 0 2px 0 #B3644A; }
.cb-steps li:nth-child(2)::before { background: #E9B949; box-shadow: 0 2px 0 #B0832A; color: var(--ink); }
.cb-steps li:nth-child(3)::before { background: #4E8350; box-shadow: 0 2px 0 #2E5C40; }
.cb-tint--peach .cb-steps li { border-top-color: #E8B998; }

/* coloured badges */
.cb-badge.ic-tent { background-color: #FFF1E4; box-shadow: 0 0 0 2px #E8B998, 0 4px 0 2px #C98A60; }
.cb-badge.ic-paw { background-color: #FCE3CF; box-shadow: 0 0 0 2px #E8B08A, 0 4px 0 2px #C98A60; }
.cb-badge.ic-key { background-color: #FBEFC8; box-shadow: 0 0 0 2px #E2C46E, 0 4px 0 2px #BE9D45; }
.cb-badge.ic-mush { background-color: #F9DCD5; box-shadow: 0 0 0 2px #E39B8C, 0 4px 0 2px #BF7262; }
.cb-badge.ic-heart { background-color: #FADDE8; box-shadow: 0 0 0 2px #E8A3BD, 0 4px 0 2px #C27A96; }

/* colourful hero heading */
.cb-hero-card h1 { color: var(--forest); }
.cb-hero-card h1::after { content: ""; display: block; height: 18px; margin: 8px auto 0; width: 280px; max-width: 80%;
  background: var(--i-bunting) center / 96px 36px repeat-x; image-rendering: pixelated; }

/* footer gets bunting too */
.cb-foot { position: relative; }
.cb-foot-in { position: relative; }
.cb-foot-in::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 27px; background: var(--i-bunting) 0 0 / 72px 27px repeat-x; image-rendering: pixelated; opacity: .9; }
.cb-foot-in { padding-top: 54px; }

/* cast placement: standing at the bottom right of their columns */
.cb-spr--yun { top: auto; bottom: -18px; right: 6px; }
.cb-spr--anjali { top: auto; bottom: -14px; right: 10px; }
.cb-col { padding-bottom: 8px; }
.cb-col .cb-soonlist, .cb-col .cb-tiles { margin-right: 100px; }
@media (max-width: 700px) {
  .cb-spr--yun, .cb-spr--anjali { top: auto; transform: scale(.75); transform-origin: bottom right; }
  .cb-col .cb-soonlist { margin-right: 74px; }
  .cb-col .cb-tiles { margin-right: 0; padding-bottom: 96px; }
  .cb-hero-card h1::after { width: 180px; }
}

/* every nav button the same size */
@media (min-width: 1141px) {
  .cb-nav > ul { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
  .cb-nav > ul > li > a, .cb-nav > ul > .cb-dd summary { width: 100%; justify-content: center; }
}
.cb-nav .cb-nav-out { --bt: #F4ECD8; --bt-e: var(--parch-d); --bt-s: var(--parch-dd); --bt-h: #FFF8E8; }
.cb-nav .cb-nav-out a { background: var(--bt); box-shadow: inset 0 0 0 2px var(--bt-e), 0 3px 0 0 var(--bt-s); color: var(--wood); }
.cb-nav .cb-nav-out a:hover { background: var(--bt-h); box-shadow: inset 0 0 0 2px var(--bt-s), 0 5px 0 0 var(--bt-s); color: var(--wood); }

/* =====================================================================
   THE CAST, placed on purpose:
   Kyrie (storekeeper) greets you at the counter. Cinniebon chases a fennec
   fox across the Ranks shelf. Yun (stylist) presents the Camp Themes.
   Anjali (animal caretaker) lives on the Pet Skins page. Mireya (counselor)
   sits on the help box.
   ===================================================================== */
.cb-owner, .cb-spr--cinnie { display: none; }

/* everyone does a little hop now and then */
@keyframes cbPalHop { 0%, 84%, 100% { translate: 0 0; } 88% { translate: 0 -8px; } 92% { translate: 0 0; } 95% { translate: 0 -4px; } }
.cb-keeper .cb-spr--kyrie { animation: cbIdle 4.2s steps(6) infinite, cbPalHop 5s steps(1) infinite; }
.cb-pal { position: absolute; display: grid; justify-items: end; pointer-events: none; z-index: 2; }
.cb-pal .cb-spr { animation-name: var(--frames), cbPalHop; animation-duration: var(--fdur), var(--hdur, 6s); animation-timing-function: var(--fsteps), steps(1); animation-iteration-count: infinite; }
.cb-pal .cb-spr--yun { position: static; --frames: cbIdleY; --fdur: 4.8s; --fsteps: steps(6); --hdur: 5.4s; }
.cb-pal .cb-spr--mireya { position: static; --frames: cbIdleM; --fdur: 4.8s; --fsteps: steps(6); --hdur: 6.2s; }
.cb-pal .cb-spr--anjali { position: static; --frames: cbIdleA; --fdur: 5s; --fsteps: steps(6); --hdur: 4.6s; }
.cb-bubble--sm { width: auto; max-width: 200px; white-space: nowrap; font-size: 12.5px; padding: 6px 9px; margin-bottom: 8px; transform: none; animation: cbBubble 6s steps(1) infinite; }
.cb-bubble--sm::after { left: auto; right: 26px; }
@keyframes cbBubble { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }

.cb-pal--yun { right: -6px; bottom: -22px; }
.cb-col .cb-spr--yun { top: auto; }
.cb-pal--mireya { right: 6px; top: -164px; }
.cb-support .cb-spr--mireya { position: static; }
.cb-pal--head { position: relative; grid-row: 1 / 3; grid-column: 2; align-self: end; margin-bottom: -6px; }
.cb-cathead { position: relative; }
.cb-cathead > div:not(.cb-pal) { grid-column: 1; }

/* the chase: a fennec fox dashes across the Ranks shelf with Cinniebon close behind */
.cb-chase { position: relative; height: 150px; margin: 18px -20px -24px; overflow: hidden; pointer-events: none; }
.cb-chase::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 6px; background: repeating-linear-gradient(90deg, #E8D3A6 0 6px, transparent 6px 14px); opacity: .7; }
.cb-runner { position: absolute; bottom: 8px; left: 100%; display: flex; align-items: flex-end; gap: 70px; animation: cbChase 13s linear infinite; }
.cb-fennec { display: block; width: 72px; height: 48px; image-rendering: pixelated;
  animation: cbGallop .3s steps(2) infinite, cbBounce .3s steps(2) infinite; }
.cb-cinnie-run { display: block; width: 68px; height: 128px; background: var(--i-cinnie-run) 0 0 / 136px 128px no-repeat; image-rendering: pixelated;
  animation: cbRun .36s steps(2) infinite, cbBounce .36s steps(2) infinite; }
.cb-huff { position: absolute; left: 160px; bottom: 132px; font-family: var(--ui); font-weight: 700; font-size: 22px; color: var(--ember); animation: cbHuff 1.2s steps(2) infinite; }
@keyframes cbGallop { to { background-position: -144px 0; } }
@keyframes cbRun { to { background-position: -136px 0; } }
@keyframes cbBounce { 50% { translate: 0 -4px; } }
@keyframes cbHuff { 50% { opacity: 0; } }
@keyframes cbChase {
  0% { transform: translateX(0); }
  44% { transform: translateX(-62vw); }          /* the fox stops for a second... */
  50% { transform: translateX(-62vw); }
  100% { transform: translateX(calc(-100vw - 420px)); }
}

@media (max-width: 1020px) { .cb-pal--yun { bottom: -14px; } }
@media (max-width: 700px) {
  .cb-pal .cb-spr { scale: .75; transform-origin: bottom right; }
  .cb-pal--yun { right: -8px; bottom: -30px; }
  .cb-pal--mireya { top: -140px; }
  .cb-pal--head { grid-row: auto; grid-column: 1; justify-self: end; margin-top: -30px; }
  .cb-chase { height: 120px; }
  .cb-runner { transform-origin: bottom left; }
  .cb-cinnie-run { width: 51px; height: 96px; background-size: 102px 96px; }
  @keyframes cbRun { to { background-position: -102px 0; } }
  .cb-fennec { width: 54px; height: 36px; background-size: 108px 36px; }
  @keyframes cbGallop { to { background-position: -108px 0; } }
  .cb-huff { left: 110px; bottom: 100px; }
}
@media (prefers-reduced-motion: reduce) { .cb-runner { animation: none; left: 30%; } }

/* cast layout fixes: bubbles never cover content */
.cb-pal { display: flex; flex-direction: column; align-items: flex-end; }
.cb-col--yun { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 0 10px; align-items: end; }
.cb-col--yun > div:last-child { grid-column: 1; grid-row: 1; }
.cb-col--yun .cb-soonlist, .cb-col--yun .cb-tiles { margin-right: 0; }
.cb-pal--yun { position: static; grid-column: 2; grid-row: 1; align-self: end; margin-bottom: -18px; }
.cb-bubble--wrap { white-space: normal; width: 118px; text-align: center; }
.cb-col:not(.cb-col--yun) .cb-soonlist, .cb-col:not(.cb-col--yun) .cb-tiles { margin-right: 0; }
.cb-pal--mireya { flex-direction: row; align-items: flex-start; gap: 8px; top: -124px; right: 6px; }
.cb-pal--mireya .cb-bubble--sm { margin-top: 18px; }
.cb-pal--mireya .cb-bubble--sm::after { right: -8px; left: auto; bottom: 10px; box-shadow: 2px -2px 0 var(--forest), 2px 0 0 var(--forest), 0 -2px 0 var(--forest); }
.cb-pal--head .cb-bubble--sm { margin-right: -6px; }
.cb-chase { margin-inline: calc(-1 * var(--gutter)); }
@media (max-width: 700px) {
  .cb-col--yun { grid-template-columns: minmax(0, 1fr) 84px; }
  .cb-bubble--wrap { width: 92px; font-size: 11.5px; }
  .cb-pal--yun { margin-bottom: -40px; }
  .cb-pal--mireya { top: -104px; }
  .cb-pal--mireya .cb-bubble--sm { margin-top: 30px; }
}
.cb-col--yun > div > p { font-size: 15px; color: var(--ink-soft); margin-bottom: 14px; }
.cb-col--yun > div > h3 { font-size: 22px; margin-bottom: 4px; }
.cb-bubble--sm { max-width: none; }
.cb-bubble--wrap { max-width: 118px; }
.cb-support { margin-top: 74px; }
.cb-pal--mireya .cb-bubble--sm { margin-top: 34px; }
@media (max-width: 1020px) { .cb-support { margin-top: 110px; } }
@media (max-width: 700px) {
  .cb-pal--yun .cb-bubble { display: none; }
  .cb-pal--yun { margin-bottom: -26px; }
  .cb-col--yun + .cb-col { margin-top: 40px; }
}

/* ---- chase v2: Cinnie (side-view run cycle) after a cheeky squirrel with an acorn */
.cb-fennec, .cb-huff { display: none; }
.cb-runner { gap: 26px; animation: cbChase 12s linear infinite; }
.cb-squirrel { display: block; width: 120px; height: 72px; margin-bottom: -2px; background: var(--i-squirrel) 0 0 / 480px 72px no-repeat; image-rendering: pixelated;
  animation: cbScamper .4s steps(4) infinite; }
@keyframes cbScamper { to { background-position: -480px 0; } }
@keyframes cbSqHop { 50% { translate: 0 -6px; } }
.cb-cinnie-run { width: 104px; height: 128px; background: var(--i-cinnie-run) 0 0 / 624px 128px no-repeat; animation: cbRun4 .54s steps(6) infinite; }
@keyframes cbRun4 { to { background-position: -624px 0; } }
.cb-leaf { position: absolute; width: 16px; height: 16px; background: var(--i-leaves) 0 0 / 32px 16px no-repeat; image-rendering: pixelated; }
.cb-leaf--a { left: 210px; bottom: 30px; animation: cbLeafA 1.4s steps(6) infinite; }
.cb-leaf--b { left: 236px; bottom: 70px; background-position: -16px 0; animation: cbLeafB 1.8s steps(6) infinite; }
@keyframes cbLeafA { 0% { translate: 0 0; rotate: 0deg; opacity: 1; } 100% { translate: 40px 22px; rotate: 90deg; opacity: 0; } }
@keyframes cbLeafB { 0% { translate: 0 0; rotate: 0deg; opacity: 1; } 100% { translate: 50px 50px; rotate: -120deg; opacity: 0; } }
@media (max-width: 700px) {
  .cb-cinnie-run { width: 78px; height: 96px; background-size: 468px 96px; }
  @keyframes cbRun4 { to { background-position: -468px 0; } }
  .cb-squirrel { width: 90px; height: 54px; background-size: 360px 54px; }
  @keyframes cbScamper { to { background-position: -360px 0; } }
  .cb-leaf--a { left: 160px; } .cb-leaf--b { left: 180px; bottom: 50px; }
}

/* ---- Cinnie playing with her black cat (replaces the chase) */
.cb-runner { display: none; }
.cb-cinnie-cat { position: absolute; left: 50%; bottom: 6px; width: 208px; height: 136px; translate: -50% 0;
  background: var(--i-cinnie-cat) 0 0 / 3744px 136px no-repeat; image-rendering: pixelated; animation: cbCinnieCat 2.88s steps(18) infinite; }
@keyframes cbCinnieCat { to { background-position: -3744px 0; } }
@media (max-width: 700px) {
  .cb-cinnie-cat { width: 156px; height: 102px; background-size: 2808px 102px; }
  @keyframes cbCinnieCat { to { background-position: -2808px 0; } }
}
@media (prefers-reduced-motion: reduce) { .cb-cinnie-cat { animation: none; } }

/* ---- account chip: Minecraft login / logged-in player */
.cb-acct { display: inline-flex; align-items: center; gap: 8px; border-width: 15px 14px; text-decoration: none; color: var(--ink);
  font-family: var(--ui); font-size: 15px; white-space: nowrap; }
.cb-acct > * { margin-block: -8px; }
.cb-acct b { font-weight: 700; }
a.cb-acct:hover { color: var(--ember); transform: translateY(-2px); }
.cb-acct-head { width: 20px; height: 20px; image-rendering: pixelated; background: #C9A27A; box-shadow: 0 0 0 2px var(--ink); }
.cb-acct-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.cb-acct-out { font-size: 13px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.cb-acct-out:hover { color: var(--ember); }
@media (max-width: 700px) {
  .cb-acct { font-size: 13px; border-width: 15px 10px; }
  .cb-acct .ic, .cb-acct-name { display: none; }
  .cb-acct-out { font-size: 12px; }
}

/* ---- community modules (Tebex Sidebar Modules: Top Donator, Recent Payments, ...) rendered on the homepage.
   Tebex hands these over as ready-made HTML, so the styling below is deliberately generic. */
.cb-badge.ic-star { background-image: var(--i-ic-star); background-color: #FBF0C8; box-shadow: 0 0 0 2px #E2C065, 0 4px 0 2px #C29C3A; background-size: 24px 24px; }
.cb-modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; align-items: start; }
.cb-modules > * { min-width: 0; background: var(--paper); padding: 18px 20px 20px; box-shadow: 0 0 0 2px var(--parch-d), 0 6px 0 2px var(--parch-dd); }
.cb-modules h1, .cb-modules h2, .cb-modules h3, .cb-modules h4, .cb-modules .panel-heading, .cb-modules .card-header, .cb-modules .module-title {
  margin: 0 0 12px; padding: 0 0 10px; font-family: var(--ui); font-weight: 700; font-size: 18px; color: var(--forest);
  background: none; border: 0; border-bottom: 2px dotted var(--parch-d); }
.cb-modules > * .panel, .cb-modules > * .card { background: none; border: 0; box-shadow: none; margin: 0; padding: 0; }
.cb-modules .panel-body, .cb-modules .card-body { padding: 0; }
.cb-modules img { image-rendering: pixelated; max-width: 100%; height: auto; vertical-align: middle; }
.cb-modules ul, .cb-modules ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cb-modules li, .cb-modules tr { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-soft); }
.cb-modules li img, .cb-modules tr img { width: 28px; height: 28px; flex: none; box-shadow: 0 0 0 2px var(--ink); }
.cb-modules table { width: 100%; border-collapse: collapse; }
.cb-modules td, .cb-modules th { padding: 6px 0; text-align: left; }
.cb-modules b, .cb-modules strong, .cb-modules .ign, .cb-modules .username { color: var(--ink); font-family: var(--ui); font-weight: 700; }
.cb-modules .price, .cb-modules .amount { margin-left: auto; font-family: var(--display); font-weight: 400; font-size: 1.35em; color: var(--ember); }
.cb-modules a { color: var(--forest); }
/* top donator: big head + name */
.cb-modules .top-donator, .cb-modules .module-topdonator .panel-body { display: flex; align-items: center; gap: 14px; }
.cb-modules .top-donator img, .cb-modules .module-topdonator img { width: 64px; height: 64px; box-shadow: 0 0 0 2px var(--ink), 0 4px 0 2px var(--parch-dd); }
.cb-modules .progress { height: 14px; background: var(--parch); box-shadow: inset 0 0 0 2px var(--parch-d); margin-top: 8px; }
.cb-modules .progress-bar { height: 100%; background: var(--leaf); }
.cb-acct { color: var(--wood); filter: drop-shadow(0 3px 0 rgba(10, 24, 16, .25)); transition: transform .12s var(--step); }
.cb-modules > .panel, .cb-modules > .card { background: var(--paper); padding: 18px 20px 20px; box-shadow: 0 0 0 2px var(--parch-d), 0 6px 0 2px var(--parch-dd); }
@media (min-width: 701px) {
  .cb-acts { position: relative; }
  .cb-acct { position: absolute; right: 0; top: calc(100% + 8px); z-index: 4; font-size: 13px; border-width: 12px 12px; }
  .cb-acct > * { margin-block: -6px; }
  .cb-acct .ic { width: 14px; height: 14px; }
}

/* ---- built-in art for keys and keyrings (the in-game key textures) when no package image is uploaded */
.cb-art--fb { display: grid; place-items: center; }
.cb-art--fb img { position: static; width: 88px; height: 88px; max-width: 100%; max-height: 100%; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 3px 0 rgba(59, 42, 32, .18)); }
.cb-art--fb::after { content: none; }
.cb-item:hover .cb-art--fb img, .cb-card:hover .cb-art--fb img { animation: cbKeyJiggle .4s steps(2) 1; }
@keyframes cbKeyJiggle { 50% { rotate: -6deg; translate: 0 -2px; } }

/* ---- Premium Camp Pass highlight band */
.cb-nav .n-pass { --bt: #FFF1C2; --bt-e: #E9C35A; --bt-s: #C79A2E; --bt-h: #FFF8DC; }
.cb-band--pass { background: linear-gradient(180deg, #FFF3CF, #FBE6B0); box-shadow: inset 0 3px 0 #EDCB73, inset 0 -3px 0 #EDCB73; }
.cb-pass { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.cb-pass-card { padding: 24px 26px; background: var(--paper); box-shadow: 0 0 0 2px #E9C35A, 0 6px 0 2px #C79A2E; }
.cb-pass-card h2 { margin-top: 10px; }
.cb-pill--pass { background: #FFE9A8; color: #7A5410; box-shadow: 0 0 0 2px #E9C35A; }
.cb-pass .cb-ticks li::before { background-image: var(--i-ic-star); background-size: 12px 12px; }
.cb-pass-side h3 { font-family: var(--ui); font-size: 18px; color: var(--forest); margin: 0 0 12px; }
.cb-pass-side .cb-modules { grid-template-columns: 1fr; gap: 16px; }
@media (max-width: 860px) { .cb-pass { grid-template-columns: 1fr; } }
/* supporter faces: flat 2D Minecraft heads */
.cb-modules img.cb-head2d { image-rendering: pixelated; background: #C9A27A; }

/* Desktop header: the nav is centered below the logo and account controls. */
@media (min-width: 1141px) {
  .cb-top-in { display: grid; grid-template-columns: 1fr auto; row-gap: 12px; }
  .cb-top-in > .cb-brand { grid-row: 1; grid-column: 1; justify-self: start; }
  .cb-nav { grid-row: 2; grid-column: 1 / -1; justify-self: center; }
  .cb-nav > ul { margin: -10px -4px; }
  .cb-acts { position: static; grid-row: 1; grid-column: 2; }
  .cb-acct { position: static; font-size: 14px; border-width: 15px 14px; }
  .cb-acct > * { margin-block: -8px; }
}
.cb-pill .ic { margin-right: 5px; vertical-align: -3px; width: 12px; height: 12px; background-size: 12px 12px; }
.cb-pkg .cb-art--fb img, .cb-feature .cb-art--fb img { width: 264px; height: 264px; }

/* ---------- animated rank scenes: NPC + rank pet, 18 frames of 56x38, scaled to fill the art box */
.cb-art--scene { display: grid; place-items: end center; padding: 0 4% 5%; }
.cb-art--scene::after { content: none; }
.cb-scene { display: block; width: 100%; aspect-ratio: 56 / 38; max-width: 100%;
  background: var(--scene) 0 0 / 1800% 100% no-repeat; image-rendering: pixelated;
  animation: cbScene 2.88s steps(18, jump-none) infinite; }
@keyframes cbScene { from { background-position: 0 0; } to { background-position: 100% 0; } }
.cb-scene--hedgehog { --scene: var(--i-rank-hedgehog); }
.cb-scene--squirrel { --scene: var(--i-rank-squirrel); }
.cb-scene--capybara { --scene: var(--i-rank-capybara); }
.cb-scene--fox { --scene: var(--i-rank-fox); }
.cb-scene--frog { --scene: var(--i-rank-frog); }
@media (prefers-reduced-motion: reduce) { .cb-scene { animation: none; } }
/* camp theme tents: bigger than the key art */
.cb-card .cb-art--fb img[src*="cb-tent-"], .cb-tile .cb-art--fb img[src*="cb-tent-"], .cb-card .cb-art--fb img[src*="cb-pet-"], .cb-tile .cb-art--fb img[src*="cb-pet-"], .cb-card .cb-art--fb img[src*="cb-ticket-"], .cb-tile .cb-art--fb img[src*="cb-ticket-"] { width: 176px; height: 176px; }
.cb-pkg .cb-art--fb img[src*="cb-tent-"], .cb-feature .cb-art--fb img[src*="cb-tent-"], .cb-pkg .cb-art--fb img[src*="cb-pet-"], .cb-feature .cb-art--fb img[src*="cb-pet-"], .cb-pkg .cb-art--fb img[src*="cb-ticket-"], .cb-feature .cb-art--fb img[src*="cb-ticket-"] { width: 352px; height: 352px; }
@media (max-width: 720px) { .cb-card .cb-art--fb img[src*="cb-tent-"], .cb-card .cb-art--fb img[src*="cb-pet-"], .cb-card .cb-art--fb img[src*="cb-ticket-"] { width: 88px; height: 88px; } .cb-pkg .cb-art--fb img[src*="cb-tent-"], .cb-pkg .cb-art--fb img[src*="cb-pet-"], .cb-pkg .cb-art--fb img[src*="cb-ticket-"] { width: 264px; height: 264px; } }
.cb-pkg .cb-art--scene { place-items: center; padding: 0 3%; }

/* ---- Acorn bundles */
.cb-tint--oak { background: #F7EBD6; box-shadow: inset 0 3px 0 #E8D0A8, inset 0 -3px 0 #E8D0A8; --tint: #F7EBD6; }
.ic-acorn { background-image: var(--i-ic-acorn); width: 14px; height: 20px; background-size: 14px 20px; }
.cb-badge.ic-acorn { background-image: var(--i-ic-acorn); background-size: 21px 30px; }
.cb-acorns { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.cb-acorn { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 16px; background: var(--paper);
  box-shadow: inset 0 4px 0 #B98A63, 0 0 0 2px var(--parch-d), 0 4px 0 2px var(--parch-dd); transition: transform .12s var(--step), box-shadow .12s var(--step); }
.cb-acorn:hover { transform: translateY(-3px); box-shadow: inset 0 4px 0 #B98A63, 0 0 0 2px #B98A63, 0 7px 0 2px #7A5536; }
.cb-acorn .cb-art { width: 88px; margin: 6px auto 2px; aspect-ratio: 1 / 1; }
.cb-acorn h3 { font-size: 17px; text-align: center; color: #7A5536; margin: 2px 0 0; min-height: 2.3em; display: flex; align-items: center; justify-content: center; }
.cb-acorn h3 a { color: inherit; text-decoration: none; }
.cb-acorn h3 a::before { content: ""; position: absolute; inset: 0; }
.cb-acorn-amt { text-align: center; margin: 0; font-family: var(--ui); font-size: 14px; color: var(--ink-soft); }
.cb-acorn-amt b { display: block; font-family: var(--display); font-weight: 400; font-size: 34px; line-height: .95; color: var(--ink); letter-spacing: .02em; }
.cb-acorn-bonus { align-self: center; font-family: var(--micro); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px 4px;
  color: var(--cream); background: var(--leaf); box-shadow: 0 2px 0 var(--forest); }
.cb-acorn-bonus--base { color: var(--ink-soft); background: var(--parch); box-shadow: 0 2px 0 var(--parch-dd); }
.cb-acorn-value { height: 8px; margin: 6px 2px 0; background: var(--parch); box-shadow: 0 0 0 2px var(--parch-d); }
.cb-acorn-value i { display: block; height: 100%; background: linear-gradient(90deg, #C9A26B, #E9B949); }
.cb-acorn-rate { margin: 0; text-align: center; font-size: 12.5px; color: var(--ink-soft); }
.cb-acorn-buy { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; border-top: 2px dotted var(--parch-dd); }
.cb-acorn-buy .cb-price { font-size: 28px; }
.cb-acorn-buy .cb-btn { position: relative; z-index: 1; }
.cb-acorn-soon { font-family: var(--micro); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--wood); padding: 6px 10px; border: 2px dashed var(--parch-dd); }
.cb-acorn--best { box-shadow: inset 0 4px 0 #E9B949, 0 0 0 2px #E9B949, 0 4px 0 2px #B0832A; }
.cb-acorn--best:hover { box-shadow: inset 0 4px 0 #E9B949, 0 0 0 2px #E9B949, 0 7px 0 2px #B0832A; }
.cb-acorn-flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(-2deg); white-space: nowrap; font-family: var(--micro); font-size: 10px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: #E9B949; padding: 4px 9px 5px; box-shadow: 0 2px 0 #B0832A; }
@media (max-width: 1020px) { .cb-acorns { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 26px; } }
@media (max-width: 700px) { .cb-acorns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; } .cb-acorn-amt b { font-size: 30px; } .cb-acorn--best { grid-column: 1 / -1; } }
@media (max-width: 380px) { .cb-acorns { grid-template-columns: minmax(0, 1fr); } }

/* ---- Acorns page */
.cb-acornpage .cb-acorns { margin-top: 18px; }
.cb-spend { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cb-spend li { padding: 12px 14px; background: var(--paper); box-shadow: 0 0 0 2px var(--parch-d), 0 3px 0 2px var(--parch-dd); display: grid; gap: 2px; align-content: start; }
.cb-spend b { font-family: var(--ui); font-weight: 600; font-size: 16px; color: #7A5536; }
.cb-spend span { font-size: 14px; color: var(--ink-soft); }
.cb-acornfaq { max-width: 760px; }
@media (max-width: 900px) { .cb-spend { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cb-spend { grid-template-columns: minmax(0, 1fr); } }

/* ---- Customization dropdown (Camp Themes + Pet Skins) */
.cb-nav .n-custom { --bt: #F9DCD5; --bt-e: #E39B8C; --bt-s: #BF7262; --bt-h: #FFE9E3; position: relative; }
.cb-dd details { position: relative; }
.cb-dd summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 7px 12px 8px;
  font-family: var(--ui); font-weight: 600; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; color: var(--forest);
  background: var(--bt); box-shadow: inset 0 0 0 2px var(--bt-e), 0 3px 0 0 var(--bt-s); transition: transform .1s var(--step); }
.cb-dd summary::-webkit-details-marker { display: none; }
.cb-dd summary:hover, .cb-dd details[open] summary { background: var(--bt-h); box-shadow: inset 0 0 0 2px var(--bt-s), 0 5px 0 0 var(--bt-s); transform: translateY(-2px); }
.cb-dd summary[aria-current="page"] { background: var(--bt-h); box-shadow: inset 0 0 0 3px var(--bt-s), 0 3px 0 0 var(--bt-s); }
.cb-dd summary:focus-visible { outline: 3px dashed var(--ember); outline-offset: 3px; }
.cb-dd-caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; margin-left: 2px; transition: transform .1s var(--step); }
.cb-dd details[open] .cb-dd-caret { transform: rotate(180deg); }
.cb-nav .cb-dd-menu { position: absolute; top: calc(100% + 10px); left: 0; z-index: 60; display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin: 0;
  padding: 10px; list-style: none; background: var(--paper); box-shadow: 0 0 0 2px var(--parch-d), 0 4px 0 2px var(--parch-dd); min-width: 100%; }
.cb-dd-menu a { width: 100%; }
@media (max-width: 1140px) {
  .cb-nav.is-open .cb-dd summary { width: 100%; padding: 11px 12px; font-size: 15px; }
  .cb-nav.is-open .cb-dd-menu { position: static; box-shadow: none; background: transparent; padding: 6px 0 0 14px; }
}

.cb-nav .n-acorns { --bt: #F3E3CC; --bt-e: #D2AE7E; --bt-s: #A9824F; --bt-h: #FAEEDC; }

/* let the Customization dropdown hang below the header (sideways overflow stays clipped) */
.cb-top { overflow-x: clip; overflow-y: visible; z-index: 30; }

/* ---- Accessories (amulets + accessory slots). Pixel icons only at whole-number scales: 32px art at 96 / 64, 36px slot at 72 */
.cb-tint--sage { background: #EAF2E2; box-shadow: inset 0 3px 0 #CFE0BF, inset 0 -3px 0 #CFE0BF; --tint: #EAF2E2; }
.ic-amulet { background-image: var(--i-ic-amulet); width: 14px; height: 20px; background-size: 14px 20px; }
.cb-badge.ic-amulet { background-image: var(--i-ic-amulet); background-size: 21px 30px; background-color: #E4F0DA; box-shadow: 0 0 0 2px #A9CC93, 0 4px 0 2px #7BA466; }
.cb-nav .n-acc { --bt: #E2EFD6; --bt-e: #A9CC93; --bt-s: #6F9A5A; --bt-h: #EEF6E6; }
.cb-accs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.cb-acc { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 14px 16px; background: var(--paper); text-align: center;
  box-shadow: inset 0 4px 0 #8DB878, 0 0 0 2px var(--parch-d), 0 4px 0 2px var(--parch-dd); transition: transform .12s var(--step), box-shadow .12s var(--step); }
.cb-acc:hover { transform: translateY(-3px); box-shadow: inset 0 4px 0 #8DB878, 0 0 0 2px #8DB878, 0 7px 0 2px #5E8A4B; }
.cb-acc-art { display: block; width: 96px; height: 96px; margin: 4px auto 0; }
.cb-acc-art img, .cb-accx-art img { display: block; image-rendering: pixelated; image-rendering: crisp-edges; max-width: none; }
.cb-acc-art img { width: 96px; height: 96px; }
.cb-acc h3, .cb-accx-text h3 { font-size: 17px; color: #4F6E3F; margin: 0; }
.cb-acc h3 a, .cb-accx-text h3 a { color: inherit; text-decoration: none; }
.cb-acc h3 a::before { content: ""; position: absolute; inset: 0; }
.cb-acc-perk { font-family: var(--micro); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px 4px; color: #3F5E31; background: #DDEED0; box-shadow: 0 2px 0 #A9CC93; }
.cb-acc-blurb { margin: 2px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.cb-acc-buy { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; border-top: 2px dotted var(--parch-dd); align-self: stretch; }
.cb-acc-buy .cb-btn { position: relative; z-index: 1; }
.cb-acc-save { display: inline-block; vertical-align: 2px; margin-left: 6px; font-family: var(--micro); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px 4px; color: #6B4A12; background: #FBE7A8; box-shadow: 0 2px 0 #D9B24D; }
.cb-accx { display: grid; gap: 14px; margin: 26px 0 30px; }
.cb-accx-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 14px 18px; background: var(--paper);
  box-shadow: 0 0 0 2px var(--parch-d), 0 4px 0 2px var(--parch-dd); }
.cb-accx-row--set { box-shadow: inset 0 4px 0 #E9B949, 0 0 0 2px #E9B949, 0 4px 0 2px #B0832A; }
.cb-accx-art { display: flex; flex-wrap: wrap; gap: 2px; }
.cb-accx-art img { width: 64px; height: 64px; }
.cb-accx-row:not(.cb-accx-row--set) .cb-accx-art img { width: 72px; height: 72px; }
.cb-accx-text p { margin: 4px 0 0; font-size: 14px; color: var(--ink-soft); }
.cb-accx-row .cb-acc-buy { margin: 0; padding: 0 0 0 18px; border-top: 0; border-left: 2px dotted var(--parch-dd); min-width: 150px; }
.cb-accpage .cb-accs { margin-top: 18px; }
@media (max-width: 1020px) { .cb-accs { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; } }
@media (max-width: 760px) {
  .cb-accs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .cb-accx-row { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
  .cb-accx-art { justify-content: center; }
  .cb-accx-row .cb-acc-buy { padding: 10px 0 0; border-left: 0; border-top: 2px dotted var(--parch-dd); width: 100%; }
}
@media (max-width: 380px) { .cb-accs { grid-template-columns: minmax(0, 1fr); } .cb-accx-art img { width: 32px !important; height: 32px !important; } }
.cb-accpage .cb-spend { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .cb-accpage .cb-spend { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cb-accpage .cb-spend { grid-template-columns: minmax(0, 1fr); } }
.cb-acc-buy .cb-btn { max-width: 100%; }
@media (max-width: 760px) { .cb-acc .cb-acc-buy .cb-btn { width: 100%; justify-content: center; padding-left: 8px; padding-right: 8px; font-size: 13px; gap: 6px; } .cb-acc { padding: 12px 10px 14px; } }

/* phones: keep the menu button fully on screen */
@media (max-width: 440px) {
  .cb-acts { gap: 6px; }
  .cb-brand { gap: 6px; }
  .cb-brand b { font-size: 13px; letter-spacing: .06em; }
  .cb-burger { width: 44px; height: 44px; border-width: 13px; }
}
@media (max-width: 360px) { .cb-brand b { display: none; } }

/* Top Supporter: open spot (no supporter yet this month) */
.cb-open-ava { flex: none; display: grid; place-items: center; width: 64px; height: 64px; background: #FADDE8; box-shadow: 0 0 0 2px var(--ink), 0 4px 0 2px var(--parch-dd); }
.cb-modules .module-topdonator .cb-open-ava img { width: 42px; height: 42px; image-rendering: pixelated; box-shadow: none !important; animation: cbHop 2.4s steps(2) infinite; }
@media (prefers-reduced-motion: reduce) { .cb-open-ava img { animation: none; } }

/* Crate keys: show the key art bigger (3x the 88px art; whole-number scales only) */
.cb-item .cb-art--fb img[src*="cb-key-"] { width: 264px; height: 264px; }
@media (max-width: 340px) { .cb-item .cb-art--fb img[src*="cb-key-"] { width: 176px; height: 176px; } }
/* Accessories heading badge: the real Foraging Amulet art at 1x (32px, native, crisp) */
.cb-badge.ic-amulet, .cb-subhead .cb-badge.ic-amulet { background-image: url("cb-acc-foraging-amulet.png"); background-size: 32px 32px; background-repeat: no-repeat; background-position: center; image-rendering: pixelated; }
/* heading badges never get squeezed by long titles */
.cb-badge { flex: none; }
.cb-badge.ic-amulet, .cb-badge.ic-acorn { width: 44px; height: 44px; }
@media (max-width: 720px) { .cb-badge.ic-amulet, .cb-badge.ic-acorn { width: 36px; height: 36px; } }
.cb-badge.ic-acorn { background-color: #F7E3C8; box-shadow: 0 0 0 2px #D9B07A, 0 4px 0 2px #A9824F; background-repeat: no-repeat; background-position: center; }

/* ---- Package example pictures (Camp Themes, Pet Skins) */
.cb-ex { margin: 46px 0 10px; }
.cb-ex-shots { display: grid; grid-template-columns: 1.25fr .8fr; gap: 18px; align-items: start; }
.cb-ex-shot { margin: 0; display: grid; gap: 8px; min-width: 0; }
.cb-ex-shot--wide, .cb-ex--theme .cb-ex-shot:nth-child(3) { grid-column: 1 / -1; }
.cb-ex-shot a { display: block; background: var(--paper); padding: 8px; box-shadow: 0 0 0 2px var(--parch-d), 0 4px 0 2px var(--parch-dd); transition: transform .12s var(--step); }
.cb-ex-shot a:hover { transform: translateY(-2px); }
.cb-ex-shot img { display: block; width: 100%; height: auto; }
.cb-ex-shot--px img { image-rendering: pixelated; }
.cb-ex-shot figcaption { font-size: 14px; color: var(--ink-soft); text-align: center; }
.cb-ex-count { font-family: var(--micro); font-size: 11px; letter-spacing: .06em; padding: 2px 8px 3px; background: var(--parch); box-shadow: 0 2px 0 var(--parch-dd); color: var(--ink-soft); }
.cb-ex-grid { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cb-ex-grid li { display: grid; gap: 6px; padding: 10px 10px 12px; background: var(--paper); box-shadow: 0 0 0 2px var(--parch-d), 0 3px 0 2px var(--parch-dd); text-align: center; min-width: 0; }
.cb-ex-pic { display: grid; place-items: center; height: 130px; background: var(--parch); }
.cb-ex-pic img { max-width: 92%; max-height: 118px; width: auto; height: auto; filter: drop-shadow(0 3px 0 rgba(59, 42, 32, .15)); }
.cb-ex-grid b { font-family: var(--ui); font-weight: 600; font-size: 13.5px; color: var(--ink); line-height: 1.25; }
@media (max-width: 760px) { .cb-ex-shots { grid-template-columns: minmax(0, 1fr); } .cb-ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cb-ex-pic { height: 110px; } .cb-ex-pic img { max-height: 98px; } }

.cb-plush-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 270px)); justify-content: center; gap: 18px; margin: 0 auto; }
@media (max-width: 960px) { .cb-plush-grid { grid-template-columns: repeat(2, minmax(0, 270px)); } }
@media (max-width: 460px) { .cb-plush-grid { grid-template-columns: minmax(0, 270px); } }

.cb-plush-example { margin: 20px 0 0; }
.cb-plush-example figcaption { font-weight: 800; margin-bottom: 8px; }
.cb-plush-example img { display: block; width: 100%; height: auto; border-radius: 6px; }

.cb-plush-head { align-items: center; }
.cb-plush-greeting { grid-column: 2; grid-row: 1; justify-self: end; display: grid; justify-items: end; }
.cb-plush-greeting .cb-bubble { margin: 0; width: auto; text-align: center; }
.cb-plush-greeting .cb-bubble::after { left: auto; right: 27px; }
.cb-plush-cinnie { display: block; width: 156px; height: 102px; background: var(--i-cinnie-cat) 0 0 / 2808px 102px no-repeat; image-rendering: pixelated; }
@media (max-width: 650px) { .cb-plush-greeting { grid-column: 1; grid-row: auto; } }

/* Plushie package copy can include line breaks from the Tebex editor. */
.cb-desc--plushies > br,
.cb-desc--plushies > ul > br,
.cb-desc--plushies li > br:only-child,
.cb-desc--plushies > p:empty { display: none; }
.cb-desc--plushies h4 { margin: 16px 0 0 !important; }
.cb-desc--plushies ul { margin: 6px 0 0 !important; row-gap: 6px; }
.cb-desc--plushies li { margin-block: 0 !important; padding-block: 0 !important; }
.cb-desc--plushies li > p,
.cb-desc--plushies li > div { margin-block: 0 !important; padding-block: 0 !important; }

.cb-desc--plushies > p { margin: 0 0 8px; }
.cb-desc--plushies > h4 + ul { display: block; margin: 6px 0 0 !important; }
.cb-desc--plushies > h4 + ul > li + li { margin-top: 6px !important; }

.cb-desc--plushies > ol { margin: 6px 0 0; padding-inline-start: 1.5em; }
.cb-desc--plushies > ol > li + li { margin-top: 6px !important; }

.cb-plush-pattern { --tint: #f6e5d5; background: var(--tint) url("cb-teddy-repeat.svg") 0 0 / 128px 128px repeat; }

.cb-key-quantity { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cb-key-quantity label { display: inline-flex; align-items: center; gap: 8px; }
.cb-key-quantity input { width: 5em; padding: 6px; font: inherit; }

/* Balanced keyring inclusions and quantity controls */
+.cb-item.cb-ring-item { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.cb-ring-item .cb-art { aspect-ratio: 1; height: auto; flex: none; }
.cb-ring-item > div:last-child { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; flex: 1; }
.cb-ring-item h3 { margin: 0 0 5px; }
.cb-ring-item .cb-contents { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 5px; width: 100%; margin: 3px 0 8px; }
.cb-ring-item .cb-contents li { box-sizing: border-box; width: min(100%, 198px); text-align: center; white-space: nowrap; }
.cb-ring-item .cb-price { margin: 0 0 8px; }
.cb-ring-item h3 a::before { content: none; }
.cb-ring-quantity { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: auto; padding-top: 6px; }
.cb-ring-quantity label { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 13px; }
.cb-ring-quantity input { box-sizing: border-box; width: 58px; height: 33px; padding: 4px 5px; text-align: center; background: #fffdf7; border: 1px solid var(--parch-dd); border-radius: 2px; color: var(--forest); }
.cb-ring-quantity button { position: relative; z-index: 1; cursor: pointer; font: inherit; white-space: nowrap; }
.cb-ring-quantity button:disabled { opacity: .55; cursor: wait; }

/* Keep the full keyring sprite inside the artwork panel at every width. */
.cb-ring-item .cb-art--fb img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(336px, 100%);
  height: 100%;
  object-fit: contain;
}

/* Camping cosmetic collections */
.ic-wings { background-image: url("cb-i-wings.svg"); }
.cb-cosmetic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cb-cosmetic-grid .cb-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cb-ex--cosmetic { margin-top: 24px; }
.cb-ex--cosmetic .cb-ex-shot { width: min(100%, 520px); justify-self: center; }
.cb-ex--cosmetic .cb-ex-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cb-ex--cosmetic .cb-ex-grid small { color: var(--ink-soft); }
.cb-cosmetic-purchase { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.cb-cosmetic-checkout { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) {
  .cb-cosmetic-grid, .cb-ex--cosmetic .cb-ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 440px) { .cb-cosmetic-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- Spin Tokens (Extras > Spin Tokens). Token icon is 16px pixel art: 1x in the nav, 2x in the heading badge */
.ic-spin { background-image: url("cb-i-spin.png"); width: 16px; height: 16px; background-size: 16px 16px; image-rendering: pixelated; }
.cb-badge.ic-spin { width: 44px; height: 44px; background-image: url("cb-i-spin.png"); background-size: 32px 32px; background-repeat: no-repeat; background-position: center; image-rendering: pixelated; background-color: #FBF0C8; box-shadow: 0 0 0 2px #E2C065, 0 4px 0 2px #C29C3A; }
@media (max-width: 720px) { .cb-badge.ic-spin { width: 36px; height: 36px; } }
.cb-nav .n-spin { --bt: #FBF0C8; --bt-e: #E2C065; --bt-s: #C29C3A; --bt-h: #FDF6DD; }
.cb-spins { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cb-spin .cb-art { width: 132px; }
.cb-spin .cb-art--fb img { width: 132px; height: 132px; }
.cb-odds { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cb-odds li.cb-odds--rare { box-shadow: 0 0 0 2px #E2C065, 0 3px 0 2px #C29C3A; background: #FDF6DD; }
@media (max-width: 1020px) { .cb-spins { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cb-odds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cb-odds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .cb-spins { grid-template-columns: minmax(0, 1fr); } }
.cb-spin .cb-acorn-buy .cb-btn { max-width: 100%; }
@media (max-width: 560px) { .cb-spin .cb-acorn-buy .cb-btn { width: 100%; justify-content: center; padding-left: 8px; padding-right: 8px; font-size: 13px; gap: 6px; } .cb-spin { padding: 12px 10px 14px; } }
