/* Dream RPG Reborn v0.52 R1 — Community Event + grouped Market */
.drrV052Hero{position:relative;overflow:hidden;border:1px solid rgba(194,120,255,.35);background:linear-gradient(135deg,rgba(54,22,74,.92),rgba(22,27,49,.96));}
.drrV052Hero:after{content:"";position:absolute;right:-80px;top:-90px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(184,85,255,.23),transparent 68%);pointer-events:none}
.drrV052Hero h2{margin-bottom:6px}.drrV052Countdown{font-variant-numeric:tabular-nums;font-weight:800}
.drrV052EventGrid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:12px}.drrV052EventGrid>.card{min-width:0}
.drrV052StatGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0}.drrV052Stat{padding:10px;border:1px solid var(--line,#343b55);border-radius:10px;background:rgba(255,255,255,.035)}.drrV052Stat small{display:block;opacity:.7}.drrV052Stat b{display:block;font-size:1.08rem;margin-top:4px}
.drrV052HuntNode{border:1px solid rgba(183,86,255,.35)}.drrV052HuntActions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.drrV052HuntActions>div{padding:12px;border:1px solid var(--line,#343b55);border-radius:10px;background:rgba(255,255,255,.025)}
.drrV052Pass{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.drrV052Tier{padding:10px;border:1px solid var(--line,#343b55);border-radius:10px;background:rgba(255,255,255,.025);display:flex;flex-direction:column;gap:6px}.drrV052Tier.claimed{opacity:.72;border-color:rgba(80,210,130,.4)}.drrV052Tier.ready{border-color:rgba(235,193,78,.72);box-shadow:0 0 0 1px rgba(235,193,78,.12) inset}.drrV052Tier .tierNo{font-size:.76rem;opacity:.68}.drrV052Tier .reward{font-weight:750;min-height:2.4em}.drrV052Tier button{margin-top:auto}
.drrV052Goal{padding:9px 0;border-bottom:1px solid rgba(255,255,255,.07)}.drrV052Goal:last-child{border-bottom:0}.drrV052GoalBar{height:7px;background:rgba(255,255,255,.08);border-radius:99px;overflow:hidden;margin-top:6px}.drrV052GoalBar span{display:block;height:100%;background:linear-gradient(90deg,#9a62ff,#e4b84e);border-radius:inherit}
.drrV052MarketToolbar{display:grid;grid-template-columns:minmax(180px,2fr) repeat(3,minmax(125px,1fr));gap:8px;align-items:end}.drrV052MarketToolbar label{display:flex;flex-direction:column;gap:4px;font-size:.78rem;opacity:.9}.drrV052MarketToolbar input,.drrV052MarketToolbar select{width:100%}
.drrV052MarketList{display:grid;gap:8px;margin-top:10px}.drrV052MarketGroup{display:grid;grid-template-columns:minmax(180px,1.4fr) repeat(3,minmax(100px,.7fr)) auto;gap:10px;align-items:center;padding:11px;border:1px solid var(--line,#343b55);border-radius:10px;background:rgba(255,255,255,.025)}.drrV052MarketGroup:hover{background:rgba(255,255,255,.045)}.drrV052MarketItem b{display:block}.drrV052MarketItem small{opacity:.65}.drrV052MarketMetric small{display:block;opacity:.62;font-size:.72rem}.drrV052MarketMetric b{font-variant-numeric:tabular-nums}.drrV052OfferList{display:grid;gap:8px}.drrV052Offer{display:grid;grid-template-columns:minmax(130px,1fr) repeat(3,minmax(90px,.6fr)) auto;gap:8px;align-items:center;padding:9px;border:1px solid var(--line,#343b55);border-radius:9px}.drrV052Best{border-color:rgba(86,205,135,.45)}
.drrV052Range{white-space:nowrap}.drrV052Empty{padding:24px;text-align:center;opacity:.7}
@media(max-width:880px){.drrV052EventGrid{grid-template-columns:1fr}.drrV052StatGrid{grid-template-columns:repeat(2,1fr)}.drrV052Pass{grid-template-columns:repeat(2,minmax(0,1fr))}.drrV052MarketToolbar{grid-template-columns:1fr 1fr}.drrV052MarketGroup{grid-template-columns:minmax(0,1fr) auto}.drrV052MarketGroup .drrV052MarketMetric:nth-of-type(2),.drrV052MarketGroup .drrV052MarketMetric:nth-of-type(3){display:none}.drrV052Offer{grid-template-columns:1fr auto}.drrV052Offer .drrV052MarketMetric:nth-of-type(2),.drrV052Offer .drrV052MarketMetric:nth-of-type(3){display:none}}
@media(max-width:560px){.drrV052Pass{grid-template-columns:1fr}.drrV052HuntActions{grid-template-columns:1fr}.drrV052MarketToolbar{grid-template-columns:1fr}.drrV052MarketGroup{padding:9px}.drrV052StatGrid{grid-template-columns:1fr 1fr}}

/* v0.52 R11 — compact, readable Community Event desktop layout. */
.screen.drrV052EventScreen{
  max-width:1120px!important;
  padding-left:14px!important;
  padding-right:14px!important;
}
.screen.drrV052EventScreen>.drrV052EventLayout,
.screen.drrV052EventScreen>.grid.drrV052EventLayout{
  grid-template-columns:minmax(0,1fr)!important;
  gap:14px!important;
  width:100%;
}
.screen.drrV052EventScreen .drrV052Hero{
  width:100%;
  max-width:1040px;
  justify-self:center;
}
.screen.drrV052EventScreen .drrV052StatsCard{
  width:100%;
  max-width:900px;
  justify-self:center;
}
.screen.drrV052EventScreen .drrV052EventGrid{
  width:100%;
  max-width:1040px;
  margin:0 auto;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:14px;
  align-items:start;
}
.screen.drrV052EventScreen .drrV052EventGrid>.card{
  width:100%;
  min-width:0;
  align-self:start;
}
.screen.drrV052EventScreen .drrV052HuntNode,
.screen.drrV052EventScreen .drrV052CommunityCard{
  margin:0;
}
.screen.drrV052EventScreen .drrV052HuntNode>p,
.screen.drrV052EventScreen .drrV052CommunityCard>p,
.screen.drrV052EventScreen .drrV052Hero p{
  max-width:72ch;
  line-height:1.5;
}
.screen.drrV052EventScreen .drrV052HuntActions{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.screen.drrV052EventScreen .drrV052HuntActions>div{
  min-width:0;
}
.screen.drrV052EventScreen .drrV052PassCard{
  width:100%;
  max-width:1040px;
  justify-self:center;
}
.screen.drrV052EventScreen .drrV052Pass{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.screen.drrV052EventScreen .drrV052Tier{
  min-width:0;
  min-height:122px;
  padding:11px;
}
.screen.drrV052EventScreen .drrV052Tier .reward{
  min-height:0;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.screen.drrV052EventScreen .drrV052Leaderboard{
  width:100%;
  max-width:760px;
  justify-self:center;
}
@media(max-width:1040px){
  .screen.drrV052EventScreen .drrV052EventGrid{grid-template-columns:minmax(0,1fr) 300px}
  .screen.drrV052EventScreen .drrV052Pass{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){
  .screen.drrV052EventScreen{max-width:760px!important}
  .screen.drrV052EventScreen .drrV052EventGrid{grid-template-columns:1fr}
  .screen.drrV052EventScreen .drrV052HuntActions{grid-template-columns:1fr 1fr}
  .screen.drrV052EventScreen .drrV052Leaderboard{max-width:100%}
}
@media(max-width:700px){
  .screen.drrV052EventScreen .drrV052Pass{grid-template-columns:repeat(2,minmax(0,1fr))}
  .screen.drrV052EventScreen .drrV052HuntActions{grid-template-columns:1fr}
}
@media(max-width:500px){
  .screen.drrV052EventScreen .drrV052Pass{grid-template-columns:1fr}
}
/* v0.52 R14 — make Market stock and quantity-first buying impossible to miss. */
.drrV052StockPill{display:inline-block;margin-left:6px;font-size:.72rem;vertical-align:middle;white-space:nowrap}
.drrV052StockMetric b{font-size:1.02rem}
.drrV052BuyPrompt h3{margin-top:0}.drrV052QtyLabel{display:grid;gap:6px;margin:14px 0;font-weight:700}.drrV052QtyLabel input{width:100%;max-width:220px;font-size:1.1rem;padding:10px 12px}
@media(max-width:880px){.drrV052StockPill{display:block;width:max-content;margin:5px 0 0}.drrV052MarketGroup .drrV052StockMetric{display:block!important}}

/* v0.53 R2 — readable Event Pass claim buttons. */
.screen.drrV052EventScreen .drrV052Tier button:not(:disabled){background:var(--gold,#e4b84e)!important;color:#111!important;border-color:#f1cf6c!important;font-weight:900!important;text-shadow:none!important}
.screen.drrV052EventScreen .drrV052Tier button:not(:disabled):hover{color:#000!important;filter:brightness(1.06)}

/* v0.53 R3 — authoritative Event Pass button contrast. */
.screen.drrV052EventScreen .drrV052Tier .drrV052PassClaimBtn{background:#e4b84e!important;color:#111!important;-webkit-text-fill-color:#111!important;border-color:#f1cf6c!important;font-weight:900!important;text-shadow:none!important}
.screen.drrV052EventScreen .drrV052Tier .drrV052PassClaimBtn:hover{background:#f0c65d!important;color:#000!important;-webkit-text-fill-color:#000!important}
.screen.drrV052EventScreen .drrV052Tier .drrV052PassClaimBtn:disabled{background:#b59042!important;color:#111!important;-webkit-text-fill-color:#111!important;opacity:.58!important}

/* v0.53 R4 — Home screen live Event button readability. */
.drrFullHomeActions047 .heroBtn[data-v052-event-home],
.heroActions .heroBtn[data-v052-event-home]{
  background:linear-gradient(180deg,#fff0a9,#f1bd45 55%,#8d5d15)!important;
  color:#111!important;
  -webkit-text-fill-color:#111!important;
  border-color:rgba(255,236,158,.82)!important;
  text-shadow:none!important;
  box-shadow:0 10px 24px rgba(255,182,67,.14),inset 0 1px 0 rgba(255,255,255,.45)!important;
}
.drrFullHomeActions047 .heroBtn[data-v052-event-home] b,
.heroActions .heroBtn[data-v052-event-home] b{
  color:#111!important;
  -webkit-text-fill-color:#111!important;
  text-shadow:none!important;
}
.drrFullHomeActions047 .heroBtn[data-v052-event-home] span,
.heroActions .heroBtn[data-v052-event-home] span{
  color:rgba(17,17,17,.92)!important;
  -webkit-text-fill-color:rgba(17,17,17,.92)!important;
  text-shadow:none!important;
}
.drrFullHomeActions047 .heroBtn[data-v052-event-home]:hover,
.heroActions .heroBtn[data-v052-event-home]:hover{
  filter:brightness(1.05);
}
