/* One shared header and site controls for the home page and lobby. */
body.poly-site{--site-header-height:100px;--site-content-width:1380px;--site-gutter:40px;--ink:#073b50;--muted:#526e76;--cream:#fffaf0;--orange:#f58a1c;--line:#dfded0;font-family:"Segoe UI","Malgun Gothic",system-ui,sans-serif;color:var(--ink);color-scheme:light}
/* One content width across menus; the world artwork fills the viewport independently. */
.poly-site .section-wrap,body.poly-site.poly-lobby #marble-app{box-sizing:border-box;width:min(var(--site-content-width),calc(100% - 2 * var(--site-gutter)));margin-inline:auto}
.poly-site .ranking-page-layout>*,.poly-site .ranking-side>*{min-width:0}
.poly-site .how-to-play{grid-template-columns:repeat(3,minmax(0,1fr))}
.poly-site .how-to-play li,.poly-site .how-to-play li>div{min-width:0}
.poly-site .how-to-play h3,.poly-site .how-to-play p{word-break:normal;overflow-wrap:anywhere;hyphens:auto}
.poly-site .guide-steps li,.poly-site .detail-card{min-width:0;overflow-wrap:anywhere;hyphens:auto}
.poly-site .guide-steps p,.poly-site .detail-card p{word-break:normal;overflow-wrap:anywhere}
body.poly-site.poly-page,body.poly-site.poly-lobby{background-size:100% 100%,max(100%,1440px) auto}
.poly-site .site-header{box-sizing:border-box;position:absolute;z-index:5;top:0;left:0;width:100%;height:var(--site-header-height);margin:0;padding:22px max(var(--site-gutter),calc((100% - var(--site-content-width))/2));display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:24px;border:0;background:linear-gradient(#e6f6fdba,#e6f6fd00);color:#073b50;font:16px/1.6 "Segoe UI","Malgun Gothic",system-ui,sans-serif}
.poly-site .site-header *{box-sizing:border-box}
.poly-site .site-header a{color:inherit;text-decoration:none}
.poly-site .site-brand{display:flex;align-items:center;gap:10px;white-space:nowrap;font-size:29px;font-weight:900;line-height:1.05;letter-spacing:-1.1px}
.poly-site .site-brand img{display:block;width:48px;height:52px;max-width:none;object-fit:contain;filter:drop-shadow(0 3px 3px #42666c22)}
.poly-site .site-brand small{display:block;font-size:14px;font-weight:900;line-height:1.05;letter-spacing:2px;margin:7px 0 0}
.poly-site .site-nav{display:flex;justify-content:center;align-items:center;gap:clamp(18px,2.2vw,34px);margin:0;padding:0;font-size:14px;font-weight:750;line-height:1.6;white-space:nowrap}
.poly-site .site-nav a{display:block;padding:8px 0;border-bottom:3px solid transparent}
.poly-site .site-nav a:hover{color:#b85200}
.poly-site .site-nav a[aria-current="page"]{border-bottom-color:#ed9623;color:#073b50}
.poly-site .header-actions{display:flex;align-items:center;gap:14px;white-space:nowrap}
.poly-site .site-header .poly-language-open{display:inline-flex;align-items:center;gap:7px;margin:0;padding:9px 4px;border:1px solid transparent;border-radius:10px;background:transparent;color:#073b50;font:600 13px/1.4 "Segoe UI","Malgun Gothic",system-ui,sans-serif;cursor:pointer}
.poly-site .site-header .poly-language-open:hover{background:#ffffff65}
.poly-site .login-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:7px 18px;background:#fffcf5e8;border:1px solid #b8cdd2;border-radius:24px;font-size:14px;font-weight:750;line-height:1.6;box-shadow:0 2px 3px #0c526517}
.poly-site .login-link img{display:block;width:24px;height:18px;max-width:none;margin:0;border-radius:3px;object-fit:cover;filter:none}
.poly-site .site-header a:focus-visible,.poly-site .site-header button:focus-visible{outline:3px solid #077d9c;outline-offset:4px}
/* Both pages use the same light language dialog. */
.poly-site .poly-language-dialog{color-scheme:light;background:#fffdf7;border-color:#dce5dc;color:#073b50;border-radius:20px;box-shadow:0 24px 80px #073b5045}
.poly-site .poly-language-dialog::backdrop{background:#143b515c;backdrop-filter:blur(5px)}
.poly-site .poly-language-heading,.poly-site .poly-language-other{border-color:#e4e5d8}
.poly-site .poly-language-heading h2{color:#073b50}
.poly-site .poly-language-eyebrow{color:#bd6b1f}
.poly-site .poly-language-close{color:#4b737e}
.poly-site .poly-language-close:hover{background:#eef6f1}
.poly-site .poly-language-content p{color:#53747c}
.poly-site .poly-language-recommended{background:linear-gradient(#ffb34a,#f58b23);color:#fff;border-color:#f5a239;box-shadow:0 3px 0 #cf741f}
.poly-site .poly-language-other label{color:#335d6a}
.poly-site .poly-language-row select{background:#fff;color:#073b50;border-color:#c5d8d9}
.poly-site .poly-language-row button{background:#e9f3ee;color:#073b50;border-color:#c5d8d9}
.poly-site .poly-language-content .poly-language-note{color:#53747c}
body.poly-site.poly-lobby #marble-app{padding-top:calc(var(--site-header-height) + 24px);padding-inline:0;min-height:100vh}
body.poly-site.poly-lobby .notice{top:calc(var(--site-header-height) + 10px)}
@media(max-width:1150px){body.poly-site{--site-gutter:30px}}
@media(max-width:1100px){
  .poly-site .site-header{gap:18px}
  .poly-site .site-brand{font-size:24px}.poly-site .site-brand img{width:40px;height:44px}.poly-site .site-brand small{font-size:11px}
  .poly-site .site-nav{gap:18px;font-size:13px}.poly-site .header-actions{gap:9px}.poly-site .login-link{padding-inline:13px}
}
@media(max-width:960px){
  body.poly-site{--site-header-height:128px}
  .poly-site .site-header{grid-template-columns:1fr auto;grid-template-rows:1fr auto;gap:8px 16px;padding-block:16px 10px}
  .poly-site .site-nav{grid-column:1/-1;grid-row:2;gap:32px}
  .poly-site .header-actions{grid-column:2;grid-row:1}
  .poly-home .hero-copy{padding-top:156px}
}
@media(max-width:760px){
  body.poly-site{--site-gutter:18px;--site-header-height:144px}
  body.poly-site.poly-lobby #marble-app{padding-top:calc(var(--site-header-height) + 20px)}
  .poly-site .site-header{gap:8px 10px;grid-template-columns:minmax(0,1fr) auto}
  .poly-site .site-brand{font-size:22px;gap:8px}.poly-site .site-brand img{width:34px;height:40px}.poly-site .site-brand small{font-size:10px;margin-top:5px;letter-spacing:1.5px}
  .poly-site .site-header .poly-language-open{font-size:11px;gap:3px;padding-inline:2px}
  .poly-site .header-actions{gap:3px 6px;max-width:150px;flex-wrap:wrap;justify-content:flex-end}.poly-site .login-link{font-size:12px;padding:6px 12px;min-height:36px}.poly-site .login-link img{width:20px;height:15px}
  .poly-site .site-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;font-size:12px;white-space:normal;text-align:center;line-height:1.3}
  .poly-site .site-nav a{overflow-wrap:anywhere;hyphens:auto;align-self:stretch}
  .poly-home .hero{padding-top:calc(var(--site-header-height) + 12px)}.poly-home .hero-copy{padding-top:12px}
}
@media(max-width:380px){
  body.poly-site{--site-gutter:12px}
  .poly-site .site-header{gap:8px}
  .poly-site .site-brand{font-size:19px;gap:6px}.poly-site .site-brand img{width:29px;height:36px}
  .poly-site .header-actions{gap:4px}.poly-site .login-link{padding-inline:8px;gap:5px;font-size:11px}.poly-site .site-header .poly-language-open{font-size:10px}
  .poly-site .site-nav{font-size:11px;gap:8px}
}
