/* TRANSMISE — the shop's own channel (owner, 22.11.2026).
   A separate world between the shop's header and footer: black, sparse, one
   red neon line, wide-tracked ultra-light capitals, monospaced status lines.
   Loaded only on /{locale}/transmise pages; nothing here touches the shop.
   Fonts: Manrope 200/300 and JetBrains Mono 400 (both OFL), self-hosted. */
@font-face { font-family: "TX Display"; font-weight: 200; font-style: normal; font-display: swap; src: url(/fonts/tx/manrope-200.woff2) format("woff2"); }
@font-face { font-family: "TX Display"; font-weight: 300; font-style: normal; font-display: swap; src: url(/fonts/tx/manrope-300.woff2) format("woff2"); }
@font-face { font-family: "TX Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/tx/jbmono-400.woff2) format("woff2"); }

.tx {
    --tx-bg: #030304;
    --tx-ink: #ecece9;
    --tx-text: #b4b4b1;
    --tx-dim: #7d7d7b;
    --tx-red: #ff2a2a;
    --tx-hair: rgba(255, 255, 255, .13);
    --tx-display: "TX Display", "Manrope", -apple-system, "Segoe UI", sans-serif;
    --tx-mono: "TX Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    --tx-glow: 0 0 4px 1px #ff3b3b, 0 0 14px 4px #ff1a1a, 0 0 42px 10px rgba(255, 0, 0, .45);
    position: relative; isolation: isolate; overflow: hidden;
    background: var(--tx-bg); color: var(--tx-text);
    padding-bottom: 3rem;
}
.tx::before {                      /* the starfield */
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640' fill='%23fff'%3E%3Ccircle cx='31' cy='425' r='0.9' opacity='0.31'/%3E%3Ccircle cx='335' cy='163' r='0.7' opacity='0.16'/%3E%3Ccircle cx='278' cy='45' r='0.5' opacity='0.68'/%3E%3Ccircle cx='638' cy='564' r='0.5' opacity='0.41'/%3E%3Ccircle cx='186' cy='555' r='0.5' opacity='0.48'/%3E%3Ccircle cx='239' cy='113' r='0.5' opacity='0.48'/%3E%3Ccircle cx='299' cy='508' r='0.5' opacity='0.51'/%3E%3Ccircle cx='605' cy='194' r='0.7' opacity='0.63'/%3E%3Ccircle cx='592' cy='108' r='0.7' opacity='0.69'/%3E%3Ccircle cx='34' cy='103' r='1.3' opacity='0.34'/%3E%3Ccircle cx='90' cy='127' r='0.5' opacity='0.28'/%3E%3Ccircle cx='508' cy='479' r='0.7' opacity='0.16'/%3E%3Ccircle cx='558' cy='74' r='0.5' opacity='0.57'/%3E%3Ccircle cx='337' cy='616' r='0.7' opacity='0.64'/%3E%3Ccircle cx='443' cy='241' r='0.7' opacity='0.33'/%3E%3Ccircle cx='140' cy='414' r='0.5' opacity='0.56'/%3E%3Ccircle cx='307' cy='232' r='0.9' opacity='0.74'/%3E%3Ccircle cx='406' cy='538' r='0.7' opacity='0.24'/%3E%3Ccircle cx='211' cy='234' r='0.7' opacity='0.61'/%3E%3Ccircle cx='509' cy='226' r='0.5' opacity='0.47'/%3E%3Ccircle cx='258' cy='92' r='0.9' opacity='0.69'/%3E%3Ccircle cx='133' cy='6' r='0.7' opacity='0.38'/%3E%3Ccircle cx='521' cy='379' r='1.3' opacity='0.62'/%3E%3Ccircle cx='273' cy='222' r='0.5' opacity='0.34'/%3E%3Ccircle cx='226' cy='637' r='0.7' opacity='0.27'/%3E%3Ccircle cx='116' cy='126' r='0.9' opacity='0.50'/%3E%3Ccircle cx='634' cy='634' r='0.7' opacity='0.22'/%3E%3Ccircle cx='193' cy='508' r='1.3' opacity='0.48'/%3E%3Ccircle cx='617' cy='204' r='0.5' opacity='0.25'/%3E%3Ccircle cx='377' cy='452' r='0.9' opacity='0.55'/%3E%3Ccircle cx='567' cy='115' r='0.7' opacity='0.65'/%3E%3Ccircle cx='11' cy='495' r='0.5' opacity='0.44'/%3E%3Ccircle cx='554' cy='399' r='0.7' opacity='0.67'/%3E%3Ccircle cx='80' cy='412' r='0.5' opacity='0.30'/%3E%3Ccircle cx='99' cy='132' r='0.7' opacity='0.16'/%3E%3Ccircle cx='261' cy='183' r='0.5' opacity='0.66'/%3E%3Ccircle cx='217' cy='480' r='1.3' opacity='0.64'/%3E%3Ccircle cx='628' cy='453' r='0.5' opacity='0.34'/%3E%3Ccircle cx='205' cy='44' r='0.7' opacity='0.61'/%3E%3Ccircle cx='510' cy='95' r='0.7' opacity='0.54'/%3E%3Ccircle cx='530' cy='595' r='0.5' opacity='0.19'/%3E%3Ccircle cx='307' cy='170' r='0.5' opacity='0.43'/%3E%3Ccircle cx='542' cy='355' r='0.5' opacity='0.68'/%3E%3Ccircle cx='324' cy='63' r='0.9' opacity='0.19'/%3E%3Ccircle cx='406' cy='282' r='0.5' opacity='0.21'/%3E%3Ccircle cx='382' cy='361' r='0.9' opacity='0.73'/%3E%3Ccircle cx='287' cy='252' r='0.5' opacity='0.64'/%3E%3Ccircle cx='460' cy='21' r='1.3' opacity='0.42'/%3E%3Ccircle cx='31' cy='507' r='0.7' opacity='0.61'/%3E%3Ccircle cx='566' cy='154' r='0.7' opacity='0.49'/%3E%3Ccircle cx='258' cy='511' r='0.9' opacity='0.49'/%3E%3Ccircle cx='634' cy='588' r='0.5' opacity='0.74'/%3E%3Ccircle cx='273' cy='97' r='0.5' opacity='0.21'/%3E%3Ccircle cx='327' cy='417' r='0.9' opacity='0.29'/%3E%3Ccircle cx='337' cy='521' r='0.7' opacity='0.50'/%3E%3Ccircle cx='452' cy='454' r='0.7' opacity='0.53'/%3E%3Ccircle cx='325' cy='430' r='0.5' opacity='0.22'/%3E%3Ccircle cx='82' cy='631' r='0.7' opacity='0.33'/%3E%3Ccircle cx='598' cy='566' r='0.9' opacity='0.21'/%3E%3Ccircle cx='328' cy='615' r='0.5' opacity='0.71'/%3E%3Ccircle cx='308' cy='151' r='0.5' opacity='0.19'/%3E%3Ccircle cx='255' cy='180' r='0.7' opacity='0.36'/%3E%3Ccircle cx='77' cy='231' r='0.5' opacity='0.57'/%3E%3Ccircle cx='102' cy='327' r='0.7' opacity='0.52'/%3E%3Ccircle cx='408' cy='222' r='0.7' opacity='0.67'/%3E%3Ccircle cx='607' cy='240' r='0.5' opacity='0.74'/%3E%3Ccircle cx='84' cy='570' r='0.5' opacity='0.17'/%3E%3Ccircle cx='410' cy='180' r='0.7' opacity='0.21'/%3E%3Ccircle cx='441' cy='115' r='0.7' opacity='0.64'/%3E%3Ccircle cx='347' cy='127' r='0.5' opacity='0.54'/%3E%3C/svg%3E") 0 0 / 640px 640px;
    opacity: .7;
}
.tx a { color: inherit; text-decoration: none; }

/* shared pieces */
.tx-mono {
    font-family: var(--tx-mono); font-size: .6875rem; line-height: 1.6;
    letter-spacing: .2em; text-transform: uppercase; color: var(--tx-dim);
}
.tx-red { color: var(--tx-red); }
.tx-dot {
    display: inline-block; width: .5em; height: .5em; margin-right: .7em; border-radius: 50%;
    background: var(--tx-red); box-shadow: 0 0 6px 1px rgba(255, 42, 42, .8); vertical-align: .08em;
    animation: tx-blink 1.6s steps(1) infinite;
}
.tx-beam {
    display: block; height: 2px; border: 0; margin: 0; border-radius: 2px;
    background: #fff; box-shadow: var(--tx-glow);
}
@keyframes tx-blink { 50% { opacity: .15; } }
@keyframes tx-pulse { 50% { opacity: .45; } }

/* the horizon */
.tx-horizon { position: relative; height: clamp(13rem, 34vw, 20rem); pointer-events: none; }
.tx-horizon::before {              /* fog lit from below */
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse 75% 52% at 50% 62%, rgba(255, 255, 255, .58) 0, rgba(255, 255, 255, .34) 22%, rgba(255, 255, 255, .13) 46%, rgba(255, 255, 255, .04) 66%, rgba(255, 255, 255, 0) 86%);
}
.tx-horizon svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tx-horizon__lights { animation: tx-pulse 5s ease-in-out infinite; }

/* the masthead of the feed */
.tx-mast { position: relative; display: flex; flex-direction: column; min-height: min(46rem, 82vh); min-height: min(46rem, 82svh); }
.tx-mast::after {                  /* scanlines over the whole plate */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 2px, transparent 2px 5px); opacity: .32;
}
.tx-mast__mid { width: 100%; flex: 1; display: grid; align-content: center; justify-items: center; text-align: center; padding-block: 2rem 1rem; }
.tx-word {
    margin: 0; padding-left: .3em;            /* the tracking hangs off the last letter; this re-centres the word */
    font-family: var(--tx-display); font-weight: 200; text-transform: uppercase;
    font-size: clamp(2rem, 9.6vw, 7.25rem); line-height: 1.1; letter-spacing: .3em; color: var(--tx-ink);
    white-space: nowrap;
}
.tx-mast .tx-beam { width: min(52%, 30rem); margin-top: clamp(1rem, 3vw, 2rem); }
.tx-mast__est { margin: clamp(1.5rem, 4vw, 2.5rem) 0 0; color: var(--tx-text); letter-spacing: .34em; }
.tx-mast__intro { max-width: 30rem; margin: 1.25rem 0 0; letter-spacing: .12em; text-transform: none; font-size: .75rem; line-height: 1.8; }

/* the feed */
.tx-feed { list-style: none; margin: 0; padding: 0; }
.tx-feed__head { display: flex; justify-content: space-between; gap: 1rem; padding-block: 2.5rem 1rem; border-bottom: 1px solid var(--tx-hair); }
.tx-item { position: relative; display: grid; gap: 1rem; padding-block: 2rem; border-bottom: 1px solid var(--tx-hair); }
.tx-item::after {                  /* the line lights up under the row you point at */
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: #fff; box-shadow: var(--tx-glow); transform: scaleX(0); transform-origin: left; transition: transform .5s ease;
}
.tx-item__meta { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.tx-item__title {
    font-family: var(--tx-display); font-weight: 200; color: var(--tx-ink); text-wrap: balance;
    font-size: clamp(1.625rem, 1.1rem + 2.4vw, 3rem); line-height: 1.18; letter-spacing: .01em;
}
.tx-item__excerpt { max-width: 40rem; line-height: 1.7; }
.tx-item__more { color: var(--tx-ink); }
.tx-item__img, .tx-cover { position: relative; display: block; overflow: hidden; background: #0a0a0b; }
.tx-item__img { aspect-ratio: 21 / 9; }
.tx-item__img img, .tx-cover img {
    display: block; width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(1) contrast(1.12) brightness(.78);
}
/* Covers graded for TRANSMISE (img/tx/…) carry their own red: no second grey-out.
   Their loop sits over the still and fades in once it plays (owner 22.11.2026). */
.tx-item__img img.is-graded, .tx-cover img.is-graded { filter: none; }
.tx-loop {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity .9s ease;
}
.tx-loop.is-on { opacity: 1; }
.tx-item__img::after, .tx-cover::after {   /* red light from below, scanlines over the frame */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 2px, transparent 2px 5px),
                linear-gradient(0deg, rgba(255, 26, 26, .26), rgba(255, 26, 26, 0) 42%);
}
@media (hover: hover) {
    .tx-item:hover::after { transform: scaleX(1); }
    .tx-item:hover .tx-item__more { color: var(--tx-red); }
}
.tx-item:focus-visible { outline: 1px solid var(--tx-red); outline-offset: 4px; }
.tx nav[role="navigation"] { margin-top: 2rem; font-family: var(--tx-mono); }

/* an article */
.tx-head { text-align: center; padding-bottom: 3rem; }
.tx-head__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.25rem; margin: clamp(2.5rem, 8vw, 5.5rem) 0 1.5rem; }
.tx-title {
    max-width: 22ch; margin: 0 auto;
    font-family: var(--tx-display); font-weight: 200; color: var(--tx-ink); text-wrap: balance;
    font-size: clamp(2rem, 1.2rem + 4vw, 4.5rem); line-height: 1.14; letter-spacing: .015em;
}
.tx-head .tx-beam { width: min(46%, 22rem); margin: clamp(1.75rem, 4vw, 2.75rem) auto; }
.tx-lede { max-width: 38rem; margin: 0 auto; font-family: var(--tx-display); font-weight: 300; font-size: clamp(1.0625rem, 1rem + .5vw, 1.3125rem); line-height: 1.65; color: var(--tx-text); }
.tx-cover { margin: 0; aspect-ratio: 4 / 3; border-block: 1px solid var(--tx-hair); }
.tx-post .tx-horizon { border-bottom: 1px solid var(--tx-hair); }
:lang(vi) .tx-title, :lang(vi) .tx-item__title { line-height: 1.3; }

.tx-body { max-width: 40rem; margin: 3.5rem auto 0; font-size: 1.0625rem; line-height: 1.75; color: var(--tx-text); }
.tx-body > :first-child { margin-top: 0; }
.tx-body p, .tx-body ul, .tx-body ol { margin: 0 0 1.15rem; }
.tx-body > p:first-of-type { color: var(--tx-ink); }
.tx-body h2 {
    margin: 3.25rem 0 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--tx-hair);
    font-family: var(--tx-display); font-weight: 300; font-size: 1.1875rem; line-height: 1.4;
    letter-spacing: .16em; text-transform: uppercase; color: var(--tx-ink); counter-increment: tx-sec;
    scroll-margin-top: 5.5rem;   /* «#section» links land below the sticky header */
}
.tx-body { counter-reset: tx-sec; }
.tx-body h2::before {
    content: counter(tx-sec, decimal-leading-zero) " //"; display: block; margin-bottom: .45rem;
    font-family: var(--tx-mono); font-size: .6875rem; letter-spacing: .28em; color: var(--tx-red);
}
.tx-body h3 { margin: 2rem 0 .5rem; font-family: var(--tx-mono); font-weight: 400; font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--tx-ink); }
.tx-body ul, .tx-body ol { list-style: none; padding-left: 0; }
.tx-body ul > li { position: relative; padding-left: 1.6rem; margin-bottom: .45rem; }
.tx-body ul > li::before { content: ""; position: absolute; left: 0; top: .82em; width: .75rem; height: 1px; background: var(--tx-red); box-shadow: 0 0 6px rgba(255, 42, 42, .9); }
.tx-body ol { counter-reset: tx-step; border-top: 1px solid var(--tx-hair); }
.tx-body ol > li { counter-increment: tx-step; position: relative; margin: 0; padding: .95rem 0 .95rem 3.25rem; border-bottom: 1px solid var(--tx-hair); }
.tx-body ol > li::before {
    content: counter(tx-step, decimal-leading-zero); position: absolute; left: 0; top: 1.2rem;
    font-family: var(--tx-mono); font-size: .8125rem; letter-spacing: .12em; color: var(--tx-red);
}
.tx-body blockquote {
    margin: 2.5rem 0; padding: .25rem 0 .25rem 1.5rem; border-left: 1px solid #fff; box-shadow: -1px 0 0 0 #fff, -6px 0 14px -6px #ff1a1a;
    font-family: var(--tx-display); font-weight: 200; font-size: clamp(1.375rem, 1.2rem + 1vw, 1.875rem); line-height: 1.4; color: var(--tx-ink);
}
.tx-body blockquote p { margin: 0; }
.tx-body a { color: var(--tx-ink); text-decoration: underline; text-decoration-color: var(--tx-red); text-underline-offset: 4px; }
.tx-body strong { color: var(--tx-ink); font-weight: 600; }
.tx-body img { display: block; max-width: 100%; height: auto; margin: 2rem 0; filter: grayscale(1) contrast(1.1); }
/* Art made for TRANSMISE (img/tx/…) carries its own red, as the graded covers do: no grey-out. */
.tx-body img.is-graded { filter: none; margin: 1.5rem auto 2rem; }
.tx-body code { font-family: var(--tx-mono); font-size: .9em; color: var(--tx-ink); word-break: break-word; }
.tx-end { margin: 3.5rem 0 0; text-align: center; }
@media (min-width: 620px) {
    .tx-body ul:has(> li:nth-child(6)) { columns: 2; column-gap: 2.5rem; }
    .tx-body ul:has(> li:nth-child(6)) > li { break-inside: avoid; }
}

/* the payload: the shop's own cards, in this room's type */
.tx-section { margin-top: 4.5rem; }
.tx-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 1rem; margin-bottom: 2rem; border-bottom: 1px solid var(--tx-hair); }
.tx-section__title { margin: 0; font-family: var(--tx-display); font-weight: 300; font-size: 1.0625rem; letter-spacing: .22em; text-transform: uppercase; color: var(--tx-ink); }
.tx .card__name { font-family: var(--tx-display); font-weight: 300; font-size: 1rem; line-height: 1.35; letter-spacing: .01em; }
.tx .card__meta { font-family: var(--tx-mono); font-size: .6875rem; letter-spacing: .08em; }
.tx-section .tx-feed .tx-item:last-child { border-bottom: 0; }

@media (min-width: 760px) {
    .tx-mono { font-size: .75rem; letter-spacing: .28em; }
    .tx-item { grid-template-columns: minmax(0, 1fr) 17rem; gap: 1rem 3rem; padding-block: 2.75rem; }
    .tx-item > * { grid-column: 1; }
    .tx-item__img { grid-column: 2; grid-row: 1 / span 4; align-self: center; aspect-ratio: 3 / 2; }
    .tx-cover { aspect-ratio: 21 / 9; }
    .tx-body { font-size: 1.125rem; margin-top: 4.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .tx-dot, .tx-horizon__lights { animation: none; }
    .tx-item::after { transition: none; }
}

/* ---- the page around the section ------------------------------------------------
   On these pages the whole document is the black room: the shop's header is
   hidden (the guest mark in .tx-top leads back to the shop) and the footer sits
   on the same black in the section's type. Scoped by :has(.tx), so nothing
   here can reach a shop page even if this stylesheet stays loaded after a
   Turbo visit. */
body:has(.tx) {
    background: #030304;
    --abyss: #030304; --depth: #0b0b0c;
    --hair: rgba(255, 255, 255, .13); --hair-soft: rgba(255, 255, 255, .08);
}
body:has(.tx) .mast { display: none; }

.tx-top { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1rem; padding-block: .75rem; }
.tx-top__r { text-align: right; }
@media (max-width: 759px) { .tx-top { font-size: .625rem; letter-spacing: .1em; gap: .5rem; } }
.tx-top a { display: inline-flex; align-items: center; min-height: 44px; }
.tx .tx-mark { justify-content: center; min-width: 44px; color: var(--tx-ink); }
.tx-mark svg { width: 1.75rem; height: 1.75rem; display: block; }
.tx-mark:focus-visible { outline: 1px solid var(--tx-red); outline-offset: 2px; }

.tx-langs { display: flex; justify-content: center; gap: .25rem; margin-top: 4.5rem; }
.tx-langs a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.tx-langs a[aria-current="true"] { color: var(--tx-red); }

body:has(.tx) .foot {
    background: #030304; border-top: 1px solid rgba(255, 255, 255, .13);
    font-family: "TX Mono", ui-monospace, Menlo, monospace; font-size: .75rem; letter-spacing: .04em; color: #7d7d7b;
}
body:has(.tx) .foot h3 { font-family: inherit; font-size: .6875rem; font-weight: 400; letter-spacing: .24em; text-transform: uppercase; color: #ecece9; }
body:has(.tx) .foot a:hover { color: #ecece9; }
body:has(.tx) .foot__logo > img { display: none; }          /* the header shows only the mark; no wordmark down here either */
body:has(.tx) .foot .chat, body:has(.tx) .foot .btn { border-radius: 0; font-family: inherit; letter-spacing: .08em; }
body:has(.tx) .foot__trade { background: none; border-radius: 0; }

/* The way to the basket, shown once something is in it (owner, 22.11.2026). */
.tx-top__r { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.tx-cart { color: #ff3b30; text-decoration: none; letter-spacing: .14em; white-space: nowrap; }
.tx-cart:hover, .tx-cart:focus-visible { color: #fff; }
