:root {
  --header: #17222d;
  --panel: rgba(10, 10, 18, .94);
  --panel-soft: rgba(18, 19, 29, .72);
  --line: rgba(255, 255, 255, .18);
  --text: #fff;
  --muted: rgba(255, 255, 255, .72);
  --accent: #5fd2ff;
  --red: rgba(98, 25, 25, .72);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(180deg, rgba(17, 24, 32, .98) 0 84px, transparent 84px),
    linear-gradient(180deg, rgba(86, 14, 18, .68), rgba(42, 8, 11, .74)),
    url("./background.jpg") center / cover fixed no-repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 84px 0 0;
  background:
    radial-gradient(circle at 14% 90%, rgba(95, 210, 255, .26), transparent 7%),
    linear-gradient(180deg, rgba(83, 15, 16, .55), rgba(9, 12, 18, .66));
  pointer-events: none;
}

button, input {
  font: inherit;
}

.app {
  width: min(480px, 100vw);
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  padding: 0 10px 96px;
}

.app-header {
  height: 84px;
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  background: var(--header);
  margin: 0 -10px;
  padding: 0 10px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.app-header h1 {
  margin: 0;
  font-size: 27px;
  font-weight: 800;
}

.header-btn, .back, .bottom-nav button, .mode-pill button {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.header-btn {
  font-size: 42px;
  line-height: 1;
}

.hero {
  min-height: 225px;
  padding-top: 42px;
}

.mode-pill {
  width: 225px;
  height: 72px;
  margin: 0 auto 44px;
  border-radius: 40px;
  background: rgba(16, 14, 22, .86);
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  align-items: center;
  justify-items: center;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .38);
}

.mode-pill button {
  font-size: 31px;
  font-weight: 800;
}

.avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, #2a3038, #050509);
  color: #5fd2ff;
  font-size: 30px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}

.title-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 2px;
}

.back {
  font-size: 56px;
  line-height: 1;
  font-weight: 900;
}

h2 {
  margin: 0;
  font-size: 41px;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .45);
}

.screen { display: none; }
.screen.active { display: block; }

.toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 12px;
}

.toolbar input, .toolbar button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #fff;
  background: rgba(8, 9, 16, .76);
  padding: 0 13px;
}

.toolbar input::placeholder {
  color: rgba(255, 255, 255, .5);
}

.toolbar button {
  font-weight: 800;
}

.listing-list {
  display: grid;
  gap: 18px;
}

.listing-card {
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 18px;
  background: var(--panel);
  padding: 17px 16px 15px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .38);
  overflow: hidden;
}

.bot-label {
  display: block;
  color: var(--accent);
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 2px;
}

.listing-card h3 {
  margin: 0 0 17px;
  font-size: 29px;
  line-height: 1;
  font-weight: 900;
}

.listing-card p {
  margin: 8px 0;
  font-size: 19px;
  line-height: 1.18;
  font-weight: 800;
}

.listing-card b {
  font-weight: 900;
}

.accent, .listing-card a {
  color: var(--accent);
}

.listing-card a, .listing-card time {
  display: block;
  margin-top: 9px;
  color: var(--accent);
  font-size: 21px;
  font-weight: 900;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.listing-card time {
  color: #fff;
  font-size: 20px;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.actions button {
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 16px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.actions button:first-child {
  grid-column: 1 / -1;
}

.empty-card {
  margin-top: 18px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(350px, calc(100vw - 52px));
  height: 76px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 44px;
  background: rgba(13, 13, 21, .92);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .42);
}

.bottom-nav button {
  height: 100%;
  font-size: 34px;
}
