/* ============================================================
   GRAFFITI.CSS — Japanese graffiti theme for W33ZY
   Nov 22, 2026 — Decorator. Black / red / gray only, free only.
   Art assets live in the site root as graf-*.webp (copies of
   ~/workspace/graffiti/). All WebP, NO transparency:
   - wordmark + stickers sit on light backgrounds -> framed as
     stickers (white/paper bg is part of the look, red border).
   - skull piece + divider sit on dark backgrounds -> used as
     full-bleed bands that blend into the black site.
   Japanese text used here is limited to verified common kanji
   (see the data-kanji list in the report). Never add kanji you
   cannot verify — use romaji/English instead.
   ============================================================ */

/* ---- palette (mirrors styles.css :root) ---- */
:root{
  --graf-red:#e53238; --graf-red-deep:#a11f24; --graf-red-dark:#3d0d12;
  --graf-black:#0a0a0c; --graf-panel:#16161a; --graf-gray:#9aa0a8;
  --graf-gray-light:#c9ced6; --graf-line:#2c2c33;
}

/* ---- spray-paint backdrop: replaces the old cyan tech grid ----
   Red splatter dots + faint gray grid, fixed behind everything. */
body::before{
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(229,50,56,.12), transparent 60%),
    radial-gradient(700px 420px at -10% 30%, rgba(201,206,214,.05), transparent 60%),
    radial-gradient(3px 3px at 12% 22%, rgba(229,50,56,.5), transparent 60%),
    radial-gradient(4px 4px at 78% 64%, rgba(229,50,56,.35), transparent 60%),
    radial-gradient(2px 2px at 34% 78%, rgba(201,206,214,.4), transparent 60%),
    radial-gradient(5px 5px at 92% 12%, rgba(229,50,56,.3), transparent 60%),
    radial-gradient(2px 2px at 55% 45%, rgba(201,206,214,.3), transparent 60%),
    repeating-linear-gradient(0deg, rgba(200,200,205,.04) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(200,200,205,.04) 0 1px, transparent 1px 44px);
}

/* ---- hero floor: red spray instead of the old cyan grid ---- */
.hero::after{
  background:repeating-linear-gradient(90deg, rgba(229,50,56,.22) 0 2px, transparent 2px 46px),
             linear-gradient(180deg, rgba(229,50,56,.16), transparent);
}
.hero h1{text-shadow:0 0 26px rgba(229,50,56,.4)}
.sec-head h2{text-shadow:0 2px 18px rgba(229,50,56,.22)}

/* ---- topbar: red edge, like a spray line under the header ---- */
.topbar{border-bottom:2px solid var(--graf-red)}

/* ---- graffiti headline treatment ----
   Apply to a hero h1 for the spray-paint look: slight skew,
   layered red/gray shadows that read as spray overshoot. */
.graf-title{
  transform:skewX(-3deg);
  text-shadow:3px 3px 0 var(--graf-red), 6px 6px 0 rgba(201,206,214,.35),
    0 0 26px rgba(229,50,56,.45);
  letter-spacing:.01em;
}

/* ---- kanji stamp: vertical Japanese accent (writing-mode) ----
   Usage: <span class="kanji-stamp" lang="ja">日本</span> — only
   verified kanji, one or two characters, with an aria-label in
   romaji/English for screen readers. */
.kanji-stamp{
  display:inline-block;
  writing-mode:vertical-rl;
  font-weight:900;
  color:var(--graf-red);
  letter-spacing:.12em;
  line-height:1.1;
  text-shadow:2px 2px 0 rgba(0,0,0,.6), 0 0 16px rgba(229,50,56,.5);
  user-select:none;
}
.kanji-stamp.gray{color:var(--graf-gray-light)}
.hero .kanji-stamp{
  position:absolute; top:.9rem; right:1rem;
  font-size:clamp(1.6rem,5vw,2.6rem);
  opacity:.9; z-index:2;
}
.hero{position:relative}
@media (max-width:560px){ .hero .kanji-stamp{font-size:1.4rem; top:.6rem; right:.6rem} }

/* ---- section headers: red kanji chip before the heading ----
   Usage: <h2 data-kanji="力">SHOP</h2> — the kanji comes from the
   attribute, so the HTML stays the source of truth. */
.sec-head h2[data-kanji]::before,
.page-hero-card h2[data-kanji]::before,
h2[data-kanji]::before{
  content:attr(data-kanji);
  display:inline-block;
  font-size:.62em;
  font-weight:900;
  color:#fff;
  background:var(--graf-red);
  border-radius:6px;
  padding:.1em .35em;
  margin-right:.45em;
  vertical-align:.08em;
  transform:rotate(-3deg);
  box-shadow:2px 2px 0 rgba(0,0,0,.55), 0 0 12px rgba(229,50,56,.5);
}

/* ---- torii divider banner (the art asset) ----
   Dark torii + rising sun (日) on black — blends into the site.
   Usage: <div class="graf-divider" role="img" aria-label="Red torii
   gate under a rising sun"></div> between sections. */
.graf-divider{
  height:120px;
  margin:2.2rem 0 0;
  background:#0a0a0c url("/graf-divider.webp") center / cover no-repeat;
  border-top:2px solid var(--graf-red);
  border-bottom:2px solid var(--graf-red);
  border-radius:12px;
  box-shadow:0 14px 34px rgba(0,0,0,.5), 0 0 24px rgba(229,50,56,.18);
}
@media (max-width:560px){ .graf-divider{height:72px; margin-top:1.6rem} }

/* ---- skull feature band (the art asset) ----
   Full-width dark graffiti skull with torii silhouette behind it.
   Usage: <div class="graf-feature"><span>caption</span></div> */
.graf-feature{
  position:relative;
  min-height:280px;
  margin:2.2rem 0 0;
  background:#0d0d10 url("/graf-skull.webp") center / cover no-repeat;
  border:1px solid rgba(229,50,56,.5);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 18px 44px rgba(0,0,0,.55), 0 0 30px rgba(229,50,56,.2);
  display:flex; align-items:flex-end;
}
.graf-feature span{
  display:block; width:100%;
  padding:.7rem 1rem;
  font-weight:900; letter-spacing:.14em; font-size:.85rem;
  text-transform:uppercase; color:#f2f2f4;
  background:linear-gradient(180deg, transparent, rgba(4,4,6,.88));
  text-shadow:0 2px 8px rgba(0,0,0,.8);
}
.graf-feature span b{color:var(--graf-red)}
@media (max-width:560px){ .graf-feature{min-height:190px} }

/* ---- stickers (light paper squares, NOT transparent) ----
   Framed as stickers: red border, slight tilt, hard shadow.
   Never use as a transparent overlay — the paper bg is the look. */
.graf-sticker{
  width:110px; height:110px; flex:none;
  object-fit:cover;
  border:3px solid var(--graf-red);
  border-radius:14px;
  box-shadow:4px 4px 0 rgba(0,0,0,.6), 0 0 18px rgba(229,50,56,.35);
  transform:rotate(-3deg);
}
.graf-sticker.tilt-r{transform:rotate(3deg)}
.graf-sticker.sm{width:72px; height:72px}
@media (max-width:560px){ .graf-sticker{width:84px; height:84px} }

/* ---- wordmark sticker (white background is part of the art) ----
   Big W33ZY bubble letters with red rising sun. Frame it like a
   sticker on the black page — do not try to blend the white away. */
.graf-wordmark{
  display:block;
  max-width:520px; width:100%; height:auto;
  border:3px solid var(--graf-red);
  border-radius:16px;
  box-shadow:5px 5px 0 rgba(0,0,0,.6), 0 0 26px rgba(229,50,56,.35);
  transform:rotate(-1.5deg);
  background:#fff;
}
.graf-wordmark-wrap{display:flex; justify-content:center; margin:1.4rem 0 .4rem}

/* ---- Winter graffiti portrait (portrait 3:4, dark-friendly) ---- */
.graf-winter{
  display:block;
  width:min(300px, 78vw); height:auto;
  border:3px solid var(--graf-red);
  border-radius:16px;
  box-shadow:5px 5px 0 rgba(0,0,0,.6), 0 0 26px rgba(229,50,56,.3);
  transform:rotate(1.5deg);
}
.graf-winter-cap{
  font-size:.82rem; font-weight:800; letter-spacing:.08em;
  color:var(--graf-gray-light); text-align:center; margin-top:.6rem;
}
.graf-winter-cap b{color:var(--graf-red)}

/* ---- hero sticker row: stickers sitting in a hero ---- */
.graf-hero-stickers{display:flex; gap:.9rem; align-items:center; flex-wrap:wrap; margin-top:1.2rem}

/* ---- footer: red torii-style double rule above the footer ---- */
footer.site{border-top:3px solid var(--graf-red)}
footer.site::before{
  content:"";
  display:block;
  height:8px;
  margin:-1.6rem -1rem 1.4rem;
  background:
    linear-gradient(90deg, transparent, var(--graf-red) 18%, var(--graf-red) 82%, transparent);
  box-shadow:0 10px 0 -5px var(--graf-red);
  opacity:.85;
}

/* ---- press animation stays, now with a red flash ring ---- */
button:active,.btn:active,.gbtn:active,.fbtn:active,.add-btn:active,.checkout-btn:active,
.cart-btn:active,.tower-btn:active,.mm-cell:active,nav.main a:active,.page-card:active,
.asst-chips button:active,.asst-form button:active,.qty button:active,.ep-play:active,
.asst-fab:active,.asst-close:active,.top-play:active,.vd-thumb:active{
  box-shadow:0 0 0 2px rgba(229,50,56,.6), 0 0 18px rgba(229,50,56,.5);
}

@media (prefers-reduced-motion: reduce){
  .graf-sticker,.graf-wordmark,.graf-winter{transform:none}
}
