/* Unified Obsidian-Gold Glass Styling for Multiplayer Activities, Star Rush & Arena */
.journalChip, #nearbyPlay, .starRushCard {
  color: #f5f1e6;
  background: rgba(14, 19, 28, 0.80);
  backdrop-filter: blur(16px) saturate(1.25);
  border: 1px solid rgba(232, 201, 126, 0.28);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
}
.journalChip {
  display:flex; align-items:center; gap:10px; width:248px; text-align:left;
  padding:8px 11px 8px 13px; border-left:4px solid #5ce0d0; border-radius:8px 12px 12px 8px;
  transition:border-color .15s, transform .15s;
}
.journalChip:hover { transform:translateY(-1px); border-color:rgba(232,201,126,0.62); }
.journalChip span { flex:1; display:grid; gap:2px; min-width:0; }
.journalChip b { font-size:13px; color:#fff8e6; }
.journalChip small { font-size:11px; color:rgba(235,229,212,0.72); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.journalChip strong { color:#e8c97e; white-space:nowrap; font-size:12.5px; }
.journalWallet b, .journalTask header b { color:#f2c970; white-space:nowrap; }
.journalChip kbd {
  color:#e8c97e; background:rgba(255,255,255,0.08);
  border:1px solid rgba(232,201,126,0.3); border-radius:4px; padding:2px 5px; font-size:10px;
}

#activityHud[hidden], #mActivity[hidden], #nearbyPlay[hidden], #shopBag[hidden], .journalSheet [hidden], #starRushHud[hidden], #frostScreen[hidden] { display:none; }
#game.mobile-mode #activityHud {display:none;}
#game.in-garden:not(.mobile-mode) .hudTL:has(#activityHud:not([hidden])) {display:flex;}
#game.in-garden .hudTL #tracker, #game.in-garden #starRushHud {display:none;}

#nearbyPlay {
  position:absolute; left:50%; transform:translateX(-50%); bottom:24%;
  display:flex; gap:9px; align-items:center;
  padding:7px 8px 7px 14px; border-radius:999px; font-size:13px; white-space:nowrap;
}
#nearbyPlay span { max-width:32vw; overflow:hidden; text-overflow:ellipsis; }
#nearbyPlay button, #shopBag, .journalLeaves button {
  border:1px solid rgba(232,201,126,0.45); border-radius:7px; color:#151821;
  background:linear-gradient(135deg, #e8c97e, #c89d45);
  padding:6px 12px; font-size:12.5px; font-weight:700; cursor:pointer;
}
#nearbyPlay button:disabled, .journalSheet button:disabled {
  background:rgba(255,255,255,0.08); color:rgba(255,255,255,0.42);
  border-color:rgba(255,255,255,0.14); cursor:default;
}
#nearbyPlay #declineOffer, .journalLeaves #pairDecline {
  background:rgba(255,255,255,0.08); color:#e6dfd0; border-color:rgba(255,255,255,0.22);
}

.journalSheet {
  box-sizing:border-box; width:min(545px,92vw); max-height:84dvh; padding:0;
  color:#f4efe2; background:linear-gradient(165deg, rgba(16,22,33,0.96), rgba(10,14,22,0.98));
  border:1px solid rgba(232,201,126,0.34); border-radius:16px;
  box-shadow:0 24px 80px rgba(0,0,0,0.68); overflow:auto;
}
.journalSheet::backdrop {background:rgba(8,12,18,0.68); backdrop-filter:blur(5px);}
.journalHead {
  display:flex; align-items:center; gap:16px;
  background:linear-gradient(135deg, #162432, #101924);
  color:#fff8e6; padding:16px 22px; border-bottom:1px solid rgba(232,201,126,0.24);
}
.journalHead h2 { font-size:22px; margin:3px 0 0; color:inherit; font-family:var(--serif); }
.journalHead small { font-size:10.5px; letter-spacing:0.14em; color:#5ce0d0; }
.journalWallet {
  margin-left:auto; background:rgba(232,201,126,0.14); color:#f5e6bf;
  border:1px solid rgba(232,201,126,0.32); border-radius:8px; padding:5px 10px; font-size:12px;
}
.journalHead .dismiss { color:#fff9e8; border-color:rgba(255,255,255,0.24); }
.journalTabs { display:flex; gap:18px; padding:8px 22px 0; border-bottom:1px solid rgba(255,255,255,0.10); }
.journalTabs button {
  background:none; color:rgba(232,226,210,0.62); border:0; border-radius:0;
  padding:8px 2px; border-bottom:3px solid transparent; font-weight:700; font-size:13.5px;
}
.journalTabs [aria-pressed=true] { border-color:#e8c97e; color:#fff8e6; }
.journalLeaves { padding:4px 22px 16px; }
.journalTask { padding:14px 0; border-bottom:1px dashed rgba(255,255,255,0.14); }
.journalTask header, .journalAction, #bagRows > div { display:flex; gap:10px; align-items:center; justify-content:space-between; }
.journalTask h3 { margin:0; font-size:17px; color:#fff6df; }
.journalTask header b { font-size:12px; padding:3px 9px; border-radius:999px; background:rgba(232,201,126,0.16); color:#f2cc72; }
.journalTask p, #bagSummary { margin:7px 0 11px; font-size:13px; color:rgba(235,230,214,0.74); line-height:1.55; }
.journalAction { font-size:12px; color:#8debe0; }
.journalAction button { white-space:nowrap; }
.routeSteps { margin:9px 0 12px; padding:0; display:flex; list-style:none; gap:6px; }
.routeSteps li { flex:1; font-size:11px; padding:5px 0; border-top:3px solid rgba(255,255,255,0.14); color:rgba(255,255,255,0.54); }
.routeSteps li.done { color:#5ce0d0; border-color:#5ce0d0; }
#playRecord { display:block; padding-top:10px; color:rgba(232,226,210,0.65); }
.journalReceipt { margin:9px 0 0; font-size:13px; color:#f2c970; }
.journalReceipt:empty { display:none; }
#bagPage { padding-top:12px; }
#bagRows > div { padding:9px 0; border-top:1px dashed rgba(255,255,255,0.14); flex-wrap:wrap; }
#bagRows strong { flex:1; font-size:14px; color:#fff8e6; }
#shopBag { margin-top:10px; align-self:flex-start; }

/* Live Star Rush & Ice/Fire Arena Card */
.starRushCard {
  position:fixed; top:14px; right:185px; z-index:20;
  width:244px; padding:9px 12px; border-radius:12px;
  pointer-events:none; display:flex; flex-direction:column; gap:5px;
}
.srHead { display:flex; align-items:center; gap:7px; }
.srDot { width:7px; height:7px; border-radius:50%; background:#5ce0d0; box-shadow:0 0 10px #5ce0d0; flex:0 0 auto; }
.srHead strong { font-size:12.5px; color:#fff8e6; flex:1; }
.srHead b {
  font-family:ui-monospace, monospace; font-size:12px; color:#151821;
  background:#e8c97e; padding:1px 7px; border-radius:999px;
}
.srMeta { font-size:10.5px; color:rgba(235,230,214,0.74); line-height:1.35; }
.srBoard { display:flex; flex-direction:column; gap:3px; border-top:1px solid rgba(255,255,255,0.10); padding-top:5px; }
.srRow { display:flex; justify-content:space-between; font-size:11px; color:#f5f1e6; }
.srRow em { font-style:normal; color:#e8c97e; font-family:ui-monospace, monospace; font-weight:700; }
.srFeed {
  font-size:10.5px; color:#9af5ea; padding-top:4px;
  border-top:1px dashed rgba(255,255,255,0.14); line-height:1.35;
}

.frostScreen {
  position:fixed; inset:0; z-index:26; pointer-events:none;
  background:radial-gradient(circle at 50% 50%, transparent 46%, rgba(102, 206, 255, 0.42) 100%);
  box-shadow:inset 0 0 80px rgba(170, 238, 255, 0.55);
  display:grid; place-items:start center; padding-top:86px;
}
.frostScreen span {
  padding:7px 16px; border-radius:999px;
  background:rgba(12, 28, 46, 0.86); border:1px solid #8ae3ff;
  color:#e8fbff; font-size:12.5px; font-weight:700;
  box-shadow:0 6px 22px rgba(72, 185, 255, 0.42);
}

#game.mobile-mode #nearbyPlay { bottom:16%; font-size:11px; gap:4px; }
#game.mobile-mode #nearbyPlay button { font-size:11px; padding:5px 7px; }
#game.mobile-mode .starRushCard { top:94px; right:10px; width:178px; padding:6px 8px; }
#game.mobile-mode .srMeta { display:none; }
#game.mobile-mode .journalSheet { max-height:82%; width:min(510px,89%); }
#game.mobile-mode .journalHead {padding:8px 14px;}
#game.mobile-mode .journalHead h2 {font-size:18px;margin:0;}
#game.mobile-mode .journalLeaves {padding:0 14px 10px;}
#game.mobile-mode .journalTask {padding:8px 0;}
#hud:has(#activityHud:not([hidden])) .hudSideMenu {
  top:max(176px, calc(50% - 165px)); transform:none; max-height:calc(100% - 252px); overflow-y:auto;
}

#game.mobile-mode .room-roster {top:94px; right:8px; font-size:11px; padding:5px 8px;}
#game.mobile-mode .starRushCard {top:auto; right:auto; bottom:12px; left:50%; transform:translateX(-50%); width:158px;}
