.team-welcome, #team-style { --gold: #f5cb72; --ink: #101f28; --cream: #f5f0df; --soft: #a9b6b7; font-family: ui-rounded, 'Avenir Next', system-ui, sans-serif; }
[hidden].team-welcome { display: none !important; }
body.mp-at-login { overflow: hidden; }
body.mp-at-login > header, body.mp-at-login > main { visibility: hidden; }
.team-welcome { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; background: #0a222d; color: var(--cream); overflow: auto; }
.welcome-art { position: absolute; inset: 0; background: url('../assets/team-style/welcome-v3.webp') center / cover no-repeat; }
.welcome-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(6 22 30 / .82), rgb(6 22 30 / .5) 30%, transparent 62%), linear-gradient(0deg, rgb(6 22 30 / .6), transparent 32%); }
.welcome-content { position: relative; width: 62%; max-width: 1020px; padding: clamp(32px, 8vh, 100px) clamp(28px, 5vw, 100px) 32px; margin: 0; align-self: flex-start; }
.welcome-content h1 { line-height: 0; margin: 0 0 42px; }
.welcome-logo { display: block; width: 100%; height: auto; }
.welcome-entry { padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; max-width: 420px; }
.welcome-entry [hidden] { display: none !important; }
.welcome-entry button { font-family: inherit; font-weight: 500; font-size: 14px; line-height: 1.5; letter-spacing: .015em; word-spacing: .08em; border-radius: 9px; min-height: 50px; padding: 13px 20px; }
.welcome-entry .welcome-primary { background: var(--gold); border: 1px solid var(--gold); color: #17242a; }
.welcome-entry .welcome-primary:hover { background: #ffdd95; border-color: #ffdd95; }
.welcome-primary span { margin-left: 10px; }
#mp-github { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; min-height: 64px; padding: 18px 24px; background: #ffffff0a; color: var(--cream); border: 0; font-size: 18px; }
#mp-github img { filter: brightness(0) invert(1); }
#mp-github:hover:not(:disabled) { background: #ffffff14; }
.welcome-entry .welcome-code-switch { display: block; width: max-content; margin: 18px -12px 0 auto; padding: 10px 12px; min-height: 44px; background: transparent; border: 0; box-shadow: none; color: #d6e0d9; font-size: 14px; font-weight: 400; cursor: pointer; }
.welcome-entry .welcome-code-switch:hover:not(:disabled), .welcome-entry .welcome-code-switch:active { background: transparent; border: 0; box-shadow: none; color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.welcome-entry label { display: block; color: #d6e0d9; font-size: 12px; line-height: 1.5; margin-bottom: 12px; }
.welcome-code-row { display: flex; gap: 12px; align-items: stretch; }
.welcome-code-row input { min-width: 0; width: 100%; flex: 1; font: 400 14px system-ui, sans-serif; color: #fff; padding: 14px 16px; border-radius: 9px; border: 1px solid #6c858560; background: #061b2670; letter-spacing: .04em; text-transform: uppercase; }
.welcome-code-row input:focus, .welcome-code-row input:focus-visible { outline: none; outline-offset: 0; border-color: var(--gold); box-shadow: none; }
.welcome-code-row input::placeholder { text-transform: none; letter-spacing: 0; color: #8fa7ac; font-weight: 400; }
.welcome-code-row button { white-space: nowrap; }
.welcome-entry #mp-message { font-size: 12px; line-height: 1.45; color: #ffc394; margin: 10px 0 0; min-height: 0; }
.welcome-entry #mp-message:empty { display: none; }
.team-welcome :focus-visible, #team-style :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.mp-style-buttons { display: flex; align-items: center; gap: 8px; }
.mp-team-art { width: 68px; height: 32px; object-fit: cover; border-radius: 6px; border: 1px solid #b59d6870; }
#team-style { color: var(--cream); background: #13222b; border: 1px solid #64766b; border-radius: 22px; padding: 0; width: min(1050px, calc(100vw - 32px)); max-width: 1050px; max-height: calc(100dvh - 36px); box-shadow: 0 26px 120px #0009; }
#team-style::backdrop { background: #041219a1; backdrop-filter: blur(5px); }
#team-style button, #team-style input, #team-style select { font-family: inherit; }
#team-style .style-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px 18px; background: #162a32; border: 0; }
.style-kicker { color: var(--gold); font-size: 10px; letter-spacing: .18em; font-weight: 750; margin: 0 0 5px; }
.style-header h2 { font-size: 25px; letter-spacing: -.025em; margin: 0; color: var(--cream); }
.style-close { font-size: 26px; line-height: 1; background: transparent; border: 1px solid #8baca330; border-radius: 50%; width: 36px; height: 36px; padding: 0; }
.style-tabs { display: flex; gap: 5px; padding: 0 28px 13px; background: #162a32; border-bottom: 1px solid #49605670; }
.style-tabs button { border: 0; border-radius: 7px; background: transparent; padding: 8px 19px; font-weight: 650; color: #a8bbbc; }
.style-tabs button[aria-pressed='true'] { color: var(--gold); background: #f2cf7914; box-shadow: inset 0 -2px var(--gold); }
.style-content { padding: 24px 28px; min-height: 380px; }
.character-layout { display: grid; grid-template-columns: 220px 1fr; gap: 27px; }
#team-style aside.character-card { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: center; width: auto; min-width: 0; background: linear-gradient(155deg, #294840, #142832 68%); border: 1px solid #63765a80; border-radius: 16px; padding: 25px 15px; justify-content: flex-start; }
.character-spotlight { display: grid; place-items: center; width: 170px; height: 172px; position: relative; background: radial-gradient(ellipse at 50% 55%, #d7d49a1f, transparent 70%); margin: 23px 0 11px; }
.character-spotlight::before { content: ''; position: absolute; bottom: 8px; width: 114px; height: 24px; border: 1px solid #e4c67755; border-radius: 50%; background: #cbb6760c; box-shadow: 0 6px 0 #070f1844; }
.character-spotlight canvas { width: 96px; height: 96px; z-index: 1; image-rendering: auto; filter: drop-shadow(0 10px 4px #0004); }
.character-name { margin: 7px 0; font-size: 22px; text-align: center; }
.character-help { color: #a7bcb7; font-size: 12px; line-height: 1.65; text-align: center; margin: 0 0 18px; }
.character-tag { font-size: 11px; padding: 5px 12px; color: var(--gold); border: 1px solid #f7d68540; border-radius: 20px; }
.wardrobe { min-width: 0; }
.style-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.style-section-title h3 { font-size: 16px; margin: 0; }
.style-section-title > span { font-size: 11px; color: #a6b7b7; white-space: nowrap; }
.wardrobe-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wardrobe-fields label, .team-name-row label { display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: #b1c4bf; }
#team-style select, #team-style input { background: #0c1d26; color: var(--cream); border: 1px solid #435754; border-radius: 8px; padding: 9px 10px; font-size: 12px; min-width: 0; }
.wardrobe-colors { border: 0; padding: 0; margin: 17px 0 23px; display: flex; gap: 10px; }
.wardrobe-colors legend { color: #b1c4bf; font-size: 11px; margin-bottom: 9px; }
.wardrobe-colors button { width: 24px; height: 24px; padding: 0; background: var(--swatch) !important; border: 2px solid transparent; border-radius: 50%; }
.wardrobe-colors button[aria-pressed='true'] { outline: 2px solid var(--gold); outline-offset: 3px; }
.character-filters, .banner-filters { display: flex; gap: 9px; align-items: center; margin-bottom: 11px; }
.character-filters input, .banner-filters input { flex: 1; }
.character-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; max-height: 233px; overflow: auto; padding: 3px; scrollbar-color: #5f776d #13242d; }
.character-grid button { display: flex; align-items: center; flex-direction: column; gap: 3px; padding: 7px 4px; border: 1px solid #4d625a80; border-radius: 9px; background: #1c3036; color: #c2d0c8; min-width: 0; }
.character-grid button[aria-pressed='true'] { border-color: var(--gold); background: #736b3529; color: var(--gold); }
.character-grid img { object-fit: contain; width: 42px; height: 42px; image-rendering: auto; }
.character-grid span { display: block; font-size: 10px; max-width: 100%; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.style-footer { display: flex; align-items: center; gap: 10px; padding: 17px 28px; border-top: 1px solid #4d625a80; background: #14252d; position: sticky; bottom: 0; }
.style-feedback { flex: 1; font-size: 12px; color: var(--gold); margin: 0; }
.style-footer button { padding: 10px 20px; border-radius: 9px; font-size: 13px; white-space: nowrap; }
.style-footer .style-save { color: #12202a; background: var(--gold); border-color: var(--gold); font-weight: 750; }
.style-loading { padding: 100px 20px; text-align: center; color: #afc0b7; }
.team-identity { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; }
.team-banners { min-width: 0; }
.team-preview { position: relative; border-radius: 13px; height: 200px; overflow: hidden; border: 1px solid #857756; }
.team-preview > img { width: 100%; height: 100%; object-fit: cover; }
.team-preview::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #0b1c26dd, transparent 75%); }
.team-preview > div { position: absolute; left: 18px; right: 18px; bottom: 17px; z-index: 1; }
.team-preview h3 { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; margin: 4px 0 0; text-shadow: 0 2px 9px #000; overflow-wrap: anywhere; }
.team-name-row { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin: 18px 0 12px; }
.team-name-row label { flex: 1; }
.team-name-row input { font-size: 15px !important; }
.team-name-row p { font-size: 11px; color: #a9bcb7; line-height: 1.6; margin: 0; }
.team-members { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 23px; }
.team-members span { color: #a9bcb7; font-size: 11px; background: #23393b; border-radius: 15px; padding: 5px 10px; }
.team-members i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #75817b; margin: 0 6px 1px 0; }
.team-members i.online { background: #75c78c; }
.banner-selection { font-size: 12px; color: var(--gold); }
.banner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-height: 325px; overflow: auto; padding: 3px; scrollbar-color: #5f776d #13242d; }
.banner-grid button { position: relative; overflow: hidden; border-radius: 10px; padding: 0; border: 1px solid #5a6e6380; background: #1c3036; text-align: left; min-width: 0; }
.banner-grid button[aria-pressed='true'] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.banner-grid img { display: block; width: 100%; height: 96px; object-fit: cover; image-rendering: auto; }
.banner-grid span { display: block; padding: 7px 9px; font-size: 10px; color: #c8d3c9; }
.banner-grid i { display: none; font-style: normal; position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); color: #18282d; text-align: center; line-height: 18px; }
.banner-grid [aria-pressed='true'] i { display: block; }
.banner-grid button:disabled { opacity: 1; cursor: default; }
@media (max-height: 760px) and (min-width: 761px) {
  .welcome-content { padding-top: clamp(32px, 8vh, 60px); padding-bottom: 24px; }
  .welcome-content h1 { margin-bottom: 22px; }
}
@media (max-width: 760px) {
  .welcome-art { background-position: 68% center; } .welcome-art::after { background: linear-gradient(90deg, #0a222df2, #0a222da8 60%, #0a222d44); }
  .welcome-content { width: 100%; padding: 32px 25px; max-width: 720px; } .welcome-content h1 { margin-bottom: 26px; }
  #team-style { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 15px; }
  #team-style .style-header { padding: 16px 17px; } .style-tabs { padding: 0 17px 10px; } .style-content { padding: 17px; }
  .character-layout { grid-template-columns: 1fr; gap: 18px; }
  #team-style aside.character-card { display: grid; grid-template-columns: 96px 1fr; padding: 10px; text-align: left; column-gap: 14px; }
  .character-card > .style-kicker, .character-help { display: none; } .character-spotlight { grid-row: 1 / 3; width: 96px; height: 96px; margin: 0; }
  .character-spotlight::before { width: 80px; height: 17px; bottom: -1px; } .character-name { font-size: 21px; text-align: left; margin: 0; }
  .character-tag { justify-self: start; } .wardrobe-fields { grid-template-columns: repeat(2, 1fr); }
  .character-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-height: 220px; }
  .style-footer { padding: 12px 17px; flex-wrap: wrap; } .style-feedback { flex-basis: 100%; }
  .banner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .team-preview { height: 145px; }
  .team-identity { grid-template-columns: 1fr; gap: 0; } .banner-grid img { height: 150px; }
  .team-name-row { align-items: stretch; flex-direction: column; gap: 8px; } .team-name-row p br { display: none; }
  .team-preview h3 { font-size: 24px; } .style-section-title > span { font-size: 10px; }
}
@media (prefers-reduced-motion: no-preference) { .welcome-content { animation: welcome-enter .7s ease-out both; } @keyframes welcome-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } } }

/* Startup uses the same opaque artwork as the login page. */
#startup-cover{background:#0a222d url('../assets/team-style/welcome-v3.webp') center/cover no-repeat}
.startup-content{display:flex;flex-direction:column;align-items:center;gap:24px;padding:32px;border-radius:12px;background:#0a222de8;font:700 18px/1.5 "Courier New",monospace;max-width:min(600px,90vw);text-align:center}
.startup-content>img{width:100%;height:auto}
.loading-ball{display:block;width:42px;height:42px;border:3px solid #273848;border-radius:50%;background:linear-gradient(#d44346 0 44%,#273848 44% 56%,#fff8ec 56%);position:relative;animation:ball-turn 1s linear infinite}
.loading-ball:after{content:'';position:absolute;left:13px;top:13px;width:10px;height:10px;border:2px solid #273848;border-radius:50%;background:#fff8ec}
@keyframes ball-turn{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.loading-ball{animation:none}}
