/* Shared layout and visibility fixes, loaded after each site's theme. */
[hidden]{display:none!important}
dialog:not([open]){display:none}
.field{align-content:start;grid-template-rows:auto auto;min-width:0}
.field>input,.field>select,.field>textarea{box-sizing:border-box;max-width:100%;align-self:start}
.field>input:not([type=checkbox]):not([type=radio]),.field>select{height:48px;min-height:48px}
.contact-form,.comment-form{align-content:start;min-width:0}
.form-two{align-items:start;min-width:0}
.comment-form .form-two{grid-template-columns:minmax(0,1fr);gap:16px}
.comment-form .field{margin-bottom:0}
.comment-form textarea{min-height:140px;line-height:1.5}
.community-grid{align-items:start}
.community-grid>div{min-width:0}
.community .comment{padding:16px}
.community .comments-top{flex-wrap:wrap;margin-top:24px;gap:12px}
.community .comments-top h3{margin:0}
.community .stars{flex-wrap:nowrap;gap:2px}
.community .stars button{width:40px;height:44px;padding:0;flex:0 0 40px}
.community .rating-panel{grid-template-columns:minmax(0,1fr);align-content:start;gap:16px}
.community-message,.comment-empty,.comment p{overflow-wrap:anywhere}
.cookie-notice{box-sizing:border-box;max-height:calc(100dvh - 24px);overflow:auto}
.cookie-notice>div{min-width:0}
.cookie-notice button{touch-action:manipulation}
.modal{box-sizing:border-box;max-width:calc(100% - 24px);max-height:calc(100dvh - 32px);margin:auto;overflow:auto}
.modal-head{display:flex;align-items:start;justify-content:space-between;gap:16px}
.modal-head h2{min-width:0;overflow-wrap:anywhere}
.modal [data-close-dialog]{flex-shrink:0;min-width:40px;min-height:40px}
.image-modal img{display:block;max-width:100%;height:auto}
@media(max-width:760px){.community-grid{grid-template-columns:minmax(0,1fr)}.cookie-notice{left:10px;right:10px;bottom:10px;width:auto;flex-wrap:wrap}.cookie-notice>div:last-child{display:flex;flex-wrap:wrap;gap:8px}.cookie-notice button{white-space:normal;min-height:42px}.form-two{grid-template-columns:minmax(0,1fr)}}

@media(max-width:640px){.header-main{gap:12px}.header-main .header-tail{margin-left:auto}}

.contact-layout>*{min-width:0}.contact-side{overflow-wrap:anywhere}
@media(max-width:760px){.contact-layout{grid-template-columns:minmax(0,1fr)}.header-main>.brand,.header-main>.brand>span{min-width:0}.header-main .brand-tag{white-space:normal}.header-main .header-tail{flex-shrink:0;gap:8px}}

@media(max-width:620px){.hero{grid-template-columns:minmax(0,1fr)}.hero>*{min-width:0}.hero-copy{padding-right:0}.hero h1{font-size:clamp(40px,11vw,51px);overflow-wrap:anywhere}.hero dl{flex-wrap:wrap}.hero dl div{min-width:0;flex:1}}

@media(max-width:640px){.community>.section-head{flex-direction:column;align-items:flex-start}.community>.section-head>div{width:100%;min-width:0}.community>.section-head h2{font-size:1.8rem;line-height:1.1}}

.game-hud .icon-button{background:#243943;color:#f3fafd;border-color:#425762}
