* { box-sizing: border-box; }

:root {
  --bg: #08090b;
  --panel: rgba(20, 22, 27, .86);
  --line: rgba(255,255,255,.09);
  --text: #f4f5f7;
  --muted: #90959f;
  --red: #ff1735;
  --red2: #ff4d62;
  --green: #38d996;
}

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

body {
  background:
    radial-gradient(circle at 80% 0%, rgba(255,23,53,.16), transparent 34rem),
    radial-gradient(circle at 0% 60%, rgba(255,255,255,.045), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 48%, rgba(255,255,255,.025) 49%, transparent 50%);
  background-size: 13px 13px;
  opacity: .18;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 28px;
}

.topbar {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -.04em;
  font-size: 20px;
}

.brand-mark {
  width: 13px;
  height: 13px;
  background: var(--red);
  transform: skew(-20deg);
  box-shadow: 7px 0 0 rgba(255,23,53,.3);
}

.muted { color: #60656e; padding: 0 3px; }

.live-pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 8px 11px;
}

.live-pill i {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  margin-right: 5px;
}

.hero { padding: 70px 0 42px; }

.kicker {
  margin: 0 0 13px;
  color: var(--red2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(42px, 7.2vw, 88px);
  line-height: .91;
  letter-spacing: -.07em;
  max-width: 900px;
}

h1 em { color: var(--red); font-style: normal; }

.sub {
  color: var(--muted);
  margin: 19px 0 0;
  font-size: 14px;
}

.dashboard {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 14px;
}

.panel {
  background: linear-gradient(145deg, rgba(28,30,36,.92), rgba(14,16,20,.92));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(0,0,0,.2);
  overflow: hidden;
}

.counter { padding: 24px 26px 25px; }

.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}

.tag, .dot {
  color: var(--red2);
}

.number {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(110px, 17vw, 220px);
  letter-spacing: -.095em;
  line-height: .82;
  margin: 55px 0 10px -9px;
}

.unit {
  color: #d7d9dd;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .17em;
}

.status {
  width: fit-content;
  margin-top: 24px;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(56,217,150,.1);
  color: var(--green);
  border: 1px solid rgba(56,217,150,.22);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.status.danger {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.meter {
  margin-top: 30px;
  height: 4px;
  background: #30333a;
  border-radius: 5px;
  overflow: hidden;
}

.meter div {
  height: 100%;
  width: 60%;
  background: linear-gradient(90deg, var(--red), #ff7a8a);
  transition: width .5s ease;
}

.meter-label {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: #666c76;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
}

.meme {
  padding: 24px;
}

.meme-art {
  position: relative;
  margin-top: 17px;
  overflow: hidden;
  border-radius: 11px;
  background: #111;
  line-height: 0;
}

.meme img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  aspect-ratio: 1.54 / 1;
  object-fit: cover;
  border-radius: 11px;
  background: #111;
}

.meme-days {
  position: absolute;
  left: 14.5%;
  top: 16.5%;
  width: 14%;
  height: 28%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #080b0c;
  background: rgba(231, 245, 241, .98);
  border: 1px solid rgba(135, 171, 166, .35);
  border-radius: 2px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(20px, 3.4vw, 42px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.06em;
  white-space: nowrap;
  transform: rotate(-5deg);
  transform-origin: center;
  pointer-events: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.stat { padding: 18px; min-height: 90px; }

.stat-label, .history-grid span {
  display: block;
  color: #737984;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
}

.stat strong {
  display: block;
  margin-top: 9px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  line-height: 1.25;
}

.history {
  margin-top: 14px;
  padding: 26px;
}

.history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(25px, 4vw, 39px);
  letter-spacing: -.05em;
}

.big-emoji { font-size: 35px; }

.history-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 27px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}

.history-grid > div {
  padding: 18px;
  background: rgba(255,255,255,.025);
}

.history-grid b {
  display: block;
  margin-top: 7px;
  font-size: 16px;
}

footer {
  display: flex;
  justify-content: space-between;
  color: #5f646d;
  font-size: 10px;
  margin-top: 23px;
  padding: 0 3px;
}

@media (max-width: 820px) {
  .dashboard { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .meme-days { font-size: clamp(18px, 6vw, 34px); }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 20px, 1180px); }
  .hero { padding: 52px 0 30px; }
  .sub { line-height: 1.5; }
  .stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .counter, .meme, .history { padding: 18px; }
  .history-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 8px; }
}


.live-pill.live-offline {
  border-color: rgba(255, 49, 74, .28);
  color: #ff7182;
}
.live-pill.live-offline i {
  background: #ff314a;
  box-shadow: 0 0 10px rgba(255, 49, 74, .45);
}


/* Google Analytics consent banner */
.consent-banner[hidden] { display: none !important; }
.consent-banner {
  position: fixed;
  z-index: 1000;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
  padding: 18px 20px;
  color: #eef2f4;
  background: #14181e;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  box-shadow: 0 12px 44px rgba(0,0,0,.42);
}
.consent-copy strong { display: block; font-size: 14px; }
.consent-copy p { margin: 6px 0 0; color: #aeb5bf; font-size: 12px; line-height: 1.5; }
.consent-actions { display: flex; flex-shrink: 0; gap: 8px; }
.consent-actions button {
  padding: 10px 13px;
  color: #08110f;
  background: #b6f36b;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.consent-actions button.secondary {
  color: #eef2f4;
  background: #303640;
}
@media (max-width: 560px) {
  .consent-banner { left: 10px; right: 10px; bottom: 10px; flex-direction: column; align-items: stretch; gap: 12px; padding: 15px; }
  .consent-actions button { flex: 1; }
}
