/* Sober Oktober — warm paper, forest ink, a little autumn mischief.
   This shared presentation layer leaves page state and data logic intact. */
:root {
  --forest: #214b3b;
  --deep: #16382c;
  --orange: #ed8139;
  --orange-dark: #ac481c;
  --cream: #f6efdf;
  --ink: #223e32;
  --muted: #667064;
  --white: #fffaf0;
  --paper: #fffaf0;
  --paper-dark: #ebe4d3;
  --line: #d7d9c5;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --font-body: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  --font-editorial: Georgia, "Times New Roman", serif;
  --shadow: 0 6px 0 #d8ddc7;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  background: var(--cream);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button:not(:disabled), a { transition-duration: .16s; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--orange-dark) !important;
  outline-offset: 4px;
}
button:disabled { cursor: not-allowed; }
::selection { color: var(--deep); background: #fac28d; }
.shell { padding-top: 24px; padding-bottom: 72px; }
h1, h2, h3 { text-wrap: balance; }
.topbar { min-height: 44px; margin-bottom: 22px; }
.brand { font-size: .75rem; font-weight: 850; letter-spacing: .08em; }
.brand-mark { border-radius: 50% 50% 50% 8px; background: var(--forest); }
.brand-mark svg { width: 19px; height: 19px; }
.home-link, .back { border: 1px solid var(--line); background: transparent; min-height: 44px; display: inline-flex; align-items: center; }
.kicker, .eyebrow, .auth-kicker, .rules-onboarding-kicker { color: var(--orange-dark); font-weight: 800; letter-spacing: .13em; }
.intro { font-size: 1rem; line-height: 1.6; }
.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: none; backdrop-filter: none; }
.main-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  max-width: 640px;
  margin: 0 auto 44px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: none;
  backdrop-filter: none;
}
.main-nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border-radius: 999px; color: var(--forest); font-size: .8rem; font-weight: 750; text-align: center; text-decoration: none; }
.main-nav a:hover { color: var(--deep); background: var(--paper-dark); transform: none; }
.main-nav .history-nav { background: transparent; color: var(--forest); box-shadow: none; }
.main-nav .history-nav:hover { background: var(--paper-dark); color: var(--deep); }
.main-nav a[aria-current="page"] { color: var(--paper); background: var(--forest); }
.primary, .google, .secondary, .day-nav, .google-button, .auth-primary, .auth-secondary, .admin-link, .history-link, .entry-button, .rules-start, .rules-back {
  border-radius: var(--radius-sm);
  min-height: 48px;
  font-weight: 800;
}
.primary, .auth-primary, .entry-yes, .rules-start { box-shadow: 0 3px 0 var(--deep); }
.primary:hover, .auth-primary:hover, .entry-yes:hover, .rules-start:hover { transform: translateY(-1px); }
.google, .google-button { background: var(--paper); border: 1px solid var(--line); }
.auth-panel, .entry-joke-card, .detail-dialog, .delete-dialog { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: 0 16px 60px #0d2d2433; }
.auth-panel { max-height: calc(100dvh - 36px); overflow-y: auto; }
.auth-overlay, .entry-joke, .trump-quote-overlay { backdrop-filter: none; }
.auth-title { font-size: clamp(2rem, 7vw, 2.7rem); letter-spacing: -.05em; }
.auth-close, .detail-close, .feedback-close { min-width: 44px; min-height: 44px; border-radius: 50%; }
.auth-input, .field input, .field textarea { border-color: var(--line); border-radius: var(--radius-sm); background: #fffdf7; }
.auth-note { color: var(--muted); }
.detail-result div { border-radius: var(--radius-sm); background: var(--paper-dark); }
.detail-dialog::backdrop, .delete-dialog::backdrop { backdrop-filter: none; }

/* Entré & rules: a simple, oversized invitation, framed like a club poster. */
.entry-gate, .rules-gate { background: var(--cream); }
.entry-gate { padding: 48px 24px; }
.entry-gate:before { width: 240px; height: 120px; left: -100px; top: 12%; background: #e6b575; transform: rotate(-25deg); opacity: .35; }
.entry-gate:after { width: 230px; height: 115px; right: -100px; bottom: 10%; background: #c4ccb0; transform: rotate(145deg); opacity: .55; }
.entry-content { width: min(100%, 800px); }
.entry-brand { gap: 14px; margin-bottom: 44px; }
.entry-brand-mark { width: 44px; height: 44px; border-radius: 50% 50% 50% 9px; box-shadow: none; transform: rotate(-8deg); }
.entry-brand-name { font-size: clamp(1.5rem, 3vw, 2.4rem); letter-spacing: -.04em; font-weight: 900; }
.entry-title { font-size: clamp(3.4rem, 8.5vw, 7.2rem); line-height: .99; letter-spacing: -.065em; }
.entry-title span { font-family: var(--font-editorial); font-style: italic; font-weight: 500; letter-spacing: -.055em; color: var(--orange-dark); }
.entry-actions { grid-template-columns: 1fr .42fr; gap: 12px; margin-top: 36px; max-width: 480px; }
.entry-button { min-height: 58px; font-size: .86rem; }
.entry-no { border: 1px solid #b5bba5; background: transparent; color: var(--forest); }
.entry-registered { position: static; transform: none; width: min(100%, 480px); margin: 40px auto 0; border: 0; border-top: 1px solid var(--line); padding: 18px 0 0; border-radius: 0; background: transparent; }
.entry-registered .registered-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 110px; }
.entry-registered .registered-name { background: var(--paper-dark); padding: 5px 10px; border-radius: 999px; max-width: 100%; }
.entry-registered .registered-head { justify-content: center; }
.entry-joke-title { letter-spacing: -.045em; }
.rules-gate { padding: 48px 24px; }
.rules-onboarding { width: min(100%, 880px); }
.rules-onboarding-title { font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; letter-spacing: -.06em; }
.rules-onboarding-copy { color: var(--muted); }
.rules-onboarding-grid { gap: 16px; }
.rules-onboarding-card { position: relative; min-height: 190px; padding: 26px; border: 1px solid var(--line); border-radius: 6px 26px 26px 26px; background: var(--paper); box-shadow: none; }
.rules-onboarding-card:nth-child(2), .rules-onboarding-card:nth-child(4) { background: #e8ecd9; }
.rules-onboarding-number { width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: var(--deep); font-weight: 900; }
.rules-onboarding-card h2 { font-size: 1.4rem; }
.rules-onboarding-actions { margin-top: 28px; }

/* Main page: centered masthead, quiet side lists, one unmistakable focal point. */
.page-home .shell { width: min(1280px, calc(100% - 64px)); }
.page-home .leaf { display: none; }
.page-home .topbar { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.day-pill { border: 0; background: var(--paper-dark); backdrop-filter: none; font-size: .75rem; padding: 10px 14px; }
.auth-trigger { min-height: 44px; max-width: 220px; padding: 10px 17px; font-size: .78rem; box-shadow: none; }
.page-home .hero-stage { display: grid; grid-template-columns: 210px minmax(0, 1fr) 210px; align-items: start; gap: 28px; margin: 0 0 36px; }
.page-home .hero { grid-column: 2; grid-row: 1; width: 100%; margin: 8px auto 0; max-width: 600px; }
.page-home .hero h1 { font-size: clamp(4.5rem, 8.2vw, 7rem); font-weight: 900; letter-spacing: -.065em; line-height: .9; }
.page-home .hero h1 span { display: inline-block; font-family: var(--font-editorial); font-weight: 500; font-style: italic; letter-spacing: -.07em; color: var(--orange-dark); line-height: 1.06; }
.eyebrow { font-size: .66rem; margin-bottom: 20px; }
.eyebrow:before, .eyebrow:after { width: 16px; height: 1px; opacity: .7; }
.progress-wrap { max-width: 390px; margin-top: 25px; }
.progress-meta { font-size: .7rem; margin-bottom: 8px; }
.progress-track { height: 7px; border: 0; background: #dedfc8; }
.progress-fill { background: var(--orange); box-shadow: none; }
.registered-panel, .leaderboard-preview { width: 100%; padding: 18px 0; border: 0; border-top: 2px solid var(--forest); border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.hero-registered { position: static; grid-column: 1; grid-row: 1; margin-top: 28px; }
.hero-leaderboard-preview { position: static; grid-column: 3; grid-row: 1; margin-top: 28px; }
.registered-title, .leaderboard-preview-title { font-size: 1rem; font-weight: 850; }
.registered-count { background: #e7ddc7; color: var(--forest); font-size: .65rem; }
.registered-list { gap: 0; max-height: 225px; }
.registered-name { padding: 7px 0; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--forest); background: transparent; font-size: .78rem; font-weight: 650; }
.registered-name:last-child { border-bottom: 0; }
.leaderboard-preview-icon { background: #e7ddc7; color: var(--forest); border-radius: 50%; }
.leaderboard-preview-list { gap: 4px; max-height: 290px; }
.leaderboard-preview-row { padding: 7px 5px; background: transparent; border-radius: 8px; }
.leaderboard-preview-row.top-1 { background: #f5dda2; border-color: #d8bf87; }
.leaderboard-preview-row.top-2 { background: #e7eadf; }
.leaderboard-preview-row.top-3 { background: #eedac3; }
.leaderboard-preview-rank { background: transparent; }
.leaderboard-preview-meta { font-size: .65rem; }
.leaderboard-preview-link { min-height: 44px; border-radius: 8px; background: transparent; color: var(--forest); border: 1px solid #b5bba5; font-size: .72rem; }
.leaderboard-preview-link:hover { color: var(--paper); }
.leaderboard-preview-empty, .registered-empty { font-size: .78rem; line-height: 1.55; }
.challenge-card { max-width: 800px; border: 1px solid var(--deep); border-radius: 10px 36px 36px 36px; padding: clamp(24px, 4vw, 44px); box-shadow: 0 7px 0 #d0d6bd; }
.challenge-card:before { width: 300px; height: 300px; top: -150px; right: -180px; border-width: 38px; }
.challenge-label { font-size: .72rem; color: #f4bd8c; letter-spacing: .16em; }
.challenge-card h2 { max-width: 650px; margin-top: 12px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.12; }
.workout { margin: 14px 0 28px; color: var(--paper); font-size: clamp(2.5rem, 6vw, 4.7rem); line-height: 1.03; }
.levels { gap: 10px; margin-top: 28px; }
.level { min-height: 96px; border-color: #658170; border-radius: 14px; background: #315c48; }
.level strong { font-size: 1.65rem; line-height: 1.1; color: #ffca96; }
.level span { font-size: .8rem; color: var(--paper); }
.level:hover { background: #416c55; transform: translateY(-3px); }
.score-summary { gap: 0; margin-top: 24px; border-top: 1px solid #56715f; }
.score-item { padding: 16px 12px 8px; border: 0; border-right: 1px solid #56715f; border-radius: 0; background: transparent; }
.score-item:first-child { padding-left: 0; }
.score-item:last-child { border-right: 0; }
.score-label { color: #c7d0bc; letter-spacing: .045em; }
.motivation { margin-top: 14px; color: #ced8c6; font-size: .79rem; }
.feedback { top: 18px; border: 2px solid #eab175; border-radius: 14px; background: var(--paper); box-shadow: 0 5px 0 #122f2466; }
.feedback-icon { background: var(--forest); border-radius: 50%; }
.leaderboard-card { max-width: 800px; margin-top: 40px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: none; backdrop-filter: none; }
.leaderboard-title { font-size: 2rem; letter-spacing: -.04em; }
.leaderboard-copy { font-size: .8rem; line-height: 1.5; }
.leaderboard-list { gap: 4px; }
.leaderboard-row { border: 0; border-bottom: 1px solid var(--line); border-radius: 8px; background: transparent; padding: 9px 12px 9px 0; }
.leaderboard-rank { border-radius: 50%; }
.leaderboard-empty { padding: 30px 16px; border: 1px dashed #b9c2ab; border-radius: 12px; background: #f2f1e4; font-size: .85rem; }
.leaderboard-name { font-weight: 800; }
.leaderboard-status:empty { display: none; }
.content-grid { max-width: 800px; margin-top: 32px; }
.info-card { padding: 8px 0 28px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.card-heading { margin-bottom: 18px; font-size: 1.15rem; }
.icon { border-radius: 50%; background: #e9dfc7; color: var(--forest); }
.rules { gap: 12px; }
.rules li { font-size: .88rem; }
.check { width: 21px; height: 21px; flex-basis: 21px; font-size: .65rem; background: #dce2c9; color: var(--forest); }

/* The daily quote stays in its modal. */
.trump-quote-content { border-radius: 8px; border-color: #c8c4b650; background: #102544f5; box-shadow: none; }
.trump-quote-title { font-size: 1.2rem; letter-spacing: -.025em; }
.trump-quote-text { font-family: var(--font-editorial); font-weight: 500; font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.4; }
.trump-quote-dialog { border-radius: 10px 28px 28px 28px; border-width: 2px; }
.trump-quote-dialog .trump-quote-text { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
.trump-quote-actions button { border-radius: var(--radius-sm); }
body.trump-quote-open .mohv-egg { visibility: hidden; pointer-events: none; }
body:has(.auth-overlay.open) .mohv-egg { visibility: hidden; pointer-events: none; }
.mohv-egg { box-shadow: 0 3px 10px #37234522; }

/* Personal October: journal-like statistics and a crisp, legible calendar. */
.page-history .shell { width: min(940px, calc(100% - 48px)); }
.page-history .hero { margin: 44px 0 30px; }
.page-history h1 { font-size: clamp(3.4rem, 9vw, 6rem); font-weight: 850; letter-spacing: -.065em; line-height: 1; }
.page-history .panel { padding: 30px; }
.summary-line { font-size: .95rem; }
.competition { border-radius: 10px; border-left: 4px solid currentColor; padding: 13px 16px; }
.stats { gap: 0; padding: 12px 0 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.stat { border: 0; border-right: 1px solid var(--line); border-radius: 0; padding: 6px 18px; background: transparent; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat-value { font-size: 2.2rem; font-weight: 850; }
.stat-label { min-height: 2.6em; font-size: .65rem; }
.calendar-head { margin-bottom: 20px; }
.calendar-head h2 { font-size: 1.6rem; }
.weekdays, .calendar { gap: 7px; }
.weekdays { margin-bottom: 8px; }
.weekday { font-size: .65rem; }
.calendar-day, .calendar-spacer { border-radius: 10px; aspect-ratio: 1.08; }
.calendar-day { padding: 10px; transition: transform .15s ease; }
.calendar-day.completed { background: var(--forest); border-color: var(--deep); }
.calendar-day.missed { color: #85461f; background: #f7e0ca; border-color: #e4c6a7; }
.calendar-day.future { color: #737969; background: #efefe4; border: 1px dashed #ccd0bd; }
.calendar-day.today { outline: 2px solid var(--orange-dark); outline-offset: 2px; box-shadow: none; }
.day-number { font-size: .95rem; }
.day-result { font-size: .75rem; }
.day-points { font-size: .68rem; }
.legend { gap: 18px; margin-top: 20px; }
.legend i { border-radius: 2px; }
.legend .ahead { background: transparent; border: 1px dashed #8b967c; }

/* Admin stays utilitarian. Both editors remain intact. */
.page-admin .shell { width: min(1200px, calc(100% - 48px)); }
.page-admin .topbar { margin-bottom: 38px; }
.page-admin h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); line-height: 1.05; letter-spacing: -.055em; }
.page-admin .hero { margin-bottom: 30px; }
.page-admin .panel { padding: 28px; border-radius: 18px; }
.admin-grid { grid-template-columns: minmax(0, 1fr) minmax(330px, .9fr); gap: 32px; }
.schedule-head { align-items: center; }
.progress-count, .dirty-count { border-radius: 6px; font-size: .7rem; }
.days { max-height: 690px; overflow-y: auto; overscroll-behavior: contain; padding: 4px 9px 6px 4px; scrollbar-width: thin; scrollbar-color: #aeb99a transparent; }
.day-card { border-radius: 10px; padding: 13px 14px; box-shadow: none; }
.day-card.saved { background: #f0f3e7; border-color: #d6ddc7; }
.day-card.missing { background: #fffdf7; border-color: #d7d9c5; }
.day-card.active { border-color: var(--orange-dark); box-shadow: inset 4px 0 var(--orange); }
.day-card:hover { box-shadow: none; transform: none; background: #e9eddc; }
.day-status { border-radius: 5px; font-size: .62rem; }
.day-description { margin-bottom: 6px; }
.editor { top: 24px; scroll-margin-top: 24px; }
.existing { margin-top: 12px; border-radius: 8px; background: #e9eddd; }
.day-nav { min-height: 44px; font-size: .72rem; padding: 9px; }
.field input, .field textarea { font-size: 1rem; }

@media (max-width: 1100px) {
  .page-home .shell { width: min(960px, calc(100% - 48px)); }
  .page-home .hero-stage { grid-template-columns: 170px minmax(0, 1fr) 170px; gap: 18px; }
  .page-home .hero h1 { font-size: clamp(4.2rem, 8.5vw, 6rem); }
  .hero-leaderboard-preview { display: block; }
  .hero-registered { width: 100%; margin: 28px 0 0; }
  .leaderboard-preview-meta { font-size: .6rem; }
}
@media (max-width: 860px) {
  .page-home .hero-stage { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .page-home .hero { grid-column: 1; grid-row: 1; max-width: 600px; }
  .page-home .hero h1 { font-size: clamp(4.5rem, 13vw, 6.5rem); }
  .hero-registered { grid-column: 1; grid-row: 2; width: min(100%, 600px); margin: 0 auto; padding: 14px 0; border-top: 1px solid var(--line); }
  .hero-registered .registered-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 96px; }
  .hero-registered .registered-name { max-width: 100%; border: 0; border-radius: 999px; padding: 5px 10px; background: var(--paper-dark); font-size: .75rem; }
  .hero-leaderboard-preview { display: none; }
  .admin-grid { grid-template-columns: 1fr; }
  .days { max-height: 350px; }
  .editor { position: static; }
}
@media (max-width: 700px) {
  .shell, .page-home .shell, .page-history .shell, .page-admin .shell { width: calc(100% - 32px); padding-top: 16px; padding-bottom: 40px; }
  .topbar { gap: 10px; }
  .brand { gap: 7px; font-size: .63rem; letter-spacing: .035em; }
  .brand-mark { width: 30px; height: 30px; flex-shrink: 0; }
  .home-link, .back { padding: 8px 10px; font-size: .67rem; }
  .main-nav { margin-bottom: 30px; padding: 4px; }
  .main-nav a { min-height: 44px; padding: 7px 4px; font-size: .73rem; }
  .page-home .topbar { margin-bottom: 16px; padding-bottom: 12px; }
  .auth-trigger { max-width: 170px; min-height: 42px; }
  .day-pill { font-size: .68rem; padding: 9px 11px; }
  .page-home .hero-stage { margin-bottom: 26px; }
  .page-home .hero h1 { font-size: clamp(4.6rem, 19vw, 6.2rem); }
  .eyebrow { margin-bottom: 15px; font-size: .6rem; }
  .progress-wrap { max-width: 310px; margin-top: 18px; }
  .registered-head { margin-bottom: 8px; }
  .registered-title { font-size: .88rem; }
  .challenge-card { border-radius: 8px 26px 26px 26px; padding: 25px 20px 22px; }
  .challenge-card h2 { font-size: clamp(1.85rem, 7vw, 2.7rem); }
  .workout { font-size: clamp(2.5rem, 10vw, 3.8rem); }
  .levels { gap: 8px; margin-top: 24px; }
  .level { min-height: 88px; padding: 13px 5px; border-radius: 11px; }
  .level strong { font-size: 1.5rem; }
  .level span { font-size: .73rem; }
  .score-summary { grid-template-columns: 1fr 1fr; }
  .score-item:first-child { grid-column: 1/-1; border-right: 0; border-bottom: 1px solid #56715f; }
  .score-item:nth-child(2) { padding-left: 0; }
  .motivation { font-size: .71rem; align-items: flex-start; }
  .leaderboard-card { margin-top: 28px; padding: 22px 18px; border-radius: 20px; }
  .leaderboard-title { font-size: 1.8rem; }
  .leaderboard-head { gap: 12px; }
  .leaderboard-row { grid-template-columns: 36px minmax(0,1fr) auto; gap: 4px 8px; }
  .leaderboard-name { font-size: .85rem; }
  .leaderboard-rank { width: 32px; height: 32px; grid-row: 1/3; }
  .leaderboard-days { grid-column: 2/4; font-size: .65rem; }
  .leaderboard-you { font-size: .55rem; margin-left: 4px; }
  .content-grid { margin-top: 28px; }
  .rules li { font-size: .83rem; }
  .trump-quote-content { padding: 24px 16px; }
  .trump-quote-title { font-size: 1.12rem; }
  .trump-quote-dialog { padding: 12px; }
  .entry-gate { padding: 36px 20px; }
  .entry-brand { gap: 10px; margin-bottom: 34px; }
  .entry-brand-name { font-size: clamp(1.45rem, 6vw, 2rem); letter-spacing: -.035em; }
  .entry-brand-mark { width: 36px; height: 36px; }
  .entry-brand-mark svg { width: 20px; }
  .entry-title { font-size: clamp(3rem, 12vw, 5rem); line-height: 1.03; }
  .entry-actions { grid-template-columns: 1fr; margin-top: 30px; gap: 10px; }
  .entry-no { min-height: 48px; }
  .entry-registered { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); border-bottom: 0; }
  .rules-gate { padding: 32px 20px; }
  .rules-onboarding-title { font-size: clamp(2.8rem, 11vw, 4rem); }
  .rules-onboarding-card { min-height: 0; padding: 20px 16px; border-radius: 5px 20px 20px 20px; }
  .rules-onboarding-card h2 { font-size: 1.14rem; }
  .rules-onboarding-card p { font-size: .84rem; }
  .rules-onboarding-number { margin: 0; }
  .rules-onboarding-actions { margin-top: 22px; }
  .page-history .hero { margin: 32px 0 25px; }
  .page-history h1 { font-size: clamp(3.1rem, 12vw, 5rem); }
  .page-history .panel { padding: 20px 13px; border-radius: 18px; }
  .stats { grid-template-columns: repeat(2,1fr); row-gap: 20px; padding-bottom: 22px; }
  .stat { padding: 0 12px; }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(even) { border-right: 0; }
  .stat-value { font-size: 1.9rem; }
  .stat-label { font-size: .6rem; min-height: 0; }
  .summary-line { font-size: .8rem; }
  .competition { font-size: .78rem; padding: 11px 12px; }
  .calendar-head { align-items: baseline; gap: 8px; }
  .calendar-head h2 { font-size: 1.3rem; }
  .identity { max-width: 40%; overflow-wrap: anywhere; font-size: .68rem; }
  .weekdays, .calendar { gap: 4px; }
  .calendar-day, .calendar-spacer { aspect-ratio: auto; min-height: 72px; border-radius: 7px; }
  .calendar-day { padding: 6px 4px; }
  .day-number { font-size: .76rem; }
  .day-result { font-size: .58rem; }
  .day-points { font-size: .52rem; }
  .weekday { font-size: .55rem; }
  .legend { gap: 12px; font-size: .65rem; }
  .page-admin .topbar { margin-bottom: 28px; }
  .page-admin .panel { padding: 18px 14px; }
  .page-admin h1 { font-size: clamp(2.5rem, 9vw, 4rem); }
  .page-admin .intro { font-size: .9rem; }
  .schedule-head { align-items: flex-start; }
  .days { max-height: 320px; }
  .admin-grid { gap: 28px; }
  .form { gap: 14px; }
  .auth-panel { padding: 28px 22px; }
}
@media (max-width: 360px) {
  .page-home .shell, .page-history .shell, .page-admin .shell { width: calc(100% - 24px); }
  .page-admin h1 { font-size: clamp(2rem, 11vw, 2.5rem); }
  .day-pill { padding: 9px; font-size: .62rem; }
  .auth-trigger { max-width: 130px; padding: 10px; font-size: .7rem; }
  .challenge-card { padding: 22px 16px; }
  .calendar-day { padding: 5px 3px; min-height: 67px; }
  .day-result { font-size: .56rem; font-weight: 600; }
  .day-points { font-size: .55rem; font-weight: 600; }
  .entry-title { font-size: 2.9rem; }
  .entry-brand-name { font-size: 1.38rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* Keep the invitation compact and celebratory feedback unobstructed. */
.entry-content .entry-registered { width: min(100%, 480px); padding: 18px 0 0; border-top: 1px solid var(--line); border-bottom: 0; }
.entry-registered .registered-list { justify-content: center; }
body:has(.feedback.show) .mohv-egg { visibility: hidden; pointer-events: none; }
@media (min-width: 1320px) {
  .page-home .hero-stage { display: block; }
  .page-home .hero { max-width: 600px; }
  .hero-registered, .hero-leaderboard-preview { position: absolute; top: 16px; margin-top: 0; width: 210px; }
  .hero-registered { left: 0; }
  .hero-leaderboard-preview { right: 0; }
}

/* Utility text supports, rather than competes with, display typography. */
.registered-name, .leaderboard-preview-meta, .leaderboard-days, .rules-onboarding-card p,
.day-description, .day-meta, .field label, .bulk-copy, .auth-copy,
.score-label, .stat-label, .weekday, .identity { font-weight: 600; }
.leaderboard-preview-name, .leaderboard-preview-link, .main-nav a, .day-pill,
.auth-trigger, .day-date, .day-status, .progress-count, .dirty-count { font-weight: 750; }
/* Decorative leaves stay inside the scrollable invitation viewport. */
.entry-gate::before { top: 0; left: 0; width: 120px; height: 200px; border-radius: 0 0 100% 0; transform: none; }
.entry-gate::after { bottom: 0; right: 0; width: 120px; height: 220px; border-radius: 100% 0 0 0; transform: none; }
