/* OOM! RF4 CSS layer: components.css */
/* ---------- screens ---------- */
.screen { display: none; position: relative; z-index: 2; min-height: 100vh; }
.screen.active { display: block; animation: screenIn 0.35s ease-out; }
.particle-overlay {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 8;
}
body.armory-open .screen.active { visibility: hidden; }
@keyframes screenIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.screen-title {
  font-family: var(--font-display); font-weight: 900; color: var(--parchment);
  font-size: clamp(30px, 4.5vw, 52px); text-align: center; letter-spacing: 1px;
  text-shadow: 0 3px 0 rgba(0,0,0,0.6), 0 0 40px rgba(217, 171, 79, 0.2);
}
.screen-sub { text-align: center; color: var(--dim); margin: 8px auto 24px; max-width: 720px; font-size: 17px; }

/* ---------- panels & buttons ---------- */
.panel {
  background: linear-gradient(170deg, var(--panel-a), var(--panel-b));
  border: 1px solid var(--gold-dim);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
}
.panel::after {
  content: '◆'; position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  color: var(--gold); font-size: 11px; text-shadow: 0 0 8px rgba(217,171,79,0.8);
}

.btn {
  position: relative;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  color: var(--parchment); cursor: pointer;
  background: linear-gradient(180deg, #2c2440, #1a1428);
  border: 1px solid var(--gold-dim); border-radius: 8px;
  padding: 10px 22px; letter-spacing: 0.4px;
  transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
  box-shadow: 0 3px 0 rgba(0,0,0,0.5);
}
.btn.new-dot::after {
  content: ''; position: absolute; top: 7px; right: 8px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--danger);
  box-shadow: 0 0 0 2px rgba(255, 91, 74, 0.18), 0 0 10px rgba(255, 91, 74, 0.65);
}
.btn:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.15); box-shadow: 0 5px 14px rgba(217,171,79,0.25); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(180deg, #e8bd62, #a87b28);
  color: #241a08; border-color: var(--gold-hi);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-legendary {
  border-color: var(--rar-legendary);
  color: var(--gold-hi);
  box-shadow: 0 0 14px rgba(255, 157, 46, 0.28), 0 3px 0 rgba(0,0,0,0.5);
}
.btn-huge { font-size: 20px; padding: 16px 38px; border-radius: 12px; }
.btn-back { background: transparent; border-color: #3a3350; color: var(--dim); box-shadow: none; }
.btn-danger { border-color: var(--danger); color: var(--danger); }
.btn-daily { border-color: var(--mana); }
.btn-daily small { display: block; font-weight: 400; color: var(--dim); font-size: 12px; }
.btn-temp { border-color: #68d6bd; }
.btn-temp small { display: block; font-weight: 400; color: var(--dim); font-size: 12px; }
.icon-btn {
  background: rgba(20, 15, 35, 0.8); border: 1px solid var(--gold-dim); color: var(--parchment);
  border-radius: 8px; width: 36px; height: 36px; cursor: pointer; font-size: 15px;
}
.icon-btn:hover { filter: brightness(1.3); }

.dim { color: var(--dim); font-weight: 400; }
.good { color: var(--heal); }
.bad { color: var(--warn); }
.gold { color: var(--gold-hi); }
.respect { color: #d68aff; }
.grade { color: var(--gold-hi); font-size: 1.2em; }

/* ============================================================
   TOASTS & TOOLTIP
   ============================================================ */
/* top-RIGHT corner (was top-center, where it covered enemy frames and screen titles) */
#toasts { position: fixed; top: 64px; right: 14px; z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast {
  position: relative;
  background: linear-gradient(180deg, #2c2440, #17121f);
  border: 1px solid var(--gold-dim); border-radius: 10px;
  padding: 10px 20px; font-size: 14.5px; max-width: min(420px, 70vw);
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  opacity: 0; transform: translateX(18px); transition: all 0.35s cubic-bezier(0.2, 1.2, 0.4, 1);
  text-align: left; pointer-events: auto;
}
.toast.show { opacity: 1; transform: none; }
.toast.achv { border-color: var(--gold); box-shadow: 0 0 24px rgba(217, 171, 79, 0.35); }
.toast.onboard { border-color: rgba(125, 211, 252, 0.55); box-shadow: 0 0 24px rgba(125, 211, 252, 0.16), 0 8px 24px rgba(0,0,0,0.6); }
.toast.draft, .toast.duo {
  border-color: var(--gold);
  box-shadow: 0 0 26px rgba(217, 171, 79, 0.28), 0 8px 24px rgba(0,0,0,0.6);
}
.toast.duo { max-width: min(500px, 76vw); }
.toast-msg { padding-right: 18px; }
.toast-close {
  position: absolute; top: 6px; right: 7px;
  width: 22px; height: 22px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: var(--parchment);
  cursor: pointer; font-size: 17px; line-height: 20px;
}
.toast-close:hover { background: rgba(255,255,255,0.18); color: var(--gold-hi); }
.toast.pulse { animation: toastPulse 0.35s ease-out; }
@keyframes toastPulse {
  0% { box-shadow: 0 0 0 rgba(217, 171, 79, 0); }
  45% { box-shadow: 0 0 34px rgba(217, 171, 79, 0.55); }
  100% { }
}

#tooltip {
  position: fixed; z-index: 70; pointer-events: none;
  background: rgba(14, 10, 22, 0.97); border: 1px solid var(--gold-dim); border-radius: 8px;
  padding: 9px 13px; font-size: 13px; max-width: 300px; line-height: 1.45;
  box-shadow: 0 8px 24px rgba(0,0,0,0.7);
}

/* ---------- scrollbars ---------- */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #3a3350; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

