:root {
  font-family: Kanit, "Segoe UI", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  color: #e9e8f7;
  background: #060712;
  --detail-panel: #141527;
  --detail-line: rgba(153, 131, 219, .22);
  --detail-muted: #bbb7d0;
  --detail-cyan: #49d7f6;
  --detail-purple: #a579ff;
}
body { min-height: 100vh; }
body:not(.has-account) .site-shell, body:not(.has-account) .balance-strip { display: none; }
button, input, select { font-family: inherit; }
:where(a, button, input, select):focus-visible { outline: 3px solid var(--detail-cyan); outline-offset: 3px; }
.lookup-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  width: calc(100% - 48px);
  max-width: 1240px;
  margin: 137px auto 32px;
  padding: 8px 0 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  text-align: center;
}
.lookup-copy { max-width: 820px; }
.lookup-art { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.lookup-copy, .lookup-form { position: relative; z-index: 1; }
.detail-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 16px; }
.detail-toolbar .eyebrow { flex: 1 1 260px; min-width: 0; line-height: 1.7; letter-spacing: .075em; }
.lookup-kicker { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 7px; margin-bottom: 14px; color: #a98af7; font: 600 11px/1.6 Orbitron, Kanit, sans-serif; letter-spacing: .12em; }
.lookup-kicker strong { color: #c8b7ff; font-weight: 700; }
.lookup-kicker [aria-hidden] { color: #817c9e; }
.lookup-copy h1 { margin: 0; font-family: Orbitron, Kanit, sans-serif; font-style: normal; font-size: clamp(36px, 4.8vw, 66px); line-height: 1.08; letter-spacing: -.05em; color: #eee8ff; }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .lookup-copy h1 { background: linear-gradient(115deg, #f8f6ff 6%, #d9d2f6 40%, #a970ff 68%, #ec50d1 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
@media (forced-colors: active) { .lookup-copy h1 { background: none; color: CanvasText; } }
.lookup-copy p { max-width: 690px; margin: 16px auto 0; color: #aaa6b9; font-size: 15px; line-height: 1.75; }
.stock-shortcut { width: fit-content; min-height: 39px; margin-left: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 14px; border: 1px solid rgba(69,216,255,.26); border-radius: 10px; background: rgba(69,216,255,.065); color: #aeeaff; font-size: 12px; font-weight: 800; letter-spacing: .08em; transition: background .2s, border-color .2s, transform .2s; }
.stock-shortcut:hover { background: rgba(69,216,255,.12); border-color: rgba(69,216,255,.5); transform: translateY(-2px); }
.stock-shortcut svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lookup-form { width: 100%; max-width: 580px; padding: 19px 21px; text-align: start; border: 1px solid rgba(151, 123, 255, .2); border-radius: 18px; background: linear-gradient(145deg, rgba(16,18,38,.78), rgba(9,10,24,.7)); box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.lookup-form label { display: block; margin-bottom: 11px; color: #d9d0ff; font: 700 11px/1.4 Orbitron, Kanit, sans-serif; letter-spacing: .1em; }
.lookup-controls { display: flex; align-items: center; min-height: 49px; border: 1px solid rgba(161, 136, 227, .45); border-radius: 10px; background: rgba(5, 7, 20, .9); overflow: hidden; }
.lookup-controls > span { padding-left: 16px; color: var(--detail-cyan); font-size: 20px; font-weight: 700; }
.lookup-controls input { width: 100%; min-width: 0; height: 49px; padding: 0 12px; border: 0; outline: 0; background: transparent; color: #fff; font-size: 18px; font-weight: 700; }
.lookup-controls input::placeholder { color: #77718f; font-weight: 400; }
.lookup-controls button { align-self: stretch; flex: none; padding: 0 16px; border: 0; background: linear-gradient(115deg, #9c5dff, #694af0); color: #fff; font-weight: 800; white-space: nowrap; }
.lookup-controls button:hover { background: linear-gradient(115deg, #b077ff, #7e5bfa); }
.lookup-status { min-height: 20px; margin: 12px 0 0; color: #a9d9e5; font-size: 12px; line-height: 1.45; }
.lookup-status.error { color: #ffa9b2; }
.profile-badge[hidden], .account-panel-badges[hidden] { display: none; }
.profile-badge { display: inline-flex; align-items: center; gap: 4px; min-height: 33px; padding: 5px 12px; border: 1px solid rgba(129, 148, 190, .32); border-radius: 999px; background: rgba(17, 24, 48, .65); color: #c8d0e8; font-size: 12px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.profile-badge strong { color: #f3f6ff; font-weight: 800; }
.profile-account-level { min-height: 41px; border-color: rgba(103, 195, 235, .43); background: rgba(46, 138, 187, .12); color: #e2e8f0; font-size: 13px; font-weight: 800; letter-spacing: -.025em; box-shadow: 0 0 11px rgba(49, 177, 224, .09); }
.profile-account-level strong { color: #e2e8f0; font-size: 18px; font-weight: 800; }
.profile-account-level.is-high-level, .profile-account-level.is-high-level strong { color: #facc15; text-shadow: 0 0 8px rgba(250, 204, 21, .55); }
.profile-endorsement { min-height: 31px; font-size: 11px; }
/* Match the endorsement text tiers used by Account Stock in assets/main.css. */
.profile-endorsement[data-endorsement-tier="1"], .profile-endorsement[data-endorsement-tier="1"] strong { color: #e2e8f0; }
.profile-endorsement[data-endorsement-tier="2"], .profile-endorsement[data-endorsement-tier="2"] strong { color: #a8c4b8; font-weight: 500; text-shadow: none; }
.profile-endorsement[data-endorsement-tier="3"] { border-color: rgba(104, 230, 163, .37); background: rgba(66, 174, 117, .1); color: #68e6a3; text-shadow: 0 0 6px rgb(74 222 128 / 24%); }
.profile-endorsement[data-endorsement-tier="3"] strong { color: #68e6a3; font-weight: 700; text-shadow: 0 0 6px rgb(74 222 128 / 24%); }
.profile-endorsement[data-endorsement-tier="4"] { border-color: rgba(255, 155, 213, .4); background: rgba(203, 86, 155, .1); color: #ff9bd5; text-shadow: 0 0 8px rgb(244 114 182 / 38%); }
.profile-endorsement[data-endorsement-tier="4"] strong { color: #ff9bd5; font-weight: 750; text-shadow: 0 0 8px rgb(244 114 182 / 38%); }
.profile-endorsement[data-endorsement-tier="5"] { border-color: rgba(234, 176, 255, .43); background: rgba(190, 107, 179, .1); color: #ffb5df; text-shadow: 0 0 7px rgb(244 114 182 / 22%); }
.profile-endorsement[data-endorsement-tier="5"] strong { color: #ffb5df; font-weight: 800; text-shadow: 0 0 7px rgb(244 114 182 / 22%); }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .profile-endorsement[data-endorsement-tier="5"] strong { background-image: linear-gradient(100deg, #ff929f, #ffd77a, #a9ef96, #7ce7e5, #a8bbff, #eab0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
@media (forced-colors: active) { .profile-endorsement[data-endorsement-tier="5"] strong { background: none; color: CanvasText; text-shadow: none; } }
.balance-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(161,123,250,.21); }
.balance-item { min-width: 0; min-height: 74px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.014)); }
.balance-icon { display: block; width: 28px; height: 28px; flex: none; object-fit: contain; }
.balance-copy { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.balance-item .balance-label { color: #92a1bf; font-size: 10px; font-weight: 700; letter-spacing: .045em; line-height: 1.18; text-transform: uppercase; }
.balance-item strong { color: #f1f6ff; font-size: 17px; font-weight: 800; line-height: 1.15; white-space: nowrap; }
.balance-item .balance-value-threshold { color: #facc15; text-shadow: 0 0 8px rgba(250,204,21,.35); }
.balance-item .balance-value-critical { color: #F379F3; text-shadow: 0 0 8px rgba(243,121,243,.35); }
.balance-item.is-premium { border-color: rgba(192,132,252,.24); background: rgba(192,132,252,.055); }
.balance-item.is-premium .balance-label, .balance-item.is-premium strong { color: #f9a8d4; font-weight: 600; }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .balance-item.is-premium .balance-label, .balance-item.is-premium strong { background: linear-gradient(90deg, #fb7185, #f9a8d4 50%, #facc15); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; text-shadow: 0 0 4px rgba(251,113,133,.38), 0 0 10px rgba(249,168,212,.25); }
}
@media (forced-colors: active) { .balance-item.is-premium .balance-label, .balance-item.is-premium strong { background: none; color: CanvasText; -webkit-text-fill-color: CanvasText; text-shadow: none; } }
.site-shell { max-width: 1610px; padding: 0 24px 110px; }
.tabs { height: auto; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; margin-bottom: 21px; padding: 0; overflow: visible; border: 0; border-radius: 0; background: none; }
.tab { min-height: 52px; padding: 12px; border: 1px solid var(--detail-line); border-radius: 12px; color: #d4cdea; background: #151629; font-size: 14px; font-weight: 700; }
.tab.active { color: #fff; border-color: rgba(174,125,255,.34); background: linear-gradient(110deg, rgba(132,80,238,.28), rgba(72,56,167,.18)); box-shadow: inset 0 1px rgba(255,255,255,.08); }
.tab:hover { color: var(--detail-cyan); background: rgba(145,98,255,.09); }
.tabs { scroll-margin-top: 94px; }
.sidebar-label, .eyebrow, .card-hero { color: #9690b7; }
.role-icon { filter: brightness(0) invert(1); opacity: .82; }
.hero-search, .filters input, .filters select, .reset-button { background: #121428; border-color: var(--detail-line); color: #efecfb; }
.hero-search, .filters input, .filters select, .reset-button { min-height: 40px; font-size: 14px; }
.filters input, .filters select { width: 100%; min-width: 0; }
/* Search fills the row; menus retain room for their longest localized option. */
.filters { grid-template-columns: minmax(0, 1fr) max-content max-content max-content; gap: 10px; align-items: stretch; }
.filters select { width: auto; max-width: 100%; padding-inline: 12px 32px; }
.filters input, .filters select, .reset-button { height: 44px; border-radius: 10px; line-height: 1.4; }
.reset-button { padding-inline: 14px; white-space: nowrap; }
@media (max-width: 1150px) {
  .filters { display: flex; flex-wrap: wrap; }
  .filters input { flex: 1 1 100%; }
  .filters select { flex: 1 0 auto; }
  .filters .reset-button { flex: 0 0 auto; margin-inline-start: auto; }
}
.filters select { appearance: none; -webkit-appearance: none; background-color: #111224; color: #e7e1f7; border: 1px solid var(--detail-line); min-height: 42px; padding-inline-end: 25px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23c7bde8' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
[dir="rtl"] .filters select { background-position: left 9px center; }
.reset-button { min-width: 0; height: auto; overflow-wrap: anywhere; }
.reset-button:hover { background: #252341; color: #efecfb; }
.hero-search:focus, .filters input:focus, .filters select:focus { border-color: var(--detail-cyan); box-shadow: 0 0 0 3px rgba(69,216,255,.12); }
.hero-option { color: #c6c2d8; }
.hero-option:hover { background: rgba(126, 95, 206, .13); }
.hero-option.active { background: rgba(139, 87, 255, .2); border-left-color: var(--detail-purple); color: #fff; }
.hero-option .hero-count, .result-line, .result-hint { color: #a19dba; }
h1, h2 { color: #f2f0ff; font-family: Orbitron, Kanit, sans-serif; }
/* Safari synthesizes oblique CJK from the base italic; keep section titles upright. */
.placeholder-panel h1 { font-style: normal; }
html:is([lang="zh"],[lang="ja"],[lang="ar"]) :is(.sidebar-label,.image-fallback) { font-style: normal; }
.source-note a { color: var(--detail-cyan); }
.data-action, .page-button { border-color: var(--detail-line); background: #171a30; color: #d6d6f2; }
.data-action:hover, .page-button:hover:not(:disabled) { background: #252341; }
.skin-card, .variant-card, .account-metric, .account-card, .account-table, .account-empty, .empty-state, .placeholder-panel { border-color: var(--detail-line); background: var(--detail-panel); color: #dfddee; box-shadow: 0 7px 30px rgba(0,0,0,.11); }
.skin-card:hover { border-color: rgba(169, 122, 255, .55); box-shadow: 0 12px 35px rgba(99,54,190,.2); }
.card-art { background: linear-gradient(135deg, #36315a, #142740); }
.card-art img, .weapon-panel .card-art img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.skin-card:hover .card-art img { transform: none; }
.card-name, .empty-state strong, .account-metric strong, .account-card strong, .competitive-card strong { color: #f7f3ff; }
.skin-card, .skin-dialog { --ac-weight-label: 800; }
.card-name { padding: 2px 0; margin-top: 3px; margin-bottom: 10px; font-size: 18px; line-height: 1.4; overflow-wrap: anywhere; }
.rarity-label .ac-special-skin { font-size: inherit; font-weight: 750; }
/* Wiki-style rarity labels are distinct from the shared Stock name effects. */
[data-rarity="common"] { --rarity-ink: #ffffff; }
[data-rarity="rare"] { --rarity-ink: #0b9ccf; }
[data-rarity="epic"] { --rarity-ink: #ed3cef; }
[data-rarity="legendary"] { --rarity-ink: #ff9c00; }
[data-rarity="ultra"] { --rarity-ink: #ff1c00; }
[data-rarity="mythic"] { --rarity-ink: #c1269a; }
[data-rarity="evolution"] { --rarity-ink: #4fb5b1; }
.rarity-label[data-rarity] .rarity-text,
.rarity-badge[data-rarity] .rarity-text { color: var(--rarity-ink, #b8bed0); font-weight: 750; }
.rarity-label[data-rarity="mythic"] .rarity-text,
.rarity-badge[data-rarity="mythic"] .rarity-text {
  background: linear-gradient(90deg, #01c19d, #dddddd, #c1269a);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.skin-card[data-rarity] { border-bottom-color: var(--rarity-ink, #43415a); }
.skin-card[data-rarity="ultra"] { border-bottom-color: #ff1c00; }
.card-bottom .catalog-label, .source-note, .empty-state, .account-card small, .account-metric span, .account-card span, .account-empty { color: var(--detail-muted); }
.placeholder-panel p, .competitive-view > p { color: #b7b1ce; }
.back-button { border-radius: 8px; background: linear-gradient(120deg, #8d5cff, #6641d7); }
.competitive-card { border-color: var(--detail-line); background: #171a30; }
.competitive-card span { color: #aaa5c1; }
.competitive-summary h2 { color: #d7d1ef; }
.account-hero { position: relative; padding: 24px; border: 1px solid var(--detail-line); border-radius: 18px; background: linear-gradient(145deg, rgba(16,18,38,.78), rgba(9,10,24,.7)); box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.account-hero-content { min-width: 0; width: 100%; }
.account-identity-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; margin-top: 12px; }
.account-hero .account-identity-row h1, #accountLevel { font-family: Orbitron, Kanit, sans-serif; font-size: clamp(22px, 2.2vw, 30px); font-style: normal; font-weight: 800; line-height: 1.3; letter-spacing: -.035em; }
.account-hero .account-identity-row h1 { margin: 0; min-width: 0; color: #f2f0ff; overflow-wrap: break-word; text-shadow: none; }
#accountLevel { min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; gap: .25em; }
#accountLevel strong { font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit; }
#accountLevel:not([hidden]) { display: block; }
.profile-account-version { font-size: .78rem; font-style: normal; line-height: 1; padding: .38rem .65rem; border-color: rgba(117,199,249,.4); color: #93d9ff; background: rgba(50,147,202,.09); }
.balance-label { overflow-wrap: break-word; }
.account-metric, .account-card, .account-table, .account-empty, .competitive-card, .placeholder-panel { border-radius: 12px; }
/* Collapsed borders ignore the table radius in Safari and Chromium. */
.account-table { border-collapse: separate; border-spacing: 0; overflow: hidden; }
.account-table thead tr:first-child th:first-child { border-start-start-radius: 11px; }
.account-table thead tr:first-child th:last-child { border-start-end-radius: 11px; }
.account-table tbody tr:last-child td { border-bottom: 0; }
.account-panel-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; }
.account-profile-tags, .account-stock-tags { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.account-stock-tags:not([hidden]) { border-inline-start: 1px solid var(--detail-line); padding-inline-start: 16px; }
.account-panel-badges .profile-badge, .account-panel-badges .details-stock-tag, .account-panel-badges .details-version { box-sizing: border-box; min-height: 30px; padding: 5px 10px; font-size: 12px; line-height: 1.25; }
.account-panel-badges .profile-badge strong { font-size: inherit; }
.account-stock-tags[hidden] { display: none; }
.details-stock-tag, .details-version { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 9px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; font: 800 12px/1.25 Kanit, sans-serif; }
.details-stock-tag.border-tier { color: #c084fc; border-color: rgba(192,132,252,.28); background: rgba(192,132,252,.07); }
.details-stock-tag.stacked { color: #ff5d66; border-color: rgba(255,93,102,.3); background: rgba(255,93,102,.07); }
.details-stock-tag.premium { color: #000; border: 0; border-radius: 6px; background: linear-gradient(90deg, #facc15, #fbbf24); text-transform: uppercase; box-shadow: 0 0 8px rgba(250,204,21,.45); }
#accountVersion { padding: 0; border: 0; background: none; gap: 6px; flex-wrap: wrap; }
.details-version.game-version-ow1 { color: #fff0a6; border-color: rgba(250,204,21,.72); background: linear-gradient(135deg, rgba(250,204,21,.22), rgba(245,158,11,.1)); box-shadow: 0 0 12px rgba(250,204,21,.22), inset 0 0 8px rgba(255,255,255,.04); text-shadow: 0 0 7px rgba(250,204,21,.55); }
.details-version.game-version-ow1::before { content: '◆'; margin-inline-end: .32em; color: #facc15; font-size: .58em; text-shadow: 0 0 6px rgba(250,204,21,.75); }
.details-version.game-version-ow2 { color: #7dd3fc; border-color: rgba(41,182,255,.36); background: rgba(41,182,255,.08); box-shadow: none; text-shadow: none; }
#accountLevel { white-space: normal; overflow-wrap: anywhere; }
.skin-card { display: flex; flex-direction: column; min-width: 0; text-align: start; }
.skin-card .card-art { width: 100%; flex-shrink: 0; }
.card-name { white-space: normal; }
/* Keep the skin name prominent; only its secondary provenance may be ellipsized. */
.card-name.has-bundle-source { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 5px; row-gap: 2px; }
.skin-title-text { min-width: 0; overflow-wrap: anywhere; }
.card-name.has-bundle-source .skin-title-text { flex: 0 1 auto; max-width: 100%; }
.skin-bundle-source { color: var(--detail-muted); -webkit-text-fill-color: currentColor; background: none; text-shadow: none; font-weight: 400; font-style: normal; letter-spacing: normal; }
.card-name .skin-bundle-source { display: inline-flex; flex: 1 1 92px; min-width: 0; max-width: 100%; font-size: 11px; line-height: 1.6; }
.skin-bundle-separator { flex-shrink: 0; white-space: pre; }
.card-name .skin-bundle-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dialog-content h2.has-bundle-source { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 8px; }
.dialog-content .skin-bundle-source { font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.dialog-content .skin-bundle-label { white-space: normal; overflow: visible; text-overflow: clip; }
.card-meta { display: flex; flex-direction: column; flex: 1; width: 100%; box-sizing: border-box; padding: 16px; }
.card-bottom { margin-top: auto; gap: 8px; flex-wrap: wrap; }
.card-hero { color: #bcb4d4; font-size: 12px; }
.account-metric, .account-card { padding: 20px; }
.account-metric strong, .account-card strong { font-size: 23px; }
.account-section h2 { color: #ebe8f9; }
.account-table th { color: #d7caff; background: #232039; border-bottom-color: var(--detail-line); }
.account-table td { color: #e1def0; border-bottom-color: var(--detail-line); }
.account-metrics { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.snapshot-notice { border-color: rgba(69,216,255,.25); background: rgba(69,216,255,.08); color: #b4eafa; }
.snapshot-notice.error { border-color: rgba(255,129,153,.3); background: rgba(255,129,153,.09); color: #ffb4c2; }
.title-row .eyebrow { line-height: 1.7; letter-spacing: .075em; }
.capture-time { display: inline-block; direction: ltr; unicode-bidi: isolate; white-space: nowrap; font-variant-numeric: tabular-nums; }
dialog { background: #15172b; color: #eeeafb; border: 1px solid var(--detail-line); }
dialog::backdrop { background: rgba(3,3,14,.78); }
.skin-dialog { width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border-radius: 16px; box-shadow: 0 28px 90px rgba(0,0,0,.6); }
.dialog-close { top: 14px; right: 14px; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.22); background: rgba(8,11,22,.76); color: #f0ebff; backdrop-filter: blur(10px); }
.dialog-close:hover { background: rgba(34,42,65,.95); }
.dialog-content { padding: 19px 24px 20px; background: #10121f; border-bottom: 3px solid var(--rarity-ink, #43415a); }
.dialog-heading { display: block; }
.dialog-heading > div { min-width: 0; }
.dialog-content .eyebrow { font-size: 10px; letter-spacing: .11em; }
.dialog-content h2 { margin: 4px 0 0; font-size: clamp(23px,2.3vw,30px); line-height: 1.2; overflow-wrap: break-word; }
.dialog-content p { margin: 12px 0 14px; color: #a8a7bb; font-size: 12px; line-height: 1.6; }
.dialog-links { gap: 7px 10px; }
.dialog-content a { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 11px; border: 1px solid rgba(123,148,188,.23); border-radius: 8px; background: rgba(255,255,255,.025); color: var(--detail-cyan); font-size: 12px; text-decoration: none; }
.dialog-content a:hover { border-color: rgba(73,215,246,.5); background: rgba(73,215,246,.08); text-decoration: none; }
.dialog-image-wrap { position: relative; height: auto; background: #090b16; line-height: 0; }
.dialog-image-wrap img { width: 100%; height: auto; aspect-ratio: auto 16/9; object-fit: cover; object-position: center; }
.dialog-image-wrap.image-error { min-height: 240px; display: grid; place-items: center; }
.dialog-image-wrap.image-error img { display: none; }
.dialog-image-fallback { padding: 35px; color: #a8a7bb; font-size: 14px; line-height: 1.5; }
.dialog-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.dialog-content .dialog-meta-row .rarity-badge { flex-shrink: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; font-size: 11px; line-height: 1.6; }
.dialog-meta-row .catalog-label { color: var(--detail-muted); font-size: 10px; font-weight: 600; line-height: 1.6; }
.rarity-badge, .rarity-badge[data-rarity] { background: #19192a; color: #ffd490; }
.rarity-badge[data-rarity="mythic"] { background: rgba(251,113,133,.09); border: 1px solid rgba(249,168,212,.32); box-shadow: 0 0 12px rgba(249,168,212,.09); }
.rarity-badge[data-rarity="ultra"] { background: rgba(239,68,68,.1); border: 1px solid rgba(255,130,149,.36); color: #ff8295; }
.rarity-badge .ac-special-skin { font-size: inherit; font-weight: 800; }
@media (max-width: 620px) {
  .dialog-content { padding: 16px; }
  .dialog-close { top: 10px; right: 10px; width: 36px; height: 36px; }
  .dialog-content a { font-size: 11px; min-height: 34px; padding: 6px 9px; }
}
@media (max-width: 1200px) { .balance-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 850px) { .site-shell { padding: 0 16px 35px; } .lookup-hero { width: calc(100% - 32px); margin: 111px auto 25px; gap: 21px; padding: 0; } .hero-option.active { border-color: var(--detail-purple); } }
@media (max-width: 620px) {
  .lookup-controls { flex-wrap: wrap; }
  .account-metrics > .account-metric:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .lookup-controls input { flex: 1; }
  .lookup-controls button { width: 100%; height: 43px; }
  .lookup-copy h1 { font-size: clamp(34px, 8.5vw, 46px); }
  .lookup-copy p { font-size: 13px; margin-top: 12px; }
  .balance-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .balance-item:last-child { grid-column: 1 / -1; }
  .tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; scroll-margin-top: 82px; }
  .tab { min-height: 50px; padding: 8px 5px; font-size: 12px; white-space: normal; }
  .lookup-kicker { font-size: 9px; letter-spacing: .08em; gap: 5px; }
  .stock-shortcut { display: flex; margin-top: 10px; margin-left: auto; padding: 6px 11px; font-size: 11px; }
  .has-account .profile-badge { min-height: 27px; padding: 3px 8px; font-size: 10px; }
  .account-hero { padding: 16px; }
  .account-identity-row { gap: 9px 14px; }
  .account-panel-badges { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .account-stock-tags:not([hidden]) { border-inline-start: 0; padding-inline-start: 0; }
  .account-panel-badges .profile-badge, .account-panel-badges .details-stock-tag, .account-panel-badges .details-version { min-height: 30px; padding: 5px 9px; font-size: 11px; }
  .account-panel-badges #accountVersion { padding: 0; }
  .has-account .lookup-form { padding: 12px; }
  .has-account .lookup-form label { margin-bottom: 6px; }
  .has-account .lookup-controls { min-height: 43px; flex-wrap: nowrap; }
  .has-account .lookup-controls input { height: 43px; font-size: 16px; }
  .has-account .lookup-controls button { width: auto; min-width: 110px; height: auto; padding: 0 7px; font-size: 10px; }
  .has-account .lookup-status { margin-top: 6px; }
  .has-account .balance-strip { gap: 7px; margin-top: 13px; padding-top: 13px; }
  .has-account .balance-item { min-height: 60px; padding: 8px; gap: 8px; }
  .has-account .balance-icon { width: 21px; height: 21px; }
  .has-account .balance-item .balance-label { font-size: 9px; }
  .has-account .balance-item strong { font-size: 14px; }
}

/* Weapon artwork has its own framing; never crop off a barrel, blade or staff. */
#weaponGrid, #variantGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#weaponGrid .card-art, #variantGrid .card-art { aspect-ratio: 16 / 9; background: #10121f; overflow: hidden; }
#weaponGrid .card-art img, #variantGrid .card-art img { width: 100%; height: 100%; padding: 8px; box-sizing: border-box; object-fit: contain; object-position: center; }
#weaponGrid .skin-card, #variantGrid .skin-card { cursor: pointer; }
/* .variant-<name> also styles the swatch; the owned label must not inherit its fill. */
#variantGrid .variant-owned { color: #8ce0bc; font-size: 11px; font-weight: 700; background: none; }
#skinDialog[data-image-kind="weapon"] .dialog-image-wrap { height: min(56.25vw, 58vh, 580px); background: #10121f; }
.dialog-image-wrap img[data-weapon-image="true"] { width: 100%; height: 100%; padding: 12px; box-sizing: border-box; object-fit: contain; object-position: center; aspect-ratio: auto; }
@media (max-width: 1150px) { #weaponGrid, #variantGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { #weaponGrid, #variantGrid { grid-template-columns: minmax(0, 1fr); } }
#weaponGrid .image-fallback, #variantGrid .image-fallback { font-size: 13px; font-style: normal; line-height: 1.4; max-width: 100%; padding: 12px; text-align: center; overflow-wrap: anywhere; }
/* Fill differing source ratios with a quiet backdrop, not a crop of the weapon. */
#weaponGrid .card-art, #variantGrid .card-art,
#skinDialog[data-image-kind="weapon"] .dialog-image-wrap { isolation: isolate; overflow: hidden; }
#weaponGrid .card-art::before, #variantGrid .card-art::before,
#skinDialog[data-image-kind="weapon"] .dialog-image-wrap::before {
  content: ""; position: absolute; inset: -18px; z-index: -1;
  background-image: var(--weapon-art-image, none); background-size: cover; background-position: center;
  filter: blur(16px) brightness(.55); pointer-events: none;
}
#weaponGrid .card-art img, #variantGrid .card-art img,
.dialog-image-wrap img[data-weapon-image="true"] { position: relative; z-index: 0; padding: 0; transform: scale(var(--weapon-art-scale, 1)); transform-origin: center; }

/* Competitive tab: competitive points beside the title (like the game's top-right counters),
   four queues per season (Tank / Damage / Support / Open Queue). */
.placeholder-head, .placeholder-copy { display: contents; }
.placeholder-panel.competitive-view { min-height: 0; text-align: start; }
.competitive-view .placeholder-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.competitive-view .placeholder-copy { display: block; flex: 1 1 320px; min-width: 0; }
.competitive-view .placeholder-copy p { max-width: none; margin: 5px 0 14px; }
.competitive-points { display: flex; flex: 0 0 auto; flex-direction: column; gap: 8px; min-width: 240px; }
.competitive-points[hidden] { display: none; }
.competitive-points .balance-item { min-height: 0; padding: 9px 14px; }
.competitive-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.competitive-summary h3 { margin: 16px 0 8px; color: #c9c3e4; font-size: 13px; }
@media (max-width: 900px) { .competitive-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .competitive-points { width: 100%; min-width: 0; flex-direction: row; }
  .competitive-points .balance-item { flex: 1 1 0; min-width: 0; }
}

/* Skin pages: arrows and page numbers instead of "Previous 2 / 21 Next". */
.pagination { gap: 6px; flex-wrap: wrap; }
.page-button.page-number, .page-button.page-arrow { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 8px; font-weight: 700; }
.page-button.page-arrow { font-size: 20px; line-height: 1; }
.page-button.is-current { border-color: #8b5cf6; background: linear-gradient(135deg, #6d28d9, #8b5cf6); color: #fff; }
.page-ellipsis { min-width: 18px; color: #8f89ad; text-align: center; }
#pageTitle { scroll-margin-top: 110px; }
@media (max-width: 620px) {
  .pagination { gap: 4px; }
  .page-button.page-number, .page-button.page-arrow { min-width: 32px; height: 32px; padding: 0 6px; }
}

/* Skin / weapon cards: the same four text rows on every card (hero, skin name, origin, rarity + OWNED)
   so names and the bottom row line up across a grid row. The origin gets its own single line, reserved
   even when a skin has none; long names and origins ellipsize (the tooltip keeps the full title).
   Name effects keep their colour / gradient / glow but share one size and weight on cards. */
:is(#skinGrid, #weaponGrid) .card-meta { gap: 0; }
:is(#skinGrid, #weaponGrid) .card-hero { line-height: 16px; height: 16px; }
:is(#skinGrid, #weaponGrid) .card-name,
:is(#skinGrid, #weaponGrid) .card-name.has-bundle-source {
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  margin: 6px 0 10px; padding: 0; min-height: 44px;
  font-size: 17px; line-height: 26px; font-weight: 700; white-space: nowrap; overflow: hidden;
}
:is(#skinGrid, #weaponGrid) .card-name .skin-title-text {
  display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal;
}
:is(#skinGrid, #weaponGrid) .card-name .ac-special-skin { font-size: inherit; font-weight: inherit; letter-spacing: normal; }
:is(#skinGrid, #weaponGrid) .card-name .skin-bundle-source {
  display: block; flex: none; max-width: 100%; font-size: 11px; line-height: 18px; font-weight: 400;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
:is(#skinGrid, #weaponGrid) .card-name .skin-bundle-separator { display: none; }
:is(#skinGrid, #weaponGrid) .card-name .skin-bundle-label { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(#skinGrid, #weaponGrid) .card-bottom { margin-top: auto; align-items: center; min-height: 16px; line-height: 16px; }
@media (max-width: 620px) {
  :is(#skinGrid, #weaponGrid) .card-name, :is(#skinGrid, #weaponGrid) .card-name.has-bundle-source { font-size: 15px; line-height: 22px; min-height: 40px; }
}
/* An owed (negative) balance: plain soft red, never the yellow / pink threshold highlight. */
.balance-item .balance-value-negative { color: #ff8a8a; text-shadow: none; }
html[data-theme="light"] .balance-item .balance-value-negative { color: #c2293b; }
