:root {
  --bg: #000000;
  --card: #7a0019;
  --line: #c94a5f;
  --gold: #f2c317;
  --white: #f1f1f1;
  --text: #f1f1f1;
  --red: #d61515;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  display: flex;
  justify-content: center;
}

.app {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  padding: 18px 14px 18px;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.title::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: url("../icon/icon.png") center/cover no-repeat;
  flex: 0 0 auto;
}

.refresh {
  font-size: 19px;
  line-height: 1;
  color: var(--white);
}

.refresh-link {
  text-decoration: none;
  color: inherit;
  line-height: 1;
}

.result-row {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.meta {
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  white-space: nowrap;
}

.meta .red { color: var(--red); }

.main-value {
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 88px;
  line-height: 0.9;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 1px;
  text-align: center;
  --live-fade-duration: 1.5s;
  animation: live-fade var(--live-fade-duration) ease-in-out infinite;
}

@keyframes live-fade {
  0% { opacity: 1; }
  50% { opacity: 0.35; }
  100% { opacity: 1; }
}

.closed {
  margin: 34px 0 18px;
  text-align: center;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  white-space: nowrap;
}

.grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 14px;
}

.card {
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  min-height: 104px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
  color: var(--white);
  display: grid;
  grid-template-rows: 1fr auto;
  text-align: center;
}

.number {
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  padding-top: 6px;
}

.time {
  border-top: 2px solid var(--line);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 10px 6px 11px;
}

.footer {
  margin-top: auto;
  text-align: center;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 800;
  color: var(--white);
  padding: 46px 0 6px;
}

.brand-gold {
  color: var(--gold);
}

@media (max-width: 390px) {
  .app { padding: 16px 12px; }
  .title { font-size: 19px; }
  .title::before { width: 24px; height: 24px; }
  .refresh { font-size: 17px; }
  .meta { font-size: 13px; }
  .main-value { font-size: 70px; }
  .closed { font-size: 13px; margin-top: 22px; }
  .grid { gap: 12px 10px; }
  .card { min-height: 92px; border-radius: 14px; }
  .number { font-size: 32px; }
  .time { font-size: 10px; padding: 8px 5px 9px; }
  .footer { font-size: 12px; padding-top: 34px; line-height: 1.45; }
}
