/* One menu and header layout for the game and community pages. */
.site-header.wordlex-header{height:98px;max-width:1328px;padding:0 48px;gap:24px}
.wordlex-header .brand{gap:12px}
.wordlex-header .brand img{width:40px;height:40px}
.wordlex-header .brand-copy{gap:3px}
.wordlex-header .brand-copy>:first-child{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:29px;font-weight:800;letter-spacing:-1.3px;line-height:1.1}
.wordlex-header .brand-copy>:last-child{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:11px;font-weight:500;line-height:1.2;letter-spacing:.06em;color:#78816f}
.wordlex-header-actions{display:flex;align-items:center;gap:12px}
.wordlex-menu{position:relative;flex:none;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#33462c;z-index:100}
.wordlex-menu>summary{display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:10px 14px;list-style:none;cursor:pointer;border:1px solid #dfe5da;border-radius:12px;background:#fff;line-height:1}
.wordlex-menu>summary::-webkit-details-marker{display:none}
.wordlex-menu>summary:focus-visible,.wordlex-menu a:focus-visible{outline:3px solid #779642;outline-offset:3px}
.wordlex-menu>summary:hover{background:#f0f5e9;border-color:#c7d6b8}
.wordlex-menu[open]>summary{background:#e9f1dd;border-color:#b6c9a0}
.wordlex-menu-label{font-size:12px;font-weight:650}
.wordlex-menu-icon{position:relative;width:17px;height:16px;flex:none}
.wordlex-menu-icon i{position:absolute;left:0;width:17px;height:2px;border-radius:2px;background:currentColor;transition:transform .18s,opacity .18s,top .18s}
.wordlex-menu-icon i:nth-child(1){top:0}.wordlex-menu-icon i:nth-child(2){top:7px;width:12px}.wordlex-menu-icon i:nth-child(3){top:14px}
.wordlex-menu[open] .wordlex-menu-icon i:nth-child(1){top:7px;transform:rotate(45deg)}
.wordlex-menu[open] .wordlex-menu-icon i:nth-child(2){opacity:0}
.wordlex-menu[open] .wordlex-menu-icon i:nth-child(3){top:7px;transform:rotate(-45deg)}
.wordlex-menu-popover{position:absolute;right:0;top:calc(100% + 14px);width:320px;max-height:calc(100dvh - 120px);overflow-y:auto;padding:14px;border:1px solid #e1e7dc;border-radius:18px;background:#fff;box-shadow:0 12px 42px #28382420,0 2px 6px #28382408}
.wordlex-menu-heading{padding:2px 8px 13px;border-bottom:1px solid #eef1e9;font-size:12px;font-weight:650}
.wordlex-menu-group{margin:0;padding:15px 12px 5px;font-size:9px;font-weight:650;letter-spacing:1.15px;line-height:1.5;text-transform:uppercase;color:#78836f}
.wordlex-menu nav{display:flex;flex-direction:column;gap:3px}
.wordlex-menu .wordlex-nav-link{display:flex;align-items:center;gap:12px;min-height:58px;padding:10px 12px;border-radius:10px;color:#56634d;text-decoration:none;text-align:left}
.wordlex-nav-link:hover{background:#f5f8ef}
.wordlex-nav-link[aria-current="page"]{background:#edf4e2;color:#3d592d}
.wordlex-nav-link[aria-current="page"]:after{content:'✓';margin-left:auto;color:#7d9c59;font-size:14px}
.wordlex-nav-link>svg{width:23px;height:23px;flex:none;fill:none;stroke:#859773;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.wordlex-nav-link>span{display:flex;flex-direction:column;gap:4px;min-width:0}
.wordlex-nav-link strong{font-size:13px;line-height:1.3;font-weight:650}
.wordlex-nav-link small{font-size:10px;font-weight:400;line-height:1.4;color:#738068}
.wordlex-menu-language{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 9px 0;margin-top:12px;border-top:1px solid #eef1e9}
.wordlex-menu-language>span{font-size:11px;color:#6c7c5f}
.wordlex-menu .wordlex-language-switch{display:flex;flex-direction:row;gap:3px;padding:3px;border:1px solid #dce3d3;border-radius:8px;background:#eef2e8}
.wordlex-language-switch a{display:grid;place-items:center;min-width:35px;min-height:32px;border-radius:5px;font-size:11px;font-weight:650;color:#6c785f;text-decoration:none}
.wordlex-language-switch a[aria-current="page"]{background:#fff;color:#33492a;box-shadow:0 1px 3px #28311b12}
@media(max-width:780px){.site-header.wordlex-header{padding:0 24px}}
@media(max-width:600px){
  .site-header.wordlex-header{height:78px;padding:0 16px;gap:12px}
  .wordlex-header .brand{gap:8px}.wordlex-header .brand img{width:32px;height:32px}
  .wordlex-header .brand-copy>:first-child{font-size:24px}.wordlex-header .brand-copy>:last-child{font-size:9px}
  .wordlex-header-actions{gap:9px}.wordlex-menu>summary{width:44px;padding:12px}.wordlex-menu-label{display:none}
  .wordlex-menu-popover{position:fixed;top:88px;right:16px;width:min(336px,calc(100vw - 32px));max-height:calc(100dvh - 104px);padding:13px;border-radius:17px}
}
@media(prefers-reduced-motion:reduce){.wordlex-menu-icon i{transition:none}}
