/* =========================================================
   POT MONEY 2026 — PREMIUM GRAND SUMMARY
   PHP 7.4 compatible backend | Responsive layout
   ========================================================= */

:root {
  --ink: #2d241e;
  --muted: #897b6b;
  --line: #e9dfd2;
  --paper: #fffdf9;
  --cream: #f7f3ed;
  --dark: #292019;

  --gold: #b77a39;
  --gold-soft: #f7efe3;
  --gold-line: #e8d6bc;

  --blue: #5275ad;
  --blue-soft: #edf2fa;
  --blue-line: #d8e1f0;

  --green: #5b8061;
  --green-soft: #edf4ee;
  --green-line: #d7e5d8;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.ambient-top {
  width: 560px;
  height: 560px;
  top: -260px;
  right: -170px;
  background: radial-gradient(
    circle,
    rgba(220, 184, 132, 0.2),
    transparent 68%
  );
}
.ambient-bottom {
  width: 460px;
  height: 460px;
  left: -230px;
  bottom: -220px;
  background: radial-gradient(
    circle,
    rgba(165, 122, 74, 0.11),
    transparent 68%
  );
}

.topbar {
  min-height: 82px;
  padding: 0 clamp(22px, 6vw, 92px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255, 253, 249, 0.82);
  border-bottom: 1px solid rgba(115, 87, 58, 0.12);
  backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--dark);
  color: #e7c795;
  font-size: 20px;
}
.brand strong,
.brand small {
  display: block;
}
.brand strong {
  font-size: 13px;
  letter-spacing: 2px;
}
.brand small {
  margin-top: 4px;
  color: #9b8b79;
  font-size: 9px;
  letter-spacing: 1.3px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #628268;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
}
.live-indicator i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6f9b75;
  box-shadow: 0 0 0 4px rgba(111, 155, 117, 0.12);
}
.back-link {
  color: #786753;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}
.back-link:hover {
  color: var(--gold);
}

.page-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.page-intro {
  padding: 62px 0 30px;
}
.eyebrow,
.section-kicker {
  color: #a96f35;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow span {
  width: 23px;
  height: 1px;
  background: #c99a60;
}
.event-overline {
  margin: 24px 0 9px;
  color: #988775;
  font-size: 10px;
  letter-spacing: 2.5px;
}
.page-intro h1 {
  margin: 0;
  font:
    500 clamp(40px, 5vw, 58px)/1.08 "Playfair Display",
    Georgia,
    serif;
  letter-spacing: -1.5px;
}
.page-intro h1 em {
  color: #a66f37;
  font-weight: 500;
}
.intro-copy {
  max-width: 670px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* Grand total panel */
.hero-total {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 35px;
  align-items: center;
  min-height: 245px;
  padding: 36px 42px;
  background: var(--dark);
  color: #fff4e4;
  box-shadow: 0 18px 45px rgba(48, 34, 22, 0.12);
}
.hero-total-content,
.hero-total-side {
  position: relative;
  z-index: 1;
}
.hero-label {
  color: #d9b47f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
}
.hero-star {
  margin-right: 7px;
  font-size: 16px;
}
.grand-total {
  margin-top: 14px;
  color: #edc98f;

  letter-spacing: -1.5px;
}
.hero-total-content p {
  margin: 12px 0 0;
  color: #c6b6a5;
  font-size: 12px;
}
.hero-total-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}
.hero-stat {
  padding-left: 15px;
  border-left: 1px solid rgba(231, 199, 149, 0.28);
}
.hero-stat span {
  display: block;
  color: #bca994;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.1px;
}
.hero-stat strong {
  display: block;
  margin-top: 8px;
  color: #fff3e0;
}
.hero-stat-participants {
  grid-column: 1 / -1;
}
.hero-decoration {
  position: absolute;
  right: -10px;
  bottom: -105px;
  color: rgba(231, 199, 149, 0.045);
  font-size: 310px;
  line-height: 1;
  pointer-events: none;
}

/* Set cards */
.section-block {
  margin-top: 48px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.section-heading h2 {
  margin: 7px 0 0;
  font:
    500 clamp(29px, 3vw, 36px)/1.15 "Playfair Display",
    Georgia,
    serif;
  letter-spacing: -0.7px;
}
.section-heading h2 em {
  color: #a66f37;
  font-weight: 500;
}
.section-note {
  color: #8d7e6d;
  font-size: 11px;
}

.set-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.set-card {
  --accent: var(--gold);
  --accent-soft: var(--gold-soft);
  --accent-line: var(--gold-line);

  position: relative;
  min-width: 0;
  padding: 25px 23px 22px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  box-shadow: 0 10px 28px rgba(66, 48, 29, 0.045);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}
.set-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 17px 34px rgba(66, 48, 29, 0.09);
}
.set-card-one {
  --accent: var(--gold);
  --accent-soft: var(--gold-soft);
  --accent-line: var(--gold-line);
}
.set-card-two {
  --accent: var(--blue);
  --accent-soft: var(--blue-soft);
  --accent-line: var(--blue-line);
}
.set-card-three {
  --accent: var(--green);
  --accent-soft: var(--green-soft);
  --accent-line: var(--green-line);
}

.set-card-top {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 38px;
}
.set-number {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font:
    700 17px "Playfair Display",
    Georgia,
    serif;
}
.set-caption,
.set-subcaption {
  display: block;
}
.set-caption {
  color: #796a59;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.45px;
}
.set-subcaption {
  margin-top: 4px;
  color: var(--accent);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.1px;
}
.set-accent-icon {
  margin-left: auto;
  color: var(--accent);
  font-size: 23px;
  opacity: 0.8;
}
.set-total {
  margin-top: 25px;
  color: var(--accent);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.8px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
/*
 * All three set totals use the same typography.
 * The set identity is communicated through the accent colors,
 * not through different amount sizes.
 */
.set-card .set-total {
  font-size: clamp(42px, 3.7vw, 50px);
  letter-spacing: -1.4px;
}

.set-total-label {
  margin-top: 7px;
  color: #9b8b79;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.35px;
}
.set-divider {
  height: 1px;
  margin: 19px 0 12px;
  background: var(--accent-line);
}
.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 31px;
}
.set-row span {
  color: #877866;
  font-size: 12px;
}
.set-row strong {
  color: #493b2e;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.prize-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 11px 0 4px;
  padding-top: 13px;
  border-top: 1px solid var(--accent-line);
}
.prize-divider span {
  color: var(--accent);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.35px;
}
.prize-row {
  min-height: 30px;
}
.prize-row span {
  font-size: 11px;
}
.prize-row span b {
  margin-left: 3px;
  color: #a09282;
  font-size: 9px;
  font-weight: 600;
}
/*
 * Prize amount hierarchy:
 * 1st prize — strongest emphasis
 * 2nd prize — moderately emphasized
 * 3rd prize — slightly smaller than 2nd
 *
 * Each set keeps its own accent color through --accent.
 */
.set-card > .prize-row:nth-of-type(9) strong {
  color: var(--accent);
  font-size: 16px;
  font-weight: 800;
}

.set-card > .prize-row:nth-of-type(10) strong {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.set-card > .prize-row:nth-of-type(11) strong {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

/* Footer and errors */
.page-footer {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 40px;
  border-top: 1px solid rgba(115, 87, 58, 0.14);
  color: #9a8977;
  font-size: 10px;
}
.page-footer span:first-child {
  color: #977044;
  font-weight: 800;
  letter-spacing: 1.3px;
}
.page-error {
  margin: 0 0 30px;
  padding: 15px 17px;
  border: 1px solid #e8c7c1;
  background: #fff4f1;
  color: #a94e43;
  font-size: 13px;
  line-height: 1.6;
}
[hidden] {
  display: none !important;
}

body:not(.is-loaded) .hero-total,
body:not(.is-loaded) .set-card {
  opacity: 0.72;
}

@media (max-width: 980px) {
  .hero-total {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-total-side {
    max-width: 650px;
  }
  .set-grid {
    grid-template-columns: 1fr 1fr;
  }
  .set-card-three {
    grid-column: 1 / -1;
  }
  .set-card .set-total {
    font-size: clamp(36px, 4vw, 42px);
  }
}
@media (max-width: 650px) {
  .topbar {
    min-height: 70px;
    padding: 0 17px;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
  }
  .brand strong {
    font-size: 11px;
  }
  .brand small {
    font-size: 8px;
    letter-spacing: 0.8px;
  }
  .top-actions {
    gap: 12px;
  }
  .live-indicator {
    font-size: 8px;
    letter-spacing: 0.6px;
  }
  .back-link {
    font-size: 10px;
  }

  .page-shell {
    width: calc(100% - 32px);
  }
  .page-intro {
    padding: 43px 0 25px;
  }
  .page-intro h1 {
    font-size: 42px;
  }
  .intro-copy {
    font-size: 13px;
  }

  .hero-total {
    padding: 27px 23px;
    min-height: auto;
  }
  .grand-total {
    font-size: 44px;
  }
  .hero-total-side {
    grid-template-columns: 1fr 1fr;
    gap: 18px 12px;
  }
  .hero-stat strong {
    font-size: 19px;
  }

  .section-block {
    margin-top: 38px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .section-note {
    font-size: 10px;
  }

  .set-grid {
    grid-template-columns: 1fr;
  }
  .set-card-three {
    grid-column: auto;
  }
  .set-card {
    padding: 23px 21px;
  }
  .set-card .set-total {
    font-size: 42px;
  }

  .set-card > .prize-row:nth-of-type(9) strong {
    font-size: 16px;
  }
  .set-card > .prize-row:nth-of-type(10) strong {
    font-size: 14px;
  }
  .set-card > .prize-row:nth-of-type(11) strong {
    font-size: 13px;
  }

  .page-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 17px 0;
  }
}
@media (max-width: 360px) {
  .live-indicator {
    display: none;
  }
  .hero-total-side {
    grid-template-columns: 1fr;
  }
  .hero-stat-participants {
    grid-column: auto;
  }
  .page-intro h1 {
    font-size: 37px;
  }
  .set-card .set-total {
    font-size: 38px;
  }

  .set-card > .prize-row:nth-of-type(9) strong {
    font-size: 15px;
  }
  .set-card > .prize-row:nth-of-type(10) strong {
    font-size: 13px;
  }
  .set-card > .prize-row:nth-of-type(11) strong {
    font-size: 12px;
  }
}

/* =========================================================
   TYPOGRAPHY ENHANCEMENT — LARGER, CLEARER PRESENTATION
   Version 2.2.0
   ========================================================= */

/* Header and navigation */
.brand strong {
  font-size: 15px;
}

.brand small {
  font-size: 10px;
}

.live-indicator {
  font-size: 11px;
}

.back-link {
  font-size: 13px;
}

/* Intro section */
.eyebrow,
.section-kicker {
  font-size: 12px;
}

.event-overline {
  font-size: 12px;
}

.intro-copy {
  font-size: 16px;
  line-height: 1.75;
}

/* Grand total panel */
.hero-label {
  font-size: 12px;
}

.grand-total {
  font-size: clamp(50px, 6.2vw, 74px);
}

.hero-total-content p {
  font-size: 14px;
  line-height: 1.6;
}

.hero-stat span {
  font-size: 11px;
}

.hero-stat strong {
  font-size: 27px;
}

/* Set section heading */
.section-heading h2 {
  font-size: clamp(32px, 3.2vw, 40px);
}

.section-note {
  font-size: 13px;
}

/* Set cards */
.set-card {
  padding: 27px 25px 25px;
}

.set-number {
  font-size: 19px;
}

.set-caption {
  font-size: 12px;
}

.set-subcaption {
  font-size: 10px;
}

.set-accent-icon {
  font-size: 25px;
}

/* Keep all three set totals equal in size */
.set-card .set-total {
  font-size: clamp(42px, 3.7vw, 50px);
  letter-spacing: -1.4px;
}

.set-total-label {
  font-size: 11px;
}

/* Contribution details */
.set-row {
  min-height: 36px;
}

.set-row span {
  font-size: 14px;
}

.set-row strong {
  font-size: 14px;
}

/* Prize allocation */
.prize-divider {
  margin-top: 13px;
  padding-top: 15px;
}

.prize-divider span {
  font-size: 10px;
}

.prize-row {
  min-height: 36px;
}

.prize-row span {
  font-size: 13px;
}

.prize-row span b {
  font-size: 11px;
}

/* Preserve the requested 1st > 2nd > 3rd hierarchy */
.set-card > .prize-row:nth-of-type(9) strong {
  font-size: 26px;
}

.set-card > .prize-row:nth-of-type(10) strong {
  font-size: 19px;
}

.set-card > .prize-row:nth-of-type(11) strong {
  font-size: 15px;
}

/* Footer */
.page-footer {
  font-size: 12px;
}

.page-footer span:first-child {
  font-size: 12px;
}

/* Tablet */
@media (max-width: 980px) {
  .set-card {
    padding: 25px 23px;
  }

  .set-card .set-total {
    font-size: clamp(39px, 4.4vw, 46px);
  }

  .set-row span,
  .set-row strong {
    font-size: 14px;
  }
}

/* Mobile */
@media (max-width: 650px) {
  .brand strong {
    font-size: 12px;
  }

  .brand small {
    font-size: 9px;
  }

  .live-indicator {
    font-size: 9px;
  }

  .back-link {
    font-size: 11px;
  }

  .eyebrow,
  .section-kicker {
    font-size: 11px;
  }

  .event-overline {
    font-size: 11px;
  }

  .intro-copy {
    font-size: 14px;
  }

  .hero-label {
    font-size: 11px;
  }

  .grand-total {
    font-size: 48px;
  }

  .hero-total-content p {
    font-size: 13px;
  }

  .hero-stat span {
    font-size: 10px;
  }

  .hero-stat strong {
    font-size: 21px;
  }

  .section-heading h2 {
    font-size: 34px;
  }

  .section-note {
    font-size: 12px;
  }

  .set-card {
    padding: 25px 23px;
  }

  .set-number {
    font-size: 19px;
  }

  .set-caption {
    font-size: 12px;
  }

  .set-subcaption {
    font-size: 10px;
  }

  .set-card .set-total {
    font-size: 43px;
  }

  .set-total-label {
    font-size: 11px;
  }

  .set-row {
    min-height: 37px;
  }

  .set-row span,
  .set-row strong {
    font-size: 14px;
  }

  .prize-divider span {
    font-size: 10px;
  }

  .prize-row {
    min-height: 37px;
  }

  .prize-row span {
    font-size: 13px;
  }

  .prize-row span b {
    font-size: 11px;
  }

  .set-card > .prize-row:nth-of-type(9) strong {
    font-size: 18px;
  }

  .set-card > .prize-row:nth-of-type(10) strong {
    font-size: 16px;
  }

  .set-card > .prize-row:nth-of-type(11) strong {
    font-size: 14px;
  }

  .page-footer,
  .page-footer span:first-child {
    font-size: 11px;
  }
}

/* Very small phones */
@media (max-width: 360px) {
  .grand-total {
    font-size: 43px;
  }

  .hero-stat strong {
    font-size: 19px;
  }

  .set-card .set-total {
    font-size: 39px;
  }

  .set-card > .prize-row:nth-of-type(9) strong {
    font-size: 17px;
  }

  .set-card > .prize-row:nth-of-type(10) strong {
    font-size: 15px;
  }

  .set-card > .prize-row:nth-of-type(11) strong {
    font-size: 13px;
  }
}
