/* Shared layout: artwork remains inside its own space at every viewport. */
:root{--nav-height:90px}
.header{background:var(--bg)}
html{scroll-padding-top:calc(var(--nav-height) + 24px)}
.hero-grid>* ,.live-layout>* ,.community-banner>* ,.footer-grid>*{min-width:0}
.hero-character{max-width:100%;width:100%;height:100%;object-fit:contain}
.card-art img{inset:0;width:100%;height:100%;max-width:100%;transform:none;object-fit:contain}
.community-art img{inset:0;width:100%;height:100%;max-width:100%;margin:0;transform:none;object-fit:contain}
.social-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.social-card{min-width:0;padding:22px 16px;gap:12px}
.social-card span{min-width:0;overflow-wrap:anywhere}
.button,.icon-button,.filter,.footer-links a{touch-action:manipulation}
.discord-page{max-width:760px;padding-block:56px}
.discord-page h1{font-size:clamp(40px,6vw,64px);margin:0 0 24px}
.discord-page h2{font-size:30px;margin-bottom:16px}
.discord-page section{border:1px solid var(--line);background:var(--panel);padding:28px;margin:24px 0}
.discord-page p{margin-bottom:18px}
.discord-page label{display:block;font-size:14px}
.discord-page input{width:100%;padding:14px;margin:8px 0 16px;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:3px;font:inherit}
.discord-page button{border:1px solid var(--line);background:var(--ink);color:var(--inverse);border-radius:3px;padding:13px 18px;min-height:46px;font-weight:700}
.discord-page .secondary{background:transparent;color:var(--ink)}
.discord-page code{display:block;overflow-wrap:anywhere;font-size:20px;margin:20px 0}
.discord-page footer{font-size:13px;color:var(--muted)}
.discord-page [hidden]{display:none!important}
.discord-page footer a{ text-decoration:underline}
.shop-discord-status{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px;border:1px solid var(--line);background:var(--panel);margin:20px 0}
.shop-discord-status p{font-size:14px;margin-top:8px}
.shop-discord-status h3{font-size:28px}
.shop-community-links{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;margin-top:24px}
.catalog-menu{background:var(--bg);z-index:20;top:calc(var(--nav-height) + 16px);max-height:calc(100dvh - var(--nav-height) - 32px);overflow:auto}
.premium-card{scroll-margin-top:calc(var(--nav-height) + 100px)}
@media(max-width:1000px){
 .social-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .social-card{border-bottom:1px solid var(--line)}
 .social-card:last-child{border-right:0}
 .community-art{min-height:320px}
 .hero-grid{gap:24px}.hero-art{height:500px}.hero-character{width:100%;height:100%}
}
@media(max-width:800px){
 :root{--nav-height:74px}
 .header{height:var(--nav-height)}
 .menu-toggle{display:grid}.nav-actions .button{display:none}.nav-actions{margin-left:auto}
 .nav-links{display:none;position:absolute;inset:73px 0 auto;background:var(--bg);padding:12px 24px;border-bottom:1px solid var(--line);max-height:calc(100dvh - 74px);overflow:auto}
 .nav-links.open{display:flex;flex-direction:column;align-items:stretch;gap:0}
 .nav-links a{padding:12px 8px;min-height:44px}
 .hero-grid{grid-template-columns:1fr 1fr;min-height:0;gap:20px}
 .hero-copy{padding:36px 0}.hero h1{font-size:54px}.hero-art{height:440px}
 .hero-word{font-size:70px}
 .hero-copy .actions{gap:12px;margin-top:20px}.hero-copy>p:not(.eyebrow){font-size:14px}
 .character-caption{left:0;bottom:8px}.caption-line{display:none}
 .section{padding:56px 0}.community-copy{padding:28px}.community-copy h2,.community-copy .page-heading{font-size:42px}
}
@media(max-width:700px){
 .wrap{width:calc(100% - 36px)}
 .section{padding:44px 0}.section-head{gap:16px;margin-bottom:26px}
 .section-head h2,.section-head .page-heading,.page-heading,.feature-intro h2{font-size:clamp(34px,9vw,42px);line-height:1.08}
 .section-head p:not(.eyebrow),.feature-intro p{font-size:14px;line-height:1.7}
 .eyebrow{letter-spacing:1.8px;line-height:1.6;margin-bottom:12px}
 .hero-grid{grid-template-columns:1fr;gap:0}
 .hero-copy{padding:30px 0 0;grid-row:1}

 .hero h1{font-size:clamp(48px,13vw,64px);margin-bottom:18px}
 .hero-copy>p:not(.eyebrow){max-width:470px}
 .hero-meta{margin-top:18px}
 .hero-slider{position:static;margin-top:18px;gap:16px;justify-content:flex-end}
 .hero-slider .icon-button{width:44px;height:44px}
 .hero-art{height:auto;aspect-ratio:1/1.05;max-height:420px;min-width:0;margin:0 0 18px;padding-bottom:48px}
 .hero-character{position:relative;inset:auto;transform:none;height:100%;width:100%;max-width:100%;align-self:flex-start}
 .hero-art:before{width:65%;height:auto;aspect-ratio:1;left:12%;top:7%}
 .hero-art:after{width:48%;height:auto;aspect-ratio:1;right:12%;top:4%}
 .hero-word{font-size:64px;top:14%;left:0}
 .character-caption{bottom:8px;left:0;font-size:11px}.character-caption strong{font-size:13px}
 .play-circle{right:0;bottom:0;width:52px;height:52px;border-width:5px}
 .world-strip .wrap{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 10px;padding:22px 0}
 .strip-intro,.world-strip .text-link{grid-column:1/-1}.strip-item strong{display:block;font-size:24px;margin:0}.strip-item{font-size:12px}
 .feature-grid{grid-template-columns:1fr;gap:16px}
 .feature-intro .text-link{margin-bottom:6px}
 .character-card{display:grid;grid-template-columns:42% minmax(0,1fr);align-items:center}
 .character-card .card-art{height:auto;aspect-ratio:1;min-height:140px}
 .card-art img{inset:0;width:100%;height:100%;transform:none}
 .card-art .card-number{font-size:48px}.card-label{padding:18px}.card-label h3{font-size:30px}.card-label p{font-size:13px;line-height:1.6;margin-top:6px}
 .live-layout{gap:24px}.live-screen{aspect-ratio:auto;min-height:280px}.live-screen:has(iframe){aspect-ratio:16/9;min-height:0}
 .live-placeholder{padding:52px 20px 24px;gap:16px}
 .live-badge{font-size:9px;left:16px;top:16px}.live-side h3{font-size:32px}
 .community-copy{padding:26px 24px 12px}.community-copy h2,.community-copy .page-heading{font-size:clamp(34px,9vw,42px)}
 .community-copy p{max-width:none}.community-copy .actions{margin-top:20px;gap:8px 16px}
 .community-art{height:280px;min-height:0}.community-art img{inset:0;width:100%;height:100%;margin:0;transform:none}
 .community-art:before{font-size:76px;left:20px;top:40px}
 .social-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:20px}
 .social-card{padding:18px 14px;border-bottom:1px solid var(--line)!important;font-size:13px;gap:10px}
 .social-card:nth-child(even){border-right:0}.social-card:last-child:nth-child(odd){grid-column:1/-1;border-bottom:0!important}
 .social-card small{font-size:11px}.social-card>i{font-size:22px}
 .filters{gap:8px}.filter{min-height:44px;font-size:12px}.search{font-size:16px;min-height:46px}
 .ranking{table-layout:fixed;width:100%}.ranking th:first-child{width:38px}.ranking th:last-child{width:70px}
 .ranking th,.ranking td{padding:12px 6px}.player-cell{min-width:0}.player-cell button{font-size:12px;overflow-wrap:anywhere;text-align:left}.player-cell img{flex-shrink:0}
 .rank-value{font-size:24px}.rank-value small{font-size:10px}
 .shop-history .ranking{table-layout:auto}
 .shop-client .ranking th:first-child{width:36%}.shop-client .ranking th:last-child{width:30%}
 .shop-client .ranking td{font-size:11px;overflow-wrap:anywhere}
 .shop-premiere{padding:24px 0 36px}.shop-premiere-art{margin:0;width:100%}
 .shop-premiere-copy h2,.shop-premiere-copy .page-heading{font-size:clamp(36px,10vw,46px)}
 .shop-premiere-copy>p:not(.eyebrow){font-size:14px;line-height:1.7}
 .catalog-layout{display:block;margin-top:22px}
 .catalog-menu{position:sticky;top:var(--nav-height);max-height:none;overflow:visible;margin:0 -18px 22px;padding:10px 18px 12px;border-bottom:1px solid var(--line);border-radius:0;box-shadow:0 8px 16px #0001}
 .catalog-mobile-label{font-size:12px;margin-bottom:4px}.catalog-mobile-select{min-height:44px;font-size:16px}
 .catalog-toolbar{gap:12px;align-items:end;margin-bottom:18px}.catalog-toolbar h3{font-size:26px}.catalog-toolbar select{font-size:14px;min-height:44px;max-width:138px}
 .catalog-content .premium-info{padding:20px}.catalog-content .premium-info h3{font-size:30px;line-height:1.1}
 .premium-info>p{min-height:0}.premium-contents li{font-size:12px}.premium-note{min-height:0;font-size:11px}
 .catalog-content .premium-bottom{flex-direction:row;align-items:center;flex-wrap:nowrap;padding-top:0}.premium-bottom .button{width:auto;min-width:130px;font-size:12px}
 .shop-client .section-head{margin-bottom:20px}.shop-login-panel,.shop-profile,.skin-upload{padding:20px}
 .shop-discord-status{display:block;padding:20px}.shop-discord-status .button{margin-top:16px;width:100%}
 .client-section{padding:26px 0 0;margin-top:26px}.client-section h3{font-size:30px}
 .join-strip{padding:32px 0}.join-strip .wrap{gap:20px}.join-strip h2{font-size:34px}
 .footer{padding:36px 0 24px}.footer-grid{gap:28px 20px}.footer-links a{min-height:36px;display:flex;align-items:center}.footer-bottom{gap:10px;font-size:11px}
 .legal-footer-links{gap:10px 18px}.legal-footer-links a,.legal-footer-links button{min-height:36px;display:inline-flex;align-items:center}
 .discord-page{padding-block:36px}.discord-page section{padding:20px;margin:20px 0}.discord-page h2{font-size:28px}
 dialog{max-height:calc(100dvh - 32px);overflow:auto;padding:28px 20px}.profile-art{max-width:100%;height:200px}dialog h2{font-size:34px;overflow-wrap:anywhere}
 .connection{padding:16px;gap:12px}.connection strong{font-size:26px}.connection .icon-button{flex-shrink:0}
}
@media(max-width:360px){.brand{font-size:24px;letter-spacing:3px}.nav-actions{gap:8px}.hero-copy .actions{align-items:stretch}.hero-copy .actions .button{width:100%}.card-label{padding:14px}.card-label h3{font-size:27px}.social-card{padding:16px 10px}.catalog-toolbar{align-items:start}.catalog-toolbar h3{font-size:24px}.catalog-toolbar select{max-width:125px}.premium-bottom .button{min-width:115px}.ranking .player-cell img{width:32px;height:38px}}
