:root {
  --bg: #14120e;
  --bg2: #1e1a14;
  --ink: #f4efe4;
  --muted: #b3a794;
  --line: rgba(244, 239, 228, 0.12);
  --amber: #e7a23a;
  --amber-2: #ffd18a;
  --red: #e24b3b;
  --green: #7dba6a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(231, 162, 58, 0.18), transparent 50%),
    radial-gradient(900px 500px at 110% 0%, rgba(226, 75, 59, 0.12), transparent 45%),
    var(--bg);
}

a { color: var(--amber-2); }

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 22px;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}
.mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--amber), #a85a22);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.mark span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1a120c;
  box-shadow: 0 0 0 6px rgba(26, 18, 12, 0.25);
}
h1 {
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-weight: 500;
  font-size: 40px;
  margin: 0;
  letter-spacing: -0.04em;
}
.brand p { margin: 2px 0 0; color: var(--muted); }

.card {
  background: rgba(30, 26, 20, 0.9);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.now {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: center;
}
.dial {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #2a241b 0 46%, transparent 47%),
    conic-gradient(from 20deg, #e7a23a, #7a4a22, #e7a23a);
  display: grid;
  place-items: center;
  position: relative;
}
.bars {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 28px;
}
.bars i {
  display: block;
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--amber-2);
  animation: bar 0.9s ease-in-out infinite;
}
.bars i:nth-child(2) { animation-delay: 0.15s; height: 16px; }
.bars i:nth-child(3) { animation-delay: 0.28s; height: 22px; }
.bars i:nth-child(4) { animation-delay: 0.05s; height: 12px; }
.dial.idle .bars i { animation: none; opacity: 0.35; height: 6px; }
@keyframes bar {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}

.label { color: var(--muted); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.title { font-size: 26px; margin: 6px 0 4px; line-height: 1.2; font-family: Georgia, Palatino, serif; }
.sub { color: var(--muted); min-height: 1.2em; }

.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1; min-width: 180px; }

button, .btn {
  appearance: none;
  border: 0;
  background: var(--amber);
  color: #1b130b;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 15px;
}
button.ghost, .btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
button.danger { background: var(--red); color: white; }
button:disabled { opacity: 0.55; cursor: default; }

input {
  width: 100%;
  background: #100e0b;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
}
input:focus { border-color: rgba(231, 162, 58, 0.7); }

.stack { display: grid; gap: 12px; }
.mt { margin-top: 14px; }
.hint { color: var(--muted); font-size: 13px; line-height: 1.45; }
.error { color: #ffb4ac; min-height: 1.2em; }

.talk {
  width: 100%;
  min-height: 92px;
  border-radius: 22px;
  font-size: 22px;
  letter-spacing: 0.02em;
  background: #2a2118;
  color: var(--ink);
  border: 1px solid var(--line);
}
.talk.live {
  background: var(--red);
  color: white;
  border-color: transparent;
}
.pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 13px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
}
.dot.off { background: #6d675e; }
.dot.talk { background: var(--red); }

.list { display: grid; gap: 8px; margin-top: 8px; }
.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.2);
}
.item b { display: block; font-weight: 650; }
.item span { color: var(--muted); font-size: 13px; }
.item .actions { display: flex; gap: 6px; }
.item button { padding: 8px 10px; font-size: 13px; }

.login {
  width: min(420px, 100%);
  margin: 12vh auto 0;
}

.linkbox { font-variant-numeric: tabular-nums; }

@media (max-width: 800px) {
  .grid, .now { grid-template-columns: 1fr; }
  h1 { font-size: 32px; }
  .dial { display: none; }
}
