
/* Layout: a bright card-game page. Every section opens with a poster headline on its own background (sunburst, holo foil, a type colour with honeycomb, soft-focus tile art) and keeps its details in panels built like trading cards: name bar, big number, attack rows, stat boxes. The hero stays a real photographed wall. */
:root {
  color-scheme: light;
  --bg: #FFF7DF; --ink0: #1B2559; --muted0: #4A527A; --card: #FFFFFF; --panel: #FFFDF2; --line: rgba(27,37,89,.16); --edge: #1B2559;
  --ink: var(--ink0); --muted: var(--muted0);
  --navy: #1B2559; --red: #E8402A; --red-d: #A92A17; --sun: #FFCB1F; --sun-d: #C98F00; --accent: #E8402A;
  --fire: #F2622E; --water: #2F9BEA; --grass: #3FAE55; --elec: #F5B700; --psy: #9A55CF; --dark: #45506B; --dragon: #C8901A;
  --ray: rgba(255,190,30,.2); --h2s: var(--sun); --pill: #1B2559; --pill-ink: #FFCB1F; --softveil: linear-gradient(100deg, rgba(255,251,238,.84) 0 42%, rgba(255,251,238,.5)); --room: #D9D6CE;
  --shadow: 0 16px 34px rgba(27,37,89,.2);
  --display: 'Lilita One', 'Baloo 2', 'Arial Rounded MT Bold', system-ui, sans-serif; --body: 'Nunito', 'Segoe UI', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --bar: 64px;
  /* hexagon shape with rounded corners (5% of the width), matching the printed tiles */
  --hexm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 866.03' preserveAspectRatio='none'%3E%3Cpath d='M235.6 25.0 A50 50 0 0 1 278.9 0.0 L721.1 0.0 A50 50 0 0 1 764.4 25.0 L985.6 408.0 A50 50 0 0 1 985.6 458.0 L764.4 841.0 A50 50 0 0 1 721.1 866.0 L278.9 866.0 A50 50 0 0 1 235.6 841.0 L14.4 458.0 A50 50 0 0 1 14.4 408.0Z'/%3E%3C/svg%3E");
}
:root[data-light="night"] {
  color-scheme: dark;
  --bg: #0E1330; --ink0: #F3F4FF; --muted0: #B9BEDD; --card: #1C2458; --panel: #171E4C; --line: rgba(255,255,255,.18); --edge: #050719;
  --accent: #FF8A76; --ray: rgba(255,255,255,.035); --h2s: rgba(0,0,0,.55); --pill: #FFCB1F; --pill-ink: #1B2559; --softveil: linear-gradient(100deg, rgba(14,19,48,.9) 0 42%, rgba(14,19,48,.72)); --room: #23242A;
  --shadow: 0 16px 34px rgba(0,0,0,.55);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-weight: 600; font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .005em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.7rem); line-height: 1; }
h2 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); line-height: .98; text-shadow: .045em .045em 0 var(--h2s); }
h3 { font-size: 1.3rem; line-height: 1.1; }
h1 em, h2 em { font-style: normal; display: inline-block; background: var(--red); color: #fff; padding: .02em .2em .07em; border-radius: .2em; transform: rotate(-2.5deg); box-shadow: 0 .09em 0 var(--red-d); text-shadow: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--water); outline-offset: 3px; }
.mono { font-family: var(--mono); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.muted { color: var(--muted); }
.lede { font-size: 1.12rem; font-weight: 700; line-height: 1.5; color: var(--muted); max-width: 32em; }
.hex { -webkit-mask: var(--hexm) center / 100% 100% no-repeat; mask: var(--hexm) center / 100% 100% no-repeat; }
.eyebrow { display: inline-block; font: 900 .74rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; background: var(--pill); color: var(--pill-ink); padding: 8px 12px; border-radius: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 14px; }

/* buttons you can press */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 24px; border: 0; border-radius: 16px; background: var(--red); color: #fff; font: 900 1.02rem/1 var(--body); text-decoration: none; white-space: nowrap; box-shadow: 0 6px 0 var(--red-d), 0 12px 18px rgba(169,42,23,.2); transition: transform .08s, box-shadow .08s; }
.btn:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--red-d), 0 8px 12px rgba(169,42,23,.18); }
.btn:active { transform: translateY(6px); box-shadow: 0 0 0 var(--red-d); }
.btn.ghost { background: var(--card); color: var(--ink0); box-shadow: inset 0 0 0 3px var(--edge), 0 6px 0 var(--edge); }
.btn.ghost:hover { box-shadow: inset 0 0 0 3px var(--edge), 0 4px 0 var(--edge); }
.btn.ghost:active { box-shadow: inset 0 0 0 3px var(--edge), 0 0 0 var(--edge); }
.btn.sun { background: var(--sun); color: #1B2559; box-shadow: 0 6px 0 var(--sun-d), 0 12px 18px rgba(10,16,50,.2); }
.btn.sun:hover { box-shadow: 0 4px 0 var(--sun-d); } .btn.sun:active { box-shadow: 0 0 0 var(--sun-d); }
.btn.sm { min-height: 44px; padding: 0 15px; font-size: .92rem; border-radius: 13px; box-shadow: 0 4px 0 var(--red-d); }
.btn.sm:hover { transform: translateY(1px); box-shadow: 0 3px 0 var(--red-d); } .btn.sm:active { transform: translateY(4px); box-shadow: none; }
.btn.ghost.sm { box-shadow: inset 0 0 0 3px var(--edge), 0 4px 0 var(--edge); }
.btn.ghost.sm:hover { box-shadow: inset 0 0 0 3px var(--edge), 0 3px 0 var(--edge); } .btn.ghost.sm:active { box-shadow: inset 0 0 0 3px var(--edge); }
.btn[disabled] { opacity: .5; cursor: default; transform: none; }
.free { display: inline-block; padding: 6px 11px; border-radius: 99px; background: var(--sun); color: #1B2559; font: 900 .74rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; }

/* energy dots and type colours */
.en { display: inline-block; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.9) 0 13%, transparent 14%), var(--c, var(--dark)); box-shadow: inset 0 -2px 0 rgba(0,0,0,.22), 0 0 0 2px #fff; flex: none; }
.t-fire { --c: var(--fire); --f1: #FFA86B; --f2: #F2622E; }
.t-water { --c: var(--water); --f1: #8CCBF8; --f2: #2F9BEA; }
.t-grass { --c: var(--grass); --f1: #93DB9F; --f2: #3FAE55; }
.t-lightning { --c: var(--elec); --f1: #FFE677; --f2: #F5B700; }
.t-psychic { --c: var(--psy); --f1: #D2ABF5; --f2: #A566D8; }
.t-darkness { --c: var(--dark); --f1: #A3ADC8; --f2: #66728F; }
.t-dragon { --c: var(--dragon); --f1: #EDCB6E; --f2: #C8901A; }

/* section frame and the four kinds of background */
.sec { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(64px, 8vw, 112px); border-top: 3px solid var(--edge); }
.sec-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 32px; margin-bottom: clamp(30px, 4vw, 52px); }
.sec-t { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-width: 0; }
.bg-rays { background: repeating-conic-gradient(from 3deg at var(--ro, 50% -8%), var(--ray) 0 5deg, transparent 5deg 10deg), var(--bg); }
.bg-foil { background: linear-gradient(112deg, #FFC9E4, #FFEBAE 24%, #C6F7E0 48%, #C3E5FF 72%, #E0CFFF); }
.bg-foil::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(112deg, rgba(255,255,255,.5) 0 3px, transparent 3px 16px); }
.bg-honey { --t1: #2F9BEA; --t2: #2379CF; isolation: isolate; background: linear-gradient(160deg, var(--t1), var(--t2)); }
.bg-honey::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .2; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='34.64' viewBox='0 0 60 34.64'%3E%3Cpath d='M0 17.32L10 0H30L40 17.32L30 34.64H10ZM40 17.32H60' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E"); }
.bg-honey.grass { --t1: #49B95F; --t2: #2E9547; } .bg-honey.fire { --t1: #F26B34; --t2: #D53D26; } .bg-honey.navy { --t1: #26337A; --t2: #151C4B; }
.bg-soft::before { content: ""; position: absolute; inset: -44px; z-index: -2; background: var(--img) center / cover; filter: blur(30px) saturate(1.25); }
.bg-soft::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--softveil); }
:root[data-light="night"] .bg-foil { background: linear-gradient(112deg, #3B1F4E, #3F3615 24%, #14402F 48%, #15335A 72%, #2C2160); }
:root[data-light="night"] .bg-foil::before { background: repeating-linear-gradient(112deg, rgba(255,255,255,.05) 0 3px, transparent 3px 16px); }
:root[data-light="night"] .bg-honey { --t1: #1B5F96; --t2: #123F73; }
:root[data-light="night"] .bg-honey.grass { --t1: #23703A; --t2: #164D27; } :root[data-light="night"] .bg-honey.fire { --t1: #A63A1C; --t2: #7E2413; } :root[data-light="night"] .bg-honey.navy { --t1: #141B46; --t2: #0A0E2A; }
.on-color { --ink: #fff; --muted: rgba(255,255,255,.9); color: #fff; }
.on-color h2 { text-shadow: .045em .045em 0 rgba(10,16,50,.42); }
.on-color h2 em { background: var(--sun); color: #1B2559; box-shadow: 0 .09em 0 rgba(10,16,50,.5); }
.on-color .eyebrow { background: #fff; color: #1B2559; }
.burst-w { display: inline-block; filter: drop-shadow(0 6px 0 rgba(10,16,50,.85)); flex: none; }
.burst { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; width: clamp(104px, 12vw, 150px); aspect-ratio: 1; background: var(--sun); color: #1B2559; font: 400 clamp(1.25rem, 2.1vw, 1.8rem)/.95 var(--display); transform: rotate(-11deg); }
.burst small { font: 900 .44em/1.3 var(--body); letter-spacing: .08em; }

/* card-style panel */
.tcg { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 12px; border-radius: 22px; background: linear-gradient(160deg, var(--f1, #FFE677), var(--f2, #F5B700)); box-shadow: 0 0 0 3px var(--edge), 0 9px 0 var(--edge); color: #1B2559; --ink: var(--ink0); --muted: var(--muted0); }
.tcg-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 4px 0; }
.tcg-top .l { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 9px; min-width: 0; }
.tag { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; font: 900 .62rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; background: #1B2559; color: #fff; padding: 7px 9px 5px; border-radius: 99px; white-space: nowrap; }   /* capitals sit high in Nunito: a little more room on top centres them */
.nmx { font: 400 1.5rem/1 var(--display); }
.hp { display: flex; align-items: baseline; gap: 6px; font: 400 1.8rem/1 var(--display); white-space: nowrap; }
.hp small { font: 900 .6rem/1 var(--body); letter-spacing: .09em; opacity: .85; }
.hp .en { align-self: center; width: 24px; height: 24px; }
.tcg-art { position: relative; border-radius: 10px; background: linear-gradient(112deg, #FFC9E4, #FFEBAE 24%, #C6F7E0 48%, #C3E5FF 72%, #E0CFFF); box-shadow: inset 0 0 0 4px #C8CCD8, inset 0 0 0 6px #fff; }
.tcg-strip { font: italic 700 .76rem/1.2 var(--body); text-align: center; color: #1B2559; background: linear-gradient(90deg, #C9CDD8, #F3F4F8 50%, #C9CDD8); padding: 5px 10px; border-radius: 4px; margin: -4px 14px 0; }
.tcg-body { background: var(--panel); color: var(--ink); border-radius: 12px; padding: 4px 14px; display: flex; flex-direction: column; }
.atk { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 2px solid var(--line); text-align: left; }
.atk:last-child { border-bottom: 0; }
.cost { display: flex; flex-wrap: wrap; gap: 3px; }
.cost .en { width: 17px; height: 17px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.22); }
.atk b { display: block; font: 400 1.2rem/1.05 var(--display); }
.atk small { display: block; font: 700 .9rem/1.3 var(--body); color: var(--muted); }
.dmg { font: 400 1.7rem/1 var(--display); white-space: nowrap; }
.tcg-foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tcg-foot div { background: rgba(255,255,255,.62); color: #1B2559; border-radius: 8px; padding: 7px 9px; font: 800 .86rem/1.2 var(--body); }
.tcg-foot small { display: block; font: 900 .56rem/1.5 var(--body); letter-spacing: .09em; text-transform: uppercase; opacity: .78; }
.flav { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: italic 700 .8rem/1.3 var(--body); padding: 0 4px 2px; }
.flav code { font: 500 .68rem/1 var(--mono); white-space: nowrap; }

/* top bar */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; height: var(--bar); background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 3px solid var(--edge); }
.bar .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; text-decoration: none; font-size: 1.6rem; }
/* the ExtendACard logo: Nunito Black, the A on a tilted double-line card with corner arrows to a dashed bigger card */
.lgo { display: inline-flex; align-items: center; white-space: nowrap; font: 900 1em/1 'Nunito', var(--body); letter-spacing: -.015em; color: currentColor; }
.lg-a { display: inline-grid; place-items: center; width: .74em; height: 1.02em; position: relative; flex: none; margin: 0 .58em; transform: rotate(-8deg); }
.lg-a i { font-style: normal; color: #1B2559; position: relative; z-index: 1; font-size: .64em; line-height: 1; margin-top: .02em; }
.lg-a svg { position: absolute; left: -.45em; top: -.45em; width: 1.64em; height: 1.92em; overflow: visible; }
.lg-o { fill: #FFCB1F; stroke: currentColor; stroke-width: 5.5; stroke-linejoin: round; }
.lg-o2 { fill: none; stroke: #1B2559; stroke-width: 2.5; }
.lg-r { fill: none; stroke: var(--accent); stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; }
.lg-b { fill: none; stroke: var(--accent); stroke-width: 4; stroke-dasharray: 9 8; }
@media (max-width: 640px) { .brand { font-size: 1.12rem; } .brand .lg-a { margin: 0 .5em; } }
@media (max-width: 370px) { .brand { font-size: .98rem; } }
@media (max-width: 359px) { .brand { font-size: .9rem; } }
.nav { display: flex; gap: 26px; font-weight: 800; font-size: .98rem; }
.nav a { text-decoration: none; padding: 10px 0; }
.nav a:hover { color: var(--accent); }
.tools { display: flex; align-items: center; gap: 10px; }
.icon { position: relative; width: 46px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 13px; background: var(--card); color: var(--ink0); box-shadow: inset 0 0 0 3px var(--edge), 0 4px 0 var(--edge); }
.icon b { position: absolute; top: -8px; right: -8px; min-width: 23px; height: 23px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font: 900 .74rem/1 var(--body); display: grid; place-items: center; box-shadow: 0 0 0 2px var(--card); }
.lightsw { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 12px; border: 0; border-radius: 13px; background: var(--card); color: var(--ink0); font-weight: 800; font-size: .9rem; box-shadow: inset 0 0 0 3px var(--edge), 0 4px 0 var(--edge); }

/* hero: the photographed wall with the 3D tiles on it */
.hero-sec { position: relative; height: calc(100vh - var(--bar)); height: calc(100svh - var(--bar)); min-height: 540px; max-height: 900px; overflow: hidden; }
.stage { position: absolute; inset: 0; background: #E2DFD8 url(../img/wall_day.jpg) center / cover no-repeat; }   /* plain wall while the 3D wall loads */
:root[data-light="night"] .stage { background: #17181C; }
.gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .9s; }
.gl-on > .gl { opacity: 1; }
.hero { position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none; }
.hero-in { width: min(100%, 36rem); display: flex; flex-direction: column; align-items: flex-start; gap: 22px; pointer-events: auto; }
.hero .lede { color: var(--ink); opacity: .86; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { display: flex; align-items: center; gap: 8px; padding: 6px 13px 6px 7px; border-radius: 99px; background: var(--card); color: var(--ink0); font: 800 .86rem/1 var(--body); box-shadow: 0 3px 0 rgba(27,37,89,.25); }
/* home hero: three selling points stacked one per line, plain text with a coloured dot */
.hero-facts { flex-direction: column; align-items: flex-start; gap: 9px; }
.hero-facts li { background: none; box-shadow: none; padding: 0; color: inherit; font: 800 1rem/1.25 var(--body); }

/* strip: a ribbon of tiles glides through a line of light, pencil sketch on one side, finished colour on the other */
.strip { position: relative; overflow: hidden; padding: clamp(20px, 2.6vw, 36px) 0; border-top: 3px solid var(--edge); --tw: clamp(104px, 12.5vw, 184px); --lx: 44%; }
.strip-in { position: relative; height: calc(var(--tw) * 1.3165); }
.strip-layer { position: absolute; inset: 0; }
.strip-sk { clip-path: inset(-70px calc(100% - var(--lx) - 2px) -70px 0); }
.strip-co { clip-path: inset(-70px 0 -70px var(--lx)); }
.strip-track { position: absolute; left: 0; top: 0; height: 100%; will-change: transform; }
.st { position: absolute; left: calc(var(--i) * var(--tw) * .8); top: calc(var(--o) * var(--tw) * .458); width: var(--tw); aspect-ratio: 1 / .866; display: block; filter: drop-shadow(0 8px 9px rgba(4,7,26,.5)); }
.st i { position: absolute; inset: 0; background: center / cover; -webkit-mask: var(--hexm) center / 100% 100% no-repeat; mask: var(--hexm) center / 100% 100% no-repeat; }
:root[data-light="night"] .strip-sk .st i { filter: brightness(.86); }
.strip-line { position: absolute; left: var(--lx); top: -16px; bottom: -16px; width: 4px; margin-left: -2px; border-radius: 4px; background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.5), 0 0 8px 1px rgba(255,255,255,.7), 0 0 20px 4px rgba(255,214,90,.32); pointer-events: none; }   /* glow halved on the owner's request, 16 Nov 2026 */

/* story: three blocks in normal page flow. Each animates from its --k (0 to 1) as it scrolls past; the page is never held. */
.beat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(30px, 5vw, 64px); --k: 1; }
.beat.flip .b-vis { order: 2; }
.b-vis { position: relative; min-width: 0; display: grid; place-items: center; }
.b-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 30rem; }
.b-txt h3 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1; }
.kicker { display: block; font: 800 .9rem/1.3 var(--body); color: inherit; opacity: .72; }
.tagrow .tag, .hold .tag { background: none; color: inherit; padding: 0; border-radius: 0; box-shadow: none; font: 800 .9rem/1.3 var(--body); letter-spacing: 0; text-transform: none; opacity: .75; }
.tagrow .tag::after { content: " |"; }
.price .free { background: none; padding: 0; box-shadow: none; text-transform: none; letter-spacing: 0; font: 800 .95rem/1.3 var(--body); opacity: .8; }
.solo { position: relative; width: min(44%, 250px); aspect-ratio: 63 / 88; margin-block: 6%; transform-style: preserve-3d; transform: perspective(900px) rotateY(calc(-32deg + 44deg * var(--k))) rotateX(calc(10deg - 10deg * var(--k))) translateY(calc(34px - 34px * var(--k))); }
.solo::before { content: ""; position: absolute; inset: -5.5%; border-radius: 7%; background: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.85); box-shadow: 0 34px 54px rgba(20,18,14,.32), 0 4px 10px rgba(20,18,14,.18); }
.solo::after { content: ""; position: absolute; inset: -5.5%; border-radius: 7%; background: linear-gradient(112deg, transparent 38%, rgba(255,255,255,.5) 50%, transparent 62%) no-repeat; background-size: 260% 100%; background-position: calc(130% - 160% * var(--k)) 0; pointer-events: none; z-index: 2; }
.solo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 4.5% / 3.2%; }
.grow { position: relative; width: min(100%, 520px); aspect-ratio: 1 / .866; transform-style: preserve-3d; transform: perspective(1000px) rotateY(calc(-18deg + 18deg * var(--k))); --r: clamp(0, calc((var(--k) - .2) * 1.42), 1); }
.g-hex { position: absolute; inset: 0; background: #FDFCF8; }
.g-clip { background: transparent; }
.g-art { position: absolute; inset: 0; background: center / cover; -webkit-mask-image: radial-gradient(closest-side at 50% 50%, #000 calc(var(--r) * 142% - 28%), transparent calc(var(--r) * 142%)); mask-image: radial-gradient(closest-side at 50% 50%, #000 calc(var(--r) * 142% - 28%), transparent calc(var(--r) * 142%)); }
.g-glow { position: absolute; inset: 0; background: radial-gradient(closest-side at 50% 50%, transparent calc(var(--r) * 142% - 34%), rgba(255,255,255,.5) calc(var(--r) * 142% - 12%), transparent calc(var(--r) * 142% + 2%)); opacity: clamp(0, calc((1 - var(--r)) * 5), 1); pointer-events: none; }
.beat.wide { grid-template-columns: minmax(0, 1fr); gap: 30px; }
.beat.wide .b-txt { max-width: none; flex-direction: row; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px; }
.b-col { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 34rem; }
.photo { border: 6px solid #fff; border-radius: 18px; box-shadow: 0 0 0 3px var(--edge), 0 9px 0 var(--edge); overflow: hidden; }
.roomshot { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #d9d5cc url(../img/room_sofa.jpg) 0 0 / 130% auto no-repeat; }
.rt { position: absolute; width: 9.75%; aspect-ratio: 1 / .866; transform: scale(clamp(0, calc((var(--k) - var(--d)) * 8), 1)); }
.rt::before { content: ""; position: absolute; inset: 10% -8% -16% 12%; background: radial-gradient(closest-side, rgba(20,18,14,.5), transparent); filter: blur(3px); }
.rt i { position: absolute; inset: 0; background: center / cover; -webkit-mask: var(--hexm) center / 100% 100% no-repeat; mask: var(--hexm) center / 100% 100% no-repeat; }
.count { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: 12px; background: #fff; color: #1B2559; box-shadow: 0 0 0 3px #1B2559, 0 4px 0 #1B2559; font: 900 .74rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.count b { font: 400 1.7rem/1 var(--display); letter-spacing: 0; font-variant-numeric: tabular-nums; }

/* gallery: every tile comes as a card */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 10px; border: 0; border-radius: 99px; background: var(--card); color: var(--ink0); font: 800 .94rem/1 var(--body); box-shadow: 0 3px 0 rgba(27,37,89,.28); }
.chip.all { padding-left: 16px; }
.chip[aria-pressed="true"] { background: var(--pill); color: var(--pill-ink); box-shadow: 0 3px 0 rgba(5,7,25,.6); }
.gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.2vw, 44px) clamp(18px, 2.4vw, 32px); }
.work { transition: transform .16s; }
.work:hover { transform: translateY(-5px) rotate(-.5deg); }
.work.t-psychic, .work.t-darkness { color: #fff; }
.work.t-psychic .tcg-top, .work.t-darkness .tcg-top { text-shadow: 0 2px 0 rgba(10,16,50,.35); }
.work .tcg-top { align-items: flex-end; }
.work .tcg-top .l { flex-direction: column; align-items: flex-start; gap: 6px; max-width: 100%; }
.work .tcg-top { min-width: 0; }
.work .nmx { font-size: 1.35rem; }
.work .hp { font-size: 1.45rem; }
.pers { perspective: 900px; }
.work .tcg-art { padding: 9% 10% 10%; }
.tile3d { position: relative; display: block; aspect-ratio: 1 / .866; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .3s ease-out; }
.t-art, .t-edge { position: absolute; inset: 0; -webkit-mask: var(--hexm) center / 100% 100% no-repeat; mask: var(--hexm) center / 100% 100% no-repeat; background: #cfccc4 center / cover; }
.t-edge { background: #f1f0eb; transform: translateZ(-6px); }
.t-sh { position: absolute; inset: 9% 3% -9% 7%; background: radial-gradient(closest-side, rgba(20,18,14,.42), transparent); transform: translateZ(-26px); filter: blur(7px); }
.t-card { position: absolute; left: 31.47%; top: 20.11%; width: 37.06%; height: 59.78%;   /* 63 x 88 mm card on the 170 mm Small tile */ border-radius: 4.5% / 3.2%; transform: translateZ(16px); box-shadow: 0 0 0 3px rgba(255,255,255,.5), 0 7px 14px rgba(0,0,0,.36); object-fit: cover; }
.work .acts { display: flex; gap: 8px; padding: 2px 2px 6px; }
.work .acts .btn { flex: 1; }
.work.req { --f1: #FFFFFF; --f2: #DDE2F2; }
.work.req .tcg-art { display: grid; place-items: center; background: #EEF1FA; }
.ghost-hex { width: 100%; aspect-ratio: 1 / .866; display: grid; place-items: center; background: #1B2559; -webkit-mask: var(--hexm) center / 100% 100% no-repeat; mask: var(--hexm) center / 100% 100% no-repeat; }
.ghost-hex span { width: calc(100% - 8px); height: calc(100% - 8px); display: grid; place-items: center; background: #fff; -webkit-mask: var(--hexm) center / 100% 100% no-repeat; mask: var(--hexm) center / 100% 100% no-repeat; font: 400 4rem/1 var(--display); color: #1B2559; }
.note { padding: 10px 12px; border: 2px dashed var(--line); border-radius: 10px; color: var(--muted); }
.work .note { background: rgba(255,255,255,.7); color: #1B2559; border-color: rgba(27,37,89,.4); }

/* price table in the pricing card */
#ladder { padding: 6px 16px 10px; }
.pl-row { display: grid; grid-template-columns: minmax(0, 1fr) 4.6em 4.6em; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 2px dashed color-mix(in srgb, var(--edge) 16%, transparent); }
.pl-row:last-child { border-bottom: 0; }
.pl-head { padding: 4px 0 8px; font: 800 .74rem/1.2 var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted0); }
.pl-head .pl-z { text-align: right; }
.pl-lab { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: baseline; }
.pl-lab b { font: 400 1.15rem/1.1 var(--display); }
.pl-lab small { font: 700 .8rem/1.2 var(--body); color: var(--muted0); }
.pl-bar { grid-column: 1 / -1; position: relative; height: 12px; margin-top: 6px; border-radius: 6px; background: color-mix(in srgb, var(--edge) 10%, transparent); overflow: hidden; }
.pl-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: linear-gradient(90deg, var(--grass, #3FAE55), #7BD389); }
.pl-bar em { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 800 .66rem/1 var(--body); font-style: normal; color: var(--ink0); }
.pl-p { text-align: right; font: 400 1.3rem/1 var(--display); font-variant-numeric: tabular-nums; }
.pl-s { opacity: .78; font-size: 1.12rem; }
.pl-best { background: color-mix(in srgb, var(--sun) 30%, transparent); margin: 0 -10px; padding-inline: 10px; border-radius: 10px; }
.pl-lab b { white-space: nowrap; }
@media (max-width: 600px) { #ladder { padding-inline: 12px; } .pl-row { grid-template-columns: minmax(0, 1fr) 3.7em 3.7em; gap: 8px; } .pl-lab small { display: none; } .pl-p { font-size: 1.15rem; } .pl-s { font-size: 1rem; } }
/* three ways to hang your card */
.holds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin-top: 8px; }
.hold { margin: 0; background: var(--card); color: var(--ink0); border-radius: 18px; overflow: hidden; border: 3px solid var(--edge); box-shadow: 0 6px 0 var(--edge); display: flex; flex-direction: column; }
.hold img { display: block; width: 100%; height: auto; aspect-ratio: 900 / 789; object-fit: cover; border-bottom: 3px solid var(--edge); }
.hold figcaption { display: grid; gap: 6px; padding: 16px 18px 20px; justify-items: start; }
.hold figcaption b { font: 400 1.5rem/1.1 var(--display); }
.hold figcaption .muted { color: var(--muted0); }
.hold-note { margin-top: 18px; text-align: center; }
@media (max-width: 860px) { .holds { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
/* finishes */
.two { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.viewer { position: relative; aspect-ratio: 1 / .86; background: var(--room); cursor: grab; touch-action: pan-y; }
.viewer.grab, .bstage.grab { cursor: grabbing; }
.viewer .fallback { position: absolute; inset: 14%; }
.fin-list { display: flex; flex-direction: column; }
.fin { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; padding: 13px 10px; margin: 0 -10px; border: 0; border-bottom: 2px solid var(--line); background: transparent; color: inherit; }
.fin:last-child { border-bottom: 0; }
.fin i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-size: 1rem; color: #fff; background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.55) 0 12%, transparent 13%), var(--c, var(--water)); box-shadow: inset 0 -3px 0 rgba(0,0,0,.22); }
.fin:nth-child(1) { --c: var(--water); } .fin:nth-child(2) { --c: var(--grass); } .fin:nth-child(3) { --c: var(--psy); }
.fin b { display: block; font: 400 1.2rem/1.05 var(--display); }
.fin small { display: block; color: var(--muted); font: 700 .9rem/1.3 var(--body); }
.fin .add { font: 400 1.08rem/1 var(--display); white-space: nowrap; }
.fin[aria-pressed="true"] { border-radius: 12px; border-bottom-color: transparent; background: color-mix(in srgb, var(--sun) 36%, transparent); box-shadow: inset 0 0 0 3px var(--ink0); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; align-items: center; }
.swatches button { width: 62px; padding: 0; border: 0; background: transparent; opacity: .6; transition: opacity .2s, transform .2s; }
.swatches button[aria-pressed="true"], .swatches button:hover { opacity: 1; transform: scale(1.1); }
.thumb { display: block; width: 100%; aspect-ratio: 1 / .866; background: var(--panel) center / cover; -webkit-mask: var(--hexm) center / 100% 100% no-repeat; mask: var(--hexm) center / 100% 100% no-repeat; }
.hint { display: inline-block; margin-top: 18px; }

/* rooms */
.rooms { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: auto auto; gap: 22px; }
.rooms figure { margin: 0; position: relative; min-width: 0; }
.rooms figure:first-child { grid-row: 1 / 3; }
.rooms img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rooms figcaption { position: absolute; left: 12px; bottom: 12px; padding: 8px 12px; border-radius: 10px; background: #fff; color: #1B2559; box-shadow: 0 0 0 3px #1B2559, 0 4px 0 #1B2559; font: 900 .74rem/1 var(--body); letter-spacing: .07em; text-transform: uppercase; }

/* anatomy */
.anat img { display: block; width: 100%; height: auto; background: #fff; }
.layers { list-style: none; margin: 0; padding: 0; }
.layers li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: center; padding: 13px 0; border-bottom: 2px solid var(--line); }
.layers li:last-child { border-bottom: 0; }
.num { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font: 400 1.15rem/1 var(--display); font-style: normal; box-shadow: inset 0 -3px 0 rgba(0,0,0,.22); }
.layers b { display: block; font: 400 1.2rem/1.05 var(--display); }
.layers .muted { display: block; font: 700 .9rem/1.3 var(--body); }

/* faq + footer */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.qa { display: flex; flex-direction: column; gap: 14px; }
details { background: var(--card); color: var(--ink0); border-radius: 16px; padding: 0 20px; box-shadow: inset 0 0 0 3px var(--edge), 0 5px 0 var(--edge); --muted: var(--muted0); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 0; font: 400 1.22rem/1.15 var(--display); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font: 400 1.3rem/1 var(--display); }
details[open] summary::after { content: "\2013"; }
details p { padding: 0 0 20px; color: var(--muted); font-weight: 700; max-width: 58ch; }
.final { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 30px; }
footer { background: #151C4B; color: #C9CEEA; border-top: 3px solid var(--edge); padding-block: 48px 40px; font-size: .9rem; font-weight: 700; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }

/* wall builder */
.b-app { display: grid; grid-template-columns: 300px minmax(0, 1fr) 340px; height: calc(100vh - var(--bar)); height: calc(100svh - var(--bar)); }
.b-pal, .b-sum { overflow-y: auto; padding: 22px 20px 30px; background: var(--bg); display: flex; flex-direction: column; gap: 18px; }
.b-pal { border-right: 3px solid var(--edge); }
.b-sum { border-left: 3px solid var(--edge); }
.b-wall { position: relative; min-width: 0; min-height: 0; background: var(--room); }
.bstage { position: absolute; inset: 0; touch-action: pan-y; }
.b-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; pointer-events: none; }
.seg { display: inline-flex; flex-wrap: wrap; padding: 5px; gap: 2px; background: var(--card); border-radius: 14px; pointer-events: auto; box-shadow: inset 0 0 0 3px var(--edge), 0 4px 0 var(--edge); }
.seg button { min-height: 38px; padding: 0 12px; border: 0; background: transparent; color: var(--ink0); border-radius: 9px; font-weight: 800; font-size: .88rem; }
.seg button[aria-pressed="true"] { background: var(--pill); color: var(--pill-ink); }
.b-msg { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; background: var(--card); color: var(--ink0); border-radius: 14px; box-shadow: inset 0 0 0 3px var(--edge), 0 4px 0 var(--edge); max-width: calc(100% - 28px); font-size: .93rem; font-weight: 800; }
.b-msg.plain { padding: 11px 16px; }
.pal-list { display: flex; flex-direction: column; gap: 10px; padding-bottom: 4px; }
.pal { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border: 0; border-radius: 14px; background: var(--card); color: var(--ink0); text-align: left; box-shadow: inset 0 0 0 3px var(--edge), 0 4px 0 var(--edge); }
.pal:hover { transform: translateY(1px); box-shadow: inset 0 0 0 3px var(--edge), 0 3px 0 var(--edge); }
.pal b { font: 400 1.08rem/1.1 var(--display); }
.pal small { display: block; color: var(--muted0); }
.pal .plus { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font: 400 1.4rem/1 var(--display); box-shadow: inset 0 -3px 0 rgba(0,0,0,.22); }
.big { font: 400 4.2rem/.86 var(--display); font-variant-numeric: tabular-nums; }
.rows { display: flex; flex-direction: column; }
.rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 2px solid var(--line); font-weight: 700; font-variant-numeric: tabular-nums; }
.rows .tot { font: 400 1.6rem/1.2 var(--display); }
.nudge { padding: 13px 14px; border-radius: 14px; background: var(--card); color: var(--ink0); box-shadow: inset 0 0 0 3px var(--edge); font-weight: 800; line-height: 1.35; }
.nudge.hot { background: var(--sun); color: #1B2559; box-shadow: inset 0 0 0 3px #1B2559, 0 4px 0 #1B2559; }
.mini { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.mini div { padding: 8px 4px; border-radius: 10px; text-align: center; background: var(--card); color: var(--ink0); box-shadow: inset 0 0 0 2px var(--line); line-height: 1.2; font-size: .64rem; }
.mini div b { display: block; font: 400 1rem/1.1 var(--display); letter-spacing: 0; }
.mini div.got { background: var(--sun); color: #1B2559; box-shadow: inset 0 0 0 2px #1B2559; }
.dom-wall { position: absolute; inset: 70px 20px 70px; display: flex; flex-wrap: wrap; gap: 10px; align-content: center; justify-content: center; }
.dom-wall button { width: 92px; padding: 0; border: 0; background: transparent; }

/* product page */
.p-page { padding-bottom: 20px; }
.p-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-block: 22px 80px; }
.p-view { position: sticky; top: calc(var(--bar) + 20px); display: flex; flex-direction: column; gap: 18px; }
.p-info { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.p-info h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); text-shadow: .045em .045em 0 var(--h2s); }
.tagrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.price { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.price b { font: 400 2.8rem/1 var(--display); color: var(--accent); }
.qty { display: inline-flex; align-items: center; border-radius: 14px; background: var(--card); color: var(--ink0); box-shadow: inset 0 0 0 3px var(--edge), 0 4px 0 var(--edge); }
.qty button { width: 48px; height: 52px; border: 0; background: transparent; font: 400 1.4rem/1 var(--display); }
.qty span { min-width: 2.2ch; text-align: center; font: 400 1.2rem/1 var(--display); }
.back { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 16px 0 6px; color: var(--muted); }
.more { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.more a { text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.more a .thumb { align-self: stretch; }
.more b { font: 400 1.1rem/1.1 var(--display); }
.sub { padding-block: 0 80px; }
.sub h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-bottom: 28px; }

/* cart drawer + mobile bar */
.scrim { position: fixed; inset: 0; background: rgba(5,7,25,.6); z-index: 50; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 51; background: var(--bg); border-left: 3px solid var(--edge); display: flex; flex-direction: column; gap: 16px; padding: calc(18px + env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) 18px; animation: slidein .25s ease-out; }
@keyframes slidein { from { transform: translateX(100%); } }
.drawer header { display: flex; justify-content: space-between; align-items: center; }
.drawer header h3 { font-size: 1.7rem; }
.lines { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 3px 3px 6px; }
.line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 14px; background: var(--card); color: var(--ink0); box-shadow: inset 0 0 0 3px var(--edge); }
.line b { font: 400 1.08rem/1.1 var(--display); }
.line .qty { box-shadow: inset 0 0 0 2px var(--line); }
.line .qty button { width: 44px; height: 44px; }
.mbar { display: none; }

@media (max-width: 1000px) {
  .nav { display: none; }
  .tools .lightsw { display: none; }
  .stage { background-image: none; }
  .hero { align-items: flex-start; padding-top: 3vh; }
  .hero-in { gap: 13px; }
  .hero .lede { font-size: 1rem; }
  .hero .btn { min-height: 46px; padding: 0 16px; font-size: .94rem; }
  .hero h1 { font-size: clamp(2.1rem, 8.8vw, 3.4rem); }
  .facts:not(.hero-facts) { display: none; }
  .hero-facts li { font-size: .92rem; }
  .two, .faq, .p-grid, .beat { grid-template-columns: minmax(0, 1fr); }
  .strip { --lx: 50%; }
  .beat.flip .b-vis { order: 0; }
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rooms { grid-template-columns: 1fr; } .rooms figure:first-child { grid-row: auto; }
  .p-view { position: static; }
  .more { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .b-app { grid-template-columns: minmax(0, 1fr); height: auto; }
  .b-wall { height: auto; order: 1; display: flex; flex-direction: column; }
  .b-top { position: static; order: 0; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 12px 12px 14px; pointer-events: auto; scrollbar-width: none; }
  .seg { flex-wrap: nowrap; flex: none; }
  .bstage { position: relative; inset: auto; order: 1; height: 52vh; height: 52svh; }
  .dom-wall { position: static; order: 1; padding: 20px; }
  .b-msg { position: static; transform: none; order: 2; margin: 12px 12px 16px; max-width: none; }
  .b-pal { order: 2; border: 0; border-top: 3px solid var(--edge); }
  .b-sum { order: 3; border: 0; border-top: 3px solid var(--edge); }
  .pal-grp .pal-items { flex-direction: row; overflow-x: auto; padding: 3px 3px 10px; }
  .pal { flex: 0 0 230px; }
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 28; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--card); color: var(--ink0); border-top: 3px solid var(--edge); font-weight: 800; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .btn { padding: 0 20px; }
  .gal { gap: 26px 12px; }
  .work { padding: 8px; border-radius: 18px; gap: 8px; }
  .work .tcg-top { flex-direction: column; align-items: flex-start; gap: 6px; }
  .work .tcg-top .l { gap: 4px; }
  .work .nmx { font-size: 1.12rem; } .work .hp { font-size: 1.15rem; } .work .hp .en { width: 18px; height: 18px; }
  .work .acts a.btn { display: none; }
  .work .acts .btn { padding: 0 8px; font-size: .84rem; }
  .tcg-strip { margin-inline: 4px; font-size: .66rem; }
  .atk { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 9px; }
  .dmg { font-size: 1.35rem; }
  .tcg-foot div { font-size: .76rem; }
  .more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg button { padding: 0 9px; font-size: .82rem; }
  .flav code { display: none; }
}
/* without 3D: still images */
.no-gl .stage { background: #E2DFD8 url(../img/poster.jpg) center / cover no-repeat; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover, .btn:active, .tile3d, .work, .work:hover, .pal:hover { transform: none; transition: none; }
  .drawer { animation: none; }
}

/* ---------- added: more card types, sets, search, sizes, product views, checkout, pages, menu ---------- */
.t-trainer { --c: #9AA3B5; --f1: #FFFFFF; --f2: #CBD1DE; }
.t-fairy { --c: #E46FB0; --f1: #F8B9DC; --f2: #E46FB0; }
.t-colorless { --c: #B7B2A6; --f1: #F4F1EA; --f2: #D3CDBF; }
.t-fighting { --c: #C0602F; --f1: #E9A67E; --f2: #C0602F; }
.t-metal { --c: #8E98A6; --f1: #D9DEE5; --f2: #9AA4B2; }
.chip .cnt { font: 900 .7rem/1 var(--body); background: rgba(27,37,89,.12); padding: 4px 7px; border-radius: 99px; }
.chip[aria-pressed="true"] .cnt { background: rgba(255,203,31,.22); }
a.chip { text-decoration: none; }
.gal-chips { margin: -14px 0 34px; }
.more-row { display: flex; justify-content: center; margin-top: 40px; }
.more-row:has([hidden]) { display: none; }
.empty { grid-column: 1 / -1; font-weight: 800; color: var(--ink0); }
.search { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: 16px; background: var(--card); color: var(--ink0); box-shadow: inset 0 0 0 3px var(--edge), 0 5px 0 var(--edge); width: min(100%, 340px); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font-weight: 800; font-size: 1rem; outline: none; }
.search:focus-within { outline: 3px solid var(--water); outline-offset: 3px; }

.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.set-card { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 22px; background: var(--card); color: var(--ink0); text-decoration: none; box-shadow: 0 0 0 3px var(--edge), 0 9px 0 var(--edge); transition: transform .16s; }
.set-card:hover { transform: translateY(-5px) rotate(-.6deg); }
.set-cover { display: grid; place-items: center; aspect-ratio: 1.6; border-radius: 14px; background: linear-gradient(112deg, #FFC9E4, #FFEBAE 24%, #C6F7E0 48%, #C3E5FF 72%, #E0CFFF); overflow: hidden; }
/* flat-top honeycomb: tile 1 wide, columns 0.8 apart, rows 0.916 apart (1 cm gap, same as the 3D wall) */
.set-hexes { position: relative; width: 84%; aspect-ratio: 2.6 / 1.324; }
.set-hexes i { position: absolute; width: 38.46%; height: 65.41%; background: center / cover; filter: drop-shadow(0 5px 6px rgba(0,0,0,.28)); }
.set-hexes .h0 { left: 30.77%; top: 0; }
.set-hexes .h1 { left: 0; top: 34.59%; }
.set-hexes .h2 { left: 61.54%; top: 34.59%; }
.set-txt { display: flex; flex-direction: column; gap: 6px; }
/* 17 Nov: the 8th place in the sets grid opens the full list */
.set-more { font: inherit; text-align: left; cursor: pointer; border: 0; }
.set-more .set-txt b { color: var(--fire); }
.set-more[aria-expanded="true"] { grid-column: 1 / -1; flex-direction: row; justify-content: center; padding: 18px; }
.set-more:focus-visible { outline: 3px solid var(--water); outline-offset: 3px; }
/* 17 Nov: search and the Set dropdown side by side under the gallery heading */
.gal-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: -14px 0 34px; }
.gal-tools .search { width: min(100%, 520px); }
.gal-tools #filters { flex: 0 1 320px; min-width: 0; }
.gal-tools .set-pick { width: 100%; }
/* card-type colour ball: top right of the picture */
.tcg-art .type-ball { position: absolute; top: 10px; right: 10px; z-index: 3; width: 26px; height: 26px; pointer-events: none; }
/* 17 Nov: one Set dropdown in the gallery instead of a pill per set */
.set-pick { display: inline-flex; align-items: center; min-height: 52px; padding: 0 14px; border-radius: 16px; background: var(--card); color: var(--ink0); box-shadow: inset 0 0 0 3px var(--edge), 0 5px 0 var(--edge); width: min(100%, 340px); }
.set-pick select { flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; font: 800 1rem var(--body); padding: 12px 4px; outline: none; cursor: pointer; }
.set-pick:focus-within { outline: 3px solid var(--water); outline-offset: 3px; }
.set-txt b { font: 400 1.5rem/1.05 var(--display); }
.set-txt .muted { font-size: .95rem; color: var(--muted0); }
.page-h { margin-top: 10px; }
.mini-h { font-size: 1.6rem; margin-bottom: 16px; }

.size-opt { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; padding: 13px 10px; margin: 0 -10px; border: 0; border-bottom: 2px solid var(--line); background: transparent; color: inherit; }
.size-opt:last-child { border-bottom: 0; }
.size-opt i { display: block; justify-self: center; aspect-ratio: 1 / .866; background: linear-gradient(135deg, var(--psy), var(--water)); }
.size-opt b { display: block; font: 400 1.2rem/1.05 var(--display); }
.size-opt small { display: block; color: var(--muted); font: 700 .9rem/1.3 var(--body); }
.size-opt .add { font: 400 1.08rem/1 var(--display); white-space: nowrap; }
.size-opt[aria-pressed="true"] { border-radius: 12px; border-bottom-color: transparent; background: color-mix(in srgb, var(--sun) 36%, transparent); box-shadow: inset 0 0 0 3px var(--ink0); }
.tile3d.lg .t-card { left: 35.68%; top: 26.9%; width: 28.64%; height: 46.19%; }   /* on the 220 mm Large tile */

.p-photo { position: relative; }
.p-flat { position: absolute; inset: 0; display: grid; place-items: center; background: var(--room); padding: 7%; }
.p-flat > .hex { display: block; width: 100%; aspect-ratio: 1 / .866; background: center / cover; filter: drop-shadow(0 14px 18px rgba(0,0,0,.3)); }
.p-flat > .tw { position: relative; display: block; width: 100%; container-type: inline-size; filter: drop-shadow(0 14px 18px rgba(0,0,0,.3)); }
.p-flat > .tw > .hex { display: block; width: 100%; aspect-ratio: 1 / .866; background: center / cover; }
.p-flat.compare { display: flex; flex-wrap: wrap; align-content: center; align-items: flex-end;   /* tiles and captions share one bottom line, the pair stays centred */ justify-content: center; gap: 4%; padding: 6% 5%; }
.p-flat.compare figure { margin: 0; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.p-flat.compare .hex { display: block; width: 100% !important; aspect-ratio: 1 / .866; background: center / cover; }
.p-flat.compare figcaption { color: var(--ink0); }
/* graded card on the Large tile (22 x 19 cm): a typical graded case is about 80 x 136 mm; positions are % of the tile's 220 x 190.5 mm box */
.p-flat.compare .tw { position: relative; display: block; width: 100%; container-type: inline-size; }
.slab { position: absolute; left: 31.82%; top: 7.2%; width: 36.36%; height: 71.4%; border-radius: 1.8cqw; background: linear-gradient(135deg, rgba(255,255,255,.55), rgba(220,230,240,.32) 45%, rgba(255,255,255,.5)); box-shadow: inset 0 0 0 .45cqw rgba(255,255,255,.85), inset 0 0 0 .7cqw rgba(140,160,185,.35), 0 1.2cqw 2.4cqw rgba(0,0,0,.35); -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px); }
.slab-label { position: absolute; left: 5%; right: 5%; top: 3.7%; height: 17.6%; border-radius: .7cqw; background: #fff; box-shadow: inset 0 0 0 .35cqw #C8202F; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-content: center; column-gap: 1cqw; padding: 0 2cqw; font: 800 1.45cqw/1.25 var(--body); color: #1B2559; overflow: hidden; }
.slab-label b { font-weight: 900; font-size: 1.7cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slab-label span { grid-column: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .8; }
.slab-label em { grid-column: 2; grid-row: 1 / 3; font: 900 4.4cqw/1 var(--body); font-style: normal; align-self: center; }
.slab-well { position: absolute; left: 7.5%; right: 7.5%; top: 25.5%; bottom: 4.5%; border-radius: 1cqw; box-shadow: inset 0 0 0 .3cqw rgba(255,255,255,.7), inset 0 .4cqw 1cqw rgba(0,0,0,.18); }
.slab-card { position: absolute; left: 35.68%; top: 26.9%; width: 28.64%; height: 46.2%; object-fit: cover; border-radius: 1.2cqw; box-shadow: 0 .3cqw .8cqw rgba(0,0,0,.3); }
.p-flat.compare .tw.g::after { content: ""; position: absolute; left: 31.82%; top: 7.2%; width: 36.36%; height: 71.4%; border-radius: 1.8cqw; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 42%, transparent 52%); pointer-events: none; }
.card-tg { position: absolute; top: 12px; right: 12px; z-index: 2; min-height: 40px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--card); color: var(--ink0); font: 800 .88rem/1 var(--body); box-shadow: inset 0 0 0 3px var(--edge), 0 4px 0 var(--edge); }
.card-tg[aria-pressed="false"] { background: var(--pill); color: var(--pill-ink); }
.p-modes { align-self: flex-start; }
.seg-row { display: flex; flex-wrap: wrap; gap: 8px; pointer-events: none; }
.seg-row .seg { pointer-events: auto; }
/* 17 Nov: sets in the wall builder open and close */
.pal-search { width: 100%; min-height: 46px; }
.pal-grp { display: flex; flex-direction: column; gap: 10px; }
.pal-set { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--ink0); font: 900 .8rem/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; text-align: left; cursor: pointer; box-shadow: inset 0 0 0 2px var(--edge); }
.pal-set span { flex: 1; min-width: 0; }
.pal-set .cnt { opacity: .7; }
.pal-set .chev { width: 9px; height: 9px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(-45deg); transition: transform .15s; flex: none; }
.pal-set[aria-expanded="true"] .chev { transform: rotate(45deg) translate(-2px, -2px); }
.pal-set:focus-visible { outline: 3px solid var(--water); outline-offset: 2px; }
.pal-items { display: flex; flex-direction: column; gap: 10px; }

.co-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 52px); align-items: start; padding-bottom: 90px; }
.co-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.co-side { position: sticky; top: calc(var(--bar) + 20px); display: flex; flex-direction: column; gap: 18px; }
.co-rows > div:first-child { border-top: 0; }
.co-facts { flex-direction: column; align-items: flex-start; }
.panel { background: var(--card); color: var(--ink0); border-radius: 20px; padding: 20px; box-shadow: inset 0 0 0 3px var(--edge), 0 7px 0 var(--edge); --muted: var(--muted0); }
.panel-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.panel h3 { font-size: 1.5rem; }
.co-lines { overflow: visible; }
.co-lines .line { box-shadow: inset 0 0 0 2px var(--line); }
.co-lines .line .thumb, .lines .line .thumb { width: 64px; }
.small { font-size: .86rem; font-weight: 700; }
.panel .nudge { margin-top: 12px; }
.co-form { display: flex; flex-direction: column; gap: 14px; }
.co-form h3 { margin-top: 8px; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld-row .fld { flex: 1 1 200px; }
.fld span { font: 900 .72rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted0); }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--bg); color: var(--ink); font: 700 1rem/1.3 var(--body); box-shadow: inset 0 0 0 2px var(--line); }
.fld textarea { resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 3px solid var(--water); outline-offset: 1px; }
.fld-row { display: flex; flex-wrap: wrap; gap: 14px; }
.radios { display: flex; flex-direction: column; gap: 10px; }
.radio { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; }
.radio:has(input:checked) { box-shadow: inset 0 0 0 3px var(--ink0); background: color-mix(in srgb, var(--sun) 30%, transparent); }
.radio input { width: 20px; height: 20px; accent-color: var(--red); margin: 0; }
.radio b { display: block; font: 400 1.12rem/1.1 var(--display); }
.radio small { display: block; font-weight: 700; }
.radio .add { font: 400 1.08rem/1 var(--display); }
.pay-box { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; border: 2px dashed var(--line); }
.co-form .btn { align-self: stretch; margin-top: 6px; }

.page-top { border-top: 0; }
.cover-img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-bottom: 60px; }
.steps .tcg-body { flex: 1; }
.pad { padding: 12px 0; font-weight: 700; color: var(--muted); }
.qa.narrow { max-width: 760px; }
.narrow-wrap { max-width: 860px; padding-bottom: 90px; }
.on-color p a, details p a, .lede a { color: inherit; }

.set-h1 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); line-height: .98; text-shadow: .045em .045em 0 var(--h2s); }
.p-static { position: absolute; inset: 9% 8%; width: 84%; height: 82%; object-fit: contain; -webkit-mask: var(--hexm) center / 100% 100% no-repeat; mask: var(--hexm) center / 100% 100% no-repeat; }
.gl-on > .p-static { display: none; }
.static-list { grid-column: 1 / -1; columns: 2; font-weight: 800; }
.menu-btn { display: none; }
/* currency dropdown, styled like the header buttons */
.cur-pick { position: relative; display: inline-flex; }
.cur-pick select { appearance: none; -webkit-appearance: none; height: 44px; padding: 0 30px 0 12px; border: 0; border-radius: 13px; background: var(--card); color: var(--ink0); font: 800 .9rem/1 var(--body); box-shadow: inset 0 0 0 3px var(--edge), 0 4px 0 var(--edge); cursor: pointer; }
.cur-pick::after { content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 2.5px solid var(--ink0); border-bottom: 2.5px solid var(--ink0); transform: rotate(45deg); pointer-events: none; }
.cur-pick select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) { .cur-pick select { height: 42px; padding: 0 24px 0 9px; font-size: .82rem; } .cur-pick::after { right: 9px; } }
/* legal pages (terms, privacy, returns, cookies) */
.doc { padding: clamp(22px, 4vw, 44px); } .doc h1 { font: 400 clamp(1.9rem, 4.4vw, 2.7rem)/1.1 var(--display); margin: 0 0 12px; }
.doc h2 { font: 900 1.18rem/1.25 var(--body); margin: 30px 0 8px; } .doc p, .doc li { line-height: 1.62; } .doc ul { padding-left: 1.2em; } .doc li { margin: 6px 0; }
.doc mark { background: #FFE27A; color: #1B2150; padding: 0 5px; border-radius: 5px; font-weight: 800; }
.doc .form-box { border: 2px dashed currentColor; border-radius: 12px; padding: 6px 16px; } .doc code { font-size: .92em; }
.withdraw-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 520px; margin: 18px 0 26px; } .withdraw-form label { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; font-weight: 800; }
.withdraw-form input, .withdraw-form textarea { min-width: 0; max-width: 100%; font: inherit; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--edge); background: #fff; color: #1B2150; }
.withdraw-form .form-note { font-weight: 800; }
/* review form (/review/) and the reviews section on the home page */
.rv-lab { display: block; font-weight: 800; margin-bottom: 6px; }
.rv-stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; }
.rv-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; border: 0; }
.withdraw-form .rv-stars label { display: inline-block; font-size: 2.6rem; line-height: 1; color: #CFC7AE; cursor: pointer; }
.rv-stars input:checked ~ label, .rv-stars label:hover, .rv-stars label:hover ~ label { color: #E8402A; }
.rv-stars input:focus-visible + label { outline: 3px solid var(--water); outline-offset: 2px; border-radius: 6px; }
.withdraw-form .rv-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; } .withdraw-form .rv-check span { min-width: 0; }
.withdraw-form .rv-check input { width: 22px; height: 22px; flex: none; margin-top: 2px; padding: 0; }
.withdraw-form input[type=file] { background: transparent; border-style: dashed; }
.rv-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.rv-card { margin: 0; background: var(--card); color: var(--ink0); border-radius: 18px; box-shadow: inset 0 0 0 3px var(--edge), 0 5px 0 var(--edge); padding: 16px; display: grid; gap: 8px; align-content: start; }
.rv-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.rv-st { color: #E8402A; font-size: 1.3rem; letter-spacing: 2px; }
.rv-card blockquote { margin: 0; font-weight: 700; }
.rv-card figcaption { font-weight: 900; font-size: .9rem; opacity: .8; }
.co-form .chk { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 4px; font-size: .95rem; line-height: 1.45; } .co-form .chk input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.cookie .ck-opts { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; } .cookie .ck-opts label { display: flex; gap: 6px; align-items: center; }
.f-company { margin: 10px 0 0; font-size: .8rem; opacity: .8; line-height: 1.5; }
/* cookie bar: only shown when analytics or ad pixels are set up, and nothing loads before a yes */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 640px; margin: 0 auto; padding: 16px 18px; border-radius: 18px; background: var(--card); color: var(--ink0); box-shadow: inset 0 0 0 3px var(--edge), 0 10px 30px rgba(0,0,0,.28); display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.cookie p { margin: 0; flex: 1 1 280px; font-size: .92rem; line-height: 1.45; } .cookie .row { display: flex; gap: 10px; margin: 0; }
.f-legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; font-size: .86rem; } .f-legal-links a, .f-legal-links button { color: #DDE1F5; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
/* language picker: in the header on wide screens, in the menu on phones, and always in the footer */
@media (max-width: 980px) { .tools .lang-pick { display: none; } }
.menu-lang { padding: 12px 0 4px; }
.f-bottom .lang-pick { margin-left: auto; } .f-bottom .lang-pick select { height: 38px; font-size: .84rem; }
@media (max-width: 760px) { .f-bottom .lang-pick { margin-left: 0; } }
/* right to left (Arabic): the brand stays left to right, and the hero text stays on the side away from the wall */
[dir="rtl"] .lgo { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .hero .wrap { direction: ltr; } [dir="rtl"] .hero-in { direction: rtl; }
[dir="rtl"] .cur-pick select { padding: 0 12px 0 30px; } [dir="rtl"] .cur-pick::after { right: auto; left: 12px; }
.cur-btn b { font: 900 1rem/1 var(--body); }
.p-ladder { padding-bottom: 18px; display: grid; gap: 10px; }
.p-ladder table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.p-ladder th, .p-ladder td { padding: 7px 10px; text-align: right; border-bottom: 2px solid color-mix(in srgb, var(--edge) 14%, transparent); }
.p-ladder th:first-child, .p-ladder td:first-child { text-align: left; }
.p-ladder th { font: 800 .78rem/1.2 var(--body); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.p-ladder td { font-weight: 700; }
.p-ladder .on { background: color-mix(in srgb, var(--sun) 28%, transparent); color: var(--ink0); }
.p-ladder tr.now td { box-shadow: inset 0 2px 0 var(--edge), inset 0 -2px 0 var(--edge); }
.p-ladder tbody tr:last-child td { border-bottom: 0; }
.menu { position: absolute; top: 100%; right: max(12px, env(safe-area-inset-right, 0px)); width: min(300px, calc(100vw - 24px)); display: flex; flex-direction: column; padding: 8px; border-radius: 18px; background: var(--card); color: var(--ink0); box-shadow: inset 0 0 0 3px var(--edge), 0 7px 0 var(--edge), var(--shadow); margin-top: 8px; }
.menu a { padding: 13px 14px; border-radius: 12px; text-decoration: none; font-weight: 800; }
.menu a:hover, .menu a.on { background: color-mix(in srgb, var(--sun) 40%, transparent); }
.menu-light { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; font-weight: 800; text-align: start; cursor: pointer; }
.menu-light:hover { background: color-mix(in srgb, var(--sun) 40%, transparent); }
.menu-light:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* small phones: the bar must never be wider than the screen */
@media (max-width: 640px) { [dir="rtl"] .cur-pick select { padding: 0 9px 0 24px; } [dir="rtl"] .cur-pick::after { left: 9px; } }
@media (max-width: 400px) { .bar .wrap { gap: 10px; padding-left: max(14px, env(safe-area-inset-left, 0px)); padding-right: max(14px, env(safe-area-inset-right, 0px)); } }
@media (max-width: 359px) { .bar .tools { gap: 6px; } .bar .icon { width: 38px; } .tools .cur-pick select { padding: 0 21px 0 7px; font-size: .78rem; } .tools .cur-pick::after { right: 7px; }
  [dir="rtl"] .tools .cur-pick select { padding: 0 7px 0 21px; } [dir="rtl"] .tools .cur-pick::after { right: auto; left: 7px; } }
.nav a.on { color: var(--accent); }

footer .wrap { flex-direction: column; gap: 0; }
.f-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 72px); padding-bottom: 30px; }
.f-about { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.f-about p { margin: 0; max-width: 32ch; font-size: 1rem; line-height: 1.5; color: #DDE1F5; }
.f-brand { font-size: 1.7rem; color: #fff; text-decoration: none; display: block; }
.f-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.f-cols nav { display: flex; flex-direction: column; gap: 10px; }
.f-cols b { color: #fff; font: 900 1rem/1.2 var(--body); margin-bottom: 4px; }
.f-cols a { text-decoration: none; color: #C9CEEA; font-size: .98rem; }
.f-cols a:hover, .f-cols a:focus-visible { color: var(--sun); }
.f-bottom { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: .86rem; color: #DDE1F5; }
.f-bottom span + span::before { content: "|"; margin-right: 22px; opacity: .4; }
.f-legal { margin: 12px 0 0; opacity: .7; font-size: .8rem; font-weight: 600; }
@media (max-width: 760px) { footer { padding-bottom: 110px; } .f-top { grid-template-columns: 1fr; } .f-bottom span + span::before { display: none; } .f-bottom { flex-direction: column; } }

@media (max-width: 1000px) {
  .menu-btn { display: grid; }
  /* phones and tablets: the text sits on top and the tile wall fills the space under it */
  .hero-sec { height: auto; max-height: none; min-height: calc(100svh - var(--bar)); }
  .hero { position: relative; padding-bottom: clamp(250px, 66vw, 480px); }
  .co-grid { grid-template-columns: minmax(0, 1fr); }
  .co-side { position: static; order: -1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .seg-row { flex-wrap: nowrap; }
}
@media (max-width: 560px) {
  .tools { gap: 8px; }
  .icon { width: 42px; }
  .search { width: 100%; }
  .gal-tools #filters { flex-basis: 100%; }
  .tcg-art .type-ball { width: 16px; height: 16px; top: 6px; right: 6px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.22), 0 0 0 1.5px #fff; }
  .set-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .set-card { padding: 10px; gap: 10px; border-radius: 16px; }
  .set-txt b { font-size: 1.1rem; }
  .set-txt .muted { display: none; }
  .set-more:not([aria-expanded="true"]) { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .set-more:not([aria-expanded="true"]) .set-cover { width: 42%; flex: none; }
  .set-pick { width: 100%; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .p-modes button { padding: 0 8px; }
  .panel { padding: 16px; }
  .line { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 8px; }
  .co-lines .line .thumb, .lines .line .thumb { width: 56px; }
}

/* 17 Nov 2026: Christmas last-order bar, gift cards, wall packs, free-delivery bar, signup popup */
.xmas { background: var(--navy); color: #fff; font: 800 .92rem/1.35 var(--body); text-align: center; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); }
.xmas a { color: var(--sun); font-weight: 900; margin-inline-start: 6px; white-space: nowrap; }
.freebar { display: flex; flex-direction: column; gap: 7px; font-weight: 800; font-size: .95rem; line-height: 1.3; }
.freebar i { display: block; height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; }
.freebar i b { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--grass); transition: width .3s; }
.panel .freebar { margin-top: 14px; }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 24px; }
.pack { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 22px; background: var(--card); color: var(--ink0); box-shadow: 0 0 0 3px var(--edge), 0 9px 0 var(--edge); min-width: 0; }
.pk-cover { display: grid; place-items: center; aspect-ratio: 1.6; border-radius: 14px; background: linear-gradient(112deg, #FFC9E4, #FFEBAE 24%, #C6F7E0 48%, #C3E5FF 72%, #E0CFFF); overflow: hidden; }
.pk-hexes { position: relative; }
.pk-hexes i { position: absolute; background: center / cover; filter: drop-shadow(0 4px 5px rgba(0,0,0,.25)); }
.pk-name { font: 400 1.4rem/1.1 var(--display); }
.pk-txt { display: flex; flex-direction: column; gap: 6px; }
.pk-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-top: auto; }
.pk-price { font: 900 1.5rem/1 var(--body); }
.pack .btn { align-self: stretch; }
.packs-note { margin-top: 26px; }
.gift-card { position: relative; aspect-ratio: 1.586; max-width: 420px; width: 100%; border-radius: 22px; background: var(--navy); color: #fff; overflow: hidden; box-shadow: 0 0 0 3px var(--edge), 0 9px 0 var(--edge); }
.gift-card .gc-hexes { position: absolute; right: -3%; top: 50%; transform: translateY(-50%); width: 60%; }
.gift-card b { position: absolute; left: 7%; bottom: 10%; font: 400 clamp(1.4rem, 4vw, 2rem)/1 var(--display); }
.gift-card span { position: absolute; left: 7%; top: 10%; font: 900 .78rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--sun); }
.gift-intro { display: flex; flex-direction: column; gap: 18px; }
.gc-amts { display: flex; flex-wrap: wrap; gap: 10px; }
.gc-amts button { min-height: 46px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--bg); color: var(--ink); font-weight: 900; box-shadow: inset 0 0 0 2px var(--line); }
.gc-amts button[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: none; }
.fld small { font-size: .8rem; color: var(--muted0); text-align: end; }
.gift-box { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line); }
.gift-box .fld input, .gift-box .fld textarea { background: var(--card); }
.co-form .fld-row { display: flex; flex-wrap: wrap; gap: 14px; }
.signup { position: fixed; z-index: 85; left: max(16px, env(safe-area-inset-left, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); width: min(380px, calc(100vw - 32px)); padding: 22px 20px 20px; border-radius: 20px; background: var(--card); color: var(--ink0); box-shadow: inset 0 0 0 3px var(--edge), 0 12px 34px rgba(0,0,0,.3); display: flex; flex-direction: column; gap: 12px; animation: suin .3s ease-out; --muted: var(--muted0); }
.signup h3 { font-size: 1.6rem; padding-inline-end: 34px; }
.signup p { font-size: .98rem; line-height: 1.45; }
.signup form { display: flex; flex-direction: column; gap: 12px; }
.signup .chk { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; line-height: 1.4; } .signup .chk input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.su-x { position: absolute; top: 10px; inset-inline-end: 10px; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--bg); font-size: 1.5rem; line-height: 1; }
.su-code { display: block; font: 700 1.35rem/1.2 var(--mono); letter-spacing: .06em; padding: 12px 14px; border-radius: 12px; background: #FFF1B8; color: #1B2559; word-break: break-all; }
.su-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hp { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
@keyframes suin { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .signup { animation: none; } }
@media (max-width: 1000px) { .signup { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 560px) { .pk-name { font-size: 1.25rem; } .signup { padding: 18px 16px 16px; } .signup h3 { font-size: 1.35rem; } }
