:root {
  --bg-0: #071226;
  --bg-1: #102542;
  --card: rgba(255, 255, 255, 0.88);
  --line: #c7d2fe;
  --text: #0f172a;
  --sub: #334155;
  --accent: #0ea5e9;
  --accent-2: #f97316;
  --danger-bg: #fee2e2;
  --danger-line: #ef4444;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 20%, #1e3a8a 0%, transparent 35%), radial-gradient(circle at 85% 30%, #0ea5e9 0%, transparent 30%), linear-gradient(160deg, var(--bg-0), var(--bg-1));
  min-height: 100vh;
  overflow-x: hidden;
}

h1,
h2,
button,
.chip {
  font-family: "Jua", "Noto Sans KR", sans-serif;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.bg-orb {
  position: fixed;
  width: 38vw;
  height: 38vw;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.orb-a {
  left: -10vw;
  top: -10vw;
  background: #f97316;
}

.orb-b {
  right: -12vw;
  bottom: -12vw;
  background: #22d3ee;
}

.app {
  position: relative;
  z-index: 1;
  width: min(920px, 92vw);
  margin: 28px auto 48px;
  display: grid;
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 35px rgba(2, 6, 23, 0.28);
  border-radius: 20px;
  padding: 18px;
}

.hero {
  border: 2px solid var(--line);
}

.chip {
  display: inline-block;
  background: #0c4a6e;
  color: #e0f2fe;
  border-radius: 999px;
  padding: 6px 12px;
  margin: 0 0 10px;
}

h1 {
  margin: 0;
  line-height: 1.2;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.hero-desc {
  margin: 10px 0 0;
  color: var(--sub);
  line-height: 1.7;
  font-weight: 700;
}

.error {
  border: 2px solid var(--danger-line);
  background: var(--danger-bg);
  color: #7f1d1d;
  font-weight: 700;
  line-height: 1.7;
}

.hidden {
  display: none;
}

.form-grid {
  display: grid;
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: #1e293b;
}

input,
select,
button {
  font-size: 1rem;
  border-radius: 12px;
  border: 1px solid #94a3b8;
  padding: 12px;
}

input:focus,
select:focus,
button:focus {
  outline: 3px solid #bae6fd;
  outline-offset: 1px;
}

button {
  cursor: pointer;
  border: 0;
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: #fff;
  font-weight: 900;
}

button:hover {
  filter: brightness(1.05);
}

button:disabled {
  background: #64748b;
  cursor: not-allowed;
}

.ghost {
  background: #fff;
  border: 1px solid #94a3b8;
  color: #0f172a;
  font-weight: 700;
}

.records-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hint {
  margin: 0 0 10px;
  color: #475569;
  font-weight: 700;
}

.records {
  display: grid;
  gap: 8px;
}

.record-item {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px;
  line-height: 1.6;
}

.record-empty {
  color: #475569;
  background: #f1f5f9;
  border: 1px dashed #94a3b8;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  font-weight: 700;
}

@media (max-width: 640px) {
  .app {
    width: 94vw;
    margin-top: 14px;
  }

  .card {
    padding: 14px;
    border-radius: 16px;
  }

  .records-head {
    align-items: stretch;
    flex-direction: column;
  }
}
