:root {
  color-scheme: dark;
  --blue: #3293d4;
  --page: #141414;
  --panel: rgba(26, 25, 25, .94);
  --raised: rgba(43, 42, 42, .8);
  --line: rgba(84, 125, 151, .28);
  --text: #e4e2e1;
  --muted: #999695;
  --control-border: #777;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; background: var(--page); color: var(--text); line-height: 1.5; isolation: isolate; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: #151719 url('/assets/backdrop.png') center center / cover no-repeat; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3, .brand { font-family: Georgia, 'Times New Roman', serif; font-weight: 600; }
h1 { font-size: 24px; line-height: 1.3; }
h2 { font-size: 22px; }
svg { width: 16px; height: 16px; flex-shrink: 0; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
input:focus-visible, select:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
input, select { color: var(--text); background: var(--raised); border: 1px solid var(--control-border); border-radius: 6px; min-width: 0; }
input[type='checkbox'] { appearance: none; width: 18px; height: 18px; border: 1px solid var(--line); border-radius: 6px; background: rgba(16, 16, 16, .6); margin: 0; flex-shrink: 0; cursor: pointer; }
input[type='checkbox']:checked { appearance: auto; accent-color: var(--blue); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -60px; left: 16px; background: var(--blue); color: #000; padding: 10px 16px; z-index: 100; }
.skip-link:focus { top: 10px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; border-radius: 8px; padding: 9px 16px; font-size: 13px; font-weight: 600; }
.primary { background: var(--blue); color: #071017; border: 1px solid var(--blue); }
.secondary { background: var(--raised); border: 1px solid var(--control-border); color: var(--text); }
button:disabled { opacity: .5; cursor: default; }
.site-header { height: 70px; padding: 0 22px; display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20; background: rgba(29, 28, 28, .95); border-bottom: 1px solid var(--line); }
.back-link { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; background: rgba(65, 63, 63, .38); color: #bbb8b6; border-radius: 5px; font-size: 12px; line-height: 18px; }
.back-link svg { width: 14px; height: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.brand img { display: block; }
.ticket-menu { margin-left: auto; position: relative; }
.ticket-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; background: var(--blue); color: #071017; font-size: 13px; font-weight: 600; padding: 8px 17px; border-radius: 30px; }
.ticket-menu summary::-webkit-details-marker { display: none; }
.ticket-menu summary svg { width: 14px; height: 14px; }
.ticket-menu summary .chevron { width: 13px; }
.ticket-menu-content { position: absolute; right: 0; top: calc(100% + 10px); min-width: 190px; padding: 6px; background: #202020; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 25px #0006; }
.ticket-menu-content button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 10px 12px; font-size: 13px; border-radius: 4px; }
main { display: flow-root; min-height: calc(100dvh - 168px); }
.shop-page { width: min(1720px, calc(100% - 48px)); margin: 24px auto 0; }
.category-heading { padding: 19px 18px; min-height: 95px; }
.category-heading p { margin-top: 7px; color: var(--muted); font-size: 12px; }
.category-heading strong { font-weight: 600; color: var(--blue); }
.toolbar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-height: 68px; }
.sort-control { display: block; width: 200px; position: relative; }
.sort-control select { display: block; width: 100%; height: 36px; padding: 6px 11px; border-color: var(--line); font-family: 'Courier New', monospace; font-size: 14px; }
.filter-button { height: 36px; background: var(--raised); border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; font-family: 'Courier New', monospace; font-size: 14px; }
.filter-button span { display: inline-flex; align-items: center; justify-content: center; background: var(--blue); border-radius: 3px; color: #000; font-family: Arial, sans-serif; font-size: 10px; margin-left: 7px; width: 17px; height: 17px; }
.search-control { height: 36px; position: relative; width: 270px; display: flex; align-items: center; }
.search-control>span { position: absolute; left: 12px; color: var(--muted); pointer-events: none; font-family: 'Courier New', monospace; font-size: 14px; }
.search-control input { width: 100%; height: 36px; padding: 6px 32px 6px 12px; border-color: var(--line); font-family: 'Courier New', monospace; font-size: 14px; }
.search-control svg { position: absolute; right: 10px; color: var(--muted); width: 14px; height: 14px; pointer-events: none; }
.search-control:has(input:not(:placeholder-shown))>span { opacity: 0; }
.account-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.account-card { padding: 18px; min-width: 0; display: flex; flex-direction: column; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 25px; }
.account-tag { background: var(--blue); color: #08131a; font-size: 10px; line-height: 15px; letter-spacing: .4px; border-radius: 3px; padding: 2px 7px; font-weight: 500; }
.account-price { font-size: 18px; font-weight: 600; line-height: 25px; color: var(--blue); font-variant-numeric: tabular-nums; }
.account-card h2 { font-size: 16px; line-height: 20px; margin: 9px 0 10px; }
.account-profile { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; align-items: start; }
.skin { height: 164px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--raised); display: flex; justify-content: center; align-items: center; padding: 8px 5px; }
.skin img { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.skin .sprite-unavailable { color: var(--muted); font-size: 10px; text-align: center; }
.profile-numbers { min-width: 0; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.metric { background: var(--raised); border: 1px solid var(--line); border-radius: 8px; padding: 6px 7px; min-height: 48px; min-width: 0; }
.metric dt { font-size: 8px; line-height: 13px; letter-spacing: .25px; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.metric dd { font-size: 13px; line-height: 19px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-group { margin-top: 12px; }
.stat-group h3, .stats-caption { font-family: Arial, Helvetica, sans-serif; font-size: 9px; font-weight: 400; line-height: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.stat-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.stat-pill { display: flex; justify-content: space-between; align-items: center; gap: 6px; background: var(--raised); border: 1px solid var(--line); border-radius: 5px; padding: 3px 7px; min-height: 24px; font-size: 10px; line-height: 16px; min-width: 0; }
.stat-pill dt { color: #bbb8b6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-pill dd { font-variant-numeric: tabular-nums; font-size: 10px; white-space: nowrap; }
.compare-choice { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #bbb8b6; margin: 19px 0 12px; cursor: pointer; }
.account-card>.primary { width: 100%; min-height: 38px; margin-top: auto; }
.account-card>.primary svg { width: 13px; height: 13px; }
.demo-notice { margin: 18px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.status-message { font-size: 13px; color: #ffb5b5; padding: 16px 0; }
.empty-state { text-align: center; padding: 50px 20px; }
.empty-state p { color: var(--muted); margin: 10px 0 20px; }
.detail-page { width: min(990px, calc(100% - 40px)); display: grid; grid-template-columns: minmax(0, 608px) minmax(0, 364px); gap: 18px; margin: 21px auto 0; }
.detail-header { padding: 18px 22px 15px; display: flex; justify-content: space-between; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); }
.detail-header h1 { font-size: 24px; }
.detail-body { padding: 19px 22px 22px; }
.detail-body>h2 { font-size: 16px; margin-bottom: 8px; }
.detail-description { color: #bbb8b6; font-size: 14px; line-height: 23px; margin-bottom: 16px; }
.detail-body .account-profile { grid-template-columns: 99px minmax(0, 1fr); gap: 14px; }
.detail-body .skin { height: 188px; }
.detail-body .stat-group { margin-top: 17px; }
.detail-body .stat-group h3 { margin-bottom: 8px; }
.detail-body .stats-caption { margin-bottom: 8px; }
.purchase-panel { padding: 17px 21px; }
.purchase-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.purchase-price { font-size: 30px; font-weight: 600; color: var(--blue); line-height: 40px; }
.availability { background: #2a2a2a; color: #b3b3b3; padding: 3px 9px; border-radius: 3px; font-size: 10px; line-height: 16px; letter-spacing: .4px; }
.purchase-panel>.primary { width: 100%; min-height: 44px; font-family: 'Courier New', monospace; font-size: 14px; }
.purchase-terms { margin-top: 13px; font-size: 11px; color: var(--muted); line-height: 17px; }
.inline-link { font: inherit; color: var(--blue); text-decoration: underline; background: none; border: 0; padding: 0; }
.live-stats-button { margin-top: 14px; width: 100%; }
.site-footer { text-align: center; color: #8f8c8b; padding: 46px 20px 14px; font-size: 11px; }
.site-footer>p { font-size: 10px; margin-bottom: 12px; }
.site-footer>div { display: flex; align-items: center; justify-content: center; gap: 9px; flex-wrap: wrap; }
.site-footer>div>span+span { color: #777; }
.site-footer button { background: none; border: 0; border-bottom: 1px dotted #666; padding: 0; color: #999; font: inherit; }
.compare-tray { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 25; display: flex; align-items: center; gap: 15px; padding: 12px 16px; width: max-content; max-width: calc(100% - 24px); background: #202020; box-shadow: 0 8px 30px #0009; }
.compare-tray>span { font-size: 13px; }
body:has(.compare-tray:not([hidden])) .site-footer { padding-bottom: 100px; }
dialog { background: #1d1c1c; color: var(--text); border: 1px solid #656565; border-radius: 14px; padding: 24px; width: min(590px, calc(100% - 28px)); max-height: calc(100dvh - 40px); overflow: auto; }
dialog::backdrop { background: #000b; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.dialog-heading .secondary { min-height: 32px; font-size: 12px; padding: 5px 12px; }
.filter-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.filter-fields label, #lookup-form>label { display: block; font-size: 12px; color: #c5c2c0; }
.filter-fields input, .lookup-input-row input { display: block; padding: 10px 12px; min-height: 42px; width: 100%; margin-top: 6px; }
.dialog-actions { margin-top: 24px; display: flex; justify-content: flex-end; gap: 10px; }
.dialog-intro { color: #bbb8b6; font-size: 13px; margin-bottom: 20px; }
.lookup-input-row { display: flex; align-items: stretch; gap: 10px; margin-top: 7px; }
.lookup-input-row input { margin: 0; flex: 1; }
.lookup-input-row button { flex-shrink: 0; }
.dialog-footnote { margin-top: 22px; font-size: 11px; color: var(--muted); }
#lookup-status { font-size: 13px; margin-top: 20px; }
#lookup-status.error { color: #ffb5b5; }
.player-heading { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.player-heading h3 { font-size: 20px; overflow-wrap: anywhere; }
.player-uuid { font-size: 10px; color: var(--muted); overflow-wrap: anywhere; margin: 6px 0 16px; }
.player-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.player-stats .metric { min-height: 58px; padding: 10px; }
.player-section { margin-top: 16px; margin-bottom: 7px; font-size: 15px; }
.info-content { color: #c3c0be; font-size: 13px; line-height: 1.8; }
.info-content p+p { margin-top: 14px; }
#compare-dialog { width: min(1000px, calc(100% - 28px)); }
.comparison-scroll { overflow-x: auto; }
.comparison-scroll table { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; }
.comparison-scroll caption { text-align: left; color: var(--muted); padding-bottom: 14px; font-size: 11px; white-space: normal; }
.comparison-scroll th, .comparison-scroll td { border: 1px solid #464646; padding: 10px 14px; text-align: left; }
.comparison-scroll th { background: #2a2a2a; font-weight: 600; }

@media (max-width: 1500px) {
  .account-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1150px) {
  .account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-page { width: calc(100% - 40px); }
  .detail-page { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .site-header { padding-inline: 14px; gap: 10px; }
  .shop-page { width: calc(100% - 24px); margin-top: 16px; }
  .toolbar { gap: 6px; flex-wrap: wrap; padding-block: 12px; min-height: 66px; }
  .sort-control { width: 150px; }
  .search-control { flex: 1; min-width: 150px; }
  .account-grid { grid-template-columns: 1fr; gap: 12px; }
  .account-card { padding: 18px; }
  .account-profile { grid-template-columns: 82px minmax(0, 1fr); }
  .detail-page { display: flex; flex-direction: column; width: calc(100% - 24px); margin-top: 16px; }
  .purchase-panel { min-height: 190px; }
  .detail-header, .detail-body { padding-inline: 18px; }
  .site-footer { padding-top: 32px; }
}
@media (max-width: 420px) {
  .brand { gap: 6px; font-size: 17px; }
  .ticket-menu summary { font-size: 11px; padding: 8px 12px; gap: 6px; }
  .ticket-menu summary>.chevron { display: none; }
  .back-link { font-size: 11px; padding-inline: 7px; }
  .account-card { padding: 14px; }
  .account-profile, .detail-body .account-profile { grid-template-columns: 62px minmax(0, 1fr); gap: 8px; }
  .skin { height: 140px; }
  .detail-body .skin { height: 150px; }
  .metric { padding: 5px; }
  .metric dt { font-size: 7px; letter-spacing: 0; }
  .metric dd { font-size: 12px; }
  .stat-pill { padding-inline: 5px; gap: 3px; font-size: 9px; }
  .stat-pill dd { font-size: 9px; }
  .sort-control { flex: 1; }
  .search-control { flex-basis: 100%; }
  .filter-fields { gap: 14px 12px; }
  .filter-fields label { font-size: 11px; }
  .lookup-input-row { flex-direction: column; }
  .lookup-input-row input { font-size: 16px; }
  .compare-tray { gap: 8px; padding: 10px; }
  .compare-tray>span { font-size: 11px; }
  .compare-tray button { padding: 8px; font-size: 11px; }
  dialog { padding: 18px; }
}
