/* Public-page masthead, scoped to the form layout. */
body.v35 .public-banner#dynamic_header {
 position: relative; width: 100%; min-width: 0; height: 168px;
 display: flex; flex-direction: column; align-items: center; justify-content: center;
 gap: 5px; overflow: hidden; box-sizing: border-box; text-align: center;
 background: radial-gradient(ellipse at 50% 110%, #8c653333, transparent 65%), linear-gradient(120deg, #101b25, #243440 50%, #101b25);
 border-bottom: 1px solid #b9945266; color: #f1d298;
}
body.v35 .public-banner::before, body.v35 .public-banner::after {
 content: ''; position: absolute; width: 140px; height: 140px; top: 18px;
 border: 1px solid #caa86622; transform: rotate(45deg); pointer-events: none;
}
body.v35 .public-banner::before { left: -60px; }
body.v35 .public-banner::after { right: -60px; }
body.v35 .banner-emblem { font-size: 27px; line-height: 1; color: #caa866; }
body.v35 .banner-title { font-size: 36px; font-weight: 700; line-height: 1.5; text-shadow: 0 2px 12px #0005; }
body.v35 .banner-caption { font-size: 13px; color: #c1cbd2; }
body.v35 .public-banner + #header {
 width: 100% !important; min-width: 0 !important; height: auto !important; min-height: 54px;
 background: #15212b !important; border-bottom: 1px solid #caa86644; box-shadow: 0 5px 15px #101b2518;
}
body.v35 .public-banner + #header #mtop {
 position: static !important; display: flex !important; justify-content: center;
 align-items: center; width: 100% !important; height: auto !important; min-height: 54px;
 background: none !important; margin: 0; padding: 4px 8px; box-sizing: border-box;
}
body.v35 .public-banner + #header .InBar {
 display: flex !important; align-items: center; justify-content: center; flex-wrap: wrap;
 gap: 6px; position: static !important; width: auto !important; max-width: 100%; height: auto !important;
 background: none !important; float: none !important;
}
body.v35 .public-banner + #header .InBar > a {
 position: static !important; display: inline-flex; align-items: center; justify-content: center;
 width: auto !important; min-height: 38px; height: auto !important; padding: 7px 20px;
 margin: 0 !important; background: none !important; border-radius: 6px;
 font-size: 14px; font-weight: 600; color: #eee4d3 !important; text-decoration: none;
}
body.v35 .public-banner + #header .InBar > a:hover,
body.v35 .public-banner + #header .InBar > a:focus-visible { background: #caa86622 !important; color: #f1d298 !important; }
@media (max-width: 480px) {
 body.v35 .public-banner#dynamic_header { height: 150px; }
 body.v35 .banner-title { font-size: 30px; }
 body.v35 .public-banner + #header .InBar > a { padding: 7px 14px; }
}
body.v35 .public-banner#dynamic_header {
 height: 210px;
 background: linear-gradient(90deg, #f8ecd845, #f8ecd815), url('images/banners/tatar-campaign.webp') center 50% / cover no-repeat;
 color: #573917;
}
body.v35 .public-banner::before, body.v35 .public-banner::after { display: none; }
body.v35 .banner-emblem { color: #8c631e; text-shadow: 0 1px 3px #fff; }
body.v35 .banner-title { color: #63451c; text-shadow: 0 2px 2px #fff7, 0 0 20px #fff; font-size: 40px; }
body.v35 .banner-caption { color: #453d2e; font-weight: 600; text-shadow: 0 1px 4px #fff; }
body.v35 .public-banner + #header { background: #f7eedc !important; border-bottom-color: #cbb68e; }
body.v35 .public-banner + #header .InBar > a { color: #634b2b !important; }
body.v35 .public-banner + #header .InBar > a:hover,
body.v35 .public-banner + #header .InBar > a:focus-visible { background: #d9bc7b44 !important; color: #493110 !important; }
@media (max-width: 480px) {
 body.v35 .public-banner#dynamic_header { height: 190px; }
 body.v35 .banner-title { font-size: 34px; }
}
/* Keep the public footer close to the completed form. */
body.v35:has(.public-banner) .wrapper { padding-bottom: 0 !important; min-height: 0 !important; }
body.v35:has(.public-banner) .game-footer { margin-top: 12px !important; }

/* Public forms share a centered desktop column with the main website. */
@media (min-width: 901px) {
 html body.v35:has(.public-banner) { display: block; min-width: 0; margin: 0; background: #f3f4f5; }
 body.v35:has(.public-banner) .wrapper { width: 100%; min-width: 0; margin: 0; }
 body.v35:has(.public-banner) #mid { display: block; float: none; width: min(900px, calc(100% - 48px)); margin: 28px auto; padding: 0; box-sizing: border-box; }
 body.v35:has(.public-banner) #side_navi, body.v35:has(.public-banner) #side_info { display: none !important; }
 body.v35:has(.public-banner) #content { float: none; width: 100%; min-width: 0; min-height: 0; margin: 0; padding: 32px; box-sizing: border-box; }
 body.v35:has(.public-banner) #content h1 { margin-top: 0; }
 body.v35:has(.public-banner) #content #login_form, body.v35:has(.public-banner) #content #sign_input { width: 100%; table-layout: fixed; }
 body.v35:has(.public-banner) #content #login_form th, body.v35:has(.public-banner) #content #sign_input th { width: 30%; padding: 10px 12px; white-space: normal; font-size: 14px; line-height: 1.7; }
 body.v35:has(.public-banner) #content #login_form td, body.v35:has(.public-banner) #content #sign_input td { padding: 10px 12px; background: transparent; }
 body.v35:has(.public-banner) #content #login_form input.text, body.v35:has(.public-banner) #content #sign_input input.text { width: 100%; max-width: 100%; font-size: 16px; }
 body.v35:has(.public-banner) #content #sign_input input[name="captcha"] { width: 90px; }
 body.v35:has(.public-banner) #content #password_field { padding-left: 44px; }
 body.v35:has(.public-banner) #content #toggle_password { display: inline-flex; align-items: center; justify-content: center; position: absolute; top: 50%; left: 14px; width: 40px; height: 40px; margin: 0 !important; transform: translateY(-50%); }
}

