:root{font-family:Inter,Pretendard,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#152634;background:#eaf1f3}
*{box-sizing:border-box}html,body{margin:0;min-height:100%}button,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}a:focus-visible,button:focus-visible,select:focus-visible{outline:3px solid #e3ac22;outline-offset:3px}
.header{background:#0d2739;color:#f3f8fa}.header-inner,.top-nav,.main,.footer{max-width:1060px;margin:auto}.header-inner{padding:18px 26px 10px;display:flex;align-items:center;justify-content:space-between;gap:10px}.brand{font-weight:900;font-size:20px;letter-spacing:.03em}.brand span{color:#f4c75c}.header-actions,.top-nav{display:flex;gap:9px}.header-actions button,.top-nav button{border:1px solid #64809a;border-radius:9px;background:transparent;color:inherit;padding:8px 12px}.header-actions button:hover,.top-nav button:hover{background:#20506a}.top-nav{padding:0 26px 13px}.top-nav button[aria-current=page],.bottom-nav button[aria-current=page]{background:#f4c75c;color:#152634;border-color:#f4c75c;font-weight:800}
.main{padding:32px 26px 65px;min-height:65vh}.view[hidden]{display:none}.view h1{font-size:clamp(28px,4vw,38px);line-height:1.18;margin:13px 0}.view h2{font-size:18px;margin:0 0 12px}.view h3{font-size:17px;margin:0 0 7px}.view p{line-height:1.55}.eyebrow{font-size:12px;letter-spacing:.12em;font-weight:800;color:#d4e9ef}.hero{display:grid;grid-template-columns:1fr 170px;gap:15px;align-items:center;padding:34px;background:linear-gradient(125deg,#17394b,#326b72);color:white;border-radius:18px}.hero p{color:#e3f2f2;margin:4px 0 25px}.hero-art{font-size:76px;text-align:center}.primary,.secondary{display:inline-block;border-radius:11px;font-weight:800;padding:12px 17px;line-height:1.3}.primary{background:#f4c75c;color:#1c2c34;border:1px solid #f4c75c}.primary:hover{background:#ffe08e}.secondary{background:white;border:1px solid #abc0ca;color:#17384c}.secondary:hover{background:#f2f7f9}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin-top:18px}.game-card{display:flex;flex-direction:column}.game-card .secondary{align-self:flex-start;margin-top:auto}.card{border:1px solid #c9d7df;border-radius:16px;background:white;padding:22px}.card>p{color:#536c7e}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.badge{font-size:12px;font-weight:700;border-radius:100px;background:#e5f4e5;color:#285239;padding:6px 10px;white-space:nowrap}.quiet{font-size:13px;color:#577184;margin-top:18px}.tag{display:inline-block;background:#dceaf4;color:#2b4e66;border-radius:100px;padding:7px 11px;font-size:12px;font-weight:700}.lead{color:#4f6779;margin:0 0 24px}.setting{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 0;border-bottom:1px solid #e3e9eb}.setting:last-child{border-bottom:0}.setting small{display:block;color:#597184;margin-top:5px}.setting select{padding:9px;border-radius:8px;border:1px solid #adbeca;background:white;min-width:105px}.footer{padding:18px 26px;color:#567181;border-top:1px solid #d6e3e8;font-size:12px}.bottom-nav{display:none}
@media(max-width:650px){.header-inner{padding:16px 16px 14px}.brand{font-size:17px}.header-actions button{font-size:12px;padding:7px}.top-nav{display:none}.main{padding:18px 16px 84px}.hero{grid-template-columns:1fr;padding:23px}.hero-art{display:none}.cards{grid-template-columns:1fr}.footer{padding:13px 16px 85px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-around;background:#0d2739;color:#e7f0f5;padding:8px 7px max(10px,env(safe-area-inset-bottom));z-index:2}.bottom-nav button{background:transparent;color:inherit;border:1px solid transparent;border-radius:9px;min-width:68px;padding:9px 4px;font-size:12px}.card{padding:19px}}

.classic-action-row{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:auto}
.game-card .classic-action-row .secondary{margin-top:0}
.classic-event-badge{display:inline-flex;align-items:center;flex-wrap:wrap;gap:3px 6px;border:1px solid #e8a24a;border-radius:10px;background:#fff1d7;color:#70400c;padding:8px 10px;font-size:12px;font-weight:850;line-height:1.35}
.classic-event-badge small{font-size:11px;font-weight:700}
.classic-event-badge[hidden]{display:none}
.profile-field{display:flex;flex-direction:column;gap:6px;margin:12px 0;font-weight:700}
.profile-field input,.profile-field select{width:100%;padding:11px;border:1px solid #adbeca;border-radius:9px;background:#fff;font:inherit}
#hub-account-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.social-auth,.profile-setup,#hub-auth-tabs,#hub-signup-form,#hub-login-form{max-width:440px}
.social-auth{margin:14px 0 4px}
.google-auth-button{
  width:100%;
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:1px solid #adbeca;
  border-radius:11px;
  background:#fff;
  color:#17384c;
  font-weight:800;
}
.google-auth-button:hover{background:#f3f7f9}
.google-auth-button:disabled{cursor:wait;opacity:.65}
.auth-divider{
  display:flex;
  align-items:center;
  gap:10px;
  margin:14px 0;
  color:#78909d;
  font-size:12px;
}
.auth-divider::before,.auth-divider::after{content:"";height:1px;flex:1;background:#dbe5e9}
.profile-setup{
  margin-top:14px;
  padding:16px;
  border:1px solid #d5e1e6;
  border-radius:13px;
  background:#f7fbfc;
}
.profile-setup>p{color:#536c7e}
.profile-setup .quiet{margin-bottom:0}
.account-delete-open{color:#8a2925;border-color:#dbb8b5}
.account-danger-zone{
  max-width:560px;
  margin-top:16px;
  padding:16px;
  border:1px solid #e1b8b4;
  border-radius:13px;
  background:#fff8f7;
}
.account-danger-zone h3{color:#7d2925}
.account-danger-zone>p{color:#6a4a47}
.account-delete-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.account-delete-danger{
  border:1px solid #a83c35;
  border-radius:11px;
  background:#b84139;
  color:#fff;
  font-weight:850;
  padding:12px 17px;
}
.account-delete-danger:hover{background:#96342f}
.account-delete-danger:disabled{cursor:not-allowed;opacity:.45}
.linked-identities{
  max-width:560px;
  margin-top:16px;
  padding:16px;
  border:1px solid #d5e1e6;
  border-radius:13px;
  background:#f7fbfc;
}
.linked-identities-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.linked-identities-head h3{margin:0 0 5px}
.linked-identities-head p{margin:0;color:#536c7e}
.identity-badge{
  flex:0 0 auto;
  border-radius:999px;
  background:#e7eef3;
  color:#3f5968;
  padding:6px 9px;
  font-size:12px;
  font-weight:800;
}
.google-link-button{margin-top:12px}
.google-link-button:disabled{cursor:default;opacity:.68}
[hidden]{display:none!important}


/* Hub UI pass 1: denser game browsing and cleaner mobile navigation. */
.section-heading{display:flex;align-items:center;gap:10px;margin:22px 0 10px}
.section-heading h2{margin:0;font-size:20px;color:#17384c}
.game-card{min-height:0}
.game-card .card-heading{margin-bottom:2px}
.game-card>p{margin:8px 0 14px}
.game-card .secondary{padding:10px 14px}
.cards{gap:14px}
.card{padding:18px}

@media(max-width:650px){
  .header-actions{display:none}
  .main{padding-top:16px}
  .hero{padding:20px}
  .hero h1{font-size:clamp(30px,9vw,36px);margin:9px 0 10px}
  .hero p{margin-bottom:18px}
  .section-heading{margin:18px 0 9px}
  .section-heading h2{font-size:18px}
  .cards{gap:11px}
  .card{padding:16px}
  .game-card>p{margin:7px 0 12px}
  .game-card .secondary{padding:9px 13px}
}


/* Hub UI pass 2: guest account discovery. */
.account-promo{
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 20px;
  border:1px solid #c9d7df;
  border-radius:16px;
  background:#f7fbfc;
}
.account-promo h2{margin:8px 0 5px;font-size:18px;color:#17384c}
.account-promo p{margin:0;color:#536c7e;line-height:1.5}
.account-promo .primary{flex:0 0 auto}

@media(max-width:650px){
  .account-promo{align-items:flex-start;flex-direction:column;padding:16px;gap:12px}
  .account-promo h2{font-size:17px}
  .account-promo .primary{width:100%;text-align:center}
}


/* Hub hero refresh: current Campus capabilities without duplicate navigation. */
.feature-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:-6px 0 18px;
}
.feature-tags span{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:6px 10px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  background:rgba(255,255,255,.09);
  color:#f3f8fa;
  font-size:12px;
  font-weight:750;
  line-height:1.2;
}
.hero h1{max-width:650px}
.hero>div:first-child{min-width:0}

@media(max-width:650px){
  .hero p{font-size:15px}
  .feature-tags{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:-4px 0 16px}
  .feature-tags span{justify-content:center;text-align:center;padding:7px 8px}
}


/* Hub desktop polish: single-row navigation, wider canvas, tighter page rhythm. */
@media(min-width:651px){
  .header-inner,.main,.footer{max-width:1180px}
  .header-inner{
    padding:16px 28px;
    align-items:center;
  }
  .top-nav{
    margin:0;
    padding:0;
    margin-left:auto;
    max-width:none;
    display:flex;
    gap:8px;
  }
  .top-nav button{
    min-width:72px;
    padding:9px 14px;
  }

  .main{
    min-height:0;
    padding:26px 28px 42px;
  }

  .hero{
    grid-template-columns:minmax(0,1fr) 210px;
    padding:30px 34px;
    gap:28px;
  }
  .hero h1{
    font-size:clamp(34px,4vw,48px);
    max-width:720px;
    margin:10px 0 12px;
  }
  .hero p{
    max-width:760px;
    font-size:16px;
    margin:6px 0 20px;
  }
  .hero-art{
    font-size:86px;
  }
  .feature-tags{
    gap:7px;
    margin:-2px 0 18px;
  }
  .feature-tags span{
    font-size:12px;
    min-height:32px;
    padding:7px 11px;
  }

  .account-promo{
    margin-top:16px;
    padding:18px 22px;
  }

  .section-heading{
    margin:24px 0 11px;
  }

  .cards{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
    margin-top:0;
  }
  .game-card{
    min-height:170px;
  }
  .game-card .secondary,
  .game-card .classic-action-row{
    margin-top:auto;
  }
  .card{
    padding:20px;
  }

  .footer{
    padding:18px 28px 26px;
  }
}


/* Hub Messages P0-M2: private inbox and conversation surface. */
.nav-unread{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:20px;
  height:20px;
  margin-left:4px;
  padding:0 6px;
  border-radius:999px;
  background:#d84d42;
  color:white;
  font-size:11px;
  font-weight:900;
  line-height:1;
}
.nav-unread[hidden]{display:none!important}
.message-layout{
  display:grid;
  grid-template-columns:minmax(270px,340px) minmax(0,1fr);
  gap:14px;
  align-items:stretch;
}
.message-layout>.card{padding:0;overflow:hidden}
.message-inbox{display:flex;flex-direction:column;min-height:560px}
.message-panel-heading,.message-thread-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:17px 18px;
  border-bottom:1px solid #e1e9ed;
}
.message-panel-heading h2,.message-thread-header h2{margin:0}
.message-panel-heading p,.message-thread-header p{
  margin:4px 0 0;
  color:#657b89;
  font-size:12px;
}
.message-mini-button{
  border:1px solid #b8c8d1;
  border-radius:9px;
  background:#fff;
  color:#29485b;
  padding:8px 10px;
  font-weight:750;
}
.message-mini-button:hover{background:#f2f7f9}
.message-mini-button.danger{color:#8a2925;border-color:#dbb8b5}
.message-inbox-list{
  display:flex;
  flex-direction:column;
  max-height:560px;
  overflow:auto;
}
.message-inbox-item{
  appearance:none;
  width:100%;
  border:0;
  border-bottom:1px solid #edf1f3;
  background:#fff;
  color:#193346;
  padding:14px 16px;
  text-align:left;
}
.message-inbox-item:hover{background:#f5f9fa}
.message-inbox-item[aria-current="true"]{background:#eaf4f6}
.message-inbox-top,.message-inbox-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.message-inbox-top strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.message-inbox-top time{flex:0 0 auto;color:#718691;font-size:11px}
.message-inbox-bottom{margin-top:7px}
.message-preview{
  min-width:0;
  overflow:hidden;
  color:#647987;
  font-size:13px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.message-unread-count{
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:center;
  min-width:22px;
  height:22px;
  padding:0 6px;
  border-radius:999px;
  background:#24627a;
  color:#fff;
  font-size:11px;
  font-weight:850;
}
.message-empty,.message-thread-empty{
  margin:auto;
  padding:32px 20px;
  color:#657b89;
  text-align:center;
}
.message-inbox>.quiet{padding:0 16px 16px;margin-top:auto}
.message-thread-card{min-height:560px}
#hub-message-thread{display:flex;height:100%;min-height:560px;flex-direction:column}
#hub-message-thread[hidden]{display:none!important}
.message-thread-actions{display:flex;gap:7px}
.message-thread-list{
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  gap:9px;
  min-height:240px;
  max-height:520px;
  overflow:auto;
  padding:18px;
  background:#f6f9fa;
}
.hub-message-bubble{
  align-self:flex-start;
  width:fit-content;
  max-width:min(78%,560px);
  margin:0;
  padding:10px 12px;
  border:1px solid #d6e1e6;
  border-radius:13px 13px 13px 4px;
  background:#fff;
}
.hub-message-bubble[data-mine="true"]{
  align-self:flex-end;
  border-color:#e1c66c;
  border-radius:13px 13px 4px 13px;
  background:#fff5ce;
}
.hub-message-bubble p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.hub-message-meta{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
  margin-top:6px;
  color:#768995;
  font-size:10px;
}
.message-report summary{cursor:pointer;font-size:10px}
.message-report-row{display:flex;gap:5px;margin-top:6px}
.message-report-row select{
  min-width:120px;
  border:1px solid #c6d2d9;
  border-radius:7px;
  background:#fff;
  padding:6px;
  font:inherit;
}
.message-report-row .message-mini-button{padding:5px 7px;font-size:11px}
.message-composer{
  border-top:1px solid #e1e9ed;
  background:#fff;
  padding:13px 15px 15px;
}
.message-composer textarea{
  width:100%;
  min-height:76px;
  resize:vertical;
  border:1px solid #adbeca;
  border-radius:10px;
  padding:11px;
  font:inherit;
}
.message-composer textarea:focus-visible{outline:3px solid #e3ac22;outline-offset:2px}
.message-composer-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:8px;
}
.message-composer-footer small{color:#6b7f8d}
.message-composer-footer .primary{padding:9px 15px}
.visually-hidden{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

@media(max-width:720px){
  .message-layout{grid-template-columns:1fr}
  .message-inbox,.message-thread-card,#hub-message-thread{min-height:0}
  .message-inbox-list{max-height:320px}
  .message-thread-list{max-height:55vh;min-height:280px}
  .hub-message-bubble{max-width:88%}
  .message-panel-heading,.message-thread-header{padding:14px}
  .message-thread-actions{flex-wrap:wrap;justify-content:flex-end}
}

@media(max-width:650px){
  .bottom-nav button{min-width:58px;padding-left:3px;padding-right:3px}
  .nav-unread{min-width:18px;height:18px;padding:0 5px;font-size:10px}
}


/* Hub Messages P0-M3: first-contact draft opened from a trusted public player card. */
.message-draft-intro{
  margin:auto;
  max-width:520px;
  padding:18px 20px;
  border:1px dashed #b8cbd4;
  border-radius:13px;
  background:#fff;
  color:#526b7b;
  text-align:center;
  line-height:1.55;
}


/* Hub Friends P0: primary social destination; settings stays a header utility. */
.header-actions{margin-left:0;flex:0 0 auto}
.header-settings{white-space:nowrap}
.header-settings span{display:inline}

.hub-friends-shell{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.hub-friends-toolbar{
  grid-column:1 / -1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  border:1px solid #c9d7df;
  border-radius:14px;
  background:#f7fbfc;
}
.hub-friends-toolbar p{margin:0;color:#536c7e;font-size:13px}
.hub-friend-section{padding:0;overflow:hidden}
.hub-friend-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:15px 17px;
  border-bottom:1px solid #e4ecef;
}
.hub-friend-section-head h2{margin:0}
.hub-friend-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:28px;
  height:24px;
  padding:0 8px;
  border-radius:999px;
  background:#e7f0f4;
  color:#31576b;
  font-size:12px;
  font-weight:850;
}
.hub-friend-list{display:flex;flex-direction:column}
.hub-friend-row{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:13px 15px;
  border-bottom:1px solid #edf1f3;
}
.hub-friend-row:last-child{border-bottom:0}
.hub-friend-avatar{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#edf6ef;
  font-size:22px;
}
.hub-friend-names{display:flex;min-width:0;flex-direction:column;gap:3px}
.hub-friend-names strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hub-friend-names small{color:#6c7f8b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hub-friend-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
.friend-action{
  border:1px solid #bdccd4;
  border-radius:8px;
  background:#fff;
  color:#29485b;
  padding:7px 9px;
  font-size:12px;
  font-weight:750;
}
.friend-action:hover{background:#f1f6f8}
.friend-action.primary-lite{background:#edf7fa;border-color:#9fc2d0;color:#1c556d}
.friend-action.danger{border-color:#dfb9b6;color:#8a2925}
.friend-empty{margin:0;padding:22px 16px;color:#71848f;text-align:center}
.friend-request-badge{background:#d84d42}

@media(max-width:760px){
  .hub-friends-shell{grid-template-columns:1fr}
  .hub-friends-toolbar{align-items:flex-start;flex-direction:column}
  .hub-friends-toolbar .message-mini-button{align-self:flex-end}
}
@media(max-width:650px){
  .header-actions{display:flex}
  .header-settings span{display:none}
  .header-settings{min-width:40px;min-height:40px;padding:7px 10px!important}
  .hub-friend-row{grid-template-columns:auto minmax(0,1fr)}
  .hub-friend-actions{grid-column:1 / -1;justify-content:flex-end}
  .bottom-nav button{min-width:54px}
}


/* Hub Friend Profile P0: public identity + relationship actions, no private account fields. */
.hub-friend-row{grid-template-columns:minmax(0,1fr) auto}
.hub-friend-profile-trigger{
  appearance:none;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:12px;
  min-width:0;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  text-align:left;
}
.hub-friend-profile-trigger:hover .hub-friend-names strong{text-decoration:underline}
.hub-friend-profile-trigger:focus-visible{
  border-radius:10px;
  outline:3px solid #e3ac22;
  outline-offset:4px;
}

.friend-profile-modal{
  position:fixed;
  inset:0;
  z-index:90;
  display:grid;
  place-items:center;
  padding:20px;
  background:rgba(7,25,37,.58);
}
.friend-profile-card{
  position:relative;
  width:min(520px,calc(100vw - 32px));
  max-height:calc(100dvh - 40px);
  overflow:auto;
  border:1px solid #bfd0d9;
  border-radius:20px;
  background:#fff;
  box-shadow:0 24px 70px rgba(8,31,45,.28);
  padding:24px;
}
.friend-profile-close{
  position:absolute;
  top:12px;
  right:12px;
  width:38px;
  height:38px;
  border:1px solid #c7d5dc;
  border-radius:10px;
  background:#fff;
  color:#315064;
  font-size:24px;
  line-height:1;
}
.friend-profile-close:hover{background:#f2f7f9}
.friend-profile-identity{
  display:grid;
  grid-template-columns:88px minmax(0,1fr);
  align-items:center;
  gap:18px;
  padding-right:34px;
}
.friend-profile-avatar{
  width:88px;
  height:88px;
  display:grid;
  place-items:center;
  border:2px solid #b7d8c2;
  border-radius:22px;
  background:#edf7ef;
  font-size:44px;
}
.friend-profile-heading{min-width:0}
.friend-profile-name-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.friend-profile-name-row h2{
  margin:0;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:24px;
}
.friend-profile-title{margin:7px 0 0;color:#607786}
.friend-profile-public{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:20px;
}
.friend-profile-public>div{
  display:flex;
  flex-direction:column;
  gap:5px;
  padding:13px 14px;
  border:1px solid #e0e9ed;
  border-radius:12px;
  background:#f7fafb;
}
.friend-profile-public span{color:#748894;font-size:12px;font-weight:700}
.friend-profile-public strong{color:#213f51}
.friend-profile-note{
  margin:15px 0 0;
  color:#6c808d;
  font-size:12px;
  line-height:1.55;
}
.friend-profile-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:18px;
}
.friend-profile-action{
  min-height:42px;
  border:1px solid #bdccd4;
  border-radius:10px;
  background:#fff;
  color:#29485b;
  padding:9px 12px;
  font-weight:800;
}
.friend-profile-action:hover{background:#f1f6f8}
.friend-profile-action.primary-lite{background:#edf7fa;border-color:#9fc2d0;color:#1c556d}
.friend-profile-action.danger{border-color:#dfb9b6;color:#8a2925}

@media(max-width:650px){
  .hub-friend-row{grid-template-columns:1fr}
  .hub-friend-actions{grid-column:1}
  .friend-profile-modal{padding:12px}
  .friend-profile-card{
    width:min(100%,520px);
    max-height:calc(100dvh - 24px);
    padding:20px 16px 18px;
    border-radius:16px;
  }
  .friend-profile-identity{grid-template-columns:68px minmax(0,1fr);gap:13px;padding-right:32px}
  .friend-profile-avatar{width:68px;height:68px;border-radius:18px;font-size:34px}
  .friend-profile-name-row h2{font-size:21px}
  .friend-profile-public{grid-template-columns:1fr}
  .friend-profile-actions{display:grid;grid-template-columns:1fr}
  .friend-profile-action{width:100%}
}


/* HUB-PORTAL-P0: visual-only home redesign. Other panels and logic retain their owners. */
body:has(.portal-home:not([hidden])){background:radial-gradient(ellipse 75% 28% at 50% 24%,#123743 0%,transparent 95%),#071720;color:#f6fbff}
body:has(.portal-home:not([hidden])) .header{border-bottom:1px solid #23404a;background:#0a1e2b}
body:has(.portal-home:not([hidden])) .footer{border-color:#29414c;color:#9db2be}
body:has(.portal-home:not([hidden])) .footer a{color:#d6eced;text-decoration:underline}
body:has(.portal-home:not([hidden])) .main{max-width:1300px;padding:30px 30px 65px}
.portal-home{color:#f6fbff}
.portal-topline{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:3px 2px 17px;color:#8dd8d0;font-weight:800;font-size:11px;letter-spacing:.16em}
.portal-topline span:last-child{color:#a7bfc7;font-size:12px;letter-spacing:0;font-weight:500}
.portal-hero{position:relative;isolation:isolate;overflow:hidden;min-height:430px;border-radius:24px;border:1px solid #335d66;background:linear-gradient(120deg,#12334a,#2b6671);box-shadow:0 26px 60px #020d1666}
.portal-hero:before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,#0d2839 0%,#0d2839f4 25%,#0d2839b5 51%,#0d283912 83%)}
.portal-hero-art{position:absolute;inset:-4% -5% -6% 27%;z-index:0}
.portal-hero-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.portal-hero-copy{position:relative;z-index:2;max-width:700px;padding:48px 42px 56px 51px}
.portal-pill{display:inline-flex;align-items:center;gap:10px;border:1px solid #87c9c966;background:#0c2c3ab5;border-radius:100px;padding:9px 13px;color:#c8f3e9;font-size:11px;font-weight:850;letter-spacing:.07em}
.portal-live-dot{width:7px;height:7px;background:#6ee3c7;border-radius:50%;box-shadow:0 0 9px #6ee3c7}
.portal-hero h1{font-size:clamp(33px,4.1vw,54px);line-height:1.19;letter-spacing:-.055em;font-weight:900;margin:23px 0 16px}
.portal-hero h1 em{color:#ffc95e;font-style:normal}
.portal-hero-copy>p{font-size:15px;max-width:500px;color:#d7e7e9;margin:0 0 19px;line-height:1.8}
.portal-hero .feature-tags{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 25px}
.portal-hero .feature-tags span{display:inline-flex;align-items:center;padding:7px 12px;border:1px solid #95b9bf70;background:#0d324492;border-radius:8px;color:#e4f2ef;font-size:12px}
.portal-cta-row{display:flex;flex-wrap:wrap;align-items:center;gap:16px}
.portal-hero-cta{display:inline-flex;align-items:center;justify-content:space-between;gap:24px;min-height:47px;padding:12px 21px;font-size:14px;box-shadow:0 10px 25px #00101670}
.portal-secondary-link{font-size:13px;font-weight:750;color:#e1f0f1}
.portal-secondary-link:hover,.portal-info-action:hover{text-decoration:underline}
.portal-art-note{position:absolute;right:17px;bottom:13px;z-index:2;border-radius:9px;background:#07232ebf;color:#d4e8ea;padding:6px 9px;font-size:10px}
.portal-home .portal-section-heading{display:flex;justify-content:space-between;align-items:end;gap:16px;margin:38px 0 18px}
.portal-section-eyebrow{display:block;font-size:11px;font-weight:850;letter-spacing:.14em;color:#87decf;margin:0 0 10px}
.portal-home .portal-section-heading h2{font-size:26px;line-height:1.2;margin:0;font-weight:900;letter-spacing:-.03em}
.portal-home .portal-section-heading h2 span{color:#ffc95e}
.portal-home .portal-section-heading p{font-size:13px;margin:7px 0 0;color:#a7c1c9}
.portal-section-meta{font-size:12px;color:#b8cdd1;white-space:nowrap}
.portal-home .portal-games{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin:0}
.portal-home .portal-game{display:flex;flex-direction:column;min-width:0;overflow:hidden;padding:0;min-height:0;border:1px solid #2f4a54;border-radius:18px;color:#f6fbff;background:#102630;transition:transform .2s ease,border-color .2s ease;box-shadow:0 12px 24px #00000025}
.portal-game:hover{transform:translateY(-3px);border-color:#638d99}
.portal-poster{position:relative;aspect-ratio:300/180;min-height:0;overflow:hidden;background:linear-gradient(140deg,#345e79,#113d52)}
.portal-poster img{display:block;width:100%;height:100%;object-fit:cover}
.portal-poster-label{position:absolute;left:11px;top:11px;border:1px solid #e8f7ff50;border-radius:7px;padding:5px 8px;background:#081c2bba;color:#fff;font-size:10px;font-weight:800;letter-spacing:.05em}
.portal-card-body{display:flex;flex:1;flex-direction:column;padding:16px 16px 17px}
.portal-card-body h3{margin:0 0 8px;font-size:16px;line-height:1.25;letter-spacing:-.015em;font-weight:850;color:#f6fbff}
.portal-card-body>p{margin:0 0 16px;color:#a9c1c9;font-size:12px;line-height:1.6;min-height:39px}
.portal-card-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-top:auto}
.portal-status{display:inline-flex;align-items:center;gap:7px;color:#8fe1b0;font-size:11px;font-weight:700}
.portal-status:before{content:"";width:6px;height:6px;flex:none;border-radius:50%;background:#7bdaa3}
.portal-status[data-state="planned"]{color:#d7b98a}
.portal-status[data-state="planned"]:before{background:#d6b077}
.portal-home .portal-game-link{border:0;background:none;color:#ffcf68;font-size:12px;font-weight:850;padding:4px 0;white-space:nowrap;margin:0}
.portal-home .portal-game-link:hover{background:none;color:#ffe3a0;text-decoration:underline}
.portal-home .portal-game .classic-action-row{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:auto}
.portal-home .portal-game .classic-action-row>.portal-card-actions{margin:0;width:100%}
.portal-home .classic-event-badge{max-width:100%}
.portal-home .account-promo{color:#152634}
.portal-home .account-promo p{color:#4e6879}
.portal-info{display:grid;grid-template-columns:1.4fr 1fr;gap:16px;margin:39px 0 0}
.portal-info>div{background:linear-gradient(110deg,#173744,#102831);border:1px solid #2c4b55;padding:23px 25px;border-radius:17px}
.portal-info h2{font-size:17px;margin:0 0 9px;color:#f6fbff}
.portal-info p{color:#a9c2c9;font-size:12px;line-height:1.6;margin:0}
.portal-info-action{border:none;background:none;color:#ffd16e;padding:10px 0 0;font-size:12px;font-weight:850;cursor:pointer}
@media(max-width:1050px){.portal-home .portal-games{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-hero-art{inset:0 -18% 0 23%}}
@media(max-width:650px){
 body:has(.portal-home:not([hidden])) .main{padding:20px 14px 90px}
 .portal-topline{font-size:10px;letter-spacing:.08em}
 .portal-topline span:last-child{font-size:10px;text-align:right}
 .portal-hero{min-height:472px;border-radius:19px}
 .portal-hero:before{background:linear-gradient(180deg,#0c2a3df5 0%,#0c2a3de8 41%,#0c2a3d22 76%,#0c2a3d70 100%)}
 .portal-hero-art{inset:34% -32% -5% -28%;opacity:.85}
 .portal-hero-copy{padding:24px 19px 70px;max-width:none}
 .portal-pill{font-size:10px;padding:7px 10px}
 .portal-hero h1{font-size:clamp(30px,8.5vw,38px);margin:17px 0 12px}
 .portal-hero-copy>p{font-size:12px;line-height:1.6;max-width:330px;margin-bottom:14px}
 .portal-hero .feature-tags{gap:6px;margin-bottom:18px}
 .portal-hero .feature-tags span{font-size:10px;min-height:0;padding:6px 8px}
 .portal-hero-cta{font-size:12px;padding:10px 14px;min-height:41px;gap:14px}
 .portal-secondary-link{font-size:11px}
 .portal-art-note{font-size:9px;right:10px;bottom:9px}
 .portal-home .portal-section-heading{margin:30px 1px 15px}
 .portal-home .portal-section-heading h2{font-size:21px}
 .portal-home .portal-section-heading p{font-size:11px;line-height:1.45}
 .portal-section-meta{display:none}
 .portal-home .portal-games{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
 .portal-home .portal-game{border-radius:13px}
 .portal-poster-label{top:7px;left:7px;padding:4px 6px;font-size:8px}
 .portal-card-body{padding:11px 10px 13px}
 .portal-card-body h3{font-size:13px;min-height:32px;margin-bottom:6px}
 .portal-card-body>p{font-size:10px;min-height:46px;margin-bottom:10px}
 .portal-status{font-size:9px;gap:4px}
 .portal-home .portal-game-link{font-size:10px}
 .portal-info{grid-template-columns:1fr;margin-top:28px;gap:10px}
 .portal-info>div{padding:18px 16px}
}
@media(max-width:350px){.portal-home .portal-games{grid-template-columns:1fr}.portal-card-body h3{min-height:auto}.portal-card-body>p{min-height:auto}}
@media(prefers-reduced-motion:reduce){.portal-game{transition:none!important}.portal-game:hover{transform:none}}

/* Explicit age self-declaration controls, isolated from profile text inputs. */
.hub-age-confirmation{display:flex;align-items:flex-start;gap:10px;margin:14px 0 8px;line-height:1.6;cursor:pointer}
.hub-age-confirmation input[type="checkbox"]{width:20px;height:20px;min-width:20px;margin:3px 0 0;accent-color:var(--accent,#30476b)}
.hub-age-confirmation input:focus-visible{outline:3px solid #30476b;outline-offset:3px}
