/* ☆ VRC Studio — celestial theme, after bellastrange.neocities.org ☆ */
@font-face { font-family: 'Cinzel'; src: url('/fonts/Cinzel.ttf') format('truetype'); font-weight: 400 900; }

:root {
  --silver: #C0C0C0; --gold: #BC9345; --gold-soft: rgba(188,147,69,.18);
  --ocean-top: #02020a; --ocean-mid: #00111f; --ocean-bot: #001e2e;
  --glow-violet: #7b68ee; --glow-indigo: #4b0082;
  --glass: rgba(0, 6, 16, .62); --glass2: rgba(10, 22, 38, .72); --line: rgba(192,192,192,.22); --line-strong: rgba(192,192,192,.55);
  --text: #e9e7f2; --dim: #a9adbd; --faint: #6f7690;
  --world: #8fc3ff; --avatar: #f2a7d0; --tool: #BC9345; --blend: #e8a96a; --unity: #a9adbd;
  --good: #8fe3b9; --warn: #f0c27a; --bad: #ff8b94;
  --font-head: 'Cinzel', Georgia, serif;
  --font-pixel: 'RainyHearts', 'Courier New', monospace;
  --font-body: "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: linear-gradient(to bottom, var(--ocean-top), var(--ocean-mid), var(--ocean-bot)) fixed; min-height: 100%; }
body { margin: 0; color: var(--text); font: 14px/1.5 var(--font-body); background: transparent; min-height: 100vh; }
#starfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
::selection { background: var(--gold); color: #000; }
::-webkit-scrollbar { width: 12px; } ::-webkit-scrollbar-track { background: #050510; border-left: 1px solid var(--line); }
::-webkit-scrollbar-thumb { background: var(--gold); border: 2px solid #050510; border-radius: 6px; } ::-webkit-scrollbar-thumb:hover { background: var(--silver); }

header { display: flex; align-items: center; gap: 14px; padding: 14px 28px; position: sticky; top: 0; z-index: 5;
  background: rgba(2,2,10,.78); backdrop-filter: blur(8px); border-bottom: 1px dashed var(--line-strong); }
header h1 { font: 700 27px/1 var(--font-head); margin: 0; cursor: pointer; color: var(--silver); letter-spacing: 1px;
  text-shadow: 0 0 5px var(--glow-violet), 0 0 20px var(--glow-indigo); }
header h1 span { color: var(--gold); text-shadow: 0 0 8px var(--gold); }
.spacer { flex: 1; }

button { background: transparent; color: var(--gold); border: 1px solid var(--gold); border-radius: 8px; padding: 6px 13px;
  font: 13px var(--font-body); cursor: pointer; transition: all .2s; }
button:hover { background: var(--gold); color: #000; box-shadow: 0 0 14px var(--gold); }
button.primary { background: var(--gold); color: #000; font-weight: 600; }
button.ghost { color: var(--silver); border-color: var(--line); }
button.ghost:hover { background: transparent; color: var(--gold); border-color: var(--gold); box-shadow: none; }
button.small { padding: 3px 10px; font-size: 12px; }
button:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }

main { padding: 22px 28px 90px; max-width: 1500px; margin: 0 auto; }
h2 { font: 600 22px var(--font-head); color: var(--silver); margin: 34px 0 14px; letter-spacing: 1px;
  border-bottom: 1px dotted var(--line-strong); padding-bottom: 6px; text-shadow: 0 0 8px rgba(123,104,238,.45); }
h2 .count { font: 13px var(--font-body); color: var(--faint); margin-left: 8px; text-shadow: none; }
.muted { color: var(--dim); } .faint { color: var(--faint); }
.pixel { font-family: var(--font-pixel); letter-spacing: 1px; }

/* glass boxes with the gold offset shadow */
.glass { background: var(--glass); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 4px 4px 0 var(--gold-soft); backdrop-filter: blur(3px); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { padding: 14px 16px; }
.stat .v { font: 600 27px/1.1 var(--font-head); color: var(--silver); }
.stat .l { color: var(--dim); font-size: 12px; }
.stat.gold .v { color: var(--gold); text-shadow: 0 0 10px rgba(188,147,69,.5); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card { padding: 16px; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 5px 5px 0 var(--gold), 0 0 22px rgba(188,147,69,.25); }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 70px; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 20%, transparent), transparent); }
.card h3 { margin: 0; font: 600 18px/1.25 var(--font-head); letter-spacing: .3px; display: flex; gap: 8px; align-items: flex-start; position: relative; color: var(--text); }
.card h3 .t { flex: 1; min-width: 0; overflow-wrap: break-word; }
.card .sub { color: var(--dim); font-size: 12px; position: relative; }

.row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.badge { display: inline-block; font-size: 11px; padding: 1px 9px; border-radius: 99px; background: rgba(0,0,0,.35); color: var(--dim); border: 1px solid var(--line); white-space: nowrap; }
.badge.World { color: var(--world); border-color: color-mix(in srgb, var(--world) 40%, transparent); }
.badge.Avatar { color: var(--avatar); border-color: color-mix(in srgb, var(--avatar) 40%, transparent); }
.badge.Tool { color: var(--tool); border-color: color-mix(in srgb, var(--tool) 45%, transparent); }
.badge.Blender { color: var(--blend); border-color: color-mix(in srgb, var(--blend) 40%, transparent); }
.badge.good { color: var(--good); } .badge.warn { color: var(--warn); } .badge.bad { color: var(--bad); }
.badge.u6 { color: #c9b8ff; border-color: rgba(201,184,255,.5); }

.insights { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; }
.insight { padding: 13px 16px; border-left: 3px solid var(--gold); }
.insight.info { border-left-color: var(--silver); }
.insight b { display: block; margin-bottom: 4px; font-weight: 600; }
.insight ul { list-style: none; margin: 8px 0 0; padding: 0; color: var(--dim); }
.insight li::before { content: "★ "; color: var(--gold); }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
input[type=search], input[type=text], select, textarea { background: rgba(0,0,0,.45); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font: 13px var(--font-body); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 8px rgba(188,147,69,.35); }
select option { background: #050a14; }
input[type=search] { width: 260px; }
.chip { border-radius: 99px; color: var(--silver); border-color: var(--line); }
.chip.on { background: var(--gold); color: #000; border-color: var(--gold); }

table { width: 100%; border-collapse: collapse; overflow: hidden; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--gold); font: 12px var(--font-body); font-weight: 600; letter-spacing: .5px; background: rgba(0,0,0,.45); cursor: pointer; user-select: none; white-space: nowrap; }
tr:hover td { background: rgba(188,147,69,.05); }
tr.copy td { background: rgba(0,0,0,.25); }
tr.copy td:nth-child(2) { padding-left: 28px; }
tr.grp td { background: rgba(0,0,0,.5); font: 600 15px var(--font-head); color: var(--gold); }
td .name { font-weight: 600; cursor: pointer; }
td .name:hover { color: var(--gold); text-shadow: 0 0 8px var(--gold); }
td .path { color: var(--faint); font-size: 11px; word-break: break-all; }
td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.star { cursor: pointer; color: var(--faint); font-size: 17px; background: none; border: none; padding: 0 4px; box-shadow: none; }
.star:hover { background: none; color: var(--gold); box-shadow: none; }
.star.on { color: var(--gold); text-shadow: 0 0 8px var(--gold); }
.toggle { color: var(--gold); cursor: pointer; font-size: 12px; }

#toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 10; max-width: 400px; }
.toast { padding: 10px 14px; font-size: 13px; animation: fadeIn .3s; }
.toast.bad { border-color: var(--bad); }

/* the star gate — spins while scanning */
.gate { display: inline-flex; width: 26px; height: 26px; border: 2px dashed var(--silver); border-radius: 50%; align-items: center; justify-content: center;
  animation: slowSpin 6s linear infinite; vertical-align: middle; }
.gate i { font-style: normal; color: var(--gold); font-size: 13px; animation: reverseSpin 6s linear infinite; text-shadow: 0 0 8px var(--gold); }
.statusline { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 12px; }
.progress { height: 5px; border-radius: 99px; background: rgba(192,192,192,.18); overflow: hidden; width: 140px; display: inline-block; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #f3d79a); box-shadow: 0 0 8px var(--gold); transition: width .4s; }

/* project page */
.hero { padding: 24px 26px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 22%, rgba(0,6,16,.7)) 0%, rgba(0,6,16,.62) 65%); }
.hero h2 { border: none; margin: 0 0 8px; font-size: 34px; padding: 0; }
.pgrid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 18px; margin-top: 18px; }
@media (max-width: 1000px) { .pgrid { grid-template-columns: 1fr; } }
.panel { padding: 16px 18px; margin-bottom: 16px; }
.ptitle { font: 600 17px var(--font-head); color: var(--gold); margin-bottom: 10px; letter-spacing: .5px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: 13px; }
.kv > div:nth-child(odd) { color: var(--dim); }
.soon { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 22px; color: var(--dim); text-align: center; }
.soon .big { font: 600 18px var(--font-head); color: var(--silver); display: block; margin-bottom: 4px; }
textarea.notes { width: 100%; min-height: 90px; resize: vertical; }
.back { color: var(--dim); text-decoration: none; } .back:hover { color: var(--gold); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes slowSpin { to { transform: rotate(360deg); } }
@keyframes reverseSpin { to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) { .gate, .gate i { animation: none; } }

/* planning: progress, where you left off, goals, history */
.pbar { display: block; height: 6px; border-radius: 99px; background: rgba(192,192,192,.16); overflow: hidden; flex: 1; }
.pbar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #f3d79a); box-shadow: 0 0 8px var(--gold); transition: width .5s; }
.overall { display: flex; align-items: center; gap: 12px; margin-top: 14px; color: var(--dim); font-size: 13px; }
.overall .pbar { height: 9px; max-width: 420px; }
.overall b { color: var(--gold); }
.cardprog { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--dim); position: relative; }
.leftoff-snip { color: var(--text) !important; font-style: italic; }
.leftoff-text { white-space: pre-wrap; font-size: 15px; line-height: 1.6; border-left: 2px solid var(--gold); padding: 2px 0 2px 14px; }
.sig { color: var(--faint); font-size: 12px; margin-top: 6px; }
.who { font-size: 11px; color: var(--dim); border: 1px solid var(--line); border-radius: 99px; padding: 0 8px; white-space: nowrap; }
.who.claude { color: #c9b8ff; border-color: rgba(201,184,255,.45); }
.who.mini { padding: 0 5px; }
.earlier { width: 100%; margin-top: 8px; }
.old { border-left: 2px solid var(--line); padding: 4px 0 4px 12px; margin: 8px 0; color: var(--dim); white-space: pre-wrap; }

.goallist { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.goal { border: 1px solid var(--line); border-left: 3px solid var(--gc); border-radius: 10px; padding: 10px 12px; background: rgba(0,0,0,.25); }
.goal .pbar > i { transition: width .5s; }
.goal.complete { opacity: .78; }
.ghead { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.dot { width: 14px; height: 14px; padding: 0; border-radius: 50%; background: var(--gc); border: none; box-shadow: 0 0 8px var(--gc); flex: none; }
.dot:hover { background: var(--gc); transform: scale(1.25); }
input.gtitle, input.ttitle { background: transparent; border: 1px solid transparent; color: var(--text); padding: 2px 6px; flex: 1; min-width: 0; }
input.gtitle { font: 600 16px var(--font-head); color: var(--silver); letter-spacing: .3px; }
input.gtitle:hover, input.ttitle:hover { border-color: var(--line); }
.gcount { font-size: 12px; color: var(--dim); white-space: nowrap; }
.goal.complete .gcount { color: var(--gc); }
.tools { display: inline-flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.ghead:hover .tools, li:hover > .tools { opacity: 1; }
button.ic { border: none; color: var(--faint); padding: 0 5px; font-size: 13px; background: none; box-shadow: none; }
button.ic:hover { color: var(--gold); background: none; box-shadow: none; }
button.ic.del:hover, button.ic.armed { color: var(--bad); }
ul.tasks { list-style: none; margin: 8px 0 0; padding: 0; }
ul.tasks li { display: flex; align-items: center; gap: 6px; padding: 1px 0; }
ul.tasks li.done input.ttitle { color: var(--faint); text-decoration: line-through; }
ul.tasks li.add input { color: var(--dim); }
ul.tasks input[type=checkbox] { accent-color: var(--gold); width: 15px; height: 15px; margin: 0 2px; cursor: pointer; }
.addgoal input[type=text] { flex: 1; }

.day { font: 600 13px var(--font-head); color: var(--gold); margin: 14px 0 4px; letter-spacing: .5px; }
.logrow { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; font-size: 13px; border-bottom: 1px dotted rgba(192,192,192,.1); }
.kicon { width: 16px; text-align: center; color: var(--faint); flex: none; }
.k-done .kicon { color: var(--good); } .k-journal .kicon, .k-leftoff .kicon { color: var(--gold); }
.k-edit .ltext { color: var(--dim); }
.ltext { flex: 1; }
.ltime { font-size: 11px; }

ul.tasks li.fold { padding: 2px 0 2px 26px; }
.partrow { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dotted var(--line); }
.partrow .path { color: var(--faint); font-size: 11px; word-break: break-all; }
tr.part td:nth-child(2) .name::before { content: "↳ "; color: var(--gold); }


/* ---- shared site ---- */
.center { text-align: center; }
.login { max-width: 380px; margin: 12vh auto 0; padding: 30px 28px; display: flex; flex-direction: column; gap: 12px; }
.login h2 { margin: 0 0 6px; border: none; text-align: center; }
.login input { width: 100%; padding: 9px 12px; font-size: 14px; }
.login .err { color: var(--bad); font-size: 13px; min-height: 18px; }
#me { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 13px; }
.greet { font: 600 20px var(--font-head); color: var(--silver); margin: 6px 0 4px; }
.sub2 { color: var(--dim); margin-bottom: 8px; }
.notebox { padding: 14px 16px; margin-top: 10px; }
.notebox textarea { width: 100%; min-height: 70px; resize: vertical; }
.note { border-left: 2px solid var(--gold); padding: 6px 0 6px 12px; margin: 10px 0; }
.note .meta { color: var(--faint); font-size: 12px; }
.note .reply { margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: rgba(188,147,69,.08); color: var(--text); }
.note .reply b { color: var(--gold); font-weight: 600; }
.finished li { color: var(--dim); }
.finished li::before { content: "✓ "; color: var(--good); }
.sugg { display: flex; gap: 6px; margin-top: 8px; }
.sugg input { flex: 1; }
.pill { font-size: 11px; color: var(--gold); border: 1px solid rgba(188,147,69,.45); border-radius: 99px; padding: 0 8px; }
.suggested { color: var(--faint); font-size: 12px; margin-top: 4px; }
@media (max-width: 700px) { header { padding: 12px 16px; } header h1 { font-size: 20px; } main { padding: 16px 14px 60px; } }

.login input, input[type=password] { background: rgba(0,0,0,.45); color: var(--text); border: 1px solid var(--line); border-radius: 8px; font: 14px var(--font-body); }
.login input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 8px rgba(188,147,69,.35); }
