/* v677 tab 06 ทีม: team per mode, poster look (mock approved 2026-11-29). Trait icons coloured like the game (same as v664 server card). */
#team-tab { --tt-gold: #f4d38a; --tt-mint: #72dfb2; --tt-red: rgb(255 51 68); --tt-text: #f0edff; --tt-soft: #b7b6cc; --tt-mute: #8a8ea8; }
#team-tab .tt-wrap { display: grid; gap: 12px; }
#team-tab .tt-modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
#team-tab .tt-md { display: grid; gap: 2px; padding: 10px 12px; border: 0; border-radius: 14px; background: linear-gradient(165deg, #1b1e36, #0e1120); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); color: var(--tt-text); text-align: left; cursor: pointer; font: inherit; }
#team-tab .tt-md-name { font: 800 15px Kanit, sans-serif; }
#team-tab .tt-md small { font-size: 11px; font-weight: 700; }
#team-tab .tt-md small.is-set { color: var(--tt-mint); }
#team-tab .tt-md small.is-off { color: var(--tt-mute); }
#team-tab .tt-md.is-on { box-shadow: inset 0 0 0 2px var(--tt-gold), 0 0 16px -4px var(--tt-gold); }
#team-tab .tt-md.is-on small { color: var(--tt-gold); }
#team-tab .tt-md:focus-visible, #team-tab .tt-u:focus-visible, #team-tab .tt-btn:focus-visible, #team-tab .tt-chip:focus-visible { outline: 2px solid var(--tt-gold); outline-offset: 2px; }

#team-tab .tt-hero { position: relative; overflow: hidden; padding: 16px; border-radius: 18px; border: 1px solid rgb(244 211 138 / .35); background: radial-gradient(560px 260px at 90% 0, rgb(198 168 255 / .3), transparent 70%), linear-gradient(160deg, #1b1533, #0d0f20); }
#team-tab .tt-eb { color: var(--tt-gold); font: 800 12px Kanit, sans-serif; letter-spacing: .12em; }
#team-tab .tt-h { margin: 2px 0; font: 900 26px Kanit, sans-serif; color: var(--tt-text); }
#team-tab .tt-h span { color: #ffd24a; }
#team-tab .tt-sub { color: var(--tt-soft); font-size: 13px; font-weight: 600; }
#team-tab .tt-team { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
#team-tab .tt-status { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: rgb(8 11 22 / .55); color: var(--tt-soft); font-size: 12.5px; font-weight: 700; }
#team-tab .tt-status.is-ok { color: var(--tt-mint); }
#team-tab .tt-status.is-bad { color: #ffb36b; }

#team-tab .tt-u { position: relative; display: grid; gap: 4px; align-content: start; padding: 6px; border: 0; border-radius: 14px; background: linear-gradient(180deg, #1a1d36, #0d0f20); color: var(--tt-text); font: inherit; text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); transition: transform .15s ease, box-shadow .15s ease; min-width: 0; }
#team-tab .tt-u:hover { transform: translateY(-2px); }
#team-tab .tt-u.is-secret { box-shadow: inset 0 0 0 2px rgb(255 51 68 / .6), 0 0 14px -4px rgb(255 51 68 / .6); }
#team-tab .tt-u.is-slot { box-shadow: inset 0 0 0 2px rgb(244 211 138 / .5); }
#team-tab .tt-u.is-pick { box-shadow: inset 0 0 0 3px var(--tt-mint), 0 0 18px -2px var(--tt-mint); transform: translateY(-2px); }
#team-tab .tt-u.is-used { opacity: .55; }
#team-tab .tt-u.is-empty .tt-art { display: grid; place-items: center; border: 1px dashed rgb(255 255 255 / .18); }
#team-tab .tt-plus { color: var(--tt-mute); font: 800 28px Kanit, sans-serif; }
#team-tab .tt-art { position: relative; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #151a30; }
#team-tab .tt-art > img { display: block; width: 100%; height: 100%; object-fit: cover; }
#team-tab .tt-lv { position: absolute; left: 4px; bottom: 4px; padding: 0 6px; border-radius: 6px; background: rgb(0 0 0 / .65); font: 800 11px Kanit, sans-serif; }
#team-tab .tt-no { position: absolute; left: 4px; top: 4px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 6px; background: var(--tt-gold); color: #241a05; font: 900 12px Kanit, sans-serif; }
#team-tab .tt-in { position: absolute; left: 4px; top: 4px; padding: 0 6px; border-radius: 6px; background: var(--tt-mint); color: #06281b; font: 800 11px Kanit, sans-serif; }
#team-tab .tt-x { position: absolute; right: 2px; top: 2px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgb(0 0 0 / .7); color: #fff; font: 800 14px/1 Kanit, sans-serif; }
#team-tab .tt-tr { position: absolute; right: 3px; bottom: 3px; width: 26px; height: 26px; isolation: isolate; -webkit-mask: var(--g) center / contain no-repeat; mask: var(--g) center / contain no-repeat; background: linear-gradient(160deg, #9fe0ff, #3f8dff); }
#team-tab .tt-tr img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
#team-tab .tt-tr.is-l { background: linear-gradient(160deg, #ffe36b, #ff7a2e); }
#team-tab .tt-tr.is-m { background: linear-gradient(var(--tt-a, 0deg), #ff3b3b, #ffd23b, #4bff6a, #3bd8ff, #6a5bff, #ff3bd8, #ff3b3b); animation: tt-rgb 2.4s linear infinite; }
@property --tt-a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes tt-rgb { to { --tt-a: 360deg; } }
#team-tab .tt-nm { font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#team-tab .tt-buff { font-size: 10.5px; font-weight: 700; color: var(--tt-soft); line-height: 1.3; }
#team-tab .tt-buff em { display: block; font-style: normal; font: 800 11.5px Kanit, sans-serif; }
#team-tab .t-m em { background: linear-gradient(90deg, #ff6a6a, #ffd23b, #4bff6a, #3bd8ff, #b06aff); -webkit-background-clip: text; background-clip: text; color: transparent; }
#team-tab .t-l em { color: #ffc94a; }
#team-tab .t-r em { color: #7fc4ff; }
#team-tab .tt-buff.is-none { color: #5d6180; }

#team-tab .tt-bar { position: sticky; bottom: 76px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 14px; border: 1px solid rgb(152 140 203 / .25); background: rgb(14 17 32 / .96); }
#team-tab .tt-bar.is-dirty { border-color: rgb(114 223 178 / .5); background: linear-gradient(0deg, rgb(114 223 178 / .1), rgb(114 223 178 / .1)), rgb(14 17 32 / .97); }
#team-tab .tt-chg { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--tt-soft); min-width: 0; }
#team-tab .tt-chg b { color: var(--tt-mint); }
#team-tab .tt-chg-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
#team-tab .tt-chg-line strong { color: var(--tt-mint); }
#team-tab .tt-chg img { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; }
#team-tab .tt-actions { display: flex; flex-wrap: wrap; gap: 6px; }
#team-tab .tt-btn { padding: 9px 16px; border-radius: 999px; border: 0; font: 800 13px "Noto Sans Thai", sans-serif; cursor: pointer; }
#team-tab .tt-btn:disabled { opacity: .5; cursor: default; }
#team-tab .tt-btn.is-go { background: var(--tt-mint); color: #06281b; }
#team-tab .tt-btn.is-ghost { background: rgb(255 255 255 / .06); color: var(--tt-text); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); }
#team-tab .tt-msg { margin: 0; padding: 8px 12px; border-radius: 10px; background: rgb(114 223 178 / .1); color: var(--tt-mint); font-size: 13px; font-weight: 700; }
#team-tab .tt-msg.is-bad { background: rgb(255 107 107 / .1); color: #ff8a8a; }

#team-tab .tt-sec { padding: 14px; border-radius: 18px; border: 1px solid rgb(152 140 203 / .2); background: linear-gradient(165deg, rgb(27 30 54 / .94), rgb(14 17 32 / .94)); }
#team-tab .tt-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
#team-tab .tt-head h3 { margin: 0; font: 800 17px Kanit, sans-serif; color: var(--tt-text); }
#team-tab .tt-head small { color: var(--tt-mute); font-size: 12px; }
#team-tab .tt-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
#team-tab .tt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
#team-tab .tt-chip { padding: 6px 12px; border: 0; border-radius: 999px; background: rgb(8 11 22 / .6); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); color: var(--tt-soft); font: 800 12px "Noto Sans Thai", sans-serif; cursor: pointer; }
#team-tab .tt-chip.is-on { box-shadow: inset 0 0 0 1px rgb(244 211 138 / .6); color: var(--tt-gold); background: rgb(244 211 138 / .1); }
#team-tab .tt-search { min-width: 0; flex: 0 1 200px; padding: 7px 12px; border-radius: 999px; border: 0; background: rgb(5 7 15 / .8); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); color: var(--tt-text); font: 600 13px "Noto Sans Thai", sans-serif; }
#team-tab .tt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
#team-tab .tt-more { display: flex; justify-content: center; margin-top: 10px; }
#team-tab .tt-empty, #team-tab .tt-log { margin: 4px 0 0; color: var(--tt-mute); font-size: 12.5px; }
#team-tab .tt-log b { color: var(--tt-text); }

@media (max-width: 760px) {
  #team-tab .tt-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #team-tab .tt-team, #team-tab .tt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #team-tab .tt-h { font-size: 21px; }
  #team-tab .tt-buff { font-size: 9.5px; }
  #team-tab .tt-search { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { #team-tab .tt-tr.is-m { animation: none; } #team-tab .tt-u { transition: none; } }

/* v678 own-team switch, "when" box, warning */
#team-tab .tt-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#team-tab .tt-opt { position: relative; display: grid; gap: 4px; padding: 14px 14px 14px 42px; border: 0; border-radius: 16px; background: linear-gradient(165deg, #1b1e36, #0e1120); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); color: var(--tt-text); text-align: left; cursor: pointer; font: inherit; }
#team-tab .tt-opt-dot { position: absolute; left: 14px; top: 16px; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .3); }
#team-tab .tt-opt-title { font: 800 16px Kanit, sans-serif; }
#team-tab .tt-opt-text { color: var(--tt-soft); font-size: 12.5px; font-weight: 600; line-height: 1.4; }
#team-tab .tt-opt.is-on { box-shadow: inset 0 0 0 2px var(--tt-gold), 0 0 18px -4px var(--tt-gold); background: linear-gradient(165deg, #2a2240, #12142a); }
#team-tab .tt-opt.is-on .tt-opt-dot { box-shadow: inset 0 0 0 5px var(--tt-gold); }
#team-tab .tt-opt:focus-visible { outline: 2px solid var(--tt-gold); outline-offset: 2px; }
#team-tab .tt-when { padding: 10px 14px; border-radius: 14px; border: 1px solid rgb(152 140 203 / .2); background: rgb(14 17 32 / .9); }
#team-tab .tt-when summary { cursor: pointer; color: var(--tt-gold); font: 800 14px Kanit, sans-serif; }
#team-tab .tt-when ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; color: var(--tt-soft); font-size: 12.5px; font-weight: 600; }
#team-tab .tt-when b { color: var(--tt-text); }
#team-tab .tt-warn { margin: 0; padding: 8px 12px; border-radius: 10px; background: rgb(255 179 107 / .1); color: #ffc58a; font-size: 12.5px; font-weight: 700; }
#team-tab .tt-hero.is-own { border-color: rgb(114 223 178 / .35); background: radial-gradient(560px 260px at 90% 0, rgb(114 223 178 / .18), transparent 70%), linear-gradient(160deg, #12212a, #0d0f20); }
#team-tab .tt-hero.is-own .tt-eb { color: var(--tt-mint); }
#team-tab .tt-u:disabled { cursor: default; transform: none; }
@media (max-width: 760px) { #team-tab .tt-switch { grid-template-columns: 1fr; } }
