/* The two profile pages share this surface and its cards. */
:is(#profileOverlay .team-profile-view, .team-profile-view) {
  box-sizing: border-box;
  width: 100%;
  max-width: 1232px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #175675;
  border-radius: 16px;
  background: #07162c;
  color: #edf6ff;
}
:is(#profileOverlay .team-profile-view, .team-profile-view) .png-service-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 18px 0;
  padding: 15px 17px;
  border: 1px solid #31768a;
  border-radius: 12px;
  background: linear-gradient(120deg,#10394a,#092239);
  color: #e4faff;
  text-decoration: none;
  box-sizing: border-box;
}
:is(#profileOverlay .team-profile-view, .team-profile-view) .png-service-link strong {
  display: block;
  font: 700 20px 'Barlow Condensed',sans-serif;
}
:is(#profileOverlay .team-profile-view, .team-profile-view) .png-service-link small {
  display: block;
  color: #9bc6d6;
  font-size: 11px;
  margin-top: 4px;
}
:is(#profileOverlay .team-profile-view, .team-profile-view) .png-service-link>b {
  font-size: 24px;
  color: #57e4d7;
}
:is(#profileOverlay .team-profile-view, .team-profile-view) .scrim-laga-wallet {
  margin: 14px 0 12px;
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(115deg,#09314a,#0e4872);
  border: 1px solid #23809d;
  display: grid;
  align-items: center;
  justify-content: space-between;
  grid-template-columns: 1fr 32px;
  gap: 12px;
}
:is(#profileOverlay .team-profile-view, .team-profile-view) .scrim-laga-wallet small {
  color: #70eaff;
  font-weight: 800;
  letter-spacing: 1.3px;
  font: 800 10px/1.4 Inter,Arial,sans-serif;
}
:is(#profileOverlay .team-profile-view, .team-profile-view) .scrim-laga-wallet a {
  display: grid;
  place-items: center;
  background: #40dafa;
  color: #001929;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 30px;
  text-decoration: none;
  font-family: Arial,sans-serif;
}
:is(#profileOverlay .team-profile-view, .team-profile-view) .scrim-laga-wallet h3 {
  font: 800 24px 'Barlow Condensed',Impact,sans-serif;
  margin: 5px 0;
}
:is(#profileOverlay .team-profile-view, .team-profile-view) .scrim-laga-wallet p {
  font-size: 11px;
  color: #a0d4e4;
  margin: 3px 0;
}
:is(#profileOverlay .team-profile-view, .team-profile-view) .scrim-laga-wallet>a {
  width: 32px;
  height: 32px;
  font-size: 23px;
}
:is(#profileOverlay .team-profile-view, .team-profile-view) .scrim-inbox-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  cursor: pointer;
  list-style: none;
  border-bottom: 1px solid #203d51;
}
:is(#profileOverlay .team-profile-view, .team-profile-view) .scrim-inbox-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #102e42;
  color: #4fddf6;
  border: 0;
}
:is(#profileOverlay .team-profile-view, .team-profile-view) .scrim-inbox-icon svg {
  width: 19px;
  height: 19px;
}
:is(#profileOverlay .team-profile-view, .team-profile-view) .scrim-inbox-copy {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
}
:is(#profileOverlay .team-profile-view, .team-profile-view) .scrim-inbox-copy strong {
  font: 700 19px Inter,sans-serif;
  color: #edf6ff;
  font-size: 16px;
}
:is(#profileOverlay .team-profile-view, .team-profile-view) .scrim-inbox-copy small {
  font: 400 11px/1.5 Inter,sans-serif;
  color: #8ca8bc;
  font-size: 10px;
}
:is(#profileOverlay .team-profile-view, .team-profile-view) .scrim-inbox-chevron {
  font: 400 28px Inter,sans-serif;
  color: #55d8f1;
  transition: transform .15s;
  font-size: 22px;
}
:is(#profileOverlay .team-profile-view, .team-profile-view) .scrim-inbox-content {
  padding: 14px 0 0;
  border-top: 1px solid #244b70;
  border: 0;
}
:is(#profileOverlay .team-profile-view, .team-profile-view) .scrim-profile-requests.scrim-inbox {
  margin-top: 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
:is(#profileOverlay .team-profile-view, .team-profile-view) .scrim-inbox[open] .scrim-inbox-chevron {
  transform: rotate(90deg);
}
@media(max-width:640px){:is(#profileOverlay .team-profile-view,.team-profile-view){padding:16px}:is(#profileOverlay .team-profile-view,.team-profile-view) .scrim-laga-wallet{padding:12px}}

/* Team profile title and compact actions share the community directory typography. */
.gt-account-strip.team-profile-toolbar,.scrim-profile-account.team-profile-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;min-width:0}
.team-profile-toolbar .team-profile-title{margin:0;color:#edf6ff;font:700 29px/1.1 'Barlow Condensed',sans-serif;letter-spacing:.5px;text-transform:uppercase}
.team-profile-toolbar>[data-team-tutorial],.team-profile-toolbar>#scrimProfileTutorial{margin:0;white-space:nowrap;font:700 10px/1.2 Inter,Arial,sans-serif}
.team-profile-toolbar .team-profile-logout,#profileOverlay .team-profile-toolbar .team-profile-logout{position:static;display:inline-grid;place-items:center;box-sizing:border-box;width:36px;min-width:36px;height:36px;min-height:36px;margin:0;padding:8px;border:1px solid #855063;border-radius:8px;background:#291e2c;color:#ffccd7;cursor:pointer}
.team-profile-toolbar .team-profile-logout::before,.team-profile-toolbar .team-profile-logout::after{content:none}
.team-profile-toolbar .team-profile-logout svg{display:block;width:18px;height:18px;flex:none}
.team-profile-toolbar .gt-logout-status{grid-column:1/-1}.team-profile-toolbar .gt-logout-status:empty{display:none}
.team-profile-inbox-storage[hidden]{display:none!important}
@media(max-width:640px){.team-profile-toolbar .team-profile-title{font-size:26px}}
.team-profile-toolbar .team-profile-settings-trigger{display:grid;place-items:center;position:static;width:36px;height:36px;min-width:36px;padding:8px;margin:0;border:1px solid #28546e;border-radius:9px;background:#10283d;color:#80d9ec;cursor:pointer}.team-profile-settings-trigger svg{width:19px;height:19px}
.team-profile-view .team-wallet-compact,#profileOverlay .team-profile-view .team-wallet-compact{display:flex;align-items:center;gap:11px;min-height:64px;padding:11px 13px;margin:16px 0 0;border:1px solid #26485e;border-radius:12px;background:linear-gradient(110deg,#0c2031,#102d3c);box-shadow:none}.team-wallet-compact .team-wallet-icon{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:10px;background:#16394a;color:#63d4e6}.team-wallet-icon svg{width:21px;height:21px}.team-profile-view .team-wallet-compact>div{flex:1;min-width:0}.team-profile-view .team-wallet-compact small{font:600 9px/1.2 Inter,Arial,sans-serif;letter-spacing:1px;color:#91acbf}.team-profile-view .team-wallet-compact h3{margin:4px 0 0;font:700 18px/1.15 Inter,Arial,sans-serif;color:#eef7ff}.team-profile-view .team-wallet-compact>a{display:inline-flex;align-items:center;justify-content:center;flex:none;width:auto;min-width:0;height:32px;padding:0 11px;border:1px solid #32617a;border-radius:8px;background:#15374c;color:#86dfee;font:700 11px Inter,Arial,sans-serif;text-decoration:none}
.team-profile-settings-panel{box-sizing:border-box;width:min(440px,calc(100vw - 28px));max-height:calc(100dvh - 40px);padding:0;overflow:auto;border:1px solid #2e5e78;border-radius:18px;background:#091a2b;color:#e5f4ff;box-shadow:0 25px 90px #0008;font:14px/1.5 Inter,Arial,sans-serif}.team-profile-settings-panel::backdrop{background:#020a17b3;backdrop-filter:blur(4px)}.team-profile-settings-panel>header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:20px;border-bottom:1px solid #213d53}.team-profile-settings-panel header small{color:#7c9bb4;font-size:9px;letter-spacing:1.5px}.team-profile-settings-panel h2{margin:3px 0 0;font:700 26px/1.1 'Barlow Condensed',Arial,sans-serif;color:#eaf5ff}.team-profile-settings-panel [data-close-team-settings]{display:grid;place-items:center;width:34px;height:34px;flex:none;padding:0;border:1px solid #2b4e67;border-radius:9px;background:#11283d;color:#a6d7e8;font:24px/1 Arial,sans-serif;cursor:pointer}.team-settings-body{padding:0 20px 20px}.team-settings-body>section{padding:18px 0;border-bottom:1px solid #1c374d}.team-settings-body>section:last-child{padding-bottom:0;border-bottom:0}.team-settings-body h3{margin:0 0 11px;color:#8eaabd;font-size:10px;font-weight:600;letter-spacing:.7px;text-transform:uppercase}
.team-profile-settings-panel .profile-device-actions,.team-profile-settings-panel .gt-device-actions{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:9px!important;margin:0!important;padding:0!important;border:0!important;background:none!important}.team-profile-settings-panel .profile-device-actions button,.team-profile-settings-panel .gt-device-actions button{display:flex!important;align-items:center;justify-content:space-between;gap:10px;width:100%!important;min-height:46px!important;margin:0!important;padding:12px 14px!important;border:1px solid #2a4a63!important;border-radius:10px!important;background:#10283b!important;color:#bce8f4!important;font:600 12px Inter,Arial,sans-serif!important}.team-profile-settings-panel .profile-device-actions button img,.team-profile-settings-panel .gt-device-actions button img{width:22px;height:22px;object-fit:contain}.team-profile-settings-panel .gt-device-status{margin:0;font-size:11px;color:#9eb7cc}.team-profile-settings-panel .png-service-link{display:flex!important;align-items:center;justify-content:space-between;gap:12px;margin:0!important;padding:13px 14px!important;border:1px solid #2d5b73!important;border-radius:11px!important;background:#0e3040!important;color:#b9edf4;text-decoration:none}.team-profile-settings-panel .png-service-link strong{display:block;font-size:13px}.team-profile-settings-panel .png-service-link small{display:block;margin-top:3px;color:#83aabc;font-size:10px}.team-profile-settings-panel .png-service-link b{font-size:22px;color:#5bdad5}.team-profile-settings-panel .team-profile-logout{position:static!important;display:flex!important;align-items:center;justify-content:space-between;width:100%!important;height:auto!important;min-height:44px!important;padding:11px 14px!important;margin:0!important;border:1px solid #734458!important;border-radius:10px!important;background:#291f2e!important;color:#ffbdcd!important;font:600 12px Inter,Arial,sans-serif!important;cursor:pointer}.team-profile-settings-panel .team-profile-logout svg{width:18px;height:18px}.team-profile-settings-panel .gt-logout-status{font-size:11px;color:#ecb7c8}.team-profile-settings-panel .gt-logout-status:empty{display:none}
:is(#profileOverlay .team-profile-view,.team-profile-view) .team-wallet-compact{box-sizing:border-box;display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;justify-content:normal;gap:10px;min-height:58px;padding:10px 12px;margin:14px 0 0;border:1px solid #26485e;border-radius:11px;background:linear-gradient(110deg,#0c2031,#102d3c);box-shadow:none}
:is(#profileOverlay .team-profile-view,.team-profile-view) .team-wallet-compact>div{min-width:0;text-align:left}
:is(#profileOverlay .team-profile-view,.team-profile-view) .team-wallet-compact .team-wallet-icon{width:30px;height:30px;min-width:30px}
:is(#profileOverlay .team-profile-view,.team-profile-view) .team-wallet-compact h3{margin:3px 0 0;font:700 17px/1.15 Inter,Arial,sans-serif;white-space:nowrap}
:is(#profileOverlay .team-profile-view,.team-profile-view) .team-wallet-compact small{display:block;font:600 8px/1.2 Inter,Arial,sans-serif;letter-spacing:.7px;color:#91acbf;white-space:nowrap}
:is(#profileOverlay .team-profile-view,.team-profile-view) .team-wallet-compact>a{display:inline-flex;width:auto;min-width:0;height:32px;padding:0 11px;box-sizing:border-box;border:1px solid #32617a;border-radius:8px;background:#15374c;color:#86dfee;font:700 11px Inter,Arial,sans-serif;white-space:nowrap}

/* A single team dossier surrounds the original roster artwork and live controls. */
:is(#profileOverlay .team-profile-view,.team-profile-view){
 position:relative;isolation:isolate;padding:18px;
 border:1px solid #546482;border-radius:4px 20px 4px 20px;
 background:linear-gradient(135deg,#26345a44,transparent 42%),radial-gradient(ellipse at 100% 70%,#20367255,transparent 65%),linear-gradient(155deg,#101a2d,#0b1424 60%,#111e35);
 box-shadow:0 14px 40px #0003,inset 0 0 0 4px #070e1b,inset 0 0 0 5px #869bc51a;
}
:is(#profileOverlay .team-profile-view,.team-profile-view)::before{
 content:"";position:absolute;pointer-events:none;left:18px;right:38px;top:0;height:2px;
 background:linear-gradient(90deg,#74e2f7,#648cff 35%,transparent 75%);
}
:is(#profileOverlay .team-profile-view,.team-profile-view)::after{
 content:"";position:absolute;pointer-events:none;right:7px;bottom:7px;width:22px;height:22px;
 border-right:2px solid #6b89bd;border-bottom:2px solid #6b89bd;
}
:is(#profileOverlay .team-profile-view,.team-profile-view)>.profile-poster-shell{margin:0 auto 12px}
:is(#profileOverlay .team-profile-view,.team-profile-view)>.team-ownership-entry{margin:10px 0 0;padding:0 0 12px;border-bottom:1px solid #7f96be30;gap:7px}
:is(#profileOverlay .team-profile-view,.team-profile-view)>.team-ownership-entry>.ownership-launch{min-height:36px;padding:8px 6px;border:1px solid #7186af45;border-radius:3px;background:#91b3ed0a;color:#becde8;font-size:11px}
:is(#profileOverlay .team-profile-view,.team-profile-view)>.team-ownership-entry>.team-recruit-launch{background:#5086d91c;border-color:#6497d461;color:#a7dcff}
:is(#profileOverlay .team-profile-view,.team-profile-view)>.team-tournament-stats{margin:0;padding:14px 0 0;border:0;border-radius:0;background:transparent;box-shadow:none}
:is(#profileOverlay .team-profile-view,.team-profile-view) .tts-head{gap:10px}
:is(#profileOverlay .team-profile-view,.team-profile-view) .tts-head h3{color:#dbe8ff;font:700 23px/1.05 'Barlow Condensed',Impact,sans-serif;letter-spacing:.3px}
:is(#profileOverlay .team-profile-view,.team-profile-view) .tts-switch span{width:38px;height:38px;border:1px solid #7186af55;border-radius:8px;background:#0a1424}
:is(#profileOverlay .team-profile-view,.team-profile-view) .tts-switch img{width:30px;height:30px}
:is(#profileOverlay .team-profile-view,.team-profile-view) .tts-season{margin:10px 0 12px;padding-top:10px;border-color:#7f96be30}
:is(#profileOverlay .team-profile-view,.team-profile-view) .tts-season label{color:#8d9fbd;font-size:7px;letter-spacing:1px}
:is(#profileOverlay .team-profile-view,.team-profile-view) .tts-main{gap:9px}
:is(#profileOverlay .team-profile-view,.team-profile-view) .tts-main>div{
 position:relative;min-height:70px;box-sizing:border-box;padding:12px;gap:10px;border:0;border-radius:0;
 background:linear-gradient(135deg,#42547b70,#26354f55);clip-path:polygon(0 0,calc(100% - 9px) 0,100% 9px,100% 100%,9px 100%,0 calc(100% - 9px));
 box-shadow:inset 0 1px #b6d5ff66,inset 0 -1px #788fb033;
}
:is(#profileOverlay .team-profile-view,.team-profile-view) .tts-main>.tts-winrate{background:linear-gradient(135deg,#293c706e,#1d294a66);color:#b8ccff}
:is(#profileOverlay .team-profile-view,.team-profile-view) .tts-main strong{font-size:36px;line-height:1}
:is(#profileOverlay .team-profile-view,.team-profile-view) .tts-main small{color:#a4b5d0;font-size:7px;letter-spacing:.7px;margin-top:5px}
:is(#profileOverlay .team-profile-view,.team-profile-view) .tts-swords{color:#86c7ff;font-size:23px}
:is(#profileOverlay .team-profile-view,.team-profile-view) .tts-combat{margin:14px 0 0;padding:0 0 12px;text-align:center;border-bottom:1px solid #7f96be30}
:is(#profileOverlay .team-profile-view,.team-profile-view) .tts-combat>div+div{border-color:#7f96be30}
:is(#profileOverlay .team-profile-view,.team-profile-view) .tts-combat dt{color:#a0b0cb;font-size:8px;letter-spacing:1.3px}
:is(#profileOverlay .team-profile-view,.team-profile-view) .tts-combat dd{margin:5px 0 2px;font-size:30px;line-height:1;color:#e8f0ff}
:is(#profileOverlay .team-profile-view,.team-profile-view) .tts-combat>div:first-child dd{color:#83d3f4}
:is(#profileOverlay .team-profile-view,.team-profile-view) .tts-combat small{font-size:8px;color:#788ba9}
:is(#profileOverlay .team-profile-view,.team-profile-view) .tts-note{margin:10px 0 0}
:is(#profileOverlay .team-profile-view,.team-profile-view) .team-wallet-compact{min-height:54px;margin:0;padding:12px 0 0;border:0;border-radius:0;background:transparent;box-shadow:none}
:is(#profileOverlay .team-profile-view,.team-profile-view) .team-wallet-compact .team-wallet-icon{border-radius:5px;background:#546eaa26;color:#9cc6ff}
:is(#profileOverlay .team-profile-view,.team-profile-view) .team-wallet-compact>a{border-radius:4px;border-color:#7899cf55;background:#617cbb17;color:#c1d7ff}
@media(max-width:700px){
 :is(#profileOverlay .team-profile-view,.team-profile-view),#profileOverlay:has(.team-tournament-stats) .profile-card.team-profile-view{padding:13px}
 :is(#profileOverlay .team-profile-view,.team-profile-view) .tts-head h3{font-size:21px}
 :is(#profileOverlay .team-profile-view,.team-profile-view) .tts-main>div{min-height:64px;padding:11px 10px;gap:8px}
 :is(#profileOverlay .team-profile-view,.team-profile-view) .tts-main strong{font-size:31px}
 :is(#profileOverlay .team-profile-view,.team-profile-view) .tts-combat dd{font-size:27px}
}

/* The approved illustrated card is sliced at its edges; it can grow with live content. */
:is(#profileOverlay .team-profile-view,.team-profile-view){
 padding:8px 6px;background:#001027;background-clip:padding-box;
 border:12px solid transparent;border-top-width:26px;border-bottom-width:24px;border-radius:0;
 border-image:url('/images/team-card-flat-v1.webp') 90 35 130 35 / 1 stretch;
 box-shadow:none;
}
:is(#profileOverlay .team-profile-view,.team-profile-view)::before,
:is(#profileOverlay .team-profile-view,.team-profile-view)::after{content:none}
:is(#profileOverlay .team-profile-view,.team-profile-view)>.profile-poster-shell{margin-bottom:10px}
:is(#profileOverlay .team-profile-view,.team-profile-view)>.team-ownership-entry{padding-bottom:10px;border-color:#00d9ed40}
:is(#profileOverlay .team-profile-view,.team-profile-view)>.team-ownership-entry>.ownership-launch{color:#b8f5ff;border-color:#00c9dc55;background:#03273a;border-radius:0}
:is(#profileOverlay .team-profile-view,.team-profile-view)>.team-ownership-entry>.team-recruit-launch{color:#001728;background:#00cde3;border-color:#00cde3}
:is(#profileOverlay .team-profile-view,.team-profile-view)>.team-tournament-stats{
 padding:0;margin-top:10px;
 background-image:linear-gradient(#001027d9,#001027d9),url('/images/team-card-flat-v1.webp');
 background-size:100% 100%,100% 230%;background-position:center,center bottom;background-repeat:no-repeat;
}
:is(#profileOverlay .team-profile-view,.team-profile-view) .tts-head{
 box-sizing:border-box;min-height:48px;padding:7px 13px 7px 24px;gap:8px;
 background:url('/images/team-card-flat-v1.webp') center 45% / 100% 1530% no-repeat;
}
:is(#profileOverlay .team-profile-view,.team-profile-view) .tts-head h3{color:#fff9e9;font-size:26px;font-weight:900;line-height:1.05;letter-spacing:.3px;-webkit-text-stroke:.6px #001b32;paint-order:stroke fill;text-shadow:1px 1px 0 #001b32,2px 2px 0 #001b32,3px 3px 0 #005970,0 3px 4px #00172866}
:is(#profileOverlay .team-profile-view,.team-profile-view) .tts-switch span{width:64px;height:50px;border:0;background:transparent;border-radius:0;box-shadow:none}
:is(#profileOverlay .team-profile-view,.team-profile-view) .tts-switch img{width:64px;height:64px;object-fit:contain;filter:drop-shadow(0 2px 1px #00152866)}
:is(#profileOverlay .team-profile-view,.team-profile-view) .tts-season{padding-top:10px;margin:0 0 12px;border:0}
:is(#profileOverlay .team-profile-view,.team-profile-view) .tts-main>div{background:#022a3ee8;box-shadow:inset 0 2px #00d8ec,inset 0 -1px #00d8ec44}
:is(#profileOverlay .team-profile-view,.team-profile-view) .tts-main>.tts-winrate{background:#042037ed;color:#f4f0da;box-shadow:inset 0 2px #f4edd1,inset 0 -1px #f4edd144}
:is(#profileOverlay .team-profile-view,.team-profile-view) .tts-main strong{color:#edfaff}
:is(#profileOverlay .team-profile-view,.team-profile-view) .tts-main small{color:#a6cfde}
:is(#profileOverlay .team-profile-view,.team-profile-view) .tts-swords{color:#00d9ed}
:is(#profileOverlay .team-profile-view,.team-profile-view) .tts-combat{border-color:#00d9ed40}
:is(#profileOverlay .team-profile-view,.team-profile-view) .team-wallet-compact .team-wallet-icon{color:#00d5eb;background:#063047;border-radius:0}
:is(#profileOverlay .team-profile-view,.team-profile-view) .team-wallet-compact>a{color:#001528;background:#f3edd6;border:0;border-radius:2px}
@media(max-width:700px){
 :is(#profileOverlay .team-profile-view,.team-profile-view),#profileOverlay:has(.team-tournament-stats) .profile-card.team-profile-view{padding:6px 4px;border-left-width:10px;border-right-width:10px;border-top-width:23px;border-bottom-width:21px}
 :is(#profileOverlay .team-profile-view,.team-profile-view) .tts-head h3{font-size:22px}
 :is(#profileOverlay .team-profile-view,.team-profile-view) .tts-head{padding-left:24px;padding-right:10px}
}
