/* Reduced CSS generated from current page */

/* From: http://127.0.0.1:5500/styles/main.css */
:root { --bg: #0a0f1a; --card: #0f1625; --soft: #0c1423; --ink: #e5e7eb; --muted: #94a3b8; --border: #0b2a55; --radius: 22px; --shadow: 0 10px 30px rgba(2,6,23,.45); --cta: #3b82f6; --cta-shadow: #1e40af; --cta-grad-start: #2563eb; --cta-grad-end: #1e40af; --chip-bg: rgba(30,58,138,.25); --chip-ink: #e2e8f0; --fx-blue: #60a5fa; --fx-blue-soft: #3b82f6; --fx-grid-stroke: rgba(96,165,250,.35); --fx-trace-grad-1: #93c5fd; --fx-trace-grad-2: #3b82f6; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0px; overflow-x: hidden; }
body { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; background: var(--bg); color: var(--ink); }
header { position: sticky; top: 0px; z-index: 10; backdrop-filter: saturate(120%) blur(6px); }
.tech-hex { position: fixed; right: -40vw; top: 0px; width: 200vw; height: 120vh; opacity: 0.2; animation: 120s linear 0s infinite normal none running tech-drift; }
.tech-map { position: fixed; inset: 0px; opacity: 0.18; }
.tech-traces { position: fixed; inset-inline: 0px; bottom: 0px; height: 55vh; }
@keyframes fadeUp {
0% { opacity: 0; transform: translateY(20px); }
100% { opacity: 1; transform: translateY(0px); }
}
@media (max-width: 980px) {
header { backdrop-filter: none; }
}
.tech-hex { position: fixed; right: -40vw; top: 0px; width: 200vw; height: 120vh; opacity: 0.2; animation: 120s linear 0s infinite normal none running tech-drift; }
.card { transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; will-change: transform; }
@keyframes wiggle {
0% { transform: rotate(0deg) translateY(0px); }
25% { transform: rotate(-5deg) translateY(-1px); }
50% { transform: rotate(0deg) translateY(0px); }
75% { transform: rotate(5deg) translateY(-1px); }
100% { transform: rotate(0deg) translateY(0px); }
}
header { transition: box-shadow 0.25s, background 0.25s; }
.btn.btn-primary { background: linear-gradient(135deg, var(--cta-grad-start), var(--cta-grad-end)); color: rgb(230, 240, 255); border: 1px solid var(--cta-shadow); box-shadow: rgba(0, 0, 0, 0.28) 0px 8px 18px, rgba(59, 130, 246, 0.35) 0px 0px 12px; transition: transform 0.12s, box-shadow 0.2s, background 0.2s; }
.btn.btn-ghost { background: transparent; color: rgb(191, 219, 254); border: 1px solid rgba(59, 130, 246, 0.35); text-decoration: none; }
.card { transition: transform 0.18s, box-shadow 0.18s; will-change: transform; }
@media (any-hover: none) {
@keyframes lift-on-enter {
0% { transform: translateY(10px); box-shadow: var(--shadow, 0 6px 16px rgba(0,0,0,.25)); }
40% { transform: translateY(-6px); box-shadow: rgba(0, 0, 0, 0.28) 0px 10px 28px; }
100% { transform: translateY(0px); box-shadow: var(--shadow, 0 6px 16px rgba(0,0,0,.25)); }
}
}
@keyframes drift {
0% { transform: translateY(0px); }
50% { transform: translateY(-6px); }
100% { transform: translateY(0px); }
}
header, .card { position: relative; z-index: 2; }
* { transition-property: opacity, transform, box-shadow, border-color, background, color; transition-duration: 0.4s; transition-timing-function: ease; }
.card, .pill, .btn { opacity: 0; transform: translateY(10px); will-change: transform, opacity; }
.card, .pill, .btn { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
* { transition: none !important; }
.card, .pill, .btn { transform: none !important; opacity: 1 !important; }
}
textarea, input[type="text"] { width: 100%; background: rgb(12, 20, 35); color: var(--ink); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; font-size: 15px; outline: none; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; appearance: none; }
.techy-title { color: var(--fx-blue); font-weight: 800; letter-spacing: -0.01em; line-height: 1.12; text-shadow: rgba(77, 166, 255, 0.35) 0px 0px 12px, rgba(77, 166, 255, 0.2) 0px 0px 24px; }
html, body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }
@media (prefers-reduced-motion: reduce) {
.tech-bg animate { display: none !important; }
}
@keyframes tech-floatY {
0%, 100% { transform: translateY(-2px); }
50% { transform: translateY(2px); }
}
@keyframes tech-twinkle {
0%, 100% { opacity: 0.45; }
50% { opacity: 1; }
}
.login-toast { position: fixed; top: 50%; left: 50%; z-index: 99999; transform: translate(-50%, -40%) scale(0.92); opacity: 0; visibility: hidden; display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-radius: 18px; background: color-mix(in srgb, var(--card, #020617) 80%, var(--cta, #38bdf8) 20%); border: 1px solid color-mix(in srgb, var(--border, #1f2937) 60%, var(--cta, #38bdf8) 40%); color: var(--ink, #e5e7eb); box-shadow: rgba(56, 189, 248, 0.25) 0px 0px 0px 1px, rgba(15, 23, 42, 0.65) 0px 18px 45px, rgba(56, 189, 248, 0.45) 0px 0px 36px; font-size: 1.05rem; letter-spacing: 0.02em; pointer-events: none; transition: opacity 0.35s ease-out, transform 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28); }
.tech-bg, .tech-map, .tech-hex, .tech-glow, .tech-particles { position: fixed !important; inset: 0px !important; z-index: -9999 !important; pointer-events: none !important; }
#login-toast, #logout-toast { position: fixed !important; z-index: 999999999 !important; }
.cookie-banner { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); max-width: 600px; width: 90%; background: rgb(31, 41, 55); color: rgb(249, 250, 251); padding: 1rem; border-radius: 10px; border: 1px solid rgb(75, 85, 99); font-size: 0.9rem; z-index: 9999; box-shadow: rgba(0, 0, 0, 0.4) 0px 8px 20px; }
.cookie-banner button { margin-right: 0.5rem; padding: 0.4rem 1rem; border-radius: 6px; border: none; cursor: pointer; }
#acceptCookies { background: rgb(34, 197, 94); color: rgb(2, 44, 34); font-weight: 600; }
#rejectCookies { background: rgb(75, 85, 99); color: rgb(243, 244, 246); }
#streak-container { position: fixed; top: 4.25rem; left: 1rem; z-index: 1100; display: flex; align-items: center; gap: 0.5rem; }
.streak-badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.75rem; border-radius: 999px; background: rgba(15, 22, 37, 0.95); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--ink); font-size: 0.75rem; font-weight: 600; opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity 160ms ease-out, transform 160ms ease-out; }
.streak-badge.is-visible { opacity: 1; transform: translateY(0px); pointer-events: auto; }
.streak-badge .streak-emoji { font-size: 1rem; }
.streak-badge .streak-text { white-space: nowrap; }
@media (min-width: 1024px) {
.streak-badge { left: 1.5rem; top: 4.5rem; }
}
.streak-badge.is-visible { opacity: 1; transform: translateY(0px); }
#streak-container { position: fixed; top: 4.25rem; right: 1rem; left: auto; z-index: 1100; display: flex; align-items: center; gap: 0.5rem; }
#streak-container { position: fixed; top: 5.5rem; left: 0px; right: 0px; z-index: 950; display: flex; align-items: center; justify-content: space-between; padding: 0px 1.25rem; }
@media (min-width: 980px) {
#streak-container { max-width: 1120px; margin: 0px auto; padding-left: 1.25rem; padding-right: 1.25rem; }
}
@media (max-width: 640px) {
#streak-container { top: 4.1rem; padding: 0px 0.9rem; }
.streak-badge { max-width: 70%; }
#xp-total-pill { flex-shrink: 0; }
}
#xp-total-pill { display: inline-flex; align-items: center; justify-content: center; padding: 0.35rem 0.75rem; border-radius: 999px; background: rgba(15, 22, 37, 0.95); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--ink); font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.btn.btn-primary { background: rgb(0, 7, 19) !important; color: rgb(250, 250, 255) !important; border-color: rgb(0, 24, 51) !important; }
.btn.btn-ghost { background: transparent !important; color: rgb(191, 219, 254) !important; border: 1px solid rgba(59, 130, 246, 0.35) !important; text-decoration: none !important; }

/* From: <inline style> */
.lib-new-grid { display: grid; grid-template-columns: minmax(0px, 2fr) minmax(0px, 1.2fr); gap: 1.25rem; align-items: stretch; }
@media (max-width: 800px) {
.lib-new-grid { grid-template-columns: 1fr; }
}
.mini-vara-card { border-radius: 1rem; padding: 1rem; background: radial-gradient(circle at left top, rgba(88, 135, 255, 0.18), transparent 55%); border: 1px solid var(--border, rgba(255,255,255,0.12)); display: flex; flex-direction: column; justify-content: space-between; min-height: 100%; }
.mini-vara-figure { display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; }
.mini-vara-figure img { max-width: 140px; width: 100%; height: auto; display: block; border-radius: 999px; }
.mini-vara-note { font-size: 0.85rem; line-height: 1.4; opacity: 0.85; }
.btn.btn-primary { background: rgb(0, 7, 19) !important; color: rgb(250, 250, 255) !important; border-color: rgb(0, 24, 51) !important; }
.btn.btn-ghost { background: transparent !important; color: rgb(191, 219, 254) !important; border: 1px solid rgba(59, 130, 246, 0.35) !important; text-decoration: none !important; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; box-shadow: rgba(0, 0, 0, 0.25) 0px 0px 20px; }

.btn.btn-primary {
    background: rgb(0, 7, 19) !important;
    color: rgb(250, 250, 255) !important;
    border-color: rgb(0, 24, 51) !important;
}

.btn.btn-ghost {
    background: transparent !important;
    color: rgb(191, 219, 254) !important;
    border: 1px solid rgba(59, 130, 246, 0.35)!important;
    text-decoration: none !important;
}
/* Global wrapper for every page */
.site-shell{
  position: relative;
  z-index: 2;                 /* above tech-bg */
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 4rem; /* top padding accounts for sticky topbar */
}

/* If you want slightly tighter on mobile */
@media (max-width: 640px){
  .site-shell{
    padding: 2.75rem 0.9rem 3rem;
  }
}

/* Page-specific inner shell (optional) */
.page-shell{
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}
#libGrid .card {
  padding: 1.75rem 1.75rem 1.5rem;
}
/* Library cards */
#libGrid .prompt-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

/* Title spacing */
#libGrid .prompt-card__title{
  margin: 0 0 .75rem;
  line-height: 1.25;
}

/* Body spacing + readability */
#libGrid .prompt-card__body{
  margin: 0;
  opacity: .85;
  line-height: 1.6;
  white-space: pre-wrap;

  /* optional: keeps cards from becoming novels */
  max-height: 9.6em;
  overflow: hidden;
}

/* Actions feel like a footer */
#libGrid .prompt-card__actions{
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;

  margin-top: 1.1rem;
  padding-top: .85rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
/* Library toolbar */
.lib-toolbar{
  padding: 1rem 1.25rem;
}

.lib-toolbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Left: count pill */
.lib-toolbar__left{
  display: flex;
  align-items: center;
}

/* Make the count feel intentional */
#libCount{
  padding: 0.45rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .01em;
}

/* Right: search + refresh */
.lib-toolbar__right{
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

#libSearch{
  min-width: 220px;
}

/* Mobile tweaks */
@media (max-width: 640px){
  .lib-toolbar{
    padding: 0.85rem 1rem;
  }

  #libSearch{
    min-width: 160px;
  }
}
/* Space between toolbar and library grid */
.lib-toolbar {
  margin-bottom: 1.75rem;
}

/* Extra breathing room before first row of cards */
#libGrid {
  margin-top: 0.5rem;
}
.lib-toolbar {
  position: relative;
}

.lib-toolbar::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: -0.75rem;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--border),
    transparent
  );
  opacity: 0.6;
}
#libGrid .prompt-card {
  padding: 1.5rem 1.5rem 1.6rem;
}
/* Space above the prompt library section */
#promptLibrary {
  margin-top: 2.25rem;
}
@media (max-width: 640px) {
  #promptLibrary {
    margin-top: 1.75rem;
  }
}

.btn {
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.2;
  border-radius: 999px; /* keeps pill feel */
  white-space: nowrap;  /* prevents ugly wraps */
}
.btn.btn-primary {
  padding: 11px 18px;
  font-weight: 600;
}