.rb-wrap{max-width:1180px;margin:0 auto;padding:10px;color:#f7efff}
.rb-hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:stretch;padding:22px;border:1px solid rgba(155,215,255,.28);border-radius:24px;background:radial-gradient(circle at 15% 0%,rgba(124,227,255,.20),transparent 32%),radial-gradient(circle at 92% 15%,rgba(255,132,219,.20),transparent 38%),linear-gradient(180deg,rgba(20,13,46,.94),rgba(7,5,24,.96));box-shadow:0 18px 55px rgba(0,0,0,.35),0 0 38px rgba(113,177,255,.14);overflow:hidden}
.rb-hero:before{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.45) 1px,transparent 1px);background-size:28px 28px;opacity:.12;pointer-events:none}
.rb-kicker{margin:0 0 6px;text-transform:uppercase;letter-spacing:.16em;font-weight:900;font-size:.75rem;color:#9bd7ff}
.rb-hero h1{margin:0 0 8px;font-size:clamp(2rem,5vw,4.1rem);line-height:.96;text-shadow:0 0 22px rgba(167,114,255,.32)}
.rb-hero p{max-width:760px;line-height:1.65;color:#e9ddff}
.rb-hero-card{position:relative;z-index:1;border:1px solid rgba(255,255,255,.16);border-radius:22px;padding:14px;background:rgba(255,255,255,.065);box-shadow:inset 0 0 24px rgba(255,255,255,.035)}
.rb-banner{width:100%;min-height:190px;object-fit:cover;border-radius:17px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05)}
.rb-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.rb-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 14px;border-radius:999px;border:1px solid rgba(155,215,255,.42);background:linear-gradient(135deg,rgba(91,208,255,.25),rgba(216,130,255,.25));color:#fff;text-decoration:none;font-weight:900;box-shadow:0 0 15px rgba(126,204,255,.16);cursor:pointer}.rb-btn:hover{filter:brightness(1.12);transform:translateY(-1px)}.rb-btn--soft{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.18)}
.rb-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin-top:16px}.rb-card{border:1px solid rgba(185,148,255,.22);border-radius:20px;padding:16px;background:linear-gradient(180deg,rgba(24,13,55,.84),rgba(10,6,28,.88));box-shadow:0 12px 34px rgba(0,0,0,.22)}.rb-card h2,.rb-card h3{margin-top:0;color:#fff}.rb-card p{line-height:1.55;color:#e8dcff}.rb-warning{border-color:rgba(255,203,112,.45);background:linear-gradient(180deg,rgba(68,41,12,.8),rgba(28,15,8,.88))}
.rb-aetherial{display:grid;grid-template-columns:110px 1fr;gap:13px;align-items:center}.rb-aetherial img{width:110px;height:110px;object-fit:contain;border-radius:18px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);padding:8px}.rb-name{font-size:1.2rem;font-weight:950;color:#fff}.rb-meta{display:flex;gap:7px;flex-wrap:wrap;margin:7px 0}.rb-chip,.rb-type{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:4px 9px;font-size:.78rem;font-weight:900;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.07);color:#f8f0ff}.rb-type{background:color-mix(in srgb,var(--rb-type,#9bd7ff) 32%,rgba(12,8,29,.85));border-color:color-mix(in srgb,var(--rb-type,#9bd7ff) 58%,transparent);box-shadow:0 0 12px color-mix(in srgb,var(--rb-type,#9bd7ff) 24%,transparent)}
.rb-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:10px}.rb-stat{padding:8px;border-radius:14px;background:rgba(255,255,255,.055);text-align:center}.rb-stat b{display:block;color:#9bd7ff}.rb-moves{display:grid;gap:8px}.rb-move{padding:10px;border:1px solid rgba(255,255,255,.11);border-radius:14px;background:rgba(255,255,255,.052)}.rb-move-top{display:flex;justify-content:space-between;gap:8px;align-items:center;font-weight:900}.rb-small{font-size:.88rem;opacity:.82}.rb-form{display:grid;gap:10px}.rb-form label{display:grid;gap:5px;font-weight:900;color:#f4eaff}.rb-form input,.rb-form select,.rb-form textarea{width:100%;box-sizing:border-box;border-radius:12px;border:1px solid rgba(255,255,255,.16);background:rgba(6,4,18,.75);color:#fff;padding:10px}.rb-form textarea{min-height:88px}.rb-form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px}
.rb-team-slots{display:grid;grid-template-columns:repeat(6,minmax(110px,1fr));gap:10px}.rb-slot{min-height:120px;border:1px dashed rgba(155,215,255,.35);border-radius:16px;padding:10px;text-align:center;background:rgba(255,255,255,.04)}.rb-slot img{width:76px;height:76px;object-fit:contain}.rb-slot-empty{display:flex;align-items:center;justify-content:center;color:#bfaee8;font-weight:900}
.rb-map-stage{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:16px}.rb-map-preview{position:relative;min-height:430px;border-radius:22px;overflow:hidden;border:1px solid rgba(155,215,255,.25);background:#090519}.rb-map-preview img{width:100%;height:100%;object-fit:cover;display:block;min-height:430px;opacity:.82}.rb-fog-grid{position:absolute;inset:0;display:grid;grid-template-columns:repeat(var(--rb-w,12),1fr);grid-template-rows:repeat(var(--rb-h,18),1fr)}.rb-tile{border:1px solid rgba(255,255,255,.045);background:rgba(0,0,0,.72)}.rb-tile:nth-child(14),.rb-tile:nth-child(15),.rb-tile:nth-child(26),.rb-tile:nth-child(27),.rb-tile:nth-child(39){background:rgba(0,0,0,.08);box-shadow:inset 0 0 18px rgba(155,215,255,.22)}.rb-map-icon{position:absolute;left:18%;top:14%;font-size:1.7rem;filter:drop-shadow(0 0 8px rgba(255,255,255,.7))}.rb-map-icon--item{left:48%;top:42%}.rb-map-icon--event{left:68%;top:70%}
.rb-admin-counts{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}.rb-count{border-radius:16px;padding:12px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.1);text-align:center}.rb-count b{display:block;font-size:1.5rem;color:#9bd7ff}.rb-table{width:100%;border-collapse:collapse}.rb-table th,.rb-table td{padding:9px;border-bottom:1px solid rgba(255,255,255,.09);text-align:left}.rb-table th{color:#9bd7ff}
@media(max-width:760px){.rb-hero,.rb-map-stage{grid-template-columns:1fr}.rb-team-slots{grid-template-columns:repeat(2,1fr)}.rb-stats{grid-template-columns:repeat(2,1fr)}.rb-aetherial{grid-template-columns:92px 1fr}.rb-aetherial img{width:92px;height:92px}.rb-wrap{padding:6px}}
.rb-grid--wide-left{grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr)}
.rb-check{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;gap:8px}.rb-check input{width:auto!important}
.rb-variant-preview{display:grid;grid-template-columns:repeat(2,minmax(90px,1fr));gap:10px}.rb-variant-preview div{border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:10px;background:rgba(255,255,255,.055);text-align:center}.rb-variant-preview img{width:100%;height:110px;object-fit:contain}.rb-variant-preview span{display:block;margin-top:6px;font-weight:900;color:#f7efff}
.rb-mini-link{display:inline-flex;margin-top:6px;color:#9bd7ff;text-decoration:none;font-weight:900}.rb-mini-link:hover{text-decoration:underline}.rb-evo-tree{display:grid;gap:18px}.rb-evo-node{margin-left:calc(var(--rb-depth,0) * 28px)}.rb-evo-card{display:grid;grid-template-columns:86px 1fr;gap:12px;align-items:center;border:1px solid rgba(155,215,255,.22);border-radius:18px;padding:10px;background:linear-gradient(135deg,rgba(255,255,255,.07),rgba(155,215,255,.055))}.rb-evo-card img{width:86px;height:86px;object-fit:contain;border-radius:14px;background:rgba(0,0,0,.18);border:1px solid rgba(255,255,255,.1)}.rb-evo-card h3{margin:0 0 4px}.rb-evo-children{display:grid;gap:12px;margin:10px 0 0 26px;padding-left:16px;border-left:2px solid rgba(155,215,255,.28)}.rb-evo-branch{display:grid;gap:8px}.rb-evo-rule{display:flex;gap:8px;align-items:center;flex-wrap:wrap;color:#e9ddff}.rb-evo-rule span{color:#9bd7ff;font-size:1.2rem}.rb-evo-rule small{opacity:.75}
@media(max-width:760px){.rb-grid--wide-left{grid-template-columns:1fr}.rb-variant-preview{grid-template-columns:1fr 1fr}.rb-evo-node{margin-left:0}.rb-evo-children{margin-left:6px;padding-left:10px}.rb-evo-card{grid-template-columns:74px 1fr}.rb-evo-card img{width:74px;height:74px}}
.rb-credit-box{margin-top:14px;border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:12px;background:rgba(255,255,255,.05)}
.rb-credit-box p{margin:.35rem 0}


/* Riftborn admin stat roller */
.rb-stat-roller {
  border: 1px solid rgba(178, 211, 255, 0.28);
  background: radial-gradient(circle at top left, rgba(154, 213, 255, 0.14), rgba(42, 28, 82, 0.22));
  border-radius: 18px;
  padding: 14px;
  margin: 12px 0 14px;
  box-shadow: inset 0 0 18px rgba(149, 187, 255, 0.06);
}
.rb-stat-roller h3 {
  margin-top: 0;
  margin-bottom: 4px;
}
.rb-stat-roller__controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
  align-items: end;
  margin-top: 10px;
}
.rb-stat-result {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.92rem;
}
@media (max-width: 760px) {
  .rb-stat-roller__controls {
    grid-template-columns: 1fr;
  }
}
.rb-form-row--stats{grid-template-columns:repeat(auto-fit,minmax(105px,1fr))}
.rb-form-row--stats input{text-align:center;font-weight:900}
.rb-stat--tiny b{font-size:1rem}.rb-stat--tiny{font-size:.76rem}

/* Riftborn site-within-site shell */
.rb-site-mode{--rb-deep:#070413;--rb-ink:#f7f0ff;--rb-glow:#a56cff;--rb-cyan:#7ce8ff;--rb-pink:#ff7bd7;}
.rb-portal-tab{position:fixed;left:10px;top:12px;z-index:1000;width:42px;height:42px;border-radius:13px;display:flex;align-items:center;justify-content:center;text-decoration:none;font-weight:1000;font-family:Arial,sans-serif;color:#13051f;background:linear-gradient(135deg,#f7f2ff,#9bdcff);border:2px solid rgba(21,7,35,.92);box-shadow:0 0 18px rgba(143,220,255,.45),0 8px 24px rgba(0,0,0,.35);letter-spacing:.03em}
.rb-portal-tab:hover{transform:translateY(-1px);filter:brightness(1.08)}
.rb-headerbox{background:
  radial-gradient(circle at 20% 10%,rgba(124,232,255,.20),transparent 32%),
  radial-gradient(circle at 80% 18%,rgba(255,123,215,.18),transparent 28%),
  linear-gradient(180deg,rgba(17,8,42,.96),rgba(7,4,19,.98))!important;
  border:1px solid rgba(156,117,255,.45);box-shadow:0 0 34px rgba(137,91,255,.18),inset 0 0 26px rgba(255,255,255,.035)}
.rb-modebar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px 0;flex-wrap:wrap}
.rb-return-star,.rb-mode-pill{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:999px;border:1px solid rgba(124,232,255,.38);background:rgba(124,232,255,.10);color:#effbff;text-decoration:none;font-weight:900;font-size:12px;box-shadow:0 0 16px rgba(124,232,255,.11)}
.rb-return-star img{width:22px;height:22px;border-radius:7px;object-fit:cover;background:#fff}
.rb-return-star:hover,.rb-mode-pill:hover{background:rgba(255,255,255,.14);filter:brightness(1.08)}
.rb-mode-pill{margin-left:auto;background:rgba(165,108,255,.14);border-color:rgba(190,151,255,.45)}
.rb-mode-pill--staff{margin-left:0;background:rgba(255,123,215,.13);border-color:rgba(255,123,215,.42)}
.rb-headertop{align-items:stretch;gap:14px;padding-top:12px}
.rb-titlewrap{display:flex;align-items:center;gap:14px;min-width:220px}
.rb-brandmark{width:64px;height:64px;border-radius:18px;display:flex;align-items:center;justify-content:center;color:#11051f;background:linear-gradient(135deg,#ffffff,#8eeaff 55%,#e8c0ff);font-weight:1000;font-size:34px;border:2px solid rgba(255,255,255,.75);box-shadow:0 0 22px rgba(124,232,255,.38),0 0 32px rgba(165,108,255,.22)}
.rb-title{letter-spacing:.04em;text-shadow:0 0 14px rgba(124,232,255,.45),0 0 24px rgba(255,123,215,.22)}
.rb-tagline{color:#d9f8ff}
.rb-userbox{background:linear-gradient(180deg,rgba(17,8,42,.84),rgba(6,4,18,.72));border:1px solid rgba(124,232,255,.18)}
.rb-walletrow{justify-content:center;color:#effbff}
.rb-aether-icon{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;color:#7ce8ff;text-shadow:0 0 10px rgba(124,232,255,.75)}
.rb-midrow{display:flex;align-items:center;justify-content:center;gap:12px;margin:10px auto 8px;flex-wrap:wrap;padding:0 12px;position:relative;z-index:8}
.rb-servertime,.rb-partybtn{display:inline-flex;align-items:center;gap:8px;padding:7px 13px;border-radius:999px;border:1px solid rgba(165,108,255,.42);background:rgba(7,4,19,.72);color:#f7f0ff;font-size:12px;font-weight:900;box-shadow:0 0 14px rgba(165,108,255,.16)}
.rb-servertime span{color:#bff7ff}.rb-servertime time{color:#fff}
.rb-partybox{position:relative}.rb-partybtn{cursor:pointer;list-style:none;border-color:rgba(124,232,255,.46)}.rb-partybtn::-webkit-details-marker{display:none}.rb-partybtn span{color:#7ce8ff}
.rb-partypanel{position:absolute;right:0;top:calc(100% + 8px);width:min(94vw,420px);padding:12px;border-radius:18px;background:linear-gradient(180deg,rgba(15,7,39,.98),rgba(5,3,17,.98));border:1px solid rgba(124,232,255,.35);box-shadow:0 18px 44px rgba(0,0,0,.45),0 0 26px rgba(124,232,255,.13);z-index:80;color:#fff}
.rb-partygrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.rb-partymini{display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 6px;border-radius:14px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.09);color:#fff;text-decoration:none;text-align:center;min-width:0}.rb-partymini:hover{background:rgba(124,232,255,.12)}
.rb-partymini img{width:54px;height:54px;object-fit:contain;filter:drop-shadow(0 0 9px rgba(124,232,255,.22))}.rb-partymini span{font-size:11px;font-weight:900;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rb-partymini em{font-size:10px;color:#c8f8ff;font-style:normal}.rb-partyactions{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}.rb-partyactions a{flex:1;min-width:120px;text-align:center;padding:7px 10px;border-radius:999px;background:rgba(165,108,255,.16);border:1px solid rgba(165,108,255,.38);color:#fff;text-decoration:none;font-weight:900;font-size:12px}
.rb-topmenu{background:rgba(4,3,15,.40);border-top:1px solid rgba(255,255,255,.06);border-bottom:1px solid rgba(255,255,255,.06);padding:9px 12px}.rb-topmenu .st-ddmenu{background:linear-gradient(180deg,rgba(15,7,39,.98),rgba(5,3,17,.98));border-color:rgba(124,232,255,.34)}
.rb-onlinewrap{margin-top:8px;padding-bottom:10px}
@media(max-width:760px){.rb-headertop{flex-direction:column}.rb-mode-pill{margin-left:0}.rb-partypanel{left:50%;right:auto;transform:translateX(-50%)}.rb-partygrid{grid-template-columns:repeat(2,minmax(0,1fr))}.rb-brandmark{width:54px;height:54px;font-size:28px}.rb-portal-tab{width:36px;height:36px;top:8px;left:8px}}

/* Riftborn v17 profile/share image card layer - watermark is baked into uploaded art */
.rb-watermark-card{position:relative;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;border-radius:18px;text-decoration:none;background:radial-gradient(circle at 50% 20%,rgba(150,230,255,.14),rgba(65,23,112,.08) 52%,rgba(0,0,0,.16));border:1px solid rgba(173,231,255,.22);box-shadow:inset 0 0 18px rgba(255,255,255,.04),0 0 18px rgba(109,210,255,.12)}
.rb-watermark-card img{display:block;max-width:100%;height:auto;object-fit:contain;position:relative;z-index:1}
.rb-img-watermark{position:absolute;right:7px;bottom:5px;z-index:2;padding:2px 6px;border-radius:999px;background:rgba(8,5,23,.72);border:1px solid rgba(255,255,255,.28);color:rgba(255,255,255,.9);font-size:9px;font-weight:900;letter-spacing:.02em;text-shadow:0 1px 2px rgba(0,0,0,.9);pointer-events:none;max-width:92%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rb-aetherial .rb-watermark-card{width:96px;min-width:96px;min-height:96px;padding:6px}
.rb-aetherial .rb-watermark-card img{max-width:86px;max-height:86px}
.rb-profile-watermark{width:min(360px,92vw);min-height:280px;padding:18px}
.rb-profile-watermark img{max-width:min(320px,84vw);max-height:300px}
.rb-profile-hero{display:grid;grid-template-columns:minmax(180px,360px) 1fr;gap:22px;align-items:center}
.rb-profile-art{display:flex;align-items:center;justify-content:center}
.rb-profile-info h1{margin:.1rem 0 .6rem;font-size:clamp(2rem,5vw,3.4rem)}
.rb-actions--small{margin-top:10px;gap:8px;flex-wrap:wrap}.rb-actions--small .rb-btn{font-size:.8rem;padding:7px 10px}
.rb-sharebox{margin-top:10px;max-width:100%;overflow:auto}.rb-sharebox code{display:inline-block;padding:7px 10px;border-radius:12px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);color:#f5efff}
.rb-evo-ready{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.08)}.rb-evo-ready:last-child{border-bottom:0}
.rb-trainer-avatar{display:flex;align-items:center;justify-content:center}.rb-trainer-avatar img{width:min(240px,70vw);height:min(240px,70vw);object-fit:cover;border-radius:32px;border:2px solid rgba(177,232,255,.35);box-shadow:0 0 30px rgba(118,219,255,.18),0 0 60px rgba(183,116,255,.12);background:rgba(255,255,255,.06)}
.rb-mini-profile-card{text-align:center}.rb-mini-profile-card .rb-watermark-card{width:140px;min-height:140px;margin:0 auto 10px;padding:10px}.rb-mini-profile-card .rb-watermark-card img{max-width:118px;max-height:118px}.rb-mini-profile-card h3{margin:4px 0 8px}.rb-mini-profile-card a{color:inherit}
.rb-slot-link{display:inline-flex;text-decoration:none}.rb-slot-link img{transition:transform .15s ease}.rb-slot-link:hover img{transform:translateY(-2px) scale(1.03)}
.rb-name a{color:inherit;text-decoration:none}.rb-name a:hover{text-decoration:underline}
@media(max-width:760px){.rb-profile-hero{grid-template-columns:1fr}.rb-profile-watermark{min-height:220px}.rb-img-watermark{font-size:8px;right:5px;bottom:4px}}

/* Riftborn v8: keep shared Stardust icons tidy inside the Riftborn header */
.rb-header .st-currencyicon,
.rb-headerbox .st-currencyicon,
.rb-walletrow .st-currencyicon {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  border-radius: 0;
  padding: 0;
  margin: 0 3px 0 0;
}
.rb-return-star img {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  object-fit: cover;
  flex: 0 0 22px;
}
.rb-form input[type="file"] {
  padding: 8px;
  background: rgba(255,255,255,.06);
}

/* Riftborn v11: tidy header wallet/return icons and centered online roster */
.rb-header .rb-return-star img,
.rb-headerbox .rb-return-star img {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  object-fit: cover !important;
  flex: 0 0 20px !important;
  border-radius: 7px !important;
}

.rb-header .rb-walletrow img.st-currencyicon,
.rb-headerbox .rb-walletrow img.st-currencyicon,
.rb-header .st-walletitem img.st-currencyicon,
.rb-headerbox .st-walletitem img.st-currencyicon,
.rb-header .st-userbox img.st-currencyicon,
.rb-headerbox .st-userbox img.st-currencyicon {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  object-fit: contain !important;
  display: inline-block !important;
  flex: 0 0 16px !important;
  vertical-align: middle !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 3px 0 0 !important;
  box-shadow: none !important;
}

.rb-onlinewrap {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
  margin: 8px auto 0 !important;
  padding: 0 12px 10px !important;
}

.rb-onlinewrap .st-onlinebox {
  display: inline-block !important;
  margin: 0 auto !important;
  max-width: min(96vw, 760px) !important;
  position: relative !important;
}

.rb-onlinewrap .st-onlinebtn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.rb-onlinewrap .st-onlinepanel {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  text-align: center !important;
  width: min(92vw, 390px) !important;
}

.rb-onlinewrap .st-onlinepanel h4 {
  text-align: center !important;
}

.rb-onlinewrap .st-onlineuserlist {
  display: grid !important;
  gap: 8px !important;
  justify-items: stretch !important;
  max-height: 260px !important;
  overflow: auto !important;
}

.rb-onlinewrap .st-onlineuser {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  text-align: left !important;
}

.rb-onlinewrap .st-onlineuser img.st-onlineavatar,
.rb-header .st-onlineuser img.st-onlineavatar,
.rb-headerbox .st-onlineuser img.st-onlineavatar {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  flex: 0 0 34px !important;
  border: 2px solid rgba(124,232,255,.55) !important;
  box-shadow: 0 0 10px rgba(124,232,255,.18) !important;
}

.rb-onlinewrap .st-onlinenamewrap,
.rb-header .st-onlinenamewrap,
.rb-headerbox .st-onlinenamewrap {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
}

.rb-onlinewrap .st-onlinename,
.rb-header .st-onlinename,
.rb-headerbox .st-onlinename {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-weight: 900 !important;
}

.rb-onlinewrap .st-onlinearea,
.rb-header .st-onlinearea,
.rb-headerbox .st-onlinearea {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 11px !important;
  line-height: 1 !important;
  color: rgba(255,255,255,.78) !important;
}

.rb-onlinewrap .st-onlineuser img.st-onlineareaicon,
.rb-header .st-onlineuser img.st-onlineareaicon,
.rb-headerbox .st-onlineuser img.st-onlineareaicon {
  width: 15px !important;
  height: 15px !important;
  max-width: 15px !important;
  max-height: 15px !important;
  min-width: 15px !important;
  min-height: 15px !important;
  object-fit: contain !important;
  border: 0 !important;
  border-radius: 5px !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: 0 0 8px rgba(124,232,255,.18) !important;
  flex: 0 0 15px !important;
}

/* Riftborn v12: stronger header/online fixes for the Riftborn-side header. */
.rb-header .rb-return-star img{width:20px!important;height:20px!important;max-width:20px!important;max-height:20px!important;min-width:20px!important;min-height:20px!important;object-fit:cover!important;border-radius:7px!important;display:inline-block!important;flex:0 0 20px!important;}
.rb-header .st-userbox .st-currencyicon,.rb-header .rb-walletrow .st-currencyicon{width:16px!important;height:16px!important;max-width:16px!important;max-height:16px!important;min-width:16px!important;min-height:16px!important;object-fit:contain!important;border:0!important;border-radius:0!important;padding:0!important;margin:0 3px 0 0!important;box-shadow:none!important;display:inline-block!important;vertical-align:middle!important;flex:0 0 16px!important;}
.rb-header .rb-onlinewrap{display:flex!important;justify-content:center!important;align-items:center!important;text-align:center!important;width:100%!important;margin:8px auto 0!important;padding:0 12px 10px!important;}
.rb-header .rb-onlinewrap .st-onlinebox{display:inline-block!important;margin:0 auto!important;max-width:min(96vw,760px)!important;position:relative!important;}
.rb-header .rb-onlinewrap .st-onlinebtn{display:inline-flex!important;justify-content:center!important;align-items:center!important;text-align:center!important;gap:8px!important;}
.rb-header .rb-onlinewrap .st-onlinepanel{left:50%!important;right:auto!important;top:calc(100% + 8px)!important;transform:translateX(-50%)!important;width:min(92vw,390px)!important;text-align:center!important;}
.rb-header .rb-onlinewrap .st-onlinepanel h4{text-align:center!important;}
.rb-header .rb-onlinewrap .st-onlineuserlist{display:grid!important;gap:8px!important;justify-items:stretch!important;max-height:260px!important;overflow:auto!important;}
.rb-header .rb-onlinewrap .st-onlineuser{display:flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;text-align:left!important;}
.rb-header .rb-onlinewrap .st-onlineuser img.st-onlineavatar{width:34px!important;height:34px!important;max-width:34px!important;max-height:34px!important;min-width:34px!important;min-height:34px!important;object-fit:cover!important;border-radius:50%!important;flex:0 0 34px!important;border:2px solid rgba(124,232,255,.55)!important;box-shadow:0 0 10px rgba(124,232,255,.18)!important;padding:0!important;margin:0!important;}
.rb-header .rb-onlinewrap .st-onlineuser img.st-onlineareaicon{width:15px!important;height:15px!important;max-width:15px!important;max-height:15px!important;min-width:15px!important;min-height:15px!important;object-fit:contain!important;border:0!important;border-radius:5px!important;padding:0!important;margin:0!important;box-shadow:0 0 8px rgba(124,232,255,.18)!important;flex:0 0 15px!important;}

/* Riftborn v13 move library + Stardust rarity badges */
.rb-sep{border:0;border-top:1px solid rgba(255,255,255,.12);margin:18px 0}.rb-fieldset{border:1px solid rgba(155,215,255,.22);border-radius:16px;padding:12px;background:rgba(255,255,255,.035)}.rb-fieldset legend{font-weight:950;color:#9bd7ff;padding:0 8px}.rb-check-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin-top:8px}.rb-check{display:flex!important;align-items:center;gap:7px;font-weight:900}.rb-check input{width:auto!important}.rb-filter-form{margin:8px 0 14px}.rb-move-library-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}.rb-move-admin-card{border:1px solid rgba(185,148,255,.2);border-radius:18px;padding:12px;background:rgba(255,255,255,.045);box-shadow:0 8px 22px rgba(0,0,0,.15)}.rb-move-admin-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:8px}.rb-rarity{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:4px 9px;font-size:.76rem;font-weight:950;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.07);color:#fff;white-space:nowrap}.rb-rarity--common{border-color:rgba(155,215,255,.34);box-shadow:0 0 12px rgba(155,215,255,.13)}.rb-rarity--uncommon{border-color:rgba(185,255,172,.34);box-shadow:0 0 12px rgba(185,255,172,.13)}.rb-rarity--rare{border-color:rgba(177,127,255,.38);box-shadow:0 0 12px rgba(177,127,255,.15)}.rb-rarity--super_rare{border-color:rgba(255,201,106,.42);box-shadow:0 0 14px rgba(255,201,106,.16)}.rb-rarity--ultra_rare{border-color:rgba(255,143,217,.46);box-shadow:0 0 15px rgba(255,143,217,.18)}.rb-rarity--mythic{border-color:rgba(255,255,255,.52);box-shadow:0 0 18px rgba(255,255,255,.22),0 0 22px rgba(167,114,255,.16)}.rb-table .rb-rarity,.rb-table .rb-type{margin-top:4px;margin-right:4px}.rb-actions form{display:inline-flex;margin:0}@media(max-width:760px){.rb-move-admin-top{flex-direction:column}.rb-check-grid{grid-template-columns:1fr}}

/* Riftborn v14 admin usability upgrades */
.rb-collapsible{border:1px solid rgba(155,215,255,.18);border-radius:18px;background:rgba(255,255,255,.035);padding:0;margin:12px 0;overflow:hidden}
.rb-collapsible>summary{cursor:pointer;list-style:none;padding:13px 16px;font-weight:950;color:#fff;background:linear-gradient(90deg,rgba(80,45,135,.35),rgba(40,145,190,.14));border-bottom:1px solid rgba(255,255,255,.08)}
.rb-collapsible>summary::-webkit-details-marker{display:none}.rb-collapsible>summary:before{content:'▸';display:inline-block;margin-right:8px;color:#9bd7ff;transition:transform .18s ease}.rb-collapsible[open]>summary:before{transform:rotate(90deg)}
.rb-collapsible>.rb-form,.rb-collapsible>.rb-filter-form,.rb-collapsible>.rb-roll-moves,.rb-collapsible>h3,.rb-collapsible>p,.rb-collapsible>.rb-table,.rb-collapsible>.rb-move-library-list{margin:14px}
.rb-filter-form .rb-actions{margin-top:8px}.rb-roll-moves .rb-small{max-width:820px}.rb-move-library-list{max-height:760px;overflow:auto;padding-right:6px;scrollbar-color:rgba(155,215,255,.5) rgba(255,255,255,.05)}
.rb-move-admin-card{min-height:0}.rb-move-admin-card .rb-small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.rb-move-admin-card .rb-actions{margin-top:8px}
@media(max-width:760px){.rb-collapsible>.rb-form,.rb-collapsible>.rb-filter-form,.rb-collapsible>.rb-roll-moves,.rb-collapsible>h3,.rb-collapsible>p,.rb-collapsible>.rb-table,.rb-collapsible>.rb-move-library-list{margin:10px}.rb-move-library-list{max-height:none;overflow:visible}}

/* v17: uploaded Aetherial art already has the SDT watermark baked in, so hide any old overlay watermark spans. */
.rb-img-watermark{display:none!important}

/* Riftborn v18 Aetherdex */
.rb-aetherdex-hero{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(260px,.55fr);gap:18px;align-items:stretch}
.rb-aetherdex-progress{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}
.rb-aetherdex-ring{width:150px;height:150px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 50% 50%,rgba(124,232,255,.18),rgba(139,98,255,.10) 58%,rgba(12,5,28,.92) 60%),conic-gradient(from -90deg,rgba(124,232,255,.95),rgba(190,135,255,.95),rgba(255,159,222,.85),rgba(255,255,255,.16));box-shadow:0 0 24px rgba(124,232,255,.18),inset 0 0 24px rgba(0,0,0,.35);border:1px solid rgba(255,255,255,.2)}
.rb-aetherdex-ring span{width:112px;height:112px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(180deg,rgba(16,7,42,.96),rgba(7,3,23,.96));font-size:1.65rem;font-weight:1000;color:#fff;text-shadow:0 0 12px rgba(155,215,255,.75)}
.rb-aetherdex-counts{justify-content:center}.rb-aetherdex-tools{position:relative;z-index:2}.rb-aetherdex-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:12px;align-items:end}.rb-aetherdex-filters label{font-weight:950}.rb-aetherdex-filters input,.rb-aetherdex-filters select{margin-top:4px}.rb-aetherdex-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}.rb-aetherdex-card{display:grid;grid-template-columns:102px minmax(0,1fr);gap:12px;min-height:170px;overflow:hidden}.rb-aetherdex-card--locked{opacity:.78}.rb-aetherdex-artwrap{position:relative;align-self:start;border:1px solid rgba(155,215,255,.22);border-radius:18px;background:radial-gradient(circle at 50% 35%,rgba(124,232,255,.16),rgba(255,255,255,.04) 48%,rgba(4,2,14,.55));min-height:102px;display:grid;place-items:center;overflow:hidden}.rb-aetherdex-art{max-width:94px;max-height:94px;object-fit:contain;filter:drop-shadow(0 0 10px rgba(124,232,255,.18))}.rb-aetherdex-card--locked .rb-aetherdex-art{filter:grayscale(1) brightness(.35) blur(.2px);opacity:.55}.rb-aetherdex-unknown{position:absolute;inset:auto 8px 8px auto;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-weight:1000;background:rgba(4,2,14,.78);border:1px solid rgba(255,255,255,.26);box-shadow:0 0 14px rgba(155,215,255,.2)}.rb-aetherdex-body h2{margin:2px 0 8px}.rb-aetherdex-number{font-size:.75rem;letter-spacing:.14em;text-transform:uppercase;color:#9bd7ff;font-weight:1000}.rb-aetherdex-status{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.rb-chip--good{border-color:rgba(139,255,194,.42)!important;box-shadow:0 0 12px rgba(139,255,194,.12)!important}.rb-warning{border-color:rgba(255,207,110,.42)!important;background:linear-gradient(180deg,rgba(92,56,14,.42),rgba(18,7,32,.8))!important}
@media(max-width:760px){.rb-aetherdex-hero{grid-template-columns:1fr}.rb-aetherdex-card{grid-template-columns:88px minmax(0,1fr)}.rb-aetherdex-artwrap{min-height:88px}.rb-aetherdex-art{max-width:80px;max-height:80px}.rb-aetherdex-ring{width:128px;height:128px}.rb-aetherdex-ring span{width:96px;height:96px;font-size:1.35rem}}

/* Riftborn Aetherdex detail pages */
.rb-dex-entry-link{color:#fff;text-decoration:none;text-shadow:0 0 10px rgba(155,215,255,.35)}
.rb-dex-entry-link:hover{color:#9bd7ff;text-decoration:underline}.rb-aetherdex-number a{color:#9bd7ff;text-decoration:none}
.rb-dex-detail-hero{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);gap:18px;align-items:stretch}.rb-dex-entry-statbox{display:flex;flex-direction:column;justify-content:center}.rb-dex-record-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.rb-dex-record-grid span{border:1px solid rgba(155,215,255,.2);border-radius:14px;background:rgba(255,255,255,.045);padding:10px;text-align:center}.rb-dex-record-grid b{display:block;font-size:1.3rem;color:#fff;text-shadow:0 0 10px rgba(155,215,255,.45)}.rb-dex-record-grid small{display:block;color:#cdbdff;font-weight:900;text-transform:uppercase;letter-spacing:.08em;font-size:.68rem}.rb-dex-detail-layout{display:grid;grid-template-columns:minmax(240px,320px) minmax(0,1fr);gap:16px;align-items:start}.rb-dex-main-art{text-align:center;position:sticky;top:12px}.rb-dex-big-art{min-height:240px;display:grid;place-items:center;border:1px solid rgba(155,215,255,.18);border-radius:22px;background:radial-gradient(circle at 50% 35%,rgba(124,232,255,.18),rgba(190,135,255,.08) 45%,rgba(4,2,14,.62));overflow:hidden}.rb-dex-big-art img{max-width:94%;max-height:230px;object-fit:contain;filter:drop-shadow(0 0 16px rgba(124,232,255,.2))}.rb-dex-locked-panel .rb-dex-big-art img{filter:grayscale(1) brightness(.35);opacity:.55}.rb-dex-variant-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:12px;margin-top:12px}.rb-dex-variant{border:1px solid rgba(155,215,255,.18);border-radius:18px;background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025));padding:10px;text-align:center;min-height:178px;display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:flex-start}.rb-dex-variant-img{height:104px;width:100%;display:grid;place-items:center;border-radius:14px;background:rgba(4,2,14,.42);border:1px solid rgba(255,255,255,.08);overflow:hidden}.rb-dex-variant-img img{max-width:98px;max-height:98px;object-fit:contain}.rb-dex-variant--locked{opacity:.68}.rb-dex-variant--locked .rb-dex-variant-img img{filter:grayscale(1) brightness(.18) contrast(1.3);opacity:.78}.rb-dex-move-list{display:grid;gap:10px;margin-top:12px}.rb-dex-move-row{border:1px solid rgba(155,215,255,.16);border-radius:16px;background:rgba(255,255,255,.035);padding:10px}.rb-dex-move-row--locked{opacity:.5;filter:grayscale(.45)}.rb-dex-move-row--unlocked{box-shadow:0 0 16px rgba(124,232,255,.08);border-color:rgba(124,232,255,.28)}.rb-dex-move-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.rb-dex-move-meta span{font-size:.74rem;font-weight:950;border:1px solid rgba(255,255,255,.16);border-radius:999px;padding:3px 8px;background:rgba(4,2,14,.46)}
@media(max-width:840px){.rb-dex-detail-hero,.rb-dex-detail-layout{grid-template-columns:1fr}.rb-dex-main-art{position:static}.rb-dex-record-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Riftborn v20: Aether Wanderers member list */
.rb-wanderers-hero{align-items:stretch;}
.rb-wanderers-stats{display:flex;flex-direction:column;justify-content:center;min-width:min(100%,300px);}
.rb-wanderers-counts{display:flex;flex-wrap:wrap;gap:8px;}
.rb-wanderers-filters{align-items:end;}
.rb-wanderers-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(255px,1fr));gap:14px;}
.rb-wanderer-card{position:relative;overflow:hidden;}
.rb-wanderer-card:before{content:"";position:absolute;inset:-35% auto auto -25%;width:160px;height:160px;border-radius:999px;background:radial-gradient(circle,rgba(124,232,255,.12),transparent 70%);pointer-events:none;}
.rb-wanderer-card--online{box-shadow:0 0 22px rgba(124,232,255,.13),inset 0 0 0 1px rgba(124,232,255,.18);}
.rb-wanderer-main{display:flex;gap:12px;align-items:center;text-decoration:none;color:inherit;position:relative;z-index:1;}
.rb-wanderer-avatarwrap{position:relative;display:inline-flex;flex:0 0 auto;}
.rb-wanderer-avatar{width:58px!important;height:58px!important;max-width:58px!important;max-height:58px!important;object-fit:cover;border-radius:16px;border:1px solid rgba(124,232,255,.45);background:rgba(0,0,0,.35);box-shadow:0 0 16px rgba(124,232,255,.12);}
.rb-wanderer-dot{position:absolute;right:-3px;bottom:-3px;width:14px;height:14px;border-radius:50%;background:#7cffc4;border:2px solid #120421;box-shadow:0 0 10px rgba(124,255,196,.9);}
.rb-wanderer-info{display:grid;gap:2px;min-width:0;}
.rb-wanderer-info strong{font-size:1.08rem;color:#fff;text-shadow:0 0 10px rgba(174,127,255,.4);}
.rb-wanderer-info em{font-style:normal;color:#d9c8ff;font-size:.88rem;}
.rb-wanderer-area{display:inline-flex;align-items:center;gap:5px;font-size:.78rem;color:#b9f5ff;}
.rb-wanderer-area img{width:16px!important;height:16px!important;max-width:16px!important;max-height:16px!important;object-fit:contain;border-radius:5px;box-shadow:0 0 8px rgba(124,232,255,.2);}
.rb-wanderer-blurb{margin:12px 0 0;color:#d8cfff;font-size:.9rem;line-height:1.45;position:relative;z-index:1;}
.rb-wanderer-chips{margin-top:12px;display:flex;flex-wrap:wrap;gap:6px;position:relative;z-index:1;}
.rb-wanderer-foot{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:12px;padding-top:10px;border-top:1px solid rgba(169,113,255,.22);font-size:.82rem;color:#cfc2ff;position:relative;z-index:1;}
.rb-wanderer-foot a{color:#9fefff;text-decoration:none;font-weight:800;}
.rb-wanderer-foot a:hover{text-decoration:underline;}
.rb-pagination{display:flex;justify-content:center;align-items:center;gap:10px;margin:18px 0;flex-wrap:wrap;}
@media (max-width:700px){.rb-wanderers-grid{grid-template-columns:1fr}.rb-wanderer-foot{display:grid}.rb-wanderers-filters{grid-template-columns:1fr!important;}}

/* Riftborn v23: cleaner hub layout + safe Starter Lab gateway */
.rb-hub-wrap{max-width:1120px}
.rb-hub-hero{grid-template-columns:minmax(0,1fr) minmax(220px,320px);align-items:center;margin-bottom:16px}
.rb-hub-hero-copy,.rb-hub-banner-card{position:relative;z-index:1}.rb-hub-banner-card{align-self:center}.rb-hub-banner-card .rb-banner{min-height:150px;max-height:180px}.rb-hub-actions .rb-chip{min-height:20px}.rb-chip--glow{border-color:rgba(124,232,255,.38);box-shadow:0 0 16px rgba(124,232,255,.14)}
.rb-hub-start-card{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:18px;align-items:center;margin-top:16px;overflow:hidden;position:relative}.rb-hub-start-card:before{content:"";position:absolute;inset:auto -40px -70px auto;width:220px;height:220px;border-radius:999px;background:radial-gradient(circle,rgba(124,232,255,.16),rgba(184,119,255,.08) 42%,transparent 70%);pointer-events:none}.rb-hub-start-copy{position:relative;z-index:1}.rb-hub-start-orb{position:relative;z-index:1;display:grid;place-items:center;justify-self:center;width:122px;height:122px;border-radius:34px;background:linear-gradient(135deg,#ffffff,#8eeaff 55%,#e8c0ff);box-shadow:0 0 28px rgba(124,232,255,.35),0 0 55px rgba(168,95,255,.16);border:2px solid rgba(255,255,255,.7);transform:rotate(-4deg)}.rb-hub-start-orb span{font-size:4rem;font-weight:1000;color:#100522;transform:rotate(4deg)}
.rb-hub-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:16px;margin-top:16px}.rb-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}.rb-section-head h2{margin:.1rem 0 0}.rb-team-slots--hub{grid-template-columns:repeat(6,minmax(70px,1fr));gap:8px}.rb-slot--hub{min-height:104px;padding:8px;overflow:hidden}.rb-slot--hub img{width:58px!important;height:58px!important;max-width:58px!important;max-height:58px!important}.rb-slot--hub .rb-name{font-size:.82rem;line-height:1.1;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rb-slot--hub .rb-small{font-size:.72rem}.rb-slot--hub .rb-slot-empty{font-size:.82rem;min-height:86px}
.rb-hub-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:16px}.rb-hub-feature{display:grid;gap:6px;text-decoration:none;color:#fff;min-height:125px;align-content:start;transition:transform .15s ease,filter .15s ease}.rb-hub-feature:hover{transform:translateY(-2px);filter:brightness(1.1)}.rb-hub-feature strong{font-size:1.02rem}.rb-hub-feature em{font-style:normal;color:#d8caff;line-height:1.4;font-size:.88rem}.rb-feature-icon{font-size:1.45rem;filter:drop-shadow(0 0 8px rgba(124,232,255,.25))}
.rb-hub-map-card{margin-top:16px}.rb-map-shell-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.rb-map-shell{display:flex;align-items:center;gap:12px;padding:10px;border-radius:18px;background:rgba(255,255,255,.045);border:1px solid rgba(155,215,255,.18);text-decoration:none;color:#fff}.rb-map-shell:hover{background:rgba(124,232,255,.09);border-color:rgba(124,232,255,.38)}.rb-map-shell img{width:74px;height:74px;object-fit:cover;border-radius:12px;background:rgba(0,0,0,.25);flex:0 0 74px}.rb-map-shell strong{display:block}.rb-map-shell small{display:block;color:#cfc2ff;margin-top:2px}
.rb-starterlab-hero{grid-template-columns:minmax(0,1fr) minmax(240px,330px)}.rb-lab-teaser-card{text-align:center;display:grid;place-items:center;align-content:center;gap:10px}.rb-lab-orb{width:94px;height:94px;border-radius:28px;display:grid;place-items:center;background:linear-gradient(135deg,#fff,#8eeaff 55%,#e8c0ff);color:#100522;font-size:3rem;font-weight:1000;box-shadow:0 0 25px rgba(124,232,255,.32)}
@media(max-width:980px){.rb-hub-grid,.rb-hub-feature-grid{grid-template-columns:1fr 1fr}.rb-team-slots--hub{grid-template-columns:repeat(3,minmax(72px,1fr))}.rb-hub-hero{grid-template-columns:1fr}.rb-hub-banner-card .rb-banner{min-height:130px}}
@media(max-width:680px){.rb-hub-start-card,.rb-starterlab-hero{grid-template-columns:1fr}.rb-hub-start-orb{width:90px;height:90px;border-radius:26px}.rb-hub-start-orb span{font-size:3rem}.rb-hub-grid,.rb-hub-feature-grid{grid-template-columns:1fr}.rb-section-head{display:grid}.rb-team-slots--hub{grid-template-columns:repeat(2,minmax(72px,1fr))}.rb-map-shell{align-items:flex-start}.rb-map-shell img{width:62px;height:62px;flex-basis:62px}.rb-hero h1{font-size:clamp(2.3rem,13vw,3.3rem)}}


/* v24 hub polish: prevent hub cards, shortcuts, and map thumbs from crunching/overflowing. */
.rb-hub-wrap,
.rb-hub-wrap *{
  box-sizing:border-box;
}
.rb-hub-wrap{
  width:min(1120px, calc(100vw - 28px));
  overflow:hidden;
}
.rb-hub-hero,
.rb-hub-start-card,
.rb-hub-grid,
.rb-hub-feature-grid,
.rb-hub-map-card{
  min-width:0;
}
.rb-hub-start-card{
  display:block!important;
}
.rb-hub-start-orb{
  display:none!important;
}
.rb-hub-actions,
.rb-actions,
.rb-meta{
  flex-wrap:wrap;
  max-width:100%;
}
.rb-hub-grid{
  grid-template-columns:minmax(0,1fr)!important;
}
.rb-hub-feature-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(225px,1fr))!important;
  gap:12px!important;
  margin:16px 0!important;
  clear:both;
  position:relative;
  z-index:2;
}
.rb-hub-feature{
  min-height:0!important;
  padding:14px!important;
  overflow:hidden;
  align-content:start!important;
  line-height:1.35;
}
.rb-hub-feature strong,
.rb-hub-feature em{
  overflow-wrap:anywhere;
  word-break:normal;
}
.rb-hub-team-card,
.rb-hub-rules-card,
.rb-hub-map-card{
  overflow:hidden;
}
.rb-team-slots--hub{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(118px,1fr))!important;
  gap:10px!important;
}
.rb-slot--hub{
  min-width:0;
}
.rb-hub-map-card{
  margin-top:16px!important;
  clear:both;
}
.rb-hub-map-card .rb-section-head{
  align-items:center;
}
.rb-hub-map-card .rb-map-shell-list{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr))!important;
  gap:12px!important;
  align-items:stretch;
}
.rb-hub-map-card .rb-map-shell{
  display:grid!important;
  grid-template-columns:96px minmax(0,1fr)!important;
  align-items:center!important;
  gap:12px!important;
  width:100%;
  max-width:100%;
  overflow:hidden;
}
.rb-hub-map-card .rb-map-shell img,
.rb-hub-map-card .rb-map-shell img.rb-map-shell-thumb{
  width:96px!important;
  height:72px!important;
  max-width:96px!important;
  max-height:72px!important;
  min-width:0!important;
  min-height:0!important;
  object-fit:cover!important;
  display:block!important;
  flex:0 0 96px!important;
  border-radius:12px;
}
.rb-hub-map-card .rb-map-shell-text{
  min-width:0;
  display:block;
}
.rb-hub-map-card .rb-map-shell-text strong,
.rb-hub-map-card .rb-map-shell-text small{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
@media(max-width:760px){
  .rb-hub-wrap{width:min(100%, calc(100vw - 14px));}
  .rb-hub-feature-grid{grid-template-columns:1fr!important;}
  .rb-hub-map-card .rb-map-shell-list{grid-template-columns:1fr!important;}
  .rb-hub-map-card .rb-map-shell{grid-template-columns:78px minmax(0,1fr)!important;}
  .rb-hub-map-card .rb-map-shell img,
  .rb-hub-map-card .rb-map-shell img.rb-map-shell-thumb{width:78px!important;height:62px!important;max-width:78px!important;max-height:62px!important;flex-basis:78px!important;}
}

/* Riftborn v25 map + battle polish */
.rb-grid-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start;}
.rb-meta--wrap{flex-wrap:wrap;gap:7px;}
.rb-map-detail-card{margin-top:16px;overflow:hidden;}
.rb-map-stage--compact{display:grid;grid-template-columns:minmax(260px,520px) minmax(240px,1fr);gap:16px;align-items:start;}
.rb-map-preview--playable{position:relative;width:100%;max-width:520px;aspect-ratio:4/3;border-radius:18px;overflow:hidden;border:1px solid rgba(160,122,255,.42);background:#0f103a;box-shadow:inset 0 0 34px rgba(124,232,255,.12);}
.rb-map-preview--playable>img{width:100%!important;height:100%!important;max-width:100%!important;object-fit:cover!important;display:block!important;}
.rb-map-sidepanel{margin:0!important;min-width:0;}
.rb-aetherial--mini{display:grid;grid-template-columns:60px 1fr;gap:10px;align-items:center;text-decoration:none;color:inherit;}
.rb-aetherial--mini img{width:60px!important;height:60px!important;object-fit:contain!important;border-radius:14px;background:rgba(255,255,255,.05);}
.rb-aetherial--mini span{display:grid;gap:3px;}
.rb-aetherial--mini em{font-style:normal;color:#c9b8ff;font-size:.85rem;}
.rb-explore-lists{margin-top:16px;}
.rb-encounter-list,.rb-loot-list{display:grid;gap:10px;}
.rb-encounter-card,.rb-loot-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px;border:1px solid rgba(160,122,255,.28);border-radius:16px;background:rgba(12,4,32,.58);text-decoration:none;color:inherit;min-width:0;}
.rb-encounter-card:hover{border-color:rgba(124,232,255,.62);box-shadow:0 0 18px rgba(124,232,255,.13);transform:translateY(-1px);}
.rb-encounter-icon,.rb-loot-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,rgba(124,232,255,.16),rgba(188,124,255,.16));font-size:1.45rem;}
.rb-encounter-body{display:grid;gap:3px;min-width:0;}
.rb-encounter-body strong,.rb-loot-card strong{color:#fff;font-size:1rem;}
.rb-encounter-body em,.rb-loot-card em{font-style:normal;color:#b8a8ec;font-size:.82rem;}
.rb-encounter-body span,.rb-loot-card small{color:#d8cdfa;font-size:.85rem;line-height:1.35;}
.rb-loot-card{grid-template-columns:auto minmax(0,1fr);}
.rb-map-picker-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;}
.rb-map-picker{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;align-items:center;text-decoration:none;color:inherit;padding:10px;border-radius:16px;border:1px solid rgba(160,122,255,.28);background:rgba(13,5,35,.62);}
.rb-map-picker img{width:72px!important;height:54px!important;object-fit:cover!important;border-radius:12px;}
.rb-map-picker strong{display:block;color:#fff;}
.rb-map-picker em{font-style:normal;color:#b8a8ec;font-size:.8rem;}
.rb-map-picker.is-current{border-color:rgba(124,232,255,.7);box-shadow:0 0 16px rgba(124,232,255,.14);}

.rb-battle-wrap{max-width:1180px;}
.rb-battle-board{margin-top:16px;border:1px solid rgba(188,124,255,.55);border-radius:24px;background:radial-gradient(circle at 50% 0%,rgba(124,232,255,.10),transparent 35%),linear-gradient(135deg,rgba(9,3,28,.95),rgba(31,11,58,.95));box-shadow:0 0 28px rgba(160,122,255,.20);overflow:hidden;}
.rb-battle-titlebar{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center;padding:14px 16px;border-bottom:1px solid rgba(160,122,255,.28);background:rgba(255,255,255,.035);}
.rb-battle-titlebar>div:last-child{text-align:right;}
.rb-battle-titlebar span{color:#cfc2ff;font-size:.9rem;}
.rb-battle-vs{color:#7ce8ff;font-weight:900;text-shadow:0 0 12px rgba(124,232,255,.42);white-space:nowrap;}
.rb-battle-stage{display:grid;grid-template-columns:minmax(220px,1fr) minmax(260px,360px) minmax(220px,1fr);gap:14px;padding:16px;align-items:stretch;}
.rb-battle-side{display:grid;grid-template-rows:auto 1fr auto;gap:10px;min-width:0;}
.rb-battle-name{text-align:center;font-size:1.25rem;font-weight:900;color:#fff;text-shadow:0 0 12px rgba(188,124,255,.35);}
.rb-battle-frame{position:relative;display:grid;place-items:center;min-height:280px;border-radius:22px;border:2px solid rgba(124,232,255,.35);background:radial-gradient(circle at 50% 35%,rgba(124,232,255,.14),transparent 38%),rgba(7,8,36,.76);overflow:hidden;}
.rb-battle-frame--enemy{border-color:rgba(255,117,181,.42);background:radial-gradient(circle at 50% 35%,rgba(255,117,181,.13),transparent 38%),rgba(26,8,32,.78);}
.rb-battle-frame img{max-width:86%!important;max-height:230px!important;width:auto!important;height:auto!important;object-fit:contain!important;filter:drop-shadow(0 0 18px rgba(255,255,255,.18));}
.rb-battle-board--acted .rb-battle-frame--enemy img{animation:rb-hit-shake .55s ease;}
.rb-battle-board--acted .rb-battle-frame--player img{animation:rb-cast-pulse .65s ease;}
.rb-mini-label{position:absolute;left:12px;bottom:10px;font-size:.75rem;color:#efe9ff;background:rgba(0,0,0,.38);border:1px solid rgba(255,255,255,.16);border-radius:999px;padding:4px 8px;}
.rb-battle-center{display:grid;gap:10px;align-content:center;}
.rb-meter-card,.rb-battle-log{border:1px solid rgba(160,122,255,.32);border-radius:18px;background:rgba(15,5,38,.72);padding:12px;}
.rb-meter-card strong{display:block;margin-bottom:8px;color:#fff;}
.rb-meter-card label{display:flex;justify-content:space-between;gap:10px;color:#efe9ff;font-weight:800;font-size:.85rem;margin-top:8px;}
.rb-meter{height:14px;border-radius:999px;background:rgba(255,255,255,.10);overflow:hidden;border:1px solid rgba(255,255,255,.16);}
.rb-meter i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#7aff8a,#e9ff75);}
.rb-meter--enemyhp i{background:linear-gradient(90deg,#ff5d8f,#ffca6e);}
.rb-meter--aether i{background:linear-gradient(90deg,#44dfff,#8f79ff);}
.rb-meter--exp i{background:linear-gradient(90deg,#ff80d9,#ffd36e);}
.rb-battle-log strong{color:#7ce8ff;}
.rb-battle-log p{margin:.45rem 0 0;line-height:1.45;color:#fff;}
.rb-battle-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;}
.rb-battle-tabs--enemy{grid-template-columns:1fr 1fr;}
.rb-battle-tabs button{border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(255,255,255,.06);color:#fff;font-weight:900;padding:9px 6px;cursor:pointer;}
.rb-battle-tabs button.is-active{background:linear-gradient(135deg,rgba(50,107,156,.95),rgba(92,47,116,.95));box-shadow:0 0 14px rgba(124,232,255,.20);}
.rb-battle-panels{padding:0 16px 16px;}
.rb-battle-panel{display:none;border:1px solid rgba(160,122,255,.30);border-radius:18px;background:rgba(10,3,28,.66);padding:14px;}
.rb-battle-panel.is-active{display:block;}
.rb-move-command-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;}
.rb-move-command{width:100%;height:100%;text-align:left;border:1px solid rgba(124,232,255,.28);border-radius:16px;background:linear-gradient(135deg,rgba(27,39,82,.84),rgba(49,20,77,.84));color:#fff;padding:12px;cursor:pointer;}
.rb-move-command:hover{border-color:rgba(124,232,255,.7);transform:translateY(-1px);box-shadow:0 0 18px rgba(124,232,255,.14);}
.rb-move-command strong{display:block;font-size:1rem;}
.rb-move-command span,.rb-move-command em{display:block;font-size:.8rem;color:#d8cdfa;font-style:normal;margin-top:4px;}
.rb-inline-form{margin-top:12px;}
@keyframes rb-hit-shake{0%,100%{transform:translateX(0)}20%{transform:translateX(-8px) rotate(-1deg)}40%{transform:translateX(7px) rotate(1deg)}60%{transform:translateX(-4px)}80%{transform:translateX(3px)}}
@keyframes rb-cast-pulse{0%,100%{filter:drop-shadow(0 0 18px rgba(255,255,255,.18))}50%{filter:drop-shadow(0 0 28px rgba(124,232,255,.75)) brightness(1.16)}}

@media (max-width:900px){
  .rb-grid-two,.rb-map-stage--compact,.rb-battle-stage{grid-template-columns:1fr;}
  .rb-battle-titlebar{grid-template-columns:1fr;text-align:center;}
  .rb-battle-titlebar>div:last-child{text-align:center;}
  .rb-battle-frame{min-height:220px;}
}
@media (max-width:560px){
  .rb-battle-tabs{grid-template-columns:1fr 1fr;}
  .rb-map-picker{grid-template-columns:56px 1fr;}
  .rb-map-picker img{width:56px!important;height:44px!important;}
}

/* v26 Riftborn maps/battle polish: fog-first maps, smaller thumbnails, proper battle board */
.rb-map-detail-card,.rb-map-picker-card{overflow:hidden!important;}
.rb-map-stage--compact{display:grid!important;grid-template-columns:minmax(280px,560px) minmax(220px,1fr)!important;gap:16px!important;align-items:start!important;}
.rb-map-preview--playable{width:100%!important;max-width:560px!important;height:auto!important;max-height:640px!important;aspect-ratio:12/16!important;min-height:0!important;border-radius:18px!important;overflow:hidden!important;}
.rb-map-preview--playable>img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;max-width:none!important;object-fit:cover!important;opacity:.9!important;}
.rb-map-preview--fogged>img{filter:saturate(.85) brightness(.7);}
.rb-fog-grid{position:absolute!important;inset:0!important;z-index:3!important;display:grid!important;grid-template-columns:repeat(var(--rb-w,12),1fr)!important;grid-template-rows:repeat(var(--rb-h,18),1fr)!important;}
.rb-fog-grid .rb-tile{position:relative;display:grid;place-items:center;border:1px solid rgba(124,232,255,.07)!important;background:rgba(2,3,12,.92)!important;box-shadow:inset 0 0 10px rgba(0,0,0,.45);min-width:0;min-height:0;}
.rb-fog-grid .rb-tile.is-revealed{background:rgba(10,7,24,.10)!important;box-shadow:inset 0 0 18px rgba(124,232,255,.16),0 0 18px rgba(124,232,255,.07);backdrop-filter:brightness(1.2);}
.rb-fog-grid .rb-tile.has-explorer{outline:2px solid rgba(124,232,255,.75);z-index:5;}
.rb-tile-fixture,.rb-tile-explorer{position:relative;z-index:8;font-size:clamp(.75rem,1.8vw,1.15rem);filter:drop-shadow(0 0 8px rgba(255,255,255,.6));}
.rb-tile-explorer{font-size:clamp(.85rem,2vw,1.25rem);}
.rb-map-icon{display:none!important;}
.rb-map-sidepanel{max-width:100%;overflow:hidden;}
.rb-map-assign-form{display:grid;gap:8px;margin-top:8px;}
.rb-map-assign-form select,.rb-form input,.rb-form select,.rb-form textarea{width:100%;box-sizing:border-box;border:1px solid rgba(160,122,255,.32);border-radius:12px;background:rgba(5,0,18,.72);color:#fff;padding:10px;}
.rb-form label{display:grid;gap:5px;color:#fff;font-weight:800;margin-bottom:10px;}
.rb-form textarea{min-height:82px;resize:vertical;}
.rb-form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.rb-check{display:flex!important;grid-template-columns:none!important;align-items:center;gap:8px;font-weight:800;}
.rb-check input{width:auto!important;}
.rb-admin-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 0;border-bottom:1px solid rgba(255,255,255,.08);}
.rb-admin-row button{border:1px solid rgba(255,255,255,.24);border-radius:999px;background:rgba(255,255,255,.06);color:#fff;padding:5px 10px;font-weight:800;cursor:pointer;}
.rb-grid-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.rb-map-picker-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(230px,1fr))!important;gap:12px!important;align-items:stretch!important;}
.rb-map-picker{min-width:0!important;overflow:hidden!important;}
.rb-map-picker img{width:72px!important;height:54px!important;max-width:72px!important;max-height:54px!important;min-height:0!important;object-fit:cover!important;flex:0 0 72px!important;}
.rb-map-picker span,.rb-map-picker strong,.rb-map-picker em{min-width:0;overflow-wrap:anywhere;}
.rb-explore-lists--mystery .rb-card{min-height:120px;}

.rb-battle-wrap{max-width:1180px!important;}
.rb-battle-board{margin-top:16px!important;border:1px solid rgba(188,124,255,.58)!important;border-radius:24px!important;background:radial-gradient(circle at 50% 0%,rgba(124,232,255,.12),transparent 38%),linear-gradient(135deg,rgba(9,3,28,.96),rgba(31,11,58,.96))!important;box-shadow:0 0 28px rgba(160,122,255,.22)!important;overflow:hidden!important;}
.rb-battle-titlebar{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;gap:12px!important;align-items:center!important;padding:14px 16px!important;border-bottom:1px solid rgba(160,122,255,.28)!important;background:rgba(255,255,255,.035)!important;}
.rb-battle-titlebar>div:last-child{text-align:right!important;}
.rb-battle-stage{display:grid!important;grid-template-columns:minmax(220px,1fr) minmax(260px,360px) minmax(220px,1fr)!important;gap:14px!important;padding:16px!important;align-items:stretch!important;}
.rb-battle-side{display:grid!important;grid-template-rows:auto minmax(240px,1fr) auto!important;gap:10px!important;min-width:0!important;}
.rb-battle-name{text-align:center!important;font-size:1.15rem!important;font-weight:900!important;color:#fff!important;text-shadow:0 0 12px rgba(188,124,255,.35)!important;}
.rb-battle-frame{position:relative!important;display:grid!important;place-items:center!important;min-height:260px!important;border-radius:22px!important;border:2px solid rgba(124,232,255,.35)!important;background:radial-gradient(circle at 50% 35%,rgba(124,232,255,.14),transparent 38%),rgba(7,8,36,.76)!important;overflow:hidden!important;}
.rb-battle-frame--enemy{border-color:rgba(255,117,181,.45)!important;background:radial-gradient(circle at 50% 35%,rgba(255,117,181,.13),transparent 38%),rgba(26,8,32,.78)!important;}
.rb-battle-frame img{max-width:86%!important;max-height:220px!important;width:auto!important;height:auto!important;object-fit:contain!important;filter:drop-shadow(0 0 18px rgba(255,255,255,.18));}
.rb-mini-label{position:absolute;right:10px;bottom:8px;font-size:.72rem;color:#cfefff;background:rgba(0,0,0,.35);border:1px solid rgba(124,232,255,.24);border-radius:999px;padding:4px 8px;}
.rb-battle-center{display:grid!important;gap:10px!important;align-content:center!important;}
.rb-meter-card,.rb-battle-log{border:1px solid rgba(160,122,255,.32)!important;border-radius:18px!important;background:rgba(15,5,38,.72)!important;padding:12px!important;}
.rb-meter-card label{display:flex;justify-content:space-between;gap:10px;font-weight:900;margin-top:8px;color:#fff;}
.rb-meter{height:12px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);overflow:hidden;}
.rb-meter i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#7cff9b,#f8ff78);}
.rb-meter--aether i{background:linear-gradient(90deg,#63eaff,#6d7cff);}
.rb-meter--exp i{background:linear-gradient(90deg,#ff8bd6,#ffd36e);}
.rb-meter--enemyhp i{background:linear-gradient(90deg,#ff6b7c,#ffd36e);}
.rb-battle-tabs{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:6px!important;}
.rb-battle-tabs--enemy{grid-template-columns:1fr 1fr!important;}
.rb-battle-tabs button{border:1px solid rgba(255,255,255,.22)!important;border-radius:999px!important;background:rgba(255,255,255,.06)!important;color:#fff!important;font-weight:900!important;padding:9px 6px!important;cursor:pointer!important;}
.rb-battle-tabs button.is-active{background:linear-gradient(135deg,rgba(50,107,156,.95),rgba(92,47,116,.95))!important;box-shadow:0 0 14px rgba(124,232,255,.20)!important;}
.rb-battle-panels{padding:0 16px 16px!important;}
.rb-battle-panel{display:none!important;border:1px solid rgba(160,122,255,.30)!important;border-radius:18px!important;background:rgba(10,3,28,.66)!important;padding:14px!important;}
.rb-battle-panel.is-active{display:block!important;}
.rb-move-command-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(210px,1fr))!important;gap:10px!important;}
.rb-move-command{width:100%;text-align:left;border:1px solid rgba(124,232,255,.22);border-radius:16px;background:rgba(255,255,255,.055);color:#fff;padding:10px;cursor:pointer;}
.rb-move-command strong{display:block;color:#fff;}.rb-move-command span,.rb-move-command em{display:block;font-size:.8rem;color:#cfc2ff;font-style:normal;margin-top:2px;}

@media(max-width:880px){
  .rb-map-stage--compact,.rb-battle-stage{grid-template-columns:1fr!important;}
  .rb-map-preview--playable{max-width:100%!important;aspect-ratio:4/5!important;}
  .rb-battle-titlebar{grid-template-columns:1fr!important;text-align:center!important;}
  .rb-battle-titlebar>div:last-child{text-align:center!important;}
  .rb-grid-three{grid-template-columns:1fr!important;}
}
@media(max-width:620px){
  .rb-form-row{grid-template-columns:1fr;}
  .rb-battle-tabs{grid-template-columns:1fr 1fr!important;}
  .rb-map-picker-grid{grid-template-columns:1fr!important;}
}


/* v27 explore map picker fix: other maps must stay compact, even if older image rules fight back. */
.rb-map-picker-card--compact{
  overflow:hidden!important;
}
.rb-map-picker-card--compact .rb-map-picker-grid,
.rb-map-picker-grid--compact{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr))!important;
  gap:10px!important;
  align-items:stretch!important;
}
.rb-map-picker-card--compact .rb-map-picker,
.rb-map-picker-grid--compact .rb-map-picker{
  display:grid!important;
  grid-template-columns:82px minmax(0,1fr)!important;
  align-items:center!important;
  gap:10px!important;
  min-height:76px!important;
  max-height:92px!important;
  padding:9px!important;
  overflow:hidden!important;
  border-radius:16px!important;
}
.rb-map-picker-card--compact .rb-map-picker img,
.rb-map-picker-grid--compact .rb-map-picker img{
  display:none!important;
}
.rb-map-picker-thumb{
  display:block!important;
  width:82px!important;
  height:58px!important;
  max-width:82px!important;
  max-height:58px!important;
  min-width:82px!important;
  min-height:58px!important;
  border-radius:12px!important;
  background-size:cover!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  background-color:rgba(10,5,35,.78)!important;
  border:1px solid rgba(124,232,255,.22)!important;
  box-shadow:inset 0 0 18px rgba(0,0,0,.35)!important;
}
.rb-map-picker-text{
  display:block!important;
  min-width:0!important;
  line-height:1.2!important;
}
.rb-map-picker-text strong,
.rb-map-picker-text em{
  display:block!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  max-width:100%!important;
}
.rb-map-picker-text strong{
  white-space:nowrap!important;
}
.rb-map-picker-text em{
  white-space:normal!important;
  font-size:.78rem!important;
}

/* Extra safety for any older map-shell markup that may still be on the hub/explore pages. */
.rb-map-shell-list .rb-map-shell{
  display:grid!important;
  grid-template-columns:82px minmax(0,1fr)!important;
  min-height:76px!important;
  max-height:96px!important;
  overflow:hidden!important;
}
.rb-map-shell-list .rb-map-shell img,
.rb-map-shell-list .rb-map-shell img.rb-map-shell-thumb{
  width:82px!important;
  height:58px!important;
  min-width:82px!important;
  min-height:58px!important;
  max-width:82px!important;
  max-height:58px!important;
  object-fit:cover!important;
  border-radius:12px!important;
}

@media (max-width:620px){
  .rb-map-picker-card--compact .rb-map-picker-grid,
  .rb-map-picker-grid--compact{grid-template-columns:1fr!important;}
  .rb-map-picker-card--compact .rb-map-picker,
  .rb-map-picker-grid--compact .rb-map-picker{grid-template-columns:68px minmax(0,1fr)!important;}
  .rb-map-picker-thumb{width:68px!important;height:50px!important;min-width:68px!important;min-height:50px!important;}
}

/* v28 hard fix: Other map shells use their own compact card grid, no giant previews and no text blob. */
.rb-other-seams-card {
  overflow: hidden !important;
}
.rb-other-seams-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch !important;
  margin-top: 10px !important;
}
.rb-other-seam-card {
  display: grid !important;
  grid-template-columns: 76px minmax(0, 1fr) !important;
  gap: 11px !important;
  align-items: center !important;
  min-width: 0 !important;
  min-height: 84px !important;
  padding: 10px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(160, 122, 255, 0.32) !important;
  background: rgba(13, 5, 35, 0.70) !important;
  color: inherit !important;
  text-decoration: none !important;
  overflow: hidden !important;
}
.rb-other-seam-card:hover,
.rb-other-seam-card.is-current {
  border-color: rgba(124, 232, 255, 0.72) !important;
  box-shadow: 0 0 16px rgba(124, 232, 255, 0.14) !important;
  background: rgba(27, 14, 61, 0.86) !important;
}
.rb-other-seam-thumb {
  display: block !important;
  width: 76px !important;
  height: 58px !important;
  min-width: 76px !important;
  min-height: 58px !important;
  max-width: 76px !important;
  max-height: 58px !important;
  border-radius: 12px !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: rgba(8, 4, 26, 0.88) !important;
  border: 1px solid rgba(124, 232, 255, 0.25) !important;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.38) !important;
}
.rb-other-seam-copy {
  display: block !important;
  min-width: 0 !important;
  line-height: 1.25 !important;
}
.rb-other-seam-copy strong,
.rb-other-seam-copy em,
.rb-other-seam-action {
  display: block !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.rb-other-seam-copy strong {
  color: #fff !important;
  white-space: nowrap !important;
  font-size: 0.95rem !important;
}
.rb-other-seam-copy em {
  color: #cfc2ff !important;
  font-style: normal !important;
  white-space: nowrap !important;
  font-size: 0.78rem !important;
  margin-top: 2px !important;
}
.rb-other-seam-action {
  width: max-content !important;
  max-width: 100% !important;
  margin-top: 7px !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  background: rgba(255,255,255,.07) !important;
  color: #fff !important;
  font-size: .72rem !important;
  font-weight: 800 !important;
}
@media (max-width: 620px) {
  .rb-other-seams-grid { grid-template-columns: 1fr !important; }
  .rb-other-seam-card { grid-template-columns: 64px minmax(0, 1fr) !important; }
  .rb-other-seam-thumb { width:64px!important; height:50px!important; min-width:64px!important; min-height:50px!important; }
}
