/* /team: the Admin+ team drawn from their Minecraft skins (team.html, team.js). */
.team-wrap { max-width: 1200px; margin: 0 auto; padding: 0 max(1.5rem, env(safe-area-inset-right, 0px)) 3.5rem max(1.5rem, env(safe-area-inset-left, 0px)); }
.team-hero { padding: 3rem 0 1.6rem; text-align: center; }
.team-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--gold-light); margin: .45rem 0 .8rem; text-shadow: 0 3px 0 rgba(0,0,0,.45); letter-spacing: .02em; }
.team-lede { max-width: 58ch; margin: 0 auto; font-size: 1.05rem; line-height: 1.65; color: rgba(245,239,224,.85); }

/* Wrapping flex so a short last row sits in the middle. */
.team-grid { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem; margin-top: 1rem; }
.team-card { --tone: 201,150,12; flex: 0 1 280px; min-width: 0; display: flex; flex-direction: column; border-radius: 18px; border: 1px solid var(--border); background: rgba(245,239,224,.04); overflow: hidden; }
.team-card--owner { --tone: 192,57,43; }
.team-card--manager { --tone: 64,145,108; }
.team-card--developer { --tone: 29,160,160; }
.team-card--admin { --tone: 127,179,230; }
.team-art { position: relative; aspect-ratio: 1 / 1; background: radial-gradient(60% 55% at 50% 62%, rgba(var(--tone), .38), transparent 72%), linear-gradient(180deg, rgba(245,239,224,.03), rgba(0,0,0,.18)); }
.team-art::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 7%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.45), transparent); }
.team-pose { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; filter: drop-shadow(0 10px 10px rgba(0,0,0,.45)); transition: opacity .18s ease; }
.team-pose--wave { opacity: 0; }
.team-card:hover .team-pose--wave, .team-card:focus-within .team-pose--wave { opacity: 1; }
.team-card:hover .team-pose:not(.team-pose--wave), .team-card:focus-within .team-pose:not(.team-pose--wave) { opacity: 0; }
.team-art.is-3d .team-pose { visibility: hidden; }
.team-art.is-3d::after { display: none; }
.team-art .wk-3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; cursor: grab; }
.team-art .wk-3d-canvas:active { cursor: grabbing; }
.team-3d { position: absolute; top: .7rem; right: .7rem; z-index: 3; min-width: 2.75rem; height: 2rem; padding: 0 .7rem; border-radius: 999px; border: 1px solid rgba(232,184,75,.55); background: rgba(14,8,4,.78); color: var(--gold-light); font: 700 .8rem var(--font-ui); cursor: pointer; }
.team-3d:hover, .team-3d:focus-visible { background: var(--gold); color: var(--ink); outline: none; }
.team-3d[aria-pressed="true"] { background: var(--gold); color: var(--ink); }
.team-blank { position: absolute; inset: 14% 30%; display: grid; place-items: center; }
.team-blank svg { width: 100%; height: 100%; fill: rgba(245,239,224,.14); }

.team-body { display: grid; gap: .55rem; padding: 1rem 1.15rem 1.2rem; border-top: 1px solid rgba(201,150,12,.18); }
.team-body h2 { font-size: 1.35rem; color: var(--gold-light); letter-spacing: .02em; overflow-wrap: anywhere; }
.team-roles { display: flex; flex-wrap: wrap; gap: .35rem; }
.team-role { display: inline-flex; align-items: center; height: 1.6rem; padding: 0 .65rem; border-radius: 999px; font: 700 .74rem var(--font-ui); letter-spacing: .06em; text-transform: uppercase; border: 1px solid; }
.team-role--owner { color: #ffb4a8; border-color: rgba(192,57,43,.7); background: rgba(139,26,26,.35); }
.team-role--manager { color: #9fe0bf; border-color: rgba(64,145,108,.7); background: rgba(45,106,79,.3); }
.team-role--developer { color: #8fe3e3; border-color: rgba(29,160,160,.7); background: rgba(29,122,122,.3); }
.team-role--admin { color: #bcd8f5; border-color: rgba(127,179,230,.65); background: rgba(70,110,160,.28); }
.team-role[style] { color: color-mix(in srgb, var(--rc) 55%, #fff); border-color: color-mix(in srgb, var(--rc) 70%, transparent); background: color-mix(in srgb, var(--rc) 22%, transparent); }
.team-quote { font-style: italic; line-height: 1.55; color: rgba(245,239,224,.85); }
.team-partner { display: flex; align-items: center; gap: .6rem; margin-top: .15rem; font: .8rem var(--font-ui); color: rgba(245,239,224,.6); }
.team-partner img { width: 48px; height: 48px; flex: none; margin: -.35rem 0; filter: drop-shadow(0 4px 4px rgba(0,0,0,.45)); }
.team-partner span { display: grid; gap: .1rem; }
.team-partner b { font-size: .95rem; color: var(--parchment); }
.team-partner a { color: var(--gold-light); }
.team-empty { margin-top: 1.5rem; text-align: center; color: rgba(245,239,224,.75); }
.team-cta { margin-top: 2.5rem; }

@media (prefers-reduced-motion: reduce) {
    .team-pose { transition: none; }
}
@media (max-width: 520px) {
    .team-wrap { padding-left: 1rem; padding-right: 1rem; }
    .team-hero { padding-top: 2rem; }
    .team-grid { gap: .7rem; }
    .team-card { flex-basis: calc(50% - .35rem); }
    .team-body { padding: .75rem .8rem .9rem; gap: .45rem; }
    .team-body h2 { font-size: 1.05rem; }
    .team-role { height: 1.4rem; padding: 0 .5rem; font-size: .66rem; }
    .team-quote { font-size: .9rem; }
    .team-partner img { width: 36px; height: 36px; }
    .team-3d { top: .45rem; right: .45rem; height: 1.8rem; min-width: 2.4rem; font-size: .74rem; }
}
