/* LAZYRAINS Office — UI + layout fixes
   Goal: keep 3D crisp, make panels readable, and avoid "everything blurs" bug.
*/

html, body {
  height: 100%;
  margin: 0;
  background: #07090d;
  color: #e9eef7;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

#app {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

#c {
  width: 100%;
  height: 100%;
  display: block;
}

/* Hint */
.hint {
  position: fixed;
  left: 16px;
  bottom: 16px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.2;
  border-radius: 999px;
  background: rgba(10, 12, 18, 0.55);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  user-select: none;
}

/* Loading */
.loading {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(5, 6, 10, 0.8);
  z-index: 50;
}

.loading__card{
  display: flex;
  gap: 14px;
  padding: 18px 18px;
  border-radius: 16px;
  background: rgba(15, 18, 28, 0.75);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  width: min(420px, calc(100vw - 32px));
}

.spinner{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: rgba(255,255,255,0.85);
  animation: spin 0.8s linear infinite;
  margin-top: 4px;
}
@keyframes spin{ to{ transform: rotate(360deg); } }

.loading__title{ font-weight: 650; margin-bottom: 6px; }
.loading__small{ opacity: 0.8; margin-top: 6px; font-size: 13px; }
.loading__bar{
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  overflow: hidden;
}
.loading__barFill{
  height: 100%;
  width: 0%;
  background: rgba(90, 180, 255, 0.95);
}

/* UI overlay */
.ui{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
}

/* IMPORTANT:
   Blur belongs ONLY on backdrop via backdrop-filter.
   Do NOT apply "filter: blur()" on a parent of the panel, otherwise the text becomes blurry too.
*/
.backdrop{
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 41;
}
.backdrop.backdrop--open{
  opacity: 1;
  pointer-events: auto;
}

/* Panels */
.panel{
  position: fixed;
  right: 18px;
  top: 18px;
  width: min(420px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;

  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;

  border-radius: 18px;
  background: rgba(14, 17, 26, 0.92);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);

  /* Make sure the panel itself is NEVER blurred */
  filter: none !important;
  -webkit-filter: none !important;

  z-index: 42;
}

.panel.panel--open{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.panel__header{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 14px 10px 14px;
}

.panel__kicker{
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.panel__title{
  margin: 4px 0 0 0;
  font-size: 20px;
}

.panel__body{
  padding: 0 14px 14px 14px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(233,238,247,0.92);
}

.panel__actions{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #e9eef7;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
}
.btn:hover{ background: rgba(255,255,255,0.10); }
.btn--icon{
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 12px;
}

/* Links */
a{ color: rgba(120, 200, 255, 0.95); }
a:hover{ color: rgba(160, 225, 255, 1.0); }
