/* FOX-HL visual refresh — design tokens adapted from the supplied DESIGN.md.
   Visual-only layer: original PHP handlers, forms and JavaScript are retained. */
:root {
  --primary:#1c1c1e;
  --primary-dark:#111214;
  --primary-light:#f36b2b;
  --secondary:#f36b2b;
  --brand-orange:#f36b2b;
  --brand-orange-dark:#d85a1f;
  --brand-orange-soft:#ffe1d3;
  --brand-orange-pale:#fff4ee;
  --brand-peach:#ffd2be;
  --brand-cream:#fff8f4;
  --brand-surface:#f7f8fa;
  --bg:#f7f8fa;
  --bg-card:#ffffff;
  --card-bg:#ffffff;
  --border-color:#e8eaee;
  --text-light:#1c1c1e;
  --text-gray:#666b79;
  --text-muted:#9196a3;
  --text-secondary:#666b79;
  --text:#1c1c1e;
  --success:#0f9f69;
  --warning:#b96a16;
  --error:#d14343;
  --danger:#d14343;
  --radius-xl:20px;
  --radius-feature:28px;
}
html { scroll-behavior:smooth; }
html,body {
  min-height:100%;height:auto;
  color:var(--text-light);
  background:#f7f8fa;
  font-family:'Roobert PRO','Noto Sans SC','PingFang SC','Microsoft YaHei',-apple-system,BlinkMacSystemFont,Arial,sans-serif;
  font-size:14px;line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
button,input,select,textarea { font:inherit; }
a { color:inherit; }
:focus-visible { outline:3px solid rgba(66,98,255,.42);outline-offset:2px; }
::selection {background:#ffe4d6;color:#1c1c1e}
.bg-decoration{display:none}
.page-container{max-width:none;min-height:calc(100vh - 80px);padding:36px 32px 64px}
.section-eyebrow {display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:700;letter-spacing:1.3px;color:#777b89;line-height:1.4}
.heading-dot{color:#f36b2b}

/* Primary navigation */
.site-topbar{position:relative;z-index:30;background:#fff;border-bottom:1px solid #e9ebef;min-height:78px}
.topbar-inner{max-width:1376px;margin:auto;padding:12px 32px;display:flex;align-items:center;gap:36px;min-height:78px}
.site-brand{text-decoration:none;display:inline-flex;align-items:center;gap:11px;flex-shrink:0}
.brand-symbol{width:44px;height:44px;background:#f36b2b;border-radius:13px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.brand-symbol img{width:27px;height:27px;object-fit:contain}
.brand-name{display:block;line-height:1.05;font-size:22px;letter-spacing:-.8px;font-weight:800;color:#1c1c1e}
.brand-name small{display:block;color:#8e91a0;font-size:10px;font-weight:500;letter-spacing:1.25px;margin-top:6px;text-transform:uppercase}
.brand-dash{color:#d4a900}
.topbar-links{display:flex;gap:8px;align-items:center;flex:1;min-width:0}
.topbar-link{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;padding:10px 17px;font-size:13px;font-weight:650;text-decoration:none;color:#777b89;border-radius:9999px;transition:background .16s,color .16s}
.topbar-link:hover{background:#f4f5f7;color:#1c1c1e}
.topbar-link.is-active{background:#1c1c1e;color:white}
.topbar-logout{color:#666b79;border:1px solid #e0e2e8;border-radius:999px;text-decoration:none;font-size:12px;font-weight:650;padding:10px 15px;white-space:nowrap}
.topbar-logout:hover{border-color:#1c1c1e;color:#1c1c1e}
.topbar-logout span{margin-left:6px}

/* Admin landing banner */
.admin-container{max-width:1320px}
.admin-header{position:relative;display:flex;align-items:center;justify-content:space-between;min-height:208px;overflow:hidden;background:#fff;border:1px solid #e9ebef;border-radius:28px;padding:38px 45px;margin:0 0 23px;box-shadow:none}
.admin-intro{position:relative;z-index:2}
.admin-intro h1{font-size:38px!important;line-height:1.2;font-weight:650!important;letter-spacing:-1.3px;margin:11px 0 9px}
.admin-intro>p{font-size:14px;color:#696e7b;max-width:640px}
.admin-intro>.admin-meta{margin-top:14px;font-size:12px;color:#717583}
.admin-intro .admin-meta strong{font-weight:750;color:#1c1c1e}
.admin-hero-art{position:absolute;right:9%;height:160px;width:255px;top:8%;pointer-events:none}
.hero-art-square{position:absolute;display:block;width:143px;height:132px;background:#f36b2b;border-radius:29px;right:38px;top:12px;transform:rotate(-11deg)}
.hero-art-circle{position:absolute;display:block;background:#f3f4f6;width:102px;height:102px;border-radius:50%;right:0;top:55px;box-shadow:0 0 0 9px #fff}
.hero-art-line{position:absolute;display:block;background:#ffe1d3;width:95px;height:55px;border-radius:18px;right:143px;top:91px;transform:rotate(14deg);box-shadow:0 0 0 8px #fff}

/* Dashboard summary */
.stats-panel{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:20px}
.stat-card{border:0!important;border-radius:28px;padding:28px 30px;box-shadow:none;background:#fff0e8}
.stat-card:nth-child(2){background:#f3f4f6}
.stat-topline{font-size:13px;font-weight:650;display:flex;justify-content:space-between;align-items:center;color:#454543}
.stat-topline>span:last-child{font-size:19px;font-weight:500}
.stat-figure{font-size:52px;font-weight:650;letter-spacing:-2px;line-height:1.15;margin:8px 0 14px}
.stat-figure small{font-size:14px;font-weight:500;margin-left:8px;letter-spacing:0}
.stat-card h3{font-size:12px;letter-spacing:0;font-weight:700;color:#65665b;text-transform:none;padding-top:13px;border-top:1px solid rgba(28,28,30,.12);margin-bottom:10px}
.stat-card p{font-size:13px;color:#383b39;padding:6px 0;gap:12px;flex-wrap:wrap}
.stat-card p strong{font-weight:700}
.table-heading{display:flex;justify-content:space-between;align-items:end;gap:12px;margin:25px 2px 13px}
.table-heading h2{font-size:24px;font-weight:650;letter-spacing:-.4px;margin-top:5px}
.table-heading-hint{font-size:12px;color:#969aa5}

/* Flat content panels */
.card,.module,.filter-panel{background:#fff;border:1px solid #e9ebef;border-radius:20px;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none}
.card{padding:25px;margin-bottom:20px}
.card>h3,.modal-content>h3{font-size:18px;font-weight:650;letter-spacing:-.25px;color:#1c1c1e}
.filter-panel{padding:20px;margin-bottom:20px}
.filter-form{align-items:center;gap:10px}
.filter-form input[name=search]{flex:1;min-width:190px}
.filter-form select,.filter-form input,
.form-group input,.form-group select,.form-group textarea,
.site-admin select,.site-admin input[type=text],.site-admin input[type=number],.site-admin input[type=datetime-local]{background-color:#fff;border:1px solid #c7cad5;border-radius:10px;color:#1c1c1e;min-height:43px;padding:9px 14px;font-size:13px;outline:none;box-shadow:none}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus,
.filter-form input:focus,.filter-form select:focus,
.site-admin select:focus,.site-admin input:focus{border-color:#f36b2b;box-shadow:0 0 0 3px rgba(66,98,255,.11)}
.form-group label{color:#5f6472;font-size:12px;font-weight:650;margin-bottom:8px}
.form-group{margin-bottom:19px}
.form-group input::placeholder,.filter-form input::placeholder,.form-group textarea::placeholder{color:#a5a8b5}
.form-row{gap:18px}
.tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.tool-grid>.card{height:100%}

/* Buttons: black-pill primary and quiet outlined secondary */
.btn,.action-btn-merged{font-size:13px;font-weight:650;min-height:40px;line-height:1.3;padding:10px 19px;border-radius:9999px;box-shadow:none;transform:none;transition:background-color .16s,border-color .16s,color .16s,box-shadow .16s}
.btn-primary,.btn-success,.action-btn-merged{background:#1c1c1e;color:white;border-color:#1c1c1e}
.btn-primary:hover,.btn-success:hover,.action-btn-merged:hover{background:#35353a;border-color:#35353a;box-shadow:none;transform:none}
.btn-secondary,.action-btn-merged.secondary{background:#fff;color:#1c1c1e;border:1px solid #c7cad5}
.btn-secondary:hover,.action-btn-merged.secondary:hover{background:#f7f8fa;border-color:#8e91a0;box-shadow:none;transform:none}
.btn-warning{background:#fff0e8;color:#5c4b13;border-color:#f2de8f}
.btn-warning:hover{background:#ffe998;color:#5c4b13}
.btn-danger{background:#fff0f0;color:#ae3737;border-color:#f7cece}
.btn-danger:hover{background:#ffe4e4;color:#ae3737}
.btn-sm{font-size:12px;min-height:34px;padding:7px 13px}
.btn-block{width:100%;min-height:48px}
.btn:disabled{background:#e0e2e8;border-color:#e0e2e8;color:#8e91a0;opacity:1}
#resetMachineBtn{background:#cf4646;border-color:#cf4646;color:#fff}
#resetMachineBtn:hover{background:#b83d3d;box-shadow:none}
.action-buttons-merged{gap:12px}
.action-btn-merged{border-radius:999px;min-height:46px}

/* Dense data surfaces */
.table-responsive{border:0;border-radius:0;overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
.data-table{font-size:12px;min-width:820px;width:100%;border-collapse:separate;border-spacing:0}
.site-admin .data-table:has(th:nth-child(10)){min-width:1150px}
.data-table th,.data-table td{padding:16px 15px;border-bottom:1px solid #eef0f3;text-align:left;vertical-align:middle;line-height:1.5}
.data-table th{font-size:11px;font-weight:700;letter-spacing:.4px;text-transform:none;color:#666b79;background:#fafbfc;white-space:nowrap}
.data-table td{color:#363944}
.data-table td .btn{margin:2px 3px 2px 0}
.data-table tbody tr:hover{background:#fffdf5}
.data-table tbody tr:last-child td{border-bottom:0}
.data-table tbody tr.expired td{color:#999da7}
.badge{border-radius:999px;font-size:11px;font-weight:650;padding:5px 10px}
.badge-success{background:#e1faf0;color:#147452}
.badge-warning{background:#fff3d3;color:#95620e}
.badge-error{background:#fff0f0;color:#b93838}

/* Dialogs and feedback */
.modal{background:rgba(12,13,21,.49);backdrop-filter:blur(5px);padding:16px}
.modal-content{border:1px solid #eef0f3;border-radius:24px;padding:32px;max-width:540px;box-shadow:0 24px 74px rgba(12,13,21,.18)}
.modal-content h3{font-size:20px;font-weight:650;margin-bottom:20px}
.alert{border-radius:12px;padding:14px 17px;line-height:1.55;gap:10px}
.alert-info{background:#fff1ea;border-color:#ffd7c4;color:#d85a1f}
.alert-success{background:#eafbf2;border-color:#b2ecd4;color:#187553}
.alert-warning,.disabled-banner{background:#fff6f1;border-color:#f7e5ac;color:#82601d}
.alert-error{background:#fff0f0;border-color:#f5d1d1;color:#aa3939}

/* Personal workspace */
.main-container{max-width:1100px}
.welcome-header{background:#fff;border:1px solid #eef0f3;border-radius:28px;text-align:left;padding:37px 40px;margin:0 0 22px;position:relative;overflow:hidden}
.welcome-header:after{content:'';position:absolute;right:-8px;top:-60px;width:225px;height:225px;border:42px solid #f36b2b;border-radius:50%;opacity:.8;pointer-events:none}
.welcome-header>*{position:relative;z-index:1}
.welcome-title{font-size:35px;line-height:1.2;font-weight:650;letter-spacing:-.9px;background:none;-webkit-background-clip:initial;-webkit-text-fill-color:initial;margin:11px 0 9px;color:#1c1c1e}
.welcome-subtitle{font-size:14px;color:#555a6a}
.login-info-merged{font-size:12px;text-align:left;color:#888c98;margin-top:16px}
.module{margin-bottom:20px;animation:none;opacity:1;border-radius:22px}
.module-header{padding:21px 27px;font-size:14px;font-weight:700;text-transform:none;letter-spacing:0;color:#24242a;border-color:#eef0f3}
.module-header i{color:#f36b2b}
.module-body{padding:26px}
.merged-container{gap:23px}
.user-info-section{gap:17px}
.user-card,.expiry-card-merged,.game-stat-merged,.announcement-merged{border:0;border-radius:19px;background:#f7f8fa;padding:22px}
.user-card{gap:15px}
.user-info-item{padding:0 0 13px;border-color:#e5e7ec;gap:12px}
.user-info-item:last-child{padding:0}
.user-info-label{font-size:12px;min-width:75px;color:#777b88}
.user-info-value{font-size:13px;text-align:right;overflow-wrap:anywhere}
.user-info-value.highlight{color:#d85a1f}
.expiry-card-merged{background:#fff0e8}
.expiry-title{font-size:13px}
.expiry-date-merged{font-size:20px;letter-spacing:-.3px}
.expiry-status-merged{border-radius:999px;border:0!important;padding:6px 11px}
.expiry-status-merged.active{background:#d8f5e7;color:#117147}
.expiry-status-merged.expiring{background:#fff0cf;color:#93640d}
.expiry-status-merged.expired{background:#ffdddd;color:#a53535}
.expiry-status-merged.permanent{background:#ffe6da;color:#d85a1f}
.game-stats-merged{margin-top:4px}
.game-stats-title{font-size:12px;font-weight:650;letter-spacing:0;text-transform:none;color:#6d7280}
.game-stats-row{gap:14px}
.game-stat-merged:nth-child(3n+1){background:#fff4ee}
.game-stat-merged:nth-child(3n+2){background:#f3f4f6}
.game-stat-merged:nth-child(3n+3){background:#ffe6cd}
.game-stat-merged{border:0;border-radius:20px;padding:20px;transition:none}
.game-stat-merged:hover{background:#fff0e8;transform:none;box-shadow:none;border:0}
.game-name-merged{font-size:12px;font-weight:650}
.user-count-merged{font-size:31px;font-weight:700;letter-spacing:-1px}
.progress-merged-container{background:rgba(28,28,30,.12);height:5px;border-radius:999px}
.progress-merged-bar{background:#1c1c1e;border-radius:999px}
.announcement-merged{background:#fff6f1}
.announcement-title-merged{color:#685416;font-size:14px}
.announcement-list-merged li{font-size:13px;color:#5f5c53;border-color:rgba(28,28,30,.1)}
.page-footer-merged{margin-top:25px;padding:25px 0;border-color:#e9ebef}
.footer-text-merged,.logout-link-merged{font-size:12px}

/* Split-layout authentication screens */
.site-auth{background:#fff}
.site-auth .page-container{padding:0;min-height:100vh}
.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(435px,.95fr);background:#fff}
.auth-story{background:#f7f8fa;padding:44px max(46px,calc((100vw - 1200px)/2)) 32px 58px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden;border-right:1px solid #eef0f3}
.auth-story-top{display:flex;justify-content:space-between;align-items:center;gap:18px}
.auth-brand{display:flex;align-items:center;gap:13px;font-weight:800;font-size:24px;letter-spacing:-1px;white-space:nowrap}
.auth-story-overline{color:#8e91a0;font-size:10px;font-weight:650;letter-spacing:1.1px;text-align:right}
.auth-story-main{padding:55px 0 42px;max-width:610px}
.auth-kicker{display:inline-flex;align-items:center;gap:9px;font-size:12px;font-weight:650;color:#626675;background:#fff;border:1px solid #e9ebef;border-radius:999px;padding:8px 13px;margin-bottom:24px}
.kicker-dot{width:8px;height:8px;border-radius:50%;background:#f36b2b}
.auth-story h1{font-size:clamp(38px,4.2vw,64px);line-height:1.12;font-weight:650;letter-spacing:-2.2px;max-width:560px;color:#1c1c1e;margin:0 0 21px}
.auth-story-main>p{font-size:15px;line-height:1.9;color:#666b79;max-width:415px}
.auth-board{margin-top:50px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;max-width:560px;align-items:stretch}
.board-note{min-height:175px;border-radius:20px;padding:19px 17px;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}
.board-note-yellow{background:#f36b2b;transform:rotate(-3deg) translateY(4px)}
.board-note-pink{background:#fff4ee;transform:rotate(2deg) translateY(-5px)}
.board-note-teal{background:#f3f4f6;transform:rotate(-2deg) translateY(6px)}
.board-note-icon{font-size:25px;font-weight:400;line-height:1}
.board-note strong{font-size:17px;line-height:1.25;font-weight:650;letter-spacing:-.3px}
.board-note small{font-size:10px;color:#61646c;font-weight:550;letter-spacing:.4px}
.auth-story-footer{display:flex;gap:20px;justify-content:space-between;font-size:11px;color:#9498a3}
.auth-story-footer span:first-child{font-weight:750;color:#1c1c1e}
.site-auth .login-container{width:100%;max-width:none;min-height:100vh;padding:70px max(36px,calc((100vw - 1200px)/2)) 70px 44px;display:flex;align-items:center;justify-content:center;background:#fff}
.site-auth .login-card{max-width:440px;margin:auto;padding:35px 33px;border:1px solid #e9ebef;border-radius:24px;box-shadow:0 14px 48px rgba(5,0,56,.045);background:#fff;width:100%}
.auth-card-heading{text-align:left;margin-bottom:28px}
.auth-card-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:14px;background:#f36b2b;color:#1c1c1e;font-size:25px;margin-bottom:24px}
.site-auth .auth-card-heading .section-eyebrow{display:block;margin-bottom:10px}
.site-auth .login-card h2{text-align:left;font-size:29px;letter-spacing:-.7px;line-height:1.25;font-weight:650;margin-bottom:9px}
.site-auth .login-card .subtitle{text-align:left;font-size:13px;line-height:1.7;color:#747887;margin-bottom:0}
.site-auth .login-card .form-group label{font-size:12px;font-weight:650;color:#555a6a}
.site-auth .login-card .form-group input{font-size:14px;border-radius:10px;min-height:49px;background:#fff}
.site-auth .login-card .btn-block{min-height:49px;font-size:14px}
.site-auth .login-footer{margin-top:22px}
.site-auth .login-footer a{font-size:13px;color:#f36b2b;font-weight:650}
.site-auth .login-footer a:hover{text-decoration:underline;color:#d85a1f}
.site-auth .divider{color:#a4a8b4;font-size:11px;margin:23px 0}
.site-auth .error-icon{display:flex;align-items:center;justify-content:center;width:80px;height:80px;border-radius:24px;background:#fff0f0;margin:0 auto 22px!important;font-size:34px!important}
.site-auth .login-card[style*="text-align:center"] h2{text-align:center}

/* Additional inline controls and narrow layouts */
.site-admin .card select[style],.site-admin .card input[type=text][style]{border-radius:10px!important;min-height:42px;max-width:100%}
@media(max-width:1100px){
  .auth-shell{grid-template-columns:minmax(0,1fr) minmax(400px,1fr)}
  .auth-story{padding:36px 35px}
  .site-auth .login-container{padding:48px 32px}
  .auth-story h1{font-size:43px;letter-spacing:-1.4px}
  .auth-board{gap:8px}
  .board-note{min-height:150px;padding:14px}
  .board-note strong{font-size:15px}
}
@media(max-width:860px){
  .topbar-inner{padding:12px 20px;gap:18px;flex-wrap:wrap}
  .topbar-links{order:3;width:100%;flex-basis:100%;overflow-x:auto;padding-bottom:2px}
  .site-topbar{min-height:110px}
  .topbar-logout{margin-left:auto}
  .page-container{min-height:calc(100vh - 110px);padding:24px 20px 48px}
  .admin-hero-art{right:-50px;opacity:.75}
  .admin-header{padding:32px}
  .auth-shell{grid-template-columns:1fr;min-height:100vh}
  .auth-story{padding:28px 28px 31px;border-right:0;border-bottom:1px solid #eef0f3}
  .auth-story-top{max-width:720px;width:100%;margin:auto}
  .auth-story-main{max-width:720px;width:100%;margin:auto;padding:30px 0 0}
  .auth-story h1{font-size:35px;line-height:1.18;letter-spacing:-1.1px;max-width:700px;margin-bottom:9px}
  .auth-story-main>p{font-size:13px;line-height:1.65;max-width:700px}
  .auth-kicker{margin-bottom:17px}
  .auth-board,.auth-story-footer{display:none}
  .site-auth .login-container{min-height:0;padding:45px 24px 65px;align-items:flex-start}
  .site-auth .login-card{max-width:510px}
  .tool-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
  .page-container{padding:18px 13px 38px}
  .topbar-inner{padding:12px 14px;gap:8px}
  .brand-symbol{width:38px;height:38px;border-radius:11px}
  .brand-symbol img{width:24px;height:24px}
  .brand-name{font-size:18px}
  .brand-name small{font-size:8px}
  .topbar-link{padding:9px 13px;font-size:12px}
  .topbar-logout{font-size:11px;padding:8px 11px}
  .admin-header{min-height:170px;padding:25px 23px;border-radius:21px}
  .admin-intro h1{font-size:29px!important;letter-spacing:-.8px}
  .admin-intro>p{font-size:12px;max-width:240px}
  .admin-hero-art{transform:scale(.6);transform-origin:right center;right:-30px;opacity:.45}
  .stats-panel{grid-template-columns:1fr;gap:12px}
  .stat-card{padding:23px;border-radius:21px}
  .stat-figure{font-size:44px}
  .filter-panel{padding:16px}
  .filter-form{flex-direction:row;gap:8px}
  .filter-form>input,.filter-form>select{width:100%;flex:1 1 100%}
  .filter-form>.btn{flex:1 1 auto}
  .card{padding:19px;border-radius:18px}
  .table-heading{align-items:start}
  .table-heading h2{font-size:21px}
  .table-heading-hint{font-size:10px;max-width:100px;text-align:right}
  .modal-content{width:100%;padding:22px;border-radius:19px}
  .form-row{display:block}
  .welcome-header{padding:25px 21px;border-radius:20px}
  .welcome-header:after{right:-130px;opacity:.55}
  .welcome-title{font-size:28px}
  .module{border-radius:19px}
  .module-header{padding:18px;font-size:13px}
  .module-body{padding:16px}
  .user-info-section,.game-stats-row{grid-template-columns:1fr}
  .user-card,.expiry-card-merged{padding:18px;border-radius:17px}
  .expiry-details-merged{align-items:flex-start;gap:7px;flex-direction:column}
  .auth-story{padding:23px 19px 24px}
  .auth-brand{font-size:20px}
  .auth-story-overline{font-size:9px}
  .auth-story-main{padding:23px 0 0}
  .auth-story h1{font-size:30px;line-height:1.18}
  .auth-kicker{font-size:11px;margin-bottom:15px}
  .site-auth .login-container{padding:25px 16px 55px}
  .site-auth .login-card{padding:27px 22px;border-radius:20px}
  .site-auth .login-card h2{font-size:25px}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}


/* FOX-HL orange/black/white refresh */
:focus-visible { outline:3px solid rgba(243,107,43,.28); outline-offset:2px; }
.brand-symbol{background:linear-gradient(135deg,#f36b2b 0%,#ff8c55 100%);box-shadow:0 10px 24px rgba(243,107,43,.24)}
.brand-symbol img{filter:brightness(0) invert(1)}
.brand-name{color:#111214}
.brand-name small{color:#8d919c}
.brand-dash,.heading-dot{color:#f36b2b}
.topbar-link.is-active,.btn-primary{background:#1c1c1e!important;border-color:#1c1c1e!important;color:#fff!important}
.topbar-link:hover{background:#fff2eb;color:#1c1c1e}
.topbar-logout:hover{border-color:#f36b2b;color:#f36b2b}
.btn-secondary{border-color:#f1c5b1;color:#d85a1f;background:#fff7f3}
.btn-secondary:hover{background:#fff0e8;border-color:#efb396;color:#c94f18}
.btn-primary:hover{background:#2a2b2e!important;border-color:#2a2b2e!important;box-shadow:0 16px 28px rgba(17,18,20,.12)}
.admin-header,.welcome-header,.module,.card,.login-card,.modal-content{box-shadow:0 16px 44px rgba(17,18,20,.05)}
.admin-header{background:linear-gradient(135deg,#ffffff 0%,#fff8f4 100%);border-color:#f2e6df}
.hero-art-square{background:#f36b2b;box-shadow:0 10px 24px rgba(243,107,43,.18)}
.hero-art-circle{background:#fff3ec}
.hero-art-line{background:#1c1c1e;opacity:.08}
.stats-panel{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.stat-card{background:#ffffff!important;border:1px solid #eee7e2!important;box-shadow:0 12px 30px rgba(17,18,20,.03)!important}
.stat-card:nth-child(1){border-top:4px solid #f36b2b!important}
.stat-card:nth-child(2){border-top:4px solid #1c1c1e!important;background:#fcfcfd!important}
.stat-topline{color:#555b68}
.stat-figure,.user-count-merged{color:#111214}
.stat-figure small{color:#8d919c}
.card h3,.module-header,.table-heading h2,.welcome-title,.auth-story h1,.admin-intro h1,.site-auth .login-card h2{color:#111214}
.table-heading-hint,.welcome-subtitle,.site-auth .login-card .subtitle{color:#777d89}
.filter-chip.active,.pill-tab-active,.badge-promo{background:#f36b2b!important;color:#fff!important;border-color:#f36b2b!important}
.data-table tbody tr:hover{background:#fff7f2}
.data-table th{background:#faf7f5;color:#666b79}
.badge-success{background:#e6f7f0;color:#117650}
.badge-warning{background:#fff0de;color:#9b5c15}
.badge-error{background:#fff0f0;color:#b23e3e}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus,.site-admin .card select[style]:focus,.site-admin .card input[type=text][style]:focus{border-color:#f36b2b!important;box-shadow:0 0 0 4px rgba(243,107,43,.12)!important}
.user-card,.game-stat-merged,.announcement-merged{background:#fff;border:1px solid #f0edea}
.expiry-card-merged{background:linear-gradient(135deg,#fff7f2 0%,#fff1e8 100%);border:1px solid #f0d5c6}
.user-info-value.highlight,.module-header i,.site-auth .login-footer a,.btn-link{color:#f36b2b!important}
.progress-merged-bar{background:linear-gradient(90deg,#1c1c1e 0%,#f36b2b 100%)}
.game-stat-merged:nth-child(3n+1),.game-stat-merged:nth-child(3n+2),.game-stat-merged:nth-child(3n+3){background:#fff}
.game-stat-merged:hover{background:#fff8f4;border-color:#f2d5c6}
.announcement-merged{background:#fff9f6}
.announcement-title-merged{color:#9d5519}
.auth-story{background:linear-gradient(180deg,#fff8f4 0%,#ffffff 100%);border-right:1px solid #f1e5df}
.auth-brand{color:#111214}
.auth-story-overline,.auth-story-footer,.auth-story-main>p{color:#787d88}
.auth-kicker{border-color:#f0dfd6;background:#fff7f3;color:#5a606d}
.kicker-dot{background:#f36b2b}
.auth-board{max-width:580px}
.board-note{box-shadow:0 18px 34px rgba(17,18,20,.06)}
.board-note-yellow{background:linear-gradient(135deg,#f36b2b 0%,#ff8d56 100%);color:#fff}
.board-note-yellow small,.board-note-yellow strong,.board-note-yellow .board-note-icon{color:#fff}
.board-note-pink{background:#fff2ea}
.board-note-teal{background:#1c1c1e;color:#fff}
.board-note-teal small,.board-note-teal strong,.board-note-teal .board-note-icon{color:#fff}
.site-auth .login-card{border-color:#f1e5df}
.auth-card-icon{background:#fff0e8;color:#f36b2b}
.section-eyebrow,.auth-story-footer span:first-child{color:#555b68}
.alert-info{background:#fff3ec;border-color:#ffd6c4;color:#b05c22}
.login-footer a:hover{color:#d85a1f!important}
.welcome-header:after{border-color:#f6dfd2;opacity:.9}
.site-user .welcome-header{background:linear-gradient(135deg,#fff 0%,#fff8f4 100%)}
.page-footer-merged,.module-header,.user-info-item,.announcement-list-merged li{border-color:#efebe8}
::-webkit-scrollbar{height:10px;width:10px}
::-webkit-scrollbar-thumb{background:#d8dbe1;border-radius:999px}
::-webkit-scrollbar-thumb:hover{background:#c8cbd2}
@media (max-width:860px){
  .site-topbar{min-height:112px}
  .brand-symbol{width:40px;height:40px}
  .brand-name{font-size:20px}
}
