/* BG & WoE rankings (ranking/battleground, ranking/woe) */
.rk {
	--rk-navy: #0b2a52; --rk-blue: #0a4f9d; --rk-blue-2: #1565c0; --rk-gold: #FFC300; --rk-gold-2: #ffb000;
	--rk-text: #1f2937; --rk-muted: #6b7280; --rk-line: #e3e8ef; --rk-bg: #f5f7fa; --rk-card: #fff;
	--rk-win: #22a05a; --rk-tie: #9aa4b2; --rk-loss: #e04f4f;
	color: var(--rk-text); font-size: 13px; line-height: 1.4;
}
.rk *, .rk *::before, .rk *::after { box-sizing: border-box; }
.rk a { color: var(--rk-blue); }
.rk-title { margin: 0 0 4px; color: var(--rk-navy); font-weight: 700; }
.rk-sub { margin: 0 0 14px; color: var(--rk-muted); }

/* Tabs */
.rk-links { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.rk-links a { padding: 6px 14px; border-radius: 20px; background: var(--rk-bg); border: 1px solid var(--rk-line); color: var(--rk-navy); text-decoration: none; font-weight: 600; }
.rk-links a.on, .rk-links a:hover { background: var(--rk-navy); border-color: var(--rk-navy); color: var(--rk-gold); }

/* Summary */
.rk-summary { display: grid; grid-template-columns: 220px 1fr; gap: 12px; margin-bottom: 14px; }
.rk-kpis { display: grid; gap: 8px; }
.rk-kpi { padding: 10px 12px; border-radius: 8px; background: linear-gradient(135deg, var(--rk-navy), var(--rk-blue)); color: #fff; }
.rk-kpi b { display: block; font-size: 20px; color: var(--rk-gold); line-height: 1.1; }
.rk-kpi span { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; opacity: .85; }
.rk-pop { padding: 10px 12px; border-radius: 8px; background: var(--rk-card); border: 1px solid var(--rk-line); }
.rk-pop h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--rk-muted); }
.rk-pop a { display: grid; grid-template-columns: 130px 1fr 44px; gap: 8px; align-items: center; padding: 2px 4px; border-radius: 4px; text-decoration: none; color: var(--rk-text); font-size: 12px; }
.rk-pop a:hover, .rk-pop a.on { background: #eef4fb; }
.rk-pop a.on { font-weight: 700; }
.rk-pop a em { font-style: normal; text-align: right; color: var(--rk-muted); }
.rk-hbar { height: 8px; border-radius: 4px; background: #e8edf3; overflow: hidden; }
.rk-hbar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--rk-blue), var(--rk-blue-2)); }

/* Filters */
.rk-filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 10px; align-items: end; padding: 12px; margin-bottom: 14px; background: var(--rk-bg); border: 1px solid var(--rk-line); border-radius: 8px; }
.rk-filters label { display: flex; flex-direction: column; gap: 3px; margin: 0; font-size: 11px; font-weight: 700; color: var(--rk-muted); text-transform: uppercase; letter-spacing: .03em; }
.rk-filters select, .rk-filters input[type=text] { width: 100%; height: 32px; padding: 4px 8px; border: 1px solid #cfd8e3; border-radius: 6px; font-size: 13px; color: var(--rk-text); background: #fff; }
.rk-filters select:focus, .rk-filters input[type=text]:focus { outline: 2px solid rgba(10,79,157,.25); border-color: var(--rk-blue); }
.rk-filters .rk-wide { grid-column: span 2; }
.rk-filters .rk-actions { display: flex; gap: 8px; align-items: center; }
.rk-filters button { height: 32px; padding: 0 18px; border: 0; border-radius: 6px; background: var(--rk-gold); color: var(--rk-navy); font-weight: 700; cursor: pointer; }
.rk-filters button:hover { background: var(--rk-gold-2); }
.rk-filters a.rk-reset { font-size: 12px; }
.rk-count { margin: 0 0 10px; color: var(--rk-muted); }
.rk-count b { color: var(--rk-text); }
.rk-empty { padding: 28px; text-align: center; background: var(--rk-bg); border: 1px dashed #c9d3df; border-radius: 8px; font-weight: 600; color: var(--rk-muted); }

/* Podium */
.rk-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; align-items: end; margin-bottom: 16px; }
.rk-pod { position: relative; text-align: center; padding: 12px 8px 14px; border-radius: 10px; background: var(--rk-card); border: 1px solid var(--rk-line); box-shadow: 0 2px 6px rgba(15,35,70,.06); border-top: 5px solid; }
.rk-pod.p1 { order: 2; border-top-color: #e0a800; padding-top: 20px; background: linear-gradient(180deg, #fff8dc, #fff 60%); }
.rk-pod.p2 { order: 1; border-top-color: #aeb8c4; }
.rk-pod.p3 { order: 3; border-top-color: #c27b3e; }
.rk-pod .rk-medal { position: absolute; top: 8px; left: 10px; width: 30px; height: 30px; line-height: 30px; border-radius: 50%; color: #fff; font-weight: 800; box-shadow: 0 2px 4px rgba(0,0,0,.15); }
.rk-pod.p1 .rk-medal { background: #e0a800; } .rk-pod.p2 .rk-medal { background: #aeb8c4; } .rk-pod.p3 .rk-medal { background: #c27b3e; }
.rk-pod img.rk-sprite { height: 110px; }
.rk-pod .rk-name { display: block; font-size: 15px; font-weight: 700; margin-top: 4px; word-break: break-word; }
.rk-pod .rk-guild { display: block; color: var(--rk-muted); font-size: 12px; }
.rk-pod .rk-big { display: block; margin-top: 6px; font-size: 19px; font-weight: 800; color: var(--rk-navy); }
.rk-pod .rk-small { display: block; font-size: 11px; color: var(--rk-muted); }

/* Player cards */
.rk-card { margin-bottom: 12px; border: 1px solid var(--rk-line); border-radius: 10px; overflow: hidden; background: var(--rk-card); box-shadow: 0 1px 4px rgba(15,35,70,.05); }
.rk-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: linear-gradient(90deg, var(--rk-navy), var(--rk-blue)); color: #fff; }
.rk-pos { flex: 0 0 auto; min-width: 36px; height: 36px; line-height: 36px; text-align: center; border-radius: 8px; background: rgba(255,255,255,.12); color: var(--rk-gold); font-weight: 800; font-size: 15px; }
.rk-head .rk-who { flex: 1 1 auto; min-width: 0; }
.rk-head .rk-name { display: block; font-size: 15px; font-weight: 700; color: #fff; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-head .rk-name:hover { color: var(--rk-gold); }
.rk-head .rk-guild { display: flex; align-items: center; gap: 5px; color: #ffd75e; font-size: 12px; }
.rk-head .rk-guild img { width: 16px; height: 16px; }
.rk-head .rk-lvl { flex: 0 0 auto; text-align: right; font-size: 12px; color: #cfe0f5; }
.rk-head .rk-pts { flex: 0 0 auto; padding: 3px 10px; border-radius: 14px; background: var(--rk-gold); color: var(--rk-navy); font-weight: 800; font-size: 13px; }
.rk-body { display: flex; gap: 14px; padding: 12px; }
.rk-side { flex: 0 0 120px; text-align: center; }
.rk-side img.rk-sprite { max-width: 100%; height: 100px; object-fit: contain; }
.rk-side .rk-job { display: block; font-weight: 700; color: var(--rk-navy); }
.rk-side .rk-hpsp { display: block; font-size: 11px; color: var(--rk-muted); }
.rk-side .rk-insignia { display: block; margin: 6px auto 0; }
.rk-side .rk-rankname { display: block; font-size: 11px; font-weight: 700; color: #a0522d; }
.rk-side .rk-btn { display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: 14px; background: var(--rk-navy); color: var(--rk-gold); font-weight: 700; font-size: 12px; text-decoration: none; }
.rk-side .rk-btn:hover { background: var(--rk-blue); }
.rk-main { flex: 1 1 auto; min-width: 0; }

/* Overview row: donut + bars */
.rk-overview { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; margin-bottom: 10px; }
.rk-donut { position: relative; width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(var(--rk-win) calc(var(--w) * 1%), var(--rk-tie) 0 calc((var(--w) + var(--t)) * 1%), var(--rk-loss) 0); }
.rk-donut::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--rk-card); }
.rk-donut div { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rk-donut b { font-size: 19px; font-weight: 800; color: var(--rk-text); line-height: 1; }
.rk-donut span { font-size: 9px; text-transform: uppercase; color: var(--rk-muted); font-weight: 700; letter-spacing: .04em; }
.rk-bars { display: grid; gap: 8px; }
.rk-barrow .rk-barlabel { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; margin-bottom: 3px; }
.rk-barrow .rk-barlabel span { color: var(--rk-muted); font-weight: 600; }
.rk-stack { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: #e8edf3; }
.rk-stack i { display: block; height: 100%; }
.rk-stack .w { background: var(--rk-win); } .rk-stack .t { background: var(--rk-tie); } .rk-stack .l { background: var(--rk-loss); }
.rk-w { color: var(--rk-win); } .rk-t { color: var(--rk-tie); } .rk-l { color: var(--rk-loss); }

.rk-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; margin-bottom: 10px; }
.rk-stat { padding: 6px 8px; background: var(--rk-bg); border-radius: 6px; }
.rk-stat b { display: block; font-size: 14px; color: var(--rk-text); }
.rk-stat > span { font-size: 10px; text-transform: uppercase; color: var(--rk-muted); font-weight: 700; letter-spacing: .03em; }
.rk-stat.hl { background: #fff6d6; }

/* Modes */
.rk-modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.rk-mode { border: 1px solid var(--rk-line); border-radius: 8px; overflow: hidden; background: #fff; }
.rk-mode.on { border-color: var(--rk-gold); box-shadow: 0 0 0 2px rgba(255,195,0,.35); }
.rk-mode h4 { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 5px 8px; background: var(--rk-bg); color: var(--rk-navy); font-size: 12px; font-weight: 700; border-bottom: 1px solid var(--rk-line); }
.rk-mode h4 small { font-weight: 600; color: var(--rk-muted); }
.rk-mode .rk-modebar { padding: 6px 8px 2px; }
.rk-mode .rk-modebar .rk-barlabel { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 3px; }
.rk-mode ul { list-style: none; margin: 0; padding: 4px 8px 6px; }
.rk-mode li { display: flex; justify-content: space-between; gap: 6px; padding: 1px 0; font-size: 12px; }
.rk-mode li img { width: 16px; height: 16px; vertical-align: middle; margin-right: 4px; }
.rk-nomodes { color: var(--rk-muted); font-style: italic; }

.rk-more { margin-top: 10px; }
.rk-more summary { cursor: pointer; font-weight: 700; color: var(--rk-blue); font-size: 12px; }
.rk-more .rk-stats { margin-top: 6px; }

/* Guild table / castles (WoE) */
.rk h3.rk-section { font-size: 16px; line-height: 1.3; text-transform: none; letter-spacing: 0; font-family: inherit; }
.rk-section { margin: 18px 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--rk-gold); color: var(--rk-navy); font-weight: 700; }
.rk-table-wrap { overflow-x: auto; border-radius: 8px; border: 1px solid var(--rk-line); }
.rk-table { width: 100%; border-collapse: collapse; margin: 0; }
.rk-table th { background: var(--rk-navy); color: var(--rk-gold); padding: 7px 8px; text-align: left; white-space: nowrap; font-size: 12px; }
.rk-table td { padding: 6px 8px; border-bottom: 1px solid var(--rk-line); white-space: nowrap; }
.rk-table tr:nth-child(even) td { background: var(--rk-bg); }
.rk-table img { width: 16px; height: 16px; vertical-align: middle; margin-right: 4px; }
.rk-castles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.rk-castle { padding: 7px 9px; background: var(--rk-bg); border-radius: 6px; border-left: 3px solid var(--rk-gold); }
.rk-castle b { display: block; color: var(--rk-navy); }

/* Pagination */
.rk-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 16px 0; }
.rk-pages a, .rk-pages span { min-width: 34px; padding: 6px 10px; text-align: center; border: 1px solid var(--rk-line); border-radius: 6px; text-decoration: none; background: #fff; }
.rk-pages a:hover { border-color: var(--rk-blue); }
.rk-pages span.on { background: var(--rk-navy); color: var(--rk-gold); border-color: var(--rk-navy); font-weight: 700; }
.rk-pages span.gap { border: 0; background: none; }

@media (max-width: 700px) {
	.rk-summary { grid-template-columns: 1fr; }
	.rk-kpis { grid-template-columns: repeat(3, 1fr); }
	.rk-kpi b { font-size: 16px; }
	.rk-pop a { grid-template-columns: 105px 1fr 40px; }
	.rk-filters .rk-wide { grid-column: span 1; }
}
@media (max-width: 600px) {
	.rk-body { flex-direction: column; }
	.rk-side { flex-basis: auto; display: grid; grid-template-columns: 90px 1fr; gap: 0 8px; text-align: left; align-items: center; }
	.rk-side img.rk-sprite { grid-row: span 5; height: 80px; }
	.rk-side .rk-insignia { margin: 4px 0 0; }
	.rk-podium { grid-template-columns: 1fr; }
	.rk-pod.p1, .rk-pod.p2, .rk-pod.p3 { order: 0; }
	.rk-pod img.rk-sprite { height: 80px; }
	.rk-head .rk-lvl { display: none; }
	.rk-overview { grid-template-columns: 80px 1fr; }
	.rk-donut { width: 78px; height: 78px; }
	.rk-filters { grid-template-columns: 1fr 1fr; }
}

/* Period notice */
.rk-notice { margin: 0 0 12px; padding: 8px 12px; border-radius: 6px; background: #fff6d6; border: 1px solid #f3dc8a; font-size: 12px; }
.rk-notice.ok { background: #eaf6ef; border-color: #b9e0c8; }

/* Best by role */
.rk-leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 14px; }
.rk-leader { display: flex; flex-direction: column; align-items: center; padding: 10px 6px; border-radius: 8px; background: var(--rk-card); border: 1px solid var(--rk-line); text-align: center; text-decoration: none !important; color: var(--rk-text) !important; transition: transform .1s, box-shadow .1s; }
.rk-leader:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(15,35,70,.1); }
.rk-leader img { height: 64px; object-fit: contain; }
.rk-leader .rk-role { margin-top: 4px; padding: 1px 8px; border-radius: 10px; background: var(--rk-navy); color: var(--rk-gold); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.rk-leader b { margin-top: 4px; font-size: 13px; word-break: break-word; }
.rk-leader em { font-style: normal; font-size: 12px; color: var(--rk-muted); }

/* Class balance */
.rk-balance { margin-bottom: 14px; }
.rk-balance summary { cursor: pointer; padding: 8px 12px; border-radius: 8px; background: var(--rk-bg); border: 1px solid var(--rk-line); font-weight: 700; color: var(--rk-navy); }
.rk-balance[open] summary { margin-bottom: 8px; }
.rk-inline-bar { display: flex; align-items: center; gap: 8px; }
.rk-inline-bar .rk-hbar { flex: 1 1 auto; min-width: 70px; }
.rk-hbar i.good { background: var(--rk-win); } .rk-hbar i.bad { background: var(--rk-loss); }
.rk-side .rk-btn.alt { background: transparent; border: 1px solid var(--rk-navy); color: var(--rk-navy); }

/* Compare */
.rk-cmp-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 10px; align-items: end; padding: 12px; margin-bottom: 14px; background: var(--rk-bg); border: 1px solid var(--rk-line); border-radius: 8px; }
.rk-cmp-form label { display: flex; flex-direction: column; gap: 3px; margin: 0; font-size: 11px; font-weight: 700; color: var(--rk-muted); text-transform: uppercase; }
.rk-cmp-form input, .rk-cmp-form select { height: 32px; padding: 4px 8px; border: 1px solid #cfd8e3; border-radius: 6px; font-size: 13px; background: #fff; color: var(--rk-text); }
.rk-cmp-form button { height: 32px; border: 0; border-radius: 6px; background: var(--rk-gold); color: var(--rk-navy); font-weight: 700; cursor: pointer; }
.rk-vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin-bottom: 14px; }
.rk-vs .rk-fighter { padding: 12px; border-radius: 10px; text-align: center; color: #fff; background: linear-gradient(135deg, var(--rk-navy), var(--rk-blue)); }
.rk-vs .rk-fighter.b { background: linear-gradient(135deg, #7a1f1f, #c0392b); }
.rk-vs .rk-fighter img.rk-sprite { height: 100px; object-fit: contain; }
.rk-vs .rk-fighter b { display: block; font-size: 16px; }
.rk-vs .rk-fighter span { display: block; font-size: 12px; opacity: .85; }
.rk-vs .rk-fighter .rk-score { margin-top: 6px; display: inline-block; padding: 2px 10px; border-radius: 12px; background: rgba(255,255,255,.15); font-weight: 700; color: var(--rk-gold); }
.rk-vs .rk-versus { font-size: 22px; font-weight: 900; color: var(--rk-navy); }
.rk-cmp { margin-bottom: 12px; border: 1px solid var(--rk-line); border-radius: 8px; overflow: hidden; }
.rk-cmp h4 { margin: 0; padding: 6px 10px; background: var(--rk-bg); color: var(--rk-navy); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--rk-line); }
.rk-cmp-row { display: grid; grid-template-columns: 1fr 150px 1fr; gap: 8px; align-items: center; padding: 5px 10px; border-bottom: 1px solid var(--rk-line); font-size: 13px; }
.rk-cmp-row:last-child { border-bottom: 0; }
.rk-cmp-row .lbl { text-align: center; color: var(--rk-muted); font-size: 12px; font-weight: 600; }
.rk-cmp-row .va, .rk-cmp-row .vb { display: flex; align-items: center; gap: 6px; }
.rk-cmp-row .va { flex-direction: row-reverse; }
.rk-cmp-row .va .rk-hbar { direction: rtl; }
.rk-cmp-row .rk-hbar { flex: 1 1 auto; height: 8px; }
.rk-cmp-row .va .rk-hbar i { background: var(--rk-blue); }
.rk-cmp-row .vb .rk-hbar i { background: #c0392b; }
.rk-cmp-row b { min-width: 70px; }
.rk-cmp-row .va b { text-align: right; }
.rk-cmp-row .win { color: var(--rk-win); }
.rk-cmp-row .win::after { content: " \2714"; font-size: 11px; }
.rk-cmp-total { text-align: center; margin: 0 0 14px; font-weight: 700; color: var(--rk-navy); }
@media (max-width: 600px) {
	.rk-cmp-row { grid-template-columns: 1fr 90px 1fr; font-size: 12px; }
	.rk-cmp-row b { min-width: 0; }
	.rk-vs .rk-fighter img.rk-sprite { height: 70px; }
}

/* Castles */
.rk-muted { color: var(--rk-muted); font-weight: 400; font-size: 12px; }
.rk-owners { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.rk-owner { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 20px; background: linear-gradient(135deg, var(--rk-navy), var(--rk-blue)); color: #fff; }
.rk-owner img { width: 20px; height: 20px; }
.rk-owner span { color: var(--rk-gold); font-weight: 700; font-size: 12px; }
.rk-castle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.rk-castle-card { padding: 9px 10px; border-radius: 8px; background: var(--rk-card); border: 1px solid var(--rk-line); border-top: 4px solid #c9d3df; }
.rk-castle-card.owned { border-top-color: var(--rk-gold); }
.rk-castle-head { display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.rk-castle-head b { color: var(--rk-navy); }
.rk-castle-head a { text-decoration: none; font-size: 12px; }
.rk-castle-owner { display: flex; align-items: center; gap: 5px; min-height: 22px; margin: 4px 0 6px; font-size: 12px; font-weight: 600; }
.rk-castle-owner img { width: 16px; height: 16px; }
.rk-castle-card .rk-barrow { margin-bottom: 5px; }
.rk-castle-card .rk-barlabel { display: flex; justify-content: space-between; font-size: 11px; }
.rk-castle-stats { list-style: none; margin: 6px 0 0; padding: 6px 0 0; border-top: 1px solid var(--rk-line); }
.rk-castle-stats li { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; }
.rk-castle-stats li span { color: var(--rk-muted); }

/* Castle ranking: schedule, holdings, Wings of Gaia */
.rk-castle-kpis { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); margin-bottom: 12px; }
.rk-kpi.rk-live { background: linear-gradient(135deg, #1e7d43, #2fa35d); }
.rk-badge { display: inline-block; margin: 1px 2px; padding: 1px 7px; border-radius: 10px; background: #e7edf5; color: var(--rk-navy); font-size: 10px; font-weight: 700; white-space: nowrap; }
.rk-badge.live { background: #2fa35d; color: #fff; }
.rk-badge.gold { background: #fff1c2; color: #8a6400; }
.rk-badge.off { background: #f1f1f1; color: #999; }
.rk-castle-woe { min-height: 18px; margin-top: 3px; }
.rk-wog { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; padding: 10px; border-radius: 8px; background: var(--rk-card); border: 1px solid var(--rk-line); border-top: 4px solid var(--rk-gold); }
.rk-wog-holder { display: flex; align-items: center; gap: 10px; }
.rk-wog-holder img { width: 32px; height: 32px; }
.rk-wog-holder span { display: block; font-size: 10px; text-transform: uppercase; color: var(--rk-muted); font-weight: 700; }
.rk-wog-holder b { font-size: 15px; color: var(--rk-navy); }

/* Castle ranking: realm maps */
.rk-realm.has-map { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 10px; align-items: start; }
.rk-realm-map { position: relative; width: 100%; aspect-ratio: 1 / 1; background: #2b2b2b center / cover no-repeat; border-radius: 8px; border: 2px solid var(--rk-navy); }
.rk-pin { position: absolute; transform: translate(-50%, -50%); display: block; text-decoration: none; z-index: 1; }
.rk-pin img, .rk-pin i { display: block; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; background: #8c96a3; box-shadow: 0 1px 4px rgba(0,0,0,.6); }
.rk-pin.owned img, .rk-pin.owned i { border-color: var(--rk-gold); background: #fff; }
.rk-pin.live img, .rk-pin.live i { border-color: #2fa35d; animation: rk-pulse 1.4s infinite; }
.rk-pin span { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 2px; padding: 2px 6px; border-radius: 4px; background: rgba(15, 25, 45, .85); color: #fff; font-size: 10px; line-height: 1.25; white-space: nowrap; text-align: center; }
.rk-pin span b { display: block; color: var(--rk-gold); font-size: 11px; }
.rk-pin:hover { z-index: 2; }
@keyframes rk-pulse { 0% { box-shadow: 0 0 0 0 rgba(47,163,93,.8); } 70% { box-shadow: 0 0 0 10px rgba(47,163,93,0); } 100% { box-shadow: 0 0 0 0 rgba(47,163,93,0); } }
@media (max-width: 700px) { .rk-realm.has-map { grid-template-columns: 1fr; } .rk-realm-map { max-width: 320px; margin: 0 auto; } }

/* Castle owner's guide */
.rk-guide-link { margin: 0 0 10px; font-size: 12px; font-weight: 700; }
.rk-guide details { margin-bottom: 6px; border: 1px solid var(--rk-line); border-left: 4px solid var(--rk-gold); border-radius: 6px; background: var(--rk-card); }
.rk-guide summary { padding: 8px 12px; cursor: pointer; font-weight: 700; color: var(--rk-navy); }
.rk-guide details > *:not(summary) { margin-left: 12px; margin-right: 12px; }
.rk-guide p, .rk-guide li { font-size: 12px; line-height: 1.5; }
.rk-guide ul { padding-left: 18px; }
.rk-guide-cost td, .rk-guide-cost th { font-size: 11px; }
