/* inner pages: rankings, character */
.phead .lead { margin-top: 4px; }

/* ---------------------------------------------------------------- podium 3D */
.podium3d { position: relative; height: clamp(420px, 44vw, 600px); margin-top: -20px; }
.podium3d .pstage { position: absolute; inset: 0; }
.podium3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.podium3d::before, .podium3d::after { content: ""; position: absolute; left: 0; right: 0; height: 80px; z-index: 1; pointer-events: none; }
.podium3d::before { top: 0; background: linear-gradient(180deg, var(--bg), transparent); }
.podium3d::after { bottom: 0; background: linear-gradient(0deg, var(--bg), transparent); }
.plates { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: -70px; }
.plate { text-align: center; padding: 18px 12px 20px; }
.plate .rk { font-family: var(--display); font-size: 13px; letter-spacing: .3em; color: var(--dim); }
.plate.g1 .rk { color: var(--gold); } .plate.g2 .rk { color: #cfd6e2; } .plate.g3 .rk { color: #939fae; }
.plate .nm { display: block; font-family: var(--display); font-size: 24px; margin: 6px 0 4px; letter-spacing: .02em; }
.plate .meta { font-size: 13px; color: var(--muted); }
.plate .meta b { color: var(--text); }
.plate .go { display: inline-block; margin-top: 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 760px) { .plates { grid-template-columns: 1fr; margin-top: 0; } .plate.g1 { order: -1; } .podium3d { height: 380px; } }

/* ---------------------------------------------------------------- tabs, chips, search */
.tabs { position: relative; display: flex; gap: 4px; padding: 5px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); overflow-x: auto; margin: 46px 0 16px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; z-index: 1; flex: none; padding: 11px 18px; border-radius: 10px; border: 0; background: none; color: var(--muted); font: 600 13px var(--body); letter-spacing: .04em; cursor: pointer; transition: color .25s; }
.tab:hover { color: var(--text); }
.tab.on { color: #0c1014; }
.tabs .ind { position: absolute; z-index: 0; top: 5px; bottom: 5px; border-radius: 10px; background: linear-gradient(180deg, #d4dae3, #a5b1c0 50%, #738092); box-shadow: 0 6px 24px rgba(163, 175, 191, .3); transition: left .4s var(--ease), width .4s var(--ease); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line2); background: transparent; color: var(--muted); font: 500 12.5px var(--body); cursor: pointer; transition: all .25s; }
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .25); }
.chip.on { color: var(--gold-hi); border-color: var(--gold-line); background: rgba(163, 175, 191, .08); }
.search { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); transition: border-color .25s, box-shadow .25s; }
.search:focus-within { border-color: var(--gold-line); box-shadow: 0 0 0 4px rgba(163, 175, 191, .08); }
.search svg { width: 17px; height: 17px; stroke: var(--muted); fill: none; stroke-width: 2; }
.search input { background: none; border: 0; outline: 0; color: var(--text); font: 500 14px var(--body); width: 180px; }
.spacer { flex: 1; }
.medal { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 700 12px var(--body); color: #0c1014; }
.medal.m1 { background: linear-gradient(180deg, #d4dae3, #7b889a); box-shadow: 0 0 16px rgba(163, 175, 191, .5); }
.medal.m2 { background: linear-gradient(180deg, #f4f6fa, #9aa3b2); }
.medal.m3 { background: linear-gradient(180deg, #bcc5d1, #626e7d); }
td.empty { text-align: center; color: var(--muted); padding: 40px; }
.hint { color: var(--dim); font-size: 13px; }

/* ---------------------------------------------------------------- character */
.chr { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 34px; padding-top: 96px; align-items: start; }
.viewer { position: sticky; top: 88px; height: calc(100vh - 110px); min-height: 560px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #07080d; }
.viewer .vstage { position: absolute; inset: 0; }
.viewer canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; cursor: grab; touch-action: none; }
.viewer .poses { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 2; display: flex; gap: 4px; padding: 5px; border-radius: 99px; background: rgba(10, 11, 16, .7); backdrop-filter: blur(10px); border: 1px solid var(--line2); }
.viewer .poses button { border: 0; background: transparent; color: #ccced1; font: 600 12px var(--body); letter-spacing: .08em; padding: 8px 14px; border-radius: 99px; cursor: pointer; transition: background .2s, color .2s; }
.viewer .poses button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.viewer .poses .sep { width: 1px; background: var(--line2); margin: 6px 2px; }
.viewer .vtag { position: absolute; left: 18px; top: 16px; z-index: 2; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); opacity: .85; }
.viewer .loading { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; color: var(--muted); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.viewer .loading::before { content: ""; position: absolute; width: 54px; height: 54px; border-radius: 50%; border: 2px solid rgba(163, 175, 191, .15); border-top-color: var(--gold); animation: spin 1s linear infinite; margin-top: -70px; }
@keyframes spin { to { transform: rotate(360deg); } }
.chr h1 { font-family: var(--display); font-size: clamp(40px, 5.4vw, 72px); line-height: 1; margin: 14px 0 10px; }
.chr .sub { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); }
.kvs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.kv { padding: 18px 18px 16px; }
.kv span { display: block; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.kv b { display: block; font-size: 26px; margin-top: 6px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kv b.sm { font-size: 16px; margin-top: 10px; }
.blk { margin-top: 26px; padding: 26px; }
.blk h3 { margin: 0 0 18px; font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.sbars { display: grid; gap: 14px; }
.sbars .b { display: grid; grid-template-columns: 90px 1fr 70px; gap: 14px; align-items: center; font-size: 13.5px; }
.sbars .t { height: 8px; border-radius: 5px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.sbars .f { height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, color-mix(in srgb, var(--cc) 40%, #000), var(--cc)); box-shadow: 0 0 14px color-mix(in srgb, var(--cc) 50%, transparent); transition: width 1.4s var(--ease); }
.sbars .n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.gear { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.slot { position: relative; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); transition: border-color .25s, background .25s, transform .25s; cursor: default; }
.slot:hover { border-color: var(--line2); background: rgba(255, 255, 255, .04); transform: translateY(-2px); }
.slot .s { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.slot .i { margin-top: 4px; font-weight: 600; font-size: 14.5px; }
.slot .o { margin-top: 4px; font-size: 12px; color: var(--muted); }
.slot.hi .i { color: #cfd6e0; } .slot.exc .i { color: #8ee39b; } .slot.anc .i { color: #8fd2ff; }
.slot.exc { border-color: rgba(94, 224, 138, .22); } .slot.anc { border-color: rgba(94, 180, 255, .25); }
.slot.empty .i { color: var(--dim); font-weight: 500; }
.share { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
@media (max-width: 980px) {
  .chr { grid-template-columns: 1fr; padding-top: 80px; }
  .viewer { position: relative; top: auto; height: 64vh; min-height: 440px; }
  .kvs { grid-template-columns: repeat(2, 1fr); }
}
/* podium: loader until the first champion stands; folded away without WebGL */
.podium3d .ploading { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); z-index: 2; display: flex; align-items: center; gap: 12px; white-space: nowrap; color: var(--muted); font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; pointer-events: none; }
.podium3d .ploading::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(163, 175, 191, .18); border-top-color: var(--gold); animation: spin 1s linear infinite; }
.podium3d.off { display: none; }
.podium3d.off + .wrap .plates { margin-top: 18px; }
/* rankings without the 3D podium: the plates sit right under the header */
.phead + .wrap > .plates:first-child { margin-top: 0; }
@media (max-width: 760px) {
  .plates { gap: 10px; }
  .plate { display: grid; grid-template-columns: 78px 1fr; align-items: center; column-gap: 12px; text-align: left; padding: 14px 16px; }
  .plate .rk { grid-row: 1 / 4; font-size: 11px; letter-spacing: .22em; }
  .plate .nm { font-size: 20px; margin: 0 0 2px; }
  .plate .meta[style] { margin-top: 2px !important; }
  .plate .go { display: none; }
}
/* QA 2026-10-06: vertical swipes over the character viewer scroll the page */
.viewer canvas { touch-action: pan-y; }
/* QA 2026-10-06 b3: phones show Level/Resets instead of Guild/Master; no empty plates */
@media (max-width: 760px) { th.xm, td.xm { display: none; } .plate:empty { display: none; } }
.plate:empty { visibility: hidden; }
/* QA b3b: on phones the rankings table shows only the class badge, so Level and Resets fit */
@media (max-width: 760px) { #tb .cls { font-size: 0; } #tb .cls i { font-size: 10.5px; margin-right: 0; } }
/* QA b3c */
@media (max-width: 760px) { #tb td, #th th { padding-left: 8px; padding-right: 8px; } #tb td:first-child, #th th:first-child { padding-left: 14px; } }
