/* ------------------------------------------------------------------
 * uipack.css — the NANO UI Pack category page (_uipack.twig).
 * Linked by that partial only, after bundles.css, whose tokens
 * (--b-red, --b-line, --b-glass...), type (.bundle-kicker,
 * .bundle-title, .bundle-lead), hero (.bundles-hero*), pills, edition
 * switch, deck cards and sticky bar it builds on. The tier package
 * pages need nothing from here: they are ordinary bundle pages.
 * ------------------------------------------------------------------ */

.uip { --uip-max: 1480px; }
.uip > .uip-tiers,
.uip > .bundle-section { max-width: var(--uip-max); margin-left: auto; margin-right: auto; }
/* The tiers sit right under the hero, like the deck on the BUNDLES page. */
.uip > .uip-tiers { margin-top: 16px; }

/* Section heads: title left, controls right. */
.uip-rowhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(18px, 2vw, 28px); }
.uip-rowhead .bundles-switch { margin: 0; }

/* ──────────── HERO ────────────
 * .bundles-hero gives the short centred hero. The <link> to this file is
 * the section's first child, so bundles.css's `.bundles > * + *` gap would
 * push the hero down by a section's worth: cancelled here. The edition
 * switch, the trust points and the builder link share one row. */
.uip > .uip-hero { margin-top: 0; }
.uip-hero.bundles-hero { padding-top: 14px; }
.uip-hero .bundles-hero__sub strong { color: #fff; font-weight: 600; }
.uip-hero__title.bundles-hero__title { margin-top: 0; }
.uip-hero .bundles-hero__sub { max-width: 940px; }
.uip-hero__bar { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; }
.uip-hero__bar .bundles-switch,
.uip-hero__bar .bundles-hero__trust { margin: 0; }
.uip-hero__bar .bundle-pill { padding: 12px 16px; }
.uip-hero .bundles-hero__trust .b-ico { color: var(--b-red); }
/* Trailer, edition switch and trust points on ONE row down to 1366px
 * wide, so the first tier's button stays on a laptop's first screen. */
.uip-hero__bar { column-gap: 10px; }
.uip-hero .bundles-hero__trust li { padding: 7px 13px; }
.uip-hero__bar .bundles-switch button { padding: 10px 13px; }
/* Phones: the two points that sell (frameworks, rating) and a tighter
 * hero, so the first tier's price and button make the first screen. */
@media (max-width: 600px) {
    .uip-hero .bundles-hero__sub { font-size: 14.5px; }
    .uip-hero__bar { margin-top: 12px; gap: 8px; }
    .uip-hero .bundles-hero__trust li:nth-child(-n+3) { display: none; }

    .uip-tiers__grid { padding-top: 10px; }
}
/* Trailer chip: a poster from the pack, opens the player overlay. */
.uip-hero__trailer {
    display: inline-flex; align-items: center; gap: 10px; padding: 5px 13px 5px 5px; border-radius: 14px; cursor: pointer;
    font-family: "GTA Art Deco", sans-serif; text-align: left; color: #fff;
    background: var(--b-red-soft); border: 1px solid rgba(250, 64, 57, 0.45);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.uip-hero__trailer:hover { background: rgba(250, 64, 57, 0.24); border-color: rgba(250, 64, 57, 0.75); transform: translateY(-1px); }
.uip-hero__trailer-img { position: relative; display: block; width: 76px; border-radius: 9px; overflow: hidden; }
.uip-hero__trailer-img img { width: 76px; aspect-ratio: 16 / 9; height: auto; object-fit: cover; display: block; filter: brightness(0.7); }
.uip-hero__trailer-img i {
    position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff;
    background: var(--b-red); box-shadow: 0 0 18px rgba(250, 64, 57, 0.8);
}
.uip-hero__trailer-text strong { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.2; }
.uip-hero__trailer-text strong::first-letter { text-transform: uppercase; }
@media (max-width: 600px) { .uip-hide-sm { display: none; } }
.uip-hero__trailer-text small { display: block; font-size: 12px; color: var(--b-muted); }
.uip-hero__pick {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: "GTA Art Deco", sans-serif; font-size: 14.5px; color: #fff; text-decoration: none;
    border-bottom: 1px solid rgba(250, 64, 57, 0.6); padding-bottom: 2px;
}
.uip-hero__pick:hover { color: #ff8a85; }
.uip-tiers__pick { margin: 16px 0 0; text-align: center; }
.uip-hero__pick .b-ico { font-size: 13px; color: var(--b-red); }

/* ──────────── TIERS ──────────── */
.uip-tiers__grid {
    display: grid; grid-template-columns: repeat(var(--tiers, 3), minmax(0, 1fr));
    gap: clamp(16px, 1.6vw, 26px); align-items: stretch; padding-top: 18px;
}
.uip-tier .uip-tier__body { gap: 8px; padding-top: 10px; }
.uip-tier .bundle-card__name { font-size: clamp(21px, 1.7vw, 28px); }
/* A slightly wider crop of the tier art; the title sits low in the
 * picture, so the crop keeps the bottom. */
.uip-tier .card-image.bundle-card__img { aspect-ratio: 2 / 1; }
.uip-tier .bundle-card__img img { object-position: 50% 82%; }
.uip-tier__price { margin-top: -2px; }
.uip-tier__price .bundle-card__worth em { font-style: normal; margin-left: 6px; color: var(--b-muted); }
.uip-tier__price .bundle-card__worth em::before { content: "· "; }
.uip-tier .bundle-card__tagline { font-size: 14.5px; }

/* Two columns: ten scripts in five rows, so a card fits on one screen. */
.uip-tier__list {
    list-style: none; margin: 2px 0 0; padding: 11px 0 2px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px;
}
.uip-tier__list li { display: flex; align-items: center; gap: 9px; min-width: 0; font-family: "GTA Art Deco", sans-serif; font-size: 14px; line-height: 1.2; }
.uip-tier__mark {
    flex-shrink: 0; width: 21px; height: 21px; border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
}
.uip-tier__list .is-in .uip-tier__mark { color: var(--b-green); background: var(--b-green-soft); }
.uip-tier__list .is-in .uip-tier__name { color: #fff; }
.uip-tier__list .is-out .uip-tier__mark { background: rgba(255, 255, 255, 0.04); }
.uip-tier__list .is-out .uip-tier__mark i { width: 9px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.25); }
.uip-tier__list .is-out .uip-tier__name { color: rgba(255, 255, 255, 0.32); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.15); }
.uip-tier__list .is-extra { grid-column: 1 / -1; margin-top: 2px; padding-top: 9px; border-top: 1px dashed rgba(255, 255, 255, 0.08); }
.uip-tier__list .is-extra .uip-tier__mark { color: var(--b-red); background: var(--b-red-soft); }
.uip-tier__missing { display: none; margin: 0; font-family: "GTA Art Deco", sans-serif; font-size: 13px; line-height: 1.45; color: var(--b-muted); }

/* The "who it's for" line sits where the tagline was, in the card's
 * normal text style; the red tint marks the featured tier's line. */
.uip-tier__fit { color: var(--b-text); }
.uip-tier--featured .uip-tier__fit { color: #fff; }
.uip-tier .bundle-card__more { margin-top: auto; }

/* One column: biggest tier first (the cards are cheapest-first in the
 * markup, so the stack is simply reversed), and only what each tier
 * holds, with one line for the rest. */
@media (max-width: 1100px) {
    .uip-tiers__grid { display: flex; flex-direction: column-reverse; max-width: 640px; margin: 0 auto; gap: 30px; }
    .uip-tier__list .is-out { display: none; }
    .uip-tier__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .uip-tier__missing { display: block; }
}

/* Offer strip under the tiers: the real code and, for a dated launch
 * code, its countdown. */
.uip-offer {
    margin: 22px auto 0; max-width: 980px;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 12px 14px 12px 12px; border-radius: 14px;
    background: radial-gradient(70% 160% at 0% 50%, rgba(250, 64, 57, 0.14), rgba(250, 64, 57, 0) 70%), rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(250, 64, 57, 0.45);
}
.uip-offer__pct {
    display: inline-flex; align-items: baseline; gap: 4px; padding: 8px 12px; border-radius: 10px;
    font-family: "Reservation Wide", "GTA Art Deco", sans-serif; color: #fff;
    background: radial-gradient(ellipse 80% 160% at 50% 0%, #fa4039 0%, #942622 100%);
}
.uip-offer__pct b { font-weight: 400; font-size: 22px; }
.uip-offer__pct small { font-family: "GTA Art Deco", sans-serif; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.uip-offer__text { flex: 1; min-width: 220px; margin: 0; font-family: "GTA Art Deco", sans-serif; font-size: 14.5px; line-height: 1.45; color: var(--b-text); }
.uip-offer__text strong { color: #fff; margin-right: 6px; }
.uip-offer__ends { display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 999px; font-size: 12.5px; color: #ffc6c3; background: rgba(250, 64, 57, 0.16); font-variant-numeric: tabular-nums; }
.uip-offer__ends[hidden] { display: none; }
.uip-offer__code {
    display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; cursor: pointer;
    font-family: "GTA Art Deco", sans-serif; font-size: 16px; font-weight: 600; letter-spacing: 0.08em; color: #fff;
    background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.16);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.uip-offer__code em { font-style: normal; font-weight: 500; font-size: 12.5px; letter-spacing: 0.04em; color: var(--b-muted); }
.uip-offer__code:hover { border-color: rgba(250, 64, 57, 0.6); }
.uip-offer__code.is-copied { border-color: rgba(45, 255, 123, 0.6); }
.uip-offer__code.is-copied em { color: var(--b-green); }

.uip-tiers__note {
    margin: 14px auto 0; width: fit-content; max-width: 100%;
    display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 12px;
    font-family: "GTA Art Deco", sans-serif; font-size: 14.5px; color: var(--b-text);
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--b-line);
}
.uip-tiers__note .b-ico { font-size: 20px; color: var(--b-red); }
.uip-tiers__note strong { color: #fff; }

/* ──────────── SCREENS (one swipeable row) ──────────── */
.uip-rowhead__nav { display: flex; gap: 8px; }
.uip-arrow {
    width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
    color: #fff; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--b-line);
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.uip-arrow .b-ico { transform: rotate(45deg); }
.uip-arrow--prev .b-ico { transform: rotate(-135deg); }
.uip-arrow:hover:not(:disabled) { background: var(--b-red-soft); border-color: rgba(250, 64, 57, 0.5); }
.uip-arrow:disabled { opacity: 0.3; cursor: default; }

.uip-screens__track {
    list-style: none; margin: 0; padding: 4px 2px 14px;
    display: grid; grid-auto-flow: column; grid-auto-columns: min(420px, 82vw); gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 2px; overscroll-behavior-x: contain;
    scrollbar-width: thin; scrollbar-color: rgba(250, 64, 57, 0.5) transparent;
}
.uip-screen {
    scroll-snap-align: start; scroll-margin-top: 110px;
    display: flex; flex-direction: column; border-radius: 16px; overflow: hidden;
    background: var(--b-glass); border: 1px solid var(--b-line);
}
.uip-screen:target { border-color: rgba(250, 64, 57, 0.7); }
/* Hold and drag with a mouse (uipack.js); fingers already swipe. */
@media (hover: hover) and (pointer: fine) { .uip-screens__track { cursor: grab; } }
.uip-screens__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.uip-screens__track.is-dragging .uip-screen { pointer-events: none; }
.uip-screen__media { position: relative; background: #0c0c0f; }
.uip-screen__media img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; display: block; }
.uip-screen__n {
    position: absolute; left: 12px; top: 12px; padding: 4px 8px; border-radius: 6px;
    font-family: "GTA Art Deco", sans-serif; font-weight: 600; font-size: 12px; color: #fff; background: rgba(250, 64, 57, 0.92);
}
.uip-screen__text { flex: 1; display: flex; flex-direction: column; gap: 7px; padding: 14px 16px 16px; }
.uip-screen__when { margin: 0; font-family: "GTA Art Deco", sans-serif; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--b-muted); }
.uip-screen h3 { margin: 0; font-family: "Reservation Wide", "GTA Art Deco", sans-serif; font-weight: 400; font-size: 19px; text-transform: uppercase; color: #fff; }
.uip-screen__pitch { margin: 0; flex: 1; font-family: "GTA Art Deco", sans-serif; font-size: 14.5px; line-height: 1.5; color: var(--b-text); }
.uip-screen__pitch strong { color: #fff; font-weight: 600; }
.uip-screen__links { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 8px; }
.uip-screen__links .bundle-pill { padding: 8px 12px; font-size: 13.5px; }

/* ──────────── PICK YOUR OWN ──────────── */
.uip-build .bundle-lead { max-width: 720px; margin-top: 10px; }
.uip-build__layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(16px, 2vw, 28px); align-items: start;
}
.uip-build__grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
/* A row: thumbnail, name + price, tick box. */
.uip-pick {
    position: relative; cursor: pointer; height: 100%;
    display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: 14px;
    padding: 8px 14px 8px 8px; border-radius: 12px;
    background: rgba(255, 255, 255, 0.025); border: 1px solid var(--b-line);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.uip-pick:hover { border-color: rgba(255, 255, 255, 0.2); }
.uip-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.uip-pick:focus-within { outline: 2px solid rgba(250, 64, 57, 0.8); outline-offset: 2px; }
.uip-pick.is-on {
    border-color: rgba(250, 64, 57, 0.7);
    background: radial-gradient(ellipse 90% 120% at 0% 50%, rgba(250, 64, 57, 0.14), rgba(250, 64, 57, 0) 70%), rgba(255, 255, 255, 0.035);
    box-shadow: 0 14px 34px -24px rgba(250, 64, 57, 0.8);
}
.uip-pick__img { display: block; border-radius: 8px; overflow: hidden; }
.uip-pick__img img { width: 112px; aspect-ratio: 16 / 9; height: auto; object-fit: cover; display: block; }
.uip-pick__text { min-width: 0; }
.uip-pick__text strong { display: block; font-family: "GTA Art Deco", sans-serif; font-weight: 600; font-size: 15.5px; line-height: 1.2; color: #fff; }
.uip-pick__text small { display: block; margin-top: 2px; font-family: "GTA Art Deco", sans-serif; font-size: 12.5px; line-height: 1.3; color: var(--b-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uip-pick__ed {
    margin-left: 6px; padding: 2px 7px; border-radius: 999px; vertical-align: 2px;
    font-style: normal; font-weight: 600; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
    color: #fff; background: rgba(255, 255, 255, 0.12);
}
.uip-pick__ed[hidden] { display: none; }
.uip-pick__price { display: block; margin-top: 5px; font-family: "GTA Art Deco", sans-serif; font-weight: 600; font-size: 15px; color: #fff; }
.uip-pick__box {
    width: 26px; height: 26px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
    color: transparent; border: 1.5px solid rgba(255, 255, 255, 0.45);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.uip-pick.is-on .uip-pick__box { color: #fff; background: var(--b-red); border-color: var(--b-red); box-shadow: 0 6px 18px rgba(250, 64, 57, 0.5); }
.uip-pick.is-soon { cursor: default; opacity: 0.55; }
.uip-pick.is-soon:hover { border-color: var(--b-line); }
.uip-pick.is-soon .uip-pick__price { color: var(--b-muted); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

/* Summary: sticks while the list scrolls past on desktop, sits under it
 * on phones (and sticks to the bottom there once something is picked). */
.uip-build__sum {
    position: sticky; top: 96px;
    display: flex; flex-direction: column; gap: 13px;
    padding: 20px; border-radius: 18px;
    background: radial-gradient(ellipse 90% 50% at 50% 0%, rgba(250, 64, 57, 0.1), rgba(250, 64, 57, 0) 70%), var(--b-glass);
    outline: 1px solid var(--b-line);
}
.uip-build__head {
    margin: 0; display: flex; align-items: center; justify-content: space-between;
    font-family: "Reservation Wide", "GTA Art Deco", sans-serif; font-size: 18px; text-transform: uppercase; color: #fff;
}
.uip-build__clear {
    padding: 6px 10px; border-radius: 8px; border: 1px solid var(--b-line); cursor: pointer;
    font-family: "GTA Art Deco", sans-serif; font-size: 12.5px; text-transform: none; color: var(--b-muted); background: transparent;
}
.uip-build__clear:hover { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.uip-build:not(.has-picks) .uip-build__clear { visibility: hidden; }
.uip-build__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.uip-build__chips:empty { display: none; }
.uip-build__chips li {
    padding: 6px 10px; border-radius: 999px;
    font-family: "GTA Art Deco", sans-serif; font-size: 13px; color: #fff;
    background: var(--b-red-soft); border: 1px solid rgba(250, 64, 57, 0.35);
}
.uip-build__empty { margin: 0; font-family: "GTA Art Deco", sans-serif; font-size: 14px; color: var(--b-muted); }
.uip-build.has-picks .uip-build__empty { display: none; }
.uip-build__total {
    margin: 0; padding: 12px 0 0; border-top: 1px dashed rgba(255, 255, 255, 0.12);
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.uip-build__total dt { font-family: "GTA Art Deco", sans-serif; font-size: 15px; color: var(--b-text); }
.uip-build__total dd { margin: 0; font-family: "GTA Art Deco", sans-serif; font-weight: 600; font-size: 28px; color: #fff; }

.uip-build__perk { margin: 0; font-family: "GTA Art Deco", sans-serif; font-size: 13.5px; line-height: 1.4; }
.uip-build__perk[hidden] { display: none; }
.uip-build__perk-on { display: none; align-items: center; gap: 8px; color: var(--b-green); }
.uip-build__perk-on .b-ico { font-size: 15px; }
.uip-build__perk-off { color: var(--b-muted); }
.uip-build__perk.is-on .uip-build__perk-on { display: inline-flex; }
.uip-build__perk.is-on .uip-build__perk-off { display: none; }

/* Tier tip: a short red label (the saving), one line, and a quiet button,
   so it reads as a hint next to the main "Add" button, not a second offer. */
.uip-build__tip {
    display: flex; flex-direction: column; gap: 6px;
    padding: 12px 14px; border-radius: 12px; border: 1px solid var(--b-line); background: rgba(255, 255, 255, 0.03);
}
.uip-build__tip[hidden] { display: none; }
.uip-build__tip.is-better { border-color: rgba(250, 64, 57, 0.35); background: rgba(250, 64, 57, 0.06); }
.uip-build__tip p { margin: 0; }
.uip-build__tip-kick { font-family: "GTA Art Deco", sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--b-red); }
.uip-build__tip.is-near .uip-build__tip-kick { color: var(--b-muted); }
.uip-build__tip-text { font-family: "GTA Art Deco", sans-serif; font-size: 14px; line-height: 1.45; color: var(--b-muted); }
.uip-build__tip-text strong { color: #fff; font-weight: 600; }
.uip-build__tip .card-add-btn {
    height: 40px; margin-top: 6px;
    background: var(--b-red-soft); box-shadow: inset 0 0 0 1px rgba(250, 64, 57, 0.45);
}
.uip-build__tip .card-add-btn:hover { background: rgba(250, 64, 57, 0.24); }
.uip-build__tip .card-add-btn .card-add-btn-label { --label-size: 14px; }
.uip-build__tip .card-add-btn[hidden] { display: none; }
.uip-build__tip.is-near .card-add-btn { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.uip-build__add .card-add-btn-label { --label-size: 16px; }
.uip-build__add:disabled { cursor: not-allowed; filter: grayscale(0.7) brightness(0.7); box-shadow: none; }
.uip-build.is-busy .uip-build__add { cursor: progress; filter: none; }
.uip-build__fine { margin: 0; font-family: "GTA Art Deco", sans-serif; font-size: 12.5px; line-height: 1.45; color: var(--b-muted); }

@media (max-width: 1280px) {
    .uip-build__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
    .uip-build__layout { grid-template-columns: minmax(0, 1fr); }
    .uip-build__sum { position: sticky; top: auto; bottom: 10px; z-index: 5; box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, 0.9); background: #14161d; }
    .uip-build:not(.has-picks) .uip-build__sum { position: static; box-shadow: none; }
    .uip-build.has-picks .uip-build__fine { display: none; }
}
@media (max-width: 520px) {
    .uip-pick { grid-template-columns: 88px minmax(0, 1fr) auto; gap: 11px; }
    .uip-pick__img img { width: 88px; }
}

/* ──────────── CONTROL PANEL ──────────── */
.uip-panel {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(22px, 3.4vw, 56px); align-items: center;
    padding: clamp(16px, 2vw, 30px); border-radius: 22px;
    background: radial-gradient(70% 120% at 0% 50%, rgba(250, 64, 57, 0.12), rgba(250, 64, 57, 0) 70%), rgba(255, 255, 255, 0.02);
    border: 1px solid var(--b-line);
}
.uip-panel__media img {
    width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; display: block; border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.uip-panel .bundle-lead { margin-top: 12px; }
.uip-panel .bundle-why { margin-top: 18px; gap: 10px; }
.uip-panel .bundle-why li { font-size: clamp(14.5px, 1.05vw, 16.5px); }
@media (max-width: 1000px) { .uip-panel { grid-template-columns: minmax(0, 1fr); } }

/* ──────────── BETTER TOGETHER (compact) ──────────── */
.uip-links__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.uip-link {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center;
    padding: 12px; border-radius: 14px; background: var(--b-glass); border: 1px solid var(--b-line);
}
.uip-link__pair { display: grid; grid-template-columns: 64px auto 64px; align-items: center; gap: 4px; }
.uip-link__pair img { width: 64px; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border-radius: 6px; display: block; }
.uip-link__pair b {
    width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-family: "GTA Art Deco", sans-serif; font-size: 12px; color: #fff; background: var(--b-red);
}
.uip-link__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.uip-link__names { font-family: "GTA Art Deco", sans-serif; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--b-red); }
.uip-link__text { font-family: "GTA Art Deco", sans-serif; font-size: 14px; line-height: 1.45; color: var(--b-text); }
.uip-link__text strong { color: #fff; }
@media (max-width: 1100px) { .uip-links__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .uip-links__grid { grid-template-columns: minmax(0, 1fr); }
    .uip-link { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .uip-link__pair { grid-template-columns: 96px auto 96px; justify-content: start; }
    .uip-link__pair img { width: 96px; }
}

/* ──────────── TRAILER OVERLAY ──────────── */
.uip-video {
    position: fixed; inset: 0; z-index: 400;
    display: flex; align-items: center; justify-content: center; padding: 24px;
    background: rgba(5, 6, 9, 0.88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.uip-video__frame { width: min(1100px, 100%); aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8); }
.uip-video__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.uip-video__close {
    position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
    font-size: 26px; line-height: 1; color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
}
.uip-video__close:hover { background: var(--b-red-soft); }
.uip-video { flex-direction: column; gap: 14px; }
.uip-video__yt { font-family: "GTA Art Deco", sans-serif; font-size: 14px; color: var(--b-muted); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.uip-video__yt:hover { color: #fff; }

/* Sticky bar: bundles.css styles .bundle-sticky; the art is the tier art. */
.uip-sticky .bundle-sticky__btn .card-add-btn-label { --label-size: 16px; }

@media (prefers-reduced-motion: reduce) {
    .uip-pick, .uip-screens__track { transition: none; scroll-behavior: auto; }
}

/* Phones, hero row: last in the file so it wins over the chip's base
 * rules above. The trailer chip and the edition switch share one row. */
@media (max-width: 600px) {
    .uip-hero__trailer-text small { display: none; }
    .uip-hero__trailer { padding: 4px 10px 4px 4px; gap: 8px; }
    .uip-hero__trailer-img, .uip-hero__trailer-img img { width: 56px; }
    .uip-hero__trailer-text strong { font-size: 13px; }
    .uip-hero__bar { column-gap: 8px; }
    .uip-hero__bar .bundles-switch button { padding: 9px 10px; font-size: 13.5px; }
    .uip-hero__bar .bundles-switch button .b-ico { display: none; }
    /* No empty band above the headline: its first line sits beside the
       menu button (right-aligned, clear of the centred text), and the
       rating pill gives its row to the tier cards (the reviews further
       down carry it). The Complete price and button land higher. */
    .uip > .uip-hero { margin-top: -32px; }
    .uip-hero.bundles-hero { padding-top: 0; }
    .uip-hero .bundles-hero__trust { display: none; }
}
