/* ==================================================================
   Gens.gg store - template CSS
   Font: assets/fonts/minecraft.ttf (CC BY-SA, (c) Pwnage_Block 2011)
   ================================================================== */
@font-face {
  font-family: 'Minecraft';
  src: url('../fonts/minecraft.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  /* The file's metrics (ascent 1.125em) sit capitals ~0.06em low in every line box.
     Capitals are 0.875em tall with 0.125em descenders, so ascent 100% / descent 12.5% centres them. */
  ascent-override: 100%;
  descent-override: 12.5%;
  line-gap-override: 0%;
}

:root {
  /* ground */
  --bg: #0b1c26;
  --surface: #13293a;
  --surface-2: #1f3d52;
  --nav: #07131b;
  --footer: #061018;
  --ink: #050805;
  /* text */
  --text: #eaf6f8; --text-2: #cfe3ea; --muted: #9fc2cf;
  /* rainbow accents */
  --gold: #ffc86b;   --on-gold: #2b1a00;
  --cyan: #56f0e0;   --on-cyan: #032a2a;
  --pink: #ff6fd8;   --on-pink: #3a0030;
  --violet: #9b6bff; --on-violet: #14003a;
  --ice: #c8ecf5;    --on-ice: #0b2a33;
  --orange: #ff8a1f; --on-orange: #2a1400;
  /* scenery */
  --sky: #0e4f6b; --maroon: #4a1c28; --maroon-2: #5e2533; --grass: #3f8a8e; --grass-2: #5aa6a6;

  --gutter: clamp(16px, 8.333vw, 120px);
  /* the rainbow: one cycle per 200vw, starts and ends on cyan so it tiles seamlessly */
  --rainbow: linear-gradient(90deg, var(--cyan), var(--violet) 25%, var(--pink) 50%, var(--gold) 75%, var(--cyan));
  --hard: 8px 8px 0 var(--ink);
  /* bottom shade 3px (1px pressed) under a 3px top highlight */
  --bevel: inset 0 -3px 0 rgba(0, 0, 0, .28), inset 0 3px 0 rgba(255, 255, 255, .42);
  --bevel-pressed: inset 0 -1px 0 rgba(0, 0, 0, .28), inset 0 3px 0 rgba(255, 255, 255, .42);
}

/* ---------- tones: set --tone / --on-tone, everything inside picks them up ---------- */
.tone-gold    { --tone: var(--gold);   --on-tone: var(--on-gold);   --bullet: var(--gold); }
.tone-cyan    { --tone: var(--cyan);   --on-tone: var(--on-cyan);   --bullet: var(--cyan); }
.tone-pink    { --tone: var(--pink);   --on-tone: var(--on-pink);   --bullet: #ffa6e8; }
.tone-violet  { --tone: var(--violet); --on-tone: var(--on-violet); --bullet: var(--violet); }
.tone-ice     { --tone: var(--ice);    --on-tone: var(--on-ice);    --bullet: var(--ice); }
.tone-orange  { --tone: var(--orange); --on-tone: var(--on-orange); --bullet: var(--orange); }
.tone-surface { --tone: var(--surface);   --on-tone: var(--text); }
.tone-neutral { --tone: var(--surface-2); --on-tone: var(--text); }
.tone-discord { --tone: #4752c4;          --on-tone: #ffffff; }

/* ==================================================================
   Base
   ================================================================== */
*, *::before, *::after { box-sizing: border-box; font-family: 'Minecraft', monospace !important; }
button, input, select, textarea { font-family: 'Minecraft', monospace; font-size: inherit; color: inherit; font-weight: 400; }
html { font-synthesis: none; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font-family: 'Minecraft', monospace; font-weight: 400; font-synthesis: none;
  font-size: 16px; line-height: 1.5;
}
h1, h2, h3, h4, h5, h6, b, strong, th, legend { font-weight: 400; }
[hidden] { display: none !important; }
img { max-width: 100%; }
a { color: var(--gold); }
a:hover { color: #ffe0a6; }
code { color: var(--text); }

:focus-visible { outline: 3px dashed #ffffff; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--gold); color: var(--on-gold); border: 3px solid var(--ink); text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.site-main { flex: 1 0 auto; outline: none; }
.loading { padding-top: 80px; padding-bottom: 80px; color: var(--muted); }
.em { color: #ffffff; }

/* ==================================================================
   Signature button
   ================================================================== */
.mcbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px; margin: 0;
  background: var(--tone, var(--surface-2)); color: var(--on-tone, var(--text));
  border: 3px solid var(--ink); border-radius: 0; box-shadow: var(--bevel);
  font-size: 18px; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer; -webkit-appearance: none; appearance: none;
  transition: transform .08s, filter .08s;
}
.mcbtn:hover { filter: brightness(1.1); transform: translateY(-2px); color: var(--on-tone, var(--text)); }
.mcbtn:active { transform: translateY(2px); box-shadow: var(--bevel-pressed); }
/* Inverted (header nav): dark IP-style body, the accent moves to a shadowed label. Hover = same highlight as the IP button. */
.mcbtn--inv, .mcbtn--inv:hover { background: var(--surface); color: var(--tone-text, var(--tone)); text-shadow: 2px 2px 0 var(--ink); }
.mcbtn--inv svg { filter: drop-shadow(2px 2px 0 var(--ink)); }
.mcbtn--inv.tone-violet { --tone-text: #b89bff; }   /* #9b6bff on the dark body is only 3.8:1; this is 6.4:1 */
.mcbtn.is-current { outline: 3px solid #ffffff; outline-offset: 3px; }
.mcbtn.is-current:focus-visible { outline-style: dashed; }
.mcbtn--sm { min-height: 38px; padding: 0 12px; font-size: 14px; }
.mcbtn--lg { min-height: 58px; padding: 0 30px; font-size: 20px; }
.mcbtn.is-disabled, .mcbtn:disabled { filter: grayscale(.75) brightness(.8); cursor: not-allowed; transform: none; }
.mcbtn.is-busy { cursor: progress; }

.linkbtn {
  padding: 4px 2px; background: none; border: 0; color: var(--muted);
  font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.linkbtn:hover { color: var(--text); }

.badge { align-self: flex-start; padding: 6px 12px; background: var(--tone); color: var(--on-tone); border: 3px solid var(--ink); font-size: 15px; letter-spacing: 2px; }

/* ==================================================================
   Top strip + header
   ================================================================== */
.topstrip {
  min-height: 40px; padding: 6px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px;
  /* one full cycle per 200vw tile that starts and ends on cyan, scrolled by exactly one tile = seamless loop */
  background: var(--rainbow) 0 0 / 200vw 100% repeat-x;
  animation: rainbow-scroll 14s linear infinite;
  color: #14061f; border-bottom: 3px solid var(--ink); font-size: 14px; text-align: center;
}
@keyframes rainbow-scroll { to { background-position: 200vw 0; } }
@media (prefers-reduced-motion: reduce) { .topstrip, .navlink, .navlink .dd__caret, .navlink::after { animation: none !important; } }
.topstrip__ip { font-size: 17px; letter-spacing: 1px; }

.site-header { background: var(--nav); border-bottom: 4px solid var(--ink); position: relative; z-index: 30; }
.hdr {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;   /* equal sides keep the logo dead centre */
  min-height: 100px; max-width: 1600px; margin: 0 auto; padding: 0 32px; column-gap: 16px;
}
.hdr__side { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; }
.hdr__nav { display: flex; align-items: center; gap: 22px; }

/* Text-only nav: coloured label + hard shadow, no box. Hover = same lift + brighten as the IP button. */
.navlink {
  display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 4px; margin: 0;
  background: none; border: 0; border-radius: 0; cursor: pointer;
  position: relative; font-size: 22.5px; line-height: 1; text-decoration: none; white-space: nowrap;
  filter: drop-shadow(2px 2px 0 var(--ink));   /* text-shadow would show through clipped text; this shadows glyphs, caret and underline */
  transition: transform .08s, filter .08s;
}
/* Rainbow paint, shared by the nav text, carets and underline. background-attachment: fixed pins the gradient to the
   viewport, so it matches the strip above pixel-for-pixel; same animation + start time keeps them flowing together. */
.navlink, .navlink .dd__caret, .navlink::after {
  background: var(--rainbow) 0 0 / 200vw 100% repeat-x fixed;
  animation: rainbow-scroll 14s linear infinite;
}
.navlink { -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.navlink:hover { color: transparent; filter: brightness(1.15) drop-shadow(2px 2px 0 var(--ink)); transform: translateY(-2px); }
.navlink:active { transform: translateY(1px); }
/* current page: pixel underline in the label colour */
/* current-page underline: exists from page load (so its animation stays in step with the strip), shown when current */
.navlink::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 8px; height: 3px; opacity: 0; }
.navlink.is-current::after { opacity: 1; }

/* ---------- header dropdowns ---------- */
.dd { position: relative; }
.dd__caret { flex: 0 0 auto; width: 10px; height: 6px; clip-path: polygon(0 0, 100% 0, 50% 100%); transition: transform .12s; }
.dd.is-open .dd__caret { transform: rotate(180deg); }
.dd__menu {
  display: none; position: absolute; top: 100%; left: -14px; z-index: 50;
  min-width: 190px; margin: 0; padding: 8px; list-style: none;
  background: var(--surface); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
}
.dd__menu--end { left: auto; right: -14px; }
.dd__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }   /* hover bridge over the gap */
@media (hover: hover) { .dd:hover .dd__menu { display: block; } .dd:hover .dd__caret { transform: rotate(180deg); } }
.dd.is-open .dd__menu { display: block; }
.dd__item {
  display: block; width: 100%; padding: 10px 12px; background: none; border: 0; text-align: left; cursor: pointer;
  color: var(--tone-text, var(--tone)); text-shadow: 2px 2px 0 var(--ink); font-size: 17px; line-height: 1.1; text-decoration: none; white-space: nowrap;
}
.dd__item:hover, .dd__item:focus-visible { background: var(--surface-2); color: var(--tone-text, var(--tone)); }
.dd__item.is-current { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }

@media (prefers-reduced-motion: reduce) { .navlink, .dd__caret { transition: none; } .navlink:hover { transform: none; } }

.btn-ip { height: 50px; padding: 0 14px; }
.btn-ip__tag { font-size: 12px; letter-spacing: 1px; color: var(--muted); }
.btn-ip__label { min-width: 7ch; text-align: left; }
/* bag matches the IP button: same height, padding, font and minimum width */
.btn-ip, .btn-basket { min-width: 190px; }
.btn-basket { height: 50px; padding: 0 14px; }
/* white count + total; the bag icon keeps the violet accent */
.btn-basket, .btn-basket:hover { color: #ffffff; }
.btn-basket svg { color: var(--tone-text, var(--tone)); }
.btn-basket__total { padding-left: 10px; border-left: 2px solid rgba(255, 255, 255, .15); }
.bag:focus-within .dd__menu { display: block; }   /* keyboard users get the mini-bag too */
.minibag { width: 320px; padding: 14px; }
.minibag__empty { margin: 4px 2px; color: var(--muted); font-size: 15px; }
.minibag__lines { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.minibag__line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: 2px 10px; padding: 10px 2px; border-bottom: 2px solid var(--ink); font-size: 15px; }
.minibag__name { color: #ffffff; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.minibag__name:hover { color: #ffffff; text-decoration: underline; }
.minibag__qty { color: var(--muted); }
.minibag__price { color: #ffffff; text-align: right; }
.minibag__meta { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.minibag__more { margin: 8px 2px 0; font-size: 13px; color: var(--muted); }
.minibag__total { display: flex; justify-content: space-between; padding: 12px 2px; font-size: 18px; color: #ffffff; }
.minibag__go { width: 100%; }
.btn-menu { display: none; width: 48px; height: 48px; padding: 0; }

.logo { justify-self: center; margin: 0 clamp(16px, 3vw, 56px); display: flex; align-items: center; gap: 14px; color: #ffffff; text-decoration: none; }
.logo:hover { color: #ffffff; }
.logo__img { display: block; width: 230px; height: auto; filter: drop-shadow(3px 3px 0 var(--ink)); }
.site-footer__logo { display: block; width: 160px; height: auto; }

.mnav { display: grid; gap: 12px; padding: 16px; border-top: 3px solid var(--ink); }
.mnav .mcbtn { width: 100%; height: 50px; }
.mnav__links { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 4px 2px; font-size: 14px; }
.mnav__links .linkbtn { padding: 0; font-size: 14px; color: var(--gold); text-decoration: none; }
.mnav__account { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.mnav__account > .mcbtn:only-child { width: 100%; }

.demo-bar { padding: 8px 16px; background: #2a2410; color: var(--gold); border-bottom: 3px solid var(--ink); font-size: 13px; text-align: center; }

/* 1280-1439: squeeze the nav a little */
@media (max-width: 1439.98px) {
  .hdr { padding: 0 20px; }
  .navlink { font-size: 20px; }
  .hdr__nav { gap: 16px; }
  .btn-ip, .btn-basket { font-size: 16px; }
  .logo__img { width: 210px; }
}
/* tablet: two rows - [IP] [logo] [basket] / [4 nav buttons] */
@media (max-width: 1279.98px) {
  .hdr {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas: "ip logo logo basket" "navl navl navr navr";
    row-gap: 16px; padding: 16px 24px;
  }
  .hdr__side { display: contents; }
  .btn-ip { grid-area: ip; justify-self: start; }
  .logo { grid-area: logo; margin: 0; }
  .hdr__nav--left { grid-area: navl; justify-self: end; }
  .hdr__nav--right { grid-area: navr; justify-self: start; }
  .bag { grid-area: basket; justify-self: end; }
  .navlink { font-size: 21.25px; }
}
/* mobile: [IP] [logo] [menu] */
@media (max-width: 767.98px) {
  .hdr { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ip logo menu"; min-height: 72px; padding: 12px 16px; column-gap: 10px; }
  .hdr__nav, .bag { display: none; }
  .btn-menu { display: inline-flex; grid-area: menu; }
  .btn-ip { height: 44px; padding: 0 10px; gap: 8px; font-size: 14px; }
  .btn-ip__tag { display: none; }
  .logo__img { width: 130px; }
}
@media (min-width: 768px) { .mnav { display: none !important; } }

/* ==================================================================
   Home: hero
   ================================================================== */
.hero { position: relative; overflow: hidden; background: var(--sky); border-bottom: 4px solid var(--ink); }
.hero__inner { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; padding-top: 76px; padding-bottom: 80px;   /* sized by its text now the art is gone */ }
.hero__copy { max-width: 660px; display: flex; flex-direction: column; gap: 24px; }
.hero__title { margin: 0; font-size: clamp(40px, 5.3vw, 76px); line-height: 1.02; color: #ffffff; text-shadow: 5px 5px 0 var(--ink); }
.pool-text {
  background: linear-gradient(90deg, var(--cyan), var(--pink) 55%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  text-shadow: none; filter: drop-shadow(5px 5px 0 var(--ink));
}
/* slightly lighter than the mockup's #c9e2ea + a hard shadow so it stays >= 4.5:1 over the lighter sky bands */
.hero__sub { margin: 0; max-width: 540px; font-size: 20px; line-height: 1.55; color: #e3f1f5; text-shadow: 2px 2px 0 var(--ink); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 6px; }
.hero__ctas .mcbtn { min-height: 60px; font-size: 21px; }

/* hero IP: the header IP button + live player count */
.btn-ip--hero { align-self: flex-start; margin-top: 8px; }
.btn-ip__players { display: inline-flex; align-items: center; gap: 8px; padding-left: 10px; border-left: 2px solid rgba(255, 255, 255, .15); color: #ffffff; }
.btn-ip__dot { width: 8px; height: 8px; background: #3fbf3a; box-shadow: 0 0 0 2px var(--ink); }


@media (max-width: 1279.98px) {
}
@media (max-width: 1023.98px) {
  .hero__inner { padding-top: 56px; padding-bottom: 72px; }
}
@media (max-width: 767.98px) {
  .hero__inner { padding-top: 40px; padding-bottom: 96px; }
  .hero__sub { font-size: 17px; }
  .hero__ctas .mcbtn { min-height: 54px; padding: 0 20px; font-size: 18px; }

}

/* ==================================================================
   Sections, tiles, draw band, info row
   ================================================================== */
.section { padding-top: 80px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 40px; }
.section--flush { padding-top: 0; }
.section--grid { padding-top: 64px; }
.section-head { display: flex; flex-direction: column; gap: 10px; }
.section-title { margin: 0; font-size: clamp(30px, 3.1vw, 44px); color: #ffffff; }
.section-sub { margin: 0; font-size: 18px; color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.tile { display: flex; flex-direction: column; background: var(--surface); border: 3px solid var(--ink); box-shadow: var(--hard); transition: transform .12s; }
.tile:hover { transform: translateY(-6px); }
.tile__bar { height: 10px; background: var(--tone); }
.tile__body { flex-grow: 1; display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; }
.tile__title { margin: 0; font-size: 28px; color: #ffffff; }
.tile__desc { flex-grow: 1; margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
.tile__btn { height: 52px; margin-top: 8px; }

@media (max-width: 1023.98px) {
  .section { padding-top: 56px; padding-bottom: 64px; }
  .section--flush { padding-top: 0; }
}

/* ==================================================================
   Category header band + switcher
   ================================================================== */
.cathead { background: var(--band, var(--surface)); border-bottom: 4px solid var(--ink); }
.cathead__inner { display: flex; flex-direction: column; gap: 28px; padding-top: 48px; padding-bottom: 44px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--crumb, var(--muted)); }
.crumbs a { color: var(--crumb, var(--muted)); }
.crumbs a:hover { color: #ffffff; }
.crumbs__here { color: #ffffff; }
.cathead__row { display: flex; align-items: center; gap: 28px; }
.cathead__text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cathead__title { margin: 0; font-size: clamp(36px, 4.2vw, 60px); line-height: 1.05; color: #ffffff; text-shadow: 4px 4px 0 var(--ink); overflow-wrap: anywhere; }
.cathead__title--sm { font-size: clamp(30px, 3.4vw, 48px); }
.cathead__sub { margin: 0; font-size: 18px; color: var(--subc, var(--text-2)); }
.switcher { display: flex; flex-wrap: wrap; gap: 14px; }
.switcher .mcbtn { height: 50px; padding: 0 22px; font-size: 17px; }

@media (max-width: 767.98px) {
  .cathead__inner { gap: 20px; padding-top: 32px; padding-bottom: 32px; }
  .cathead__row { gap: 16px; }
  .cathead__sub { font-size: 16px; }
  .switcher { gap: 10px; }
  .switcher .mcbtn { flex: 1 1 auto; padding: 0 14px; font-size: 15px; }
}

/* ==================================================================
   Package cards
   ================================================================== */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.pcard { display: flex; flex-direction: column; background: var(--surface); border: 3px solid var(--ink); box-shadow: var(--hard); transition: transform .12s; }
.pcard:hover { transform: translateY(-6px); }
.pcard--top { outline: 3px solid var(--gold); outline-offset: 4px; }
.pcard__head { display: flex; flex-direction: column; gap: 4px; padding: 22px; background: var(--tone); color: var(--on-tone); border-bottom: 3px solid var(--ink); }
.pcard__tier { font-size: 13px; letter-spacing: 1.5px; }
.pcard__name { margin: 0; font-size: 30px; line-height: 1.1; overflow-wrap: anywhere; }
.pcard__name a { color: inherit; text-decoration: none; }
.pcard__name a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pcard__body { flex-grow: 1; display: flex; flex-direction: column; gap: 18px; padding: 24px 22px; }
.pcard__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.pcard__amount { font-size: 40px; line-height: 1.1; color: #ffffff; }
.pcard__was { font-size: 18px; color: var(--muted); }
.pcard__term { font-size: 14px; color: var(--muted); }
.pcard__blurb { flex-grow: 1; margin: 0; font-size: 15px; color: var(--text-2); }
.pcard__buy { height: 54px; }
.pcard__gift { align-self: center; }

.perks { flex-grow: 1; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: 15px; color: var(--text-2); }
.perks li { display: flex; align-items: center; gap: 10px; }
.perks li::before { content: ""; flex: 0 0 auto; width: 10px; height: 10px; background: var(--bullet, var(--tone)); border: 2px solid var(--ink); box-sizing: content-box; }

@media (max-width: 1199.98px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639.98px)  { .pgrid { grid-template-columns: minmax(0, 1fr); } .pcard__amount { font-size: 34px; } }

.strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 30px; }
.strip__text { display: flex; flex-direction: column; gap: 6px; }
.strip__text p { margin: 0; font-size: 16px; color: var(--muted); }
.strip__title { margin: 0; font-size: 22px; color: #ffffff; }
.strip__btn { height: 52px; padding: 0 24px; }

/* ==================================================================
   Panels + forms
   ================================================================== */
.panel { background: var(--surface); border: 3px solid var(--ink); box-shadow: var(--hard); padding: 30px; }
.panel--narrow { max-width: 640px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.panel p { margin: 0; color: var(--text-2); line-height: 1.6; }
.panel__title { margin: 0; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; color: #ffffff; }
.panel__title--sm { font-size: 24px; }
.panel__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.empty { text-align: center; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 12px; }

.field-label { font-size: 16px; color: #ffffff; }
.field {
  width: 100%; min-height: 46px; padding: 0 12px;
  background: var(--nav); color: var(--text); border: 3px solid var(--ink); border-radius: 0;
  font-size: 16px; -webkit-appearance: none; appearance: none;
}
select.field { padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field::placeholder { color: #6f93a1; }
.field:focus-visible { outline: 3px dashed #ffffff; outline-offset: 2px; }
.hint { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0; }

/* ==================================================================
   Product page
   ================================================================== */
.product { display: grid; grid-template-columns: minmax(0, 1fr) 400px; align-items: start; gap: 28px; }
.product__about { display: flex; flex-direction: column; gap: 16px; }
.product__img { display: block; max-height: 320px; object-fit: contain; border: 3px solid var(--ink); background: var(--nav); image-rendering: pixelated; }
.product__h { margin: 0; font-size: 22px; color: var(--tone); }
.product__buybox { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 18px; border-top: 10px solid var(--tone); }
.product__fields { display: flex; flex-direction: column; gap: 10px; }
.product__buttons { display: flex; flex-direction: column; gap: 12px; }
.product__buttons .mcbtn { width: 100%; }
.product__buybox .linkbtn { align-self: center; }

.prose { color: var(--text-2); line-height: 1.65; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2, .prose h3, .prose h4 { color: #ffffff; margin: 1.2em 0 .5em; }
.prose ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.prose li { display: flex; gap: 10px; }
.prose li::before { content: ""; flex: 0 0 auto; width: 10px; height: 10px; margin-top: .45em; background: var(--bullet, var(--tone, var(--cyan))); border: 2px solid var(--ink); box-sizing: content-box; }

@media (max-width: 1023.98px) {
  .product { grid-template-columns: minmax(0, 1fr); }
  .product__buybox { position: static; order: -1; }
}

/* ==================================================================
   Basket
   ================================================================== */
.basket { display: grid; grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: 28px; }
.basket__lines { display: flex; flex-direction: column; gap: 20px; }
.blines { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.bline { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 16px; padding: 16px 0; border-top: 3px solid var(--ink); }
.bline:first-child { border-top: 0; }
.bline--img { grid-template-columns: 56px minmax(0, 1fr) auto auto auto; }   /* image column only when the product has one */
.bline__icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: var(--nav); border: 3px solid var(--ink); }
.bline__icon img { width: 100%; height: 100%; object-fit: cover; }
.bline__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bline__name { color: #ffffff; font-size: 18px; text-decoration: none; overflow-wrap: anywhere; }
.bline__name:hover { text-decoration: underline; color: #ffffff; }
.bline__meta, .bline__unit { font-size: 13px; color: var(--muted); }
.bline__total { font-size: 18px; color: #ffffff; min-width: 7ch; text-align: right; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty__btn { width: 40px; min-height: 40px; padding: 0; font-size: 18px; }
.qty__n { min-width: 2ch; text-align: center; }
.basket__summary { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; }
.basket__summary .linkbtn { align-self: center; }
.basket__checkout { width: 100%; }
.sumrow { display: flex; justify-content: space-between; gap: 12px; color: var(--text-2); }
.sumrow--total { padding-top: 12px; border-top: 3px solid var(--ink); font-size: 22px; color: #ffffff; }

@media (max-width: 1023.98px) {
  .basket { grid-template-columns: minmax(0, 1fr); }
  .basket__summary { position: static; }
}
@media (max-width: 639.98px) {
  .bline { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "info total" "qty remove"; row-gap: 10px; }
  .bline--img { grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: "icon info total" "icon qty remove"; }
  .bline__icon { grid-area: icon; width: 48px; height: 48px; align-self: start; }
  .bline__info { grid-area: info; }
  .bline__total { grid-area: total; }
  .qty { grid-area: qty; }
  .bline__remove { grid-area: remove; justify-self: end; }
  .panel { padding: 20px; }
}

/* ==================================================================
   Footer
   ================================================================== */
.site-footer { margin-top: auto; background: var(--footer); border-top: 4px solid var(--ink); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 44px; padding-bottom: 44px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 8px; }
.site-footer__legal { font-size: 14px; color: #8cb0bd; }
.site-footer__legal a { color: #8cb0bd; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; }
@media (max-width: 767.98px) {
  .site-footer__inner { flex-direction: column; align-items: flex-start; padding-top: 32px; padding-bottom: 32px; }
}

/* ==================================================================
   Login corner (fixed bottom-left, >= 768px)
   ================================================================== */
.corner { position: fixed; right: 28px; bottom: 24px; z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 12px; pointer-events: none; }
.corner > * { pointer-events: auto; }
/* Cut at the waist: the camera (gens-skin.js) puts the waist 232px down the 260px canvas, so clip the bottom 26px
   and drop the box 40px so that cut line lands 2px under the card's top edge (260 + 12 gap - 232 = 40). */
.corner .gskin { --gskin-drop: 40px; margin: 0; clip-path: inset(-40px -40px 26px -40px); }
/* floats above the corner so opening it never shifts the model */
.corner-pop { position: absolute; right: 0; bottom: 100%; margin-bottom: 12px; width: 300px; display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--surface); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.corner-pop[hidden] { display: none; }
.corner-pop .mcbtn { height: 46px; font-size: 17px; }
.btn-login { width: 214px; height: 58px; padding: 0 24px; font-size: 22px; box-shadow: var(--bevel), 6px 6px 0 var(--ink); }
.btn-login:active { box-shadow: var(--bevel-pressed), 6px 6px 0 var(--ink); }
.corner-card { min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: var(--surface); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.corner-card__avatar { width: 36px; height: 36px; image-rendering: pixelated; border: 2px solid var(--ink); }
.corner-card__who { display: flex; flex-direction: column; min-width: 0; }
.corner-card__label { font-size: 11px; letter-spacing: 1px; color: var(--muted); }
.corner-card__name { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; color: #ffffff; }
@media (max-width: 767.98px) { .corner { display: none; } }

/* ---------- 3D player widget (from reference/gens-skin-widget.html; scaled up + dropped lower) ---------- */
.gskin {
  position: relative;
  width: 240px;                          /* keep in sync with W/H in gens-skin.js */
  height: 260px;
  margin: 0 auto;
  transform: translateY(var(--gskin-drop, 26px));   /* legs tuck behind the Sign in card */
  z-index: 1;
}
.gskin__fallback,
.gskin__canvas {
  position: absolute;
  inset: 0;
  width: 240px;
  height: 260px;
  display: block;
}
.gskin__fallback {
  object-fit: contain;
  object-position: bottom;
  pointer-events: none;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .5));
  transition: opacity 500ms ease;
}
.gskin__canvas {
  opacity: 0;
  transition: opacity 500ms ease;
  cursor: pointer;
  touch-action: pan-y;                   /* horizontal drag rotates, vertical still scrolls */
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .5));
  -webkit-tap-highlight-color: transparent;
}
.gskin.is-ready .gskin__canvas   { opacity: 1; }
.gskin.is-ready .gskin__fallback { opacity: 0; visibility: hidden; transition: opacity 500ms ease, visibility 0s 500ms; }
.gskin.is-dragging .gskin__canvas { cursor: grabbing; }

/* Sign in card must sit above the model's feet */
.gskin-signin { position: relative; z-index: 2; }

@media (max-width: 767.98px) { .gskin { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .gskin__canvas, .gskin__fallback { transition: none; }
}

/* ==================================================================
   Gift dialog + toasts
   ================================================================== */
.gdialog { width: min(440px, calc(100vw - 32px)); padding: 0; margin: auto; background: transparent; border: 0; color: var(--text); }
.gdialog::backdrop { background: rgba(5, 8, 5, .7); }
.gdialog__panel { display: flex; flex-direction: column; gap: 12px; }
.gdialog__title { margin: 0 0 4px; font-size: 26px; color: #ffffff; overflow-wrap: anywhere; }
.gdialog__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.toasts { position: fixed; left: 20px; bottom: 20px;   /* bottom-left: the login corner owns bottom-right */ z-index: 60; display: flex; flex-direction: column; gap: 12px; width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 14px 18px; background: var(--surface); border: 3px solid var(--ink); border-left: 10px solid var(--cyan); box-shadow: 6px 6px 0 var(--ink); font-size: 15px; line-height: 1.5; }
.toast--ok { border-left-color: var(--gold); }
.toast--error { border-left-color: var(--pink); }
.toast__body { flex-grow: 1; min-width: 0; overflow-wrap: anywhere; }
.toast__x { flex: 0 0 auto; width: 32px; height: 32px; background: var(--surface-2); color: var(--text); border: 2px solid var(--ink); cursor: pointer; }
@media (max-width: 767.98px) { .toasts { left: 16px; right: 16px; bottom: 16px; width: auto; } }

/* ==================================================================
   Reduced motion: no lifts, no transitions
   ================================================================== */
@media (prefers-reduced-motion: reduce) {
  .mcbtn, .tile, .pcard { transition: none; }
  .mcbtn:hover, .mcbtn:active, .tile:hover, .pcard:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* ==================================================================
   Button labels: centre on the flat face, not the whole box.
   At rest the bevel is 3px light on top and 3px shade below, so the face is already centred. Pressed, the shade
   drops to 1px, moving the face centre 1px down, so the label follows it. Doubled class so it beats every
   `padding: 0 Npx` override above; horizontal padding is untouched.
   ================================================================== */
.mcbtn.mcbtn { padding-top: 0; padding-bottom: 0; }
.mcbtn.mcbtn:active { padding-top: 2px; padding-bottom: 0; }

/* four category tiles: 4 across on desktop, 2x2 on tablet, stacked on phones */
@media (max-width: 1199.98px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639.98px)  { .tiles { grid-template-columns: minmax(0, 1fr); } }
