/* masteryclub.ai home · one hero with the next live event. Scoped to .mc-home. */
.mc-home {
  --navy: #0b1838; --navy-2: #13264f; --ink: #0d1e45;
  --on-dark: #ffffff; --on-dark-2: #c9d4ea; --brass: #f3d9a4;
  --red: #c8102e; --red-hover: #a50d26; --blue: #5b84ff; --yellow: #f5b800;
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --body: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(20px, 5vw, 72px);
  margin: 0 !important; min-height: 100svh !important; display: flex !important; flex-direction: column !important;
  background: var(--navy) !important; color: var(--on-dark) !important; font: 400 17px/1.6 var(--body) !important;
  -webkit-font-smoothing: antialiased !important; color-scheme: dark !important;}
.mc-home *, .mc-home *::before, .mc-home *::after { box-sizing: border-box !important;}
.mc-home :where(h1, p, ol, ul) { margin: 0 !important; padding: 0 !important;}
.mc-home :where(h1, h2, h3, h4, h5, h6) { color: var(--on-dark) !important; }
.mc-home :where(ol, ul) { list-style: none !important;}
.mc-home a { color: inherit !important;}
.mc-home :focus-visible { outline: 3px solid #fff !important; outline-offset: 3px !important; border-radius: 6px !important;}
.mc-home .mc-sr { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important;}
.mc-home .nw { white-space: nowrap !important;}
.mc-home .skip { position: absolute !important; left: 16px !important; top: -60px !important; z-index: 10 !important; padding: 10px 16px !important; border-radius: 10px !important; background: #fff !important; color: var(--ink) !important; font-weight: 700 !important;}
.mc-home .skip:focus { top: 16px !important;}

/* Header */
.mc-home .top { position: absolute !important; inset: 0 0 auto !important; z-index: 3 !important; display: flex !important; align-items: center !important; justify-content: space-between !important; padding: clamp(18px, 3vw, 32px) var(--gutter) !important;}
.mc-home .logo img { display: block !important; width: auto !important; height: clamp(44px, 4.6vw, 62px) !important;}
.mc-home .login { padding: 10px 18px !important; border-radius: 999px !important; border: 1px solid rgba(255, 255, 255, .32) !important; font-size: 15px !important; font-weight: 600 !important; text-decoration: none !important; background: rgba(11, 24, 56, .35) !important; backdrop-filter: blur(8px) !important; transition: background .2s !important;}
.mc-home .login:hover { background: rgba(255, 255, 255, .14) !important;}
.mc-home .member-actions { display: flex !important; align-items: center !important; justify-content: flex-end !important; flex-wrap: wrap !important; gap: 8px !important;}
.mc-home .member-actions .logout { padding: 9px 13px !important; border-radius: 999px !important; border: 1px solid rgba(255, 255, 255, .32) !important; font-size: 14px !important; font-weight: 600 !important; text-decoration: none !important; background: rgba(11, 24, 56, .35) !important;}
.mc-home .member-actions .logout:hover { background: rgba(255, 255, 255, .14) !important;}

/* Hero: concept lobby art behind a navy wash that holds the text */
.mc-home .hero { position: relative !important; isolation: isolate !important; flex: 1 !important; display: grid !important; grid-template-rows: 1fr auto !important; min-height: 100svh !important; overflow: hidden !important;}
.mc-home .hero-art { position: absolute !important; inset: 0 !important; z-index: -2 !important; width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: 62% 50% !important; animation: drift 40s var(--ease) both !important;}
.mc-home .hero-shade { position: absolute !important; inset: 0 !important; z-index: -1 !important;
  background:
    linear-gradient(90deg, rgba(11, 24, 56, .97) 0%, rgba(11, 24, 56, .9) 34%, rgba(11, 24, 56, .55) 58%, rgba(11, 24, 56, .18) 80%, rgba(11, 24, 56, .05)),
    linear-gradient(0deg, rgba(11, 24, 56, .96) 0%, rgba(11, 24, 56, .4) 22%, transparent 42%),
    radial-gradient(60% 50% at 8% 10%, rgba(91, 132, 255, .22), transparent 70%) !important;}
@keyframes drift { from { transform: scale(1.08);} to { transform: scale(1);}}

.mc-home .hero-inner { align-self: center !important; width: min(100%, 1040px) !important; padding: clamp(118px, 15vh, 150px) var(--gutter) 28px !important; animation: rise 1s .1s var(--ease) both !important;}
@keyframes rise { from { opacity: 0; transform: translateY(18px);} to { opacity: 1; transform: none;}}
.mc-home .chip { display: inline-flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 4px 10px !important; padding: 8px 14px !important; border-radius: 999px !important; border: 1px solid rgba(243, 217, 164, .4) !important; background: rgba(11, 24, 56, .62) !important; backdrop-filter: blur(8px) !important; font: 500 12.5px/1.3 var(--mono) !important; letter-spacing: .1em !important; text-transform: uppercase !important; color: var(--brass) !important;}
.mc-home .chip .dot { width: 8px !important; height: 8px !important; border-radius: 50% !important; background: var(--red) !important; box-shadow: 0 0 0 0 rgba(200, 16, 46, .7) !important; animation: pulse 2.4s infinite !important;}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200, 16, 46, .7);} 70% { box-shadow: 0 0 0 10px rgba(200, 16, 46, 0);} 100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0);}}
.mc-home .tease { margin-top: 22px !important; font: 600 clamp(17px, 1.6vw, 20px)/1.4 var(--body) !important; color: var(--on-dark-2) !important;}
.mc-home h1 { margin-top: 10px !important; font: 800 clamp(42px, 6.1vw, 88px)/1 var(--display) !important; letter-spacing: -.045em !important;}
.mc-home .mark { position: relative !important; z-index: 0 !important; white-space: nowrap !important;}
.mc-home .mark::after { content: "" !important; position: absolute !important; z-index: -1 !important; left: -.04em !important; right: -.06em !important; bottom: .04em !important; height: .3em !important; border-radius: .08em !important; transform: skewX(-8deg) !important;}
.mc-home .mark.red::after { background: var(--red) !important;}
.mc-home .mark.blue::after { background: #2f5fe4 !important;}
.mc-home .lead { margin-top: 20px !important; max-width: 33em !important; font-size: clamp(16px, 1.35vw, 19px) !important; color: var(--on-dark-2) !important;}

/* Next live event card (filled by live-events.js from events.js) */
.mc-home .live-card { display: grid !important; grid-template-columns: minmax(0, 1fr) auto !important; align-items: center !important; gap: 16px 28px !important; max-width: 760px !important; margin-top: 26px !important; padding: 18px 20px 18px 22px !important; border-radius: 22px !important; background: rgba(11, 24, 56, .58) !important; border: 1px solid rgba(255, 255, 255, .16) !important; backdrop-filter: blur(12px) !important;}
.mc-home .live-card[hidden] { display: none !important;}
.mc-home .lc-label { display: flex !important; align-items: center !important; gap: 10px !important; font: 500 12.5px/1.3 var(--mono) !important; letter-spacing: .14em !important; text-transform: uppercase !important; color: var(--brass) !important;}
.mc-home .lc-label .dot { width: 8px !important; height: 8px !important; border-radius: 50% !important; background: var(--brass) !important;}
.mc-home .lc-title { margin: 6px 0 0 !important; font: 700 clamp(20px, 2vw, 26px)/1.15 var(--display) !important; letter-spacing: -.03em !important;}
.mc-home .lc-date { margin-top: 6px !important; font-weight: 600 !important;}
.mc-home .lc-guests { margin-top: 5px !important; color: var(--on-dark-2) !important; font-size: 14px !important;}
.mc-home .lc-guests[hidden] { display: none !important;}
.mc-home .lc-zones { display: flex !important; flex-wrap: wrap !important; gap: 2px 14px !important; margin-top: 2px !important; color: var(--on-dark-2) !important; font-size: 15px !important;}
.mc-home .lc-zones li + li::before { content: "·" !important; margin-right: 14px !important; color: rgba(255, 255, 255, .4) !important;}
.mc-home .lc-zones b { color: #fff !important; font-weight: 700 !important;}
.mc-home .lc-zones i { font-style: normal !important; font-size: 13px !important;}
.mc-home .lc-local { margin-top: 4px !important; font-size: 14px !important; color: var(--brass) !important;}
.mc-home .lc-msg { margin-top: 6px !important; font-weight: 600 !important;}
.mc-home .cd-grid { display: grid !important; grid-template-columns: repeat(4, 70px) !important; gap: 8px !important;}
.mc-home .cd-grid li { display: grid !important; justify-items: center !important; gap: 4px !important; padding: 11px 2px 9px !important; border-radius: 14px !important; background: rgba(255, 255, 255, .08) !important; border: 1px solid rgba(255, 255, 255, .16) !important;}
.mc-home .cd-grid b { font: 700 clamp(24px, 2.3vw, 30px)/1 var(--display) !important; letter-spacing: -.03em !important; font-variant-numeric: tabular-nums !important;}
.mc-home .cd-grid span { font: 500 10.5px/1.2 var(--mono) !important; letter-spacing: .1em !important; text-transform: uppercase !important; color: var(--on-dark-2) !important;}
/* one state at a time */
.mc-home .live-card :is(.lc-before, .lc-on, .lc-none) { display: none !important;}
.mc-home .live-card[data-state="before"] .lc-before, .mc-home .live-card[data-state="live"] .lc-on, .mc-home .live-card[data-state="none"] .lc-none { display: block !important;}
.mc-home .live-card .lc-label :is(.lc-before, .lc-on, .lc-none) { display: none !important;}
.mc-home .live-card[data-state="before"] .lc-label .lc-before, .mc-home .live-card[data-state="live"] .lc-label .lc-on, .mc-home .live-card[data-state="none"] .lc-label .lc-none { display: inline !important;}
.mc-home .live-card[data-state="none"] :is(.lc-title, .lc-date, .lc-guests, .lc-zones, .lc-local) { display: none !important;}
.mc-home .live-card[data-state="none"] { grid-template-columns: 1fr !important;}
.mc-home .live-card[data-state="live"] { border-color: rgba(255, 77, 94, .55) !important; box-shadow: 0 0 0 1px rgba(255, 77, 94, .25), 0 24px 60px -30px rgba(200, 16, 46, .9) !important;}
.mc-home .live-card[data-state="live"] .lc-label { color: #ff7a87 !important;}
.mc-home .live-card[data-state="live"] .lc-label .dot { background: var(--red) !important; animation: pulse 2.4s infinite !important;}

/* Call to action */
.mc-home .cta-row { display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 14px 20px !important; margin-top: 26px !important;}
.mc-home .btn { display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 12px !important; min-height: 60px !important; padding: 16px 30px !important; border-radius: 16px !important; background: var(--red) !important; color: #fff !important; font: 700 18px/1 var(--body) !important; text-decoration: none !important; box-shadow: 0 18px 40px -16px rgba(200, 16, 46, .8) !important; transition: background .2s, transform .2s var(--ease) !important;}
.mc-home .btn:hover { background: var(--red-hover) !important; transform: translateY(-2px) !important;}
.mc-home .btn svg { width: 22px !important; height: 22px !important; fill: none !important; stroke: currentColor !important; stroke-width: 2.4 !important; stroke-linecap: round !important; stroke-linejoin: round !important; transition: transform .2s var(--ease) !important;}
.mc-home .btn:hover svg { transform: translateX(3px) !important;}
.mc-home .btn.ghost { min-height: 56px !important; padding: 14px 24px !important; background: rgba(11, 24, 56, .35) !important; border: 1px solid rgba(255, 255, 255, .38) !important; box-shadow: none !important; font-size: 16px !important; backdrop-filter: blur(8px) !important;}
.mc-home .btn.ghost:hover { background: rgba(255, 255, 255, .14) !important;}
.mc-home .live-dot { display: none !important; width: 10px !important; height: 10px !important; border-radius: 50% !important; background: #fff !important; animation: pulse-w 2s infinite !important;}
@keyframes pulse-w { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7);} 70% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0);} 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);}}
.mc-home:has([data-mc-next-live][data-state="live"]) .live-dot { display: inline-block !important;}
/* nothing scheduled: the challenge becomes the main button */
.mc-home:has([data-mc-next-live][data-state="none"]) [data-join-live] { display: none !important;}
.mc-home:has([data-mc-next-live][data-state="none"]) .btn.ghost { background: var(--red) !important; border-color: transparent !important;}

/* Teaser strip along the bottom of the hero */
.mc-home .sides { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; margin: 0 var(--gutter) clamp(20px, 3vw, 32px) !important; border-top: 1px solid rgba(255, 255, 255, .18) !important;}
.mc-home .sides li { display: grid !important; grid-template-columns: auto 1fr !important; column-gap: 12px !important; align-content: start !important; padding: 18px 18px 0 0 !important;}
.mc-home .sides .n { grid-row: span 2 !important; font: 500 12px/1.9 var(--mono) !important; color: var(--brass) !important;}
.mc-home .sides b { font: 700 16px/1.3 var(--display) !important; letter-spacing: -.02em !important;}
.mc-home .sides span:last-child { font-size: 14.5px !important; color: var(--on-dark-2) !important;}
.mc-home .sides .ai b, .mc-home .sides .ai .n { color: #ff4d5e !important;}

.mc-home .foot { display: flex !important; flex-wrap: wrap !important; justify-content: space-between !important; gap: 10px 24px !important; padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom)) !important; background: #08122b !important; font-size: 13px !important; color: var(--on-dark-2) !important;}
.mc-home .foot nav { display: flex !important; flex-wrap: wrap !important; gap: 6px 18px !important;}
.mc-home .foot a { text-decoration: none !important;}
.mc-home .foot a:hover { text-decoration: underline !important;}

@media (max-width: 900px) {
  .mc-home .hero-art { object-position: 78% 50% !important;}
  .mc-home .hero-art { height: 62% !important;}
  .mc-home .hero-shade { background: linear-gradient(180deg, rgba(11, 24, 56, .42) 0%, rgba(11, 24, 56, .8) 20%, rgba(11, 24, 56, .93) 42%, var(--navy) 62%) !important;}
  .mc-home .sides { grid-template-columns: repeat(2, minmax(0, 1fr)) !important;}
  .mc-home .sides li { padding-bottom: 14px !important;}
  .mc-home .live-card { grid-template-columns: 1fr !important;}}
@media (max-width: 560px) {
  .mc-home .hero-inner { padding-top: 112px !important;}
  .mc-home .chip .sep { display: none !important;}
  .mc-home .chip { gap: 2px 10px !important;}
  .mc-home .chip .nw { flex-basis: 100% !important; padding-left: 18px !important;}
  .mc-home .sides { grid-template-columns: 1fr 1fr !important; column-gap: 12px !important;}
  .mc-home .live-card { padding: 16px !important;}
  .mc-home .lc-zones { gap: 6px !important; margin-top: 6px !important;}
  .mc-home .lc-zones li { padding: 3px 10px !important; border-radius: 999px !important; background: rgba(255, 255, 255, .08) !important;}
  .mc-home .lc-zones li + li::before { content: none !important;}
  .mc-home .cd-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px !important;}
  .mc-home .cd-grid span { font-size: 10px !important; letter-spacing: .06em !important;}
  .mc-home .cta-row { flex-direction: column !important; align-items: stretch !important; text-align: center !important;}
  .mc-home .btn { width: 100% !important;}
  .mc-home .sides li { padding: 14px 0 0 !important;}
  .mc-home .foot { flex-direction: column !important;}}
@media (min-width: 901px) and (max-height: 760px) {
  .mc-home .hero-inner { padding-top: 116px !important;}
  .mc-home .tease { margin-top: 18px !important;}
  .mc-home h1 { font-size: clamp(44px, 6vw, 80px) !important;}
  .mc-home .live-card, .mc-home .cta-row { margin-top: 20px !important;}
  .mc-home .lead { margin-top: 14px !important;}}
@media (prefers-reduced-motion: reduce) {
  .mc-home *, .mc-home *::before, .mc-home *::after { animation: none !important; transition: none !important;}}
