* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Yrsa", serif;
  line-height: 1.6;
  font-size: 18px;
}

* {
  box-sizing: border-box;
}

:root {
  --good: #50fa7b;
  --warn: #ffb86c;
  --fail: #ff5555;
  --accent: var(--good);
}

body {
  background: #1e1e2e;
  color: #f8f8f2;
  font-family: "Yrsa", serif;
  height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  padding: 1.5rem 2rem;
}
body[data-rating=good] {
  --accent: var(--good);
}
body[data-rating=warn] {
  --accent: var(--warn);
}
body[data-rating=fail] {
  --accent: var(--fail);
}

.score-board {
  text-align: center;
}
.score-board__label {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.5;
}
.score-board__value {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  transition: color 0.4s;
}
.score-board__status {
  font-size: 1.1rem;
  color: var(--accent);
  transition: color 0.4s;
}

.page-mock {
  background: #fff;
  color: #222;
  border-radius: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  min-height: 0;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.page-mock__content {
  padding: 2rem;
}
.page-mock h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.page-mock p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 0.8rem;
}

.cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 1.4rem;
  background: #4885ed;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.95rem;
}
.cta:hover {
  background: #3a72d8;
}

.ad-subtle {
  background: #fffde7;
  border-bottom: 2px solid #f9c84a;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ad-moderate {
  background: linear-gradient(135deg, #ff9f43, #ee5a24);
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}
.ad-moderate span {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ad-severe {
  background: linear-gradient(135deg, #ff6b6b, #feca57);
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
}
.ad-severe span {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ad-extreme {
  background: linear-gradient(135deg, #c0392b, #8e44ad);
  height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}
.ad-extreme span {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.ad-extreme small {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.6rem;
}

.ad-extreme-cta {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
}
.ad-extreme-cta span {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.ad-dumpster {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 3px dashed #e74c3c;
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}
.ad-dumpster span {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ff6b6b;
  text-shadow: 0 0 12px rgba(255, 107, 107, 0.6);
}
.ad-dumpster small {
  font-size: 0.85rem;
  color: #feca57;
  margin-top: 0.75rem;
  line-height: 1.6;
}

.ad-dumpster-mid {
  background: linear-gradient(135deg, #f7971e, #ffd200);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  margin: 0.5rem 0;
  text-align: center;
}
.ad-dumpster-mid span {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e1e2e;
}

.ad-dumpster-cta {
  background: linear-gradient(135deg, #e74c3c, #f39c12);
  border: 2px solid #c0392b;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
}
.ad-dumpster-cta span {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.controls__btn {
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-family: "Yrsa", serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.controls__btn:hover {
  opacity: 0.85;
}
.controls__btn--subtle {
  background: var(--good);
  color: #1e1e2e;
}
.controls__btn--moderate {
  background: var(--warn);
  color: #1e1e2e;
}
.controls__btn--severe {
  background: var(--fail);
  color: #fff;
}
.controls__btn--extreme {
  background: #c0392b;
  color: #fff;
}
.controls__btn--dumpster {
  background: #6c3483;
  color: #fff;
}
.controls__btn--reset {
  background: #6272a4;
  color: #fff;
}
