:root {
  --brand: #075e54;
  --brand-dark: #064a43;
  --ink: #17353d;
  --muted: #526970;
  --faint: #7b8f91;
  --canvas: #f5f4ee;
  --surface: #fffefa;
  --line: #d8e0de;
  --line-strong: #b7c6c6;
  --accent: #e8f2ee;
  --warning: #b47a22;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  background:
    radial-gradient(circle at 4% 5%, rgba(32, 112, 124, .08), transparent 25rem),
    linear-gradient(135deg, rgba(255, 255, 255, .9), transparent 45%),
    var(--canvas);
}
a { color: inherit; }
.library-header {
  position: fixed; inset: 0 0 auto; z-index: 20; height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #dce3e2; padding: 0 clamp(20px, 4vw, 64px);
  background: rgba(250, 249, 245, .96);
  box-shadow: 0 5px 22px rgba(26, 52, 58, .055);
  backdrop-filter: blur(14px);
}
.brand { width: 152px; height: 48px; display: grid; place-items: center; text-decoration: none; }
.brand img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.header-right { display: flex; align-items: center; gap: 12px; }
.access-pill {
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 5px 10px; color: var(--muted); font-size: 11px; font-weight: 800;
  background: rgba(255, 255, 255, .7);
}
.session-user { color: var(--muted); font-size: 12px; font-weight: 750; }
.library-main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: calc(70px + clamp(36px, 6vw, 72px)) 0 34px;
}
.hero { max-width: 760px; padding-bottom: 34px; border-bottom: 1px solid rgba(23, 53, 61, .18); }
.eyebrow { margin: 0 0 13px; color: #52717a; font-size: 11px; font-weight: 850; letter-spacing: .2em; }
h1 {
  margin: 0; color: var(--ink); font-family: Georgia, "Songti SC", serif;
  font-size: clamp(42px, 5.3vw, 70px); font-weight: 550; line-height: 1.02; letter-spacing: -.045em;
}
.intro { margin: 18px 0 0; color: var(--muted); font-size: 16px; font-weight: 650; line-height: 1.7; }
.apps-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
  padding-top: 30px;
}
.app-card {
  min-height: 240px; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255, 255, 255, .84); padding: 24px;
  box-shadow: 0 8px 24px rgba(31, 57, 62, .045);
}
.muted-card { opacity: .78; }
.app-heading { display: flex; align-items: center; gap: 10px; }
.app-icon {
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 7px; color: #fff; font-size: 16px; font-weight: 900;
}
.wordle-icon { background: var(--brand); }
.eureka-icon { background: var(--warning); }
.app-heading h2 { margin: 0; font-size: 20px; font-weight: 850; letter-spacing: -.02em; }
.status {
  margin-left: auto; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 8px; color: var(--muted); font-size: 10px; font-weight: 850;
}
.status.live { border-color: #a7cec2; background: var(--accent); color: var(--brand); }
.status.soon { color: var(--faint); }
.app-card p { margin: 18px 0 0; color: var(--muted); font-size: 13.5px; font-weight: 650; line-height: 1.75; }
.app-action {
  align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px; border: 1px solid var(--brand); border-radius: 4px;
  background: var(--brand); padding: 0 14px; color: #fff; text-decoration: none;
  font-size: 12px; font-weight: 850; cursor: pointer;
}
.app-action:hover { background: var(--brand-dark); }
.app-action.secondary { border-color: var(--line); background: #f4f5f1; color: var(--faint); cursor: not-allowed; }
.login-gate {
  margin-top: 34px; border: 1px dashed var(--line-strong); border-radius: 12px;
  background: rgba(255, 255, 255, .62); padding: clamp(24px, 4vw, 40px);
}
.login-gate h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(24px, 3vw, 34px); font-weight: 600; }
.login-gate p:not(.eyebrow) { margin: 12px 0 20px; color: var(--muted); font-size: 13px; font-weight: 650; line-height: 1.7; }
.library-footer {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 48px; padding-top: 16px; border-top: 1px solid rgba(23, 53, 61, .16);
  color: var(--faint); font-size: 11px; font-weight: 650;
}
@media (max-width: 720px) {
  .library-header { padding-inline: 18px; }
  .session-user { display: none; }
  .library-main { width: min(100% - 32px, 1180px); }
  .apps-grid { grid-template-columns: 1fr; }
  .library-footer { flex-direction: column; gap: 6px; }
}
