/*
 * DH_CJ Portal V3 - 全站统一导航视觉
 * 以用户提供的游戏大厅截图（米金色卡片）和公开可见的导航门户结构为参考，
 * 独立编写，未复制参考站的私有CSS/JS/高清素材。
 */
:root{
 --portal-bg:#f7f3eb;--portal-surface:#fffefa;--portal-surface2:#f9f6ef;
 --portal-ink:#352e23;--portal-muted:#91877b;--portal-line:#e9dfd0;
 --portal-gold:#c49a55;--portal-gold-light:#f3dfb4;--portal-dark:#30271c;
 --portal-shadow:0 12px 38px rgba(69,49,25,.075);
}
html{scroll-behavior:smooth}
body.portal-v3{
 background:var(--portal-bg)!important;color:var(--portal-ink);
 font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",Arial,sans-serif;
 -webkit-font-smoothing:antialiased;
}
body.portal-v3,body.portal-v3 *{box-sizing:border-box}
body.portal-v3 button{font-family:inherit}
body.portal-v3 button:focus-visible,body.portal-v3 a:focus-visible,body.portal-v3 input:focus-visible{
 outline:3px solid #b48843;outline-offset:3px;
}
body.portal-v3 .portal-home-shell a,body.portal-v3 .portal-shell-header a{
 color:inherit;text-decoration:none;
}
body.portal-v3 .portal-home-shell{min-height:100vh;overflow:hidden}
/* Unified header for inner pages */
.portal-shell-header,.portal-home-header{
 position:relative;z-index:101;background:rgba(255,254,250,.94);
 border-bottom:1px solid var(--portal-line);
 backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
}
.portal-shell-header{position:sticky;top:0}
.portal-shell-inner,.portal-home-header-inner{
 width:min(1160px,calc(100% - 40px));min-height:76px;margin:auto;
 display:flex;align-items:center;gap:28px;justify-content:space-between;
}
.portal-shell-brand,.portal-home-brand{
 display:flex;align-items:center;gap:12px;flex-shrink:0;min-width:0;
}
.portal-shell-brand img,.portal-home-brand img{
 width:45px;height:45px;border-radius:14px;object-fit:cover;background:#31281e;
 border:1px solid rgba(177,138,77,.28);
}
.portal-shell-brand span,.portal-home-brand span{display:flex;flex-direction:column;gap:3px;min-width:0}
.portal-shell-brand strong,.portal-home-brand strong{font-size:18px;line-height:1.2;font-weight:850;color:#3c3020;white-space:nowrap}
.portal-shell-brand small,.portal-home-brand small{font-size:10px;letter-spacing:1.1px;color:#aa8d65}
.portal-shell-links,.portal-home-desktop-links{
 display:flex;align-items:center;gap:23px;justify-content:center;flex:1;
}
.portal-shell-links a,.portal-home-desktop-links a{
 font-size:14px;font-weight:650;color:#635b50!important;white-space:nowrap;
 transition:color .18s ease;
}
.portal-shell-links a:hover,.portal-home-desktop-links a:hover,
.portal-shell-links a.is-current,.portal-home-desktop-links a[aria-current]{
 color:#9c7138!important;
}
.portal-shell-actions,.portal-home-header-actions{display:flex;align-items:center;gap:10px}
.portal-theme-toggle,.portal-icon-btn,.portal-shell-profile{
 display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;
 border:1px solid var(--portal-line);background:#fffdfa;color:#6c5a3c;
 border-radius:12px;cursor:pointer;font-size:17px;
}
.portal-shell-profile{font-size:20px}
.portal-theme-toggle:hover,.portal-icon-btn:hover,.portal-shell-profile:hover{
 background:#f6e9d3;border-color:#d8bc87;
}
.portal-account-link{
 display:inline-flex;align-items:center;justify-content:center;gap:9px;
 border-radius:13px;background:#33291d;color:#fff!important;
 padding:11px 16px;font-size:13px;font-weight:750;white-space:nowrap;
}
.portal-account-link i{font-size:17px}
/* Homepage */
.portal-home-main{width:min(1160px,calc(100% - 40px));margin:0 auto;padding:24px 0 68px}
.portal-hero{
 position:relative;isolation:isolate;overflow:hidden;display:flex;
 align-items:center;min-height:410px;border-radius:26px;
 background:radial-gradient(ellipse at 80% 16%,rgba(188,137,70,.29),transparent 36%),
 linear-gradient(115deg,#2a251f 0%,#3c3023 55%,#4a3622 100%);
 border:1px solid rgba(214,176,108,.25);
 box-shadow:0 22px 60px rgba(66,43,22,.14);
}
.portal-hero:before{
 content:"";position:absolute;inset:0;z-index:-1;
 background-image:linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px),
 linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px);
 background-size:52px 52px;mask-image:linear-gradient(90deg,transparent 0%,#000 100%);
}
.portal-hero-copy{position:relative;z-index:2;width:58%;padding:46px 0 46px 58px}
.portal-hero-eyebrow{
 display:inline-flex;align-items:center;gap:10px;font-size:11px;font-weight:700;
 letter-spacing:1.5px;color:#e8c58a;
}
.portal-status-dot{display:inline-block;width:7px;height:7px;background:#efcb86;border-radius:50%;box-shadow:0 0 0 5px rgba(232,197,138,.14)}
.portal-hero h1{
 margin:21px 0 16px;font-size:clamp(28px,3.35vw,41px);line-height:1.28;
 font-weight:850;letter-spacing:-1.1px;color:#fff8e9;
}
.portal-hero h1 span{display:block;margin-top:7px;color:#e4bc7b}
.portal-hero p{max-width:480px;margin:0 0 24px;font-size:14px;line-height:1.9;color:#d7c6ae}
.portal-search{
 display:flex;align-items:center;gap:12px;max-width:520px;height:54px;
 padding:5px 5px 5px 17px;border-radius:14px;background:#fff;
 box-shadow:0 9px 22px rgba(0,0,0,.13);
}
.portal-search-icon{color:#9b8c7c;font-size:17px}
.portal-search input{
 flex:1;min-width:0;border:0!important;outline:0!important;background:transparent!important;
 color:#393024;font-size:14px;box-shadow:none!important;
}
.portal-search input::placeholder{color:#a49a8c}
.portal-search button{
 display:flex;align-items:center;justify-content:center;gap:9px;
 height:44px;padding:0 20px;border:0;border-radius:11px;
 background:linear-gradient(135deg,#d3ad6d,#aa7a39);color:#fff;font-size:13px;font-weight:750;cursor:pointer;
}
.portal-search button:hover{filter:brightness(1.06)}
.portal-hero-highlights{display:flex;gap:23px;flex-wrap:wrap;margin-top:21px;color:#d9c4a6;font-size:12px}
.portal-hero-highlights i{color:#d8b577;margin-right:5px}
.portal-hero-visual{position:absolute;inset:0 0 0 auto;width:50%;pointer-events:none}
.portal-hero-visual>img{position:absolute;right:-10%;top:0;width:110%;height:100%;object-fit:contain;filter:drop-shadow(0 18px 28px rgba(0,0,0,.22))}
.portal-hero-floating{
 position:absolute;display:flex;align-items:center;gap:7px;
 border:1px solid rgba(245,218,173,.33);background:rgba(255,244,217,.12);
 backdrop-filter:blur(10px);color:#fff1d2;border-radius:11px;
 font-size:12px;font-weight:700;padding:10px 14px;
}
.portal-hero-floating i{color:#e7c68e}
.portal-hero-floating-top{top:55px;right:30px}
.portal-hero-floating-bottom{bottom:54px;left:15px}
.portal-notice-strip{
 display:flex;align-items:center;gap:17px;margin:18px 0 2px;
 padding:12px 19px;border:1px solid #ebdec8;border-radius:14px;
 background:rgba(255,253,247,.92);box-shadow:0 4px 18px rgba(68,50,22,.03);
}
.portal-notice-icon{display:inline-flex;gap:7px;align-items:center;white-space:nowrap;font-size:12px;font-weight:800;color:#946a35}
.portal-notice-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#746756}
.portal-notice-strip>a{white-space:nowrap;color:#a2783e!important;font-size:12px;font-weight:750}
.portal-banners{position:relative;overflow:hidden;margin:22px 0 0;border-radius:20px;background:#f2e9da;border:1px solid #eadcc6;box-shadow:var(--portal-shadow)}
.portal-banner-track{position:relative;width:100%;aspect-ratio:1160/330;min-height:145px;max-height:335px}
.portal-banner-slide{position:absolute;inset:0;opacity:0;pointer-events:none;transition:opacity .45s ease}
.portal-banner-slide.is-active{opacity:1;pointer-events:auto}
.portal-banner-slide a,.portal-banner-static{display:block;width:100%;height:100%}
.portal-banner-slide img{width:100%;height:100%;object-fit:cover}
.portal-banner-arrow{
 position:absolute;top:50%;transform:translateY(-50%);z-index:3;
 width:36px;height:36px;border:1px solid rgba(255,255,255,.6);
 border-radius:50%;background:rgba(38,31,24,.36);color:#fff;font-size:23px;cursor:pointer;
}
.portal-banner-prev{left:15px}.portal-banner-next{right:15px}
.portal-banner-dots{position:absolute;z-index:3;bottom:12px;left:50%;transform:translateX(-50%);display:flex;gap:7px}
.portal-banner-dots button{width:7px;height:7px;border:0;border-radius:20px;background:rgba(255,255,255,.65);padding:0;cursor:pointer}
.portal-banner-dots button.is-active{width:22px;background:#f1cf92}
.portal-section{margin-top:42px}
.portal-section-heading{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:18px}
.portal-section-eyebrow{display:block;margin-bottom:7px;color:#b18a50;font-size:10px;font-weight:800;letter-spacing:1.9px}
.portal-section-heading h2{margin:0;font-size:27px;line-height:1.4;color:#372e21;font-weight:850;letter-spacing:-.6px}
.portal-section-heading h2 em{font-style:normal;font-weight:700;color:#9c8b73}
.portal-heading-line{width:80px;height:2px;background:linear-gradient(90deg,#d6b57d,transparent);margin-bottom:10px}
.portal-section-more{font-size:13px;color:#97703c!important;font-weight:750;white-space:nowrap;margin-bottom:9px}
.portal-shortcut-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.portal-shortcut-card{
 display:flex;flex-direction:column;align-items:center;position:relative;
 min-height:145px;padding:22px 8px 18px;background:var(--portal-surface);
 border:1px solid var(--portal-line);border-radius:18px;box-shadow:0 8px 25px rgba(65,47,27,.035);
 transition:transform .18s,box-shadow .18s,border-color .18s;
}
.portal-shortcut-card:hover{transform:translateY(-3px);border-color:#dfc18b;box-shadow:var(--portal-shadow)}
.portal-shortcut-icon{
 display:grid;place-items:center;width:48px;height:48px;border-radius:15px;
 color:#a47738;background:linear-gradient(135deg,#fff7e8,#f5e6c9);font-size:23px;margin-bottom:12px;
}
.portal-shortcut-card strong{font-size:14px;color:#423528;font-weight:800}
.portal-shortcut-card small{font-size:11px;color:#a09586;margin-top:5px}
.portal-shortcut-arrow{position:absolute;top:14px;right:13px;color:#cbbda9;font-size:12px}
.portal-feature-grid,.portal-navigation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.portal-feature-card,.portal-nav-card{
 display:flex;align-items:center;gap:16px;position:relative;
 min-width:0;min-height:124px;padding:17px 18px;
 border:1px solid var(--portal-line);border-radius:17px;
 background:var(--portal-surface);color:var(--portal-ink)!important;text-align:left;
 box-shadow:0 7px 22px rgba(73,55,32,.035);cursor:pointer;
 transition:transform .2s,box-shadow .2s,border-color .2s;
}
.portal-feature-card:hover,.portal-nav-card:hover{
 transform:translateY(-2px);border-color:#d9b983;box-shadow:var(--portal-shadow);
}
.portal-nav-card-image{
 display:grid;place-items:center;flex:none;width:84px;height:84px;
 border-radius:15px;overflow:hidden;background:#f3eadc;border:1px solid #eadfcf;
}
.portal-nav-card-image img{width:100%;height:100%;object-fit:cover}
.portal-nav-card-copy{display:flex;flex-direction:column;gap:7px;flex:1;min-width:0}
.portal-nav-card-copy strong{
 color:#3b3125;font-size:18px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.portal-nav-card-copy small{color:#8e8272;font-size:12px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.portal-feature-score{font-size:11px;color:#b18443;font-weight:700}
.portal-feature-score i{color:#d3aa60}
.portal-nav-card-action{
 display:flex;align-items:center;gap:8px;justify-content:center;
 align-self:center;white-space:nowrap;padding:10px 13px;border-radius:10px;
 background:#35291b;color:#fff;font-size:12px;font-weight:800;
}
.portal-nav-card-action i{font-size:11px}
.portal-feature-card:hover .portal-nav-card-action,.portal-nav-card:hover .portal-nav-card-action{background:#a6793b}
.portal-category-tabs{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:19px}
.portal-category-tab{
 border:1px solid #e5d8c6;background:#fffdf9;color:#7e6c56;
 padding:11px 18px;border-radius:12px;font-size:13px;font-weight:750;cursor:pointer;
}
.portal-category-tab.is-active,.portal-category-tab:hover{background:#352b1f;border-color:#352b1f;color:#fff}
.portal-category-panel{display:none}
.portal-category-panel.is-active{display:block}
.portal-empty{
 grid-column:1/-1;text-align:center;background:#fffefa;border:1px dashed #d9c5a7;
 padding:45px 18px;color:#948673;font-size:14px;border-radius:16px;
}
.portal-search-status{margin:14px 0 0;color:#8a7457;font-size:13px;min-height:20px}
.portal-nav-card[hidden],.portal-feature-card[hidden],.portal-category-panel[hidden]{display:none!important}
.portal-category-panels.is-searching .portal-category-panel{display:block}
.portal-category-panels.is-searching .portal-category-panel .portal-empty{display:none}
.portal-category-panels.is-searching .portal-category-panel .portal-navigation-grid{margin-bottom:12px}
.portal-cta{
 display:flex;align-items:center;gap:20px;margin-top:42px;padding:30px 38px;
 border-radius:21px;background:linear-gradient(115deg,#332b21,#4b3822);
 color:#fff7e8;box-shadow:0 12px 38px rgba(45,31,20,.11);
}
.portal-cta-icon{display:grid;place-items:center;width:64px;height:64px;flex:none;border-radius:18px;background:rgba(242,209,153,.14);color:#e5c186;font-size:28px}
.portal-cta>div:nth-child(2){flex:1;min-width:0}
.portal-cta span{color:#ddbc82;font-size:12px;font-weight:750}
.portal-cta h2{font-size:22px;font-weight:850;margin:6px 0}
.portal-cta p{font-size:12px;line-height:1.7;color:#c8bba9;margin:0}
.portal-cta>a{
 display:flex;align-items:center;gap:10px;white-space:nowrap;
 padding:13px 17px;border-radius:12px;background:#d7b178;color:#2b241b!important;font-size:13px;font-weight:850;
}
.portal-home-footer{padding:28px 20px 90px;border-top:1px solid #e5d9c7;text-align:center;background:#f3ede3}
.portal-home-footer>div{display:flex;align-items:center;justify-content:center;gap:9px}
.portal-home-footer img{width:27px;height:27px;border-radius:9px}
.portal-home-footer strong{font-size:15px;color:#4a3824}
.portal-home-footer>div span{font-size:11px;color:#a18b6a}
.portal-home-footer p{font-size:12px;color:#9c8f7d;margin:10px 0}
.portal-home-footer small{font-size:11px;color:#b2a390}
.portal-message-backdrop[hidden]{display:none!important}
.portal-message-backdrop{
 position:fixed;inset:0;z-index:10015;display:flex;align-items:center;justify-content:center;
 background:rgba(25,20,15,.52);padding:20px;
}
.portal-message{
 width:min(100%,355px);border-radius:20px;background:#fffefa;padding:29px 24px 24px;
 text-align:center;box-shadow:0 24px 65px rgba(0,0,0,.22);
}
.portal-message-symbol{font-size:40px;color:#c39756}
.portal-message h2{font-size:19px;color:#403223;margin:12px 0 9px}
.portal-message p{font-size:14px;color:#7c6c5a;margin:0 0 21px}
.portal-message button{width:100%;border:0;background:#3a2b1d;color:white;padding:12px;border-radius:11px;cursor:pointer}
.portal-home .announcement-popup .announcement-container-new{background:#fffefa}
.portal-home .portal-announcement-confirm{background:#372c1f;color:#fff;border:0;border-radius:12px;width:100%;padding:11px;font-weight:750}
/* Global floating mobile navigation: preserve each original page's active item */
body.portal-v3 nav.bottom-nav{
 position:fixed!important;z-index:1000!important;bottom:max(11px,env(safe-area-inset-bottom))!important;
 left:50%!important;transform:translateX(-50%)!important;
 width:min(520px,calc(100% - 24px))!important;
 height:65px!important;min-height:65px!important;
 border-radius:35px!important;background:rgba(255,254,251,.97)!important;
 border:1px solid rgba(219,204,179,.84)!important;
 box-shadow:0 10px 32px rgba(49,37,23,.14)!important;
 overflow:visible!important;padding:4px 7px!important;
}
body.portal-v3 nav.bottom-nav .bottom-nav-container{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 width:100%!important;height:100%!important;gap:2px!important;
 background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;
}
body.portal-v3 nav.bottom-nav a.nav-item{
 display:flex!important;flex:1!important;min-width:0!important;
 align-items:center!important;justify-content:center!important;flex-direction:column!important;
 gap:4px!important;height:53px!important;border-radius:27px!important;
 padding:4px 2px!important;color:#7e776d!important;text-decoration:none!important;
 background:transparent!important;box-shadow:none!important;
}
body.portal-v3 nav.bottom-nav a.nav-item .nav-icon{font-size:20px!important;line-height:1.1!important;color:inherit!important}
body.portal-v3 nav.bottom-nav a.nav-item .nav-label{font-size:10px!important;line-height:1.3!important;color:inherit!important}
body.portal-v3 nav.bottom-nav a.nav-item.active,
body.portal-v3 nav.bottom-nav a.nav-item[aria-current="page"]{
 background:#f3e6d0!important;color:#94692e!important;font-weight:800!important;
}
body.portal-v3 nav.bottom-nav .nav-indicator{display:none!important}
body.portal-v3 nav.bottom-nav a.nav-item:after{display:none!important}
/* Inner pages: warm cards, rounded headings, preserve all business logic */
body.portal-inner .page-container,
body.portal-inner .discovery-page,
body.portal-inner .discovery-hub{background:transparent!important}
body.portal-inner .discovery-hub,
body.portal-inner .discovery-page{
 width:min(900px,calc(100% - 30px));max-width:900px;margin:16px auto 110px;
 background:var(--portal-surface)!important;border:1px solid #e8ddcd;
 border-radius:20px;box-shadow:0 10px 40px rgba(70,50,26,.045);
 overflow:hidden;
}
body.portal-inner .discovery-hub{padding-bottom:22px}
body.portal-inner .discovery-hub-header,
body.portal-inner .discovery-page-header{
 background:#fffdf9!important;border-bottom:1px solid #eee4d6!important;
 color:#3e3427!important;
}
body.portal-inner .discovery-hub-header h1,
body.portal-inner .discovery-page-header h1{color:#3e3427!important;font-weight:850!important}
body.portal-inner .discovery-entry-list{padding:12px 16px!important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px!important}
body.portal-inner .discovery-entry{
 background:#fffdfa!important;border:1px solid #e8ddcc!important;border-radius:16px!important;
 box-shadow:0 5px 20px rgba(76,55,30,.045)!important;
}
body.portal-inner .discovery-entry:hover{border-color:#d5b17a!important;background:#fff9ed!important}
body.portal-inner .discovery-entry-name{color:#3e3529!important;font-weight:800!important}
body.portal-inner .discovery-entry-side{color:#aa8859!important}
body.portal-inner .discovery-hub-hint{color:#a18c6d!important}
body.portal-inner .discovery-cover{border-radius:0!important}
body.portal-inner .discovery-cover-profile{background:#fffdfa!important}
body.portal-inner .stage-publish-banner{
 border:1px solid #e8ddcd!important;background:#fff9ee!important;border-radius:13px!important;
 color:#6f5638!important;
}
body.portal-inner .stage-feed,
body.portal-inner .discovery-article-list{background:#fffdfa!important}
body.portal-inner .stage-post-card,
body.portal-inner .discovery-article-item{
 border-color:#ebdfce!important;box-shadow:none!important;
}
body.portal-inner .discovery-pagination a,
body.portal-inner .stage-publish-banner a{color:#99713d!important}
body.portal-inner .top-nav{
 background:rgba(255,253,248,.97)!important;
 border-bottom:1px solid #eadfce!important;box-shadow:none!important;
}
body.portal-inner .top-nav .nav-title{color:#443727!important}
body.portal-inner .top-nav .nav-subtitle{color:#aa9371!important}
body.portal-inner .nav-action-button{background:#3d2f20!important;color:#fff!important;border-color:#b18b55!important;border-radius:12px!important}
body.portal-inner .my-center-v3{background:transparent!important}
body.portal-inner .my-center-shell{background:var(--portal-surface)!important;box-shadow:var(--portal-shadow);border-radius:20px;overflow:hidden}
body.portal-inner .my-hero{
 background:radial-gradient(circle at 70% 15%,rgba(228,182,102,.4),transparent 43%),
 linear-gradient(115deg,#29231e,#73512e)!important;
}
body.portal-inner .my-hero:before{opacity:.22!important}
body.portal-inner .my-level-card{
 background:linear-gradient(125deg,#362b20,#654c30)!important;
}
body.portal-inner .my-feature-row:hover{background:#fff8ed!important}
body.portal-inner .my-feature-icon{filter:saturate(.75)}
body.portal-inner .my-section-title:before{background:#c39a56!important}
body.portal-inner .discovery-composer{background:#fffefa!important}
body.portal-inner .stage-compose-header{background:#fff9ed!important;border-color:#e9ddcb!important}
body.portal-inner .stage-compose-header button{background:#a77a3f!important;color:white!important}
/* Game hall matches shared palette and header treatment */
body.portal-v3.game-hall-page{background:var(--portal-bg)!important}
body.portal-v3.game-hall-page .hall-main{width:min(1040px,calc(100% - 32px));padding-top:26px}
body.portal-v3.game-hall-page .hall-section-title{color:#3c3225}
body.portal-v3.game-hall-page .hall-platform-card{box-shadow:0 10px 28px rgba(70,48,26,.07)}
body.portal-v3.game-hall-page .hall-bottom-nav{background:rgba(255,254,251,.97)}
/* Theme: client-side preference; no server settings or DB changes */
body.portal-v3.portal-dark{
 --portal-bg:#1e1c1a;--portal-surface:#302b25;--portal-surface2:#383229;
 --portal-ink:#f1e8db;--portal-muted:#b9a891;--portal-line:#4d4335;
 background:var(--portal-bg)!important;color:var(--portal-ink)!important;
}
body.portal-dark .portal-home-header,body.portal-dark .portal-shell-header{background:#29251f!important;border-color:#4d4335!important}
body.portal-dark .portal-shell-brand strong,body.portal-dark .portal-home-brand strong{color:#f6e7d0!important}
body.portal-dark .portal-home-main{color:#f1e8db}
body.portal-dark .portal-section-heading h2{color:#f3e9d9}
body.portal-dark .portal-shortcut-card,body.portal-dark .portal-feature-card,body.portal-dark .portal-nav-card,
body.portal-dark .portal-category-tab{background:#312c25!important;border-color:#534536!important}
body.portal-dark .portal-shortcut-card strong,body.portal-dark .portal-nav-card-copy strong{color:#f0e4d4!important}
body.portal-dark .portal-shortcut-card small,body.portal-dark .portal-nav-card-copy small{color:#b9a994!important}
body.portal-dark .portal-notice-strip{background:#302b25!important;border-color:#534536!important}
body.portal-dark .portal-home-footer{background:#28241f!important;border-color:#4d4335!important}
body.portal-dark .portal-home-footer strong{color:#f3e5d0!important}
body.portal-dark .portal-category-tab.is-active{background:#c39858!important;color:#2b2217!important}
body.portal-dark .portal-shell-links a,body.portal-dark .portal-home-desktop-links a{color:#d1c1a9!important}
body.portal-dark nav.bottom-nav{background:#302b25!important;border-color:#544432!important}
body.portal-dark nav.bottom-nav a.nav-item{color:#c7b69c!important}
body.portal-dark nav.bottom-nav a.nav-item.active{background:#6a4d2b!important;color:#ffdda2!important}
/* Responsive */
@media(min-width:900px){
 body.portal-v3 nav.bottom-nav{display:none!important}
 body.portal-inner .my-center-v3{max-width:900px!important;margin:18px auto 110px}
 body.portal-inner .page-container{max-width:1160px!important;margin:0 auto}
 body.portal-v3.game-hall-page .hall-mobile-topbar{display:none}
 body.portal-v3.game-hall-page .hall-bottom-nav{display:none}
}
@media(max-width:1020px){
 .portal-shell-links,.portal-home-desktop-links{gap:12px}
 .portal-shell-links a,.portal-home-desktop-links a{font-size:12px}
 .portal-shortcut-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .portal-hero-copy{width:66%;padding-left:36px}
 .portal-hero-visual{width:49%}
}
@media(max-width:899px){
 .portal-shell-inner,.portal-home-header-inner{width:calc(100% - 26px);min-height:63px;gap:12px}
 .portal-shell-links,.portal-home-desktop-links{display:none}
 .portal-shell-brand img,.portal-home-brand img{width:35px;height:35px;border-radius:11px}
 .portal-shell-brand strong,.portal-home-brand strong{font-size:14px}
 .portal-shell-brand small,.portal-home-brand small{font-size:9px}
 .portal-shell-actions,.portal-home-header-actions{gap:7px}
 .portal-theme-toggle,.portal-icon-btn,.portal-shell-profile{width:34px;height:34px;border-radius:10px}
 .portal-account-link{padding:8px 10px;font-size:11px}
 .portal-home-main{width:calc(100% - 26px);padding:14px 0 35px}
 .portal-hero{min-height:350px;border-radius:20px}
 .portal-hero-copy{width:75%;padding:30px 0 30px 25px}
 .portal-hero-visual{opacity:.52;width:58%;right:-8%}
 .portal-hero h1{font-size:32px}
 .portal-home-footer{padding-bottom:100px}
 body.portal-inner .discovery-hub,body.portal-inner .discovery-page{
  width:calc(100% - 22px);margin:11px auto 100px;border-radius:17px;
 }
 body.portal-inner .discovery-entry-list{grid-template-columns:1fr}
 body.portal-inner .my-center-v3{margin:10px auto 105px}
 body.portal-v3.game-hall-page .hall-main{padding-top:12px}
}
@media(max-width:640px){
 .portal-home-header-actions .portal-share-btn{display:none}
 .portal-account-link span{display:none}
 .portal-account-link{width:34px;height:34px;padding:0;font-size:17px}
 .portal-hero{min-height:400px;align-items:flex-start}
 .portal-hero-copy{width:100%;padding:29px 22px 30px}
 .portal-hero-visual{opacity:.22;right:-18%;top:16%;width:100%}
 .portal-hero h1{font-size:30px;line-height:1.32;margin:18px 0 14px}
 .portal-hero h1 span{font-size:27px}
 .portal-hero p{font-size:12px;line-height:1.8;max-width:340px;margin-bottom:18px}
 .portal-search{height:50px;gap:8px;padding-left:13px}
 .portal-search input{font-size:12px}
 .portal-search button{height:40px;padding:0 13px;font-size:11px;gap:4px}
 .portal-hero-highlights{gap:12px;margin-top:17px;font-size:10px}
 .portal-hero-floating{display:none}
 .portal-notice-strip{padding:11px 12px;gap:9px}
 .portal-notice-icon{font-size:10px}
 .portal-notice-text,.portal-notice-strip>a{font-size:10px}
 .portal-banners{border-radius:13px;margin-top:15px}
 .portal-banner-track{aspect-ratio:2.6/1;min-height:120px}
 .portal-banner-arrow{width:27px;height:27px;font-size:18px}
 .portal-section{margin-top:31px}
 .portal-section-heading{margin-bottom:14px}
 .portal-section-eyebrow{font-size:9px;letter-spacing:1.1px}
 .portal-section-heading h2{font-size:22px}
 .portal-section-heading h2 em{display:block;font-size:16px}
 .portal-shortcut-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
 .portal-shortcut-card{min-height:117px;border-radius:14px;padding:16px 4px 12px}
 .portal-shortcut-icon{width:41px;height:41px;font-size:20px;border-radius:13px;margin-bottom:9px}
 .portal-shortcut-card strong{font-size:12px}
 .portal-shortcut-card small{font-size:9px;white-space:nowrap}
 .portal-feature-grid,.portal-navigation-grid{grid-template-columns:1fr;gap:10px}
 .portal-feature-card,.portal-nav-card{min-height:108px;padding:13px;gap:11px;border-radius:14px}
 .portal-nav-card-image{width:72px;height:72px;border-radius:12px}
 .portal-nav-card-copy strong{font-size:16px}
 .portal-nav-card-copy small{font-size:11px}
 .portal-nav-card-action{font-size:10px;padding:9px 10px;gap:4px}
 .portal-category-tabs{gap:7px}
 .portal-category-tab{padding:9px 12px;font-size:11px;border-radius:10px}
 .portal-cta{padding:23px 19px;gap:13px;flex-wrap:wrap;border-radius:16px}
 .portal-cta-icon{width:46px;height:46px;font-size:21px;border-radius:13px}
 .portal-cta h2{font-size:18px}
 .portal-cta p{font-size:11px}
 .portal-cta>a{margin-left:auto;font-size:11px;padding:10px 12px}
 body.portal-inner .discovery-hub,body.portal-inner .discovery-page{width:calc(100% - 16px)}
 body.portal-inner .discovery-entry-list{padding:10px!important}
}
@media(max-width:345px){
 .portal-hero h1{font-size:26px}
 .portal-hero h1 span{font-size:24px}
 .portal-home-brand small,.portal-shell-brand small{display:none}
 .portal-nav-card-image{width:59px;height:59px}
 .portal-nav-card-action{padding:8px 7px}
 .portal-nav-card-copy strong{font-size:14px}
}
@media(prefers-reduced-motion:reduce){
 html{scroll-behavior:auto}
 .portal-banner-slide,.portal-feature-card,.portal-nav-card,.portal-shortcut-card{transition:none}
}

/* Shared header supersedes the previous game-hall-only mobile brand bar. */
body.portal-v3.game-hall-page .hall-mobile-topbar{display:none!important}
body.portal-v3.game-hall-page .hall-bottom-nav{z-index:1000!important}

/* All dialogs must be above the floating bottom navigation. */
body.portal-v3 .referral-share-popup,
body.portal-v3 .share-popup,
body.portal-v3 .user-center-popup,
body.portal-v3 .announcement-popup,
body.portal-v3 .stage-modal-backdrop,
body.portal-v3 .hall-notice-backdrop{
 z-index:11000!important;
}
body.portal-v3 .portal-message-backdrop{z-index:11010!important}


/* NG / PG site-wide gold navigation parity with the homepage.
   Shared across discovery, official updates, stage, games and member pages. */
body.portal-v3 nav.bottom-nav,
body.portal-v3.portal-luxe nav.bottom-nav,
body.portal-v3.game-hall-page nav.hall-bottom-nav {
  background:rgba(28,23,17,.98)!important;
  border:1px solid #75603e!important;
  box-shadow:0 -4px 22px rgba(0,0,0,.38)!important;
}
body.portal-v3 nav.bottom-nav .bottom-nav-container {
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.portal-v3 nav.bottom-nav a.nav-item,
body.portal-v3.portal-luxe nav.bottom-nav a.nav-item,
body.portal-v3.game-hall-page nav.hall-bottom-nav a {
  color:#e8d1a3!important;
  background:transparent!important;
}
body.portal-v3 nav.bottom-nav a.nav-item .nav-icon,
body.portal-v3.portal-luxe nav.bottom-nav a.nav-item .nav-icon,
body.portal-v3.game-hall-page nav.hall-bottom-nav a i {
  color:#d8b06d!important;
}
body.portal-v3 nav.bottom-nav a.nav-item.active,
body.portal-v3 nav.bottom-nav a.nav-item[aria-current="page"],
body.portal-v3.portal-luxe nav.bottom-nav a.nav-item.active,
body.portal-v3.portal-luxe nav.bottom-nav a.nav-item[aria-current="page"],
body.portal-v3.game-hall-page nav.hall-bottom-nav a.hall-nav-active {
  color:#ffe5ae!important;
  background:linear-gradient(135deg,#68512e,#493820)!important;
}
body.portal-v3 nav.bottom-nav a.nav-item.active .nav-icon,
body.portal-v3 nav.bottom-nav a.nav-item[aria-current="page"] .nav-icon,
body.portal-v3.game-hall-page nav.hall-bottom-nav a.hall-nav-active i {
  color:#f2d089!important;
}
