/* BehreGaming pixel / terminal layer — loaded last on every front-end page.
   Latin: Terminal Grotesque. Chinese and symbols: Fusion Pixel 12px (OFL).
   The Fusion font is split in two: "core" holds every character the theme and the
   store pages use (~28 KB); "rest" (~680 KB) is fetched only when a page contains a
   character outside core (e.g. a customer's name). Faces are matched last-first, so
   core is declared last and has no unicode-range. */
@font-face{font-family:"Fusion Pixel";src:url("../fonts/fusion-pixel/fusion-pixel-12-zh-rest.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap;unicode-range:U+2E80-9FFF,U+A000-A4CF,U+AC00-D7AF,U+F900-FAFF,U+FE30-FE4F,U+FF00-FFEF,U+20000-3FFFF}
@font-face{font-family:"Fusion Pixel";src:url("../fonts/fusion-pixel/fusion-pixel-12-zh-core.woff2?v=20261109c") format("woff2");font-weight:400;font-style:normal;font-display:swap}

:root{
  --px-font:"Terminal Grotesque","Fusion Pixel",ui-monospace,"SFMono-Regular",Menlo,monospace;
  --behre-font:var(--px-font);
  --px-ink:#202a34;
  --px-shadow:4px 4px 0 rgba(32,42,52,.16);
  --px-shadow-hard:4px 4px 0 #202a34;
}

/* One family everywhere; both fonts have a single weight, so never fake bold or italics —
   synthetic bold thickens pixel strokes until neighbouring letters touch. */
html,body,body *{font-family:var(--px-font)!important;font-synthesis:none!important}
body *{font-weight:400!important}
html{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
svg text{font-family:var(--px-font)!important}
::selection{background:#202a34;color:#fff}

/* Large outline-free display words: a hair of positive tracking keeps pixel letters apart. */
.hero-word,.detail-word,.bf-word,.art-title,.hero-title h1{letter-spacing:.03em!important}
.hero-word{font-size:clamp(96px,13.4vw,248px)!important}
.story-page .detail-word{font-size:clamp(100px,14.2vw,262px)!important}
.lotus-page .detail-word{font-size:clamp(88px,12.4vw,228px)!important}
.lotus-page[data-product="lotus-v2"] .detail-word{font-size:clamp(100px,14.2vw,262px)!important}
.art-title{font-size:clamp(130px,21vw,340px)!important}
.scene-lotus-v2 .art-title{font-size:clamp(98px,15vw,236px)!important}
.scene-skates .art-title{font-size:clamp(96px,15vw,228px)!important}
.bf-word{font-size:min(15vw,264px)!important}
@media(max-width:700px){
  .hero-word{font-size:18.4vw!important}
  .story-page .detail-word{font-size:18.4vw!important}
  .lotus-page .detail-word{font-size:16vw!important}
  .lotus-page[data-product="lotus-v2"] .detail-word{font-size:19vw!important}
  .art-title{font-size:clamp(98px,36vw,156px)!important}
  .scene-lotus-v2 .art-title,.scene-skates .art-title{font-size:clamp(76px,26vw,114px)!important}
  .bf-word{font-size:min(15vw,176px)!important}
}
/* CRT scanlines through the background words (decorative, no layout effect). */
.hero-word,.detail-word,.bf-word,.art-title{
  -webkit-mask-image:repeating-linear-gradient(180deg,#000 0 3px,rgba(0,0,0,.42) 3px 5px);
          mask-image:repeating-linear-gradient(180deg,#000 0 3px,rgba(0,0,0,.42) 3px 5px)}

/* Headings: no negative tracking, slightly wider leading for pixel CJK. */
h1,h2,h3{letter-spacing:.01em}
:lang(zh) h1,:lang(zh) h2,:lang(zh) h3{letter-spacing:.04em;line-height:1.25}
:lang(zh) p,:lang(zh) li,:lang(zh) dd,:lang(zh) figcaption,:lang(zh) summary{line-height:1.75}

/* Terminal labels: small kicker / eyebrow lines get a prompt. */
.detail-kicker::before,.bf-eyebrow::before,.bf-kind::before,.product-kind::before,.product-category::before,.panel-head span::before{content:"> ";opacity:.55}
.breadcrumbs a{text-decoration:none}

/* Square, hard-edged controls. */
.button,.behre-action,.cart-trigger,.buy-button,.bf-cta,.checkout-button,.panel-head button,.skip-link,
.story-page .detail-hero-actions .hero-buy-button,.story-page .view-switch,.story-page .view-switch button,
.quantity-control,.neighbor-arrow,.icon-button,.lotus-page .film-controls,.lotus-page .film-tools-panel,
.cinema-ready .lotus-page .cinema-credit,.storage-notice,.skates-count,.story-rail span,
.behre-add-form input[type=number],.behre-cart button:not(.behre-action),.behre-cart input,
.behre-shell .woocommerce input.input-text,.behre-shell .woocommerce textarea,.behre-shell .woocommerce select,
.behre-shell .woocommerce a.button,.behre-shell .woocommerce button.button,.behre-shell .woocommerce input.button,
.behre-store-main .woocommerce input.input-text,.behre-store-main .woocommerce select,
.bf-hint i,.scroll-story .detail-pair figcaption,.lotus-page .film-tools summary{border-radius:0!important}
input,select,textarea,button{border-radius:0}

/* Floating panels: flat pixel drop shadow instead of soft blur. */
.cart-drawer,.menu-overlay,.support-overlay,.details-overlay,.bf-buy,.lotus-page .film-controls,.lotus-page .film-tools-panel,.image-viewer{border-radius:0!important;box-shadow:var(--px-shadow)!important}
.neighbor-arrow{box-shadow:var(--px-shadow)!important}
.bf-buy img,.cart-thumb,.cart-item img,.skates-cart-row img{border-radius:0!important}

/* Photography frames: square crops, pixel shadow. Product renders (.bf-plane, home slides) keep their shape. */
.photo-frame,.bf-ph,.bf-desk-frame,.bf-box figure,.skate-product figure img,.skates-overview img,.package-original img,
.product-frame-skates .skates-home-grid img,.details-layout figure img{border-radius:0!important}
.scroll-story .detail-pair .photo-frame,.details-layout figure img{box-shadow:6px 6px 0 rgba(32,42,52,.14)!important}

/* Primary calls to action: pixel "press" on hover and a blinking block cursor. */
.bf-cta,.story-page .detail-hero-actions .hero-buy-button,.behre-action,.checkout-button,.buy-button{
  box-shadow:var(--px-shadow-hard)!important;transition:transform .08s steps(2),box-shadow .08s steps(2)!important}
.bf-cta:hover,.story-page .detail-hero-actions .hero-buy-button:hover,.behre-action:hover,.checkout-button:hover,.buy-button:hover{
  transform:translate(2px,2px);box-shadow:2px 2px 0 #202a34!important}
.bf-cta:active,.story-page .detail-hero-actions .hero-buy-button:active,.behre-action:active,.checkout-button:active,.buy-button:active{
  transform:translate(4px,4px);box-shadow:0 0 0 #202a34!important}
.bf-cta::after,.story-page .detail-hero-actions .hero-buy-button::after{content:"";display:inline-block;width:.5em;height:1em;margin-left:.4em;vertical-align:-.15em;background:currentColor;animation:px-blink 1.06s steps(1) infinite;will-change:opacity}
@keyframes px-blink{50%{opacity:0}}

/* Focus: dashed terminal outline. */
:focus-visible{outline:2px dashed currentColor!important;outline-offset:3px!important}
/* The home carousel is focused by script so arrow keys work; only show its outline to keyboard users (as home.css intended). */
.has-js:not(.keyboard-navigation) .explorer:focus{outline:none!important}

/* Thin square scrollbars. */
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:#9aa8b6;border-radius:0!important;border:2px solid transparent;background-clip:content-box}

@media(prefers-reduced-motion:reduce){
  .bf-cta::after,.story-page .detail-hero-actions .hero-buy-button::after{animation:none}
  .bf-cta,.behre-action,.checkout-button,.buy-button{transition:none!important}
}

/* ---------- Terminal layout (1.2.0) ---------- */

/* Pixel dot grid behind everything that has no picture of its own. */
body{background-image:radial-gradient(rgba(32,42,52,.075) 1px,transparent 1.2px)!important;background-size:12px 12px!important;background-attachment:fixed}

/* Path line above a section heading, e.g. LOTUS/02 EDGE_ */
.px-path{display:block;margin:0 0 .9em;font-size:12px!important;line-height:1.4;letter-spacing:.12em;color:#5a6f82;text-transform:uppercase}
.px-path::after{content:"_";display:inline-block;animation:px-blink 1.06s steps(1) infinite;will-change:opacity}

/* Section headings on detail pages: one short line, large crisp pixel type. */
.lotus-page .art-heading h2,.lotus-page .lotus-inspection-copy h2,.lotus-page[data-product] .base-copy h2,.lotus-page .info-copy h2,
.bf-desk-copy h2,.bf-box h3,.bf-specs h3{font-size:48px!important;line-height:1.15!important;letter-spacing:.02em!important;text-wrap:balance}
.bf-ch h2{font-size:36px!important;line-height:1.2!important;letter-spacing:.02em!important}
@media(max-width:700px){
  .lotus-page .art-heading h2,.lotus-page .lotus-inspection-copy h2,.lotus-page[data-product] .base-copy h2,.lotus-page .info-copy h2,
  .bf-desk-copy h2,.bf-box h3,.bf-specs h3{font-size:36px!important}
  .bf-ch h2{font-size:24px!important}
}

/* Body copy reads like console output. */
.lotus-page .art-heading p,.lotus-page .lotus-inspection-copy>p:not(.detail-kicker):not(.angle-note),.lotus-page[data-product] .base-copy p,
.bf-ch p:not(.bf-eyebrow):not(.bf-kind):not(.bf-footnote),.bf-desk-copy p,.bf-box p:not(.bf-eyebrow),.story-page .hero-intro{position:relative;padding-left:1.6em;max-width:36em!important}
.lotus-page .art-heading p::before,.lotus-page .lotus-inspection-copy>p:not(.detail-kicker):not(.angle-note)::before,.lotus-page[data-product] .base-copy p::before,
.bf-ch p:not(.bf-eyebrow):not(.bf-kind):not(.bf-footnote)::before,.bf-desk-copy p::before,.bf-box p:not(.bf-eyebrow)::before,.story-page .hero-intro::before{content:">";position:absolute;left:0;top:0;color:var(--px-prompt);filter:saturate(1.3) brightness(.75)}

/* Spec lists: a terminal readout tinted in each product's own palette.
   --px-panel: page tint, --px-accent: the product's deep colour (prompt, frame, values). */
[data-behre-route^="die"]{--px-panel:#e3ecf3;--px-accent:#344c68;--px-panel-mute:#5a6f82;--px-panel-rule:rgba(52,76,104,.28)}
[data-behre-route^="lotus"]{--px-panel:#e7e2ef;--px-accent:#5b506b;--px-panel-mute:#6c6279;--px-panel-rule:rgba(91,80,107,.3)}
[data-behre-route^="lotus-v2"]{--px-panel:#ece2e8;--px-accent:#77596c;--px-panel-mute:#7a6872;--px-panel-rule:rgba(119,89,108,.3)}
.lotus-page .lotus-specs,.bf-specs dl,.spec-list{
  background:var(--px-panel,#e3ecf3);color:var(--px-accent,#344c68);padding:6px 20px 10px;
  border:2px solid var(--px-accent,#344c68)!important;box-shadow:6px 6px 0 var(--px-panel-rule,rgba(52,76,104,.28))}
.lotus-page .lotus-specs::before,.bf-specs dl::before,.spec-list::before{
  content:"$ behre --spec";display:block;grid-column:1/-1;padding:10px 0 8px;color:var(--px-accent,#344c68);
  font-size:12px;letter-spacing:.08em;border-bottom:2px solid var(--px-accent,#344c68)}
.lotus-page .lotus-specs>div,.bf-specs dl div,.spec-list>div{border-bottom:1px dashed var(--px-panel-rule,rgba(52,76,104,.28))!important;border-top:0!important}
.lotus-page .lotus-specs>div:last-child,.spec-list>div:last-child{border-bottom:0!important}
.lotus-page .lotus-specs dt,.bf-specs dt,.spec-list dt{color:var(--px-panel-mute,#5a6f82)!important}
.lotus-page .lotus-specs dd,.bf-specs dd,.spec-list dd{color:var(--px-accent,#344c68)!important}
.spec-list .pending{color:var(--px-panel-mute,#5a6f82)!important}
.bf-specs dl div{padding:16px 18px 16px 0}

/* Prompts in body copy use the same accent instead of terminal green. */
.lotus-page .art-heading p::before,.lotus-page .lotus-inspection-copy>p:not(.detail-kicker):not(.angle-note)::before,.lotus-page[data-product] .base-copy p::before,
.bf-ch p:not(.bf-eyebrow):not(.bf-kind):not(.bf-footnote)::before,.bf-desk-copy p::before,.bf-box p:not(.bf-eyebrow)::before,.story-page .hero-intro::before{color:var(--px-accent,#344c68)!important;filter:none!important;opacity:.7}
.px-path{color:var(--px-panel-mute,#5a6f82)}

/* Layer lists in the 蝶 story: dashed console rows. */
.bf-layers li{border-top:1px dashed var(--rule,#c7d3de)!important}
.bf-layers li span{color:var(--px-ink)}

/* Active navigation item: inverse "selected" block, like a highlighted menu row. */
.product-nav a[aria-current],.site-header nav a[aria-current]{background:linear-gradient(var(--px-accent,var(--px-ink)),var(--px-accent,var(--px-ink))) center/100% 1.7em no-repeat;color:#fff!important;padding-inline:.4em;margin-inline:-.4em}
.product-nav a[aria-current]::after,.site-header nav a[aria-current]::after{display:none!important}

/* Big product titles: crisp pixel steps. */
.story-page .detail-hero h1:lang(zh),.bf-hero h1:lang(zh),.purchase-info h1:lang(zh){font-size:132px!important;line-height:1.05!important}
@media(max-width:700px){.story-page .detail-hero h1:lang(zh),.bf-hero h1:lang(zh),.purchase-info h1:lang(zh){font-size:84px!important}}

@media(prefers-reduced-motion:reduce){.px-path::after{animation:none}}
.bf-specs dl{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr))!important}
.bf-specs dd{text-wrap:balance}
@media(max-width:400px){.bf-cta::after,.story-page .detail-hero-actions .hero-buy-button::after{display:none}}

/* Purchase pages take their product's page colour (they all share the 蝶 blue otherwise). */
.buy-page[data-behre-route^="lotus"]{--paper:#f1eff5;--white:#f7f5fa;--muted:#645b71;background-color:#f1eff5!important}
.buy-page[data-behre-route^="lotus-v2"]{--paper:#f5eff3;--white:#faf6f8;--muted:#70616b;background-color:#f5eff3!important}

/* Product names, one step larger everywhere (2026-11-09). Chinese sizes stay on the 12px grid (蝶's own glyph on 16). */
.hero .product-caption .product-name:lang(zh){font-size:48px!important;line-height:1.1!important}
.skates .skates-heading h2:lang(zh),.sibling-product strong:lang(zh){font-size:96px!important;line-height:1.05!important}
@media(max-width:700px){.skates .skates-heading h2:lang(zh),.sibling-product strong:lang(zh){font-size:48px!important}}
.story-page .detail-hero h1:lang(en),.bf-hero h1:lang(en){font-size:76px!important;line-height:1!important}
.purchase-info h1:lang(en){font-size:84px!important;line-height:1!important}
.hero .product-caption .product-name:lang(en){font-size:40px!important}
.skates .skates-heading h2:lang(en),.sibling-product strong:lang(en){font-size:88px!important;line-height:1!important}
@media(max-width:700px){
  .story-page .detail-hero h1:lang(en){font-size:40px!important}
  .bf-hero h1:lang(en){font-size:68px!important}
  .purchase-info h1:lang(en){font-size:64px!important}
  .hero .product-caption .product-name:lang(en){font-size:36px!important}
  .skates .skates-heading h2:lang(en){font-size:52px!important}
  .sibling-product strong:lang(en){font-size:40px!important}
}
/* With the larger product names, the short intro next to the 黑莲 titles would be squeezed on phones: let it wrap below. */
@media(max-width:700px){.story-page .detail-hero-copy{flex-wrap:wrap!important;row-gap:12px}.story-page .detail-hero-copy>div{flex:1 1 220px;min-width:0}}
/* Foot-pad (skate) names: home pack captions, the skates-page picker and each skate's heading (2026-11-09). */
.skates-overview a>span:lang(zh){font-size:24px!important;line-height:1.25!important}
.skate-packs figcaption span,.skates-overview a>span small{font-size:12px!important}
.skate-packs figcaption:lang(en),.skates-overview a>span:lang(en){font-size:20px!important;line-height:1.2!important}
.skate-product h2:lang(zh){font-size:72px!important;line-height:1.1!important}
.skate-product h2:lang(en){font-size:64px!important;line-height:1!important}
.skate-product h2 span{font-size:14px!important}
@media(max-width:700px){.skate-product h2:lang(zh){font-size:48px!important}.skate-product h2:lang(en){font-size:44px!important}}
.skate-packs figcaption:lang(zh){font-size:36px!important;line-height:1.2!important}
/* The pack cards are tilted; keep their pixel names level so the glyph edges stay sharp. */
@media(min-width:701px){.skate-packs figcaption{transform:rotate(calc(-1 * var(--pack-turn,var(--rest-turn))))}}
