/* ================================================================
   SCHOOLMASTI 2026
   A tribute to the iconic Indian edtech portal, est. 2000
   Revived with love · June 2026
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Nunito:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

/* ----------------------------------------------------------------
   DESIGN TOKENS
   ---------------------------------------------------------------- */
:root {
  /* Brand palette — lifted directly from the schoolmasti logo */
  --navy:          #1B3B8B;
  --red:           #D42B2B;
  --green:         #2FAB3E;
  --teal:          #28B5C0;
  --purple:        #8B2D8B;
  --orange:        #F5821F;
  --yellow:        #F5C518;
  --lime:          #8CCC38;
  --lime-light:    #BAE243;

  /* Surface / neutrals */
  --bg:            rgba(255,254,248,0.82);
  --bg-warm:       rgba(255,245,224,0.72);
  --surface:       rgba(255,255,255,0.9);
  --border:        rgba(0,0,0,0.1);
  --border-soft:   rgba(0,0,0,0.06);
  --text-dark:     #1A1928;
  --text-mid:      #4A4868;
  --text-light:    #9490AA;

  /* Type */
  --font-display:  'Baloo 2', cursive;
  --font-body:     'Nunito', sans-serif;

  /* Motion */
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth:   cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:      cubic-bezier(0.0, 0.0, 0.2, 1);
}

/* ----------------------------------------------------------------
   RESET & BASE
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background-color: var(--lime);
  background-image: url('assets/mastigroove.svg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: var(--font-body); }
ul { list-style: none; }

/* ----------------------------------------------------------------
   ANIMATION KEYFRAMES
   ---------------------------------------------------------------- */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%       { transform: translateY(-10px) rotate(0.5deg); }
  66%       { transform: translateY(-5px) rotate(-0.5deg); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  18%       { transform: translateX(-7px); }
  36%       { transform: translateX(7px); }
  54%       { transform: translateX(-5px); }
  72%       { transform: translateX(5px); }
}

@keyframes correctBounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.06); }
  60%  { transform: scale(0.97); }
  100% { transform: scale(1); }
}

@keyframes stampIn {
  0%   { opacity: 0; transform: scale(2.5) rotate(-15deg); }
  60%  { opacity: 1; transform: scale(0.92) rotate(3deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes barFill {
  from { width: 0; }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(20px) scale(0.95); }
}

@keyframes confettiFall {
  0%   { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25%       { transform: rotate(-3deg); }
  75%       { transform: rotate(3deg); }
}

@keyframes pulseRing {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ----------------------------------------------------------------
   STAGGERED FADE-IN UTILITY
   ---------------------------------------------------------------- */
.animate-in {
  opacity: 0;
  animation: fadeUp 0.45s var(--ease-spring) forwards;
}
.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.10s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.20s; }
.animate-in:nth-child(5) { animation-delay: 0.25s; }
.animate-in:nth-child(6) { animation-delay: 0.30s; }
.animate-in:nth-child(7) { animation-delay: 0.35s; }
.animate-in:nth-child(8) { animation-delay: 0.40s; }

/* ----------------------------------------------------------------
   LAYOUT CONTAINERS
   ---------------------------------------------------------------- */
.page-wrapper {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-grid {
  display: grid;
  grid-template-columns: 1fr 308px;
  gap: 2rem;
  padding: 1.75rem 0 3rem;
  align-items: start;
}

/* ----------------------------------------------------------------
   SITE HEADER
   ---------------------------------------------------------------- */
.site-header {
  background: rgba(140, 204, 56, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0;
}

.logo-wrap img {
  height: 56px;
  width: auto;
  transition: transform 0.4s var(--ease-spring);
  cursor: pointer;
}

.logo-wrap:hover img {
  transform: scale(1.04) rotate(-1.5deg);
  animation: wiggle 0.4s ease;
}

.logo-meta {
  display: flex;
  flex-direction: column;
  margin-left: 0.5rem;
}

.logo-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  color: rgba(26,25,40,0.65);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.logo-vintage {
  font-size: 0.62rem;
  color: rgba(26,25,40,0.38);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.date-pill {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  color: rgba(26,25,40,0.6);
  letter-spacing: 0.04em;
  background: rgba(255,255,255,0.4);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.55);
}

.btn-signin-header {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.45rem 1.3rem;
  border-radius: 20px;
  border: none;
  transition: all 0.2s var(--ease-spring);
  letter-spacing: 0.02em;
}

.btn-signin-header:hover {
  background: #0F2260;
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 4px 14px rgba(27,59,139,0.35);
}

.btn-signin-header:active { transform: scale(0.97); }

/* ----------------------------------------------------------------
   NAVIGATION
   ---------------------------------------------------------------- */
.site-nav {
  background: rgba(140, 204, 56, 0.22);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }

.nav-links {
  display: flex;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-links li a {
  display: block;
  padding: 0.55rem 0.95rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: rgba(26,25,40,0.72);
  white-space: nowrap;
  position: relative;
  letter-spacing: 0.01em;
  transition: color 0.15s, background 0.15s;
}

.nav-links li:not(:last-child) a::after {
  content: '|';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(0,0,0,0.18);
  font-weight: 400;
  font-size: 0.8rem;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--navy);
  background: rgba(255,255,255,0.38);
  border-radius: 6px;
}

.nav-links li a .nav-underline {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  height: 2.5px;
  width: 0;
  background: var(--navy);
  border-radius: 2px;
  transition: width 0.2s var(--ease-spring);
}

.nav-links li a:hover .nav-underline,
.nav-links li a.active .nav-underline {
  width: 70%;
}

/* ----------------------------------------------------------------
   HERO BAND
   ---------------------------------------------------------------- */
.hero-band {
  background: var(--bg-warm);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}

.hero-bg-art {
  position: absolute;
  right: -60px;
  top: -40px;
  width: 460px;
  height: 460px;
  opacity: 0.09;
  pointer-events: none;
  transform: rotate(15deg);
}

.hero-bg-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.hero-left {
  position: relative;
  z-index: 2;
  animation: fadeUp 0.5s var(--ease-spring) both;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--lime);
  color: #1A1928;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-eyebrow .dot-pulse {
  width: 6px;
  height: 6px;
  background: #1A5E0A;
  border-radius: 50%;
  position: relative;
}

.hero-eyebrow .dot-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #1A5E0A;
  animation: pulseRing 1.5s ease-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.hero-title .line1 {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--text-mid);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-title .line2 {
  display: block;
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-title .word-fun {
  color: var(--red);
  display: inline-block;
  transform: rotate(-1.5deg);
  transform-origin: bottom left;
  transition: transform 0.3s var(--ease-spring);
}

.hero-title .word-fun:hover {
  transform: rotate(-3deg) scale(1.05);
}

.hero-title .word-way {
  color: var(--green);
  display: inline-block;
}

.hero-title .word-the {
  color: var(--navy);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-mid);
  margin-bottom: 1.75rem;
  max-width: 440px;
  line-height: 1.65;
}

.hero-subtitle strong {
  color: var(--orange);
}

/* Auth options */
.auth-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 340px;
}

.btn-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.72rem 1.5rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s var(--ease-spring);
  width: 100%;
  letter-spacing: 0.01em;
}

.btn-auth svg { flex-shrink: 0; }

.btn-auth:active { transform: scale(0.97) !important; }

.btn-google {
  background: #FFFFFF;
  color: var(--text-dark);
  border: 1.5px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.btn-google:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.11);
  transform: translateY(-1px);
}

.btn-apple {
  background: #111111;
  color: #fff;
}
.btn-apple:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.32);
}

.auth-or {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.auth-or::before,
.auth-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-or span {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.btn-enroll {
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.02em;
  border: none;
  position: relative;
  overflow: hidden;
}
.btn-enroll::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.btn-enroll:hover::before { transform: translateX(0); }
.btn-enroll:hover {
  background: #E07318;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,130,31,0.38);
}

.auth-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
}
.auth-note a {
  color: var(--navy);
  font-weight: 700;
  transition: color 0.2s;
}
.auth-note a:hover { color: var(--orange); }

/* Mascot */
.hero-right {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-mascot-img {
  width: 240px;
  height: auto;
  animation: float 4.5s ease-in-out infinite;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,0.14));
  cursor: pointer;
  transition: filter 0.3s ease;
}

.hero-mascot-img:hover {
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.18));
  animation-play-state: paused;
  transform: scale(1.04) rotate(1deg);
}

/* ----------------------------------------------------------------
   SECTION HEADINGS
   ---------------------------------------------------------------- */
.section-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-dark);
}

.section-head .color-bar {
  display: none;
}

.section-head .see-all {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange);
  transition: color 0.2s;
}
.section-head .see-all:hover { color: var(--navy); }

/* ----------------------------------------------------------------
   FEATURE CARDS GRID
   ---------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.feat-card {
  background: rgba(255,255,255,0.88);
  border-radius: 14px;
  padding: 1.1rem;
  border: 1px solid rgba(0,0,0,0.06);
  display: block;
  position: relative;
  overflow: hidden;
  transition: all 0.25s var(--ease-spring);
  cursor: pointer;
}

.feat-card::before { display: none; }

.feat-card:hover {
  transform: translateY(-5px) rotate(0.35deg);
  box-shadow: 0 10px 28px rgba(0,0,0,0.1);
  border-color: transparent;
}

.feat-card:active { transform: translateY(-2px) rotate(0deg); }

.fc-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.7rem;
  background: transparent;
}

.fc-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.feat-card.fc-quiz    .fc-title { color: var(--navy); }
.feat-card.fc-contest .fc-title { color: var(--red); }
.feat-card.fc-edu     .fc-title { color: var(--green); }
.feat-card.fc-house   .fc-title { color: var(--teal); }
.feat-card.fc-greet   .fc-title { color: var(--purple); }
.feat-card.fc-ent     .fc-title { color: var(--orange); }

.fc-desc {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.45;
}

/* ----------------------------------------------------------------
   TODAY'S QUIZ PREVIEW (home dashboard)
   ---------------------------------------------------------------- */
.quiz-preview-card {
  background: rgba(255,255,255,0.9);
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.qp-header {
  background: var(--navy);
  color: #fff;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qp-header h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.qp-live-badge {
  background: var(--red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.qp-live-dot {
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 50%;
  animation: pulseRing 1.2s ease-out infinite;
}

.qp-body { padding: 1.25rem; }

.qp-question {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.qp-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.qp-option {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.18s var(--ease-spring);
  text-align: left;
}

.qp-option:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: #EEF1FB;
  transform: translateY(-1px);
}

.qp-option.selected {
  border-color: var(--orange);
  color: var(--orange);
  background: #FEF5ED;
  transform: scale(1.03);
}

.qp-option.correct {
  border-color: var(--green);
  background: #EDFBF0;
  color: var(--green);
  animation: correctBounce 0.4s var(--ease-spring);
}

.qp-option.wrong {
  border-color: var(--red);
  background: #FEF1F1;
  color: var(--red);
  animation: shake 0.4s ease;
}

.qp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qp-cta {
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.5rem 1.25rem;
  border-radius: 10px;
  border: none;
  transition: all 0.2s var(--ease-spring);
}
.qp-cta:hover {
  background: #E07318;
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(245,130,31,0.35);
}

.qp-hint {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ----------------------------------------------------------------
   SIDEBAR CARDS
   ---------------------------------------------------------------- */
.sidebar-card {
  background: rgba(255,255,255,0.9);
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.sc-header {
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.sc-header h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--text-dark);
}

.sc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent !important;
}

.sc-body { padding: 0.9rem 1rem; }

/* Notice Board */
.notice-item {
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--border-soft);
}
.notice-item:last-child { border-bottom: none; }

.ni-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-dark);
  margin-bottom: 0.15rem;
  cursor: pointer;
  transition: color 0.15s;
}
.ni-title:hover { color: var(--orange); }

.ni-preview {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.4;
}

.ni-more {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
  margin-top: 0.1rem;
  transition: color 0.2s;
}
.ni-more:hover { color: var(--navy); }

.ni-author {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 0.15rem;
}

/* Thought of the Day */
.thought-body {
  position: relative;
  padding: 0.25rem 0;
}

.thought-quote-mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 3.5rem;
  line-height: 0.8;
  color: var(--orange);
  opacity: 0.5;
  display: block;
  margin-bottom: 0.1rem;
}

.thought-text {
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text-dark);
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.thought-author {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
  text-align: right;
}

.thought-more {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange);
  margin-top: 0.65rem;
  transition: color 0.2s;
}
.thought-more:hover { color: var(--navy); }

/* Teen Poll */
.poll-question {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-dark);
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

.poll-options { display: flex; flex-direction: column; gap: 0.4rem; }

.poll-option-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.3rem 0;
}

.poll-radio {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border: 2px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  position: relative;
}

.poll-radio:checked {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(245,130,31,0.18);
}

.poll-option-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: color 0.15s;
}

.poll-option-label:hover .poll-option-text { color: var(--orange); }

.poll-results { display: none; margin-top: 0.75rem; }

.poll-result-item { margin-bottom: 0.55rem; }

.pr-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 0.2rem;
}

.pr-track {
  height: 7px;
  background: var(--bg-warm);
  border-radius: 7px;
  overflow: hidden;
}

.pr-fill {
  height: 100%;
  border-radius: 7px;
  background: var(--orange);
  width: 0;
  transition: width 1.2s var(--ease-smooth);
}

.poll-footer {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
}

.btn-vote {
  background: var(--red);
  color: #fff;
  border: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.5rem 1.75rem;
  border-radius: 20px;
  transition: all 0.2s var(--ease-spring);
}
.btn-vote:hover {
  background: #B91C1C;
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(212,43,43,0.3);
}
.btn-vote:active { transform: scale(0.97); }

/* Newsletter */
.newsletter-card {
  background: var(--navy);
  border-radius: 16px;
  padding: 1.25rem;
  color: #fff;
  margin-bottom: 1.25rem;
}

.newsletter-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.newsletter-card p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 0.9rem;
  line-height: 1.5;
}

.newsletter-form { display: flex; flex-direction: column; gap: 0.5rem; }

.nl-input {
  padding: 0.55rem 0.85rem;
  border-radius: 9px;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: border-color 0.2s, background 0.2s;
}
.nl-input::placeholder { color: rgba(255,255,255,0.45); }
.nl-input:focus {
  outline: none;
  border-color: var(--lime);
  background: rgba(255,255,255,0.15);
}

.btn-subscribe {
  background: var(--orange);
  color: #fff;
  border: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 0.55rem;
  border-radius: 9px;
  transition: all 0.2s var(--ease-spring);
}
.btn-subscribe:hover {
  background: #E07318;
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(245,130,31,0.4);
}

/* ----------------------------------------------------------------
   MODAL
   ---------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 20, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--surface);
  border-radius: 24px;
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  position: relative;
  transform: scale(0.88) translateY(24px);
  transition: transform 0.35s var(--ease-spring);
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-mid);
  transition: all 0.2s;
  line-height: 1;
}
.modal-close:hover {
  background: var(--border);
  transform: rotate(90deg);
}

.modal-head {
  margin-bottom: 0.35rem;
}

.modal-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.65rem;
  color: var(--text-dark);
  line-height: 1.1;
}

.modal-sub {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.modal-auth-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.modal-or {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.25rem 0;
}
.modal-or::before,
.modal-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.modal-or span {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 600;
}

.modal-field {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-dark);
  background: var(--bg);
  margin-bottom: 0.7rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.modal-field:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(245,130,31,0.12);
}

.modal-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239490AA' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

.btn-modal-primary {
  width: 100%;
  background: var(--orange);
  color: #fff;
  border: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.75rem;
  border-radius: 11px;
  transition: all 0.2s var(--ease-spring);
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
}
.btn-modal-primary:hover {
  background: #E07318;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245,130,31,0.38);
}
.btn-modal-primary:active { transform: scale(0.98); }

.modal-switch {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 1rem;
}
.modal-switch a {
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-switch a:hover { color: var(--orange); }

/* ----------------------------------------------------------------
   INNER PAGE LAYOUT
   ---------------------------------------------------------------- */
.inner-hero {
  padding: 2rem 0 1.5rem;
  border-bottom: 1.5px solid var(--border-soft);
  margin-bottom: 0;
}

.inner-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.inner-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent !important;
  border-radius: 0;
}

.inner-sub {
  font-size: 1rem;
  color: var(--text-mid);
  margin-top: 0.5rem;
  max-width: 560px;
  line-height: 1.6;
}

.inner-divider {
  height: 1.5px;
  background: rgba(0,0,0,0.1) !important;
  margin: 0.75rem 0;
}

/* Inner page grid */
.inner-page-grid {
  display: grid;
  grid-template-columns: 1fr 284px;
  gap: 2rem;
  padding: 1.75rem 0 3rem;
  align-items: start;
}

/* ----------------------------------------------------------------
   QUIZ PAGE
   ---------------------------------------------------------------- */
.quiz-arena {
  background: rgba(255,255,255,0.9);
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
  overflow: hidden;
}

.qa-header {
  background: var(--navy);
  color: #fff;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.qa-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.qa-q-count {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  white-space: nowrap;
}

.qa-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 6px;
  overflow: hidden;
}

.qa-bar-fill {
  height: 100%;
  background: var(--lime);
  border-radius: 6px;
  transition: width 0.4s var(--ease-smooth);
}

.qa-timer {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  background: rgba(255,255,255,0.15);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  min-width: 56px;
  text-align: center;
  transition: background 0.3s, color 0.3s;
}

.qa-timer.urgent {
  background: var(--red);
  animation: pulseRing 0.8s ease-out infinite;
}

.qa-body { padding: 1.75rem 1.5rem 1.5rem; }

.qa-q-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.qa-question {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--text-dark);
  line-height: 1.45;
  margin-bottom: 1.25rem;
  animation: slideInRight 0.3s var(--ease-spring) both;
}

.qa-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.qa-opt {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-mid);
  cursor: pointer;
  text-align: left;
  transition: all 0.18s var(--ease-spring);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.qa-opt-letter {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--border);
  color: var(--text-mid);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.qa-opt:hover {
  border-color: var(--navy);
  background: #EEF1FB;
  color: var(--navy);
  transform: translateY(-1px);
}
.qa-opt:hover .qa-opt-letter {
  background: var(--navy);
  color: #fff;
}

.qa-opt.correct {
  border-color: var(--green);
  background: #EDFBF0;
  color: var(--green);
  animation: correctBounce 0.5s var(--ease-spring);
}
.qa-opt.correct .qa-opt-letter {
  background: var(--green);
  color: #fff;
}

.qa-opt.wrong {
  border-color: var(--red);
  background: #FEF1F1;
  color: var(--red);
  animation: shake 0.4s ease;
}
.qa-opt.wrong .qa-opt-letter {
  background: var(--red);
  color: #fff;
}

.qa-opt:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.qa-feedback {
  min-height: 44px;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.25s ease;
}
.qa-feedback.show {
  opacity: 1;
  transform: translateY(0);
}
.qa-feedback.correct-fb {
  background: #EDFBF0;
  color: #1A7A35;
  border: 1px solid #B6F0C8;
}
.qa-feedback.wrong-fb {
  background: #FEF1F1;
  color: #A81B1B;
  border: 1px solid #FBBDBD;
}

.qa-next-btn {
  background: var(--navy);
  color: #fff;
  border: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.65rem 2rem;
  border-radius: 12px;
  transition: all 0.2s var(--ease-spring);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s var(--ease-spring), opacity 0.2s ease;
}

.qa-next-btn.show {
  opacity: 1;
  pointer-events: all;
}

.qa-next-btn:hover {
  background: var(--orange);
  transform: scale(1.04);
}

/* Quiz results */
.quiz-result {
  padding: 2.5rem 1.5rem;
  text-align: center;
  display: none;
}

.qr-score-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--lime) var(--score-pct), var(--bg-warm) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 0 8px var(--bg-warm);
  position: relative;
}

.qr-score-inner {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.qr-score-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--navy);
  line-height: 1;
}

.qr-score-of {
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 700;
}

.qr-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.qr-sub {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.qr-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.btn-retry {
  background: var(--navy);
  color: #fff;
  border: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.65rem 1.75rem;
  border-radius: 12px;
  transition: all 0.2s var(--ease-spring);
  cursor: pointer;
}
.btn-retry:hover {
  background: var(--orange);
  transform: scale(1.04);
}

/* ----------------------------------------------------------------
   GREETINGS PAGE
   ---------------------------------------------------------------- */
.cards-section-title {
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
  display: inline-block;
  margin-bottom: 1rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.greeting-card-thumb {
  cursor: pointer;
  transition: transform 0.25s var(--ease-spring);
}
.greeting-card-thumb:hover {
  transform: translateY(-5px) scale(1.03);
}
.greeting-card-thumb:hover .gc-art {
  box-shadow: 0 10px 28px rgba(0,0,0,0.15);
}

.gc-art {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 12px;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  text-align: center;
  padding: 0.5rem;
  transition: box-shadow 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  position: relative;
}

.gc-caption {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-mid);
  text-align: center;
  line-height: 1.3;
}

/* Card art styles */
.gc-bday    { background: linear-gradient(135deg, #FFE4E1 0%, #FFB3BA 100%); color: #8B1A2E; }
.gc-wedding { background: linear-gradient(135deg, #FFF8E1 0%, #FFE4A8 100%); color: #7A5A00; }
.gc-congrats{ background: linear-gradient(135deg, #E8F5E9 0%, #A5D6A7 100%); color: #1B5E20; }
.gc-sorry   { background: linear-gradient(135deg, #EDE7F6 0%, #CE93D8 100%); color: #4A148C; }
.gc-thanks  { background: linear-gradient(135deg, #E3F2FD 0%, #90CAF9 100%); color: #0D47A1; }
.gc-sister  { background: linear-gradient(135deg, #FCE4EC 0%, #F48FB1 100%); color: #880E4F; }
.gc-diwali  { background: linear-gradient(135deg, #FFF3E0 0%, #FFCC80 100%); color: #E65100; }
.gc-engage  { background: linear-gradient(135deg, #FFECD2 0%, #FCB69F 100%); color: #7A2600; }
.gc-anniv   { background: linear-gradient(135deg, #E8EAF6 0%, #9FA8DA 100%); color: #1A237E; }
.gc-getwell { background: linear-gradient(135deg, #E0F7FA 0%, #80DEEA 100%); color: #006064; }
.gc-holi    { background: linear-gradient(135deg, #F3E5F5 0%, #E1BEE7 100%); color: #4A148C; }
.gc-hi      { background: linear-gradient(135deg, #F9FBE7 0%, #DCE775 100%); color: #33691E; }

/* Card lightbox */
.card-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,10,20,0.7);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 1.5rem;
}
.card-lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.clb-inner {
  background: var(--surface);
  border-radius: 24px;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  transform: scale(0.9);
  transition: transform 0.3s var(--ease-spring);
  box-shadow: 0 30px 70px rgba(0,0,0,0.25);
}
.card-lightbox.active .clb-inner { transform: scale(1); }

.clb-card-art {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  text-align: center;
  padding: 2rem;
  margin-bottom: 1.25rem;
}

.clb-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.clb-actions {
  display: flex;
  gap: 0.65rem;
}

.btn-send-card {
  flex: 1;
  background: var(--orange);
  color: #fff;
  border: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.65rem;
  border-radius: 11px;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}
.btn-send-card:hover {
  background: #E07318;
  transform: scale(1.03);
}

.btn-close-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text-mid);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  border-radius: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-close-card:hover { background: var(--border); }

/* ----------------------------------------------------------------
   EDUCATION PAGE
   ---------------------------------------------------------------- */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.subject-card {
  background: var(--surface);
  border-radius: 14px;
  border: 1.5px solid var(--border);
  padding: 1.2rem;
  cursor: pointer;
  transition: all 0.22s var(--ease-spring);
  text-align: center;
}
.subject-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
  border-color: transparent;
}

.subject-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.65rem;
  font-size: 1.5rem;
  background: transparent !important;
}

.subject-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
  color: var(--text-dark);
}

.subject-count {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 600;
}

/* Board Papers */
.board-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.board-tab {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.18s ease;
}
.board-tab:hover { border-color: var(--navy); color: var(--navy); }
.board-tab.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.papers-list { display: flex; flex-direction: column; gap: 0.6rem; }

.paper-item {
  background: var(--surface);
  border-radius: 11px;
  border: 1.5px solid var(--border);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
}
.paper-item:hover {
  border-color: var(--teal);
  box-shadow: 0 3px 10px rgba(0,0,0,0.07);
}

.paper-info { flex: 1; }

.paper-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-dark);
  margin-bottom: 0.1rem;
}

.paper-meta {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 600;
}

.btn-download {
  background: var(--teal);
  color: #fff;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  flex-shrink: 0;
}
.btn-download:hover {
  background: #1E9BAA;
  transform: scale(1.04);
}

/* ----------------------------------------------------------------
   ENTERTAINMENT PAGE
   ---------------------------------------------------------------- */
.ent-sections {
  display: grid;
  gap: 2rem;
}

.ent-section-card {
  background: var(--surface);
  border-radius: 18px;
  border: 1.5px solid var(--border);
  overflow: hidden;
}

.esc-header {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.esc-header h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.esc-body { padding: 1.25rem; }

.joke-list { display: flex; flex-direction: column; gap: 0.85rem; }

.joke-card {
  background: var(--bg-warm);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-soft);
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}
.joke-card:hover {
  border-color: var(--yellow);
  box-shadow: 0 3px 10px rgba(0,0,0,0.07);
  transform: translateX(3px);
}

.joke-setup {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-dark);
  margin-bottom: 0;
}

.joke-punchline {
  font-size: 0.85rem;
  color: var(--orange);
  font-weight: 700;
  font-style: italic;
  margin-top: 0.5rem;
  display: none;
}

.joke-card.revealed .joke-punchline { display: block; }
.joke-card.revealed { border-color: var(--orange); }

.joke-tap-hint {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 600;
  margin-top: 0.3rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.game-tile {
  background: var(--bg);
  border-radius: 10px;
  border: 1.5px solid var(--border);
  padding: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}
.game-tile:hover {
  border-color: var(--purple);
  background: #F8EDFB;
  transform: scale(1.02);
}

.game-tile-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.game-tile-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.83rem;
  color: var(--text-dark);
}

.game-tile-cat {
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 600;
}

/* ----------------------------------------------------------------
   OPEN HOUSE PAGE
   ---------------------------------------------------------------- */
.oh-compose {
  background: var(--surface);
  border-radius: 16px;
  border: 1.5px solid var(--border);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.oh-compose h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 0.9rem;
}

.oh-textarea {
  width: 100%;
  min-height: 80px;
  resize: vertical;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--bg);
  transition: border-color 0.2s;
  margin-bottom: 0.75rem;
}
.oh-textarea:focus { outline: none; border-color: var(--teal); }

.btn-post {
  background: var(--teal);
  color: #fff;
  border: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.6rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}
.btn-post:hover { background: #1E9BAA; transform: scale(1.04); }

.questions-feed { display: flex; flex-direction: column; gap: 1rem; }

.q-item {
  background: var(--surface);
  border-radius: 14px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s;
}
.q-item:hover { border-color: var(--teal); }

.qi-header {
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.qi-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qi-meta { flex: 1; }

.qi-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.83rem;
  color: var(--text-dark);
}

.qi-time {
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 600;
}

.qi-body {
  padding: 0.9rem 1.1rem;
  font-size: 0.88rem;
  color: var(--text-dark);
  line-height: 1.55;
}

.qi-footer {
  padding: 0.55rem 1.1rem;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.qi-action {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.15s;
  background: none;
  border: none;
  font-family: var(--font-body);
}
.qi-action:hover { color: var(--teal); }

/* ----------------------------------------------------------------
   CONTEST PAGE
   ---------------------------------------------------------------- */
.contest-intro {
  background: var(--surface);
  border-radius: 18px;
  border: 1.5px solid var(--border);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.contest-intro::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow));
}

.contest-body-text {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.contest-body-text strong { color: var(--text-dark); }

.contest-register-form {
  background: var(--bg-warm);
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.cfr-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-mid);
  letter-spacing: 0.03em;
}

/* ----------------------------------------------------------------
   TOAST
   ---------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  pointer-events: none;
}

.toast {
  background: var(--text-dark);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.65rem 1.5rem;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  animation: toastIn 0.35s var(--ease-spring) forwards;
  white-space: nowrap;
  pointer-events: none;
}

.toast.out { animation: toastOut 0.3s ease forwards; }

/* ----------------------------------------------------------------
   CONFETTI
   ---------------------------------------------------------------- */
.confetti-piece {
  position: fixed;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  animation: confettiFall var(--fall-dur, 2.5s) ease-in var(--fall-delay, 0s) forwards;
  pointer-events: none;
  z-index: 3000;
  top: -10px;
}

/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */
.site-footer {
  background: #1A1928;
  color: rgba(255,255,255,0.65);
  padding: 2rem 1.5rem 1.5rem;
  margin-top: 2rem;
}

.footer-nav {
  text-align: center;
  margin-bottom: 0.35rem;
}

.footer-nav a {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  display: inline-block;
  padding: 0.15rem 0.4rem;
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--orange); }

.footer-sep {
  color: rgba(255,255,255,0.25);
  font-size: 0.7rem;
  padding: 0 0.1rem;
}

.footer-bottom {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.75rem;
}

.footer-bottom a {
  color: var(--orange);
  font-weight: 600;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: #fff; }

.footer-tribute {
  text-align: center;
  margin-top: 0.4rem;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.2);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ----------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 940px) {
  .page-grid,
  .inner-page-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-right { display: none; }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .qa-options {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .feature-grid,
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .subject-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding: 0.5rem 1rem;
  }

  .logo-meta { display: none; }

  .logo-wrap img { height: 44px; }

  .date-pill { display: none; }

  .page-wrapper { padding: 0 1rem; }

  .hero-inner { padding-top: 1.75rem; padding-bottom: 1.75rem; }

  .inner-title { font-size: 2rem; }

  .qr-actions { flex-direction: column; }
}

/* ----------------------------------------------------------------
   SCROLL UTILITY
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
