/* thematchadealer — SERIES PATTERNS. Japan = seigaiha (wave scales), Simple = the simple shapes (heart, star,
   circle, flower). Each pattern does two jobs, so the two series read as one family:
     1. the FRAME of its build-your-own card (the band between the chrome edge and the card's panel)
     2. the BACKGROUND of its section page (/shop/japan, /shop/simple), much quieter
   Markup:  <a class="card fr-jp"><span class="fr"> …the card's usual children… </span></a>
   Every other card keeps the shared skin in chrome.css. */

/* 1 · the frame: pattern band + chrome hairline; the panel inside carries the card's usual tint */
.card.fr-jp, .card.fr-si{ padding:14px !important }
.card.fr-jp{ background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='40' height='20' viewBox='0 0 40 20'%3E%3Cdefs%3E%3Cg id='s'%3E%3Ccircle r='20' fill='%234a0c0c'/%3E%3Cg fill='none' stroke='%23E85555' stroke-opacity='.55' stroke-width='1.1'%3E%3Ccircle r='19'/%3E%3Ccircle r='14'/%3E%3Ccircle r='9'/%3E%3Ccircle r='4'/%3E%3C/g%3E%3C/g%3E%3C/defs%3E%3Cuse xlink:href='%23s' x='20' y='0'/%3E%3Cuse xlink:href='%23s' x='0' y='10'/%3E%3Cuse xlink:href='%23s' x='40' y='10'/%3E%3Cuse xlink:href='%23s' x='20' y='20'/%3E%3C/svg%3E") 0 0/40px 20px padding-box, linear-gradient(145deg,#f4f4f4 0%,#6f6f6f 28%,#dcdcdc 52%,#5d5d5d 78%,#bdbdbd 100%) border-box !important }
.card.fr-si{ background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' fill='%234a1d2e'/%3E%3Cg fill='%23F6B3CB' fill-opacity='.55'%3E%3Cpath d='M12 11.5c1.4-2.8 5.6-2.2 5.6 1 0 2.6-3.2 4.6-5.6 6.6-2.4-2-5.6-4-5.6-6.6 0-3.2 4.2-3.8 5.6-1z'/%3E%3Cpath d='M46 5l1.7 3.8 4.1.4-3.1 2.8.9 4.1L46 14l-3.6 2.1.9-4.1-3.1-2.8 4.1-.4z'/%3E%3Ccircle cx='30' cy='35' r='3.5'/%3E%3Cg transform='translate(53 46)'%3E%3Ccircle cx='0' cy='-3.2' r='2.4'/%3E%3Ccircle cx='3' cy='-1' r='2.4'/%3E%3Ccircle cx='1.9' cy='2.6' r='2.4'/%3E%3Ccircle cx='-1.9' cy='2.6' r='2.4'/%3E%3Ccircle cx='-3' cy='-1' r='2.4'/%3E%3C/g%3E%3Cpath fill-rule='evenodd' d='M12 46a4.4 4.4 0 1 1 0 8.8 4.4 4.4 0 0 1 0-8.8zm0 2.3a2.1 2.1 0 1 0 0 4.2 2.1 2.1 0 0 0 0-4.2z'/%3E%3C/g%3E%3C/svg%3E") 0 0/64px 64px padding-box, linear-gradient(145deg,#f4f4f4 0%,#6f6f6f 28%,#dcdcdc 52%,#5d5d5d 78%,#bdbdbd 100%) border-box !important }
.card.fr-jp > .fr, .card.fr-si > .fr{ display:flex; flex-direction:column; flex:1; min-width:0; padding:12px; border-radius:12px;
  background:linear-gradient(155deg, color-mix(in srgb, var(--tc) 50%, #0b0b0b) 0%, color-mix(in srgb, var(--tc) 22%, #0b0b0b) 50%, #0b0b0b 100%);
  box-shadow:0 0 0 1px rgba(255,255,255,.18), 0 6px 18px rgba(0,0,0,.5) }
@media (min-width:900px){ .card.fr-jp, .card.fr-si{ padding:16px !important } .card.fr-jp > .fr, .card.fr-si > .fr{ padding:14px } }

/* 2 · the section pages wear the same pattern, quietly */
body[data-section="japan"]{ background:#0b0404 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='56' height='28' viewBox='0 0 56 28'%3E%3Cdefs%3E%3Cg id='s'%3E%3Ccircle r='28' fill='%230b0404'/%3E%3Cg fill='none' stroke='%23C62828' stroke-opacity='.22' stroke-width='1.1'%3E%3Ccircle r='27'/%3E%3Ccircle r='19.6'/%3E%3Ccircle r='12.6'/%3E%3Ccircle r='5.6'/%3E%3C/g%3E%3C/g%3E%3C/defs%3E%3Cuse xlink:href='%23s' x='28' y='0'/%3E%3Cuse xlink:href='%23s' x='0' y='14'/%3E%3Cuse xlink:href='%23s' x='56' y='14'/%3E%3Cuse xlink:href='%23s' x='28' y='28'/%3E%3C/svg%3E") 0 0/56px 28px }
body[data-section="simple"]{ background:#0d0609 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' fill='%230d0609'/%3E%3Cg fill='%23ED84A8' fill-opacity='.14'%3E%3Cpath d='M12 11.5c1.4-2.8 5.6-2.2 5.6 1 0 2.6-3.2 4.6-5.6 6.6-2.4-2-5.6-4-5.6-6.6 0-3.2 4.2-3.8 5.6-1z'/%3E%3Cpath d='M46 5l1.7 3.8 4.1.4-3.1 2.8.9 4.1L46 14l-3.6 2.1.9-4.1-3.1-2.8 4.1-.4z'/%3E%3Ccircle cx='30' cy='35' r='3.5'/%3E%3Cg transform='translate(53 46)'%3E%3Ccircle cx='0' cy='-3.2' r='2.4'/%3E%3Ccircle cx='3' cy='-1' r='2.4'/%3E%3Ccircle cx='1.9' cy='2.6' r='2.4'/%3E%3Ccircle cx='-1.9' cy='2.6' r='2.4'/%3E%3Ccircle cx='-3' cy='-1' r='2.4'/%3E%3C/g%3E%3Cpath fill-rule='evenodd' d='M12 46a4.4 4.4 0 1 1 0 8.8 4.4 4.4 0 0 1 0-8.8zm0 2.3a2.1 2.1 0 1 0 0 4.2 2.1 2.1 0 0 0 0-4.2z'/%3E%3C/g%3E%3C/svg%3E") 0 0/80px 80px }
body[data-section="japan"] .nav, body[data-section="simple"] .nav{ background:#000 }

/* SIMPLE section page — one card, so it fills the width: a wide stage with every shape in one row */
body[data-section="simple"] .sgrid.one .card .vis{ aspect-ratio:21/9 }
body[data-section="simple"] .sgrid.one .card .vis .grid{ grid-template-columns:repeat(8,1fr); width:90cqw; gap:1.6cqw; margin-top:3cqw }
body[data-section="simple"] .sgrid.one .card .vis .grid img, body[data-section="simple"] .sgrid.one .card .vis .grid i{ border-radius:1.6cqw }
body[data-section="simple"] .sgrid.one .card .vis .grid i{ font-size:2.2cqw }
body[data-section="simple"] .sgrid.one .card .meta b{ font-size:clamp(26px,3.4vw,40px) }
@media (max-width:760px){
  body[data-section="simple"] .sgrid.one .card .vis{ aspect-ratio:4/3 }
  body[data-section="simple"] .sgrid.one .card .vis .grid{ grid-template-columns:repeat(4,1fr); width:84cqw; gap:2.4cqw }
  body[data-section="simple"] .sgrid.one .card .vis .grid i{ font-size:4.4cqw }
}

/* any lone card on a section page: a wide stage, its pieces side by side (Partners) */
@media (min-width:761px){
  .sgrid.one .card .vis{ aspect-ratio:21/9 }
  .sgrid.one .card .vis .stage{ flex-direction:row; gap:5cqw; padding:6cqw }
  .sgrid.one .card .vis .tin.plogo{ width:16cqw }
  .sgrid.one .card .vis .cs img{ width:11cqw }
}

/* ── 3D SERIES page: an isometric cube lattice in cool steel-blue — depth, like the sculpted charms ── */
body[data-section="3d"]{ background:#04060c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='69.282' viewBox='0 0 40 69.282'%3E%3Crect width='40' height='69.282' fill='%2304060c'/%3E%3Cg fill='%239fb6ff' fill-opacity='.035'%3E%3Cpath d='M20 0L40 11.547L20 23.094L0 11.547Z'/%3E%3Cpath d='M0 34.641L20 46.188L0 57.735L-20 46.188Z'/%3E%3Cpath d='M40 34.641L60 46.188L40 57.735L20 46.188Z'/%3E%3Cpath d='M20 69.282L40 80.829L20 92.376L0 80.829Z'/%3E%3C/g%3E%3Cg fill='none' stroke='%235c7cff' stroke-opacity='.22' stroke-width='.9' stroke-linejoin='round'%3E%3Cpath d='M20 0L40 11.547L20 23.094L0 11.547Z'/%3E%3Cpath d='M0 11.547V34.641 M20 23.094V46.188 M40 11.547V34.641 M0 34.641L20 46.188L40 34.641'/%3E%3Cpath d='M0 34.641L20 46.188L0 57.735L-20 46.188Z'/%3E%3Cpath d='M-20 46.188V69.282 M0 57.735V80.829 M20 46.188V69.282 M-20 69.282L0 80.829L20 69.282'/%3E%3Cpath d='M40 34.641L60 46.188L40 57.735L20 46.188Z'/%3E%3Cpath d='M20 46.188V69.282 M40 57.735V80.829 M60 46.188V69.282 M20 69.282L40 80.829L60 69.282'/%3E%3Cpath d='M20 69.282L40 80.829L20 92.376L0 80.829Z'/%3E%3Cpath d='M0 80.829V103.923 M20 92.376V115.47 M40 80.829V103.923 M0 103.923L20 115.47L40 103.923'/%3E%3C/g%3E%3C/svg%3E") 0 0/56px 96.99px }
body[data-section="3d"] .nav{ background:#000 }

/* ── GIFTS page: gift wrap — fine plum ribbon stripes, rose bands and a dot, under a soft rose light ── */
body[data-section="gift"]{ background:radial-gradient(80% 50% at 50% -6%, rgba(237,132,168,.18), transparent 60%), #09050d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Crect width='44' height='44' fill='%2309050d'/%3E%3Cg stroke='%238f5fd6' stroke-opacity='.24' stroke-width='1.2'%3E%3Cpath d='M-11 11L11 -11M0 44L44 0M33 55L55 33'/%3E%3C/g%3E%3Cg stroke='%23ED84A8' stroke-opacity='.14' stroke-width='3'%3E%3Cpath d='M-11 33L33 -11M11 55L55 11'/%3E%3C/g%3E%3Cg fill='%23f6cddc' fill-opacity='.18'%3E%3Ccircle cx='11' cy='11' r='1.3'/%3E%3Ccircle cx='33' cy='33' r='1.3'/%3E%3C/g%3E%3C/svg%3E") 0 0/44px 44px }
body[data-section="gift"] .nav{ background:#000 }

/* ── On /shop/japan and /shop/simple the pattern lives ONLY in the page background: the build-your-own card there
   drops its pattern frame and wears the same plain card skin as every other card (homepage cards keep the frame). ── */
body[data-section="japan"] .card.fr-jp, body[data-section="simple"] .card.fr-si{
  padding:12px !important;
  background:linear-gradient(155deg, color-mix(in srgb, var(--tc) 62%, #0b0b0b) 0%, color-mix(in srgb, var(--tc) 30%, #0b0b0b) 50%, color-mix(in srgb, var(--tc) 10%, #0b0b0b) 100%) padding-box,
             linear-gradient(145deg,#f4f4f4 0%,#6f6f6f 28%,#dcdcdc 52%,#5d5d5d 78%,#bdbdbd 100%) border-box !important }
@media (min-width:900px){ body[data-section="japan"] .card.fr-jp, body[data-section="simple"] .card.fr-si{ padding:16px !important } }
body[data-section="japan"] .card.fr-jp > .fr, body[data-section="simple"] .card.fr-si > .fr{ padding:0 !important; background:none !important; box-shadow:none !important; border-radius:0 }
