/* ==========================================================================
   The desktop's player Style page (dt-style.js): the phone's Style screen (playerstyle.js) in the desktop packs' style,
   like the Kit & Crest page (dt-club2.css .dc2-kc): My Club's banner, the category tabs, his figure big in the locker
   room beside the option tiles. Laid out in the content area's own pixels (1494 x 900; 1494 x 776 over the ad dock:
   html.dt-ads). Every class is dts-*. Only under html.dt-on: phones and the app never see any of it.
   The art is the owner's Style pack (3 Oct 2026; tools/cut_style.py -> assets/sty/, assets/sty_bg|bgm): the barber-shop room
   (in his colour), the stage disc, the head ring, the chips, the tab icons, the four tile frames (9-slices, the insets from the
   pack's docs/layout.json in source pixels), the dye pots and the two message cards.
   ========================================================================== */
.dts { position: absolute; inset: 0; display: grid; grid-template-columns: 600px minmax(0, 1fr); grid-template-rows: 140px 64px minmax(0, 1fr); gap: 18px; font-size: 24px; color: #edfaff; }
html.dt-ads .dts { grid-template-rows: 111px 56px minmax(0, 1fr); gap: 15px; }
.dts > div { display: contents; }
.dts .dt-panel { border-color: rgba(25, 214, 240, 0.584); position: relative; min-height: 0; min-width: 0; }
.dts h1, .dts h2, .dts h3, .dts h4 { margin: 0; font-family: var(--dt-sport); font-weight: 400; }
.dts p { margin: 0; line-height: 1.3; }
.dts button { cursor: pointer; }
.dts .dt-btn:disabled { cursor: default; }
.dts-eyebrow { font: 700 23px var(--dt-body); color: #f7c948; letter-spacing: 2px; white-space: nowrap; }
.dts-goldt { color: #f7c948; }

/* ---------- the banner ---------- */
.dts-banner { grid-column: 1 / -1; display: flex; align-items: center; padding: 20px 26px; gap: 22px; overflow: visible; z-index: 3; }
.dts .dts-back { width: 62px; height: 62px; border-radius: 16px; }
.dts .dts-back .dt-ic { width: 34px; height: 34px; }
.dts-face { width: 92px; height: 92px; flex: none; border-radius: 50%; overflow: hidden; border: 3px solid #f7c948; box-shadow: 0 0 0 3px #07172d, 0 6px 12px rgba(0, 0, 0, 0.45); background: radial-gradient(circle at 50% 35%, #2f5f8c, #0a1f3a 72%); }
.dts-face img { width: 100%; height: 100%; display: block; object-fit: cover; }
.dts-face.dts-star img { object-fit: contain; padding: 14px; box-sizing: border-box; }
.dts-id { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; }
#dt-root .dt-pg .dts-banner h1 { font-size: 52px; line-height: 1; margin: 8px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #edfaff; padding-right: 6px; }
.dts-sub { font-size: 23px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #dceefa; }
.dts-right { margin-left: auto; flex: none; display: flex; gap: 12px; align-items: center; }
.dts .dts-chip { height: 46px; padding: 0 16px; font-size: 22px; gap: 8px; box-shadow: 0 4px #07172d, inset 0 2px rgba(116, 159, 186, 0.27); }
.dts .dts-chip .dt-ic { width: 22px; height: 22px; }
.dts .dts-sq { width: 46px; padding: 0; }
.dts .dts-mid { height: 55px; font-size: 26px; padding: 0 22px; }
.dts .dts-mid .dt-ic { width: 26px; height: 26px; }
.dts .dts-coins { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 12px; background: #061225; border: 1px solid rgba(36, 178, 215, 0.4); font: 700 24px var(--dt-body); white-space: nowrap; }
.dts .dts-coins img { width: 28px; height: 28px; }
html.dt-ads .dts-banner { padding: 14px 23px; gap: 20px; }
html.dt-ads .dts .dts-back { width: 54px; height: 54px; }
html.dt-ads .dts-face { width: 76px; height: 76px; }
html.dt-ads #dt-root .dt-pg .dts-banner h1 { font-size: 44px; margin: 5px 0; }
html.dt-ads .dts-sub { font-size: 21px; }
html.dt-ads .dts .dts-chip { height: 42px; font-size: 21px; }
html.dt-ads .dts .dts-sq { width: 42px; }
html.dt-ads .dts .dts-mid { height: 50px; font-size: 24px; }

/* ---------- the category tabs, and what he wears now ---------- */
.dts-tabs { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; min-width: 0; }
.dts-tabs > .dt-btn { height: 53px; font-size: 25px; min-width: 132px; padding: 0 16px 0 10px; gap: 6px; }
.dts-tabs > .dt-btn img { width: 40px; height: 40px; flex: none; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5)); }
/* (the tab that's showing: navy lit with cyan, the pack's cyan-lit icon on it) */
.dts-tabs > .dt-btn.on { background: linear-gradient(#1f6288, #0d3856); border-color: #6ff2ff; color: #fff; box-shadow: 0 5px #07172d, 0 0 18px rgba(25, 214, 240, 0.6), inset 0 2px rgba(180, 240, 255, 0.4); }
.dts-tabs > .dt-btn.dts-off { opacity: 0.55; }
.dts-tabs > span { margin-left: auto; color: #a9c5dc; font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dts-tabs > span b { font-weight: 700; color: #edfaff; }
.dts-tabs > span b.dts-ch { color: #f7c948; }
html.dt-ads .dts-tabs > .dt-btn { height: 47px; }
html.dt-ads .dts-tabs > .dt-btn img { width: 36px; height: 36px; }

/* ---------- the preview: his figure on the stage disc in the barber shop, the close-up in the gold ring ---------- */
.dts-prev { isolation: isolate; }
.dts-room { position: absolute; inset: 0; z-index: -2; background: 50% 12% / cover no-repeat #0b2340; }
.dts-prev::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(7, 23, 45, 0), rgba(7, 23, 45, 0.08) 60%, rgba(7, 23, 45, 0.42)); }
.dts-figw { position: absolute; left: 6px; bottom: 18px; width: 340px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dts-closew { position: absolute; right: 12px; top: 46%; transform: translateY(-56%); width: 270px; display: flex; flex-direction: column; align-items: center; gap: 0; }
/* (his figure's feet on the top of the disc: the disc 330 across, its top surface centred 47% down it) */
.dts-stand { position: relative; width: 330px; height: calc(var(--fh) + 46px); flex: none; }
.dts-disc { position: absolute; left: 0; bottom: 0; width: 330px; height: auto; pointer-events: none; -webkit-user-drag: none; }
.dts-fig { position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); display: block; filter: drop-shadow(0 6px 7px rgba(0, 0, 0, 0.45)); }
.dts-fig img { width: 100%; height: 100%; display: block; -webkit-user-drag: none; }
.dts-fcrest { position: absolute; transform: translate(-50%, -50%); aspect-ratio: 1; display: block; pointer-events: none; }
.dts-fcrest svg { width: 100%; height: 100%; display: block; }
.dts-celcv { position: absolute; left: 50%; bottom: 35px; transform: translateX(-50%); display: block; filter: drop-shadow(0 6px 7px rgba(0, 0, 0, 0.45)); }
/* (style.css gives every canvas rounded corners and a box-shadow: not this one) */
.dts-celcv { border-radius: 0; box-shadow: none; }
/* the pack's blank label chip, lettered here (the desktop's own DT Sport) */
.dts-chipt { width: 150px; height: 42px; flex: none; display: grid; place-items: center; box-sizing: border-box; padding: 0 0 1px; background: url("assets/sty/his_look_chip.webp") center / 100% 100% no-repeat;
  font: 23px/1 var(--dt-sport); letter-spacing: 1.5px; text-transform: uppercase; color: #e9f4ff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55); white-space: nowrap; }
/* the head ring (300 x 300 in the pack; its hole 242 across): the portrait clipped round behind it */
.dts-ringw { position: relative; width: 270px; height: 270px; flex: none; }
.dts-close { position: absolute; left: 50%; top: 49.4%; width: 228px; height: 228px; margin: -114px 0 0 -114px; border-radius: 50%; overflow: hidden; }
.dts-close img { width: 100%; height: 100%; display: block; }
.dts-close .dts-fcrest { z-index: 1; }
.dts-ring { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45)); -webkit-user-drag: none; }
.dts-closew .dts-chipt { margin-top: -10px; position: relative; }
.dts-wait { position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); width: 150px; display: grid; place-items: center; }
.dts-wait i, .dts-load { width: 44px; height: 44px; border-radius: 50%; border: 4px solid rgba(169, 197, 220, 0.25); border-top-color: #19d6f0; animation: dtsspin 0.9s linear infinite; display: block; }
@keyframes dtsspin { to { transform: rotate(360deg); } }
html.dt-ads .dts-closew { width: 230px; }
html.dt-ads .dts-ringw { width: 230px; height: 230px; }
html.dt-ads .dts-close { width: 194px; height: 194px; margin: -97px 0 0 -97px; }
html.dt-ads .dts-stand { width: 290px; }
html.dt-ads .dts-disc { width: 290px; }
html.dt-ads .dts-figw { width: 300px; }

/* ---------- the option tiles ---------- */
.dts-ed { padding: 22px 24px; display: flex; flex-direction: column; }
html.dt-ads .dts-ed { padding: 16px 22px; }
.dts-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: none; min-height: 40px; margin-bottom: 14px; }
.dts-h h3 { font-size: 32px; white-space: nowrap; }
.dts-h span { font: 22px var(--dt-body); color: #a9c5dc; white-space: nowrap; }
.dts-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 168px; gap: 12px; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #36536d transparent; padding: 10px 8px 6px 2px; margin: -10px -8px 0 -2px; }
.dts-grid.dts-cel { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 222px; }
html.dt-ads .dts-grid { grid-auto-rows: 150px; }
html.dt-ads .dts-grid.dts-cel { grid-auto-rows: 196px; }
.dts-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 2px; padding: 20px 12px 17px; box-sizing: border-box; border: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: #edfaff; font: 19px var(--dt-sport); min-width: 0; transition: transform 0.12s, filter 0.12s; }
/* a tile's frame, the pack's for its state (slice = source px: top right bottom left 88 88 72 72; drawn at 0.8 of half size: 35 35 29 29);
   the glow is inside the art */
.dts-tile::before { content: ""; position: absolute; inset: 0; box-sizing: border-box; border-style: solid; border-color: transparent; pointer-events: none;
  border-width: 35px 35px 29px 29px; border-image: url("assets/sty/tile_normal.webp") 88 88 72 72 fill / 35px 35px 29px 29px stretch; }
.dts-tile.on::before { border-image-source: url("assets/sty/tile_selected.webp"); }
.dts-tile.dts-lk::before { border-image-source: url("assets/sty/tile_locked.webp"); }
.dts-tile.dts-nw::before { border-image-source: url("assets/sty/tile_just_unlocked.webp"); }
.dts-tile:hover { transform: translateY(-2px); filter: brightness(1.14); }
.dts-tile:active { transform: scale(0.97); }
.dts-tile > * { position: relative; }
.dts-tile > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; line-height: 1.15; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5); }
.dts-tile > img { flex: 1 1 auto; min-height: 0; width: 100%; object-fit: contain; -webkit-user-drag: none; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.45)); }
.dts-cel .dts-tile > img { object-position: center bottom; }
/* (a dye pot: its own size, not stretched) */
.dts-tile > img.dts-pot { flex: none; width: 82px; height: 82px; margin-top: 6px; align-self: center; }
/* the pack's tick spot (a ring 17 across, 28 in from the right edge and 30 down, at 0.8): a live tick on a gold disc a little bigger */
.dts-tick { position: absolute; right: 11px; top: 12px; width: 23px; height: 23px; border-radius: 50%; z-index: 3; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.2 12.6l4 4L18 8' fill='none' stroke='%23281700' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat, linear-gradient(#ffe58a, #efb437);
  box-shadow: 0 0 0 2px #0a1d46, 0 2px 4px rgba(0, 0, 0, 0.5); }
/* the unlockables (as the phone's: the picture dimmed, a padlock, the price or "Earn"; NEW for a new one; the marks are the
   Unlocks pack's pieces, drawn by unlocks.css .unl-*) */
.dts-tile.dts-lk > img { filter: grayscale(0.55) brightness(0.6); }
.dts-tile.dts-lk > span { color: #a9b8cf; }
.dts-lock { position: absolute; right: 7px; top: 9px; --pl: 32px; z-index: 2; }
.dts-price { position: absolute; left: 7px; top: 8px; --ch: 25px; z-index: 2; }
.dts-new { position: absolute; left: 6px; top: 7px; --tg: 23px; z-index: 2; }
/* a message instead of the tiles (a Superstar, a one-off face): the pack's card (a 9-slice, slice 130 source px = 65), our lettering */
.dts-msg { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; padding: 0 40px; }
.dts-card { position: relative; box-sizing: border-box; width: min(100%, 720px); padding: 62px 96px 66px; }
.dts-card::before { content: ""; position: absolute; inset: 0; box-sizing: border-box; border-style: solid; border-color: transparent; pointer-events: none; border-width: 65px;
  border-image: url("assets/sty/one_off_face_frame.webp") 130 fill / 65px stretch; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5)); }
.dts-card.star::before { border-image-source: url("assets/sty/superstar_plaque.webp"); }
.dts-card > * { position: relative; }
.dts-msg h2 { font-size: 44px; color: #f7c948; text-shadow: 0 3px #030b19; text-wrap: balance; }
.dts-msg p { font-size: 25px; color: #dceefa; max-width: 640px; margin: 10px auto 0; }
.dts-card.star h2 { color: #4a2900; text-shadow: 0 2px rgba(255, 244, 170, 0.7); }
.dts-card.star p { color: #5a3600; font-weight: 700; }
.dts-msg .dt-btn { margin-top: 4px; }
.dts-msg .dt-btn img.dts-cta { width: 36px; height: 36px; }

/* ---------- the Style button in My Club's player details (dt-club.js) ---------- */
#dt-root .dtc-pop .dts-stylebtn { position: absolute; right: 14px; top: 14px; z-index: 2; height: 46px; padding: 0 16px; font-size: 22px; gap: 8px; box-shadow: 0 4px #89600e, inset 0 2px #ffffd6; }
#dt-root .dtc-pop .dts-stylebtn img { width: 24px; height: 24px; filter: brightness(0.15); }
