@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Noto+Sans+KR:wght@400;600;700;800;900&display=swap');

:root {
  --bg: #080b14;
  --panel: #111625;
  --line: #262d42;
  --text: #f6f7fb;
  --muted: #8d96aa;
  --hot: #ff5a36;
  --lime: #c8ff55;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 5%, rgba(255, 90, 54, .13), transparent 30rem),
    radial-gradient(circle at 90% 55%, rgba(200, 255, 85, .06), transparent 26rem),
    var(--bg);
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
}

button, input { font: inherit; }
button { color: inherit; }

.shell {
  width: min(100% - 32px, 720px);
  margin: 0 auto;
  padding: 70px 0 40px;
}

.hero { margin-bottom: 34px; }
.eyebrow {
  color: var(--lime);
  font: 500 .75rem/1 "DM Mono", monospace;
  letter-spacing: .15em;
  margin: 0 0 18px;
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 14px var(--hot);
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 8vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -.055em;
  font-weight: 900;
}
.hero h1 em { color: var(--hot); font-style: normal; }
.hero > p:last-child {
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: .96rem;
}

.panel {
  background: rgba(17, 22, 37, .94);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  margin-bottom: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .16);
}
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section-head h2 { margin: 0; font-size: 1rem; }
.section-head span { color: var(--muted); font-size: .72rem; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label > span:first-child { display: block; color: var(--muted); font-size: .8rem; margin: 0 0 8px 4px; }
.input-wrap {
  display: flex;
  align-items: center;
  background: #090d18;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 14px;
  transition: border .2s, box-shadow .2s;
}
.input-wrap:focus-within { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(200, 255, 85, .1); }
.input-wrap input {
  min-width: 0;
  width: 100%;
  height: 52px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: 500 1.18rem "DM Mono", monospace;
}
.input-wrap b { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.presets, .duration-row { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
.presets button, .duration-row button {
  flex: 1;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  padding: 10px 11px;
  cursor: pointer;
  font-size: .78rem;
}
.presets button:hover, .presets button.active, .duration-row button:hover, .duration-row button.selected {
  color: var(--text);
  border-color: #566075;
  background: #1a2031;
}

.meter { text-align: center; padding: 36px 24px 24px; overflow: hidden; position: relative; }
.meter::before {
  content: '';
  position: absolute;
  inset: -80% 15% auto;
  height: 220px;
  background: rgba(255, 90, 54, .16);
  filter: blur(55px);
  pointer-events: none;
}
.meter-label { color: var(--muted); font-size: .82rem; margin: 0 0 8px; }
.cost { color: var(--lime); font: 500 clamp(2.7rem, 12vw, 5rem)/1.15 "DM Mono", monospace; letter-spacing: -.06em; }
.timer { color: var(--muted); font: 400 .88rem "DM Mono", monospace; letter-spacing: .1em; margin: 9px 0 26px; }
.rate-row { display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid var(--line); padding: 15px 0; color: var(--muted); font-size: .78rem; }
.rate-row span + span { border-left: 1px solid var(--line); }
.rate-row strong { display: block; color: var(--text); font: 500 .94rem "DM Mono", monospace; margin-top: 4px; }
.controls { display: grid; grid-template-columns: 2fr 1fr; gap: 9px; margin-top: 18px; }
.controls button, .share { border: 0; border-radius: 13px; min-height: 52px; font-weight: 800; cursor: pointer; transition: transform .15s, filter .15s; }
.controls button:active, .share:active { transform: scale(.98); }
.primary { background: var(--hot); }
.primary.running { background: #f3c74c; color: #18130a; }
.secondary { color: var(--muted); background: #202637; }

.quick-calc .duration-row { margin: 0; }
.duration-row button.selected { border-color: var(--lime); color: var(--lime); background: rgba(200, 255, 85, .06); }
.estimate { display: flex; align-items: end; justify-content: space-between; gap: 14px; background: #090d18; margin-top: 14px; padding: 17px; border-radius: 13px; }
.estimate div span { display: block; color: var(--muted); font-size: .75rem; margin-bottom: 5px; }
.estimate strong { font: 500 1.4rem "DM Mono", monospace; color: var(--lime); }
.estimate p { max-width: 210px; text-align: right; color: var(--muted); font-size: .72rem; line-height: 1.5; margin: 0; }

.share { width: 100%; color: #11160a; background: var(--lime); margin-top: 4px; }
.share span { margin-left: 5px; }
.notice { color: var(--lime); min-height: 22px; text-align: center; font-size: .78rem; }
footer { color: #596175; text-align: center; font-size: .7rem; line-height: 1.6; padding: 12px 5px; }

@media (max-width: 520px) {
  .shell { width: min(100% - 24px, 720px); padding-top: 44px; }
  .panel { border-radius: 18px; padding: 18px; }
  .field-grid { grid-template-columns: 1fr; }
  .presets button { flex: none; }
  .meter { padding-top: 30px; }
  .estimate { display: block; }
  .estimate p { text-align: left; max-width: none; margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
