/* The Prism (DESIGN.md, The Prism): the card site's own look over the house
   style, after the prismatic augments of Riot's games, with more white
   glisten than their pink and violet (Pryce, 20 Oct 2026).

   Only a site whose profile has look="prism" (the card site, and the
   jewelry site since 17 Nov 2026) loads this sheet, last, after the
   page's own (site_brand.site_look_css), and every rule here is scoped to
   :root[data-look="prism"], so Golden Games never draws a line of it. The
   colours are tokens.css's (the prism family and the Prism's faces); this
   sheet only says where the light falls:

   - the light from above, across the top of every page and the rail;
   - type that catches it: the name, a page or section title, the poster,
     a card's name and its price;
   - rules and edges where it lands: a plane's rule and every wall across
     the top of a list, a key's chrome edge, the rail's edge, the top bar's
     and the tab bar's lines;
   - holo frames on card art, with the specular band across the picture;
   - the game layer's parts (play.css): its readouts, its pictures and
     the tiles you press;
   - Charm's logo at the mark, the name and the door's dial (only where
     data-logo="charm": the card site; the jewelry site wears the light
     round its own name), and glitter at the door and the waiting surfaces.

   The sheen is still: nothing here moves (DESIGN.md, Motion). Words hold
   their floors (test_prism_look): the prism type's stops hold text-1's 7:1
   on every ground, a label on a fill keeps 4.5:1 under the light, a key's
   chrome edge never falls under the edge grey, and text and edges keep
   their floors under the light from above. */

/* —— The rail: a light over the mark, its edge lit from the top —— */
:root[data-look="prism"] .app-sidebar {
    background: var(--prism-aura), var(--bg-0);
    border-right-color: transparent;
}
:root[data-look="prism"] .app-sidebar::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, var(--prism-rule-stops));
    pointer-events: none;
}

/* —— The light: from above every page ——
   The aura lies across the top of the page as it does the rail's, white
   with ice to the right, and scrolls away with the masthead: by the first
   section it has gone, so a sticky head or bar never cuts it. On the desk
   the top bar is empty page until the title moves up into it, so until
   then it lets the light through. The Sale Logger keeps its own ground. */
:root[data-look="prism"] body:not(.logger-mode) .app-main {
    background: var(--prism-aura) no-repeat;
}
@media (min-width: 992px) {
    :root[data-look="prism"] body:not(.no-page-masthead) .app-topbar:not(:has(.topbar-heading.is-visible, .inv-toolbar)) {
        background: transparent;
    }
}

/* The logo (DESIGN.md, The Prism): the mark is Charm's C in the face's
   pearl, where the house draws its ring, as on the favicon. While a Stream
   is LIVE it keeps the blue LIVE dot at two o'clock (app.css ::after). */
:root[data-look="prism"][data-logo="charm"] .brand-mark {
    border-color: transparent;
    background: var(--prism-mark) center / contain no-repeat border-box;
}
/* The name is the logo's word, CHARM with the sparkle A, filled with the
   light as the typed name's letters were; on the door, the word over the
   TCG line. The typed name stays under it for screen readers, and in forced
   colours and print it is the name again. */
@media screen and (forced-colors: none) {
    :root[data-look="prism"][data-logo="charm"] :is(.brand-name, .signin-name) {
        position: relative;
        flex: none;
        overflow: hidden;
        white-space: nowrap;
        text-indent: 100%;
        text-overflow: clip;
    }
    :root[data-look="prism"][data-logo="charm"] :is(.brand-name, .signin-name)::before {
        content: "";
        position: absolute;
        inset: 0;
        background: var(--prism-type);
        -webkit-mask: var(--word) left center / contain no-repeat;
        mask: var(--word) left center / contain no-repeat;
    }
    /* The word is 7.01 times as wide as its capitals are tall, and 4.37
       times over the TCG line. */
    :root[data-look="prism"][data-logo="charm"] .brand-name {
        --word: var(--prism-word);
        display: inline-block;
        width: 5.61em;
        height: 0.8em;
    }
    :root[data-look="prism"][data-logo="charm"] .signin-name {
        --word: var(--prism-word-tcg);
        width: 4.59em;
        height: 1.05em;
        margin-bottom: var(--space-2);
    }
}

/* —— The top bar and the tab bar: their lines catch the light ——
   wherever the house draws them: on the desk once the title is up, and
   always on a phone or a tablet. */
:root[data-look="prism"] .app-topbar:has(.topbar-heading.is-visible),
:root[data-look="prism"] body.no-page-masthead .app-topbar,
:root[data-look="prism"] .app-topbar:has(.inv-toolbar) {
    border-image: var(--prism-rule) 1;
}
@media (max-width: 991px) {
    :root[data-look="prism"] .app-topbar {
        border-image: var(--prism-rule) 1;
    }
}
@media (max-width: 767.98px) {
    :root[data-look="prism"] .tabbar {
        border-image: var(--prism-rule) 1;
    }
    /* The current tab: a short bar of the light over its icon. */
    :root[data-look="prism"] .tabbar-tab.is-current {
        position: relative;
    }
    :root[data-look="prism"] .tabbar-tab.is-current::before {
        content: "";
        position: absolute;
        top: 0;
        left: 30%;
        right: 30%;
        height: 2px;
        background: var(--prism-type);
    }
}

/* —— Prism type: the light in the letters ——
   The name, the current page in the rail (and its group), page and section
   titles, the poster and the readouts (the game layer's HUD and stat line
   among them, a quiet HUD figure left quiet), a card's name and its price. White
   turning through the palest tints on the dark faces (10:1 or more on every
   ground), deep inks with the same turn on Pearl. --sweep is how long one
   turn of the colours runs, so a short figure still shows it. Only where the
   browser clips a background to text, and never in forced colours or print,
   where the words stay plain text colour. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    @media screen and (forced-colors: none) {
        :root[data-look="prism"] :is(.brand-name, .sidebar-link.active, .sidebar-sublink.active, .page-title,
            .section-title, .poster, .kpi-value, .stat-card .stat-value, .signin-name, .tcg-panel-title, .tcg-price,
            .readout-poster, .bay-poster, .hud-item:not(.is-quiet) .hud-n, .statline-n) {
            background: var(--prism-type) 0 0 / var(--sweep, 6em) 100% repeat-x;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        :root[data-look="prism"] :is(.brand-name, .sidebar-link.active, .sidebar-sublink.active, .signin-name) { --sweep: 7em; }
        :root[data-look="prism"] :is(.poster, .readout-poster, .bay-poster) { --sweep: 3.5em; }
        :root[data-look="prism"] :is(.kpi-value, .stat-card .stat-value, .tcg-price, .hud-n, .statline-n) { --sweep: 6em; }
        /* Whatever sits inside keeps its own colour: a Stream kind tab, a
           mark, a count, the poster's hash and currency, a figure's cents. */
        :root[data-look="prism"] :is(.brand-name, .sidebar-link.active, .sidebar-sublink.active, .page-title,
            .section-title, .poster, .kpi-value, .stat-card .stat-value, .signin-name, .tcg-panel-title, .tcg-price,
            .readout-poster, .bay-poster, .hud-item:not(.is-quiet) .hud-n, .statline-n) * {
            -webkit-text-fill-color: currentColor;
        }
        /* A hot run rings Next Sticker in the ground's own dark so it reads
           through the flames (big-sale.css); that ring would cover the light,
           so there the figure stays text colour. */
        :root[data-look="prism"] .has-heat :is(.readout-poster, .bay-poster) {
            background: none;
            -webkit-text-fill-color: currentColor;
        }
    }
}

/* —— Planes: the rule on top catches the light from the upper left ——
   and spills a little of it down the plane; past 4rem the plane is ground
   again, so a plane never becomes a box. */
:root[data-look="prism"] :is(.kpi, .card, .glass-panel, .matte-surface, .surface-recessed, .surface-card,
    .surface-feature, .surface-overlay, .tcg-panel, .login-card, .channel-col) {
    border-image: var(--prism-rule) 1;
    background-image: linear-gradient(180deg, var(--prism-spill), transparent 4rem);
}
/* app.css sets these with !important (its border shorthand resets this too). */
:root[data-look="prism"] :is(.stat-card, .dashboard-card) {
    border-image: var(--prism-rule) 1 !important;
    background-image: linear-gradient(180deg, var(--prism-spill), transparent 4rem) !important;
}

/* Walls: the strong rule across the top of a list, a readout or a part of
   a page catches the light as a plane's does. Only walls drawn on the top
   edge alone (an image would light a row's other hairlines too); a table
   keeps its head rule (a collapsed table's cells take no image) and the
   Sale Logger keeps its own lines. */
:root[data-look="prism"] :is(.ledger-row:first-child, .ledger-row.is-total, .app-hero-stat,
    .home-pack-row:first-child, .home-alert:first-child,
    .needs-line:first-child:not(:last-child):not(.needs-ticked *), .home-week-poster, .inv-stat, .product-list,
    .live-list, .upcoming-list, .stream-settings, .stream-needs-list, .stream-needs-quiet, .stream-site-acts,
    .stream-chart-row, .audit-rows, .audit-quiet, .official-sales-cell, .stream-edit, .trend-strip, .match-table-card,
    .week-sales-list, .si-answer, .si-goal, .si-pane, .si-trace-grid .section, .si-floor-rule, .si-floor-form,
    .si-floor-record, .tb-stream, .ship-up, .ship-needs, .ship-missing-row:first-child, .ship-stages, .ship-fold,
    .channel-list, .channel-lines, .channel-plane, .lf-toc, .lf-plane, .pd-chart, .explorer-toolbar,
    .sched-assign-list, .sched-plans-list, .sched-mobile-day, .shift-mobile-day, .note-list li:first-child,
    .cal-quarter, .cal-edit-panel, .cal-interactive, .cal-day-panel, .cal-backlog-panel, .cal-week-strip,
    .cal-checkin, .today-lines, .about-step, .bay-band, .vlt-plane, .up-week, .bc-front, .bc-plane, .bc-people,
    .vlt-case-card) {
    border-image: var(--prism-rule) 1;
}

/* —— Keys: chrome where the light lands ——
   Every key but the main one takes a chrome edge, lit along the top and
   thrown back at the foot (the dark face; Pearl and the plate keep the edge
   grey, which holds 3:1 there). The edge is a second background under the
   key's face, so the radius holds; a state only changes --lit-face. A
   disabled key keeps the house's dashed edge (app.css, !important). */
:root[data-look="prism"] :is(.btn-outline-primary, .btn-secondary, .secondary-button, .btn-outline-secondary,
    .btn-outline-light, .btn-outline-dark, .btn-outline-info, .btn-outline-success, .btn-outline-warning,
    .btn-outline-danger, .btn-danger, .btn-warning, .btn-info, .btn-light, .btn-dark) {
    --lit-face: var(--bg-2);
    border-color: transparent;
    background: linear-gradient(var(--lit-face), var(--lit-face)) padding-box, var(--prism-edge) border-box;
}
:root[data-look="prism"] :is(.btn-outline-primary, .btn-secondary, .secondary-button, .btn-outline-secondary,
    .btn-outline-light, .btn-outline-dark, .btn-outline-info, .btn-outline-success, .btn-outline-warning,
    .btn-outline-danger, .btn-danger, .btn-warning, .btn-info, .btn-light, .btn-dark):hover {
    --lit-face: var(--bg-3);
}
/* Pressed or picked: a tier up, and the house's ink underline drawn in the
   light. */
:root[data-look="prism"] :is(.btn-check:checked + .btn, .btn.active):not(.btn-primary, .primary-button, .btn-success) {
    border-color: transparent;
    background:
        var(--prism-type) bottom / 100% 2px no-repeat padding-box,
        linear-gradient(var(--bg-3), var(--bg-3)) padding-box,
        var(--prism-edge) border-box;
    box-shadow: none;
}

/* Segmented keys and the menu key: the same chrome. */
:root[data-look="prism"] :is(.seg-item, .nav-toggle, .nav-close) {
    --lit-face: var(--bg-1);
    border-color: transparent;
    background: linear-gradient(var(--lit-face), var(--lit-face)) padding-box, var(--prism-edge) border-box;
}
:root[data-look="prism"] :is(.seg-item, .nav-toggle, .nav-close):hover {
    --lit-face: var(--bg-2);
}
:root[data-look="prism"] :is(.seg-item[aria-pressed="true"], .seg-item[aria-current="page"], .seg-item.is-active,
        .tcg-came-radio:checked + .tcg-came-opt) {
    background:
        var(--prism-type) bottom / 100% 2px no-repeat padding-box,
        linear-gradient(var(--bg-3), var(--bg-3)) padding-box,
        var(--prism-edge) border-box;
    box-shadow: none;
}

/* The main key stays the house's green, with the light across it: the
   specular band and a lit top edge. Its label holds 4.5:1 under the band. */
:root[data-look="prism"] :is(.btn-primary, .primary-button, .btn-success) {
    background: var(--prism-sheen), var(--signal);
    box-shadow: inset 0 1px 0 rgb(var(--prism-glint-rgb) / 0.3);
}
:root[data-look="prism"] :is(.btn-primary, .primary-button, .btn-success):hover {
    box-shadow: inset 0 1px 0 rgb(var(--prism-glint-rgb) / 0.3), inset 0 0 0 100vmax rgb(var(--shade-rgb) / 0.08);
}
:root[data-look="prism"] :is(.btn-primary:active, .btn-primary.active, .btn-check:checked + .btn-primary,
    .btn-success:active) {
    box-shadow: inset 0 1px 0 rgb(var(--prism-glint-rgb) / 0.3), inset 0 0 0 100vmax rgb(var(--shade-rgb) / 0.16);
}

/* The Sale Logger's main keys are the face's ink (Pryce's call, 10 Oct):
   on the Prism that ink is pearl. A key that answers, waits or steps back
   for a combo keeps the house's look. */
:root[data-look="prism"] :is(.btn-log, .combo-log-btn, .same-dock-btn):not(:disabled):not(.is-answering) {
    background-image: var(--prism-pearl);
}
:root[data-look="prism"] .logger.combo-open .same-dock-btn {
    background-image: none;
}

/* The toast, an inverted plane: pearl too. */
:root[data-look="prism"] .toast {
    background: var(--prism-pearl);
}

/* A dialog: the augment's chrome frame round an opaque plane. */
:root[data-look="prism"] .modal-content {
    border-color: transparent !important;
    background: linear-gradient(var(--glass-solid), var(--glass-solid)) padding-box, var(--prism-frame) border-box !important;
}

/* —— Waiting surfaces: the dot field glitters ——
   The house's grille with scattered glints over it (--prism-glitter, a tile
   larger than the module), so they fall like glitter, not a grid. Still
   never under numbers, text or keys. */
:root[data-look="prism"] .dot-field {
    background-image:
        var(--prism-glitter),
        radial-gradient(circle at 4px 4px, var(--garnish-dot) 1px, transparent 1.25px);
    background-size: 120px 120px, var(--garnish-pitch) var(--garnish-pitch);
}
:root[data-look="prism"] .empty-state::before {
    background-image:
        var(--prism-glitter),
        radial-gradient(circle at 4px 4px, var(--line-strong) 1px, transparent 1.25px);
    background-size: 120px 120px, 8px 8px;
}

/* —— The door: the augment's card ——
   The plate is the card: a chrome frame with an inner hairline, the light
   from the upper left, and the glittering grille. The dial holds the logo:
   the ring in the prism's colours, lit from inside, round Charm's C on its
   strap in the face's pearl, with the light blooming behind the C's back. */
:root[data-look="prism"] .signin-plate {
    border: 2px solid transparent;
    background:
        var(--prism-glitter) 0 0 / 120px 120px padding-box,
        radial-gradient(circle at 4px 4px, var(--garnish-dot) 1px, transparent 1.25px) 0 0 / var(--garnish-pitch)
            var(--garnish-pitch) padding-box,
        radial-gradient(64rem 30rem at 12% -4rem, var(--prism-light), transparent 70%) padding-box,
        radial-gradient(40rem 24rem at 88% -6rem, var(--prism-light-2), transparent 70%) padding-box,
        linear-gradient(var(--bg-1), var(--bg-1)) padding-box,
        var(--prism-frame) border-box;
    outline: 1px solid rgb(var(--prism-spark-rgb) / 0.1);
    outline-offset: -0.75rem;
}
:root[data-look="prism"] .signin-dial {
    border-color: transparent;
    background:
        radial-gradient(circle at 30% 32%, rgb(var(--prism-glint-rgb) / 0.09), transparent 42%) padding-box,
        linear-gradient(var(--bg-1), var(--bg-1)) padding-box,
        var(--prism-ring) border-box;
    box-shadow: inset 0 0 3rem rgb(var(--prism-glint-rgb) / 0.06);
}
:root[data-look="prism"][data-logo="charm"] .signin-dial {
    background:
        var(--prism-charm) center / contain no-repeat padding-box,
        radial-gradient(circle at 30% 32%, rgb(var(--prism-glint-rgb) / 0.09), transparent 42%) padding-box,
        linear-gradient(var(--bg-1), var(--bg-1)) padding-box,
        var(--prism-ring) border-box;
}

/* —— Cards: the art in a holo frame, the picked one lit ——
   Card art (Add cards' picked card, its search results) sits in the
   augment's frame with the specular band across the picture, like a card in
   a toploader under the ring light. */
:root[data-look="prism"] :is(.tcg-art, .tcg-thumb) {
    position: relative;
    border: 1px solid transparent;
    background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--prism-frame) border-box;
}
:root[data-look="prism"] :is(.tcg-art, .tcg-thumb)::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--prism-sheen);
    pointer-events: none;
}
/* The picked result and the picked condition: the house's selected ground,
   its ink rule drawn in the light, and the light washing in from it. */
:root[data-look="prism"] :is(.tcg-result.is-current, .tcg-condition:has(input:checked)) {
    background:
        linear-gradient(180deg, var(--prism-type-1), var(--prism-type-2) 35%, var(--prism-type-4) 65%, var(--prism-type-5))
            left / 2px 100% no-repeat,
        linear-gradient(90deg, rgb(var(--prism-spark-rgb) / 0.06), rgb(var(--prism-spark-rgb) / 0) 60%),
        var(--bg-3);
    box-shadow: none;
}

/* —— The game layer: its parts in the light ——
   play.css draws the game screens (the Vault, Set plans and the pages under
   them) in the house's finish; the Prism lights them as it lights the rest.
   The HUD's top rule is a wall and its figures are readouts (Prism type,
   above). A picture is card art: a photo or a card's scan sits in the holo
   frame, a glyph on its plain square. A tile you press takes the chrome
   wherever the house gives it the edge: pointed at, or a bin once full.
   Marks, pips, odds and scales stay ink: they count by shape, and the
   light never stands for a value. */

/* The HUD: the light on its top rule's own row (its foot is a hairline,
   which a border image would light too). */
:root[data-look="prism"] .hud {
    border-top-color: transparent;
    background: var(--prism-rule) top / 100% 1px no-repeat border-box;
}
/* The figure picked on Cases: a tier up, its underline drawn in the light, as
   a picked key's is. */
:root[data-look="prism"] .vlt-case-figures .hud-item.is-current {
    background: var(--prism-type) bottom / 100% 2px no-repeat, var(--bg-1);
    box-shadow: none;
}

/* A picture: the frame round the photo or the scan, the plate's grey inside
   it. A faded or greyed picture takes its frame with it. */
:root[data-look="prism"] img.art {
    border-color: transparent;
    background: linear-gradient(var(--plate-ground), var(--plate-ground)) padding-box, var(--prism-frame) border-box;
}
/* A Case's own card holds its picture large: the band across it too, while
   the picture is not greyed (out, not found, empty or retired: vault.css). */
:root[data-look="prism"] .vlt-case-card:not(.vlt-case-card--out, .vlt-case-card--not_found, .vlt-case-card--empty,
    .vlt-case-card--retired) .vlt-case-card-art:has(> img.art)::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-chip);
    background: var(--prism-sheen);
    pointer-events: none;
}

/* Card inventory's binder holds its cards large enough for the band too,
   until one sells out and fades. */
:root[data-look="prism"] .tcg-binder .shelf-tile:not(.is-empty) .shelf-art:has(> img.art)::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-chip);
    background: var(--prism-sheen);
    pointer-events: none;
}

/* Tiles: the chrome edge where the house draws the edge grey. A Case not
   found keeps its dashed edge. */
:root[data-look="prism"] :is(a.shelf-tile, a.vlt-shelf-tile:not(.vlt-shelf-tile--not_found), a.vlt-owed-tile,
    a.hub-key):hover {
    border-color: transparent;
    background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--prism-edge) border-box;
}
:root[data-look="prism"] .bin.is-full:not(.is-current) {
    border-color: transparent;
    background: linear-gradient(var(--bg-1), var(--bg-1)) padding-box, var(--prism-edge) border-box;
}
