/* อันดับ Gieno-RO (src/map/rankweb.js /rank; client/rank/rank.js) on the profile page's shell (client/profile/profile.css:
   the artwork behind, the logo, the gold "มาเล่นด้วยกัน" kept at the bottom of a phone's screen): a cream card - the title,
   a tab for each board (icon over its name on a phone), the in-game Hall of Fame's dark stage with places 1 - 3 on their
   gold / silver / bronze stands, places 4 - 20 as rows (two columns on a computer). Names never cut: a long one goes on 2
   lines. Fonts of the game only. */

.rk-main { max-width: 880px; }
.rk-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px 16px 14px; border-radius: 20px;
	background: linear-gradient(170deg, var(--cream) 0%, #fff7e6 60%, var(--cream-2) 100%); border: 2px solid var(--line);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6) inset, 0 18px 40px rgba(20, 8, 30, 0.45); }
.rk-head { text-align: center; padding: 2px 4px 0; }
.rk-head h1 { margin: 0; font: 700 30px/1.2 var(--head); color: var(--ink); text-shadow: 0 1px 0 #fff; overflow-wrap: anywhere; }
.rk-head p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.rk-seg { white-space: nowrap; }
.rk-seg:not(:last-child)::after { content: ' ·'; }
.rk-more { display: block; }

/* the tabs */
.rk-tabs { display: flex; gap: 5px; padding: 4px; border-radius: 16px; background: #f6e7c6; border: 1px solid var(--line); box-shadow: inset 0 1px 2px rgba(120, 80, 20, 0.12); }
.rk-tab { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 6px 8px; border-radius: 12px;
	color: var(--ink-2); text-decoration: none; font: 600 15px/1.2 var(--head); text-align: center; -webkit-tap-highlight-color: transparent; transition: background 0.15s; }
.rk-tab i { font-style: normal; font-size: 18px; line-height: 1; }
.rk-tab span { min-width: 0; overflow-wrap: anywhere; }
.rk-tab:not(.on):hover { background: rgba(255, 255, 255, 0.75); }
.rk-tab.on { background: linear-gradient(#ffe48a, #e9a92c); color: #3a2400; box-shadow: 0 2px 0 #b77a12, inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.rk-tab:focus-visible { outline: 2px solid #8a4b00; outline-offset: 1px; }

.rk-board[hidden] { display: none; }
.rk-note { margin: 0 0 8px; text-align: center; color: var(--ink-2); font-size: 13px; line-height: 1.45; }

/* places 1 - 3: the in-game window's stage (style.css .win-fame .hf-pod) */
.rk-pod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr) minmax(0, 1fr); align-items: end; gap: 8px; padding: 16px 12px 0; border-radius: 16px; overflow: hidden;
	color: #f3eeff; background: radial-gradient(90% 85% at 50% 0%, #5a4690, #241a3d 62%, #17112a); border: 1px solid #6b5aa6; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08), 0 6px 16px rgba(40, 20, 60, 0.25); }
.rk-p { display: flex; flex-direction: column; align-items: stretch; min-width: 0; text-align: center; }
.rk-fig { position: relative; z-index: 1; width: min(100%, var(--fw)); margin: 0 auto; }
.rk-pic { display: block; width: 100%; height: auto; margin-bottom: calc(-100% * var(--fb)); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45)); }
.rk-p.p1 .rk-pic { filter: drop-shadow(0 0 10px rgba(255, 214, 102, 0.5)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45)); }
.rk-p.hid .rk-pic { filter: none; }
/* live (rank.js, Noh 2026-11-06): the stage over its 2D picture - the same box -, shown once its first frame is drawn */
.rk-live { position: absolute; left: 0; top: 0; display: block; width: 100%; height: auto; margin: 0; opacity: 0; transition: opacity 0.3s; pointer-events: none;
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45)); }
.rk-p.p1 .rk-live { filter: drop-shadow(0 0 10px rgba(255, 214, 102, 0.5)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45)); }
.rk-live.ok { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .rk-live { transition: none; } }
.rk-fig.empty { height: var(--fh); max-height: 34vw; display: grid; place-items: center; margin-bottom: 6px; border-radius: 12px; border: 2px dashed rgba(255, 255, 255, 0.25); }
.rk-q { color: rgba(255, 255, 255, 0.35); font: 800 28px/1 var(--head); }
.rk-stand { --ink: #3b2500; display: flex; flex-direction: column; align-items: stretch; border-radius: 9px 9px 0 0; color: var(--ink);
	background: linear-gradient(#ffe891, #f3c450 22%, #e3a82e); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), inset 0 -8px 12px rgba(0, 0, 0, 0.16); }
.p2 > .rk-stand { --ink: #1d2735; background: linear-gradient(#f6f8fb, #d7dee8 22%, #bcc6d4); }
.p3 > .rk-stand { --ink: #3a1806; background: linear-gradient(#f7cfae, #e3a676 22%, #cd8a57); }
.rk-medal { display: grid; place-items: center; height: 28px; font: 800 21px/1 var(--head); color: var(--ink); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6); }
.p1 > .rk-stand .rk-medal { height: 42px; font-size: 26px; }
.p3 > .rk-stand .rk-medal { height: 18px; font-size: 16px; }
.rk-lab { min-height: 78px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 0 5px 9px; min-width: 0; }
.rk-pn { max-width: 100%; font: 700 14px/1.25 var(--head); color: var(--ink); overflow-wrap: anywhere; }
.p1 .rk-pn { font-size: 15.5px; }
a.rk-pn { text-decoration: underline; text-decoration-color: rgba(0, 0, 0, 0.3); text-underline-offset: 3px; }
a.rk-pn:hover { text-decoration-color: currentColor; }
.rk-pn.rk-hidname { font-weight: 500; font-size: 12.5px; font-style: italic; opacity: 0.85; }
.rk-pn.rk-hidname i, .rk-nm.rk-hidname i { font-style: normal; margin-right: 3px; }
.rk-pj { max-width: 100%; overflow-wrap: anywhere; font-size: 11.5px; line-height: 1.3; color: var(--ink); opacity: 0.78; }
.rk-pv { margin-top: 1px; font: 700 13.5px/1.3 var(--head); color: var(--ink); }
.rk-pv small { font-weight: 500; opacity: 0.8; }
.rk-p.empty { opacity: 0.6; }

/* places 4 - 20 */
.rk-list { list-style: none; margin: 10px 0 0; padding: 0; }
.rk-tr { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 0 0 6px; padding: 7px 12px 7px 7px; border-radius: 12px;
	background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 0 #f0dcb2; break-inside: avoid; }
.rk-n { display: grid; place-items: center; height: 30px; border-radius: 9px; background: #f3e6c8; color: var(--ink-2); font: 700 15px/1 var(--head); }
.rk-who { display: flex; flex-direction: column; min-width: 0; }
.rk-nm { font: 600 15px/1.3 var(--head); color: var(--ink); overflow-wrap: anywhere; }
a.rk-nm { color: #7a3d00; text-decoration: none; }
a.rk-nm:hover { text-decoration: underline; }
.rk-nm.rk-hidname { color: var(--muted); font-weight: 500; font-style: italic; font-size: 14px; }
.rk-jb { font-size: 12px; line-height: 1.3; color: var(--muted); overflow-wrap: anywhere; }
.rk-v { font: 700 15px/1.25 var(--head); color: #b0430a; white-space: nowrap; text-align: right; }
.rk-v small, .rk-pv small { font-size: 0.82em; }
.rk-v small { font-weight: 500; color: var(--muted); }
.rk-rk { display: inline-block; min-width: 30px; padding: 1px 7px; border-radius: 9px; text-align: center; color: #2a1600; background: var(--tc); font-weight: 800; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); }
.rk-tier { margin-left: 5px; }
.rk-tr.hid { background: #fbf6ec; }
.rk-empty { margin: 10px 0 0; padding: 14px 10px; text-align: center; color: var(--ink-2); border-radius: 12px; background: #fff; border: 1px dashed var(--line); }
.rk-hint { margin: 0; text-align: center; font-size: 12.5px; line-height: 1.45; color: var(--muted); }

/* a computer: places 4 - 20 in two columns */
@media (min-width: 760px) {
	.rk-card { padding: 20px 22px 16px; }
	.rk-head h1 { font-size: 34px; }
	.rk-list { columns: 2; column-gap: 10px; }
	.rk-pod { padding: 18px 40px 0; gap: 18px; }
}
/* a phone */
@media (max-width: 720px) {
	.rk-card { padding: 12px 10px 12px; gap: 10px; border-radius: 18px; }
	.rk-head h1 { font-size: 26px; }
	.rk-head p { font-size: 12.5px; }
	.rk-more { display: none; } /* (the bar kept at the bottom of the screen: one line less) */
	.rk-tabs { gap: 3px; padding: 3px; }
	.rk-tab { flex-direction: column; gap: 3px; min-height: 56px; padding: 5px 2px; font-size: 12.5px; border-radius: 11px; }
	.rk-tab i { font-size: 19px; }
	.rk-note { font-size: 12.5px; }
	.rk-pod { gap: 5px; padding: 12px 6px 0; border-radius: 14px; }
	.rk-lab { min-height: 72px; padding: 0 3px 8px; }
	.rk-pn { font-size: 12.5px; }
	.p1 .rk-pn { font-size: 13.5px; }
	.rk-pn.rk-hidname { font-size: 11px; }
	.rk-pj { font-size: 10.5px; }
	.rk-pv { font-size: 12px; }
	.p1 > .rk-stand .rk-medal { height: 34px; font-size: 23px; }
	.p2 > .rk-stand .rk-medal { height: 24px; font-size: 19px; }
	.rk-tr { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 8px; padding: 6px 10px 6px 6px; }
	.rk-n { height: 28px; font-size: 14px; }
	.rk-nm { font-size: 14.5px; }
	.rk-v { font-size: 14px; }
}
