/* Naktinė vitrina — scoped to case cards and case detail routes. */
.nv-card,
.nv-case-page {
  --nv-surface: rgba(10,10,22,.85);
  --nv-text: #f2efe8;
  --nv-muted: rgba(242,239,232,.62);
  --nv-primary: #ff2d78;
  --nv-secondary: #00d4ff;
  --nv-line: rgba(242,239,232,.14);
  --nv-accent: #00d4ff;
  color: var(--nv-text);
}
.nv-card[data-package-key="weapon-case-princess"],
.nv-case-page[data-weapon-view="weapon_princess"] { --nv-accent: #ff2d78; }
.nv-card ::selection, .nv-case-page ::selection { background: #00d4ff; color: #07070f; }
.nv-card :focus-visible, .nv-case-page :focus-visible { outline: 2px solid var(--nv-primary); outline-offset: 4px; }

/* Static product information stays available even before scripts load. */
.loot-grid .nv-card {
  background: var(--nv-surface); border: 1px solid var(--nv-line); border-radius: 14px;
  box-shadow: none; transform: none; transition: border-color .18s ease;
}
.loot-grid .nv-card:hover { border-color: rgba(242,239,232,.3); box-shadow: none; transform: none; }
.loot-grid .nv-card::before, .loot-grid .nv-card::after { display: none; }
.loot-grid .nv-card .nv-card-art { position: static; width: 100%; height: auto; min-height: 0; aspect-ratio: auto; margin: 0; padding: 12px 12px 0; background: none; border: 0; overflow: visible; }
.loot-grid .nv-card .nv-card-art::after { display: none; }
.loot-grid .nv-card .nv-card-art img { position: static; display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 3 / 2; padding: 0; object-fit: contain; transform: none; filter: none; border-radius: 6px; }
.nv-card-art figcaption { margin: 8px 6px 0; color: var(--nv-muted); font: 400 14px/1.4 'Rajdhani', sans-serif; }
.loot-grid .nv-card .pkg-body { position: static; padding: 12px 18px 18px; background: none; gap: 0; }
.loot-grid .nv-card .pkg-name { color: var(--nv-text); font-size: 28px; line-height: 1.1; margin: 0 0 10px; text-shadow: none; }
.nv-card-summary { color: var(--nv-muted); font: 400 17px/1.4 'Rajdhani', sans-serif; margin: 0 0 8px; min-height: 0; }
.nv-card-random { color: var(--nv-muted); font: 400 14px/1.4 'Barlow Condensed', sans-serif; margin: auto 0 10px; }
.loot-grid .nv-card .pkg-price-wrap { margin: 0 0 14px; padding: 0; }
.loot-grid .nv-card .pkg-price { color: var(--nv-secondary); font-size: 26px; }
.loot-grid .nv-card .pkg-currency { color: var(--nv-muted); }
.nv-card .nv-details { display: flex; justify-content: center; align-items: center; min-height: 44px; border: 1px solid var(--nv-secondary); border-radius: 6px; color: var(--nv-secondary); font: 600 18px/1.3 'Barlow Condensed', sans-serif; text-decoration: none; }
.nv-card .nv-details:hover { background: rgba(0,212,255,.08); }
.loot-grid .nv-card .pkg-card-btns { grid-template-columns: 1fr 1fr; margin-top: 8px; gap: 8px; }
.loot-grid .nv-card .pkg-btn { min-height: 44px; font-size: 14px; letter-spacing: .04em; padding: 8px; box-shadow: none; }
.loot-grid .nv-card .pkg-btn:not(.pkg-btn--cart) { background: var(--nv-primary); color: #07070f; }
.loot-grid .nv-card .pkg-btn--cart { color: var(--nv-muted); border-color: rgba(242,239,232,.2); }
.loot-grid .nv-card .pkg-btn:hover { transform: none; box-shadow: none; }

/* Detail layout: the existing opener node is moved here, never recreated. */
body.nv-case-page { background: #07070f; font-family: 'Rajdhani', system-ui, sans-serif; --text: #f2efe8; }
/* Main-page brand treatment, separate from the unchanged reward rarity palette. */
.nv-case-page .site-header { background: rgba(7,7,15,.72); border-bottom-color: rgba(255,45,120,.1); }
.nv-case-page .site-header.scrolled { background: rgba(7,7,15,.95); border-bottom-color: rgba(255,45,120,.2); }
.nv-case-page .logo-wrap { box-shadow: 0 0 0 1px rgba(255,45,120,.35), 0 0 14px rgba(255,45,120,.25); }
.nv-case-page .brand-name strong { letter-spacing: .16em; text-shadow: 0 0 14px rgba(255,45,120,.3); }
.nv-case-page .brand-name span { letter-spacing: .28em; }
.nv-case-page .nav-link { font-size: .85rem; letter-spacing: .14em; }
.nv-case-page .nav-link::after { background: var(--pink); box-shadow: 0 0 8px rgba(255,45,120,.4); }
.nv-case-page .nav-link:hover, .nv-case-page .nav-link.active { background: rgba(255,45,120,.07); }
.nv-case-page .nav-toggle span { background: var(--pink); box-shadow: 0 0 8px rgba(255,45,120,.4); }
.nv-case-page > .bg-stage, .nv-case-page > .bg-fog, .nv-case-page > .scanlines,
.nv-case-page > .bg-noise, .nv-case-page > .bg-vignette,
.nv-case-page .case-hero, .nv-case-page .case-selector { display: none; }
.nv-product { width: min(1180px, calc(100% - 64px)); margin: 0 auto; padding: 100px 0 64px; }
.nv-back { display: inline-flex; align-items: center; min-height: 44px; color: var(--nv-muted); font-size: 17px; margin-bottom: 20px; }
.nv-back:hover { color: var(--nv-primary); }
.nv-product-top { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.nv-product h1 { font: 400 clamp(42px, 5vw, 68px)/1 'Bebas Neue', sans-serif; color: var(--nv-text); letter-spacing: .05em; margin: 0 0 16px; }
.nv-tagline { font-size: 24px; font-weight: 600; line-height: 1.3; color: var(--nv-accent); margin-bottom: 16px; }
.nv-summary { color: var(--nv-text); font-size: 19px; line-height: 1.45; }
.nv-facts { color: var(--nv-muted); font-size: 17px; line-height: 1.5; max-width: 42ch; margin-top: 8px; }
.nv-price { font-size: 32px; font-weight: 600; color: var(--nv-secondary); margin: 20px 0; font-variant-numeric: tabular-nums; }
.nv-price span { font-size: 18px; font-weight: 400; color: var(--nv-muted); }
.nv-product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nv-button, .nv-product-actions .btn { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 16px; border: 1px solid rgba(242,239,232,.3); border-radius: 6px; background: transparent; color: var(--nv-text); font: 600 17px/1.3 'Barlow Condensed', sans-serif; cursor: pointer; text-decoration: none; letter-spacing: 0; text-transform: none; box-shadow: none; }
.nv-button--gold { background: var(--nv-primary); border-color: var(--nv-primary); color: #07070f; }
.nv-button:hover { border-color: var(--nv-primary); }
.nv-product-actions .btn { gap: 8px; color: var(--nv-secondary); border-color: var(--nv-secondary); }
.nv-product-art { margin: 0; padding: 0; min-width: 0; }
.nv-case-illustration { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 8px; }
.nv-product-art figcaption { margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--nv-muted); text-align: center; }
.nv-account { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--nv-line); }
.nv-account .wall { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; max-width: none; margin: 0; padding: 16px 0; text-align: left; background: none; border: 0; box-shadow: none; }
.nv-account .wall::before { display: none; }
.nv-account .wall-icon { display: none; }
.nv-account .wall-title { font-size: 24px; margin: 0; }
.nv-account .wall-sub { flex: 1; margin: 0; font-size: 17px; color: var(--nv-muted); }
.nv-account .btn { min-height: 44px; box-shadow: none; }
.nv-account .btn--gold { background: var(--nv-primary); color: #07070f; }
.nv-account .case-opener { padding: 20px 0; border: 0; background: none; box-shadow: none; }
.nv-account .open-btn { background: var(--nv-primary); color: #07070f; box-shadow: 0 8px 24px rgba(255,45,120,.18); }
.nv-account .open-btn:hover:not(:disabled) { box-shadow: 0 10px 28px rgba(255,45,120,.25); }
.nv-account .open-btn::after { display: none; }
.nv-account .case-box { border: 1px solid var(--nv-line); border-radius: 12px; background: var(--nv-surface); box-shadow: none; }
.nv-account .case-box::before, .nv-account .case-count-badge::before { display: none; }
.nv-account .case-count-badge { color: var(--nv-text); background: var(--nv-surface); border-color: var(--nv-line); box-shadow: none; }
.nv-account .char-select { min-height: 44px; }
.nv-account .char-select:focus-visible { outline: 2px solid var(--nv-primary); border-color: var(--nv-primary); box-shadow: none; }
.nv-contents { margin-top: 32px; }
.nv-samples, .nv-rare, .nv-full { margin-top: 36px; }
.nv-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.nv-section-head h2 { font: 400 30px/1.15 'Bebas Neue', sans-serif; letter-spacing: .02em; color: var(--nv-text); }
.nv-section-head > span { color: var(--nv-muted); font-size: 16px; white-space: nowrap; }
.nv-note { font-size: 16px; line-height: 1.5; color: var(--nv-muted); margin-top: 8px; max-width: 78ch; }
.nv-sample-grid, .nv-rare-grid, .nv-all-rewards { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.nv-sample-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.nv-reward { min-width: 0; padding: 12px; background: #0c0c1a; border-radius: 8px; display: flex; flex-direction: column; }
.nv-reward-image { display: grid; place-items: center; }
.nv-reward-image img { width: 104px; height: 104px; max-width: 100%; object-fit: contain; }
.nv-reward-copy h3 { font: 600 17px/1.3 'Rajdhani', sans-serif; margin: 10px 0 3px; color: var(--nv-text); overflow-wrap: anywhere; }
.nv-tier, .nv-reward-copy small { display: block; color: var(--nv-muted); font-size: 14px; line-height: 1.35; }
/* Match the original case.html reward palette without reintroducing glow. */
.nv-reward { --nv-rarity: #b8bcc9; }
.nv-reward[data-rarity="uncommon"] { --nv-rarity: var(--green); }
.nv-reward[data-rarity="rare"] { --nv-rarity: var(--cyan); }
.nv-reward[data-rarity="epic"] { --nv-rarity: var(--purple); }
.nv-reward[data-rarity="legendary"], .nv-reward[data-rarity="super"] { --nv-rarity: var(--gold); }
.nv-tier { color: var(--nv-rarity); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.nv-probability { margin-top: auto; padding-top: 10px; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--nv-rarity); white-space: nowrap; }
.nv-rare-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nv-all-rewards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.nv-reward--row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; background: transparent; border-radius: 0; border-bottom: 1px solid var(--nv-line); }
.nv-reward--row .nv-reward-image img { width: 64px; height: 64px; }
.nv-reward--row .nv-reward-copy h3 { margin-top: 0; }
.nv-reward--row .nv-probability { margin: 0; padding: 0; font-size: 17px; }
.nv-full { scroll-margin-top: 100px; padding-top: 28px; border-top: 1px solid var(--nv-line); }
.nv-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .6fr); gap: 16px; margin-top: 20px; }
.nv-filters label { display: grid; gap: 8px; font-size: 16px; color: var(--nv-muted); }
.nv-filters input, .nv-filters select { width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; border: 1px solid rgba(242,239,232,.3); border-radius: 6px; background: #0c0c1a; color: var(--nv-text); font: 500 17px/1.3 'Rajdhani', sans-serif; color-scheme: dark; caret-color: var(--nv-primary); }
.nv-filters input::placeholder { color: var(--nv-muted); }
.nv-list-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; color: var(--nv-muted); font-size: 16px; }
.nv-empty { margin: 24px 0; color: var(--nv-muted); }
.nv-image-missing { font-size: 14px; line-height: 1.3; color: var(--nv-muted); text-align: center; }
.nv-product [hidden] { display: none; }

/* Wider vehicle photographs use the same compact rows and the existing image dialog. */
[data-weapon-view="vehicle"] .nv-all-rewards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
[data-weapon-view="vehicle"] .nv-reward--row { grid-template-columns: 112px minmax(0, 1fr) auto; }
[data-weapon-view="vehicle"] .nv-reward-image img { width: 112px; height: 72px; }
.nv-zoom { display: grid; place-items: center; width: 100%; min-height: 72px; padding: 0; border: 0; border-radius: 4px; background: transparent; cursor: zoom-in; }
.nv-case-page .image-zoom-close { min-width: 44px; min-height: 44px; }

@media (max-width: 1000px) {
  .nv-product-top { gap: 24px; }
  .nv-sample-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nv-rare-grid { grid-template-columns: 1fr; }
  .nv-all-rewards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  #dezes .loot-grid { grid-template-columns: minmax(0, 1fr); }
  .loot-grid .nv-card .nv-card-art { padding: 10px 12px 0; }
  .loot-grid .nv-card .pkg-body { padding: 12px 18px 18px; }
  .loot-grid .nv-card .pkg-name { font-size: 30px; }
  .nv-card-summary { min-height: 0; }
  .nv-product { width: calc(100% - 32px); padding: 80px 0 40px; }
  .nv-back { margin-bottom: 12px; }
  .nv-product-top { display: flex; flex-direction: column; gap: 20px; align-items: stretch; }
  .nv-product h1 { font-size: 44px; margin-bottom: 12px; }
  .nv-tagline { font-size: 21px; margin-bottom: 12px; }
  .nv-summary { font-size: 18px; }
  .nv-facts { font-size: 16px; }
  .nv-price { margin: 16px 0; }
  .nv-product-actions { display: grid; grid-template-columns: 1fr; }
  .nv-product-art { order: -1; }
  .nv-case-illustration { max-height: 220px; }
  .nv-account { margin-top: 20px; padding-top: 12px; }
  .nv-account .wall { display: grid; gap: 10px; }
  .nv-account .wall .btn { justify-self: start; }
  .nv-section-head { align-items: flex-start; }
  .nv-section-head h2 { font-size: 26px; }
  .nv-section-head > span { font-size: 14px; }
  .nv-sample-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .nv-reward-image img { height: 88px; }
  .nv-reward-copy h3 { font-size: 17px; }
  .nv-all-rewards, .nv-filters { grid-template-columns: minmax(0, 1fr); }
  [data-weapon-view="vehicle"] .nv-all-rewards { grid-template-columns: minmax(0, 1fr); }
  [data-weapon-view="vehicle"] .nv-reward--row { grid-template-columns: 88px minmax(0, 1fr) auto; gap: 10px; }
  [data-weapon-view="vehicle"] .nv-reward-image img { width: 88px; }
  .nv-list-footer { flex-wrap: wrap; }
  .nv-list-footer .nv-button { width: 100%; }
  .nv-case-page .nav-toggle { min-width: 44px; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .nv-card, .nv-card *, .nv-case-page, .nv-case-page * { scroll-behavior: auto; transition: none !important; animation: none !important; }
}
