:root {
  --bg: #05080a; --text: #e6fff4; --muted: #5f8f78;
  --pink: #00ff9c; --violet: #22d3ee; --surface: #0b1218;
  --border: rgba(255,255,255,0.08); --green: #48ff9b;
  --font-display: ui-monospace, 'Cascadia Code', Consolas, monospace; --font-body: ui-monospace, 'Cascadia Code', Consolas, monospace;
  --mono: ui-monospace, 'Cascadia Code', Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font-family: var(--font-body); min-height: 100%; }
body { min-height: 100vh; }

.ps-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; position: relative; }
.ps-back { position: absolute; top: 1.25rem; left: 1.5rem; color: var(--muted); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.ps-back:hover { color: var(--text); }

.ps-card {
  width: 100%; max-width: 620px; background: var(--surface);
  border: 1px solid rgba(34,211,238,0.25); border-radius: 18px; padding: 2rem;
  display: flex; flex-direction: column; gap: 1.1rem; box-shadow: 0 0 60px rgba(34,211,238,0.07);
}
.ps-logo { font-size: 2rem; text-align: center; }
.ps-card h1 {
  font-family: var(--font-display); font-weight: 900; font-size: 1.7rem; text-align: center;
  background: linear-gradient(90deg, var(--pink), var(--violet));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ps-sub { font-size: 0.78rem; color: var(--muted); text-align: center; line-height: 1.5; }

.ps-text {
  width: 100%; min-height: 220px; resize: vertical;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 12px;
  padding: 0.85rem 1rem; color: var(--text); font-family: var(--mono); font-size: 0.88rem; line-height: 1.6;
  outline: none; transition: border-color 0.2s;
}
.ps-text:focus { border-color: rgba(34,211,238,0.5); }
.ps-text::placeholder { color: rgba(198,179,230,0.35); }

.ps-burn { display: flex; align-items: center; gap: 0.55rem; font-size: 0.8rem; color: var(--muted); cursor: pointer; }
.ps-burn input { width: 16px; height: 16px; accent-color: var(--pink); cursor: pointer; }

.ps-btn {
  width: 100%; padding: 0.85rem; font-family: var(--font-display); font-weight: 900; font-size: 1rem;
  color: #fff; cursor: pointer; border: none; border-radius: 12px;
  background: linear-gradient(90deg, var(--pink), var(--violet));
  transition: opacity 0.2s, transform 0.15s; text-align: center; text-decoration: none; display: block;
}
.ps-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.ps-btn:disabled { opacity: 0.45; cursor: default; transform: none; }
.ps-btn.ghost { background: none; border: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; font-weight: 700; padding: 0.6rem; }
.ps-btn.ghost:hover { color: var(--text); border-color: rgba(34,211,238,0.4); }

.ps-prog { font-size: 0.8rem; color: var(--muted); text-align: center; }

.ps-result { display: flex; flex-direction: column; gap: 0.7rem; }
.pr-title { font-size: 0.9rem; font-weight: 700; color: var(--green); text-align: center; }
.pr-linkrow { display: flex; gap: 0.4rem; }
.pr-link { flex: 1; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 10px; padding: 0.6rem 0.7rem; color: var(--text); font-family: var(--mono); font-size: 0.78rem; outline: none; min-width: 0; }
.pr-copy { background: rgba(34,211,238,0.15); border: 1px solid rgba(34,211,238,0.3); color: var(--text); border-radius: 10px; padding: 0 0.9rem; cursor: pointer; font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; }
.pr-copy:hover { background: rgba(34,211,238,0.28); }
.pr-note { font-size: 0.72rem; color: var(--muted); line-height: 1.55; background: rgba(72,255,155,0.05); border: 1px solid rgba(72,255,155,0.18); border-radius: 8px; padding: 0.6rem 0.75rem; }
.pr-note code { font-family: var(--mono); background: rgba(255,255,255,0.08); padding: 0.05rem 0.3rem; border-radius: 4px; }

.ps-warn { font-size: 0.78rem; color: #ffb066; line-height: 1.5; background: rgba(255,140,50,0.08); border: 1px solid rgba(255,140,50,0.25); border-radius: 8px; padding: 0.6rem 0.8rem; text-align: center; }

.ps-outwrap { display: flex; flex-direction: column; gap: 0.6rem; }
.ps-out {
  width: 100%; max-height: 55vh; overflow: auto; white-space: pre-wrap; word-break: break-word;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 12px;
  padding: 0.85rem 1rem; color: var(--text); font-family: var(--mono); font-size: 0.88rem; line-height: 1.6;
  -webkit-user-select: text; user-select: text;
}

.ps-error { font-size: 0.8rem; color: #ff8080; text-align: center; background: rgba(255,80,80,0.08); border: 1px solid rgba(255,80,80,0.25); border-radius: 8px; padding: 0.6rem 0.8rem; line-height: 1.5; }
.ps-badges { display: flex; gap: 0.45rem; flex-wrap: wrap; justify-content: center; }
.ps-badges span { font-size: 0.72rem; color: var(--muted); background: rgba(34,211,238,0.08); border: 1px solid rgba(34,211,238,0.2); border-radius: 999px; padding: 0.2rem 0.65rem; }

@media (max-width: 480px) { .ps-card { padding: 1.6rem 1.25rem; border-radius: 14px; } }
