body.portal {
    --ink: #23332e;
    --muted: #76817b;
    --green: #24634f;
    --coral: #e77458;
    --line: #e2e8e3;
    margin: 0;
    background: #f5f7f5;
    color: var(--ink);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}
.portal *, .portal *::before, .portal *::after { box-sizing: border-box; letter-spacing: 0; }
.portal h1, .portal h2, .portal h3, .portal h4 { font-family: inherit; font-weight: 750; line-height: 1.3; color: var(--ink); }
.portal a { text-decoration: none; color: var(--green); }
.portal button, .portal input, .portal select, .portal textarea { font: inherit; }
.portal button, .portal select, .portal a { -webkit-tap-highlight-color: transparent; }
.portal button { cursor: pointer; }
.portal button:disabled { cursor: wait; opacity: .6; }
.portal :focus-visible { outline: 3px solid #439dba; outline-offset: 3px; }
.portal img { max-width: 100%; }
.portal [hidden] { display: none !important; }
.site-container { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }
.skip-link { position: fixed; top: 10px; left: 20px; z-index: 99999; background: white; padding: 12px; opacity: 0; pointer-events: none; }
.skip-link:focus { opacity: 1; pointer-events: auto; }
#season-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 12; }
.age-strip { background: #edf1ed; color: #7c8780; font-size: 10px; }
.age-strip .site-container { display: flex; gap: 9px; align-items: center; min-height: 27px; }
.age-badge { font-weight: 800; font-size: 11px; color: #708075; }
.site-header { background: #153c34; position: relative; z-index: 30; border-bottom: 1px solid #ffffff14; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 88px; }
.portal a.brand { display: flex; align-items: center; flex: 0 0 auto; gap: 10px; color: white; }
.brand img { width: 80px; height: 58px; object-fit: contain; }
.brand strong { display: block; font-size: 16px; font-weight: 800; }
.brand strong b { color: #f4bd76; }
.brand small { display: block; font-size: 10px; color: #a5b9af; margin-top: 3px; }
.primary-nav { display: flex; align-self: stretch; gap: 24px; }
.portal .primary-nav a { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #c1d2c7; position: relative; white-space: nowrap; }
.primary-nav a::after { content: ""; position: absolute; bottom: 0; height: 3px; left: 0; right: 0; background: var(--coral); transform: scaleX(0); transition: transform .2s; }
.portal .primary-nav a.is-active, .portal .primary-nav a:hover { color: white; }
.primary-nav a.is-active::after, .primary-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 17px; }
.portal .header-login { color: #f4f5ec; font-size: 12px; white-space: nowrap; }
.portal .button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 19px; border-radius: 6px; border: 1px solid transparent; font-weight: 650; font-size: 13px; line-height: 1.5; transition: background .18s, transform .18s; white-space: normal; }
.portal .button:hover { transform: translateY(-2px); }
.portal .button-coral { background: #ee8767; color: #192e27; }
.portal .button-coral:hover { background: #ff9e7e; }
.portal .button-green { background: var(--green); color: white; }
.portal .button-green:hover { background: #174535; }
.portal .button-light { background: #ffffff12; color: white; border-color: #ffffff24; }
.portal .button-glass { background: #163d35d9; color: white; border-color: #ffffff65; }
.header-account { max-width: 160px; }
.header-account span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal .icon-button { display: inline-grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--green); font-size: 18px; }
.game-scene { height: 310px; position: relative; overflow: hidden; background: #304a42; }
.game-scene-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 53%; image-rendering: pixelated; }
.scene-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #102a25f0 0%, #102a25bb 30%, #102a2524 67%, transparent 100%); }
.scene-content { position: relative; padding-top: 32px; padding-bottom: 28px; }
.scene-tag { color: #d6e2d9; font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.scene-tag i { color: #f5bf7f; font-size: 17px; }
.portal .scene-content h1 { margin: 10px 0; font-size: 38px; color: white; font-weight: 850; }
.scene-content h1 span { color: #f4bf75; }
.scene-content p { color: #e0e9df; font-size: 14px; line-height: 1.8; margin: 0 0 20px; }
.scene-actions { display: flex; gap: 10px; }
.server-band { background: white; border-bottom: 1px solid var(--line); }
.server-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 92px; }
.portal .server-picker { margin: 0; padding: 0; border: 0; background: transparent; gap: 26px; }
.portal .server-picker-label { color: var(--ink); font-size: 12px; gap: 2px 9px; }
.portal .server-picker-label small { font-size: 10px; color: var(--muted); }
.portal .server-picker-options { gap: 8px; }
.portal .server-picker a.server-choice { color: #5d6b62; border-color: #dde6dd; padding: 10px 17px; border-radius: 6px; font-size: 12px; background: #f8faf7; }
.portal .server-picker a.is-active { color: #266344; background: #ecf6eb; border-color: #a6cdb0; box-shadow: none; }
.portal .server-number { color: #8d9b91; font-weight: 400; }
.portal .server-picker a.is-active .server-number { color: #4e9268; }
.season-setting { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.season-setting > i { color: #d47b48; font-size: 17px; }
.season-setting select { border: 1px solid #e0e6df; border-radius: 5px; background: white; color: #5b6d62; padding: 8px 24px 8px 9px; font-size: 11px; min-height: 35px; }
.site-main { min-height: 55vh; padding: 32px 0 56px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.portal .eyebrow { display: block; color: #7d8b80; font-size: 9px; font-weight: 650; }
.portal .section-heading h2 { font-size: 23px; margin: 5px 0 0; }
.section-note { color: #819084; font-size: 11px; display: flex; align-items: center; gap: 7px; }
.download-section { scroll-margin-top: 20px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.download-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.portal .download-item { display: flex; align-items: center; text-align: left; gap: 13px; border: 1px solid var(--line); border-radius: 8px; padding: 18px; background: white; color: var(--ink); min-height: 86px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.portal .download-item:hover { border-color: #9eb8a9; transform: translateY(-3px); box-shadow: 0 6px 16px #1a3d2410; }
.download-item strong, .download-item small { display: block; }
.download-item strong { font-size: 14px; }
.download-item small { color: #8b968e; font-size: 10px; margin-top: 2px; }
.platform-icon { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 7px; display: grid; place-items: center; background: #edf6eb; color: #4a895a; font-size: 25px; }
.download-blue .platform-icon { background: #eef4fc; color: #548bc7; }
.download-ink .platform-icon { background: #f0f1f0; color: #46534c; }
.download-coral .platform-icon { background: #fff0eb; color: #d37457; }
.download-arrow { margin-left: auto; color: #8a9b8c; font-size: 15px; }
.community-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 38px; padding: 34px 0 12px; }
.portal .text-link { color: #5a7d68; font-size: 11px; white-space: nowrap; }
.text-link i { margin-left: 6px; }
.news-row { display: flex; align-items: center; gap: 17px; padding: 20px 2px; border-bottom: 1px solid var(--line); }
.news-row:first-child { padding-top: 7px; }
.news-icon { flex: 0 0 42px; height: 42px; display: grid; place-items: center; font-size: 18px; color: #5f836c; background: #eaf0e9; border-radius: 7px; }
.news-copy { min-width: 0; flex: 1; }
.news-copy small { display: block; font-size: 9px; color: #c17d57; }
.news-copy strong { display: block; font-size: 14px; color: #314b3b; margin: 3px 0; overflow-wrap: anywhere; }
.news-copy time { font-size: 10px; color: #94a096; }
.news-row > i { color: #94a096; }
.news-row:hover .news-copy strong { color: #ca7156; }
.community-feature { display: block; overflow: hidden; border-radius: 8px; border: 1px solid #e0e7dd; background: white; }
.community-feature img { display: block; width: 100%; aspect-ratio: 1023 / 600; object-fit: cover; }
.community-feature > span { display: flex; justify-content: space-between; gap: 8px; padding: 12px 15px; font-size: 12px; color: #345442; }
.community-link { display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); padding: 15px 1px; }
.community-link > i:first-child { color: #da8861; font-size: 20px; }
.community-link > i:last-child { margin-left: auto; color: #95a198; font-size: 13px; }
.community-link strong { display: block; color: #3d5849; font-size: 12px; }
.community-link small { display: block; color: #92a095; font-size: 10px; }
.empty-state { padding: 36px 16px; text-align: center; color: #8d9a90; border: 1px dashed #d8e1d8; border-radius: 6px; }
.empty-state > i { font-size: 28px; }
.empty-state p { margin: 8px 0; font-size: 13px; }
.empty-state a { font-size: 12px; }
.account-strip { display: flex; gap: 28px; align-items: center; padding: 0 0 22px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.account-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.account-identity > i { color: #568569; font-size: 30px; }
.account-identity strong { display: block; overflow-wrap: anywhere; font-size: 14px; }
.account-strip small { display: block; color: var(--muted); font-size: 10px; }
.account-balance strong { color: #b8753b; font-size: 14px; }
.account-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.account-tools a { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); background: white; border-radius: 5px; font-size: 11px; }
.site-footer { background: #eaf0ea; border-top: 1px solid #dfe7dc; padding: 30px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 64px; height: 46px; object-fit: contain; }
.footer-brand strong { font-size: 12px; color: #41644d; }
.footer-brand small { display: block; color: #8c9b8c; font-size: 10px; margin-top: 3px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer nav a { font-size: 11px; color: #6e816e; }
.footer-note { font-size: 10px; color: #8e9c8f; }
.portal .back-to-top { position: fixed; bottom: 20px; right: 20px; z-index: 20; background: #225240; color: white; border: 0; box-shadow: 0 4px 14px #183d3430; }
.portal .auth-area { max-width: 420px; margin: 0 auto; padding: 6px 0 16px; }
.auth-intro { text-align: center; margin-bottom: 25px; }
.auth-intro > img { width: 112px; height: 80px; object-fit: contain; margin-bottom: 12px; }
.portal .auth-intro h1 { font-size: 27px; margin: 8px 0; }
.auth-intro p { margin: 0; color: #8a978e; font-size: 12px; }
.auth-tabs { display: flex; border-bottom: 1px solid #dfe7dd; margin-bottom: 24px; }
.auth-tabs a { width: 50%; text-align: center; font-weight: 600; padding: 12px; color: #8e9a90; position: relative; }
.auth-tabs a.active { color: #24634f; }
.auth-tabs a.active::after { content: ""; position: absolute; bottom: -1px; height: 3px; left: 15%; right: 15%; background: #42795b; }
.portal .auth-server { display: block; margin: 0 0 19px; }
.portal .auth-server label, .portal .field label { display: block; width: auto; text-align: left; font-size: 12px; color: #52675a; font-weight: 650; margin-bottom: 7px; }
.portal .field { margin-bottom: 18px; }
.portal .auth-server select, .portal .field input { display: block; width: 100%; border: 1px solid #dce4d9; border-radius: 6px; min-height: 46px; padding: 11px 13px; background: white; color: #354e3e; font-size: 14px; transition: border-color .2s, box-shadow .2s; }
.portal .field input:focus, .portal .auth-server select:focus { border-color: #83ad8c; box-shadow: 0 0 0 3px #e1ede1; outline: none; }
.portal input::placeholder { color: #abb4ac; font-size: 12px; }
.password-field { position: relative; }
.portal .password-field input { padding-right: 48px; }
.portal .password-toggle { position: absolute; right: 4px; top: 3px; border: 0; background: transparent; color: #829685; font-size: 17px; }
.captcha-field { display: grid; grid-template-columns: minmax(0, 1fr) 40px 112px; align-items: center; gap: 8px; }
.captcha-field img { width: 100%; height: 46px; object-fit: contain; background: white; border: 1px solid #e0e6dc; border-radius: 6px; cursor: pointer; }
.portal .captcha-field input { text-transform: uppercase; }
.portal .auth-submit { width: 100%; margin-top: 5px; min-height: 48px; }
.auth-submit i { margin-left: auto; }
.auth-forgot { display: block; text-align: center; margin-top: 17px; color: #758c7a; font-size: 12px; }
.auth-help { color: #92a095; font-size: 10px; text-align: center; margin-top: 28px; }
.auth-help i { margin-right: 6px; }
.form-message:not(:empty) { font-size: 12px; padding: 12px; background: #fff3e5; border-left: 3px solid #d39c57; margin-bottom: 18px; overflow-wrap: anywhere; }
.portal .page-heading h1 { font-size: 28px; margin: 6px 0; }
.page-heading p { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.forum-count { font-size: 11px; color: #87957e; white-space: nowrap; }
.forum-labels { display: flex; justify-content: space-between; padding: 12px 20px; background: #eaf0e5; color: #7b8d6d; font-size: 10px; border-top: 1px solid #dce6d3; }
.forum-labels span:last-child { margin-right: 24px; }
.forum-row { padding: 20px; background: white; }
.forum-row > time { font-size: 11px; color: #8f9c83; white-space: nowrap; }
.post-author { font-size: 10px; color: #96a38c; }
.forum-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.forum-pagination a { display: inline-grid; place-items: center; min-width: 36px; height: 36px; border: 1px solid #d7e2cd; border-radius: 5px; background: white; color: #728861; font-size: 12px; }
.forum-pagination a.active { background: #48714a; color: white; border-color: #48714a; }

/* Keep legacy pages within the same shell without changing their data handling. */
.portal div.body { background: transparent; }
.portal .bg-content { background: white; padding: 24px 0; margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.portal .bg-content p { font-size: 14px; line-height: 1.9; color: #586b5e; }
.portal .bg-content h4 { font-size: 22px; margin: 0 0 18px; }
.portal .bg-content .title { background: none; border: 0; padding: 0; }
.portal .w3-button { border-radius: 5px; font-size: 12px !important; min-height: 38px; padding: 9px 16px !important; }
.portal .w3-red { background: #2e6b50 !important; color: white !important; }
.portal #box_forums { float: none; width: 100%; }
.portal #box_forums .box_list_chuyenmuc { float: none; width: 100%; background: transparent; }
.portal #box_forums .box_list_parent .box_parent_list_next { background: #24634f; padding: 8px; margin-bottom: 20px; border-radius: 6px; }
.portal #box_forums .box_list_parent .box_list_parent_next :is(.box_list_c, .box_list_c_s) { background: none; padding: 12px 4px; }
.portal #box_forums .box_list_parent .box_list_parent_next table { width: 100%; }
.portal #box_forums .box_list_parent .box_list_parent_next table td:first-child { width: 78px !important; }
.portal #box_forums .box_list_parent .box_list_parent_next .box_oxx_isAdmin a { display: inline-block; white-space: nowrap; font-size: 8px !important; }
.portal #box_forums .box_list_parent .box_list_parent_next :is(.box_list_b, .box_list_b_s) { background: white !important; padding: 16px; border-bottom: 1px solid var(--line); }
.portal #box_forums .box_list_parent .box_list_parent_next .box_list_ads { color: var(--ink); font-size: 14px; line-height: 1.8; }
.portal #box_forums .box_list_parent .box_list_parent_next .box_list_ads .box_title_bviet { font-size: 22px; color: #28563c; margin: 14px 0; line-height: 1.4; }
.portal #box_forums .box_list_parent .box_list_parent_next .box_ndung_bviet { overflow-wrap: anywhere; }
.portal #box_forums .box_comment_new { position: relative; clear: both; padding-top: 20px; }
.portal #comment_content { min-width: 0; }
.portal .server-context { margin: 0 0 22px; border: 0; border-left: 3px solid #77a68a; border-radius: 0; background: #edf3ea; color: #5d7b63; padding: 14px 18px; font-size: 12px; }
.portal .server-context strong { color: #2c6145; }
.portal .ph { background: #eff3eb; border: 0; color: #345c40; padding: 14px 18px; font-size: 14px; line-height: 1.5; }
.portal .ph .phs { color: #84947a; font-size: 10px; }
.portal .pb { background: white; border: 1px solid #e3e9df; border-top: 0; padding: 22px; margin-bottom: 24px; overflow-x: auto; }
.portal .pi { font-size: 13px; }
.portal .pi td { padding: 12px 6px; border-color: #ebefe8; }
.portal .pi .lb { color: #6b7e66; }
.portal .pxf { background: #f1f7ef; border-color: #a4bea0; border-radius: 6px; padding: 14px; }
.portal .pxf-l { color: #647c5b; font-size: 11px; }
.portal .pxf-v { color: #3e6a3c; font-size: 19px; }
.portal .bcp { background: #69815e; border-radius: 4px; padding: 5px 9px; }
.portal .pchip { border-color: #e5e7d9; color: #869078; padding: 4px 8px; border-radius: 4px; }
.portal .pwarn { background: #fff7e5; color: #937239; padding: 12px; font-size: 11px; }
.portal .pfg label { color: #5d795d; font-size: 12px; }
.portal .pfg input, .portal .pfg select { padding: 11px 12px; border: 1px solid #dce4d6; border-radius: 5px; min-height: 43px; }
.portal .ptbl { min-width: 520px; font-size: 12px; }
.portal .ptbl th { background: #f1f4ee; color: #70816b; font-size: 11px; padding: 13px; }
.portal .ptbl td { padding: 14px 12px; border-color: #e8ece1; }
.portal .menu1 td { background: #e9eee2 !important; color: #57704a; border-bottom: 3px solid #96ad80; padding: 7px; }
.portal .menu1 td[aria-selected="true"] { background: #346248 !important; color: white; border-color: #346248; }
.portal .qln, .portal .gca { padding: 0; max-width: none; color: #405538; }
.portal .qln h2, .portal .gca h2 { color: #345938; font-size: 25px; text-align: left; }
.portal .qln-card, .portal .gca-card { border: 0; border-bottom: 1px solid #dae3d2; border-radius: 0; box-shadow: none; background: white; padding: 20px 0; }
.portal .qln-btn, .portal .gca-btn { background: #48734f; border-radius: 5px; }
.portal .qln-btn.sec, .portal .gca-btn.sec { background: white; color: #55744d; border-color: #bacbb0; }
.portal .qln-btn.danger, .portal .gca-btn.danger { background: #b75a4c; }
.portal .qln-table th { background: #eaf0e2; color: #506b46; padding: 12px 8px; }
.portal .qln-table td { padding: 11px 8px; border-color: #e5ebdc; }
.portal .gc-dialog { background: #f8faf5; border: 1px solid #bdd0b7; border-radius: 8px; box-shadow: 0 20px 80px #123a3238; }
.portal .gc-header { background: #295a47; padding: 18px; font-size: 16px; }
.portal .gc-header::before { display: none; }
.portal .gc-body { padding: 20px; }
.portal .gc-card { border-color: #dbe6d4; box-shadow: none; }
.portal .gc-code { color: #42713c; border-color: #9ebc8e; background: #f1f6e9; }
.portal .gc-item { background: #f3f6ed; border-color: #e1e8d7; color: #688153; }

/* Ranking is an unframed page section, with distinct gold, silver and coral podiums. */
.portal .leaderboard { width: 100%; margin: 36px 0 0; padding-top: 24px; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; overflow: visible; font-family: inherit; color: var(--ink); }
.portal .lb-heading { padding: 0 0 24px; background: transparent; }
.portal .lb-eyebrow { color: #879580; font-size: 9px; letter-spacing: 0; }
.portal .lb-heading h2 { font-size: 28px; color: #2e5139; margin: 6px 0; }
.portal .lb-heading p { color: #8a9a82; font-size: 12px; }
.portal .lb-emblem { border-radius: 8px; background: #edf2df; border: 1px solid #dbe5c8; width: 60px; height: 60px; flex-basis: 60px; color: #ad9243; box-shadow: none; transform: none; font-size: 30px; }
.portal .lb-toolbar { padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.portal .lb-servers { background: #e9eee2; border-radius: 6px; }
.portal .leaderboard .lb-servers a { color: #637653; font-size: 12px; border-radius: 4px; padding: 9px 20px; }
.portal .leaderboard .lb-servers a.active { background: #3d6747; color: white; box-shadow: none; }
.portal .lb-live { color: #8a9a7f; font-size: 11px; }
.portal .lb-tabs { padding: 22px 0; gap: 12px; }
.portal .lb-tab { padding: 13px 8px; border-radius: 6px; background: white; border-color: #dde5d3; color: #748764; font-size: 13px; }
.portal .lb-tab.active { background: #edf4e5; border-color: #94b180; box-shadow: none; color: #3d6935; }
.portal .lb-tab small { color: #95a18b; font-size: 10px; }
.portal .lb-panel { padding: 0; }
.portal .lb-podium { gap: 16px; margin-bottom: 22px; }
.portal .lb-champion { border-radius: 8px; padding: 22px; background: #f1f4eb; border-color: #d8dfcc; }
.portal .lb-champion.champion-1 { background: #f8f1d7; border-color: #e5d79b; }
.portal .lb-champion.champion-2 { background: #edf2f6; border-color: #d0dce6; }
.portal .lb-champion.champion-3 { background: #fbede6; border-color: #ecc8b6; }
.portal .lb-champion h3 { color: #3e4f39; font-size: 18px; }
.portal .lb-champion p { color: #8f733e; font-size: 13px; }
.portal .lb-champion-label { color: #89906e; letter-spacing: 0; }
.portal .lb-table-wrap { background: white; border-radius: 8px; border-color: #dfe6d5; max-height: 670px; }
.portal .lb-table th { background: #eef2e7; color: #7b8c69; letter-spacing: 0; padding: 16px 22px; }
.portal .lb-table td { border-color: #ebefe3; padding: 18px 22px; }
.portal .lb-table tbody tr:nth-child(even) { background: #f9fbf6; }
.portal .lb-table tbody tr:hover { background: #f0f5e8; }
.portal .lb-player strong { color: #3c5838; }
.portal .lb-player small { color: #97a188; }
.portal .lb-value { color: #61804c; }
.portal .lb-footnote { color: #8f9d7f; }

@media (max-width: 1050px) {
    .site-container { width: calc(100% - 40px); }
    .header-inner { gap: 20px; }
    .brand > span { display: none; }
    .primary-nav { gap: 25px; }
    .download-item { gap: 9px; }
    .portal .download-item { padding: 14px; }
    .platform-icon { width: 36px; height: 36px; flex-basis: 36px; }
}
@media (max-width: 700px) {
    .site-container { width: calc(100% - 32px); }
    .age-strip { font-size: 8px; }
    .age-strip .site-container { min-height: 26px; gap: 5px; }
    .header-inner { flex-wrap: wrap; gap: 0 10px; padding-top: 10px; }
    .brand img { width: 61px; height: 48px; }
    .brand > span { display: block; }
    .brand strong { font-size: 12px; }
    .brand small { font-size: 8px; }
    .header-actions { margin-left: auto; gap: 10px; }
    .portal .header-actions .button { min-height: 36px; padding: 8px 11px; font-size: 11px; }
    .portal .header-login { font-size: 10px; }
    .primary-nav { width: 100%; order: 3; justify-content: space-between; gap: 4px; margin-top: 8px; }
    .portal .primary-nav a { min-height: 44px; font-size: 11px; gap: 6px; }
    .primary-nav i { font-size: 13px; }
    .game-scene { height: 282px; }
    .game-scene-image { object-position: 62% center; }
    .scene-shade { background: linear-gradient(90deg, #12372fea 0%, #153c3480 64%, #153c3420 100%); }
    .scene-content { padding-top: 27px; }
    .portal .scene-content h1 { font-size: 29px; margin: 14px 0 10px; }
    .scene-content p { font-size: 12px; }
    .scene-tag { font-size: 10px; }
    .portal .scene-actions .button { padding: 10px 13px; font-size: 12px; }
    .server-band-inner { flex-wrap: wrap; gap: 0; padding-top: 16px; padding-bottom: 10px; }
    .portal .server-picker { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; gap: 14px; }
    .portal .server-picker-label { align-self: auto; font-size: 11px; }
    .portal .server-picker-label small { display: none; }
    .portal .server-picker-options { width: auto; }
    .portal .server-picker a.server-choice { flex: none; padding: 9px 13px; gap: 6px; font-size: 11px; }
    .season-setting { justify-content: flex-end; width: 100%; padding-top: 8px; font-size: 10px; }
    .season-setting select { padding: 5px 22px 5px 8px; min-height: 29px; font-size: 10px; }
    .site-main { padding: 24px 0 36px; }
    .portal .section-heading h2 { font-size: 20px; }
    .section-heading { align-items: center; gap: 8px; margin-bottom: 17px; }
    .section-note { display: none; }
    .download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .portal .download-item { padding: 13px 10px; gap: 8px; min-height: 77px; }
    .download-item strong { font-size: 12px; }
    .download-item small { font-size: 9px; }
    .platform-icon { flex-basis: 30px; width: 30px; height: 34px; font-size: 21px; }
    .download-arrow { font-size: 12px; }
    .download-section { padding-bottom: 26px; }
    .community-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
    .portal .text-link { font-size: 10px; }
    .news-row { gap: 12px; padding: 16px 0; }
    .news-copy strong { font-size: 13px; }
    .community-feature img { max-height: 230px; }
    .account-strip { flex-wrap: wrap; gap: 12px; }
    .account-identity { flex: 1; }
    .account-tools { width: 100%; margin-left: 0; }
    .footer-inner { align-items: flex-start; gap: 22px; }
    .site-footer nav { gap: 20px; width: 100%; }
    .footer-note { display: none; }
    .portal .auth-area { max-width: 390px; padding-top: 0; }
    .portal .page-heading h1 { font-size: 24px; }
    .forum-row { padding: 16px 10px; gap: 10px; }
    .forum-row > time { font-size: 9px; }
    .forum-row .news-icon { flex-basis: 32px; height: 32px; font-size: 15px; }
    .portal .auth-intro h1 { font-size: 25px; }
    .auth-intro > img { width: 90px; height: 64px; }
    .portal .bg-content { padding: 18px 0; }
    .portal .pb { padding: 14px; }
    .portal .pi .lb { white-space: normal; width: 37%; }
    .portal .pi { font-size: 12px; }
    .portal .pi td { overflow-wrap: anywhere; }
    .portal .ph .phs { float: none; display: block; margin-top: 4px; }
    .portal .leaderboard { margin-top: 26px; }
    .portal .lb-heading h2 { font-size: 24px; }
    .portal .lb-heading { padding-bottom: 18px; }
    .portal .lb-heading p { font-size: 11px; }
    .portal .lb-emblem { width: 46px; height: 46px; flex-basis: 46px; font-size: 25px; }
    .portal .lb-toolbar { padding: 12px 0; }
    .portal .lb-live { font-size: 9px; }
    .portal .lb-servers a { font-size: 11px; padding: 8px 16px; }
    .portal .lb-tabs { padding: 16px 0; gap: 8px; }
    .portal .lb-tab { padding: 12px 5px; font-size: 12px; }
    .portal .lb-podium { gap: 7px; }
    .portal .lb-champion { padding: 12px 9px; }
    .portal .lb-champion h3 { font-size: 12px; }
    .portal .lb-champion p { font-size: 10px; }
    .portal .lb-table th, .portal .lb-table td { padding: 13px 9px; }
    .portal .lb-player strong, .portal .lb-value { font-size: 12px; }
    .portal .lb-player small { font-size: 10px; }
    .portal .lb-champion-label { font-size: 8px; }
    .portal .lb-footnote { font-size: 10px; }
}
@media (max-width: 380px) {
    .site-container { width: calc(100% - 24px); }
    .brand strong { font-size: 10px; }
    .brand small { display: none; }
    .brand img { width: 44px; }
    .portal .header-login { font-size: 9px; }
    .portal .primary-nav a { font-size: 10px; }
    .portal .server-picker a.server-choice { padding: 8px 10px; }
    .portal .scene-content h1 { font-size: 26px; }
    .download-arrow { display: none; }
    .captcha-field { grid-template-columns: minmax(0, 1fr) 36px 96px; gap: 5px; }
    .portal .captcha-refresh { width: 36px; }
    .section-heading .text-link { max-width: 86px; white-space: normal; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
    .portal *, .portal *::before, .portal *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .portal .gc-card, .portal .gc-item { opacity: 1; }
    #season-canvas { display: none; }
}
