/* Cairo (Arabic) is injected as a <link> from site.js only when lang=ar,
   so English visitors never pay for it and it doesn't block first render. */
/* =====================================================================
   DARK SIDE — OTS Card Shop
   Global design system
   ---------------------------------------------------------------------
   Brand reference: vivid red + diagonal stripes + white angular logo
   (from the store's Instagram post), reinterpreted as a dark, premium,
   tournament-grade UI. One accent color: crimson red.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces */
  --bg:        #0a0a0c;
  --bg-2:      #0f0f12;
  --surface:   #16161b;
  --surface-2: #1d1d23;
  --surface-3: #26262e;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);

  /* Brand accent */
  --red:        #e8222c;
  --red-bright: #ff2d3d;
  --red-deep:   #b3141d;
  --red-glow:   rgba(232, 34, 44, 0.45);
  --red-soft:   rgba(232, 34, 44, 0.12);

  /* Status colors for badges */
  --amber:  #f5b942;  /* Limited */
  --blue:   #4aa3ff;  /* Preorder */
  --green:  #46d17f;  /* In stock */
  --grey:   #6b6b75;  /* Sold out */

  /* Text */
  --text:    #f4f4f6;
  --muted:   #a0a0aa;
  --muted-2: #71717a;

  /* Typography */
  --font-display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --radius: 4px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
/* overflow-x: clip on the root clips the off-screen cart/menu drawers so they
   never add horizontal page width, while overflow-y stays visible so the page
   scrolls normally and the sticky header keeps working. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

/* Accessible focus */
:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 2px;
}

/* Skip-to-content link: hidden until keyboard-focused */
.skip-link {
  position: fixed;
  top: -60px;
  inset-inline-start: 12px;
  z-index: 1000;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  padding: 12px 18px;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Reusable layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(48px, 8vw, 96px); }
.section--tight { padding-block: clamp(36px, 5vw, 56px); }

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

/* Diagonal stripe motif (from the Instagram post) */
.stripes {
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.025) 0,
    rgba(255, 255, 255, 0.025) 2px,
    transparent 2px,
    transparent 22px
  );
}
.stripes-red {
  background:
    repeating-linear-gradient(-45deg,
      rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 3px,
      transparent 3px, transparent 26px),
    linear-gradient(135deg, var(--red-deep), var(--red));
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--red-bright);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow .jp { color: var(--muted-2); letter-spacing: 0.1em; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: 0.01em; }
.h-display { font-size: clamp(2.6rem, 7vw, 5rem); text-transform: uppercase; font-weight: 700; }
.h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); text-transform: uppercase; }
.h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); text-transform: uppercase; }
.h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); text-transform: uppercase; }
.lead { font-size: clamp(1rem, 1.4vw, 1.18rem); color: var(--muted); max-width: 58ch; }
.text-muted { color: var(--muted); }
.text-red { color: var(--red-bright); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(24px, 4vw, 40px);
  flex-wrap: wrap;
}
.section-head .titles { display: grid; gap: 10px; }

/* ---------- Buttons (sharp, bordered — like the SHOP NOW box) ---------- */
.btn {
  --btn-bg: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 14px 28px;
  background: var(--btn-bg);
  color: #fff;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--red-bright); box-shadow: 0 0 0 1px var(--red-bright), 0 12px 30px -8px var(--red-glow); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
}
.btn--ghost:hover { background: rgba(255,255,255,0.04); box-shadow: inset 0 0 0 1.5px var(--red); color: #fff; }

.btn--outline-red {
  background: transparent;
  color: var(--red-bright);
  box-shadow: inset 0 0 0 1.5px var(--red);
}
.btn--outline-red:hover { background: var(--red); color: #fff; box-shadow: 0 12px 30px -8px var(--red-glow); }

.btn--lg { padding: 18px 38px; font-size: 1rem; }
.btn--sm { padding: 9px 16px; font-size: 0.78rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; filter: grayscale(0.6); }

.link-arrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.84rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}
.link-arrow::after { content: "→"; color: var(--red-bright); }
.link-arrow:hover { gap: 14px; color: var(--red-bright); }

/* ---------- Badges ---------- */
.badge {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.66rem;
  font-weight: 600;
  padding: 4px 9px;
  line-height: 1;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
}
.badge--new      { background: var(--red); color: #fff; }
.badge--preorder { background: rgba(74,163,255,0.15); color: var(--blue); box-shadow: inset 0 0 0 1px rgba(74,163,255,0.4); }
.badge--limited  { background: rgba(245,185,66,0.14); color: var(--amber); box-shadow: inset 0 0 0 1px rgba(245,185,66,0.4); }
.badge--ots      { background: #fff; color: #0a0a0c; }
.badge--sold     { background: rgba(255,255,255,0.06); color: var(--grey); box-shadow: inset 0 0 0 1px var(--line); }
.badge--sale     { background: var(--red-deep); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,12,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar {
  background: var(--red);
  color: #fff;
  font-size: 0.76rem;
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.topbar .container { display: flex; align-items: center; justify-content: center; gap: 14px; padding-block: 7px; text-align: center; }
.topbar .jp { opacity: 0.75; }

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }
.brand .brand-text { display: grid; line-height: 1; }
.brand .brand-text b { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.18em; text-transform: uppercase; }
.brand .brand-text span { font-size: 0.6rem; letter-spacing: 0.34em; color: var(--red-bright); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav-links a {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 13px;
  color: var(--muted);
  position: relative;
  transition: color 0.18s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 4px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.icon-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  color: var(--text);
  border-radius: var(--radius);
  position: relative;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); color: var(--red-bright); }
.icon-btn svg { width: 21px; height: 21px; }
.cart-count {
  position: absolute; top: 4px; right: 4px;
  min-width: 17px; height: 17px;
  background: var(--red); color: #fff;
  font-size: 0.62rem; font-weight: 700;
  border-radius: 9px;
  display: grid; place-items: center;
  padding-inline: 4px;
  font-family: var(--font-body);
}
.nav-toggle { display: none; }

/* Header search (expandable) */
.header-search {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(10,10,12,0.97);
  backdrop-filter: blur(8px);
  padding: 18px var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.28s var(--ease);
  border-bottom: 1px solid var(--line);
}
.header-search[data-open="true"] { transform: translateY(0); }
.header-search form { max-width: var(--maxw); margin-inline: auto; display: flex; gap: 12px; align-items: center; }
.header-search input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--line-2);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 2rem);
  text-transform: uppercase;
  padding: 10px 0;
}
.header-search input:focus { outline: none; border-color: var(--red); }

/* ---------- Mobile nav drawer ---------- */
.mobile-nav {
  position: fixed; inset: 0;
  z-index: 300;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  display: flex; flex-direction: column;
  padding: 20px var(--gutter) 40px;
  overflow-y: auto;
}
.mobile-nav[data-open="true"] { transform: translateX(0); }
.mobile-nav .m-head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.mobile-nav nav { display: grid; gap: 2px; margin-top: 20px; }
.mobile-nav nav a {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-nav nav a .jp { font-size: 0.8rem; color: var(--muted-2); letter-spacing: 0.1em; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 78vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 75% -10%, var(--red-soft), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(232,34,44,0.10), transparent 55%),
    var(--bg);
  z-index: 0;
}
.hero__stripes {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0.6;
  -webkit-mask-image: linear-gradient(105deg, transparent 38%, #000 95%);
          mask-image: linear-gradient(105deg, transparent 38%, #000 95%);
}
.hero__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 46%;
  z-index: 1;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.9;
}
.hero .container { position: relative; z-index: 2; }
.hero__inner { max-width: 680px; display: grid; gap: 22px; }
.hero h1 { margin-top: 6px; }
.hero .hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero__stats { display: flex; gap: 36px; margin-top: 22px; flex-wrap: wrap; }
.hero__stats div span { display: block; font-family: var(--font-display); font-size: 2rem; color: #fff; line-height: 1; }
.hero__stats div small { color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.7rem; }

/* Floating product mock used in hero / cards */
.product-mock {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--surface-3), var(--surface));
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid; place-items: center;
}
.product-mock::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 16px);
}
.product-mock .pm-label {
  position: relative;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: center;
  padding: 14px;
  color: var(--muted);
  font-size: 0.8rem;
}
.product-mock .pm-jp {
  position: absolute; top: 10px; left: 12px;
  font-size: 0.7rem; color: var(--red-bright); letter-spacing: 0.12em;
}

/* ---------- Grids ---------- */
.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.grid--cats { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.grid--products { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid--events { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* ---------- Category card ---------- */
.cat-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.cat-card::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(232,34,44,0.10) 0 3px, transparent 3px 24px);
  opacity: 0; transition: opacity 0.22s var(--ease);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--red), 0 16px 36px -16px var(--red-glow); }
.cat-card:hover::before { opacity: 1; }
.cat-card .cat-body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; }
.cat-card .cat-jp { position: absolute; top: 14px; left: 16px; font-size: 0.72rem; color: var(--red-bright); letter-spacing: 0.12em; }
.cat-card h3 { font-size: 1.05rem; }
.cat-card .cat-count { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- Product card ---------- */
.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 40px -20px rgba(0,0,0,0.8); }
.product-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #fff 0%, #eceef3 100%);
  overflow: hidden;
}
.product-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.product-card__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.product-card__fav {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px;
  background: rgba(10,10,12,0.55);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.product-card__fav:hover { color: var(--red-bright); }
.product-card__fav[aria-pressed="true"] { color: var(--red); }
.product-card__fav[aria-pressed="true"] svg { fill: var(--red); }
.product-card__quick {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  z-index: 2;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.product-card:hover .product-card__quick { opacity: 1; transform: translateY(0); }
.product-card__body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__cat { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--red-bright); font-family: var(--font-display); }
.product-card__title { font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.product-card__title a:hover { color: var(--red-bright); }
.product-card__meta { color: var(--muted-2); font-size: 0.76rem; margin-top: -2px; }
.product-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
.price { font-family: var(--font-display); font-size: 1.15rem; color: #fff; }
.price .was { color: var(--muted-2); font-size: 0.85rem; text-decoration: line-through; margin-right: 6px; }
.stock-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.stock-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.stock-dot--low::before { background: var(--amber); }
.stock-dot--out::before { background: var(--grey); }
.stock-dot--pre::before { background: var(--blue); }

/* ---------- Event card ---------- */
.event-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 16px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.event-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--red), 0 16px 34px -18px var(--red-glow); }
.event-date {
  background: var(--stripes, var(--surface-2));
  border-radius: var(--radius);
  display: grid; place-content: center; text-align: center;
  padding: 12px 8px;
  background-image: linear-gradient(160deg, var(--red-deep), var(--red));
}
.event-date .d { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; color: #fff; }
.event-date .m { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.7rem; color: rgba(255,255,255,0.85); }
.event-card__body { display: flex; flex-direction: column; gap: 8px; }
.event-card__body h3 { font-size: 1.1rem; }
.event-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.event-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 0.8rem; }
.event-meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; flex-wrap: wrap; }
.capacity { font-size: 0.78rem; color: var(--muted); }
.capacity b { color: var(--text); }

/* ---------- Generic card / panel ---------- */
.panel {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: clamp(18px, 3vw, 28px);
}
.panel-red {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--red-deep), var(--red));
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 56px);
}
.panel-red::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,0.07) 0 3px, transparent 3px 26px);
  pointer-events: none;
}
.panel-red > * { position: relative; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 7px; }
.field label, .form-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  color: var(--muted);
}
.input, .select, .textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a0a0aa' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; }
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--red); }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
}
.qty button { width: 40px; height: 42px; font-size: 1.1rem; color: var(--text); transition: background 0.15s; }
.qty button:hover { background: var(--surface-2); color: var(--red-bright); }
.qty input { width: 46px; height: 42px; text-align: center; background: transparent; border: none; border-inline: 1px solid var(--line); }

/* ---------- Filters (shop) ---------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 8px; }
.filter-group { border-bottom: 1px solid var(--line); padding-block: 16px; }
.filter-group:first-child { padding-top: 0; }
.filter-group h4 { font-size: 0.95rem; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.filter-list { display: grid; gap: 9px; }
.filter-list label { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--muted); cursor: pointer; }
.filter-list label:hover { color: var(--text); }
.filter-list input { width: 17px; height: 17px; accent-color: var(--red); }
.filter-list .count { margin-left: auto; color: var(--muted-2); font-size: 0.78rem; }

.shop-toolbar {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.shop-toolbar .result-count { color: var(--muted); font-size: 0.85rem; }
.shop-toolbar .spacer { margin-left: auto; }
.search-inline { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.search-inline input { width: 100%; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 11px 14px 11px 40px; }
.search-inline svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.76rem;
  padding: 7px 14px;
  border-radius: 100px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  transition: all 0.16s var(--ease);
}
.chip:hover { color: #fff; }
.chip[aria-pressed="true"] { background: var(--red); color: #fff; box-shadow: none; }
.filter-toggle-mobile { display: none; }

/* ---------- Cart drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
  z-index: 400;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.drawer-backdrop[data-open="true"] { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  background: var(--bg-2);
  z-index: 401;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  display: flex; flex-direction: column;
  border-left: 1px solid var(--line);
}
.cart-drawer[data-open="true"] { transform: translateX(0); }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px var(--gutter); border-bottom: 1px solid var(--line); }
.cart-drawer__items { flex: 1; overflow-y: auto; padding: 8px var(--gutter); }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line__media { aspect-ratio: 3/4; background: #fff; border-radius: var(--radius); overflow: hidden; }
.cart-line__media img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.cart-line__title { font-size: 0.86rem; font-weight: 600; line-height: 1.3; }
.cart-line__meta { font-size: 0.76rem; color: var(--muted); }
.cart-line__remove { color: var(--muted-2); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; }
.cart-line__remove:hover { color: var(--red-bright); }
.cart-drawer__foot { padding: 18px var(--gutter); border-top: 1px solid var(--line); display: grid; gap: 12px; }
.cart-empty { display: grid; place-items: center; gap: 14px; padding: 60px 20px; text-align: center; color: var(--muted); }

/* ---------- Tables (cart / account / buylist) ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.74rem; color: var(--muted); padding: 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 0.8rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-display); padding-block: 18px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--red-bright); }
.crumbs .sep { opacity: 0.5; }

/* ---------- Page header band ---------- */
.page-band {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding-block: clamp(40px, 7vw, 72px);
}
.page-band__bg { position: absolute; inset: 0; z-index: 0; background: radial-gradient(900px 400px at 80% -20%, var(--red-soft), transparent 60%); }
.page-band .container { position: relative; z-index: 1; }
.page-band .lead { margin-top: 12px; }

/* ---------- Product detail ---------- */
.pd-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.pd-gallery { display: grid; gap: 12px; position: sticky; top: calc(var(--header-h) + 16px); }
.pd-main { background: linear-gradient(160deg, #fff, #e9ebf0); border-radius: var(--radius); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; position: relative; }
.pd-main img { width: 78%; object-fit: contain; }
.pd-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pd-thumb { aspect-ratio: 1; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; padding: 8px; }
.pd-thumb[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--red); }
.pd-info { display: grid; gap: 18px; }
.pd-price { font-family: var(--font-display); font-size: 2.2rem; color: #fff; }
.spec-table { width: 100%; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table td { padding: 11px 0; font-size: 0.9rem; }
.spec-table td:first-child { color: var(--muted); width: 40%; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); font-size: 0.88rem; }
.notice--pre { background: rgba(74,163,255,0.10); box-shadow: inset 0 0 0 1px rgba(74,163,255,0.3); color: #cfe5ff; }
.notice--info { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.fulfilment { display: grid; gap: 10px; }
.fulfilment .opt { display: flex; gap: 12px; padding: 14px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
.fulfilment .opt svg { color: var(--red-bright); flex-shrink: 0; }
.fulfilment .opt b { display: block; }
.fulfilment .opt span { color: var(--muted); font-size: 0.84rem; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.tab { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.9rem; padding: 12px 16px; color: var(--muted); position: relative; }
.tab[aria-selected="true"] { color: #fff; }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); }

/* ---------- Calendar ---------- */
.view-toggle { display: inline-flex; background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.view-toggle button { padding: 9px 16px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; color: var(--muted); }
.view-toggle button[aria-pressed="true"] { background: var(--red); color: #fff; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.calendar .dow { text-align: center; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; color: var(--muted); padding-bottom: 6px; }
.cal-cell { aspect-ratio: 1; background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); padding: 8px; font-size: 0.82rem; position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 84px; }
.cal-cell.empty { background: transparent; box-shadow: none; }
.cal-cell .dnum { color: var(--muted); font-family: var(--font-display); }
.cal-cell.has-event { box-shadow: inset 0 0 0 1px var(--red); }
.cal-event { background: var(--red-soft); color: var(--red-bright); font-size: 0.66rem; padding: 3px 5px; border-radius: 3px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Newsletter ---------- */
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 480px; }
.newsletter-form input { flex: 1; min-width: 200px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-top: clamp(48px, 7vw, 80px); position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--red-deep), var(--red), var(--red-deep)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; padding-bottom: 48px; }
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 36ch; }
.footer-col h5 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.82rem; margin-bottom: 14px; color: #fff; }
.footer-col a, .footer-col li { color: var(--muted); font-size: 0.88rem; display: block; padding: 4px 0; }
.footer-col a:hover { color: var(--red-bright); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); transition: all 0.18s var(--ease); }
.footer-social a:hover { color: #fff; box-shadow: inset 0 0 0 1px var(--red); background: var(--red-soft); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted-2); font-size: 0.82rem; }
.footer-bottom .policies { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--red-bright); }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 500; display: grid; gap: 10px; width: min(360px, 92vw); }
.toast {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 40px -20px rgba(0,0,0,0.9);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex; gap: 12px; align-items: center;
  border-left: 3px solid var(--red);
  animation: toast-in 0.3s var(--ease);
  font-size: 0.9rem;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Utility ---------- */
.flow > * + * { margin-top: 1em; }
.flow-lg > * + * { margin-top: 1.6em; }
.divider { height: 1px; background: var(--line); border: 0; margin-block: clamp(36px, 6vw, 64px); }
.tag-line { display: inline-flex; align-items: center; gap: 8px; }
.muted-card { background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.gallery-grid .ph { aspect-ratio: 4/3; border-radius: var(--radius); background: linear-gradient(160deg, var(--surface-3), var(--surface)); box-shadow: inset 0 0 0 1px var(--line); position: relative; overflow: hidden; }
.gallery-grid .ph::after { content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted-2); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .pd-layout { grid-template-columns: 1fr; }
  .pd-gallery { position: static; }
}
@media (max-width: 860px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0; z-index: 350; background: var(--bg); padding: 20px var(--gutter); overflow-y: auto; transform: translateX(-100%); transition: transform 0.3s var(--ease); }
  .filters[data-open="true"] { transform: translateX(0); }
  .filter-toggle-mobile { display: inline-flex; }
  .hero__panel { display: none; }
}
@media (max-width: 600px) {
  :root { --header-h: 60px; }
  .footer-grid { grid-template-columns: 1fr; }
  .grid--products { grid-template-columns: repeat(2, 1fr); }
  .hero__stats { gap: 24px; }
  .section-head { align-items: flex-start; }
  .event-card { grid-template-columns: 64px 1fr; }
  .calendar { font-size: 0.7rem; }
  .cal-cell { min-height: 60px; padding: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Language switch button ---------- */
.lang-btn { width: auto; gap: 7px; padding-inline: 11px; }
.lang-label { font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 600px) { .nav-actions .lang-label { display: none; } }

/* ---------- Mobile: collapse inline two-column grids ---------- */
@media (max-width: 860px) {
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1.4fr 1fr"],
  [style*="grid-template-columns:1.5fr 1fr"],
  [style*="grid-template-columns:1.6fr 1fr"],
  [style*="grid-template-columns:1fr 1.4fr"],
  [style*="grid-template-columns:1.3fr 1fr"],
  [style*="grid-template-columns:1.1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .buylist-row { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 600px) {
  .buylist-row { grid-template-columns: 1fr !important; }
  .hero .hero-cta .btn { flex: 1 1 100%; }
  .shop-toolbar .select { flex: 1; }
}
/* Narrow phones: trim the header so it never overflows */
@media (max-width: 540px) {
  .nav { gap: 10px; }
  .brand .brand-text { display: none; }
  .brand img { height: 32px; }
  .nav-actions { gap: 0; }
  .icon-btn { width: 38px; height: 38px; }
  .lang-btn { padding-inline: 7px; }
}

/* =====================================================================
   RTL / ARABIC
   ===================================================================== */
[dir="rtl"] {
  --font-display: 'Cairo', 'Oswald', system-ui, sans-serif;
  --font-body: 'Cairo', 'Inter', system-ui, sans-serif;
}
/* Arabic script breaks if letters are spaced apart — neutralise tracking */
[dir="rtl"] body,
[dir="rtl"] .eyebrow, [dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4,
[dir="rtl"] .btn, [dir="rtl"] .nav-links a, [dir="rtl"] .badge, [dir="rtl"] .chip,
[dir="rtl"] .product-card__cat, [dir="rtl"] .form-label, [dir="rtl"] .tab,
[dir="rtl"] .link-arrow, [dir="rtl"] .stock-dot, [dir="rtl"] .event-date .m,
[dir="rtl"] .mobile-nav nav a, [dir="rtl"] .footer-col h5, [dir="rtl"] .crumbs,
[dir="rtl"] .topbar, [dir="rtl"] .lang-label, [dir="rtl"] .view-toggle button { letter-spacing: 0 !important; }

/* Keep Latin/Japanese brand marks readable */
[dir="rtl"] .brand-text b, [dir="rtl"] .price, [dir="rtl"] .jp { letter-spacing: 0.02em; }

/* Directional component flips */
[dir="rtl"] .link-arrow::after { content: "←"; }
[dir="rtl"] .cart-drawer { right: auto; left: 0; transform: translateX(-100%); border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .cart-drawer[data-open="true"] { transform: translateX(0); }
[dir="rtl"] .mobile-nav { transform: translateX(-100%); }
[dir="rtl"] .toast { border-left: 0; border-right: 3px solid var(--red); }
[dir="rtl"] .product-card__badges { left: auto; right: 10px; }
[dir="rtl"] .product-card__fav { right: auto; left: 10px; }
[dir="rtl"] .product-mock .pm-jp, [dir="rtl"] .cat-card .cat-jp { left: auto; right: 12px; }
[dir="rtl"] .select { background-position: left 14px center; padding-right: 14px; padding-left: 38px; }
[dir="rtl"] .search-inline input { padding: 11px 40px 11px 14px; }
[dir="rtl"] .search-inline svg { left: auto; right: 13px; }
[dir="rtl"] .site-footer::before { background: linear-gradient(270deg, var(--red-deep), var(--red), var(--red-deep)); }
[dir="rtl"] .hero__panel { clip-path: polygon(0 0, 78% 0, 100% 100%, 0 100%); left: 0; right: auto; }
[dir="rtl"] .hero__stripes { -webkit-mask-image: linear-gradient(255deg, transparent 38%, #000 95%); mask-image: linear-gradient(255deg, transparent 38%, #000 95%); }
@media (max-width: 860px) {
  [dir="rtl"] .filters { transform: translateX(100%); }
  [dir="rtl"] .filters[data-open="true"] { transform: translateX(0) !important; }
}

/* =====================================================================
   LEAGUE
   ===================================================================== */
.lg-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.02em;
  background: linear-gradient(150deg, var(--surface-3), var(--surface));
  box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text);
}
.lg-player-cell { display: flex; align-items: center; gap: 12px; }
.lg-player-cell b { font-weight: 600; }
.lg-eligible { color: var(--green); font-size: 0.8rem; }
.lg-pending { color: var(--muted-2); font-size: 0.74rem; }

/* Rank badges */
.lg-rank { font-family: var(--font-display); font-size: 1.1rem; width: 2ch; display: inline-block; text-align: center; color: var(--muted); }
.lg-rank--1 { color: #f5d142; } .lg-rank--2 { color: #cfd3da; } .lg-rank--3 { color: #d9914e; }

.lg-table { width: 100%; border-collapse: collapse; }
.lg-table th { text-align: start; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; color: var(--muted); padding: 12px 10px; border-bottom: 1px solid var(--line); }
.lg-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lg-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.lg-table .num { font-variant-numeric: tabular-nums; text-align: center; color: var(--muted); }
.lg-table .pts { font-family: var(--font-display); font-size: 1.15rem; color: #fff; text-align: center; }
.lg-table tr.is-top3 td { background: linear-gradient(90deg, var(--red-soft), transparent 60%); }

/* Podium */
.lg-podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; margin-bottom: 28px; }
.lg-podium .spot { background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); padding: 18px 14px; text-align: center; display: grid; gap: 8px; justify-items: center; position: relative; overflow: hidden; }
.lg-podium .spot .lg-avatar { width: 56px; height: 56px; font-size: 1.2rem; }
.lg-podium .spot .nm { font-weight: 600; font-size: 0.95rem; }
.lg-podium .spot .pt { font-family: var(--font-display); font-size: 1.5rem; color: #fff; }
.lg-podium .spot .medal { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.7rem; }
.lg-podium .spot--1 { box-shadow: inset 0 0 0 1px var(--red); transform: translateY(-10px); }
.lg-podium .spot--1::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(232,34,44,0.08) 0 3px, transparent 3px 22px); }
.lg-podium .spot--1 .medal { color: #f5d142; }
.lg-podium .spot--2 .medal { color: #cfd3da; }
.lg-podium .spot--3 .medal { color: #d9914e; }
.lg-podium .spot > * { position: relative; }

/* How-it-works point cards */
.lg-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lg-pt-card { background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); padding: 22px 18px; text-align: center; display: grid; gap: 8px; }
.lg-pt-card .big { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--red-bright); }
.lg-pt-card h4 { font-size: 1.05rem; }
.lg-pt-card.win { box-shadow: inset 0 0 0 1px var(--red); }
.lg-pt-card.win .big { color: #fff; }

/* Season selector */
.lg-season-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.lg-season-bar .pill { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.74rem; padding: 5px 12px; border-radius: 100px; background: var(--red-soft); color: var(--red-bright); }

/* Results list */
.lg-result { background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); padding: 16px; margin-bottom: 12px; }
.lg-result__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.lg-result__head h4 { font-size: 1rem; }
.lg-result__head .date { color: var(--muted); font-size: 0.82rem; }
.lg-result__row { display: flex; gap: 10px; align-items: baseline; font-size: 0.88rem; padding: 3px 0; flex-wrap: wrap; }
.lg-result__row .lbl { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.68rem; color: var(--muted); min-width: 90px; }
.lg-name-chip { background: var(--surface-2); border-radius: 100px; padding: 2px 10px; font-size: 0.8rem; }
.lg-name-chip.win { background: var(--red); color: #fff; }
.lg-name-chip.top { box-shadow: inset 0 0 0 1px var(--line-2); }

/* Admin roster rows */
.la-roster { display: grid; gap: 8px; }
.la-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; align-items: center; background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); padding: 10px 12px; }
.la-row.is-winner { box-shadow: inset 0 0 0 1px var(--red); }
.la-row .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.la-row .who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.la-role { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem; color: var(--muted); cursor: pointer; user-select: none; }
.la-role input { width: 16px; height: 16px; accent-color: var(--red); }
.la-pts-badge { font-family: var(--font-display); font-size: 0.78rem; padding: 3px 8px; border-radius: 4px; background: var(--surface-2); color: var(--muted); min-width: 30px; text-align: center; }
.la-pts-badge.w { background: var(--red); color: #fff; }
.la-pts-badge.t { background: rgba(245,185,66,.18); color: var(--amber); }
.la-autocomplete { position: relative; }
.la-suggest { position: absolute; top: 100%; inset-inline: 0; z-index: 20; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2), 0 16px 30px -16px #000; border-radius: var(--radius); margin-top: 4px; max-height: 240px; overflow-y: auto; }
.la-suggest button { display: block; width: 100%; text-align: start; padding: 10px 14px; font-size: 0.9rem; }
.la-suggest button:hover, .la-suggest button.active { background: var(--red-soft); color: var(--red-bright); }
.la-suggest .new { color: var(--green); font-size: 0.78rem; }

@media (max-width: 640px) {
  .lg-points, .lg-podium { grid-template-columns: 1fr; }
  .lg-podium .spot--1 { transform: none; order: -1; }
  .la-row { grid-template-columns: 1fr auto; row-gap: 8px; }
  .lg-table .hide-sm { display: none; }
  .lg-table th.hide-sm { display: none; }
}

/* =====================================================================
   ADMIN PANEL
   ===================================================================== */
.admin-shell { display: grid; grid-template-columns: 220px 1fr; gap: clamp(18px, 3vw, 32px); align-items: start; }
.admin-nav { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 3px; }
.admin-nav button {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.84rem;
  padding: 11px 14px; border-radius: var(--radius); color: var(--muted); text-align: start; transition: all 0.15s var(--ease);
}
.admin-nav button:hover { background: var(--surface); color: #fff; }
.admin-nav button[aria-current="true"] { background: var(--red); color: #fff; }
.admin-nav .count-pill { margin-inline-start: auto; background: rgba(255,255,255,0.12); border-radius: 100px; font-family: var(--font-body); font-size: 0.7rem; padding: 1px 7px; }
.admin-nav hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
.admin-main { min-width: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-bottom: 24px; }
.kpi { background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); padding: 16px; }
.kpi .v { font-family: var(--font-display); font-size: 2rem; color: #fff; line-height: 1; }
.kpi .v.warn { color: var(--amber); }
.kpi .l { color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.7rem; margin-top: 6px; }

.adm-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.adm-toolbar .spacer { margin-inline-start: auto; }
.adm-table { width: 100%; border-collapse: collapse; }
.adm-table th { text-align: start; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.07em; font-size: 0.7rem; color: var(--muted); padding: 10px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); }
.adm-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 0.88rem; }
.adm-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.adm-table .thumb { width: 40px; height: 52px; border-radius: 3px; background: #fff; object-fit: contain; padding: 3px; }
.adm-actions { display: flex; gap: 6px; justify-content: flex-end; }
.adm-link { color: var(--red-bright); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.74rem; }
.adm-link:hover { text-decoration: underline; }
.row-low td { box-shadow: inset 3px 0 0 var(--amber); }

.adm-form { display: grid; gap: 14px; }
.adm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.adm-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.adm-check-row { display: flex; flex-wrap: wrap; gap: 14px; }
.adm-check-row label { display: inline-flex; align-items: center; gap: 7px; font-size: 0.86rem; color: var(--muted); }
.adm-empty { padding: 40px; text-align: center; color: var(--muted); }
.adm-gate { max-width: 420px; margin: 48px auto; }
.adm-msg-card { background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); padding: 14px; margin-bottom: 10px; }

@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .admin-nav button { white-space: nowrap; }
  .admin-nav .count-pill, .admin-nav hr { display: none; }
  .adm-grid-3, .adm-grid-2 { grid-template-columns: 1fr; }
}

/* =====================================================================
   YGO NOVA feature page
   ===================================================================== */
.nova-tagline {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  color: var(--red-bright);
}
/* One-liner quote strip */
.nova-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.nova-quote {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 20px 18px 18px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}
.nova-quote::before {
  content: "“";
  position: absolute;
  top: -6px; inset-inline-start: 12px;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--red);
  line-height: 1;
}
[dir="rtl"] .nova-quote::before { content: "”"; }

/* Big differentiator cards */
.nova-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(14px, 2vw, 22px); }
.nova-feature {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: clamp(20px, 3vw, 28px);
  display: grid;
  gap: 12px;
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.nova-feature:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--red), 0 18px 40px -20px var(--red-glow); }
.nova-feature::after {
  content: attr(data-num);
  position: absolute;
  top: 8px; inset-inline-end: 14px;
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  pointer-events: none;
}
.nova-feature .nf-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-size: 1.6rem;
  background: var(--red-soft);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(232,34,44,0.3);
}
.nova-feature h3 { font-size: 1.15rem; }
.nova-feature p { color: var(--muted); font-size: 0.92rem; }

/* Checklists (deck builder + pillars) */
.nova-check { display: grid; gap: 10px; }
.nova-check li {
  position: relative;
  padding-inline-start: 28px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.nova-check li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  color: var(--red-bright);
  font-weight: 700;
}
.nova-check li b { color: var(--text); }
.nova-check--2col { grid-template-columns: 1fr 1fr; column-gap: 28px; }
@media (max-width: 700px) { .nova-check--2col { grid-template-columns: 1fr; } }

/* Pillar panels */
.nova-pillar .np-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.nova-pillar .np-head .nf-icon { width: 42px; height: 42px; font-size: 1.25rem; flex-shrink: 0; }
.nova-pillar h3 { font-size: 1.1rem; }
