body.portal {
    --ink: #badd89;
    --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: #d6c44d; 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; }

/* Neon game theme */
body.portal {
    --ink: #eaf8ff;
    --muted: #92a8b6;
    --green: #19d6a2;
    --coral: #2de7b5;
    --line: rgba(98, 205, 255, .14);
    background:
        radial-gradient(circle at 10% 20%, rgba(0, 206, 255, .07), transparent 22rem),
        radial-gradient(circle at 90% 55%, rgba(111, 74, 255, .08), transparent 26rem),
        #07111e;
    color: var(--ink);
}
.portal h1, .portal h2, .portal h3, .portal h4,
.portal .section-heading h2, .portal .page-heading h1 { color: #f4fbff; }
.portal a { color: #55e5c1; }
.age-strip { background: #0a1725; color: #718b9c; border-bottom: 1px solid rgba(97, 203, 255, .08); }
.age-badge { color: #53cbd7; }
.site-header {
    background: linear-gradient(100deg, rgba(8, 18, 35, .98), rgba(10, 28, 46, .98));
    border-bottom: 1px solid rgba(87, 232, 199, .2);
    box-shadow: 0 10px 35px rgba(0, 0, 0, .24);
}
.brand strong b { color: #39edc1; text-shadow: 0 0 18px rgba(57, 237, 193, .45); }
.brand small { color: #7c9bad; }
.portal .primary-nav a { color: #92aabd; }
.portal .primary-nav a.is-active, .portal .primary-nav a:hover { color: #fff; }
.primary-nav a::after { background: #45edc0; box-shadow: 0 0 10px #45edc0; }
.portal .header-login { color: #c8d7df; }
.portal .button-coral {
    background: linear-gradient(135deg, #26dab0, #66efb8);
    color: #062719;
    box-shadow: 0 8px 24px rgba(37, 218, 176, .18);
}
.portal .button-coral:hover { background: linear-gradient(135deg, #56ebc3, #86f7cb); }
.portal .button-light { background: rgba(81, 216, 188, .08); border-color: rgba(91, 232, 198, .22); }
.portal .button-glass { background: rgba(7, 20, 34, .72); border-color: rgba(125, 227, 255, .28); }
.game-scene {
    height: 360px;
    background:
        linear-gradient(120deg, rgba(5, 20, 37, .98) 10%, rgba(5, 20, 37, .55) 55%, rgba(17, 11, 54, .35)),
        #07111e;
}
.game-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(91, 206, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(91, 206, 255, .06) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(90deg, #000, transparent 78%);
}
.game-scene-image { opacity: .82; filter: saturate(1.08) contrast(1.08); object-position: center 47%; }
.scene-shade { background: linear-gradient(90deg, rgba(5, 16, 31, .97) 0%, rgba(5, 16, 31, .72) 42%, transparent 78%); }
.scene-content { z-index: 2; padding-top: 48px; }
.scene-tag {
    color: #91c3cf;
    text-transform: uppercase;
    letter-spacing: .12em !important;
}
.scene-tag i { color: #42e9bf; text-shadow: 0 0 14px #42e9bf; }
.portal .scene-content h1 {
    font-size: clamp(36px, 5vw, 58px);
    letter-spacing: .04em !important;
    text-shadow: 0 8px 30px rgba(0, 0, 0, .55);
}
.scene-content h1 span { color: #4bf2c3; text-shadow: 0 0 24px rgba(75, 242, 195, .5); }
.scene-content p { color: #bdcfd9; font-size: 16px; }
.server-band {
    background: rgba(8, 20, 34, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}
.portal .server-picker-label { color: #d7e7ee; }
.portal .server-picker-label small { color: #829aa8; }
.portal .server-picker a.server-choice {
    color: #99afbd;
    border-color: rgba(93, 184, 205, .14);
    background: rgba(4, 14, 27, .66);
}
.portal .server-picker a.is-active {
    color: #72f2c9;
    background: rgba(32, 190, 151, .11);
    border-color: rgba(69, 238, 191, .55);
    box-shadow: inset 0 0 18px rgba(69, 238, 191, .06), 0 0 14px rgba(69, 238, 191, .05);
}
.portal .server-number { color: #6d8797; }
.portal .server-picker a.is-active .server-number { color: #43cfa6; }
.season-setting { color: #819dac; }
.season-setting > i { color: #5ce8c3; }
.season-setting select {
    border-color: rgba(91, 181, 206, .18);
    background: #091827;
    color: #b3c7d2;
}
.portal .eyebrow { color: #58c7b0; letter-spacing: .13em !important; }
.download-section { border-bottom-color: var(--line); }
.section-note { color: #7d9baa; }
.portal .download-item {
    background: linear-gradient(145deg, rgba(13, 31, 50, .92), rgba(9, 23, 39, .92));
    border-color: rgba(105, 196, 224, .13);
    color: #e9f7fb;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}
.portal .download-item:hover {
    border-color: rgba(61, 234, 190, .48);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .24), inset 0 0 24px rgba(61, 234, 190, .025);
}
.download-item strong { color: #effaff; }
.download-item small { color: #829cab; }
.platform-icon { background: rgba(36, 218, 176, .1); color: #51dfbd; border: 1px solid rgba(72, 228, 191, .16); }
.download-blue .platform-icon { background: rgba(64, 168, 255, .1); color: #62baff; }
.download-ink .platform-icon { background: rgba(162, 125, 255, .1); color: #ad91ff; }
.download-coral .platform-icon { background: rgba(255, 178, 93, .1); color: #ffc16f; }
.download-arrow { color: #66899a; }
.news-row { border-bottom-color: var(--line); }
.news-icon { background: rgba(50, 215, 180, .08); color: #53dabc; border: 1px solid rgba(79, 219, 188, .12); }
.news-copy small { color: #57bfaa; }
.news-copy strong { color: #dcecf3; }
.news-copy time { color: #718d9d; }
.news-row > i { color: #66899a; }
.news-row:hover .news-copy strong { color: #58ecc2; }
.portal .text-link { color: #74cdb8; }
.community-feature { border-color: rgba(106, 196, 224, .12); background: #0b1b2b; }
.community-feature > span { color: #d9edf3; }
.community-link { border-bottom-color: var(--line); }
.community-link strong { color: #d3e8ef; }
.community-link small { color: #7d98a7; }
.community-link > i:first-child { color: #55dcb9; }
.community-link > i:last-child { color: #66899a; }
.empty-state { color: #809aa8; border-color: rgba(105, 196, 224, .18); background: rgba(10, 27, 43, .4); }
.account-strip { border-bottom-color: var(--line); }
.account-identity > i { color: #57dec0; }
.account-strip small { color: #829aa8; }
.account-balance strong { color: #ffc26b; }
.account-tools a {
    border-color: rgba(105, 196, 224, .14);
    background: #0d2033;
    color: #b1c7d3;
}
.portal .account-tools .admin-tool {
    border-color: #ffc14f;
    background: linear-gradient(180deg, #ff8425, #cb3e18);
    color: #fff;
}
.portal .account-tools .admin-tool:hover {
    background: linear-gradient(180deg, #ff9a42, #e95a25);
}
.site-footer {
    background: #081522;
    border-top: 1px solid rgba(105, 196, 224, .12);
}
.footer-brand strong { color: #d7edf3; }
.footer-brand small, .footer-note, .site-footer nav a { color: #718f9f; }
.portal .back-to-top { background: #20be96; color: #061d17; box-shadow: 0 8px 24px rgba(32, 190, 150, .25); }

@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; }
}

/* Reference-inspired portal structure */
body.portal {
    --ink: #4b3a2f;
    --muted: #816f60;
    --green: #8a5e3f;
    --coral: #c96f3a;
    --line: rgba(112, 82, 58, .22);
    background:
        radial-gradient(circle at 12% 30%, rgba(255, 255, 255, .32), transparent 24rem),
        radial-gradient(circle at 88% 70%, rgba(164, 128, 91, .10), transparent 28rem),
        #d8c9b6;
}
.portal .age-strip { display: none; }
.portal .site-container { width: min(1180px, calc(100% - 40px)); }
.portal .site-header {
    background: linear-gradient(90deg, #694a34 0%, #80624a 55%, #694a34 100%);
    border-bottom: 2px solid #a98968;
    box-shadow: 0 8px 28px rgba(78, 57, 40, .22);
}
.portal .header-inner { min-height: 68px; gap: 16px; }
.portal a.brand { gap: 5px; }
.portal .brand img { width: 64px; height: 50px; }
.portal .brand strong { font-size: 13px; }
.portal .brand small { display: none; }
.portal .primary-nav { flex: 1; justify-content: center; gap: 4px; }
.portal .primary-nav a {
    min-height: 68px;
    padding: 0 10px;
    color: #ece9ff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.portal .primary-nav a i { display: none; }
.portal .primary-nav a.is-active,
.portal .primary-nav a:hover {
    color: #fff;
    background: linear-gradient(180deg, #ed621f, #b52e18);
    border-radius: 0 0 5px 5px;
}
.portal .primary-nav a::after { display: none; }
.portal .header-actions { gap: 8px; }
.portal .header-login { display: none; }
.portal .header-actions .button-coral {
    background: linear-gradient(180deg, #ba351d, #741c22);
    color: #fff;
    border: 1px solid #e27638;
    min-height: 38px;
    padding: 8px 12px;
}
.portal .server-band { display: none; }
.portal .game-scene {
    height: 300px;
    margin: 18px auto 0;
    width: min(1180px, calc(100% - 40px));
    border: 1px solid rgba(120, 89, 62, .28);
    border-radius: 5px;
    background: #a17d5b;
    box-shadow: 0 16px 42px rgba(78, 57, 40, .20);
}
.portal .game-scene-image {
    width: 100%;
    opacity: .95;
    object-fit: cover;
    object-position: center 48%;
    image-rendering: auto;
}
.portal .scene-shade {
    background:
        linear-gradient(90deg, rgba(93, 64, 42, .82), rgba(93, 64, 42, .16) 48%, rgba(93, 64, 42, .12)),
        radial-gradient(circle at 75% 50%, transparent 0, rgba(130, 92, 58, .12) 100%);
}
.portal .scene-content { padding-top: 38px; }
.portal .scene-tag {
    width: fit-content;
    border: 1px solid rgba(255, 182, 81, .55);
    background: rgba(69, 20, 101, .7);
    border-radius: 999px;
    padding: 6px 11px;
    color: #ffe4a3;
}
.portal .scene-content h1 {
    margin: 12px 0 8px;
    max-width: 520px;
    font-size: 42px;
    text-shadow: 0 4px 18px #25054e;
}
.portal .scene-content h1 span { color: #ffcf55; }
.portal .scene-content p { display: none; }
.portal .scene-actions { margin-top: 16px; }
.portal .scene-actions .button {
    min-height: 40px;
    border-radius: 4px;
}
.portal .button-coral {
    background: linear-gradient(180deg, #ff8425, #cb3e18);
    color: #fff;
    border: 1px solid #ffc14f;
}
.portal .button-glass {
    background: rgba(21, 10, 74, .72);
    border-color: rgba(217, 181, 255, .55);
}
.portal .site-main {
    padding: 20px 0 44px;
}
.portal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px;
    align-items: start;
}
.forum-panel,
.side-panel {
    overflow: hidden;
    border: 1px solid rgba(112, 82, 58, .30);
    border-radius: 4px;
    background: rgba(244, 237, 225, .96);
    box-shadow: 0 12px 32px rgba(78, 57, 40, .12);
}
.forum-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid rgba(112, 82, 58, .22);
    background: linear-gradient(180deg, #b09a7e, #967b60);
}
.forum-tabs button,
.forum-tabs a {
    min-height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-right: 1px solid rgba(112, 82, 58, .20);
    background: transparent;
    color: #fffaf2;
    font-size: 12px;
    font-weight: 700;
}
.forum-tabs button.active,
.forum-tabs button:hover,
.forum-tabs a:hover {
    color: #fff;
    background: linear-gradient(180deg, rgba(222, 93, 50, .9), rgba(124, 38, 43, .9));
}
.forum-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid rgba(112, 82, 58, .18);
}
.forum-toolbar label { display: grid; gap: 4px; }
.forum-toolbar label span { color: #816f60; font-size: 10px; }
.forum-toolbar select,
.forum-search input {
    width: 100%;
    height: 38px;
    border: 1px solid rgba(112, 82, 58, .24);
    border-radius: 3px;
    background: #fbf7ef;
    color: #4b3a2f;
}
.forum-toolbar select { padding: 7px 10px; }
.forum-search {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 90px;
    align-items: center;
    margin: 12px;
    border: 1px solid rgba(112, 82, 58, .24);
    border-radius: 3px;
    background: #fbf7ef;
}
.forum-search i { text-align: center; color: #927f6d; }
.forum-search input {
    border: 0;
    border-left: 1px solid rgba(151, 128, 223, .18);
    height: 42px;
    padding: 8px 12px;
    outline: none;
}
.forum-search button {
    height: 42px;
    border: 0;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, #bc3527, #831d25);
    color: #fff;
    font-size: 12px;
}
.forum-post-list { border-top: 1px solid rgba(112, 82, 58, .18); background: #faf6ed; }
.forum-post-row {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid rgba(130, 99, 225, .18);
    color: #dcd8f7;
}
.forum-post-row:hover { background: rgba(121, 89, 211, .1); }
.forum-avatar {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(194, 157, 255, .32);
    border-radius: 4px;
    background: linear-gradient(145deg, #301866, #0b092e);
    color: #ffc44e;
}
.forum-post-copy { min-width: 0; flex: 1; }
.forum-post-copy strong {
    display: block;
    color: #eeeaff;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.forum-post-copy small { display: block; margin-top: 5px; color: #918abb; font-size: 10px; }
.forum-post-copy b { color: #78dbbf; }
.forum-post-row > i { color: #7770a7; }
.forum-post-card { border-bottom: 1px solid rgba(112, 82, 58, .18); background: #faf6ed; }
.forum-post-meta { display: flex; align-items: center; gap: 9px; min-height: 58px; padding: 10px 12px 6px; }
.forum-post-meta > span:nth-child(2) { min-width: 0; }
.forum-post-meta > span strong, .forum-post-meta > span time { display: inline; font-size: 10px; }
.forum-post-meta > span strong { color: #4b3a2f; }
.forum-post-meta > span time { color: #927f6d; }
.forum-pinned { margin-left: auto; color: #ffc84c; font-size: 9px; }
.forum-post-body { display: block; padding: 6px 12px 12px; }
.forum-post-body h3 { margin: 0 0 9px; color: #4b3a2f; font-size: 16px; line-height: 1.35; }
.forum-post-body img { display: block; width: 100%; max-height: 290px; object-fit: cover; border-radius: 3px; border: 1px solid rgba(179, 151, 255, .18); }
.forum-post-body p { margin: 0; color: #816f60; line-height: 1.7; font-size: 12px; }
.forum-post-actions { display: flex; gap: 18px; align-items: center; min-height: 40px; padding: 8px 12px; border-top: 1px solid rgba(112, 82, 58, .16); color: #927f6d; font-size: 10px; }
.forum-post-actions a { color: #927f6d; }
.forum-post-actions i { margin-right: 5px; }
.forum-post-actions small { margin-left: auto; }
.portal-sidebar { display: grid; gap: 14px; }
.side-panel h2 {
    margin: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(112, 82, 58, .22);
    background: linear-gradient(180deg, #b09a7e, #967b60);
    color: #fffaf2;
    font-size: 11px;
    font-weight: 850;
}
.account-panel { padding: 0 0 12px; }
.side-login,
.side-register,
.side-forgot {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 10px 10px 0;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 750;
}
.side-login {
    background: linear-gradient(180deg, #ea3c21, #ba251f);
    color: #fff;
    border: 1px solid #f8874b;
}
.side-register {
    background: linear-gradient(180deg, #9c8061, #806348);
    color: #fffaf2;
    border: 1px solid rgba(112, 82, 58, .38);
}
.side-forgot {
    min-height: 30px;
    color: #816f60;
}
.logged-account {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px;
    padding: 10px;
    background: rgba(145, 112, 78, .10);
}
.logged-account > i { font-size: 30px; color: #7bd6bd; }
.logged-account strong,
.logged-account small { display: block; }
.logged-account small { color: #ffc66b; }
.download-panel { padding: 0 0 10px; }
.side-download-list { display: grid; gap: 7px; padding: 10px; }
.side-download {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border: 1px solid rgba(112, 82, 58, .20);
    border-radius: 3px;
    background: linear-gradient(100deg, #0f9b87, #0871aa);
    color: #fff;
}
.side-download.side-blue { background: linear-gradient(100deg, #1d58cb, #743dd5); }
.side-download.side-ink { background: linear-gradient(100deg, #6d3bc7, #b82cb0); }
.side-download.side-orange { background: linear-gradient(100deg, #c97a20, #b84727); }
.side-download.side-pink { background: linear-gradient(100deg, #ce3c83, #e04a68); }
.side-download.side-iphone { background: linear-gradient(100deg, #0c77cf, #47a7de); }
.side-download.side-website { background: linear-gradient(100deg, #ad331f, #742010); }
.side-download[aria-disabled="true"] { opacity: .62; cursor: not-allowed; }
.side-guide {
    border: 1px solid rgba(112, 82, 58, .30);
    border-radius: 4px;
    background: linear-gradient(180deg, #b09a7e, #967b60);
    overflow: hidden;
}
.side-guide strong {
    display: block;
    min-height: 54px;
    padding: 10px 12px;
    color: #fffaf2;
    font-size: 11px;
    line-height: 1.55;
}
.side-guide strong i { color: #ffc44e; margin-right: 6px; }
.side-guide a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border-top: 1px solid rgba(112, 82, 58, .22);
    color: #816f60;
    font-size: 10px;
}
.side-download > i:first-child { font-size: 19px; }
.side-download > i:last-child { margin-left: auto; }
.side-download span { min-width: 0; }
.side-download strong,
.side-download small { display: block; }
.side-download strong { font-size: 11px; }
.side-download small { font-size: 9px; opacity: .8; }
.side-zalo {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 10px;
    padding: 9px;
    border-top: 1px solid rgba(151, 128, 223, .22);
    color: #dcd8f7;
}
.side-zalo > i { color: #63c6ff; font-size: 18px; }
.side-zalo strong,
.side-zalo small { display: block; }
.side-zalo strong { font-size: 11px; }
.side-zalo small { color: #918abb; font-size: 9px; }
.portal .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.portal .community-grid,
.portal .download-section { display: none; }

@media (max-width: 1050px) {
    .portal .brand > span { display: none; }
    .portal .primary-nav { justify-content: flex-start; overflow-x: auto; }
    .portal .primary-nav a { flex: 0 0 auto; padding: 0 7px; }
}
@media (max-width: 700px) {
    .portal .site-container,
    .portal .game-scene { width: calc(100% - 20px); }
    .portal .header-inner { min-height: 58px; }
    .portal .brand img { width: 50px; height: 42px; }
    .portal .primary-nav {
        width: 100%;
        order: 3;
        min-height: 44px;
        margin: 0;
    }
    .portal .primary-nav a { min-height: 44px; padding: 0 8px; font-size: 9px; }
    .portal .game-scene { height: 230px; margin-top: 10px; }
    .portal .scene-content { padding-top: 32px; }
    .portal .scene-content h1 { max-width: 280px; font-size: 28px; }
    .portal .scene-tag { font-size: 9px; }
    .portal-layout { grid-template-columns: 1fr; }
    .portal-sidebar { grid-template-columns: 1fr 1fr; }
    .forum-tabs { grid-template-columns: repeat(3, 1fr); }
    .forum-tabs a:nth-last-child(-n+2) { display: none; }
    .forum-toolbar { grid-template-columns: 1fr; }
    .forum-search { grid-template-columns: 30px minmax(0, 1fr) 72px; }
}
@media (max-width: 480px) {
    .portal-sidebar { grid-template-columns: 1fr; }
    .portal .header-actions .button-coral { display: none; }
    .forum-post-copy strong { white-space: normal; }
}

/* Warm light-brown portal palette */
.portal .site-footer {
    background: #cbbba4;
    border-top: 1px solid rgba(112, 82, 58, .22);
}
.portal .footer-brand strong { color: #4b3a2f; }
.portal .footer-brand small,
.portal .footer-note,
.portal .site-footer nav a { color: #816f60; }
.portal .side-zalo {
    color: #4b3a2f;
}
.portal .side-zalo small { color: #927f6d; }

/* Giftcode modal warm palette */
.portal .gc-dialog {
    background: linear-gradient(180deg, #faf6ed, #ede2d1);
    border: 1px solid #a98968;
    box-shadow: 0 20px 50px rgba(78, 57, 40, .38), 0 0 0 1px rgba(255, 255, 255, .5) inset;
}
.portal .gc-header {
    background: linear-gradient(180deg, #80624a, #694a34);
    color: #fffaf2;
    border-bottom: 1px solid #b39a7d;
}
.portal .gc-header::before { display: none; }
.portal .gc-body { background: #faf6ed; color: #4b3a2f; }
.portal .gc-body::-webkit-scrollbar-thumb { background: #a98968; }
.portal .gc-body::-webkit-scrollbar-track { background: #ede2d1; }
.portal .gc-close { background: rgba(255, 250, 242, .14); color: #fffaf2; }
.portal .gc-close:hover { background: rgba(255, 250, 242, .26); }
.portal .gc-loading, .portal .gc-empty { color: #816f60; }
.portal .gc-spinner { border-color: #d8c9b6; border-top-color: #80624a; }
.portal .gc-card {
    background: #fffaf2;
    border: 1px solid #b39a7d;
    box-shadow: 0 2px 8px rgba(78, 57, 40, .10);
}
