/* ===== Base ===== */
:root{
  --bg:#0d0f12;
  --sky:#0f1216;
  --card:#1a1e24;
  --pill:#171a1f;
  --text:#e8ecf1;
  --muted:#a9b2bd;
  --accent-start:#8a5cf6;
  --accent-end:#ff6fb1;
  --left-w: 26vw; /* left panel width; adjust if you want slightly wider/narrower */
  --gutter-x: 16px;
  --gutter-y: 18px;
  --card-w: 260px; /* LOCKED width */
  --card-ratio: 1 / 1.2; /* LOCKED aspect ratio (w : h) */
  --radius-lg: 16px;
  --radius-sm: 12px;
  --shadow: 0 10px 24px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{height:100%;}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji;
  color:var(--text);
  background:var(--bg);
  overflow:hidden; /* lock page; only right column scrolls */
}

/* ===== Sky (left) ===== */
.sky{
  position:fixed;
  inset:0 auto 0 0;
  width:var(--left-w);
  padding:22px 18px 22px 24px;
  background:var(--sky);
  /* subtle starry gradient */
  background-image: radial-gradient(1200px 800px at -15% 10%, rgba(255,255,255,.04), transparent 55%);
  border-right:1px solid rgba(255,255,255,.04);
  z-index:2;
}
.sky h1{
  margin:6px 0 10px;
  font-size:44px;
  line-height:1;
  letter-spacing:.5px;
}
.sky-line{
  display:flex; align-items:center; gap:8px;
  color:var(--text);
  opacity:.9;
  font-size:18px;
  margin:8px 0;
}
.sky .dot{opacity:.5}
.sky .meta{
  margin-top:16px;
  color:var(--muted);
  font-size:14px;
}

/* Joycon */
.joycon{
  position:absolute;
  left:18px;
  bottom:7vh; /* raised a bit */
  width:88px;height:88px;
  background:rgba(255,255,255,.05);
  border-radius:18px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06), var(--shadow);
  display:grid; place-items:center;
}
.joycon .nub{
  width:56px; height:56px;
  background:rgba(255,255,255,.9);
  border-radius:50%;
  box-shadow:inset 0 0 12px rgba(0,0,0,.35);
}

/* ===== Building (right) ===== */
.building{
  position:absolute;
  left:var(--left-w);
  right:0; top:0; bottom:0;
  /* Silhouette background */
  background:
    radial-gradient(1200px 800px at 20% 10%, rgba(255,255,255,.04), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(0,0,0,.02));
  overflow:hidden; /* scroll lives in .grid */
}
.grid{
  height:100%;
  width:100%;
  overflow-y:auto;
  padding:28px 28px 36px;
  display:grid;
  justify-content:center; /* keep centered; no left-right drift */
  grid-template-columns: repeat(3, var(--card-w)); /* LOCKED columns */
  grid-auto-rows: 0; /* not used when aspect-ratio present */
  gap: var(--gutter-y) var(--gutter-x);
}

/* Panel (card) */
.card{
  width:var(--card-w);
  aspect-ratio: var(--card-ratio);
  background:var(--card);
  border-radius:var(--radius-lg);
  box-shadow: var(--shadow);
  padding:16px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.header{
  display:flex; align-items:center; gap:12px;
}
.avatar{
  width:72px;height:72px;border-radius:50%;
  display:grid;place-items:center;
  color:#fff; font-weight:700; font-size:28px; text-transform:lowercase;
  box-shadow:0 0 0 4px rgba(255,255,255,.06), 0 8px 20px rgba(0,0,0,.35);
}
.name{font-size:22px; font-weight:800; letter-spacing:.3px}
.days{color:var(--muted); font-size:16px; margin-top:8px}

/* Pills */
.actions{display:flex; gap:12px; align-items:center; margin-top:6px}
.pill{
  background:var(--pill); color:#eaeef5; border:0;
  padding:10px 16px; border-radius:999px; font-weight:700;
  font-size:14px; letter-spacing:.3px;
}
.pol{
  background: radial-gradient(120% 140% at 20% 15%, var(--accent-start), var(--accent-end));
  color:#fff; width:48px; height:48px; border-radius:50%;
  display:grid; place-items:center; font-weight:800; text-transform:lowercase;
  box-shadow:0 8px 20px rgba(255, 111, 177, .35);
}

/* Hide scrollbar on iOS-ish look without breaking scroll */
.grid{scrollbar-width:none}
.grid::-webkit-scrollbar{display:none}
