:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#f4f6fb;background:#050b11}*{box-sizing:border-box}html,body{margin:0;min-width:1180px;width:100%;height:100%;background:#050b11;overflow:hidden}body{height:100vh;height:100dvh}button{font:inherit}.app-shell{height:100vh;height:100dvh;overflow:hidden;background:radial-gradient(circle at 50% 40%,rgba(23,48,70,.13),transparent 36%),linear-gradient(180deg,#071018 0%,#03080d 100%)}.topbar{height:76px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px;padding:0 24px;border-bottom:1px solid #17232d;background:#050b10}.brand-lockup{display:flex;align-items:center;gap:12px;min-width:0}.brand-crown{color:#ffc21a;font-size:38px;line-height:1}.brand-name{font-size:31px;font-weight:950;letter-spacing:-.03em;white-space:nowrap}.tagline{margin-left:8px;color:#f4bc14;font-size:11px;font-weight:800;letter-spacing:.07em;white-space:nowrap}.total-claimed{min-width:290px;padding:8px 24px 9px;border:1px solid #38444d;border-radius:8px;text-align:center;background:#081119}.total-claimed span{display:block;color:#cbd3da;font-size:10px;letter-spacing:.1em}.total-claimed strong{display:block;margin-top:2px;color:#ffc21a;font-size:29px}.top-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px}.top-actions button{border:0;background:transparent;color:#eef2f6;padding:11px 12px;font-size:11px;font-weight:800;cursor:pointer;white-space:nowrap}.top-actions .join-button{margin-left:10px;border-radius:7px;padding:13px 18px;background:linear-gradient(180deg,#ffc82d,#e3a800);color:#161009}.workspace{height:calc(100vh - 76px);height:calc(100dvh - 76px);display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:8px;padding:8px 10px 10px;overflow:hidden}

/* Exact 10 x 10 planning grid. Each number occupies the cells approved in the layout sheet. */
.wall{min-width:0;height:100%;display:grid;grid-template-columns:repeat(10,minmax(0,1fr));grid-template-rows:repeat(10,minmax(0,1fr));gap:4px}.ad-tile,.king-tile{position:relative;min-width:0;min-height:0;overflow:hidden;border-radius:5px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.ad-tile{border:1px solid rgba(255,255,255,.34);padding:8px}.ad-tile.gray{background:linear-gradient(145deg,#2a3035,#151b20);border-color:#9da5aa}.ad-tile.green{background:linear-gradient(145deg,#195c16,#0c2b0e);border-color:#65b938}.ad-tile.blue{background:linear-gradient(145deg,#073d71,#071f3a);border-color:#2e8fd8}.ad-tile.purple{background:linear-gradient(145deg,#36205f,#17102d);border-color:#8f63bd}.tile-rank{position:absolute;top:7px;left:8px;font-size:16px;font-weight:900}.tile-logo{width:34px;height:34px;margin-bottom:6px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.18);border-radius:8px;background:rgba(0,0,0,.23);font-size:10px;font-weight:900}.ad-tile strong{max-width:94%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(10px,.9vw,15px)}.tile-price{margin-top:4px;color:rgba(255,255,255,.7);font-size:9px;font-weight:700}.king-tile{padding:16px;border:2px solid #ffbf00;background:radial-gradient(circle at 50% 35%,rgba(255,189,0,.28),transparent 36%),linear-gradient(145deg,#332500,#0d0b05 72%);box-shadow:inset 0 0 50px rgba(255,182,0,.12),0 0 24px rgba(255,182,0,.12)}.king-rank{position:absolute;top:10px;left:12px;border:1px solid #e6b30d;border-radius:5px;padding:3px 8px;color:#ffd33d;font-size:18px;font-weight:900}.king-crown{color:#ffd23a;font-size:clamp(54px,6vw,92px);line-height:.9}.king-label{color:#ffd22e;font-size:clamp(28px,3.2vw,54px);font-weight:950}.king-tile strong{margin-top:5px;font-size:clamp(16px,1.8vw,28px)}.king-tile>span:last-child{margin-top:6px;color:#f2d68c;font-size:14px;font-weight:800}

.leaderboard{height:100%;min-height:0;display:flex;flex-direction:column;padding:12px 12px 10px;border:1px solid #293640;border-radius:7px;background:#071017;overflow:hidden}.leaderboard-title{display:flex;align-items:center;gap:7px;padding-bottom:10px;border-bottom:1px solid #2b3740;font-size:14px}.leaderboard-title span{color:#ffc21a;font-size:20px}.leaderboard-head,.leader-row{display:grid;grid-template-columns:42px minmax(0,1fr) 78px;align-items:center;gap:6px}.leaderboard-head{padding:8px 4px 6px;color:#8e9aa4;font-size:9px}.leaderboard-list{min-height:0;overflow-y:auto}.leader-row{min-height:29px;padding:3px 4px;border-bottom:1px solid rgba(255,255,255,.025);font-size:10px}.leader-rank{width:26px;height:22px;display:grid;place-items:center;border-radius:4px;background:#252d33;font-weight:900}.tier-king .leader-rank{background:#f0b400;color:#17110a}.tier-blue .leader-rank{background:#12568d}.tier-purple .leader-rank{background:#4a2a70}.tier-green .leader-rank{background:#245e1f}.tier-gray .leader-rank{background:#343b40}.leader-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.leader-row strong{text-align:right;color:#e5bd3b;font-size:9px}@media(max-width:1280px){.workspace{grid-template-columns:minmax(0,1fr) 270px}.tagline{display:none}.total-claimed{min-width:240px}.top-actions button:not(.join-button):not(.notification-button){display:none}}
#language-select{border:1px solid #38444d;border-radius:7px;background:#081119;color:#eef2f6;padding:9px 8px;font-size:11px;font-weight:800;cursor:pointer;max-width:150px}#language-select:focus{outline:1px solid #ffc21a}@media(max-width:1380px){#language-select{max-width:105px}.brand-name{font-size:27px}.topbar{gap:12px;padding:0 14px}}
/* Join prototype modal */
.modal-backdrop{
  position:fixed;inset:0;z-index:1000;display:none;align-items:center;justify-content:center;
  padding:24px;background:rgba(0,0,0,.72);backdrop-filter:blur(8px)
}
.modal-backdrop.open{display:flex}
.join-modal{
  position:relative;width:min(720px,calc(100vw - 48px));max-height:calc(100vh - 48px);overflow:auto;
  border:1px solid #33424e;border-radius:14px;padding:24px;background:
  radial-gradient(circle at 50% 0%,rgba(255,194,26,.08),transparent 30%),#081119;
  box-shadow:0 30px 90px rgba(0,0,0,.6)
}
.modal-close{
  position:absolute;top:14px;right:16px;width:34px;height:34px;border:1px solid #35434e;border-radius:8px;
  background:#0c1720;color:#d9e1e7;font-size:23px;line-height:1;cursor:pointer
}
.modal-heading{padding-right:44px;margin-bottom:20px}
.modal-kicker{display:block;color:#ffc21a;font-size:10px;font-weight:900;letter-spacing:.18em}
.modal-heading h2{margin:5px 0 7px;font-size:28px}
.modal-heading p{margin:0;color:#8f9ba5;font-size:13px}
.join-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.field{display:flex;flex-direction:column;gap:7px}
.field>span,.join-mode-title{font-size:11px;font-weight:850;color:#c8d0d6;letter-spacing:.04em}
.field input{
  width:100%;height:42px;border:1px solid #2d3b46;border-radius:8px;padding:0 11px;
  background:#050c12;color:#edf2f6;outline:none
}
.field input:focus{border-color:#dca70d;box-shadow:0 0 0 2px rgba(255,194,26,.08)}
.logo-field{grid-row:span 2}
.logo-field input[type=file]{height:auto;padding:9px;font-size:11px}
.logo-preview{
  min-height:74px;border:1px dashed #3b4852;border-radius:9px;display:grid;place-items:center;
  overflow:hidden;background:#050c12;color:#697681;font-size:11px;font-weight:900
}
.logo-preview img{width:100%;height:74px;object-fit:contain}
.join-mode-title{margin:22px 0 9px}
.join-mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.join-mode{
  min-height:86px;border:1px solid #2d3b46;border-radius:10px;padding:13px;text-align:left;
  background:#09131b;color:#e9eef2;cursor:pointer
}
.join-mode.active{border-color:#e1ad14;background:#151609;box-shadow:inset 0 0 0 1px rgba(255,194,26,.18)}
.join-mode .mode-icon{font-size:22px;float:left;margin-right:10px}
.join-mode strong,.join-mode small{display:block}
.join-mode strong{font-size:13px;margin-top:1px}
.join-mode small{margin-top:5px;color:#85919a;font-size:10px}
.mode-detail{margin-top:10px;padding:11px 12px;border-radius:9px;background:#050c12;border:1px solid #24313a}
.mode-detail strong,.mode-detail span{display:block}
.mode-detail strong{font-size:12px}
.mode-detail span{margin-top:4px;color:#82909a;font-size:10px}
.join-error{min-height:18px;margin-top:8px;color:#ff7d7d;font-size:11px}
.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:4px}
.secondary-action,.primary-action{border-radius:8px;padding:11px 18px;font-weight:850;cursor:pointer}
.secondary-action{border:1px solid #35434e;background:#0a141c;color:#cdd5db}
.primary-action{border:0;background:linear-gradient(180deg,#ffc82d,#e3a800);color:#171009}
@media(max-width:760px){
  .join-form-grid,.join-mode-grid{grid-template-columns:1fr}
  .logo-field{grid-row:auto}
}

.step-two{display:none;margin-top:4px}
.step-two.open{display:block}
.step-two-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:2px 0 14px}
.step-two-head h3{margin:3px 0 0;font-size:21px}
.text-action{border:0;background:transparent;color:#9aa6af;font-size:11px;cursor:pointer}
.bid-panel{display:block}
.hidden{display:none!important}
.quick-bids{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px}
.quick-bids button{height:40px;border:1px solid #34434f;border-radius:8px;background:#0a141c;color:#eef3f6;font-weight:850;cursor:pointer}
.quick-bids button:hover,.quick-bids button.active{border-color:#e3ad12;background:#171708;color:#ffd23a}
.wallet-card{display:grid;grid-template-columns:1fr auto;gap:3px 12px;align-items:center;margin-bottom:12px;padding:12px;border:1px solid #33424d;border-radius:9px;background:#050c12}
.wallet-card span{font-size:10px;color:#8d99a2}
.wallet-card strong{grid-row:1/span 2;grid-column:2;font-size:24px;color:#ffd23a}
.wallet-card small{font-size:9px;color:#697680}
.rank-preview{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px}
.rank-preview div{padding:11px;border:1px solid #2c3944;border-radius:9px;background:#050c12}
.rank-preview span{display:block;color:#7f8b94;font-size:9px;letter-spacing:.05em}
.rank-preview strong{display:block;margin-top:4px;font-size:17px}
.preview-note{margin-top:9px;color:#77838c;font-size:10px}

.promo-box{margin-top:14px;padding:12px;border:1px solid #2c3944;border-radius:9px;background:#071018}
.promo-title{margin-bottom:8px;color:#cbd3d9;font-size:11px;font-weight:850}
.promo-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.promo-row input{height:40px;border:1px solid #33424d;border-radius:8px;padding:0 11px;background:#050c12;color:#eef3f6;text-transform:uppercase;outline:none}
.promo-row input:focus{border-color:#dca70d;box-shadow:0 0 0 2px rgba(255,194,26,.08)}
.promo-row button{border:1px solid #d7a713;border-radius:8px;padding:0 16px;background:#171608;color:#ffd23a;font-weight:850;cursor:pointer}
.promo-result{margin-top:7px;color:#7f8b94;font-size:10px;line-height:1.4}
.promo-result.success{color:#ffd23a}.promo-result.error{color:#ff7d7d}

.step-three,.success-step{display:none}
.step-three.open,.success-step.open{display:block}
.confirm-card{border:1px solid #35434e;border-radius:11px;padding:15px;background:#050c12}
.confirm-brand{display:flex;align-items:center;gap:12px;padding-bottom:13px;border-bottom:1px solid #25313a}
.confirm-ad-image{width:120px;height:72px;flex:0 0 120px;display:grid;place-items:center;overflow:hidden;border:1px solid #3a4751;border-radius:9px;background:#09131b;color:#77838c;font-size:9px;font-weight:900}
.confirm-ad-image img{width:100%;height:100%;object-fit:cover}
.confirm-brand strong,.confirm-brand span{display:block}
.confirm-brand strong{font-size:17px}.confirm-brand span{margin-top:4px;color:#7f8b94;font-size:10px}
.confirm-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.confirm-grid div{padding:11px;border:1px solid #283640;border-radius:8px;background:#081119}
.confirm-grid span{display:block;color:#7f8b94;font-size:9px}.confirm-grid strong{display:block;margin-top:4px;color:#ffd23a;font-size:18px}
.confirm-copy{margin:12px 0 0;color:#b7c0c7;font-size:11px}
.prototype-warning{margin-top:10px;padding:10px 12px;border:1px solid #594916;border-radius:8px;background:#171507;color:#d7bd68;font-size:10px;line-height:1.45}
.success-step{text-align:center;padding:22px 10px 8px}.success-crown{color:#ffd23a;font-size:60px;line-height:1}.success-step h3{margin:8px 0;font-size:24px}.success-step p{margin:0 auto 18px;max-width:430px;color:#a9b3ba;font-size:12px;line-height:1.5}

.account-button{border:1px solid #38444d!important;border-radius:7px!important;background:#081119!important;color:#eef2f6!important;padding:10px 12px!important}
.account-modal{width:min(560px,calc(100vw - 48px))}
.account-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px}
.account-tab{height:40px;border:1px solid #32404b;border-radius:8px;background:#09131b;color:#9ba7af;font-weight:850;cursor:pointer}
.account-tab.active{border-color:#e1ad14;background:#171608;color:#ffd23a}
.account-panel{display:grid;gap:12px}
.account-submit{width:100%;margin-top:2px}
.verify-note{padding:10px 12px;border:1px solid #554715;border-radius:8px;background:#171507;color:#c9b468;font-size:10px;line-height:1.45}
.member-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.member-hero h2{margin:5px 0 4px;font-size:26px}.member-hero p{margin:0;color:#84919a;font-size:11px}
.member-wallet{margin-top:18px;padding:16px;border:1px solid #34424d;border-radius:10px;background:#050c12}
.member-wallet span,.member-wallet strong,.member-wallet small{display:block}
.member-wallet span{color:#8b98a1;font-size:10px}.member-wallet strong{margin-top:3px;color:#ffd23a;font-size:28px}.member-wallet small{margin-top:3px;color:#65727c;font-size:9px}
.daily-card{margin-top:10px;display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:13px;border:1px solid #2e3a44;border-radius:10px;background:#081119}
.daily-card span,.daily-card strong,.daily-card small{display:block}.daily-card span{font-size:10px;color:#8a969f}.daily-card strong{margin-top:2px;font-size:18px}.daily-card small{margin-top:3px;color:#65717a;font-size:9px}

.my-brands-section{margin-top:14px;padding-top:14px;border-top:1px solid #27343d}
.my-brands-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}
.my-brands-head h3{margin:3px 0 0;font-size:16px}
.my-brands-list{display:grid;gap:8px}
.empty-brands{padding:14px;border:1px dashed #34424c;border-radius:9px;color:#6f7c85;font-size:10px;text-align:center;background:#050c12}
.my-brand-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding:11px 12px;border:1px solid #2d3a44;border-radius:9px;background:#071018}
.my-brand-main strong,.my-brand-main span{display:block}
.my-brand-main strong{font-size:12px}.my-brand-main span{margin-top:3px;color:#78858e;font-size:9px}
.my-brand-stats{text-align:right}
.my-brand-stats strong,.my-brand-stats span{display:block}
.my-brand-stats strong{color:#ffd23a;font-size:13px}.my-brand-stats span{margin-top:2px;color:#7e8a93;font-size:9px}

.profile-name-edit{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-top:12px}
.profile-name-edit input{height:40px;border:1px solid #32404b;border-radius:8px;padding:0 11px;background:#050c12;color:#eef3f6;outline:none}
.profile-name-edit input:focus{border-color:#dca70d}
.brand-detail-grid span{color:#78858e;font-size:8px}.brand-detail-grid strong{margin-top:3px;color:#ffd23a;font-size:13px}

.brand-manager-modal{width:min(600px,calc(100vw - 48px))}
.bm-stats{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:14px}
.bm-stats>div{padding:12px;border:1px solid #2e3b45;border-radius:9px;background:#050c12}
.bm-stats span,.bm-stats strong{display:block}
.bm-stats span{color:#7f8c95;font-size:9px}
.bm-stats strong{margin-top:4px;color:#ffd23a;font-size:19px}
.brand-manager-modal>.field{margin-top:11px}
.bm-actions{display:flex;justify-content:flex-end;margin-top:10px}
.bm-topup{margin-top:16px;padding-top:15px;border-top:1px solid #2b3740}
.bm-topup-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:10px}
.bm-topup-head h3{margin:3px 0 0}
.bm-topup-head>span{color:#8d99a2;font-size:10px}
.my-brand-card{cursor:pointer}
.my-brand-card:hover{border-color:#8b7430}

.event-ticker{min-width:300px;max-width:430px;flex:1;padding:7px 13px;border-left:1px solid #28343d;border-right:1px solid #28343d;overflow:hidden}
.event-ticker span,.event-ticker strong{display:block}.event-ticker span{color:#ffc21a;font-size:8px;font-weight:900;letter-spacing:.16em}.event-ticker strong{margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.wallet-modal{width:min(520px,calc(100vw - 48px))}.wallet-balance-box{padding:15px;border:1px solid #34424d;border-radius:10px;background:#050c12}.wallet-balance-box span,.wallet-balance-box strong{display:block}.wallet-balance-box span{color:#84919a;font-size:10px}.wallet-balance-box strong{margin-top:3px;color:#ffd23a;font-size:28px}
.wallet-packages{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}.wallet-packages button{height:48px;border:1px solid #5d4b12;border-radius:9px;background:#171608;color:#ffd23a;font-weight:900;cursor:pointer}.wallet-packages button:hover{border-color:#ffc21a}
.history-modal{width:min(680px,calc(100vw - 48px))}.history-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}.history-tabs button{border:1px solid #34424d;border-radius:999px;padding:8px 12px;background:#081119;color:#8f9ba4;font-size:10px;font-weight:850;cursor:pointer}.history-tabs button.active{border-color:#d9a711;background:#171608;color:#ffd23a}
.history-list{display:grid;gap:7px;max-height:430px;overflow:auto}.history-item{display:grid;grid-template-columns:72px 1fr auto;gap:10px;align-items:center;padding:11px 12px;border:1px solid #293640;border-radius:9px;background:#050c12}.history-type{color:#ffd23a;font-size:9px;font-weight:900}.history-message{font-size:11px}.history-time{color:#66737d;font-size:9px;white-space:nowrap}.history-empty{padding:25px;text-align:center;color:#697680;font-size:11px}

/* Top bar readability tuning */
.topbar{
  grid-template-columns:minmax(300px,1fr) minmax(430px,1.35fr) minmax(560px,1.45fr);
  gap:16px;
  padding:0 18px;
}
.brand-crown{font-size:42px}
.brand-name{font-size:33px}
.tagline{font-size:12px}

.event-ticker{
  min-width:430px;
  max-width:none;
  padding:9px 18px;
}
.event-ticker span{
  font-size:9px;
}
.event-ticker strong{
  margin-top:4px;
  font-size:13px;
  line-height:1.25;
}

.top-actions{
  gap:7px;
}
.top-actions button{
  padding:11px 13px;
  font-size:12px;
}
.top-actions .join-button{
  padding:13px 17px;
}
.account-button{
  padding:11px 13px!important;
  font-size:12px!important;
}
#language-select{
  max-width:132px;
  padding:10px 9px;
  font-size:12px;
}

@media(max-width:1450px){
  .topbar{
    grid-template-columns:minmax(260px,.9fr) minmax(360px,1.1fr) minmax(520px,1.35fr);
    gap:10px;
    padding:0 12px;
  }
  .brand-name{font-size:29px}
  .brand-crown{font-size:38px}
  .event-ticker{min-width:360px;padding:8px 12px}
  .event-ticker strong{font-size:12px}
  .top-actions button{font-size:11px;padding:10px 10px}
  .account-button{font-size:11px!important;padding:10px 10px!important}
  #language-select{font-size:11px;max-width:112px}
}

/* Center and enlarge live event text */
.event-ticker{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  min-height:52px;
  padding:6px 18px;
}
.event-ticker>span{
  display:none!important;
}
.event-ticker strong{
  width:100%;
  margin:0;
  font-size:18px;
  line-height:1.18;
  font-weight:900;
  text-align:center;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
@media(max-width:1450px){
  .event-ticker strong{
    font-size:16px;
  }
}

/* Extended Top 100 leaderboard */
.leaderboard-list{overflow-y:auto;padding-right:2px}
.leader-row-two{
  display:block;
  min-height:47px;
  padding:6px 4px 5px;
}
.leader-main{
  display:grid;
  grid-template-columns:32px minmax(0,1fr) 92px;
  align-items:center;
  gap:6px;
}
.leader-row-two .leader-rank{
  width:26px;
  height:22px;
}
.leader-row-two .leader-name{
  font-size:10px;
  font-weight:800;
}
.leader-row-two .leader-main strong{
  text-align:right;
  color:#e5bd3b;
  font-size:9px;
  white-space:nowrap;
}
.leader-url{
  margin:3px 0 0 38px;
  color:#6e7c86;
  font-size:8px;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Improve leaderboard readability */
.leader-row-two{
  min-height:56px;
  padding:8px 6px 7px;
}
.leader-main{
  grid-template-columns:36px minmax(0,1fr) 102px;
  gap:8px;
}
.leader-row-two .leader-rank{
  width:30px;
  height:25px;
  font-size:11px;
}
.leader-row-two .leader-name{
  font-size:12px;
  font-weight:850;
}
.leader-row-two .leader-main strong{
  font-size:11px;
}
.leader-url{
  margin:4px 0 0 44px;
  font-size:10px;
  line-height:1.25;
}

/* Public brand detail */
.wall .ad{cursor:pointer}
.brand-view-modal{width:min(620px,calc(100vw - 48px))}
.brand-view-hero{display:grid;grid-template-columns:180px minmax(0,1fr);gap:16px;align-items:center}
.brand-view-art{width:180px;height:110px;display:grid;place-items:center;overflow:hidden;border:1px solid #46545e;border-radius:12px;background:#071018;color:#7f8b94;font-size:10px;font-weight:900}
.brand-view-art img{width:100%;height:100%;object-fit:cover}
.brand-view-hero h2{margin:4px 0 5px;font-size:26px}
.brand-view-hero p{margin:0;color:#9aa5ad;font-size:11px;line-height:1.45}
.brand-view-stats{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:16px}
.brand-view-stats>div{padding:12px;border:1px solid #2e3b45;border-radius:9px;background:#050c12}
.brand-view-stats span,.brand-view-stats strong{display:block}.brand-view-stats span{color:#7d8992;font-size:9px}.brand-view-stats strong{margin-top:4px;color:#ffd23a;font-size:20px}
.brand-view-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}
.brand-view-boost-box{margin-top:12px;padding:12px;border:1px solid #4c4015;border-radius:9px;background:#131307}
.brand-view-boost-head{display:flex;justify-content:space-between;gap:10px;margin-bottom:9px}.brand-view-boost-head span{color:#7d8992;font-size:9px}
.brand-view-events{margin-top:18px;padding-top:14px;border-top:1px solid #293640}.brand-view-events h3{margin:3px 0 9px;font-size:15px}
.brand-view-event{padding:8px 10px;border-bottom:1px solid #202c35;color:#aab4bb;font-size:10px}.brand-view-event:last-child{border-bottom:0}.brand-view-event-empty{padding:12px;color:#697680;font-size:10px;text-align:center}

/* Brand fan boost checkout */
.boost-choice-title{margin-bottom:8px;color:#cbd3d9;font-size:11px;font-weight:900}
.boost-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.boost-choice{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:9px;align-items:center;padding:11px 12px;border:1px solid #33424d;border-radius:9px;background:#081119;color:#dfe6eb;text-align:left;cursor:pointer}
.boost-choice>span{grid-row:1/span 2;font-size:21px}.boost-choice strong{font-size:12px}.boost-choice small{margin-top:2px;color:#74818a;font-size:9px}.boost-choice.active{border-color:#d9a711;background:#171608}.boost-choice.active strong{color:#ffd23a}
.boost-pay-panel{margin-top:11px;padding-top:11px;border-top:1px solid #343819}
.boost-quick-pay{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-bottom:10px}.boost-quick-pay button{padding:9px 5px;border:1px solid #394751;border-radius:8px;background:#071018;color:#eef3f6;font-size:12px;font-weight:900;cursor:pointer}.boost-quick-pay button small{display:block;margin-top:3px;color:#7e8a93;font-size:8px}.boost-quick-pay button.active,.boost-quick-pay button:hover{border-color:#e1ad14;background:#171608;color:#ffd23a}
.boost-confirm-wide{width:100%;margin-top:10px}.boost-note{margin-top:7px;color:#74818a;font-size:9px;line-height:1.4}

/* Full ranking + sharing */
.leaderboard-title{display:flex;align-items:center;gap:7px}.leaderboard-title strong{flex:1}.leaderboard-more{border:1px solid #66551c;border-radius:6px;padding:5px 7px;background:#151507;color:#ffd23a;font-size:9px;font-weight:900;cursor:pointer}
.full-ranking-modal{width:min(820px,calc(100vw - 42px))}
.full-ranking-legend{display:flex;gap:16px;margin:-4px 0 12px;color:#89959e;font-size:10px}
.full-ranking-list{max-height:540px;overflow:auto;border:1px solid #2b3740;border-radius:10px;background:#050c12}
.full-rank-row{display:grid;grid-template-columns:54px minmax(130px,1fr) 125px 130px;gap:10px;align-items:center;padding:10px 12px;border-bottom:1px solid #202c35;cursor:pointer}.full-rank-row:last-child{border-bottom:0}.full-rank-row:hover{background:#0b151d}.full-rank-row.in-wall{background:rgba(194,149,18,.035)}
.full-rank-number{font-size:13px;font-weight:950;color:#c9d1d6}.full-rank-row.in-wall .full-rank-number{color:#ffd23a}
.full-rank-brand strong,.full-rank-brand small{display:block}.full-rank-brand strong{font-size:12px}.full-rank-brand small{margin-top:3px;color:#697680;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.full-rank-spend{text-align:right;color:#e4bc3d;font-size:11px;font-weight:900}.full-rank-status{text-align:right;font-size:9px;color:#78858e}.full-rank-status.wall{color:#d9b43b}.full-rank-status.challenge{color:#9ba7af}
.brand-view-actions{grid-template-columns:1fr 1fr 1fr}
.share-feedback{margin-top:7px;color:#ffd23a;font-size:9px;text-align:center}
@media(max-width:700px){.full-rank-row{grid-template-columns:42px minmax(100px,1fr) 95px}.full-rank-status{grid-column:2/span 2;text-align:left}.brand-view-actions{grid-template-columns:1fr}}

/* Sidebar ranking is the only ranking view */
.leaderboard-list{overflow-y:auto!important;overscroll-behavior:contain}

/* Sidebar leaderboard search */
.leaderboard-title{gap:6px}
.leaderboard-title>strong{white-space:nowrap}
.leader-search{margin-left:auto;display:flex;align-items:center;gap:4px;min-width:0}
.leader-search select,.leader-search input,.leader-search button{height:27px;border:1px solid #34424d;border-radius:6px;background:#071018;color:#dce4e9;font-size:9px;outline:none}
.leader-search select{width:52px;padding:0 3px}.leader-search input{width:88px;padding:0 7px}.leader-search button{padding:0 7px;color:#ffd23a;border-color:#655317;cursor:pointer;font-weight:850}
.leader-search input:focus{border-color:#d9a711}.leader-search-hit{box-shadow:inset 0 0 0 1px #e1ad14;background:#181707!important}.leader-search-miss{border-color:#e55!important}

/* Leaderboard search sizing - preserve original sidebar layout */
.leaderboard-title{gap:0}
.leader-search{margin-left:0;display:flex;align-items:center;gap:5px;width:100%;min-width:0}
.leader-search select{width:68px;height:29px;padding:0 5px;font-size:10px;flex:0 0 68px}
.leader-search input{width:auto;height:29px;padding:0 8px;font-size:10px;flex:1 1 auto;min-width:0}
.leader-search button{width:54px;height:29px;padding:0 5px;font-size:10px;flex:0 0 54px}

/* Vertical battle ticker */
.event-ticker strong{
  transform:translateY(0);
  opacity:1;
  transition:transform .22s ease,opacity .22s ease;
  will-change:transform,opacity;
}
.event-ticker strong.ticker-leave{transform:translateY(-115%);opacity:0}
.event-ticker strong.ticker-enter{animation:tickerBattleIn .42s cubic-bezier(.2,.8,.2,1)}
.event-ticker strong.ticker-important{font-weight:950}
@keyframes tickerBattleIn{
  from{transform:translateY(115%);opacity:0}
  to{transform:translateY(0);opacity:1}
}
@media(prefers-reduced-motion:reduce){
  .event-ticker strong{transition:none}
  .event-ticker strong.ticker-enter{animation:none}
}

/* Larger, easier-to-read Wall History */
.history-modal{
  width:min(900px,calc(100vw - 56px));
  padding:28px 30px 30px;
}
.history-modal .modal-heading h2{font-size:30px;line-height:1.15}
.history-modal .modal-heading p{font-size:14px;line-height:1.55}
.history-modal .modal-kicker{font-size:11px}
.history-tabs{gap:10px;margin:18px 0 16px}
.history-tabs button{
  padding:10px 18px;
  font-size:13px;
}
.history-list{
  gap:10px;
  max-height:min(590px,65vh);
}
.history-item{
  grid-template-columns:88px minmax(0,1fr) 90px;
  gap:14px;
  padding:15px 16px;
  min-height:58px;
}
.history-type{font-size:12px}
.history-message{
  font-size:15px;
  line-height:1.45;
}
.history-time{
  font-size:11px;
  text-align:right;
}
.history-empty{font-size:14px;padding:36px}
@media(max-width:760px){
  .history-modal{width:calc(100vw - 24px);padding:22px 16px}
  .history-item{grid-template-columns:64px minmax(0,1fr);gap:8px 10px}
  .history-time{grid-column:2;text-align:left}
  .history-message{font-size:14px}
}

/* Spacious desktop modal system */
@media(min-width:761px){
  .join-modal{
    width:min(920px,calc(100vw - 72px));
    max-height:calc(100vh - 64px);
    padding:32px 36px 34px;
    border-radius:16px;
  }
  .account-modal{width:min(820px,calc(100vw - 72px))}
  .wallet-modal{width:min(820px,calc(100vw - 72px))}
  .brand-manager-modal{width:min(820px,calc(100vw - 72px))}
  .brand-view-modal{width:min(820px,calc(100vw - 72px))}
  .history-modal{width:min(980px,calc(100vw - 72px))}

  .modal-close{top:18px;right:20px;width:40px;height:40px;font-size:27px}
  .modal-heading{margin-bottom:26px;padding-right:54px}
  .modal-kicker{font-size:12px}
  .modal-heading h2{font-size:32px}
  .modal-heading p{font-size:15px;line-height:1.55}

  .field{gap:9px}
  .field>span,.join-mode-title{font-size:13px}
  .field input,.field textarea,.field select{font-size:15px}
  .join-form-grid{gap:18px}
  .modal-actions button,.secondary-action,.account-submit{min-height:46px;font-size:14px}

  .wallet-balance-box{padding:20px}
  .wallet-balance-box span{font-size:13px}
  .wallet-balance-box strong{font-size:34px}
  .wallet-packages{gap:12px;margin-top:16px}
  .wallet-packages button{height:60px;font-size:14px}

  .bm-stats{gap:12px;margin-bottom:18px}
  .bm-stats>div{padding:17px}
  .bm-stats span{font-size:12px}
  .bm-stats strong{font-size:24px}
  .bm-topup{margin-top:22px;padding-top:20px}
  .bm-topup-head>span{font-size:12px}
  .bm-topup-head h3{font-size:21px}

  .brand-view-hero{grid-template-columns:180px minmax(0,1fr);gap:20px}
  .brand-view-art{width:180px;height:110px}
  .brand-view-hero h2{font-size:31px}
  .brand-view-hero p{font-size:14px}
  .brand-view-stats>div{padding:17px}
  .brand-view-stats span{font-size:12px}
  .brand-view-stats strong{font-size:25px}
  .brand-view-actions{gap:12px;margin-top:16px}
  .brand-view-actions button{min-height:48px;font-size:14px}

  .account-tab{height:48px;font-size:14px}
  .account-panel{gap:16px}
  .member-hero h2{font-size:31px}
  .member-hero p{font-size:14px}
  .member-wallet{padding:20px}
  .member-wallet span{font-size:13px}

  .history-modal .modal-heading h2{font-size:32px}
  .history-tabs button{font-size:14px;padding:11px 20px}
  .history-message{font-size:16px}
  .history-type{font-size:13px}
  .history-time{font-size:12px}
}

/* Notification center */
.notification-button{position:relative;color:#ffd23a!important;font-size:18px!important;min-width:38px;padding:7px 9px!important}
.notification-badge{position:absolute;right:-5px;top:-6px;min-width:18px;height:18px;padding:0 5px;display:grid;place-items:center;border:2px solid #081119;border-radius:999px;background:#e52f3e;color:#fff;font-size:9px;font-weight:950;line-height:1}
.notification-badge.hidden{display:none}
.notification-modal{width:min(860px,calc(100vw - 48px))}
.daily-progress{padding:18px;border:1px solid #4c4118;border-radius:12px;background:#151407;margin-bottom:18px}
.daily-progress>div:first-child{display:flex;justify-content:space-between;gap:14px;align-items:center}
.daily-progress span{font-size:13px;font-weight:850}.daily-progress strong{color:#ffd23a;font-size:19px}
.daily-progress-track{height:8px;margin-top:12px;overflow:hidden;border-radius:999px;background:#303016}
.daily-progress-track i{display:block;width:0;height:100%;border-radius:inherit;background:#ffd23a;transition:width .3s ease}
.notification-tasks{display:grid;gap:10px}
.notice-task{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 16px;border:1px solid #303d46;border-radius:11px;background:#071018}
.notice-task>div strong,.notice-task>div span{display:block}.notice-task>div strong{font-size:15px}.notice-task>div span{margin-top:4px;color:#9aa5ad;font-size:12px}
.notice-task button{min-width:92px;height:38px;border:1px solid #765f13;border-radius:8px;background:#171608;color:#ffd23a;font-size:12px;font-weight:900;cursor:pointer}
.notice-task.done{opacity:.58}.notice-task.done button{border-color:#33404a;background:#0a1218;color:#7f8a92;cursor:default}
.notification-section-title{margin:24px 0 10px;color:#ffd23a;font-size:12px;font-weight:950;letter-spacing:.08em}
.notification-list{display:grid;gap:8px;max-height:300px;overflow:auto}
.notification-item{position:relative;padding:13px 15px;border:1px solid #2c3942;border-radius:9px;background:#071018}
.notification-item.unread:before{content:'';position:absolute;left:5px;top:18px;width:6px;height:6px;border-radius:50%;background:#e52f3e}
.notification-item strong,.notification-item span{display:block}.notification-item strong{font-size:13px}.notification-item span{margin-top:4px;color:#89969f;font-size:11px}
.notification-empty{padding:24px;text-align:center;color:#74818a;font-size:12px}
@media(min-width:761px){.notification-modal{width:min(900px,calc(100vw - 72px));padding:32px 36px}.notification-button{font-size:21px!important}}

/* Admin dashboard */
.admin-body{min-height:100vh;background:#05090d;color:#eef3f6}
.admin-shell{width:min(1500px,calc(100vw - 48px));margin:0 auto;padding:28px 0 48px}
.admin-topbar{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:24px}
.admin-topbar h1{margin:4px 0 0;font-size:34px}
.admin-top-actions{display:flex;gap:10px}
.admin-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.admin-access{padding:20px;border:1px solid #394751;border-radius:12px;background:#081119;color:#b8c2c9}
.admin-stats{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin-bottom:18px}
.admin-stats>div{padding:16px;border:1px solid #2f3c46;border-radius:11px;background:#071018}
.admin-stats span,.admin-stats strong{display:block}.admin-stats span{color:#89959e;font-size:11px}.admin-stats strong{margin-top:5px;color:#ffd23a;font-size:24px}
.admin-panel{margin-top:16px;padding:22px;border:1px solid #2d3943;border-radius:13px;background:#081119}
.admin-panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.admin-panel-head h2{margin:4px 0 0;font-size:24px}
.admin-form-row{display:grid;grid-template-columns:180px 1fr 180px;gap:10px}
.admin-form-grid{display:grid;grid-template-columns:1.4fr .7fr .7fr 1.2fr 160px;gap:10px}
.admin-form-row input,.admin-form-grid input{height:44px;border:1px solid #34424d;border-radius:8px;background:#050c12;color:#eef3f6;padding:0 12px;font-size:13px}
.admin-table{margin-top:14px;border:1px solid #2a3740;border-radius:10px;overflow:hidden}
.admin-row{display:grid;grid-template-columns:1.2fr .7fr .8fr .8fr 1.2fr;gap:10px;align-items:center;padding:11px 13px;border-bottom:1px solid #202b33;font-size:12px}.admin-row:last-child{border-bottom:0}
.admin-row-head{background:#0d171f;color:#93a0a9;font-size:10px;font-weight:900;letter-spacing:.05em}
.admin-brand-row{grid-template-columns:1.1fr 1.4fr .8fr .65fr 1.25fr}.admin-payment-row{grid-template-columns:1.4fr .9fr .8fr .8fr .7fr}
.admin-inline-actions{display:flex;gap:6px;flex-wrap:wrap}.admin-inline-actions button{border:1px solid #4b5861;border-radius:6px;background:#0a141b;color:#dce3e8;padding:6px 8px;font-size:10px;cursor:pointer}.admin-inline-actions button:hover{border-color:#d9a711;color:#ffd23a}
.admin-empty{padding:24px;text-align:center;color:#72808a;font-size:12px}
.member-hero-actions{display:flex;gap:8px;align-items:center}
@media(max-width:1100px){.admin-stats{grid-template-columns:repeat(3,1fr)}.admin-form-grid{grid-template-columns:1fr 1fr}.admin-form-grid button{grid-column:1/-1}.admin-form-row{grid-template-columns:1fr 1fr}.admin-form-row button{grid-column:1/-1}.admin-row,.admin-brand-row,.admin-payment-row{grid-template-columns:1fr 1fr}.admin-row-head{display:none}}

/* Admin page must scroll independently from the fixed main app shell */
html:has(body.admin-body),
body.admin-body{
  height:auto!important;
  min-height:100%!important;
  overflow-y:auto!important;
  overflow-x:auto!important;
}
body.admin-body{
  min-height:100vh!important;
}
body.admin-body::-webkit-scrollbar{width:12px}
body.admin-body::-webkit-scrollbar-track{background:#05090d}
body.admin-body::-webkit-scrollbar-thumb{background:#34424d;border:3px solid #05090d;border-radius:999px}
body.admin-body::-webkit-scrollbar-thumb:hover{background:#56646e}

.wallet-test-confirm{margin-top:14px;padding:14px;border:1px solid #8b6b08;border-radius:10px;background:#171300;display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center}
.wallet-test-confirm>div span,.wallet-test-confirm>div strong,.wallet-test-confirm>div small{display:block}
.wallet-test-confirm>div span{font-size:10px;color:#9da7ae}.wallet-test-confirm>div strong{margin:3px 0;color:#ffd23a;font-size:18px;letter-spacing:.08em}.wallet-test-confirm>div small{color:#c6cdd2}
@media(max-width:760px){.wallet-test-confirm{grid-template-columns:1fr}.wallet-test-confirm button{width:100%}}

.native-file-input{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.custom-file-picker{display:flex;align-items:center;gap:10px;min-height:44px}
.file-pick-button{height:36px;padding:0 12px;white-space:nowrap}
.file-pick-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#aab4bb;font-size:12px}

/* Arabic / RTL typography tuning */
html[lang="ar"],html[lang="ar"] body{
  font-family:Tahoma,"Segoe UI",Arial,sans-serif;
}
html[lang="ar"] .tagline,
html[lang="ar"] .modal-kicker,
html[lang="ar"] .field>span,
html[lang="ar"] .join-mode-title,
html[lang="ar"] .rank-preview span,
html[lang="ar"] .notification-section-title,
html[lang="ar"] .event-ticker strong,
html[lang="ar"] .top-actions button,
html[lang="ar"] .leaderboard,
html[lang="ar"] .king-tile,
html[lang="ar"] .ad-tile{
  letter-spacing:0!important;
  text-transform:none!important;
}
html[lang="ar"] .event-ticker strong{
  direction:rtl;
  unicode-bidi:plaintext;
}
html[lang="ar"] .brand-lockup,
html[lang="ar"] .top-actions,
html[lang="ar"] .leader-search,
html[lang="ar"] .leader-main{
  direction:rtl;
}
html[lang="ar"] .brand-name,
html[lang="ar"] .tile-price,
html[lang="ar"] .leader-url{
  direction:ltr;
  unicode-bidi:isolate;
}

/* Locale typography normalization */
html[lang="zh-TW"],html[lang="zh-TW"] body{
  font-family:"Microsoft JhengHei UI","Microsoft JhengHei","Segoe UI",sans-serif;
}
html[lang="zh-CN"],html[lang="zh-CN"] body{
  font-family:"Microsoft YaHei UI","Microsoft YaHei","Segoe UI",sans-serif;
}
html[lang="ja"],html[lang="ja"] body{
  font-family:"Yu Gothic UI","Meiryo","Segoe UI",sans-serif;
}
html[lang="ko"],html[lang="ko"] body{
  font-family:"Malgun Gothic","Segoe UI",sans-serif;
}
html[lang="th"],html[lang="th"] body{
  font-family:"Leelawadee UI","Tahoma","Segoe UI",sans-serif;
}
html[lang="hi"],html[lang="hi"] body{
  font-family:"Nirmala UI","Mangal","Segoe UI",sans-serif;
}
html[lang="ar"],html[lang="ar"] body{
  font-family:"Segoe UI","Tahoma",Arial,sans-serif;
}
html[lang="ru"],html[lang="ru"] body,
html[lang="uk"],html[lang="uk"] body{
  font-family:"Segoe UI",Arial,sans-serif;
}

/* Scripts that should never receive Latin-style tracking */
html[lang="zh-TW"] *,
html[lang="zh-CN"] *,
html[lang="ja"] *,
html[lang="ko"] *,
html[lang="th"] *,
html[lang="hi"] *,
html[lang="ar"] *{
  letter-spacing:0!important;
}

/* Keep Latin-script locales readable with normal casing and native accents */
html[lang="vi"] *,
html[lang="fil"] *,
html[lang="ms"] *,
html[lang="id"] *{
  text-transform:none!important;
}

/* Mixed-script amounts and brand names should stay stable */
.tile-price,.leader-row strong,.wallet-balance-box strong,.member-wallet-total strong,
.king-tile>span:last-child,.brand-name,.leader-url{
  unicode-bidi:isolate;
}

/* Better line-height for complex scripts */
html[lang="th"] body,
html[lang="hi"] body,
html[lang="ar"] body{
  line-height:1.45;
}
html[lang="th"] .event-ticker strong,
html[lang="hi"] .event-ticker strong,
html[lang="ar"] .event-ticker strong{
  line-height:1.35;
}

/* Arabic: RTL text, but keep money / Latin brand data stable */
html[lang="ar"] .event-ticker strong,
html[lang="ar"] .modal-heading,
html[lang="ar"] .notification-item,
html[lang="ar"] .history-item{
  direction:rtl;
  unicode-bidi:plaintext;
}
html[lang="ar"] .tile-price,
html[lang="ar"] .leader-row strong,
html[lang="ar"] .brand-name,
html[lang="ar"] .leader-url,
html[lang="ar"] [id$="-url"],
html[lang="ar"] [id$="-email"]{
  direction:ltr;
  unicode-bidi:isolate;
}

/* Brand ad image: fill the purchased tile while preserving the tile's outer border. */
.wall-brand-tile.has-ad-image{padding:0!important;background:#050b11!important}
.wall-brand-tile.has-ad-image.king-tile{border-width:1px;box-shadow:none}
.wall-ad-blur-bg{
  position:absolute;z-index:0;inset:1px;width:calc(100% - 2px);height:calc(100% - 2px);
  object-fit:cover;object-position:center;
  filter:blur(18px) brightness(.46) saturate(.9);
  transform:scale(1.08);
  opacity:.9;pointer-events:none;user-select:none;
}
.wall-ad-image{
  position:absolute;z-index:1;left:1px;top:1px;
  width:calc(100% - 2px);height:calc(100% - 2px);
  object-fit:contain;object-position:center;
  border-radius:3px;display:block;pointer-events:none;user-select:none;
}
.wall-brand-tile.has-ad-image .king-rank,
.wall-brand-tile.has-ad-image .tile-rank{
  z-index:3;
  background:rgba(3,8,13,.78);
  backdrop-filter:blur(3px);
  box-shadow:0 2px 8px rgba(0,0,0,.35);
}
.wall-brand-tile.has-ad-image .king-rank{border-color:#d7a90d}
.ad-image-preview{
  width:100%;min-height:110px;margin-top:7px;overflow:hidden;
  display:grid;place-items:center;border:1px dashed #3b4852;border-radius:9px;
  background:#050c12;color:#78858e;font-size:10px;font-weight:900;
}
.ad-image-preview.compact{min-height:90px}
.ad-image-preview img{width:100%;height:100%;min-height:110px;max-height:180px;object-fit:cover;display:block}
.ad-image-preview.compact img{min-height:90px;max-height:140px}
.ad-image-help{display:block;margin-top:6px;color:#74818a;font-size:9px;line-height:1.45}

/* Desktop ad CTA: compact horizontal marquee for every ad tile. */
.wall-ad-copy{
  position:absolute;z-index:5;left:1px;right:1px;bottom:1px;
  height:22px;display:block;overflow:hidden;
  color:#fff;text-decoration:none;
  background:linear-gradient(180deg,rgba(3,8,13,.42),rgba(3,8,13,.94));
  border-top:1px solid rgba(255,255,255,.16);
  backdrop-filter:blur(6px);
  opacity:0;transform:translateY(100%);
  transition:opacity .18s ease,transform .18s ease;
}
.wall-brand-tile:hover .wall-ad-copy,
.wall-ad-copy:focus-visible{opacity:1;transform:translateY(0)}
.wall-ad-copy:hover{background:linear-gradient(180deg,rgba(12,24,32,.58),rgba(3,8,13,.98));color:#ffd23a}
.wall-ad-copy-track{
  display:flex;width:max-content;min-width:200%;
  height:100%;align-items:center;
  animation:wallAdMarquee 10s linear infinite;
  will-change:transform;
}
.wall-ad-copy-text{
  flex:0 0 auto;display:inline-flex;align-items:center;
  white-space:nowrap;padding:0 28px 0 10px;
  font-size:clamp(9px,.76vw,12px);font-weight:800;line-height:22px;
}
.wall-ad-copy-text b{margin-left:5px;font-size:1em}
@keyframes wallAdMarquee{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}
.wall-ad-copy:hover .wall-ad-copy-track{animation-play-state:running}
@media (hover:none),(pointer:coarse){
  .wall-ad-copy{display:none}
}


.field-note{display:block;margin-top:5px;color:#7f8b94;font-size:9px;line-height:1.35}

.policy-check{display:flex;align-items:flex-start;gap:9px;margin-top:10px;color:#c9d2d8;font-size:11px;line-height:1.45}
.policy-check input{margin-top:2px;accent-color:#ffd23a}
.policy-inline-link,.site-footer button,.site-footer a{border:0;background:none;color:#ffd23a;text-decoration:underline;cursor:pointer;font:inherit;padding:0}
.policy-hint{margin:4px 0 0 25px;color:#77858f;font-size:9px;line-height:1.45}
.bm-adult-check{margin:14px 0 10px}
.brand-view-title-line{display:flex;align-items:center;gap:8px;min-width:0}
.brand-view-title-line h2{margin:0}
.adult-badge{display:inline-flex;align-items:center;justify-content:center;padding:2px 7px;border:1px solid #ff5865;border-radius:999px;color:#ff7a84;background:rgba(255,70,85,.09);font-size:9px;font-weight:950}
.report-action{border-color:#6b4650!important;color:#e7a4ad!important}
.report-modal select,.report-modal textarea{width:100%;box-sizing:border-box;background:#071018;border:1px solid #35434d;border-radius:8px;color:#e8edf0;padding:10px;font:inherit}
.policy-modal{width:min(760px,calc(100vw - 28px));max-height:min(82vh,820px);overflow:hidden}
.policy-content{max-height:60vh;overflow:auto;padding-right:8px}
.policy-content section{padding:12px 0;border-bottom:1px solid rgba(255,255,255,.07)}
.policy-content h3{margin:0 0 6px;color:#f1f4f6;font-size:14px}
.policy-content p{margin:0;color:#aeb9c0;font-size:11px;line-height:1.65}
.site-footer{display:flex;justify-content:center;gap:14px;padding:18px 12px 28px;color:#77858f;font-size:10px}

/* 2026-09-01: policy shortcut, larger ad copy, mandatory 18+ declaration */
.policy-header-button{border:1px solid #38444d!important;border-radius:7px!important;background:#081119!important;color:#d9e1e7!important;padding:9px 12px!important;font-size:12px!important;font-weight:850!important;cursor:pointer}
.policy-header-button:hover{border-color:#dca70d!important;color:#ffd23a!important}
.ad-copy-field textarea{width:100%;min-height:118px;resize:vertical;border:1px solid #2d3b46;border-radius:8px;padding:11px;background:#050c12;color:#edf2f6;outline:none;font:inherit;line-height:1.5}
.ad-copy-field textarea:focus{border-color:#dca70d;box-shadow:0 0 0 2px rgba(255,194,26,.08)}
.adult-confirm-block{margin-top:18px;padding:16px 17px;border:1px solid #35434e;border-radius:10px;background:#071018}
.adult-confirm-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.adult-confirm-head strong{font-size:15px;color:#eef3f6}
.adult-confirm-block>p{margin:6px 0 13px;color:#a7b1b8;font-size:13px}
.adult-confirm-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.adult-confirm-option{display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 12px;border:1px solid #34434e;border-radius:9px;background:#0a141c;cursor:pointer}
.adult-confirm-option:has(input:checked){border-color:#e1ad14;background:#171609;box-shadow:inset 0 0 0 1px rgba(255,194,26,.16)}
.adult-confirm-option input{width:18px;height:18px;accent-color:#ffc21a;flex:0 0 auto}
.adult-confirm-option span{font-size:14px;font-weight:800;color:#e4eaee}
.adult-confirm-block>small{display:block;margin-top:11px;color:#7f8b94;font-size:11px;line-height:1.5}
@media(max-width:760px){.adult-confirm-options{grid-template-columns:1fr}.policy-header-button{padding:8px 9px!important}.ad-copy-field textarea{min-height:105px}}


/* 2026-09-01 simplified three-screen ad bidding flow */
.join-modal-v2{width:min(760px,calc(100vw - 36px))}
.join-flow-step{display:none}
.join-flow-step.open{display:block}
.flow-step-label{color:#ffc21a;font-size:10px;font-weight:950;letter-spacing:.16em}
.flow-step-title{margin:5px 0 14px;font-size:22px}
.identity-grid{margin-top:6px}
.payment-choice{margin-top:18px;padding-top:4px;border-top:1px solid #26333c}
.payment-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.payment-choice-btn{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center;min-height:64px;padding:11px 13px;border:1px solid #34434f;border-radius:9px;background:#081119;color:#e8edf1;text-align:left;cursor:pointer}
.payment-choice-btn>span{grid-row:1/span 2;font-size:23px}
.payment-choice-btn strong{font-size:13px}
.payment-choice-btn small{margin-top:3px;color:#7f8b94;font-size:10px}
.payment-choice-btn.active{border-color:#e0ab12;background:#171608;box-shadow:inset 0 0 0 1px rgba(255,194,26,.14)}
.payment-choice-btn.active strong{color:#ffd23a}
.promo-collapsible{padding:0;overflow:hidden}
.promo-collapsible summary{padding:12px;cursor:pointer;color:#d4dce1;font-size:11px;font-weight:900;list-style:none}
.promo-collapsible summary::-webkit-details-marker{display:none}
.promo-collapsible[open] summary{border-bottom:1px solid #26333c;color:#ffd23a}
.promo-collapsible .promo-row{padding:12px 12px 0}
.promo-collapsible .promo-result{padding:0 12px 12px}
.compact-rank-preview{margin-top:12px}
.rules-consent{display:flex;align-items:flex-start;gap:9px;margin-top:14px;padding:12px;border:1px solid #35434d;border-radius:9px;background:#071018;color:#c9d2d8;font-size:11px;line-height:1.45}
.rules-consent input{width:18px;height:18px;flex:0 0 auto;margin-top:0;accent-color:#ffc21a}
.step-two.open{display:block}
.success-step.open{display:block}
.success-step{padding-top:34px;padding-bottom:18px}
.join-modal-v2 .modal-actions{margin-top:12px}
@media(max-width:760px){
  .payment-choice-grid{grid-template-columns:1fr}
  .join-modal-v2{width:min(100%,calc(100vw - 18px));padding:18px}
}

/* 2026-09-01 admin moderation */
.admin-stats{grid-template-columns:repeat(7,1fr)}
.admin-filter-tabs{display:flex;gap:6px}
.admin-filter-tabs button{border:1px solid #34424d;border-radius:999px;padding:7px 11px;background:#071018;color:#8f9ba4;font-size:10px;font-weight:850;cursor:pointer}
.admin-filter-tabs button.active{border-color:#d6a611;background:#171608;color:#ffd23a}
.admin-report-list{display:grid;gap:12px}
.admin-report-card{display:grid;grid-template-columns:150px minmax(0,1fr);gap:14px;padding:14px;border:1px solid #2b3842;border-radius:11px;background:#050c12}
.admin-report-media{width:150px;height:100px;overflow:hidden;border:1px solid #33414b;border-radius:9px;background:#071018}
.admin-report-media img{width:100%;height:100%;object-fit:contain;display:block}.admin-report-placeholder{width:100%;height:100%;display:grid;place-items:center;color:#6d7a84;font-size:11px;font-weight:900}
.admin-report-title{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.admin-report-title h3{margin:5px 0 0;font-size:18px}.admin-report-title time{color:#6f7b84;font-size:10px;white-space:nowrap}
.admin-report-status{display:inline-flex;border:1px solid #4a5964;border-radius:999px;padding:3px 7px;color:#aeb9c1;font-size:9px;font-weight:900}.admin-report-status.status-open{border-color:#805f12;color:#ffd23a}.admin-report-status.status-reviewing{border-color:#315f83;color:#7fc4fa}.admin-report-status.status-actioned{border-color:#7b3540;color:#ff9aa4}
.admin-report-meta{display:flex;gap:12px;flex-wrap:wrap;margin-top:9px;color:#88959e;font-size:10px}.admin-report-meta strong{color:#e5eaf0}
.admin-report-copy,.admin-report-detail{margin:8px 0 0;padding:9px 10px;border-radius:7px;background:#081119;color:#b9c2c8;font-size:11px;line-height:1.5}.admin-report-detail{border-left:2px solid #d5a711}
.admin-report-links{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:8px;color:#7f8b94;font-size:10px}.admin-report-links a{color:#ffd23a;text-decoration:none}
.admin-report-note{width:100%;min-height:58px;margin-top:9px;resize:vertical;border:1px solid #34424d;border-radius:8px;padding:9px;background:#071018;color:#eef3f6;font:inherit;font-size:11px}
.admin-report-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.admin-report-actions button{border:1px solid #4b5861;border-radius:7px;background:#0a141b;color:#dce3e8;padding:7px 9px;font-size:10px;font-weight:800;cursor:pointer}.admin-report-actions button:hover{border-color:#d9a711;color:#ffd23a}.admin-report-actions button.warn{border-color:#755d16;color:#f0ca55}.admin-report-actions button.danger{border-color:#6e3540;color:#ff9ca6}.admin-subline{display:block;margin-top:3px;color:#7f8b94}
@media(max-width:1100px){.admin-stats{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.admin-shell{width:min(100% - 20px,1500px);padding-top:14px}.admin-topbar{align-items:flex-start;flex-direction:column}.admin-report-card{grid-template-columns:1fr}.admin-report-media{width:100%;height:160px}.admin-stats{grid-template-columns:1fr 1fr}.admin-report-title{flex-direction:column}.admin-form-row,.admin-form-grid{grid-template-columns:1fr}.admin-form-row button,.admin-form-grid button{grid-column:auto}}


/* 2026-09-01 mobile: preserve the exact Wall geometry and allow horizontal exploration */
@media(max-width:760px){
  html,body{min-width:0;width:100%;height:auto;min-height:100%;overflow-x:hidden;overflow-y:auto}
  body{height:auto;min-height:100dvh}
  .app-shell{height:auto;min-height:100dvh;overflow:visible}
  .topbar{
    position:sticky;top:0;z-index:50;height:auto;min-height:64px;
    display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;
    padding:9px 10px;background:rgba(5,11,16,.97);backdrop-filter:blur(10px)
  }
  .brand-lockup{flex:1 1 auto;gap:7px}
  .brand-crown{font-size:27px}.brand-name{font-size:21px}.tagline{display:none}
  .event-ticker,.total-claimed{display:none}
  .top-actions{
    display:flex;flex:1 1 100%;justify-content:flex-start;gap:6px;
    overflow-x:auto;padding-bottom:2px;scrollbar-width:none
  }
  .top-actions::-webkit-scrollbar{display:none}
  .top-actions button,.top-actions button:not(.join-button){
    display:inline-flex!important;flex:0 0 auto;align-items:center;justify-content:center;
    padding:8px 9px!important;font-size:10px!important
  }
  .top-actions .join-button{margin-left:0;padding:9px 13px!important}
  #language-select{flex:0 0 auto;max-width:105px;padding:7px 6px;font-size:10px}
  .workspace{
    height:auto;display:block;padding:8px 8px 18px;overflow:visible
  }
  .wall{
    width:920px;min-width:920px;height:600px;
    margin-bottom:10px
  }
  .workspace:before{
    content:'←  THE WALL  →';
    display:block;position:sticky;left:8px;width:max-content;
    margin:0 0 6px;padding:4px 8px;border:1px solid #34424d;border-radius:999px;
    background:#071018;color:#87949d;font-size:9px;font-weight:850;letter-spacing:.08em
  }
  .workspace{
    overflow-x:auto;scrollbar-width:thin;scrollbar-color:#34424d #050b11
  }
  .leaderboard{
    width:calc(100vw - 16px);height:420px;margin-top:8px
  }
  .wall-ad-copy{display:none!important}
  .modal-backdrop{padding:8px;align-items:flex-start;overflow-y:auto}
  .join-modal,.account-modal,.wallet-modal,.brand-manager-modal,.brand-view-modal,.history-modal,.notification-modal,.policy-modal,.report-modal{
    width:100%!important;max-width:none!important;max-height:none!important;margin:8px 0;padding:18px!important;border-radius:12px
  }
}

.admin-health-summary{color:#79d69a;font-size:11px;font-weight:900}.admin-health-summary.bad{color:#ff9caa}
.admin-health-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.admin-health-item{padding:11px;border:1px solid #2e3b45;border-radius:9px;background:#050c12}.admin-health-item span,.admin-health-item strong{display:block}.admin-health-item span{color:#8c98a1;font-size:9px}.admin-health-item strong{margin-top:4px;font-size:18px}.admin-health-item.ok strong{color:#75d794}.admin-health-item.bad{border-color:#6e3540}.admin-health-item.bad strong{color:#ff9ca6}
@media(max-width:1100px){.admin-health-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:760px){.admin-health-grid{grid-template-columns:1fr 1fr}}

.admin-runtime-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:12px;padding:12px;border:1px solid #34424d;border-radius:9px;background:#050c12}
.admin-runtime-row strong,.admin-runtime-row span{display:block}.admin-runtime-row strong{font-size:12px}.admin-runtime-row span{margin-top:3px;color:#7e8a93;font-size:10px}
#admin-test-payments.runtime-on{border-color:#765f13;color:#ffd23a;background:#171608}
.wallet-packages button.payments-disabled,.wallet-packages button:disabled{opacity:.38;cursor:not-allowed;filter:saturate(.4)}
@media(max-width:760px){.admin-runtime-row{align-items:stretch;flex-direction:column}.admin-runtime-row button{width:100%}}

/* 2026-09-01 completion UX + 18+ markers */
.wall-adult-badge{
  position:absolute;z-index:8;top:7px;right:7px;min-width:28px;height:20px;
  display:grid;place-items:center;padding:0 6px;border:1px solid #ff7c8d;border-radius:999px;
  background:rgba(76,10,22,.9);color:#ffb2bd;font-size:10px;font-weight:950;line-height:1;
  box-shadow:0 2px 8px rgba(0,0,0,.35);pointer-events:none
}
.king-tile .wall-adult-badge{top:9px;right:9px}
.leader-adult-badge{
  display:inline-flex;align-items:center;justify-content:center;margin-left:6px;padding:2px 5px;
  border:1px solid #8b4050;border-radius:999px;background:#301018;color:#ff9eac;
  font-size:8px;font-weight:950;vertical-align:1px
}
.action-success-modal{width:min(430px,calc(100vw - 32px));text-align:center;padding:34px 28px 28px}
.action-success-icon{
  width:58px;height:58px;margin:0 auto 14px;display:grid;place-items:center;border-radius:50%;
  border:1px solid #c89d16;background:#171608;color:#ffd23a;font-size:30px;font-weight:950
}
.action-success-modal h2{margin:0;font-size:24px}.action-success-modal p{margin:10px 0 20px;color:#aab4bb;font-size:13px;line-height:1.55}
.action-success-modal .primary-action{min-width:120px}
.wallet-packages.runtime-disabled{display:none}

/* Keep 18+ marker visible before long leaderboard names */
.leader-name .leader-adult-badge,.full-rank-brand .leader-adult-badge{
  margin-left:0;margin-right:6px;flex:0 0 auto
}
.leader-name{display:flex;align-items:center;min-width:0}

/* PayPal Sandbox wallet checkout */
.wallet-packages button.active{border-color:#ffc21a;background:#292000;box-shadow:inset 0 0 0 1px rgba(255,194,26,.18)}
.wallet-selected-package{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding:11px 12px;border:1px solid #4f430f;border-radius:9px;background:#121104}
.wallet-selected-package span{color:#929da5;font-size:10px}.wallet-selected-package strong{color:#ffd23a;font-size:14px}
.paypal-button-container{position:relative;z-index:2;margin-top:12px;min-height:44px}
.paypal-button-container iframe{max-width:100%}
@media(max-width:760px){.wallet-selected-package{align-items:flex-start;flex-direction:column}.paypal-button-container{margin-top:10px}}


/* Header support and password recovery */
.support-header-button{
  display:inline-flex;align-items:center;justify-content:center;border:1px solid #4b5a65;border-radius:7px;
  padding:10px 12px;background:#0a141c;color:#eef2f6;font-size:11px;font-weight:850;
  text-decoration:none;white-space:nowrap
}
.support-header-button:hover{border-color:#ffc21a;color:#ffd23a}
.forgot-password-button{
  justify-self:end;border:0;padding:0;background:transparent;color:#d6ae35;font-size:11px;font-weight:800;cursor:pointer
}
.forgot-password-button:hover{text-decoration:underline;color:#ffd23a}
.password-reset-modal{width:min(520px,calc(100vw - 48px))}
.password-reset-modal .join-error{line-height:1.5}
@media(max-width:1280px){
  .top-actions .support-header-button{display:inline-flex;padding:9px 10px;font-size:10px}
}
@media(max-width:760px){
  .support-header-button{padding:8px 9px;font-size:10px}
}

.password-reset-code-panel{display:grid;gap:12px;margin-top:4px;padding-top:14px;border-top:1px solid #2b3740}
.password-reset-code-panel input{font-size:22px;font-weight:900;letter-spacing:.28em;text-align:center}
.password-reset-code-panel .verify-note{line-height:1.6}
