@import url('./brand-tokens.css');
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at 80% 15%,rgba(124,58,237,.18),transparent 32%),linear-gradient(180deg,var(--mt-bg),#070810 70%);color:var(--mt-text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.55}a{color:inherit;text-decoration:none}img{max-width:100%;display:block}.shell{width:min(1180px,calc(100% - 40px));margin:auto}.nav{position:sticky;top:0;z-index:50;background:rgba(8,11,18,.78);backdrop-filter:blur(16px);border-bottom:1px solid rgba(167,139,250,.14)}.nav-inner{height:76px;display:flex;align-items:center;gap:28px}.brand{display:flex;align-items:center;gap:12px;margin-right:auto}.brand img{width:46px;height:46px}.wordmark{font-weight:900;font-size:22px;letter-spacing:-.04em;line-height:1.25;padding-right:.1em;overflow:visible}.wordmark em{font-style:italic;color:var(--mt-primary);display:inline-block;padding:0 .1em .08em 0;overflow:visible}.menu{display:flex;gap:22px;font-size:14px;font-weight:700;color:#d7d6df}.menu a:hover,.menu a.active{color:var(--mt-primary)}.nav-cta,.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:12px;font-weight:800;transition:.2s ease;border:1px solid transparent}.nav-cta,.btn.primary{background:linear-gradient(135deg,var(--mt-primary-strong),var(--mt-primary));color:white;box-shadow:0 8px 32px rgba(124,58,237,.22)}.nav-cta{padding:11px 16px}.btn{padding:14px 19px}.btn.secondary{border-color:rgba(167,139,250,.38);background:rgba(20,20,36,.72)}.btn:hover{transform:translateY(-1px);filter:brightness(1.08)}.hamb{display:none;background:none;border:0;color:white;font-size:24px}.hero{min-height:690px;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:28px;position:relative;overflow:hidden}.hero:after{content:"";position:absolute;width:520px;height:520px;border:1px solid rgba(167,139,250,.13);border-radius:50%;right:-120px;top:40px;box-shadow:0 0 130px rgba(124,58,237,.16);z-index:-1}.eyebrow{font-size:13px;text-transform:uppercase;letter-spacing:.23em;color:var(--mt-primary);font-weight:800}.hero h1,.page-hero h1{font-size:clamp(55px,8vw,104px);line-height:1.01;margin:16px 0 18px;letter-spacing:-.075em;overflow:visible}.hero h1 span,.page-hero h1 span{display:block;font-style:italic;background:linear-gradient(180deg,var(--mt-primary),var(--mt-accent));-webkit-background-clip:text;background-clip:text;color:transparent;padding:0 .14em .14em .02em;margin:0 -.14em -.12em -.02em;overflow:visible}.lead{font-size:clamp(18px,2.3vw,25px);font-weight:700;margin:0 0 8px}.muted{color:var(--mt-muted)}.hero-copy .muted{max-width:620px}.hero-actions{display:flex;gap:12px;margin-top:28px;flex-wrap:wrap}.hero-art{align-self:end;filter:drop-shadow(0 34px 80px rgba(124,58,237,.22))}.hero-art img{max-height:650px;margin:auto}.section{padding:82px 0}.section.tight{padding-top:30px}.section-title{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:26px}.section-title h2{font-size:clamp(34px,5vw,54px);letter-spacing:-.045em;margin:0}.section-title p{max-width:560px;color:var(--mt-muted);margin:0}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.card{border:1px solid rgba(167,139,250,.16);background:linear-gradient(180deg,rgba(25,24,43,.88),rgba(13,16,32,.85));border-radius:18px;padding:22px;box-shadow:inset 0 1px rgba(255,255,255,.02)}.card .icon{font-size:28px;margin-bottom:16px}.card h3{margin:0 0 8px;font-size:18px}.card p{margin:0;color:var(--mt-muted);font-size:14px}.feature{grid-column:span 2;padding:30px;min-height:210px;display:flex;flex-direction:column;justify-content:flex-end;position:relative;overflow:hidden}.feature:before{content:"";position:absolute;width:220px;height:220px;border-radius:50%;background:var(--mt-primary-strong);filter:blur(90px);opacity:.16;right:-60px;top:-60px}.feature .tag{color:var(--mt-primary);font-size:12px;text-transform:uppercase;letter-spacing:.18em;font-weight:800}.feature h3{font-size:28px}.split{display:grid;grid-template-columns:1fr 1fr;gap:18px}.panel{padding:30px;border:1px solid rgba(167,139,250,.16);border-radius:20px;background:rgba(13,16,32,.78)}.panel h3{margin-top:0;font-size:28px}.list{display:grid;gap:12px;margin-top:22px}.list-item{display:flex;justify-content:space-between;gap:18px;padding:14px 0;border-bottom:1px solid rgba(167,139,250,.12)}.list-item:last-child{border:0}.list-item strong{font-size:14px}.list-item span{color:var(--mt-muted);font-size:13px}.cta{padding:48px;border-radius:24px;background:radial-gradient(circle at 80% 30%,rgba(232,121,249,.22),transparent 28%),linear-gradient(135deg,rgba(124,58,237,.22),rgba(20,20,36,.9));border:1px solid rgba(167,139,250,.26);display:flex;align-items:center;justify-content:space-between;gap:30px}.cta h2{font-size:clamp(34px,5vw,52px);margin:0 0 8px;letter-spacing:-.04em}.footer{padding:34px 0 50px;border-top:1px solid rgba(167,139,250,.12);color:var(--mt-muted);font-size:13px}.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}.footer-links{display:flex;gap:18px}.page-hero{padding:96px 0 50px}.page-hero h1{font-size:clamp(52px,7vw,86px);max-width:900px}.content{max-width:860px}.content h2{margin-top:46px;font-size:32px}.content p,.content li{color:#c4c3cc}.game-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.game-card{min-height:240px}.game-card .pill{display:inline-flex;padding:6px 10px;border:1px solid rgba(167,139,250,.24);border-radius:999px;color:var(--mt-primary);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.12em}.form{display:grid;gap:14px}.form input,.form textarea{width:100%;padding:14px 15px;border-radius:12px;border:1px solid rgba(167,139,250,.22);background:#0b0d17;color:white;font:inherit}.form textarea{min-height:150px;resize:vertical}.note{border-left:3px solid var(--mt-primary);padding:14px 16px;background:rgba(167,139,250,.06);color:var(--mt-muted);border-radius:0 12px 12px 0}.skip{position:absolute;left:-10000px;top:auto}.skip:focus{left:16px;top:16px;z-index:999;background:white;color:black;padding:8px 12px}.legal-placeholder{border:1px dashed rgba(232,121,249,.5);padding:18px;border-radius:14px;background:rgba(232,121,249,.06)}

.brand-switch{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid rgba(167,139,250,.2);border-radius:11px;color:#d8d7e2;font-size:12px;font-weight:800;white-space:nowrap;background:rgba(255,255,255,.02)}
.brand-switch span{color:var(--mt-primary);font-size:10px;letter-spacing:.12em;text-transform:uppercase}
.brand-switch:hover{border-color:rgba(167,139,250,.48);color:white;background:rgba(167,139,250,.07)}
.today-mobile{display:none!important}
.live-shell{padding:42px 0 24px;position:relative}
.live-shell:before{content:"";position:absolute;inset:0 0 auto;height:560px;pointer-events:none;background:radial-gradient(circle at 72% 12%,rgba(124,58,237,.2),transparent 34%);z-index:-1}
.live-head{display:flex;align-items:end;justify-content:space-between;gap:28px;margin-bottom:20px}
.live-head h2{margin:4px 0 6px;font-size:clamp(34px,5vw,58px);letter-spacing:-.05em;line-height:1.02}
.live-head p{margin:0;color:var(--mt-muted);max-width:760px}
.live-accent{color:var(--mt-primary)}
.live-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.twitch-stage{display:grid;grid-template-columns:minmax(0,1fr) 360px;align-items:stretch;overflow:hidden;border:1px solid rgba(167,139,250,.24);border-radius:22px;background:#05050a;box-shadow:0 28px 90px rgba(0,0,0,.38),0 0 70px rgba(124,58,237,.08)}
.twitch-player-wrap{position:relative;aspect-ratio:16/9;min-width:0;background:#000}
.twitch-player-wrap:before{content:"Stream wird geladen …";position:absolute;inset:0;display:grid;place-items:center;color:#77758a;font-size:13px;letter-spacing:.04em;z-index:0}
.twitch-player-wrap iframe,.twitch-chat-wrap iframe{position:relative;z-index:1;width:100%;height:100%;border:0;display:block;background:#0e0e10}
.twitch-chat-wrap{min-width:0;display:flex;flex-direction:column;border-left:1px solid rgba(167,139,250,.18);background:#0e0e10}
.chat-top{height:48px;flex:0 0 48px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 14px;background:#121218;border-bottom:1px solid rgba(167,139,250,.14);font-size:13px;font-weight:800}
.chat-top small{font-size:10px;color:var(--mt-muted);font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.twitch-chat-wrap iframe{flex:1;min-height:0}
.twitch-note{display:flex;align-items:center;gap:9px;margin-top:12px;color:var(--mt-muted);font-size:12px}
.twitch-note:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--mt-primary);box-shadow:0 0 14px rgba(167,139,250,.7);flex:0 0 auto}
.cross-card{display:flex;align-items:center;justify-content:space-between;gap:32px;padding:34px;border:1px solid rgba(167,139,250,.18);border-radius:22px;background:linear-gradient(135deg,rgba(20,20,36,.84),rgba(13,16,32,.76))}
.cross-card h2{font-size:clamp(30px,4vw,44px);letter-spacing:-.04em;margin:3px 0 8px}
.cross-card p{margin:0;color:var(--mt-muted);max-width:720px}

@media(max-width:1000px){.twitch-stage{grid-template-columns:1fr}.twitch-chat-wrap{border-left:0;border-top:1px solid rgba(167,139,250,.18);min-height:480px}.live-head{align-items:flex-start}.cross-card{align-items:flex-start}}
@media(max-width:900px){.brand-switch{display:none}.menu{display:none;position:absolute;top:76px;left:0;right:0;padding:18px 22px;background:#0b0d17;border-bottom:1px solid rgba(167,139,250,.18);flex-direction:column}.menu.open{display:flex}.menu .today-mobile{display:block!important}.hamb{display:block}.nav-cta{display:none}.hero{grid-template-columns:1fr;min-height:auto;padding-top:74px}.hero-art{order:-1;max-width:520px;margin:auto}.hero-copy{text-align:center}.hero-copy .muted{margin-left:auto;margin-right:auto}.hero-actions{justify-content:center}.grid{grid-template-columns:1fr 1fr}.feature{grid-column:auto}.split,.game-grid{grid-template-columns:1fr}.cta{align-items:flex-start;flex-direction:column}}
@media(max-width:560px){.live-shell{padding-top:24px}.live-head{flex-direction:column;margin-bottom:16px}.live-actions{justify-content:flex-start}.twitch-stage{border-radius:16px}.twitch-chat-wrap{min-height:520px}.chat-top{height:44px;flex-basis:44px}.cross-card{padding:24px;flex-direction:column}.shell{width:min(100% - 28px,1180px)}.nav-inner{height:66px}.brand img{width:39px;height:39px}.wordmark{font-size:19px}.hero h1{font-size:58px}.grid{grid-template-columns:1fr}.section{padding:62px 0}.cta{padding:28px}.footer-links{flex-wrap:wrap}}

/* MarcelTonight compact live-first layout */
.wordmark{line-height:1.4;padding-bottom:.14em;white-space:nowrap}
.wordmark em{padding-bottom:.16em;margin-bottom:-.08em}
.home-live{padding:28px 0 18px;min-height:calc(100svh - 76px);display:flex;align-items:flex-start}
.live-identity{display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:18px;margin-bottom:18px}
.live-identity>img{width:72px;height:72px;object-fit:contain;filter:drop-shadow(0 10px 26px rgba(124,58,237,.22))}
.live-identity-copy{min-width:0}
.live-identity h1{margin:1px 0 2px;font-size:clamp(34px,4.1vw,58px);line-height:1.08;letter-spacing:-.055em;overflow:visible}
.live-identity h1 span{font-style:italic;color:var(--mt-primary);display:inline-block;padding:0 .12em .14em .04em;margin:0 -.12em -.12em 0;overflow:visible}
.live-identity p{margin:2px 0 0;color:var(--mt-muted);max-width:780px;font-size:14px}
.live-identity-actions{justify-self:end}
.twitch-stage-home{grid-template-columns:minmax(0,1fr) 340px}
.home-bottom-bar{margin-top:14px;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.home-bottom-bar>div,.home-bottom-bar>a{display:flex;align-items:center;gap:10px;min-height:54px;padding:10px 14px;border:1px solid rgba(167,139,250,.14);border-radius:14px;background:rgba(13,16,32,.68)}
.home-bottom-bar>a:hover{border-color:rgba(167,139,250,.36);background:rgba(167,139,250,.07)}
.home-bottom-bar strong{font-size:13px;color:#fff;white-space:nowrap}
.home-bottom-bar span{font-size:12px;color:var(--mt-muted)}
.mobile-chat-toggle{display:none;width:100%;margin-top:10px;padding:12px 14px;border-radius:12px;border:1px solid rgba(167,139,250,.28);background:rgba(20,20,36,.8);color:#fff;font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.footer-compact{padding-top:20px;padding-bottom:26px}

.compact-page{min-height:calc(100svh - 76px - 92px);padding:72px 0 44px;display:flex;flex-direction:column;justify-content:center}
.compact-page h1{font-size:clamp(48px,7vw,84px);line-height:1.02;letter-spacing:-.065em;margin:10px 0 14px;max-width:1040px;overflow:visible}
.compact-page h1 span{font-style:italic;color:var(--mt-primary);display:inline-block;padding:0 .13em .13em .03em;margin:0 -.13em -.11em -.03em;overflow:visible}
.compact-page>.lead{margin-bottom:6px}
.compact-page>.muted{max-width:900px;margin-top:0}
.compact-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:26px}
.compact-cards.two{grid-template-columns:repeat(2,1fr)}
.compact-cards .card{min-height:150px}
.compact-cards .card h3{font-size:20px}
.text-link{display:inline-block;margin-top:12px;color:var(--mt-primary);font-weight:800;font-size:13px}
.page-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.brand-duo{display:grid;grid-template-columns:1fr auto 1fr;gap:20px;align-items:center;margin-top:28px;padding:20px;border:1px solid rgba(167,139,250,.18);border-radius:18px;background:rgba(13,16,32,.72)}
.brand-duo>div:not(.duo-arrow){display:flex;flex-direction:column;gap:3px}
.brand-duo strong{font-size:20px}
.brand-duo span{font-size:13px;color:var(--mt-muted)}
.duo-arrow{font-size:30px;color:var(--mt-primary)}
.compact-live-page{min-height:calc(100svh - 76px - 86px);padding-top:34px}
.stream-page-title{font-size:clamp(38px,5vw,62px);line-height:1.02;letter-spacing:-.05em;margin:4px 0 6px}
.stream-page-title span{color:var(--mt-primary);font-style:italic}

.legal-nav{margin-left:auto;color:var(--mt-muted);font-size:13px;font-weight:800}
.legal-nav a:hover{color:var(--mt-primary)}
.legal-page{max-width:900px;padding:64px 0 72px}
.legal-page h1{font-size:clamp(46px,7vw,76px);line-height:1;margin:8px 0 34px;letter-spacing:-.055em}
.legal-page h2{font-size:21px;margin:30px 0 8px}
.legal-page p{color:#c8c7d0;margin:0 0 12px}

@media(min-width:1001px) and (max-height:850px){
  .home-live{padding-top:18px}
  .live-identity{margin-bottom:12px;grid-template-columns:60px minmax(0,1fr) auto}
  .live-identity>img{width:60px;height:60px}
  .live-identity h1{font-size:42px}
  .live-identity p{font-size:13px}
  .twitch-stage-home{grid-template-columns:minmax(0,1fr) 320px}
  .home-bottom-bar{margin-top:10px}
  .home-bottom-bar>div,.home-bottom-bar>a{min-height:46px;padding-top:7px;padding-bottom:7px}
}

@media(max-width:900px){
  .home-live{min-height:auto;padding-top:24px}
  .live-identity{grid-template-columns:58px minmax(0,1fr);gap:14px}
  .live-identity>img{width:58px;height:58px}
  .live-identity-actions{grid-column:1/-1;justify-self:start}
  .live-identity h1{font-size:42px}
  .home-bottom-bar{grid-template-columns:1fr}
  .compact-page{min-height:auto;padding:58px 0 44px}
  .compact-cards,.compact-cards.two{grid-template-columns:1fr}
  .brand-duo{grid-template-columns:1fr;text-align:left}
  .duo-arrow{transform:rotate(90deg);justify-self:start}
}


@media (prefers-reduced-motion:reduce){
  .site-modal[open],
  .site-modal[open]::backdrop,
  .site-modal[open] .site-modal-shell,
  .site-modal.is-closing,
  .site-modal.is-closing::backdrop,
  .site-modal.is-closing .site-modal-shell{animation-duration:.01ms!important}
}

@media(max-width:700px){
  .twitch-chat-wrap{display:none;min-height:430px}
  .twitch-chat-wrap.is-open{display:flex}
  .mobile-chat-toggle{display:block}
  .twitch-stage{grid-template-columns:1fr}
  .home-live{padding-top:18px}
  .live-identity{grid-template-columns:48px minmax(0,1fr);margin-bottom:12px}
  .live-identity>img{width:48px;height:48px}
  .live-identity h1{font-size:34px}
  .live-identity p{font-size:12.5px;line-height:1.45}
  .live-identity-actions{display:none}
  .home-bottom-bar>div,.home-bottom-bar>a{align-items:flex-start;flex-direction:column;gap:2px}
  .home-bottom-bar strong{white-space:normal}
  .compact-page h1{font-size:48px}
  .legal-page{padding-top:44px}
}

@media(max-width:560px){
  .wordmark{font-size:18px}
  .compact-page{padding-top:42px}
  .compact-page h1{font-size:42px}
  .compact-cards{margin-top:20px}
  .compact-cards .card{min-height:0}
  .footer{padding-bottom:28px}
}


/* Desktop viewport fit: Startseite ohne unnötigen Vertikal-Scroll */
@media (min-width:901px){
  body.home-page{
    min-height:100vh;
    min-height:100svh;
    height:100vh;
    height:100svh;
    display:flex;
    flex-direction:column;
    overflow:hidden;
  }
  body.home-page .nav{
    flex:0 0 76px;
  }
  body.home-page main{
    flex:1 1 auto;
    min-height:0;
    display:flex;
  }
  body.home-page .home-live{
    flex:1 1 auto;
    min-height:0;
    width:100%;
    padding-top:clamp(12px,1.8vh,24px);
    padding-bottom:clamp(6px,1vh,12px);
    overflow:hidden;
  }
  body.home-page .home-live>.shell{
    height:100%;
    min-height:0;
    display:flex;
    flex-direction:column;
  }
  body.home-page .live-identity{
    flex:0 0 auto;
    margin-bottom:clamp(10px,1.4vh,16px);
  }
  body.home-page .twitch-stage-home{
    flex:0 1 auto;
  }
  body.home-page .home-bottom-bar{
    flex:0 0 auto;
    margin-top:clamp(7px,1vh,12px);
  }
  body.home-page .footer-compact{
    flex:0 0 auto;
    padding-top:10px;
    padding-bottom:12px;
  }
}

/* Niedrige Desktop-Fenster (z. B. 1080p mit Browserleisten): noch kompakter. */
@media (min-width:901px) and (max-height:900px){
  body.home-page .home-live{padding-top:10px;padding-bottom:6px}
  body.home-page .live-identity{grid-template-columns:54px minmax(0,1fr) auto;gap:14px;margin-bottom:8px}
  body.home-page .live-identity>img{width:54px;height:54px}
  body.home-page .live-identity h1{font-size:38px}
  body.home-page .live-identity p{font-size:12px;line-height:1.4}
  body.home-page .btn{padding:10px 14px}
  body.home-page .home-bottom-bar{margin-top:7px}
  body.home-page .home-bottom-bar>div,
  body.home-page .home-bottom-bar>a{min-height:42px;padding:6px 11px}
  body.home-page .footer-compact{padding-top:7px;padding-bottom:9px}
}

/* Mobile bleibt normal scrollbar; dort sollen Inhalte nicht abgeschnitten werden. */
@media (max-width:900px){
  body.home-page{min-height:100svh;overflow-x:hidden}
}

/* MarcelTonight internal pages as modals */
body.mt-modal-open{overflow:hidden}
.site-modal{
  width:min(960px,calc(100vw - 36px));
  max-width:960px;
  max-height:min(88svh,940px);
  padding:0;
  border:1px solid rgba(167,139,250,.28);
  border-radius:22px;
  background:linear-gradient(180deg,rgba(18,17,34,.99),rgba(8,10,20,.995));
  color:var(--mt-text);
  box-shadow:0 32px 110px rgba(0,0,0,.72),0 0 80px rgba(124,58,237,.14);
  overflow:hidden;
}
.site-modal::backdrop{
  background:rgba(2,3,8,.78);
  backdrop-filter:blur(10px);
}

/* Smooth modal entrance/exit. The backdrop and card fade independently so the
   transition feels soft instead of popping onto the page. */
.site-modal[open]{
  animation:mt-modal-fade-in .18s ease-out both;
}
.site-modal[open]::backdrop{
  animation:mt-modal-backdrop-in .18s ease-out both;
}
.site-modal[open] .site-modal-shell{
  transform-origin:center top;
  animation:mt-modal-panel-in .22s cubic-bezier(.16,1,.3,1) both;
}
.site-modal.is-closing{
  animation:mt-modal-fade-out .15s ease-in both;
}
.site-modal.is-closing::backdrop{
  animation:mt-modal-backdrop-out .15s ease-in both;
}
.site-modal.is-closing .site-modal-shell{
  animation:mt-modal-panel-out .15s ease-in both;
}
@keyframes mt-modal-fade-in{from{opacity:0}to{opacity:1}}
@keyframes mt-modal-fade-out{from{opacity:1}to{opacity:0}}
@keyframes mt-modal-backdrop-in{from{background:rgba(2,3,8,0);backdrop-filter:blur(0)}to{background:rgba(2,3,8,.78);backdrop-filter:blur(10px)}}
@keyframes mt-modal-backdrop-out{from{background:rgba(2,3,8,.78);backdrop-filter:blur(10px)}to{background:rgba(2,3,8,0);backdrop-filter:blur(0)}}
@keyframes mt-modal-panel-in{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes mt-modal-panel-out{from{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(6px) scale(.99)}}
.site-modal-shell{
  position:relative;
  display:flex;
  flex-direction:column;
  max-height:min(88svh,940px);
}
.site-modal-top{
  position:sticky;
  top:0;
  z-index:4;
  min-height:54px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:10px 12px 10px 20px;
  border-bottom:1px solid rgba(167,139,250,.14);
  background:rgba(9,10,20,.94);
  backdrop-filter:blur(14px);
}
.site-modal-label{
  color:var(--mt-primary);
  font-size:11px;
  line-height:1;
  font-weight:900;
  letter-spacing:.18em;
  text-transform:uppercase;
}
.site-modal-close{
  width:36px;
  height:36px;
  flex:0 0 36px;
  display:grid;
  place-items:center;
  border:1px solid rgba(167,139,250,.24);
  border-radius:11px;
  background:rgba(255,255,255,.035);
  color:#fff;
  font:inherit;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}
.site-modal-close:hover,.site-modal-close:focus-visible{
  background:rgba(167,139,250,.12);
  border-color:rgba(167,139,250,.5);
  outline:none;
}
.site-modal-content{
  min-height:160px;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
.site-modal-content>.compact-page,
.site-modal-content>.legal-page,
.site-modal-content>.live-shell{
  width:auto;
  min-height:0;
  max-width:none;
  margin:0;
  padding:34px 34px 38px;
}
.site-modal-content>.compact-page{justify-content:flex-start}
.site-modal-content>.compact-page h1{
  font-size:clamp(38px,6vw,64px);
  margin-top:7px;
}
.site-modal-content>.legal-page h1{
  font-size:clamp(38px,6vw,60px);
  margin-bottom:25px;
}
.site-modal-content>.legal-page h2{margin-top:24px}
.site-modal-content .compact-cards{margin-top:20px}
.site-modal-content .page-actions{margin-top:20px}
.site-modal-loading,.site-modal-error{
  min-height:220px;
  display:grid;
  place-items:center;
  padding:32px;
  color:var(--mt-muted);
  text-align:center;
}
.site-modal-loading:before{
  content:"";
  width:30px;
  height:30px;
  margin-right:12px;
  border:3px solid rgba(167,139,250,.2);
  border-top-color:var(--mt-primary);
  border-radius:50%;
  animation:mt-modal-spin .8s linear infinite;
}
@keyframes mt-modal-spin{to{transform:rotate(360deg)}}

/* The embedded stream modal may be wider than text/legal modals. */
.site-modal.is-stream-modal{
  width:min(1380px,calc(100vw - 28px));
  max-width:1380px;
  max-height:92svh;
}
.site-modal.is-stream-modal .site-modal-shell{max-height:92svh}
.site-modal.is-stream-modal .site-modal-content>.live-shell{padding:24px}

@media(max-width:700px){
  .site-modal{
    width:calc(100vw - 16px);
    max-height:calc(100svh - 16px);
    border-radius:17px;
  }
  .site-modal-shell{max-height:calc(100svh - 16px)}
  .site-modal-top{min-height:50px;padding:8px 8px 8px 16px}
  .site-modal-content>.compact-page,
  .site-modal-content>.legal-page,
  .site-modal-content>.live-shell{padding:25px 18px 30px}
  .site-modal-content>.compact-page h1,
  .site-modal-content>.legal-page h1{font-size:38px}
  .site-modal.is-stream-modal{
    width:calc(100vw - 10px);
    max-height:calc(100svh - 10px);
  }
  .site-modal.is-stream-modal .site-modal-shell{max-height:calc(100svh - 10px)}
  .site-modal.is-stream-modal .site-modal-content>.live-shell{padding:16px 10px 22px}
}
