/* Original NIMO wordmark, centered on the existing particle circle. */
#s0.scene.hero{padding:0 70px;min-height:100svh}
#s0 .hgrid{--logo-width:clamp(360px,45vw,600px);--logo-height:calc(var(--logo-width) * 116 / 427);display:block;width:100%;max-width:1150px;min-height:100svh;margin-inline:auto;padding:0;gap:0}
#s0 .hgrid>.hero-heading{display:flex;flex-direction:column;align-items:center;width:100%;padding-top:131px}
#s0 .hero-heading .tag{margin-bottom:17px}
#s0 .hero-heading h1{font-size:clamp(40px,4.2vw,58px);max-width:1100px;line-height:1.12}
#s0 .hero-logo{position:absolute;left:50%;top:50svh;transform:translate(-50%,-50%);width:var(--logo-width);height:var(--logo-height);filter:drop-shadow(0 0 28px #ffffff14)}
#s0 .hero-logo-color{display:block;width:100%;height:100%;background:#fff;mask:url('img/brand/nimo-wordmark.png') center/contain no-repeat;-webkit-mask:url('img/brand/nimo-wordmark.png') center/contain no-repeat;animation:none}
#s0 .hero-invite{position:absolute;inset-inline:0;top:calc(50svh + var(--logo-height) / 2 + 34px);display:flex;flex-direction:column;align-items:center;padding-bottom:34px}
#s0 .hero-invite .lead{margin:0 auto;font-size:16px;max-width:700px}
#s0 .hero-invite .chips,#s0 .hero-invite .go{margin-top:21px}
@media(min-width:768px) and (max-height:820px){
 #s0 .hgrid{--logo-width:clamp(340px,40vw,480px)}
 #s0 .hero-heading h1{font-size:clamp(38px,3.5vw,48px);max-width:960px}
 #s0 .hero-heading .tag{margin-bottom:13px}
 #s0 .hero-invite{top:calc(50svh + var(--logo-height) / 2 + 27px)}
 #s0 .hero-invite .lead{font-size:15px;max-width:700px}
 #s0 .hero-invite .chips,#s0 .hero-invite .go{margin-top:17px}
 #s0 .hero-invite .go .btn{height:50px;min-height:50px}
}
@media(min-width:768px) and (max-height:700px){
 #s0 .hgrid{--logo-width:360px}
 #s0 .hgrid>.hero-heading{padding-top:110px}
 #s0 .hero-heading h1{font-size:38px;max-width:850px}
 #s0 .hero-heading .tag{padding:8px 17px;font-size:11px}
 #s0 .hero-invite{top:calc(50svh + var(--logo-height) / 2 + 21px)}
 #s0 .hero-invite .chips,#s0 .hero-invite .go{margin-top:13px}
}
@media(max-width:767px){
 #s0.scene.hero{padding:104px 21px 55px}
 #s0 .hgrid{--logo-width:min(82vw,380px);display:flex;flex-direction:column;align-items:center;min-height:0}
 #s0 .hgrid>.hero-heading{padding-top:0}
 #s0 .hero-heading h1{font-size:36px;max-width:18ch}
 #s0 .hero-heading .tag{margin-bottom:21px}
 #s0 .hero-logo{position:relative;left:auto;top:auto;transform:none;flex:none;width:min(100%,380px);height:auto;aspect-ratio:427/116;margin:34px auto}
 #s0 .hero-invite{position:static;padding-bottom:0;width:100%}
 #s0 .hero-invite .lead{font-size:15px}
 #s0 .hero-invite .chips{gap:8px}
 #s0 .hero-invite .go{max-width:330px}
}
@media(prefers-reduced-motion:reduce){#s0 .hero-logo-color{animation:none!important}}

/* The existing second screen brings the six cards together. */
#s1.scene{padding-top:131px;padding-bottom:55px}
#s1 .wrap{max-width:1200px}
#s1 .chapter-head{min-height:0;grid-template-columns:minmax(0,1fr) 230px;gap:34px;margin-bottom:21px}
#s1 .chapter-character{height:220px}
#s1 .chapter-head h2{font-size:clamp(36px,3.4vw,52px);max-width:30ch}
#s1 .chapter-head .tag{margin-bottom:13px}
#s1 .hero-stats{max-width:none;margin:0;gap:21px}
#s1 .neo-stat{padding:21px 27px!important;min-height:0}
#s1 .neo-stat>.nimo-picto{width:32px;height:32px;margin-bottom:13px}
#s1 .neo-stat b{font-size:clamp(36px,3.3vw,48px);margin-top:8px}
#s1 .neo-stat small{margin-top:5px}
#s1 .g3{margin-top:21px;gap:21px}
#s1 .g3>.tilt{padding:27px}
#s1 .g3>.tilt>.nimo-picto{float:right;width:32px;height:32px;margin:0 0 8px 13px}
#s1 .tilt .k{margin-bottom:10px;min-height:22px;display:flex;align-items:center}
#s1 .tilt h3{font-size:25px;line-height:1.15;margin-bottom:10px}
#s1 .tilt p{font-size:16px;line-height:1.45}
@media(min-width:768px) and (max-height:820px){
 #s1.scene{padding-top:110px;padding-bottom:34px}
 #s1 .chapter-head{grid-template-columns:minmax(0,1fr) 160px;gap:27px;margin-bottom:17px}
 #s1 .chapter-character{height:158px}
 #s1 .chapter-head h2{font-size:36px;max-width:32ch}
 #s1 .chapter-head .tag{margin-bottom:10px;padding:8px 17px;font-size:11px}
 #s1 .hero-stats,#s1 .g3{gap:17px}
 #s1 .neo-stat{display:grid;grid-template-columns:34px minmax(0,1fr);column-gap:17px;align-content:center;padding:21px!important}
 #s1 .neo-stat>.nimo-picto{grid-column:1;grid-row:1/span 3;margin:3px 0 0}
 #s1 .neo-stat>:is(em,b,small){grid-column:2}
 #s1 .neo-stat em{font-size:14px}
 #s1 .neo-stat b{font-size:38px;margin-top:6px}
 #s1 .neo-stat small{font-size:13px;margin-top:5px}
 #s1 .g3{margin-top:17px}
 #s1 .g3>.tilt{padding:21px}
 #s1 .tilt h3{font-size:23px;margin-bottom:8px}
 #s1 .tilt p{font-size:15px;line-height:1.45}
}
@media(max-width:767px){
 #s1.scene{padding-top:104px;padding-bottom:55px}
 #s1 .chapter-head{grid-template-columns:minmax(0,1fr) 86px;gap:13px;margin-bottom:27px}
 #s1 .chapter-character{height:130px}
 #s1 .chapter-head h2{font-size:29px;max-width:none}
 #s1 .chapter-head .tag{font-size:10px;padding:8px 13px}
 #s1 .hero-stats{max-width:none;gap:13px}
 #s1 .neo-stat{padding:21px!important}
 #s1 .neo-stat b{font-size:40px}
 #s1 .neo-stat>.nimo-picto{width:38px;height:38px;margin:4px 0 0}
 #s1 .g3{margin-top:21px;gap:13px}
 #s1 .g3>.tilt{padding:21px}
 #s1 .tilt h3{font-size:25px}
}

/* Championship list, preview and total share a single desktop frame. */
#s5.scene{padding-top:131px;padding-bottom:55px}
#s5 .wrap{max-width:1200px}
#s5 .chapter-head{min-height:0;grid-template-columns:minmax(0,1fr) 160px;gap:34px;margin-bottom:21px}
#s5 .chapter-head h2{font-size:clamp(36px,3.4vw,52px);max-width:none}
#s5 .chapter-head h2>.y{display:block}
#s5 .chapter-head .tag{margin-bottom:13px}
#s5 .chapter-character{height:170px}
#s5 .bgrid{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:34px;margin-top:0;align-items:stretch}
#s5 .board .rowbtn{min-height:0;padding:5px 8px;gap:13px;border-radius:8px}
#s5 .board-avatar{flex:0 0 46px;width:46px;height:46px;border-radius:8px}
#s5 .board-avatar.is-brand{padding:5px}
#s5 .board-avatar.is-nimo{padding:7px}
#s5 .board-copy{gap:3px}
#s5 .board-name{font-size:18px;line-height:1.2}
#s5 .board td small{font-size:12px;line-height:1.25}
#s5 .board td:last-child{width:108px;font-size:16px;padding:5px 8px 5px 13px}
#s5 .bgrid .peek{position:relative;top:auto;order:0;margin:0;padding:0;border:0;background:transparent;display:flex;flex-direction:column;overflow:visible}
#s5 .peek .win{transform:none;flex:none}
#s5 .peek .pk{margin-top:10px}
#s5 .peek .pk b{font-size:18px}
#s5 .peek .pk span{font-size:10px;letter-spacing:.025em}
#s5 .peek .fine{display:block;font-size:12px;line-height:1.4;margin-top:6px!important}
#s5 .total{margin-top:21px;flex:1;display:flex;align-items:center;justify-content:center}
#s5 .board-total-copy{padding:21px;gap:7px;width:100%}
#s5 .board-total-copy>.nimo-picto{display:none}
#s5 .total .board-total-label{font-size:12px}
#s5 .total em{font-size:14px}
#s5 .total strong{font-size:46px;line-height:1.12}
#s5 .total .board-total-note{font-size:14px;line-height:1.4}
#s5 .total .board-total-date{font-size:12px;line-height:1.4}
@media(min-width:768px) and (max-height:820px){
 #s5.scene{padding-top:110px;padding-bottom:21px}
 #s5 .chapter-head{grid-template-columns:minmax(0,1fr) 125px;gap:27px;margin-bottom:17px}
 #s5 .chapter-character{height:125px}
 #s5 .chapter-head h2{font-size:36px}
 #s5 .chapter-head .tag{margin-bottom:10px;font-size:11px;padding:8px 17px}
 #s5 .bgrid{gap:27px}
 #s5 .board .rowbtn{padding:4px 6px;gap:10px}
 #s5 .board-avatar{flex-basis:36px;width:36px;height:36px}
 #s5 .board-name{font-size:16px}
 #s5 .board-copy{gap:2px}
 #s5 .board td small{font-size:11px}
 #s5 .board td:last-child{width:96px;font-size:14px;padding:4px 6px 4px 10px}
 #s5 .board-total-copy{padding:17px;gap:5px}
 #s5 .total{margin-top:13px}
 #s5 .total strong{font-size:40px}
 #s5 .peek .win-bar{height:27px}
 #s5 .peek .pk{margin-top:8px}
}
@media(max-width:767px){
 #s5.scene{padding-top:104px;padding-bottom:55px}
 #s5 .chapter-head{grid-template-columns:minmax(0,1fr) 86px;gap:13px;margin-bottom:27px}
 #s5 .chapter-head h2{font-size:29px}
 #s5 .chapter-character{height:130px}
 #s5 .chapter-head .tag{font-size:10px;padding:8px 13px}
 #s5 .bgrid{grid-template-columns:1fr;gap:21px}
 #s5 .board .rowbtn{padding:6px 4px;gap:8px}
 #s5 .board-avatar{flex-basis:42px;width:42px;height:42px}
 #s5 .board-name{font-size:16px}
 #s5 .board td small{font-size:11px}
 #s5 .board td:last-child{width:83px;font-size:12px;padding:6px 4px 6px 8px}
 #s5 .bgrid .peek{order:0}
}

/* The opening copy has one centered axis, with a little more air above it. */
#s0 .hgrid>.hero-heading{padding-top:clamp(152px,18svh,200px);text-align:center}
#s0 .hero-heading h1{margin-inline:auto;text-align:center;text-wrap:balance}
#s0 .hero-invite{text-align:center}
#s0 .hero-invite .lead{text-align:center;text-wrap:balance}
#s0 .hero-invite :is(.chips,.go){justify-content:center}
@media(min-width:768px) and (max-height:700px){#s0 .hgrid>.hero-heading{padding-top:123px}}
@media(max-width:767px){#s0 .hgrid>.hero-heading{padding-top:13px}}

/* The footer characters scroll away with their own scene. */
#s0.scene,#fim.scene{position:relative;overflow:clip}
#fim.scene{padding-bottom:max(89px,calc(12.5vw + 13px))}
#nimo-parade.nimo-parade,#nimo-parade-end.nimo-parade{position:absolute;inset:auto 0 0;width:100%;height:auto;aspect-ratio:8/1;z-index:4;pointer-events:none;object-fit:contain;background:transparent;opacity:0;transition:opacity .25s}
#nimo-parade.nimo-parade.ready,#nimo-parade-end.nimo-parade.ready{opacity:1}
body.notes .nimo-parade{visibility:hidden}
html.still .nimo-parade{transition:none}
@media(prefers-reduced-motion:reduce){.nimo-parade{display:none}}
@media print{.nimo-parade{display:none}}
