/* Phone/tablet layout of the guest pages in SeoService::mobileSections(); layout.php links it only there.
   .mobile-ready / .mobile-<section> sit on <body>: they outrank mainAll.css, lobby.css and inline <style>. */
html { -webkit-text-size-adjust: 100%; }

/* 989, not 959: the desktop decor reaches 15 px past the 960 px wrapper, so a 960-989 px window still scrolls sideways. */
@media (max-width: 989px) {

/* common */
.mobile-ready #wrapper,
.mobile-ready #wrapper_login,
.mobile-ready #main_content,
.mobile-ready #content { width: auto; }
/* The logo (mascot..MONOPOLY, x 775-1440 of the 1920 px bgSummer.jpg) takes 88 % of any width and stays centred;
   the logo bottom sits at ~21 % of the width, hence the wrapper offset. */
.mobile-ready #wrapper { padding-top: min(calc(22vw + 8px), 180px); }
.mobile-ready .header-fixed { background-size: min(254%, 1920px) auto; background-position: 62.6% 0; }
.mobile-ready .star-imgs { display: none; }

.mobile-ready #login { position: static; box-sizing: border-box; width: calc(100% - 16px); max-width: 420px; height: auto; margin: 0 auto 8px; padding: 0; }
.mobile-ready #rounded { height: auto; padding: 0 12px 12px; background-color: #7d0d0b; }
.mobile-ready .test_login { padding: 4px 0; text-align: center; }
.mobile-ready .cell_login,
.mobile-ready .cell_pass,
.mobile-ready .cell_reg { width: auto; margin: 8px 0 0; }
.mobile-ready .cell_login label,
.mobile-ready .cell_pass label { margin: 0; font-size: 14px; }
.mobile-ready #login input { box-sizing: border-box; width: 100%; height: 44px; margin: 4px 0 0; font-size: 16px; }
.mobile-ready .cell_reg a { box-sizing: border-box; width: 100%; min-height: 44px; margin: 0; line-height: 40px; font-size: 16px; background-size: 100% 100%; }
.mobile-ready #form_login br { display: none; }
.mobile-ready .control_button { position: static; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.mobile-ready .control_button .panel_social_button { display: flex; gap: 4px; width: 100%; height: auto; margin: 0; }
.mobile-ready #form_login .panel_social_button a { margin: 0; padding: 14px; background-origin: content-box; background-clip: content-box; }
.mobile-ready .control_button > a { flex: 1; min-height: 44px; }
.mobile-ready .control_button .st,
.mobile-ready .control_button .star { width: auto; height: 44px; background-repeat: no-repeat; background-position: 0 50%; }
.mobile-ready .control_button div label,
.mobile-ready .control_button div span { position: static; margin: 0; padding-left: 36px; font-size: 15px; line-height: 44px; }

.mobile-ready #wraper_nav { float: none; margin: 0 8px 8px; }
.mobile-ready #wraper_nav .main-nav { width: auto; height: auto; margin: 0; background: #a8120e; border-radius: 6px; }
.mobile-ready #wraper_nav .main-nav ul { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; }
.mobile-ready #wraper_nav .main-nav li { float: none; padding: 0; background: none; font-size: 15px; }
.mobile-ready #wraper_nav .main-nav li a { box-sizing: border-box; min-height: 44px; padding: 14px 12px; }
/* active.png / a-hover.png are 1x22 strips; [href] lifts this above `.active a:hover`, whose shorthand resets the size. */
.mobile-ready #wraper_nav .main-nav li a[href] { background-size: 100% 100%; }

.mobile-ready #overview2 > .left-bg,
.mobile-ready #overview2 > .right-bg,
.mobile-ready #overview2 > [class^="coal-"] { display: none; }
.mobile-ready .popupFriend { left: 0; right: 0; width: calc(100% - 32px); max-width: 320px; margin: 0 auto; background-size: 100% 100%; }

/* home */
.mobile-home #lobby .not_authorized { height: auto; padding: 8px; background-size: cover; }
.mobile-home #lobby .not_authorized H1 { font-size: 22px; line-height: 26px; }
.mobile-home #lobby .not_authorized H2 { font-size: 15px; line-height: 19px; }
.mobile-home #lobby .select_game_wrapper { overflow-x: auto; }
.mobile-home #lobby .select_game { width: 960px; }
.mobile-home .chat-container { overflow-x: auto; overflow-y: hidden; background-attachment: local; }
.mobile-home .chat-container > [class$="-corner"] { display: none; }
.mobile-home .socailBurr { position: static; width: auto; height: auto; margin: 8px; background: none; text-align: center; }
.mobile-home .socailBurr span { display: block; margin: 0; }
.mobile-home .socailBurr .pnlButton { margin: 0; }
.mobile-home .socailBurr .pnlButton a { padding: 11px 9px; background-origin: content-box; background-clip: content-box; }
.mobile-home .box-rd { width: auto; height: auto; padding: 8px 0; background: #3b2a12; }
.mobile-home .box-rd .substrate { width: auto; height: auto; margin: 0; padding: 0; background: none; }
.mobile-home .box-rd .age-block { position: relative; left: 0; bottom: 0; margin: 0 8px 8px; }
.mobile-home .box-rd .page-box { width: auto; height: auto; padding: 8px 0; background: #e5c69a; }
.mobile-home .box-rd .page-box > [class^="corner-"],
.mobile-home .news-box > [class^="corner-"],
.mobile-home .tape-news { display: none; }
/* The players/clans switch hangs 24 px left of .section: 24 + 296 = 320 px, centred. */
.mobile-home .box-rd .section { float: none; width: 296px; margin: 0 0 0 calc(50% - 136px); }
.mobile-home .box-rd .tabs { margin-left: 0; padding-left: 0; }
.mobile-home .box-rd .box-tabs,
.mobile-home .box-rd .box-tabClan { margin-left: auto; margin-right: auto; }
.mobile-home .box-rd .news-box { float: none; width: auto; height: auto; margin: 16px 8px 0; }
.mobile-home #scrollbarY,
.mobile-home #scrollbarY .viewport { width: auto; }
.mobile-home #scrollbarY .viewport { height: auto; overflow: visible; }
.mobile-home #scrollbarY .overview { position: static; }
.mobile-home #scrollbarY .scrollbar { display: none; }
.mobile-home .news-block { margin: 12px 0 0; }
.mobile-home .news-text .title { padding: 11px 0; font-size: 16px; line-height: 22px; }
.mobile-home .news-text p { font-size: 15px !important; }
.mobile-home .news-text .more { width: auto; height: 44px; padding: 0 16px; line-height: 44px; background-size: 100% 100%; }
.mobile-home .about-text { font-size: 15px; line-height: 21px; }
.mobile-home .about-text h2 { font-size: 16px !important; }
.mobile-home .about-text .column { float: none; width: auto; margin: 10px 16px; text-align: left; }

/* register */
.mobile-register .substrateBak,
.mobile-register .reg-tape,
.mobile-register .red-pl,
.mobile-register .substrate > [class^="charcoal-"],
.mobile-register .page-box [class^="corner-"] { display: none; }
.mobile-register .substrate { width: auto; height: auto; margin: 0; padding: 12px 0; background: #e5c69a; }
.mobile-register .age-block { position: relative; left: 0; bottom: 0; margin: 0 8px 8px; }
.mobile-register .page-box { width: auto; height: auto; }
.mobile-register .reg-info { float: none; width: auto; height: auto; margin: 0 16px; padding-bottom: 12px; }
.mobile-register .news-box { float: none; width: auto; height: auto; margin: 16px; }
.mobile-register .reg-box { margin: 16px 0 0; }
.mobile-register .reg-error { float: none; width: auto; margin: 0; text-align: left; }
.mobile-register .registration { width: auto; margin: 0; }
.mobile-register .reg-block p { float: none; width: auto; margin: 0 0 4px; text-align: left; font-size: 15px; }
.mobile-register .reg-block input { box-sizing: border-box; width: 100%; height: 44px; font-size: 16px; background-size: 100% 100%; }
.mobile-register .registration input.rg { width: 100%; height: 48px; font-size: 16px; }
.mobile-register .registration p { font-size: 13px; }

/* faq, ustav */
.mobile-faq .terms-service,
.mobile-ustav .terms-service { padding: 16px 14px 0; font-size: 15px; line-height: 21px; }
.mobile-faq .terms-service h1,
.mobile-ustav .terms-service h1 { font-size: 20px; line-height: 24px; }
.mobile-faq .faq-question { box-sizing: border-box; min-height: 44px; margin: 0; padding: 12px 0; }

/* contact_form */
.mobile-contact_form div.page { width: auto; }
.mobile-contact_form #overview2 span.title { font-size: 18px; line-height: 24px; }
.mobile-contact_form .fb-wrap { flex-direction: column; }
.mobile-contact_form .fb-form { width: auto; }
.mobile-contact_form .fb-form div.form input.text,
.mobile-contact_form .fb-form div.form textarea,
.mobile-contact_form .fb-form select.coolph { box-sizing: border-box; width: 100%; min-height: 44px; margin: 0; font-size: 16px; background-size: 100% 100%; }
.mobile-contact_form .fb-help { font-size: 16px; }
.mobile-contact_form .contact-form-btn { box-sizing: border-box; width: 200px; min-height: 44px; padding: 12px 0; line-height: 20px; background-size: 100% 300%; }
.mobile-contact_form .contact-form-btn.fb-btn-wide { width: auto; padding: 12px 18px; }
.mobile-contact_form .fb-thread { width: auto; }
.mobile-contact_form .fb-reply-box textarea { box-sizing: border-box; width: 100%; font-size: 16px; }
.mobile-contact_form .fb-btn-row-pair { flex-wrap: wrap; }
.mobile-contact_form .fb-closed-row { flex-direction: column; }
.mobile-contact_form .fb-closed-row .fb-notice { align-self: stretch; }

}
