/* =============================================================
   HAIKYUU FAN SHOP — styles.css
   1. Tokens  2. Reset & base  3. Utilities  4. Typography
   5. Components  6. Sections  7. Effects  8. Responsive
   9. Reduced motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* surfaces — warm pastel beige (the header/nav stays dark, see --header-* below) */
  --bg: #f8f3e7;
  --bg-elevated: #f1e9d6;
  --bg-card: #fffdf8;
  --bg-card-hover: #fff9ec;
  --line: #e7dcc3;
  --line-soft: #efe6d2;

  /* ink */
  --ink: #241f16;
  --ink-dim: #6b6250;
  --ink-faint: #8f8570;

  /* brand */
  --accent: #ff6a00;
  --accent-2: #ffb100;
  --accent-2-ink: #8a5300;
  --accent-ink: #161108;
  --accent-soft: rgba(255, 106, 0, 0.12);
  --court: #e8e4d8;

  --ok: #1e7d45;
  --warn: #8a5300;

  /* the header/nav/footer keep the original dark "night gym" surface */
  --header-bg: #0c0c0e;
  --header-bg-soft: #16171b;
  --header-line: #2b2c33;
  --header-ink: #f5f3ee;
  --header-ink-dim: #b9b7b0;

  /* team palette (used by radar overlays / cards) */
  --c1: #ff6a00;
  --c2: #1e9bab;
  --c3: #b55bd6;
  --c4: #35c46a;
  --c5: #ffd23f;
  --c6: #ff4d6d;

  --radius: 14px;
  --radius-sm: 8px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --container: 1280px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --display: "Anton", "Arial Narrow", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: .5s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
::view-transition-old(root) { animation-name: fadeOutUp; }
::view-transition-new(root) { animation-name: fadeInUp; }
@keyframes fadeOutUp { to { opacity: 0; transform: translateY(-10px); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.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;
}
.section { position: relative; padding-block: clamp(3rem, 8vw, 6rem); }
.section-tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--display); font-weight: 400;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); font-size: .8rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 3px; background: var(--accent); border-radius: 2px;
}
.head-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
}
.divider-diag {
  height: 46px; background: var(--bg-elevated);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.badge {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .3em .7em; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  background: var(--bg-card); border: 1px solid var(--line);
  color: var(--ink-dim);
}
.badge-accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.badge-sample { background: rgba(255,178,0,.18); color: var(--accent-2-ink); border-color: rgba(138,83,0,.25); }
.badge-ok { background: rgba(30,125,69,.14); color: var(--ok); border-color: rgba(30,125,69,.3); }

/* =============================================================
   4. Typography
   ============================================================= */
h1, .h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2, .h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.7rem, 3.6vw, 2.8rem); }
h3, .h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.25rem, 2.2vw, 1.6rem); letter-spacing: .01em; }
h4, .h4 { font-family: var(--sans); font-weight: 800; font-size: 1.05rem; }
.lede { font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--ink-dim); max-width: 62ch; }
.text-dim { color: var(--ink-dim); }
.text-faint { color: var(--ink-faint); }
.text-accent { color: var(--accent); }

/* =============================================================
   5. Components
   ============================================================= */

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em; border-radius: 999px;
  font-weight: 800; font-size: .95rem; letter-spacing: .01em;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 10px 24px -10px rgba(255,106,0,.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(255,106,0,.65); }
.btn-ghost { background: var(--bg-card); border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--bg-card-hover); border-color: var(--accent); }
.btn-sm { padding: .55em 1.1em; font-size: .82rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* --- nav --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12,12,14,.92); backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--header-line);
  color: var(--header-ink);
}
@supports not (backdrop-filter: blur(1px)) { .site-header { background: rgba(12,12,14,.98); } }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-size: 1.4rem; text-transform: uppercase; color: var(--header-ink); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.nav-links { display: none; align-items: center; gap: 1.6rem; }
.nav-links a { font-weight: 700; font-size: 1.05rem; color: var(--header-ink-dim); transition: color .2s var(--ease-out); position: relative; }
.nav-links a:hover, .nav-links a.is-active { color: var(--header-ink); }
.nav-links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; background: var(--accent);
}
.nav-cta.nav-cta { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); padding: .55em 1.2em; border-radius: 999px; font-weight: 800; }
.nav-cta.nav-cta:hover { color: var(--accent-ink); }

/* --- nav dropdown (desktop) --- */
.nav-item { position: relative; display: flex; align-items: center; height: 100%; }
.nav-item > a { display: flex; align-items: center; gap: .32rem; }
.nav-item > a::after {
  content: ""; width: 6px; height: 6px; margin-top: -2px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); opacity: .55;
}
.nav-dropdown {
  /* Sits flush against the nav item (top:100%, no margin-top gap) on
     purpose: an earlier version added a gap + an invisible hover "bridge"
     to cover it, but the bridge had to be wider than the link itself to
     reach the panel below, and that width silently overlapped into the
     NEXT nav item's own hover area — hovering near one item's arrow could
     pop open its neighbor's dropdown. Zero gap removes the need for a
     bridge entirely, so there's nothing left to overlap. */
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(4px);
  background: var(--header-bg); border: 1px solid var(--header-line); border-radius: 14px;
  padding: .5rem; min-width: 210px;
  display: flex; flex-direction: column; gap: .1rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s var(--ease-out), transform .18s var(--ease-out), visibility .18s;
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
}
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  font-size: .9rem; font-weight: 600; padding: .55em .7em; border-radius: 8px; white-space: nowrap;
}
.nav-dropdown a:hover, .nav-dropdown a:focus-visible { background: rgba(255,255,255,.07); }

/* --- nav submenu (mobile) --- */
.mobile-submenu { padding-left: 1.1rem; margin-top: -.4rem; margin-bottom: .5rem; border-bottom: 1px solid var(--header-line); padding-bottom: .3rem; }
.mobile-menu .mobile-submenu a {
  font-family: var(--sans); text-transform: none; font-size: 1rem; font-weight: 600;
  color: var(--header-ink-dim); padding: .55rem 0; border-bottom: none;
}
.nav-toggle { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--header-ink); }
.nav-toggle svg { width: 22px; height: 22px; }
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: var(--header-bg); padding: 5.5rem 1.5rem 2rem;
  overflow-y: auto;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--header-line); font-family: var(--display); text-transform: uppercase; font-size: 1.3rem; color: var(--header-ink); }

/* --- cards: product --- */
.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.5rem); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.p-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.p-card:hover { transform: translateY(-4px); border-color: rgba(255,106,0,.4); box-shadow: 0 18px 40px -20px rgba(0,0,0,.6); }
.p-card-media {
  aspect-ratio: 1; position: relative; overflow: hidden;
  background: radial-gradient(120% 100% at 20% 0%, rgba(255,106,0,.22), transparent 60%), var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
}
.p-card-media svg { width: 42%; height: 42%; color: var(--ink-faint); }
.p-card-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.p-card-media .badge {
  position: absolute; top: .6rem; left: .6rem; z-index: 2;
  background: var(--accent-ink); color: #fff; border: none;
  font-size: .74rem; padding: .38em .85em;
  box-shadow: 0 3px 10px rgba(20,15,5,.35);
}
.p-card-media .badge-discount {
  position: absolute; top: .6rem; left: auto; right: .6rem; width: max-content; z-index: 2;
  font-size: .8rem; padding: .42em .9em;
  background: linear-gradient(135deg, #ff6a00, #ff8a3d); color: #fff; border: none;
  font-weight: 800; box-shadow: 0 2px 8px rgba(180,70,0,.35);
}
.p-card-body { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.1rem 1.2rem; flex: 1; }
.p-card-cat { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.p-card-name { font-size: 1rem; font-weight: 500; line-height: 1.3; }
.p-card-link { position: absolute; inset: 0; z-index: 1; }
.p-card-desc { font-size: .82rem; line-height: 1.4; color: var(--ink-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-card-meta { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--ink-dim); }
.stars { color: var(--accent-2); letter-spacing: 1px; }
.p-card-price-row { margin-top: auto; display: flex; align-items: baseline; gap: .5rem; }
.price { font-family: var(--display); font-size: 1.3rem; }
.price-strike { text-decoration: line-through; color: var(--ink-faint); font-size: .85rem; }
.p-card-cta { margin-top: .6rem; position: relative; z-index: 2; }

/* --- character trading card (no copyrighted art: CSS-generated) --- */
.pc-card {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.pc-card:hover { transform: translateY(-5px) rotate(-.3deg); box-shadow: 0 20px 44px -18px rgba(0,0,0,.65); }
.pc-face {
  position: relative; aspect-ratio: 3/4;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1rem;
  background:
    radial-gradient(120% 90% at 15% -10%, color-mix(in srgb, var(--pc1) 55%, transparent), transparent 60%),
    linear-gradient(155deg, var(--pc1), var(--pc2) 120%);
  color: #fff;
  overflow: hidden;
}
.pc-face:not(.has-photo)::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.07) 0 2px, transparent 2px 22px);
  mix-blend-mode: overlay;
}
.pc-face:not(.has-photo)::after {
  content: ""; position: absolute; right: -18%; bottom: -18%; width: 75%; aspect-ratio: 1;
  border-radius: 50%; border: 3px dashed rgba(255,255,255,.16);
}
/* --- character card, real-photo variant (user-supplied images) --- */
.pc-face.has-photo { background: var(--pc1); }
.pc-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.pc-photo-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    color-mix(in srgb, var(--pc1) 92%, black 8%) 0%,
    rgba(0,0,0,0) 40%, rgba(0,0,0,.22) 78%, rgba(0,0,0,.38) 100%);
}
.pc-top { position: relative; display: flex; align-items: flex-start; justify-content: space-between; }
.pc-number { font-family: var(--display); font-size: clamp(3.4rem, 9vw, 4.6rem); line-height: .8; opacity: .92; text-shadow: 0 6px 18px rgba(0,0,0,.35); }
.pc-position { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; background: rgba(0,0,0,.28); padding: .35em .6em; border-radius: 999px; }
.pc-ball { position: relative; width: 30%; margin-inline: auto; opacity: .9; filter: drop-shadow(0 8px 14px rgba(0,0,0,.35)); }
.pc-bottom { position: relative; }
.pc-team { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .85; }
.pc-name { font-family: var(--display); font-size: clamp(1.05rem, 2.4vw, 1.35rem); text-transform: uppercase; line-height: 1.02; margin-top: .15rem; }
.pc-info { padding: .85rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; }
.pc-info-row { display: flex; justify-content: space-between; font-size: .82rem; color: var(--ink-dim); }
.pc-info-row b { color: var(--ink); font-weight: 700; }
.pc-cta { padding: 0 1rem 1rem; }

/* --- category tile --- */
.cat-tile {
  position: relative; border-radius: var(--radius); overflow: hidden; padding: 1.4rem;
  border: 1px solid var(--line); background: var(--bg-card);
  display: flex; flex-direction: column; gap: .6rem; min-height: 150px; justify-content: flex-end;
  transition: transform .3s var(--ease-out), border-color .3s var(--ease-out);
}
.cat-tile:hover { transform: translateY(-3px); border-color: var(--accent); }
.cat-tile::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 100% 0%, var(--accent-soft), transparent 65%);
}
.cat-tile svg { width: 30px; height: 30px; color: var(--accent); position: relative; }
.cat-tile h3 { position: relative; font-size: 1.1rem; }
.cat-tile span { position: relative; font-size: .8rem; color: var(--ink-dim); }

/* --- category showcase card (home: full-bleed photo + scrim + centered CTA) --- */
.cat-showcase {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3 / 4; min-height: 320px; background: var(--bg-elevated);
  border: 1px solid var(--line);
}
.cat-showcase-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s var(--ease-out);
}
.cat-showcase-fallback { display: flex; align-items: center; justify-content: center; background: var(--bg-elevated); }
.cat-showcase-fallback svg { width: 25%; height: 25%; color: var(--ink-faint); }
.cat-showcase:hover .cat-showcase-img { transform: scale(1.06); }
.cat-showcase::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(10,8,5,.92) 0%, rgba(10,8,5,.6) 38%, rgba(10,8,5,0) 72%);
}
.cat-showcase-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1.6rem 1.2rem 1.8rem; text-align: center; color: #fff;
}
.cat-showcase-body h3 {
  font-family: var(--display); font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  text-transform: uppercase; letter-spacing: .02em;
}
.cat-showcase-body p {
  font-size: .85rem; line-height: 1.4; color: rgba(255,255,255,.82);
  margin-top: .5rem; max-width: 28ch; margin-inline: auto;
}
.cat-showcase-btn { margin-top: 1.1rem; }

/* --- hero --- */
.hero {
  position: relative; overflow: clip; isolation: isolate;
  padding-block: clamp(3.5rem, 10vw, 7rem);
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(255,106,0,.16), transparent 60%),
    radial-gradient(50% 50% at 5% 90%, rgba(255,178,0,.14), transparent 60%),
    var(--bg-elevated);
}
.hero::before {
  content: ""; position: absolute; inset: -10% -10%; z-index: 1;
  background-image: repeating-linear-gradient(120deg, rgba(36,31,22,.035) 0 2px, transparent 2px 46px);
  pointer-events: none;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center right; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-elevated) 42%, rgba(241,233,214,.62) 66%, rgba(241,233,214,.15) 100%);
}
.hero-grid { position: relative; z-index: 2; display: grid; gap: 2.5rem; align-items: center; }
.hero-kicker { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.hero-title { max-width: 15ch; }
.hero-title em { color: var(--accent); font-style: normal; }
.hero-actions { display: flex; gap: .8rem; margin-top: 1.6rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 1.6rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-stat b { display: block; font-family: var(--display); font-size: 1.6rem; color: var(--accent); }
.hero-stat span { font-size: .78rem; color: var(--ink-dim); }

/* --- trust stats band (home, right under the hero) --- */
.trust-stats-section {
  background: var(--bg-elevated); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding-block: clamp(2.4rem, 5vw, 3.6rem);
}
.trust-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
  margin-top: 1.8rem; max-width: 980px; margin-inline: auto;
}
.trust-stat {
  padding: 1.4rem 1rem; border-radius: var(--radius-sm); background: var(--bg-card);
  border: 1px solid var(--line);
}
.trust-stat b {
  display: block; font-family: var(--display); font-size: clamp(2rem, 4.4vw, 2.8rem);
  color: var(--accent); line-height: 1;
}
.trust-stat .stars { display: block; margin-top: .4rem; font-size: 1.15rem; }
.trust-stat .label { display: block; margin-top: .5rem; font-size: .82rem; color: var(--ink-dim); }
@media (max-width: 719px) { .trust-stats { grid-template-columns: repeat(2, 1fr); } }

/* --- ficha (product page) --- */
.ficha-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
.gallery-main {
  aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(120% 100% at 20% 0%, rgba(255,106,0,.22), transparent 60%), var(--bg-elevated);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.gallery-main svg { width: 34%; height: 34%; color: var(--ink-faint); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 1.4rem; }
.ficha-header .badge { margin-bottom: .8rem; }
.ficha-title { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.ficha-brand { color: var(--ink-dim); margin-top: .3rem; }
.ficha-rating { display: flex; align-items: center; gap: .6rem; margin-top: .8rem; }
.ficha-price-box {
  margin-top: 1.4rem; padding: 1.1rem 1.2rem; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.ficha-price { font-family: var(--display); font-size: 2rem; }
.price-date { font-size: .75rem; color: var(--ink-faint); margin-top: .2rem; }
.ficha-buy-repeat { margin-top: 1rem; }

.radar-wrap { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem clamp(1.2rem, 6vw, 3rem); }
.radar-wrap h3 { margin-bottom: .6rem; }
.radar-note { font-size: .76rem; color: var(--ink-faint); margin-top: .5rem; }
.radar-svg { width: 100%; max-width: 420px; height: auto; display: block; margin-inline: auto; overflow: visible; }
.radar-legend { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.radar-legend .chip { display: flex; align-items: center; gap: .4em; font-size: .78rem; color: var(--ink-dim); }
.radar-legend .dot { width: 10px; height: 10px; border-radius: 50%; }

.spec-table { margin-top: .6rem; }
.spec-group { margin-bottom: 1.2rem; }
.spec-group h4 { color: var(--accent); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .5rem; }
.spec-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line-soft); font-size: .9rem; }
.spec-row span:first-child { color: var(--ink-dim); }
.spec-row span:last-child { font-weight: 700; text-align: right; }

.pc-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.pc-columns h4 { margin-bottom: .5rem; }
.pc-columns ul li { display: flex; gap: .5em; align-items: flex-start; font-size: .9rem; padding: .3rem 0; color: var(--ink-dim); }
.pc-columns .pros li::before { content: "+"; color: var(--ok); font-weight: 900; }
.pc-columns .cons li::before { content: "–"; color: var(--accent-2); font-weight: 900; }
.ideal-para { margin-top: 1rem; padding: .9rem 1rem; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; font-weight: 600; }

.review-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; }

/* --- reviews carousel (category pages) --- */
.reviews-carousel {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: .6rem; margin-top: 1.2rem; -webkit-overflow-scrolling: touch;
}

/* --- product carousel (home: "explora más categorías") --- */
.product-carousel {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: .6rem; margin-top: 1.2rem; -webkit-overflow-scrolling: touch;
}
.product-carousel .p-card { flex: 0 0 78%; scroll-snap-align: start; }
@media (min-width: 720px) { .product-carousel .p-card { flex-basis: calc(50% - .5rem); } }
@media (min-width: 960px) { .product-carousel .p-card { flex-basis: calc(33.333% - .667rem); } }

/* --- carousel shell: side arrows + drag-to-scroll (product & reviews carousels) --- */
.carousel-wrap { position: relative; }
.carousel-wrap .product-carousel,
.carousel-wrap .reviews-carousel { cursor: grab; user-select: none; }
.carousel-wrap .product-carousel.is-dragging,
.carousel-wrap .reviews-carousel.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel-arrow {
  position: absolute; top: 40%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px -6px rgba(0,0,0,.35);
  color: var(--ink); cursor: pointer; transition: background .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.carousel-arrow svg { width: 20px; height: 20px; }
.carousel-arrow:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.carousel-arrow-prev { left: -8px; }
.carousel-arrow-next { right: -8px; }
@media (max-width: 539px) {
  .carousel-arrow { width: 36px; height: 36px; }
  .carousel-arrow-prev { left: -4px; }
  .carousel-arrow-next { right: -4px; }
}
.review-slide {
  flex: 0 0 280px; scroll-snap-align: start;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.1rem;
}
.review-slide-text { font-size: .9rem; color: var(--ink-dim); margin-top: .6rem; line-height: 1.5; }
.review-slide-product { font-size: .78rem; margin-top: .8rem; color: var(--ink-faint); }
.review-slide-product a { color: var(--accent); font-weight: 600; }

/* --- FAQ accordion (category pages, rich snippet) --- */
.faq-list { display: flex; flex-direction: column; gap: .6rem; margin-top: 1rem; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .2rem 1.1rem;
}
.faq-item summary {
  cursor: pointer; padding: .9rem 0; font-weight: 700; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; font-size: 1.2rem; color: var(--accent); transition: transform .2s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 1rem; color: var(--ink-dim); font-size: .92rem; line-height: 1.55; }

.disclosure {
  margin-top: 1.4rem; padding: 1rem 1.1rem; border-radius: var(--radius-sm);
  background: var(--bg-elevated); border: 1px solid var(--line); font-size: .82rem; color: var(--ink-dim);
}

/* --- character ficha --- */
.wiki-hero { display: grid; gap: 2rem; align-items: start; }
.wiki-card-big { max-width: 340px; }
.wiki-facts { display: grid; grid-template-columns: repeat(2,1fr); gap: .8rem 1.4rem; margin-top: 1rem; }
.wiki-fact { padding: .7rem .9rem; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.wiki-fact span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-faint); }
.wiki-fact b { font-size: .95rem; }
.trivia-list li { display: flex; gap: .6em; padding: .5rem 0; border-bottom: 1px solid var(--line-soft); font-size: .92rem; color: var(--ink-dim); }
.trivia-list li::before { content: "▸"; color: var(--accent); flex: none; }

/* --- comparator --- */
.comparator-picker { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.comparator-search { position: relative; flex: 1 1 260px; }
.comparator-search input {
  width: 100%; padding: .8em 1em; border-radius: 999px; background: var(--bg-card);
  border: 1px solid var(--line); color: var(--ink); font-size: .92rem;
}
.comparator-search-results {
  position: absolute; top: calc(100% + .4rem); left: 0; right: 0; z-index: 20;
  background: var(--bg-elevated); border: 1px solid var(--line); border-radius: 10px;
  max-height: 280px; overflow: auto; display: none; box-shadow: 0 20px 40px -14px rgba(0,0,0,.6);
}
.comparator-search-results.is-open { display: block; }
.comparator-search-results button {
  display: flex; width: 100%; align-items: center; gap: .6rem; padding: .6rem .8rem; text-align: left; font-size: .88rem;
}
.comparator-search-results button:hover { background: var(--bg-card-hover); }
.comparator-slots { display: flex; flex-wrap: wrap; gap: .6rem; }
.slot-wrap { position: relative; padding: .4rem .4rem 0; }
.compare-chip {
  display: flex; align-items: center; gap: .5rem; padding: .45em .5em .45em .9em; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--line); font-size: .84rem; font-weight: 700;
}
.remove-badge {
  width: 20px; height: 20px; border-radius: 50%; background: var(--bg-elevated); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: .8rem; line-height: 1;
}
.remove-badge:hover { background: var(--accent); color: var(--accent-ink); }

.compare-table-wrap { overflow-x: auto; margin-top: 1.6rem; }
.compare-table { min-width: 640px; }
.compare-table th, .compare-table td { padding: .7rem .9rem; border-bottom: 1px solid var(--line-soft); font-size: .88rem; text-align: left; white-space: nowrap; }
.compare-table th { color: var(--ink-dim); font-weight: 700; position: sticky; top: 0; background: var(--bg); }
.compare-table td.best { color: var(--ok); font-weight: 800; }
.compare-table .row-label { color: var(--ink-dim); position: sticky; left: 0; background: var(--bg); }
.compare-head-card { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; min-width: 160px; }
.compare-head-card img, .compare-head-card svg { width: 46px; height: 46px; }
.compare-radar-wrap { margin-top: 2rem; }
.empty-compare { padding: 3rem 1rem; text-align: center; color: var(--ink-dim); border: 1px dashed var(--line); border-radius: var(--radius); }

/* --- character face-off (VS board) --- */
.vs-arena {
  position: relative; padding: 2.2rem clamp(1rem, 4vw, 2.4rem); border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, var(--header-bg) 0%, var(--header-bg-soft) 100%); overflow: hidden;
}
.vs-arena::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background:
    radial-gradient(60% 70% at 12% 20%, rgba(255,106,0,.20), transparent 60%),
    radial-gradient(60% 70% at 88% 80%, rgba(30,155,171,.20), transparent 60%);
}
.vs-board { position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(.8rem, 3vw, 2rem); }
@media (max-width: 639px) { .vs-board { flex-direction: column; } }
.vs-slot {
  flex: 1 1 0; position: relative; aspect-ratio: 3/4; max-width: 320px;
  border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 50px -20px rgba(0,0,0,.6);
}
@media (max-width: 639px) { .vs-slot { max-width: 260px; width: 100%; } }
.vs-slot-pick {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem;
  border: 2px dashed rgba(255,255,255,.25); border-radius: var(--radius); background: rgba(255,255,255,.04); color: rgba(255,255,255,.65);
  font-weight: 700; font-size: .9rem; transition: border-color .2s var(--ease-out), color .2s var(--ease-out), background .2s var(--ease-out);
}
.vs-slot-pick svg { width: 34px; height: 34px; opacity: .7; }
.vs-slot-pick:hover { border-color: var(--accent); color: #fff; background: rgba(255,106,0,.12); }
.vs-slot-card {
  width: 100%; height: 100%; position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1rem; text-align: left; color: #fff;
  background: linear-gradient(155deg, var(--pc1, var(--accent)), var(--pc2, var(--accent-2)) 120%);
}
.vs-slot-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.vs-slot-card::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.05) 55%, transparent 80%);
}
.vs-slot-name, .vs-slot-team { position: relative; z-index: 1; }
.vs-slot-name { font-family: var(--display); font-size: 1.2rem; letter-spacing: .01em; line-height: 1.15; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.vs-slot-team { font-size: .78rem; opacity: .9; margin-top: .15rem; }
.vs-slot-remove {
  position: absolute; top: .6rem; right: .6rem; z-index: 2; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,0,0,.5); color: #fff; border: 1px solid rgba(255,255,255,.3); font-size: .9rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px);
}
.vs-slot-remove:hover { background: var(--accent); border-color: var(--accent); }
.vs-badge {
  flex: none; position: relative; z-index: 1; width: 3.4rem; height: 3.4rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink);
  font-family: var(--display); font-size: 1.05rem; font-weight: 700; box-shadow: 0 8px 24px -6px rgba(255,106,0,.7);
}
/* Entrance: each freshly-picked side slides in from its own edge, the
   VS badge pops in after — plays whenever the markup is (re)inserted
   (a fresh pick, or a saved matchup restored on load), skipped entirely
   for anyone who prefers reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  [data-vs-slot="0"] .vs-slot-card { animation: vs-in-left .5s var(--ease-out) both; }
  [data-vs-slot="1"] .vs-slot-card { animation: vs-in-right .5s var(--ease-out) both; }
  .vs-badge { animation: vs-pop .45s var(--ease-out) .12s both, vs-glow 1.6s ease-out .5s 1; }
  @keyframes vs-in-left { from { transform: translateX(-32px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes vs-in-right { from { transform: translateX(32px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes vs-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
  @keyframes vs-glow { 0%, 100% { box-shadow: 0 8px 24px -6px rgba(255,106,0,.7); } 50% { box-shadow: 0 8px 24px -6px rgba(255,106,0,.7), 0 0 0 14px rgba(255,106,0,.18); } }
}

/* height comparison bars, inside the face-off panel */
.height-battle { display: flex; align-items: flex-end; justify-content: center; gap: clamp(1rem, 4vw, 2.6rem); margin: 1.6rem 0 .4rem; }
.height-battle-side { display: flex; flex-direction: column; align-items: center; gap: .5rem; width: 5.5rem; }
.height-battle-val { font-family: var(--display); font-size: 1.2rem; color: var(--ink); }
.height-battle-track { width: 2.1rem; height: 130px; border-radius: 999px; background: var(--bg-elevated); display: flex; align-items: flex-end; overflow: hidden; border: 1px solid var(--line); }
.height-battle-fill { width: 100%; border-radius: 999px; transition: height .5s var(--ease-out); }
.height-battle-label { align-self: flex-end; margin-bottom: 2.2rem; color: var(--ink-faint); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }

.face-off-table { min-width: 0; width: 100%; }
.face-off-table th, .face-off-table td { text-align: center; white-space: normal; }
.face-off-head th { font-family: var(--display); font-size: 1.05rem; color: var(--ink); }
.face-off-head th.side-a { color: var(--face-a, var(--ink)); }
.face-off-head th.side-b { color: var(--face-b, var(--ink)); }
.face-off-label { color: var(--ink-faint); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; width: 1%; white-space: nowrap; }
.face-off-val { font-weight: 700; }
.face-off-val.best-a { color: var(--face-a, var(--ok)); }
.face-off-val.best-b { color: var(--face-b, var(--ok)); }

.vs-matchups { display: flex; flex-wrap: wrap; gap: .6rem; }
.vs-matchup-chip {
  display: flex; align-items: center; gap: .5rem; padding: .5em .9em .5em .5em; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--line); font-size: .86rem; font-weight: 700;
}
.vs-matchup-chip:hover { border-color: var(--accent); }
.vs-matchup-chip img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; object-position: top; }
.vs-matchup-chip .vs-matchup-x { color: var(--ink-faint); font-weight: 500; }

/* --- guide / ranking --- */
.guide-body { max-width: 74ch; margin-inline: auto; }
.guide-body p { margin-block: 1rem; color: var(--ink-dim); }
.guide-body h2 { margin-top: 2.4rem; margin-bottom: .8rem; }
.rank-item {
  display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--bg-card); margin-bottom: .8rem;
}
.rank-num { font-family: var(--display); font-size: 1.8rem; color: var(--accent); width: 2.2ch; flex: none; text-align: center; }

/* --- quick-compare table (category pages) --- */
.table-scroll { overflow-x: auto; margin-top: 1.2rem; }
.quick-compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.quick-compare-table th {
  text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em;
  color: var(--ink-faint); padding: .5rem .8rem; border-bottom: 1px solid var(--line);
}
.quick-compare-table td { padding: .8rem; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.qc-rank { font-family: var(--display); font-size: 1.2rem; color: var(--accent); text-align: center; }
.qc-product a { display: flex; align-items: center; gap: .7rem; font-weight: 700; max-width: 32ch; }
.qc-product img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: var(--bg-elevated); flex: none; }

/* --- filters bar --- */
.filters-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.6rem; }
.filters-bar select, .filters-bar button {
  padding: .55em 1em; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--line);
  color: var(--ink); font-size: .84rem; font-weight: 700;
}
.filters-bar button.is-active { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

/* --- footer --- */
.site-footer { border-top: 1px solid var(--line-soft); padding-block: 3rem 2rem; background: var(--bg-elevated); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.footer-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); margin-bottom: .8rem; }
.footer-col a { display: block; padding: .3rem 0; font-size: .88rem; color: var(--ink-dim); }
.footer-col a:hover { color: var(--accent); }
.footer-disclosure { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft); font-size: .78rem; color: var(--ink-faint); max-width: 90ch; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; font-size: .78rem; color: var(--ink-faint); }

/* --- amazon note --- */
.amazon-note { font-size: .74rem; color: var(--ink-faint); margin-top: .4rem; }

/* --- legal pages --- */
.legal-body { max-width: 74ch; margin-inline: auto; }
.legal-body h2 { margin-top: 2rem; margin-bottom: .7rem; }
.legal-body p, .legal-body li { color: var(--ink-dim); margin-bottom: .6rem; }
.legal-body li { margin-left: 1.2rem; list-style: disc; }

/* =============================================================
   7. Effects (reveal-on-scroll, chip hover, tilt-free)
   ============================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 720px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .hero-bg::after {
    background: linear-gradient(100deg, var(--bg-elevated) 0%, var(--bg-elevated) 32%, rgba(241,233,214,.55) 52%, transparent 78%);
  }
  .ficha-grid { grid-template-columns: .9fr 1.1fr; }
  .wiki-hero { grid-template-columns: 320px 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
@media (max-width: 719px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pc-columns { grid-template-columns: 1fr; }
}
@media (min-width: 960px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 959px) and (min-width: 540px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 539px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; }
  .wiki-facts { grid-template-columns: 1fr; }
}
@media (min-width: 1280px) {
  .container { padding-inline: 0; }
}

/* =============================================================
   9. Reduced motion — only intrusive effects gated
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero::before { display: none; }
}
