/* Rankings: board picker, podium, medal rows, pinned self bar. */
.boardpick { display: flex; gap: .6rem; overflow-x: auto; padding: .3rem .1rem .9rem; scrollbar-width: none; }
.boardpick::-webkit-scrollbar { display: none; }
.bp { flex: 0 0 auto; display: flex; align-items: center; gap: .5rem; padding: .35rem .9rem .35rem .4rem; min-height: 48px; border: 3px solid var(--sumi); border-radius: 99px; background: linear-gradient(rgba(22,36,74,.92), rgba(10,16,38,.92)); color: var(--paper); font-weight: 800; cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,.5); transition: transform .15s; }
.bp .k { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4b72b5, #1d3466 75%); font-family: var(--serif); font-size: 1.1rem; box-shadow: 0 0 0 2px rgba(246,237,218,.35); }
.bp .br { font-family: var(--serif); background: var(--gold); color: var(--sumi); border-radius: 99px; padding: 0 .5rem; font-size: .8rem; }
.bp.on { background: linear-gradient(#ff6a47, var(--red-2)); box-shadow: 0 0 0 3px var(--gold), 0 0 18px rgba(217,67,43,.7); transform: translateY(-2px); }
.bp.on .k { background: var(--paper); color: var(--red); }
.rhead { display: flex; justify-content: space-between; align-items: flex-end; gap: .8rem; flex-wrap: wrap; margin: .2rem 0 .8rem; color: var(--paper); text-shadow: 0 2px 0 var(--sumi); }
.rhead h2 { margin: 0; font-size: 1.5rem; } .rhead .small { opacity: .85; } .rctl { display: flex; align-items: center; gap: .6rem; }

.podium { max-width: 640px; margin-left: auto; margin-right: auto; display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: .5rem; align-items: end; margin: 1.6rem 0 1rem; }
.pcol { position: relative; text-align: center; color: var(--paper); display: flex; flex-direction: column; align-items: center; animation: rise .6s cubic-bezier(.2,1.2,.3,1) both; min-width: 0; }
.pcol .av.big { width: 64px; height: 64px; font-size: 1.8rem; margin-bottom: .2rem; }
.g1 .av.big { width: 84px; height: 84px; font-size: 2.3rem; box-shadow: 0 0 0 4px var(--gold), 0 0 28px rgba(244,207,110,.9); }
.g2 .av.big { box-shadow: 0 0 0 4px #cfd5de, 0 0 14px rgba(207,213,222,.6); } .g3 .av.big { box-shadow: 0 0 0 4px #c98a52, 0 0 14px rgba(201,138,82,.6); }
.av { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; color: var(--paper); font-family: var(--serif); font-weight: 800; border: 3px solid var(--sumi); }
.pn { font-family: var(--serif); font-weight: 800; font-size: .95rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 2px 0 var(--sumi); }
.pt { font-size: .7rem; color: var(--gold-2); height: 1em; } .psc { font-weight: 800; font-size: .9rem; margin-bottom: .3rem; font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 var(--sumi); }
.crown { font-size: 2.2rem; line-height: 1; color: var(--gold-2); text-shadow: 0 0 16px var(--gold), 0 3px 0 var(--sumi); animation: idle 2.6s ease-in-out infinite; }
.pillar { width: 100%; display: grid; place-items: center; border: 3px solid var(--sumi); border-bottom: 0; border-radius: 10px 10px 0 0; font-family: var(--serif); font-weight: 800; font-size: 2.6rem; color: var(--sumi); text-shadow: 0 2px 0 rgba(255,255,255,.35); }
.g1 .pillar { height: 120px; background: linear-gradient(#fff0a8, #d8991f); box-shadow: 0 0 26px rgba(244,207,110,.7); }
.g2 .pillar { height: 88px; background: linear-gradient(#f1f4f8, #aab3c0); } .g3 .pillar { height: 64px; background: linear-gradient(#efc08f, #b87a45); }
.pcol.me .pn { color: var(--gold-2); } .pcol.me .pillar { outline: 3px solid var(--red); }

.rlist { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 7px; }
.rrow { display: flex; align-items: center; gap: .7rem; padding: .45rem .8rem .45rem .5rem; border: 3px solid var(--sumi); border-radius: 12px 18px 12px 16px; background: linear-gradient(rgba(246,237,218,.96), rgba(234,220,187,.96)); box-shadow: 0 3px 0 rgba(0,0,0,.45); animation: slideIn .4s both; }
.rrow .rn { width: 2.4rem; text-align: center; font-family: var(--serif); font-weight: 800; font-size: 1.3rem; color: var(--ai); }
.rrow .rm { flex: 1; min-width: 0; } .rrow .rm b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rrow .rm span { font-size: .72rem; color: var(--muted); font-weight: 700; }
.rrow .rs { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--red-2); }
.sbar { height: 6px; background: rgba(0,0,0,.12); border-radius: 4px; margin-top: 3px; overflow: hidden; } .sbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--ai), var(--sky)); }
.rrow.me { background: linear-gradient(90deg, #ffd9a0, #fff1c8); border-color: var(--red); box-shadow: 0 0 0 2px var(--gold), 0 3px 0 rgba(0,0,0,.45); } .rrow.me .rn { color: var(--red); }
.gap { text-align: center; color: var(--paper); letter-spacing: .4em; }

.pinbar { position: fixed; z-index: 39; left: 12px; right: 12px; margin: 0 auto; max-width: 560px; bottom: calc(var(--dock, 96px) + 22px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: .7rem; padding: .5rem .8rem .5rem .5rem; color: var(--paper);
  background: linear-gradient(rgba(190,50,28,.97), rgba(120,28,14,.98)); border: 3px solid var(--sumi); border-radius: 18px 26px 18px 24px; box-shadow: 0 0 0 2px var(--gold), 0 8px 18px rgba(0,0,0,.55); animation: pop .4s both; }
.pinbar .seal { min-width: 64px; text-align: center; padding: .25rem .4rem; font-family: var(--serif); font-weight: 800; font-size: 1.6rem; line-height: 1; background: var(--paper); color: var(--red); border: 3px solid var(--sumi); border-radius: 8px 12px 8px 11px; transform: rotate(-3deg); }
.pinbar .seal.first { background: linear-gradient(105deg, #d8991f, #fff0a8 40%, #d8991f 60%, #fff0a8); background-size: 220% 100%; color: var(--sumi); animation: shimmer 3s linear infinite; }
.pinbar .pm { flex: 1; min-width: 0; } .pinbar .pm b { display: block; font-size: 1rem; } .pinbar .pm span { font-size: .78rem; color: var(--gold-2); font-weight: 700; }
@media (max-height: 520px) { .pinbar { bottom: 64px; padding: .25rem .6rem .25rem .3rem; } .pinbar .seal { font-size: 1.1rem; min-width: 48px; } .podium { margin-top: .8rem; } }

.rhead .cd { color: var(--gold-2); }
