/* ranks + country stamps (js/ranks.js) */
.rk-box { text-align: left; margin: 6px 0 4px; }
.rk-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.rk-emoji { font-size: 1.5rem; }
.rk-head b { font-size: 1.15rem; }
.rk-bar { height: 12px; border-radius: 6px; background: rgba(128,128,160,.25); margin-top: 6px; overflow: hidden; }
.rk-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #ffb347, #ffcf5a); transition: width .6s ease; }
.st-box { text-align: left; margin-top: 16px; }
.st-box h3 { margin: 0 0 2px; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 8px; }
.st-n { font-weight: 600; font-size: .9rem; }
.st-hint { margin: 2px 0 8px; font-size: .85rem; }
.st-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.st { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1px; padding: 8px 4px; border-radius: 14px; border: 2px dashed rgba(128,128,160,.4); filter: grayscale(1); opacity: .55; min-width: 0; }
.st b { font-size: .8rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st small { font-size: .78rem; opacity: .8; }
.st-flag { font-size: 1.8rem; line-height: 1.2; }
.st.on { filter: none; opacity: 1; border-style: solid; border-color: #ffb347; background: rgba(255,207,90,.14); transform: rotate(-2deg); }
.st.on:nth-child(even) { transform: rotate(2deg); }
.rk-burst { position: fixed; left: 50%; top: 45%; z-index: 10000; pointer-events: none; }
.rk-burst span { position: absolute; font-size: 1.7rem; opacity: 0; animation: rk-pop 1.3s ease-out forwards; }
@keyframes rk-pop { 0% { transform: translate(0, 0) scale(.4); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + 70px)) scale(1.1); opacity: 0; } }
