/*
Theme Name: Class M3 Rewards
Theme URI: https://example.com/class-m3-rewards
Author: Precious Pixels
Author URI: https://preciouspixels.co.uk
Description: A bright, child-friendly points leaderboard and classroom raffle for Class M3.
Version: 2.3.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: team-results-tracker
*/

:root {
  --bg: #090412;
  --bg-2: #150826;
  --panel: rgba(17, 13, 28, 0.88);
  --panel-strong: rgba(24, 18, 39, 0.96);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f7f2ff;
  --muted: #b6a9cf;
  --brand: #ff4b00;
  --brand-2: #ffd400;
  --brand-3: #ff1e1e;
  --glow: 0 0 24px rgba(255, 94, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 90, 0, 0.16), transparent 32%),
    radial-gradient(circle at top right, rgba(255, 212, 0, 0.12), transparent 28%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 60%, #07030f);
  line-height: 1.6;
}

a { color: #ffd77a; text-decoration: none; }
a:hover { text-decoration: none; opacity: 0.95; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(9, 4, 18, 0.82);
  border-bottom: 1px solid rgba(255, 120, 0, 0.28);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.branding {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.site-brand-copy {
  min-width: 0;
}

.u2-microcopy {
  margin: 0;
  font-size: 0.92rem;
  color: #ffd1c0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-logo-wrap {
  position: relative;
  flex: 0 0 auto;
}

.site-logo-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

.site-logo-link::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 224, 130, 0.75) 0%, rgba(255, 107, 0, 0.5) 35%, rgba(255, 45, 0, 0.18) 58%, transparent 72%);
  filter: blur(14px);
  animation: trt-fire-glow 2s ease-in-out infinite alternate;
  pointer-events: none;
}

.site-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(168px, 24vw);
  min-width: 96px;
  height: auto;
  filter: drop-shadow(0 0 16px rgba(255, 80, 0, 0.55));
  animation: trt-logo-float 3s ease-in-out infinite;
}

.site-logo-fallback {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255, 80, 0, 0.55);
}

.hero {
  padding: 56px 0 28px;
}

.hero-card,
.panel {
  background: linear-gradient(180deg, rgba(27, 21, 44, 0.94), rgba(14, 10, 24, 0.94));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35), var(--glow);
}

.hero-card {
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 148, 0, 0.2), transparent 70%);
}

.hero-card h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 90, 0, 0.15);
  border: 1px solid rgba(255, 138, 41, 0.35);
  color: #ffe2c2;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-card p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

main.site-main {
  padding: 0 0 64px;
}

.results-wrap {
  display: grid;
  gap: 26px;
}

.panel {
  padding: 24px;
}

.panel h3,
.panel h4 {
  margin-top: 0;
}

.panel h3 {
  margin-bottom: 16px;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.results-table,
.week-table {
  width: 100%;
  border-collapse: collapse;
}

.results-table th,
.results-table td,
.week-table th,
.week-table td {
  padding: 14px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.results-table th,
.week-table th {
  background: rgba(255, 255, 255, 0.03);
  color: #ffe3c7;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.results-table tbody tr:hover,
.week-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

.rank-badge {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 18px rgba(255, 94, 0, 0.4);
}

.total-points {
  font-weight: 800;
  color: #fff;
}

.score-row {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.score-pulse {
  animation: trt-score-pulse 1.2s ease-out 1;
}

.score-pulse-value {
  display: inline-block;
  animation: trt-score-bump 1s ease-out 1;
}

.week-block + .week-block {
  margin-top: 18px;
}

.week-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.week-label h4 {
  margin: 0;
  font-size: 1rem;
}

.muted {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 44px;
  color: var(--muted);
}

.trt-empty {
  padding: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

@keyframes trt-fire-glow {
  0% {
    transform: scale(0.92);
    opacity: 0.72;
  }
  100% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes trt-logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes trt-score-pulse {
  0% {
    background: rgba(255, 145, 0, 0.08);
    box-shadow: inset 0 0 0 0 rgba(255, 110, 0, 0.7);
    transform: scale(1);
  }
  35% {
    background: rgba(255, 145, 0, 0.22);
    box-shadow: inset 0 0 0 999px rgba(255, 110, 0, 0.08), 0 0 28px rgba(255, 110, 0, 0.25);
    transform: scale(1.01);
  }
  100% {
    background: transparent;
    box-shadow: inset 0 0 0 0 rgba(255, 110, 0, 0);
    transform: scale(1);
  }
}

@keyframes trt-score-bump {
  0% { transform: scale(1); text-shadow: none; }
  40% { transform: scale(1.18); text-shadow: 0 0 14px rgba(255, 213, 79, 0.7); }
  100% { transform: scale(1); text-shadow: none; }
}

@media (max-width: 760px) {
  .top-strip-grid {
    grid-template-columns: 1fr;
  }

  .top-strip-heading {
    align-items: flex-start;
  }

  .branding {
    align-items: flex-start;
    flex-direction: row;
  }

  .site-logo {
    width: min(112px, 28vw);
  }

  .hero-card h2 { font-size: 2.2rem; }

  .results-table,
  .week-table,
  .results-table thead,
  .week-table thead,
  .results-table tbody,
  .week-table tbody,
  .results-table tr,
  .week-table tr,
  .results-table td,
  .week-table td,
  .results-table th,
  .week-table th {
    display: block;
    width: 100%;
  }

  .results-table thead,
  .week-table thead {
    display: none;
  }

  .results-table tr,
  .week-table tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .results-table td,
  .week-table td {
    border: 0;
    padding: 6px 0;
  }
}


/* v1.2.1 header logo fix */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(9, 4, 18, 0.88);
  border-bottom: 1px solid rgba(255, 120, 0, 0.28);
}

.branding.branding--centered {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 0 8px !important;
  text-align: center !important;
}

.site-logo-wrap.site-logo-wrap--centered {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-logo-link.site-logo-link--centered {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: auto !important;
  line-height: 0;
}

.site-logo-link.site-logo-link--centered::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 224, 130, 0.9) 0%, rgba(255, 107, 0, 0.56) 34%, rgba(255, 45, 0, 0.18) 62%, transparent 74%);
  filter: blur(14px);
  animation: trt-fire-glow 1.8s ease-in-out infinite alternate;
  pointer-events: none;
}

.site-logo.site-logo--small {
  position: relative;
  z-index: 1;
  display: block;
  width: 104px !important;
  max-width: 104px !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 auto !important;
  filter: drop-shadow(0 0 16px rgba(255, 80, 0, 0.58));
  animation: trt-logo-float 3s ease-in-out infinite;
}

.site-brand-copy.site-brand-copy--centered {
  min-width: 0;
}

.site-brand-copy--centered .u2-microcopy {
  margin: 0;
  font-size: 0.78rem;
  color: #ffd1c0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

@media (max-width: 760px) {
  .branding.branding--centered {
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .site-logo.site-logo--small {
    width: 84px !important;
    max-width: 84px !important;
  }

  .site-logo-link.site-logo-link--centered::before {
    width: 72px;
    height: 72px;
  }
}


.week-accordion {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.week-accordion + .week-accordion {
  margin-top: 14px;
}

.week-accordion summary {
  list-style: none;
  cursor: pointer;
}

.week-accordion summary::-webkit-details-marker {
  display: none;
}

.week-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
}

.week-label-main {
  min-width: 0;
}

.week-label h4 {
  margin: 0 0 4px;
}

.week-toggle {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-right: 2px solid #ffd77a;
  border-bottom: 2px solid #ffd77a;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-right: 6px;
}

.week-accordion[open] .week-toggle {
  transform: rotate(225deg);
  margin-top: 8px;
}

.week-accordion-body {
  padding: 0 20px 18px;
}

.trt-week-admin-accordion {
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  overflow: hidden;
}

.trt-week-admin-accordion summary {
  cursor: pointer;
  padding: 12px 14px;
}

.trt-week-admin-accordion table {
  margin: 0;
}


.top-strip-shell {
  padding-top: 28px;
  padding-bottom: 10px;
}

.top-strip {
  position: relative;
  overflow: hidden;
}

.top-strip::before {
  content: "";
  position: absolute;
  inset: auto auto -80px -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.22), transparent 72%);
  pointer-events: none;
}

.top-strip-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.top-strip-heading h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.top-strip-kicker {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 90, 0, 0.12);
  border: 1px solid rgba(255, 138, 41, 0.35);
  color: #ffe2c2;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.top-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.top-strip-card {
  position: relative;
  padding: 20px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.top-strip-card h3 {
  margin: 10px 0 6px;
  font-size: 1.2rem;
}

.top-strip-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.08);
}

.top-strip-points {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1;
}

.top-strip-points span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.top-strip-rank-1 {
  border-color: rgba(255, 212, 0, 0.28);
  box-shadow: 0 0 28px rgba(255, 166, 0, 0.15), inset 0 1px 0 rgba(255,255,255,0.06);
}
.top-strip-rank-1 .top-strip-rank {
  background: linear-gradient(135deg, rgba(255,212,0,0.32), rgba(255,102,0,0.24));
}

.top-strip-rank-2 {
  border-color: rgba(255, 108, 45, 0.22);
}
.top-strip-rank-2 .top-strip-rank {
  background: linear-gradient(135deg, rgba(255,110,0,0.22), rgba(255,70,70,0.16));
}

.top-strip-rank-3 {
  border-color: rgba(255, 255, 255, 0.12);
}
.top-strip-rank-3 .top-strip-rank {
  background: rgba(255,255,255,0.1);
}

.top-strip-empty {
  margin-top: 10px;
}


/* v1.2.4 top 3 centering + overtake animation */
.top-strip-heading {
  display: block !important;
  text-align: center !important;
  margin-bottom: 24px;
}

.top-strip-heading h2 {
  width: 100%;
  text-align: center !important;
  margin: 0 auto !important;
  display: block;
  text-shadow: 0 0 16px rgba(255, 98, 0, 0.28);
}

.top-strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  justify-content: center !important;
  gap: 18px;
}

.top-strip-card {
  text-align: center;
  transform-origin: center center;
  will-change: transform;
}

.top-strip-rank,
.top-strip-card h3,
.top-strip-points {
  margin-left: auto;
  margin-right: auto;
}

.top-strip-card.is-overtake,
.score-row.is-overtake {
  z-index: 2;
}

@media (max-width: 760px) {
  .top-strip-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* v1.3.0 live refresh polish */
.top-strip-heading h2 { text-align: center !important; }
.top-strip-grid { justify-content: center !important; }
.top-strip-card, .score-row { transition: transform 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease; }
.week-accordion-body { overflow: hidden; }


/* v1.5.0 podium layout + animated swap polish */
.top-strip {
  padding: 28px 24px 26px;
}

.top-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 280px));
  grid-template-areas: "second first third";
  justify-content: center !important;
  align-items: end;
  gap: 18px;
  max-width: 940px;
  margin: 0 auto;
}

.top-strip-card {
  min-height: 176px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.top-strip-rank-1 {
  grid-area: first;
  transform: translateY(-18px) scale(1.06);
  border-color: rgba(255, 215, 0, 0.42);
  box-shadow: 0 0 32px rgba(255, 186, 0, 0.20), inset 0 1px 0 rgba(255,255,255,0.08);
}
.top-strip-rank-1 .top-strip-rank {
  background: linear-gradient(135deg, rgba(255,215,0,0.42), rgba(255,138,0,0.28));
}

.top-strip-rank-2 {
  grid-area: second;
  border-color: rgba(214, 221, 235, 0.34);
  box-shadow: 0 0 24px rgba(195, 205, 225, 0.12), inset 0 1px 0 rgba(255,255,255,0.05);
}
.top-strip-rank-2 .top-strip-rank {
  background: linear-gradient(135deg, rgba(210,218,232,0.36), rgba(125,140,168,0.26));
}

.top-strip-rank-3 {
  grid-area: third;
  border-color: rgba(205, 127, 50, 0.34);
  box-shadow: 0 0 24px rgba(205, 127, 50, 0.14), inset 0 1px 0 rgba(255,255,255,0.04);
}
.top-strip-rank-3 .top-strip-rank {
  background: linear-gradient(135deg, rgba(205,127,50,0.34), rgba(135,74,29,0.28));
}

.top-strip-card.is-overtake {
  z-index: 3;
}

.top-strip-card[data-rank="1"] {
  animation: trt-podium-leader-glow 1.8s ease-in-out infinite alternate;
}

@keyframes trt-podium-leader-glow {
  0% {
    box-shadow: 0 0 24px rgba(255, 186, 0, 0.14), inset 0 1px 0 rgba(255,255,255,0.06);
  }
  100% {
    box-shadow: 0 0 36px rgba(255, 186, 0, 0.24), inset 0 1px 0 rgba(255,255,255,0.10);
  }
}

@media (max-width: 760px) {
  .top-strip {
    padding: 22px 18px 20px;
  }

  .top-strip-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "first"
      "second"
      "third";
    max-width: 480px;
  }

  .top-strip-rank-1 {
    transform: none;
  }
}


/* v1.6.0 actual podium blocks + lead take animation */
.top-strip-grid.top-strip-grid--podium {
  grid-template-columns: repeat(3, minmax(180px, 260px));
  grid-template-areas: "second first third";
  align-items: end;
  gap: 22px;
}

.top-strip-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  min-height: 0;
  justify-content: flex-end;
}

.top-strip-card-inner {
  width: 100%;
  position: relative;
  z-index: 2;
  padding: 20px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  text-align: center;
  backdrop-filter: blur(6px);
}

.top-strip-pedestal {
  width: calc(100% - 24px);
  margin: -2px auto 0;
  border-radius: 18px 18px 12px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 0;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 12px 24px rgba(0,0,0,0.28);
}

.top-strip-pedestal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03) 26%, rgba(8,6,16,0.55) 100%);
}

.top-strip-pedestal::after {
  content: "";
  position: absolute;
  inset: auto 16px 10px 16px;
  height: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.18);
  filter: blur(6px);
}

.top-strip-pedestal-rank {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.82);
  text-shadow: 0 0 18px rgba(255,255,255,0.12);
}

.top-strip-rank-1 .top-strip-card-inner {
  border-color: rgba(255, 215, 0, 0.42);
  box-shadow: 0 0 32px rgba(255, 186, 0, 0.20), inset 0 1px 0 rgba(255,255,255,0.08);
}
.top-strip-rank-1 .top-strip-rank {
  background: linear-gradient(135deg, rgba(255,215,0,0.42), rgba(255,138,0,0.28));
}
.top-strip-rank-1 .top-strip-pedestal {
  height: 134px;
  background: linear-gradient(180deg, rgba(255,224,130,0.45), rgba(255,168,0,0.28) 26%, rgba(82,44,0,0.65) 100%);
  border-color: rgba(255, 215, 0, 0.36);
  box-shadow: 0 0 28px rgba(255, 186, 0, 0.22), inset 0 1px 0 rgba(255,255,255,0.08), 0 12px 24px rgba(0,0,0,0.28);
}
.top-strip-rank-1 .top-strip-pedestal-rank {
  color: rgba(64, 34, 0, 0.42);
}

.top-strip-rank-2 .top-strip-card-inner {
  border-color: rgba(214, 221, 235, 0.34);
  box-shadow: 0 0 24px rgba(195, 205, 225, 0.12), inset 0 1px 0 rgba(255,255,255,0.05);
}
.top-strip-rank-2 .top-strip-rank {
  background: linear-gradient(135deg, rgba(210,218,232,0.36), rgba(125,140,168,0.26));
}
.top-strip-rank-2 .top-strip-pedestal {
  height: 104px;
  background: linear-gradient(180deg, rgba(226,233,243,0.34), rgba(173,184,202,0.22) 24%, rgba(58,68,84,0.68) 100%);
  border-color: rgba(214, 221, 235, 0.30);
}
.top-strip-rank-2 .top-strip-pedestal-rank {
  color: rgba(32, 38, 48, 0.4);
}

.top-strip-rank-3 .top-strip-card-inner {
  border-color: rgba(205, 127, 50, 0.34);
  box-shadow: 0 0 24px rgba(205, 127, 50, 0.14), inset 0 1px 0 rgba(255,255,255,0.04);
}
.top-strip-rank-3 .top-strip-rank {
  background: linear-gradient(135deg, rgba(205,127,50,0.34), rgba(135,74,29,0.28));
}
.top-strip-rank-3 .top-strip-pedestal {
  height: 86px;
  background: linear-gradient(180deg, rgba(205,127,50,0.34), rgba(128,75,34,0.24) 24%, rgba(58,30,14,0.72) 100%);
  border-color: rgba(205, 127, 50, 0.32);
}
.top-strip-rank-3 .top-strip-pedestal-rank {
  color: rgba(46, 24, 10, 0.42);
}

.top-strip-rank-1 { grid-area: first; }
.top-strip-rank-2 { grid-area: second; }
.top-strip-rank-3 { grid-area: third; }

.top-strip-card[data-rank="1"] .top-strip-card-inner {
  animation: trt-podium-leader-glow 1.8s ease-in-out infinite alternate;
}

.top-strip-card.lead-take .top-strip-card-inner {
  animation: trt-lead-take-bounce 1s cubic-bezier(.2,.9,.2,1), trt-lead-take-glow 1.6s ease-in-out 1;
}

.top-strip-card.lead-take .top-strip-pedestal {
  animation: trt-lead-pedestal-flare 1.4s ease-out 1;
}

@keyframes trt-lead-take-bounce {
  0% { transform: translateY(0) scale(1); }
  28% { transform: translateY(-18px) scale(1.06); }
  52% { transform: translateY(4px) scale(0.99); }
  72% { transform: translateY(-6px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes trt-lead-take-glow {
  0% { box-shadow: 0 0 32px rgba(255, 186, 0, 0.20), inset 0 1px 0 rgba(255,255,255,0.08); }
  45% { box-shadow: 0 0 56px rgba(255, 214, 51, 0.5), 0 0 90px rgba(255, 119, 0, 0.22), inset 0 1px 0 rgba(255,255,255,0.14); }
  100% { box-shadow: 0 0 32px rgba(255, 186, 0, 0.20), inset 0 1px 0 rgba(255,255,255,0.08); }
}

@keyframes trt-lead-pedestal-flare {
  0% { filter: brightness(1); }
  35% { filter: brightness(1.2); }
  100% { filter: brightness(1); }
}

@media (max-width: 760px) {
  .top-strip-grid.top-strip-grid--podium {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "first"
      "second"
      "third";
    max-width: 420px;
  }

  .top-strip-pedestal {
    width: calc(100% - 18px);
  }
}


/* v1.7.0 podium polish */
.top-strip-rank-1 .top-strip-card-inner,
.top-strip-rank-1 .top-strip-pedestal {
  position: relative;
  overflow: hidden;
}

.top-strip-rank-1 .top-strip-card-inner::after,
.top-strip-rank-1 .top-strip-pedestal::before {
  background-size: 220% 100%;
}

.top-strip-rank-1 .top-strip-card-inner::after {
  content: "";
  position: absolute;
  inset: -10% -40%;
  background: linear-gradient(110deg, rgba(255,255,255,0) 24%, rgba(255,244,190,0.04) 36%, rgba(255,255,255,0.32) 48%, rgba(255,205,88,0.12) 58%, rgba(255,255,255,0) 70%);
  transform: translateX(-65%) skewX(-18deg);
  animation: trt-shimmer-sweep 3.6s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}

.top-strip-card[data-rank="1"] .top-strip-card-inner {
  animation: trt-podium-leader-glow 1.5s ease-in-out infinite alternate;
}

.top-strip-card.lead-take .top-strip-card-inner {
  animation: trt-lead-take-bounce 1.1s cubic-bezier(.2,.9,.2,1), trt-lead-take-glow 1.8s ease-in-out 1;
}

.top-strip-card.lead-take .top-strip-pedestal {
  animation: trt-lead-pedestal-flare 1.6s ease-out 1;
}

.top-strip-card.lead-take .top-strip-card-inner::after {
  animation-duration: 1.1s;
}

@keyframes trt-shimmer-sweep {
  0% { transform: translateX(-78%) skewX(-18deg); opacity: 0; }
  14% { opacity: 0.22; }
  42% { opacity: 0.62; }
  60% { opacity: 0.18; }
  100% { transform: translateX(82%) skewX(-18deg); opacity: 0; }
}

@keyframes trt-lead-take-bounce {
  0% { transform: translateY(0) scale(1); }
  22% { transform: translateY(-24px) scale(1.1); }
  42% { transform: translateY(6px) scale(0.98); }
  60% { transform: translateY(-12px) scale(1.05); }
  78% { transform: translateY(2px) scale(1); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes trt-lead-take-glow {
  0% { box-shadow: 0 0 32px rgba(255, 186, 0, 0.20), inset 0 1px 0 rgba(255,255,255,0.08); }
  30% { box-shadow: 0 0 72px rgba(255, 214, 51, 0.62), 0 0 120px rgba(255, 119, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.18); }
  100% { box-shadow: 0 0 32px rgba(255, 186, 0, 0.20), inset 0 1px 0 rgba(255,255,255,0.08); }
}

@keyframes trt-lead-pedestal-flare {
  0% { filter: brightness(1); }
  30% { filter: brightness(1.28); }
  62% { filter: brightness(1.08); }
  100% { filter: brightness(1); }
}


.branding--centered {
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.site-logo--small {
  width: min(110px, 18vw);
  min-width: 72px;
}

.site-brand-copy--centered {
  text-align: center;
}

.trt-gate-body {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 100, 0, 0.22), transparent 30%),
    radial-gradient(circle at 80% 15%, rgba(255, 210, 0, 0.18), transparent 25%),
    radial-gradient(circle at 50% 100%, rgba(255, 50, 0, 0.16), transparent 35%),
    linear-gradient(180deg, #07020d, #140622 55%, #090311);
}

.trt-gate-bg {
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(120deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 18px),
    radial-gradient(circle at center, rgba(255, 135, 20, 0.14), transparent 35%);
  filter: blur(0.5px);
  animation: trt-gate-drift 18s linear infinite;
}

.trt-gate-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.trt-gate-card {
  width: min(560px, 100%);
  padding: 36px;
  text-align: center;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(18, 11, 31, 0.92), rgba(12, 7, 20, 0.96));
  border: 1px solid rgba(255, 164, 95, 0.22);
  box-shadow: 0 22px 80px rgba(0,0,0,0.48), 0 0 40px rgba(255, 112, 20, 0.18);
}

.trt-gate-logo {
  width: 116px;
  height: auto;
  display: block;
  margin: 0 auto 16px;
  filter: drop-shadow(0 0 22px rgba(255, 98, 0, 0.65));
  animation: trt-logo-float 3s ease-in-out infinite;
}

.trt-gate-kicker {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  color: #ffd6a8;
}

.trt-gate-card h1 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.trt-gate-copy {
  margin: 0 0 20px;
  color: var(--muted);
}

.trt-gate-error {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 60, 60, 0.12);
  border: 1px solid rgba(255, 90, 90, 0.2);
  color: #ffd4d4;
}

.trt-gate-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.trt-gate-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-size: 1rem;
}

.trt-gate-form input:focus {
  outline: none;
  border-color: rgba(255, 170, 82, 0.7);
  box-shadow: 0 0 0 4px rgba(255, 136, 34, 0.12);
}

.trt-gate-form button {
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #130811;
  cursor: pointer;
  background: linear-gradient(135deg, #ffd86e, #ff7a00);
  box-shadow: 0 10px 30px rgba(255, 112, 20, 0.32);
}

@keyframes trt-gate-drift {
  from { transform: translate3d(0,0,0); }
  50% { transform: translate3d(0,-10px,0); }
  to { transform: translate3d(0,0,0); }
}
.u2-awards {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 30px auto;
    max-width: 900px;
}

/* Frontend leaderboard editor */
.trt-editor-body{margin:0;min-height:100vh;background:radial-gradient(circle at 20% 0,rgba(140,61,255,.22),transparent 36%),#08040f;color:#f8f5ff;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.trt-editor-body *{box-sizing:border-box}.trt-editor-shell{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:52px 0 80px}.trt-editor-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:18px;padding:12px max(20px,calc((100% - 1180px)/2));background:rgba(8,4,15,.92);border-bottom:1px solid rgba(255,255,255,.1);backdrop-filter:blur(18px)}.trt-editor-header img{width:58px;height:58px;object-fit:contain}.trt-editor-header>div{display:flex;flex-direction:column}.trt-editor-header span,.trt-editor-kicker{color:#c494ff;font-size:.73rem;font-weight:900;letter-spacing:.16em;text-transform:uppercase}.trt-editor-header nav{margin-left:auto;display:flex;gap:8px}.trt-editor-header nav a,.trt-back-link{color:#fff;text-decoration:none;border:1px solid rgba(255,255,255,.14);border-radius:999px;padding:10px 15px;font-weight:800}.trt-editor-title{margin-bottom:26px}.trt-editor-title h1,.trt-login-card h1{margin:5px 0 7px;font-size:clamp(2rem,5vw,4rem);line-height:1}.trt-editor-title p{margin:0;color:#bdb4ca}.trt-editor-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.trt-editor-card{padding:22px;border:1px solid rgba(255,255,255,.1);border-radius:20px;background:linear-gradient(145deg,rgba(32,22,48,.96),rgba(15,10,24,.96));box-shadow:0 18px 45px rgba(0,0,0,.26)}.trt-editor-card--wide{margin-top:16px}.trt-editor-card h2{margin:0 0 16px;font-size:1.25rem}.trt-editor-card form{display:flex;flex-direction:column;gap:9px}.trt-editor-card label{color:#d9d1e3;font-size:.85rem;font-weight:800}.trt-editor-card input[type=text],.trt-editor-card input[type=password],.trt-login-card input[type=text],.trt-login-card input[type=password]{width:100%;min-height:46px;padding:0 13px;color:#fff;background:#0c0713;border:1px solid rgba(255,255,255,.13);border-radius:11px;outline:none}.trt-editor-card input:focus,.trt-login-card input:focus{border-color:#b56cff;box-shadow:0 0 0 3px rgba(181,108,255,.14)}.trt-editor-card button,.trt-login-card input[type=submit]{min-height:43px;padding:0 15px;color:#12071f;background:linear-gradient(135deg,#d5a5ff,#9a50ed);border:0;border-radius:11px;font-weight:950;cursor:pointer}.trt-check{display:flex;align-items:center;gap:8px;min-height:35px}.trt-editor-notice{margin:0 0 16px;padding:13px 16px;color:#baffd6;background:rgba(36,204,108,.12);border:1px solid rgba(36,204,108,.28);border-radius:13px;font-weight:800}.trt-editor-section-head{display:flex;justify-content:space-between;align-items:end}.trt-editor-section-head h2{margin-top:4px}.trt-member-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.trt-member-card{padding:17px;border:1px solid rgba(255,255,255,.09);border-radius:15px;background:rgba(5,2,9,.35)}.trt-member-summary{display:flex;align-items:center;gap:12px}.trt-member-summary h3{margin:0 0 2px}.trt-member-summary strong{color:#c99aff}.trt-member-rank{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:rgba(181,108,255,.15);color:#d3a8ff;font-weight:950}.trt-point-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:14px}.trt-point-actions button{width:100%}.trt-point-actions button.is-negative{color:#ffd5dc;background:rgba(244,73,100,.16);border:1px solid rgba(244,73,100,.28)}.trt-member-edit{display:flex;gap:7px;margin-top:8px}.trt-member-edit form:first-child{display:grid;grid-template-columns:1fr auto;flex:1}.trt-member-edit form:last-child{justify-content:end}.trt-member-edit .is-delete{color:#ffb7c2;background:transparent;border:1px solid rgba(244,73,100,.3)}.trt-award-editor-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:12px}.trt-award-editor-grid fieldset{display:grid;gap:9px;margin:0;padding:15px;border:1px solid rgba(255,255,255,.1);border-radius:14px}.trt-award-editor-grid legend{padding:0 6px;color:#c494ff;font-weight:900}.trt-award-editor-grid label{display:grid;gap:5px}.trt-editor-week{margin-top:8px;border:1px solid rgba(255,255,255,.09);border-radius:12px;overflow:hidden}.trt-editor-week summary{padding:14px 16px;cursor:pointer;font-weight:900;background:rgba(255,255,255,.035)}.trt-editor-week div{padding:5px 16px}.trt-editor-week p{display:flex;justify-content:space-between;padding:8px 0;margin:0;border-bottom:1px solid rgba(255,255,255,.06)}.trt-editor-empty{color:#aaa0b8}.trt-login-shell{min-height:100vh;display:grid;place-items:center;padding-block:30px}.trt-login-card{width:min(440px,100%);text-align:center;padding:34px}.trt-editor-logo{width:130px;height:130px;object-fit:contain}.trt-login-card form{text-align:left;margin-top:22px}.trt-login-card form p{margin:0 0 13px}.trt-login-card label{display:block;margin-bottom:5px;font-weight:800}.trt-login-card .login-remember label{display:flex;gap:7px}.trt-login-card input[type=submit]{width:100%}.trt-back-link{display:inline-block;margin-top:15px}
.trt-login-error{margin:14px 0 0;padding:12px;color:#ffd3da;background:rgba(244,73,100,.13);border:1px solid rgba(244,73,100,.3);border-radius:11px;font-weight:800}
@media(max-width:800px){.trt-editor-grid,.trt-award-editor-grid,.trt-member-grid{grid-template-columns:1fr}.trt-editor-header>div{display:none}.trt-editor-header nav a:first-child{display:none}.trt-editor-shell{width:min(100% - 20px,1180px);padding-top:30px}.trt-member-edit{flex-direction:column}.trt-editor-card{padding:16px}}
@media(max-width:440px){.trt-point-actions{grid-template-columns:repeat(2,1fr)}.trt-editor-header{padding-inline:12px}.trt-editor-header img{width:48px;height:48px}}

.u2-award {
    flex: 1;
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 20px;
    text-align: center;
    border-radius: 10px;

    /* subtle glow */
    box-shadow: 0 0 10px rgba(255,50,50,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.u2-award:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255,50,50,0.4);
}

.u2-award h3 {
    font-size: 16px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.u2-award-name {
    font-size: 18px;
    font-weight: bold;
    color: #ff3c3c;
}

/* Class M3 2.2.0 — bright classroom rebrand */
:root {
  --bg: #edfaff;
  --bg-2: #fff4fc;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --line: rgba(72, 78, 158, 0.14);
  --text: #22295b;
  --muted: #68709b;
  --brand: #7548e8;
  --brand-2: #ffcc3c;
  --brand-3: #f34fa5;
  --glow: 0 18px 45px rgba(80, 111, 210, 0.14);
}

body {
  color: var(--text);
  font-family: "Arial Rounded MT Bold", "Nunito", Arial, sans-serif;
  background-color: #eefaff;
  background-image:
    radial-gradient(circle at 10% 12%, rgba(255, 202, 54, .36) 0 7px, transparent 8px),
    radial-gradient(circle at 88% 18%, rgba(244, 75, 167, .20) 0 10px, transparent 11px),
    radial-gradient(circle at 20% 72%, rgba(42, 202, 224, .22) 0 8px, transparent 9px),
    linear-gradient(145deg, #e9fbff 0%, #f6f1ff 52%, #fff3fa 100%);
  background-size: 190px 190px, 240px 240px, 215px 215px, auto;
}

.site-header {
  position: relative;
  background: rgba(255,255,255,.90);
  border-bottom: 4px solid transparent;
  border-image: linear-gradient(90deg,#26c9e3,#7651ec,#f34fa5,#ffd23f) 1;
  box-shadow: 0 8px 30px rgba(66, 84, 164, .10);
}

.branding { flex-direction: column; gap: 4px; padding: 14px 0 12px; }
.site-logo-link { min-height: 104px; }
.site-logo-link::before {
  inset: 8px 18px;
  background: radial-gradient(circle, rgba(255,255,255,.9), rgba(111,223,248,.28) 48%, transparent 72%);
  animation: none;
}
.site-logo {
  width: min(210px, 48vw);
  max-height: 128px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(75, 52, 170, .18));
  animation: trt-logo-float 3.5s ease-in-out infinite;
}
.u2-microcopy {
  color: #6544c9;
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: .12em;
}

main.site-main { padding-top: 12px; }
.panel, .hero-card {
  color: var(--text);
  background: rgba(255,255,255,.94);
  border: 2px solid rgba(113, 81, 231, .12);
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(63, 82, 156, .13);
}
.panel h3, .panel h4, .top-strip-heading h2 { color: #5540bc; }
.top-strip-heading h2::before { content: "⭐ "; }
.top-strip-heading h2::after { content: " ⭐"; }
.results-table th, .week-table th { color: #7043cf; background: #f5f0ff; }
.results-table td, .week-table td { color: #2e3568; }
.results-table tbody tr:nth-child(even), .week-table tbody tr:nth-child(even) { background: #f7fcff; }
.rank-badge {
  color: #fff;
  background: linear-gradient(135deg,#28cae2,#7651e9);
  box-shadow: 0 5px 12px rgba(87, 83, 212, .22);
}
.total-points { color: #e83f9a !important; font-weight: 950; }
.week-block { background: #fff; border-color: rgba(93,83,188,.14); }
.week-label { color: #5241b5; background: #f9f6ff; }

.u2-awards { width: min(900px,calc(100% - 32px)); }
.u2-award {
  color: #28305f;
  background: #fff;
  border: 2px solid rgba(112,81,229,.12);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(64,80,151,.12);
}
.u2-award:nth-child(1) { border-top: 7px solid #ffd03d; }
.u2-award:nth-child(2) { border-top: 7px solid #2bcce0; }
.u2-award:nth-child(3) { border-top: 7px solid #f451a8; }
.u2-award:hover { box-shadow: 0 16px 34px rgba(74,89,166,.18); }
.u2-award h3 { color: #6546c8; }
.u2-award-name { color: #e83f9a; }
.site-footer { color: #fff; background: linear-gradient(90deg,#5738b8,#7a4be1); }

.top-strip-card-inner { background: #fff !important; color: #28305f !important; border-color: rgba(103,77,203,.14) !important; }
.top-strip-card h3 { color: #41379a !important; }
.top-strip-points { color: #e33d96 !important; }
.top-strip-rank { color: #fff !important; background: linear-gradient(135deg,#27c9e1,#7650e8) !important; }
.top-strip-rank-1 .top-strip-card-inner { background: linear-gradient(180deg,#fffce9,#fff) !important; border-color: #ffd449 !important; }
.top-strip-rank-2 .top-strip-card-inner { background: linear-gradient(180deg,#eefcff,#fff) !important; border-color: #5ed9e8 !important; }
.top-strip-rank-3 .top-strip-card-inner { background: linear-gradient(180deg,#fff0fa,#fff) !important; border-color: #f27abb !important; }

/* Login and frontend editor */
.trt-editor-body, .trt-gate-body {
  color: #252c5f;
  font-family: "Arial Rounded MT Bold", "Nunito", Arial, sans-serif;
  background: linear-gradient(145deg,#e6fbff,#f5efff 52%,#fff0f8);
}
.trt-editor-header {
  background: rgba(255,255,255,.94);
  border-bottom: 3px solid #7a55e5;
  box-shadow: 0 8px 25px rgba(72,82,151,.10);
}
.trt-editor-header span, .trt-editor-kicker { color: #6b48cf; }
.trt-editor-header strong { color: #293062; }
.trt-editor-header nav a, .trt-back-link { color: #6041be; border-color: rgba(96,65,190,.20); background: #f7f2ff; }
.trt-editor-title h1, .trt-login-card h1 { color: #44349e; }
.trt-editor-title p { color: #6e759d; }
.trt-editor-card {
  color: #293062;
  background: rgba(255,255,255,.96);
  border: 2px solid rgba(108,76,210,.11);
  box-shadow: 0 16px 38px rgba(68,83,153,.12);
}
.trt-editor-card h2, .trt-editor-card h3 { color: #5140b0; }
.trt-editor-card label { color: #515982; }
.trt-editor-card input[type=text], .trt-editor-card input[type=password], .trt-login-card input[type=text], .trt-login-card input[type=password] {
  color: #252c5f;
  background: #f8fbff;
  border-color: rgba(84,73,170,.20);
}
.trt-editor-card input:focus, .trt-login-card input:focus { border-color: #7651e8; box-shadow: 0 0 0 4px rgba(118,81,232,.12); }
.trt-editor-card button, .trt-login-card input[type=submit] { color: #fff; background: linear-gradient(135deg,#7551e8,#ef4fa5); box-shadow: 0 7px 15px rgba(111,68,206,.18); }
.trt-member-card { background: #f8fbff; border-color: rgba(89,83,170,.13); }
.trt-member-summary h3 { color: #343b75; }
.trt-member-summary strong { color: #e03d96; }
.trt-member-rank { color: #fff; background: linear-gradient(135deg,#2bcbe1,#7551e8); }
.trt-editor-empty { color: #747ba1; }
.trt-award-editor-grid fieldset, .trt-editor-week { border-color: rgba(90,78,177,.14); }
.trt-award-editor-grid legend { color: #6b48cf; }
.trt-editor-week summary { color: #4f40a9; background: #f7f3ff; }
.trt-editor-week p { border-color: rgba(80,75,158,.10); }
.trt-login-card { border-top: 8px solid #2bcbe1; }
.trt-editor-logo { width: 190px; height: 145px; }

.trt-gate-bg {
  background-image: radial-gradient(circle at 20% 20%,rgba(43,203,225,.24),transparent 24%),radial-gradient(circle at 80% 70%,rgba(242,76,166,.20),transparent 25%);
}
.trt-gate-card { color: #293062; background: rgba(255,255,255,.96); border: 2px solid rgba(111,82,215,.14); box-shadow: 0 20px 55px rgba(75,88,158,.16); }
.trt-gate-kicker { color: #6c49d0; }
.trt-gate-copy { color: #72799e; }
.trt-gate-form input { color: #293062; background: #f7fbff; border-color: rgba(86,76,176,.20); }
.trt-gate-form button { color: #fff; background: linear-gradient(135deg,#27c9e1,#7651e8,#f04fa6); }

/* Raffle selector */
.trt-raffle-card { position: relative; overflow: hidden; border-top: 8px solid #ffd13f; }
.trt-raffle-card::after { content: ""; position: absolute; right: -55px; top: -55px; width: 155px; height: 155px; border-radius: 50%; background: rgba(43,203,225,.10); pointer-events: none; }
.trt-raffle-icon { position: relative; z-index: 1; font-size: 2.4rem; transform: rotate(8deg); }
.trt-raffle-help { max-width: 760px; color: #697199; }
.trt-raffle-winner { display:flex; flex-direction:column; align-items:center; gap:4px; margin:18px 0; padding:22px; text-align:center; background:linear-gradient(135deg,#fff7cf,#ffe9f6); border:2px dashed #f0a52f; border-radius:20px; }
.trt-raffle-winner span { color:#8b5e14; font-size:.75rem; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.trt-raffle-winner strong { color:#653bc3; font-size:clamp(1.5rem,4vw,2.4rem); animation:trt-winner-pop .7s ease both; }
.trt-raffle-winner small { color:#777da1; }
.trt-raffle-layout { display:grid; grid-template-columns:minmax(0,1fr) 260px; gap:22px; align-items:start; }
.trt-raffle-tickets { padding:18px; background:#f7fbff; border:1px solid rgba(82,76,166,.13); border-radius:16px; }
.trt-ticket-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.trt-ticket-list div { display:flex; justify-content:space-between; gap:12px; padding:10px 12px; color:#343b73; background:#fff; border-radius:10px; box-shadow:0 4px 12px rgba(61,79,147,.07); }
.trt-ticket-list strong { color:#e13f98; }
.trt-raffle-actions { display:grid; gap:10px; }
.trt-raffle-actions form { margin:0; }
.trt-raffle-actions button { width:100%; min-height:52px; }
.trt-raffle-actions .trt-draw-button { background:linear-gradient(135deg,#ffb82e,#f24da5); }
.trt-raffle-actions .trt-reset-button { color:#655d86; background:#f1edf8; box-shadow:none; border:1px solid rgba(91,76,160,.16); }
.trt-raffle-actions button:disabled { opacity:.46; cursor:not-allowed; box-shadow:none; }
.trt-raffle-history { margin-top:18px; border-top:1px solid rgba(82,76,166,.12); }
.trt-raffle-history summary { padding:14px 0 8px; color:#5c45bd; cursor:pointer; font-weight:900; }
.trt-raffle-history p { display:flex; justify-content:space-between; gap:15px; margin:0; padding:8px 0; border-bottom:1px solid rgba(82,76,166,.08); }
.trt-raffle-history small { color:#7b82a5; }
@keyframes trt-winner-pop { 0% { opacity:0; transform:scale(.65) rotate(-4deg); } 70% { transform:scale(1.08) rotate(2deg); } 100% { opacity:1; transform:scale(1); } }

@media (max-width: 800px) {
  .u2-awards { flex-direction: column; gap: 12px; }
  .trt-raffle-layout { grid-template-columns: 1fr; }
  .trt-ticket-list { grid-template-columns: 1fr; }
}

/* Class M3 2.3.0 — softer colourful classroom palette */
:root {
  --bg: #d8eaf2;
  --bg-2: #e2daf0;
  --panel: #e2edf3;
  --panel-strong: #e6def1;
  --line: rgba(56, 61, 124, .16);
  --text: #252b59;
  --muted: #626987;
}

body {
  background-color: #dbeaf1;
  background-image:
    radial-gradient(circle at 12% 10%, rgba(255,203,71,.34) 0 9px, transparent 10px),
    radial-gradient(circle at 88% 15%, rgba(219,77,157,.18) 0 12px, transparent 13px),
    radial-gradient(circle at 20% 74%, rgba(36,169,190,.19) 0 10px, transparent 11px),
    linear-gradient(145deg,#cfe8ee 0%,#e1d7ef 52%,#f0d5e4 100%);
}

.site-header {
  background: linear-gradient(110deg,rgba(205,233,239,.96),rgba(224,211,241,.96),rgba(239,207,226,.96));
}

.panel, .hero-card {
  background: linear-gradient(145deg,rgba(218,237,242,.97),rgba(229,218,241,.97));
  border-color: rgba(76,62,157,.16);
  box-shadow: 0 17px 40px rgba(52,59,115,.16);
}
.results-table th, .week-table th { background:#d9d2ee; }
.results-table tbody tr:nth-child(even), .week-table tbody tr:nth-child(even) { background:rgba(197,228,235,.55); }
.week-block { background:#dceaf0; }
.week-label { background:#d9d2ec; }

.u2-award { box-shadow:0 12px 28px rgba(53,60,116,.14); }
.u2-award:nth-child(1) { background:linear-gradient(145deg,#f3e3a9,#ead8bc); }
.u2-award:nth-child(2) { background:linear-gradient(145deg,#c8e9eb,#d6dff1); }
.u2-award:nth-child(3) { background:linear-gradient(145deg,#edd2e4,#dfd5ef); }
.top-strip-card-inner { background:#dce9f0 !important; }
.top-strip-rank-1 .top-strip-card-inner { background:linear-gradient(180deg,#f2e4b5,#e6dcbf) !important; }
.top-strip-rank-2 .top-strip-card-inner { background:linear-gradient(180deg,#c9e8ec,#d7e2ef) !important; }
.top-strip-rank-3 .top-strip-card-inner { background:linear-gradient(180deg,#efd3e4,#ded5ee) !important; }

.trt-editor-body, .trt-gate-body {
  background:linear-gradient(145deg,#cce6ed,#dfd4ee 54%,#efd1e1);
}
.trt-editor-header { background:linear-gradient(100deg,rgba(207,232,238,.97),rgba(224,213,240,.97)); }
.trt-editor-card {
  background:linear-gradient(145deg,rgba(222,235,241,.98),rgba(229,218,240,.98));
  border-color:rgba(73,62,145,.16);
  box-shadow:0 16px 38px rgba(53,59,113,.16);
}
.trt-editor-card input[type=text], .trt-editor-card input[type=password], .trt-login-card input[type=text], .trt-login-card input[type=password] {
  background:#d5e7ee;
  border-color:rgba(65,60,139,.22);
}
.trt-member-card { background:rgba(202,226,235,.72); border-color:rgba(69,66,145,.15); }
.trt-award-editor-grid fieldset { background:rgba(211,226,239,.58); }
.trt-editor-week summary { background:#d7d0e9; }
.trt-gate-card { background:linear-gradient(145deg,#d9eaf0,#e7d9ee); }
.trt-gate-form input { background:#cfe3eb; }
.trt-raffle-card { background:linear-gradient(145deg,#d8eaf0,#e8d8ed); }
.trt-raffle-winner { background:linear-gradient(135deg,#eee0ae,#e9cddd); }
.trt-raffle-tickets { background:#cfe4eb; }
.trt-ticket-list div { background:#e1d9ee; }

.trt-reset-card { border-left:7px solid #e15991; }
.trt-reset-card p { max-width:800px; color:#646a88; }
.trt-reset-card form { align-items:flex-start; }
.trt-editor-card .trt-reset-all-button {
  min-height:48px;
  color:#fff;
  background:linear-gradient(135deg,#ca3f7c,#7b4ec8);
  box-shadow:0 8px 18px rgba(153,50,111,.22);
}
.trt-editor-card .trt-reset-all-button:disabled { opacity:.45; cursor:not-allowed; box-shadow:none; }
