/* The player's Style screen (playerstyle.js, 2 Oct 2026): one of your players restyled (hair, hair colour, beard, face mark,
   goal celebration), laid out like Kit & Crest in 853 px "concept pixels" on game.js's stage (.menu.cs, scaled by fitStage).
   The header, name field and buttons are Kit & Crest's (assets/kc/ui_*.png as 9-slices, drawn by a ::before over the whole
   box); the stage is the owner's Style pack (3 Oct 2026; tools/cut_style.py -> assets/sty/, assets/sty_bg|bgm): the room,
   the stage disc, the head ring, the notched "his style" panel, the label chips, the four tile frames (9-slices at half their
   2x size, the insets from the pack's docs/layout.json in source pixels), the message cards, the tab icons and dye pots.
   Its own root (.sty) and class prefix (sty-): nothing here reaches another screen. */
.menu.cs.sty { background: #071533; }
.sty .cs-stage { width: 853px; --cap: #0b1a36; font-family: var(--font-ui); font-weight: 800; color: #f4f6ff; background: #071533; overflow: hidden; }
.sty .cs-stage > * { position: absolute; }
.sty .cs-stage button { min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; text-transform: none; letter-spacing: 0; }
.sty .sty-b { position: absolute; display: block; }
.sty .sty-b > * { position: absolute; }
.sty .sty-i, .sty .sty-b img { pointer-events: none; user-select: none; -webkit-user-drag: none; }
.sty .sty-i.bg { object-fit: cover; }
.sty .sty-b > img:first-child:not(.ic):not(.sty-head):not(.sty-cel):not(.sty-pot) { left: 0; top: 0; width: 100%; height: 100%; }
/* (the room's lower half gets a soft dark veil so the tiles' lettering reads on the painted floor) */
.sty .sty-veil { pointer-events: none; background: linear-gradient(180deg, rgba(5, 12, 30, 0) 0, rgba(5, 12, 30, 0.34) 110px, rgba(5, 12, 30, 0.62) 260px, rgba(5, 12, 30, 0.72)); }

/* the 9-slices (Kit & Crest's buttons, field and pill; the Style pack's tile frames, notched panel and message cards) */
.sty .sty-9::before { content: ""; position: absolute; inset: 0; box-sizing: border-box; border-style: solid; border-color: transparent; pointer-events: none;
  border-width: 28px 28px 31px 28px; border-image: url("assets/kc/ui_button_navy_normal.png") 56 56 62 56 fill / 28px 28px 31px 28px stretch; }
.sty .sty-9.gold::before { border-image-source: url("assets/kc/ui_button_gold_normal.png"); }
.sty .sty-9.cyan::before { border-image-source: url("assets/kc/ui_button_cyan_normal.png"); }
.sty .sty-9.navy:active::before { border-image-source: url("assets/kc/ui_button_navy_pressed.png"); }
.sty .sty-9.gold:active::before { border-image-source: url("assets/kc/ui_button_gold_pressed.png"); }
.sty .sty-9.cyan:active::before { border-image-source: url("assets/kc/ui_button_cyan_pressed.png"); }
/* a tile: the pack's frame for its state (slice = source px: top right bottom left 88 88 72 72; drawn at half: 44 44 36 36); the
   glow is inside the art, so nothing may clip it */
.sty .sty-tf::before { content: ""; position: absolute; inset: 0; box-sizing: border-box; border-style: solid; border-color: transparent; pointer-events: none;
  border-width: 44px 44px 36px 36px; border-image: url("assets/sty/tile_normal.webp") 88 88 72 72 fill / 44px 44px 36px 36px stretch; }
.sty .sty-tf.tsel::before { border-image-source: url("assets/sty/tile_selected.webp"); }
.sty .sty-tf.tlk::before { border-image-source: url("assets/sty/tile_locked.webp"); }
.sty .sty-tf.tnew::before { border-image-source: url("assets/sty/tile_just_unlocked.webp"); }
/* the notched "his style" panel (slice 150 56 56 90 -> 75 28 28 45) and the two message cards (slice 130 source px = 65) */
.sty .sty-sum, .sty .sty-card { pointer-events: none; }
.sty .sty-sum::before, .sty .sty-card::before { content: ""; position: absolute; inset: 0; box-sizing: border-box; border-style: solid; border-color: transparent; pointer-events: none; }
.sty .sty-sum::before { border-width: 75px 28px 28px 45px; border-image: url("assets/sty/summary_panel.webp") 150 56 56 90 fill / 75px 28px 28px 45px stretch; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)); }
.sty .sty-card::before { 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)); }
.sty .sty-card.star::before { border-image-source: url("assets/sty/superstar_plaque.webp"); }
.sty .sty-9.sty-field::before { border-width: 26px; border-image: url("assets/kc/ui_input_field.png") 52 fill / 26px stretch; }
.sty .sty-9.sty-pill::before { border-width: 34px 38px; border-image: url("assets/kc/ui_currency_pill.png") 68 76 fill / 34px 38px stretch; }
.sty .sty-panel, .sty .sty-field, .sty .sty-pill { pointer-events: none; }
.sty .sty-b.sty-9:active, .sty .sty-ib:active { transform: scale(0.96); }
.sty .sty-ib:active > img:first-child { content: url("assets/kc/ui_icon_button_pressed.png"); }
.sty .sty-9.gold.calm { filter: saturate(0.55) brightness(0.82); }
.sty .sty-9.dim { filter: saturate(0.5) brightness(0.82); }

/* the words */
.sty .sty-t { white-space: nowrap; line-height: 1; pointer-events: none; }
.sty .sty-title { font-family: var(--font-display); letter-spacing: 0.5px; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); }
.sty .sty-bl { left: 0; top: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; line-height: 1; white-space: nowrap; pointer-events: none; color: #f4f6ff; }
.sty .gold > .sty-bl, .sty .cyan > .sty-bl { color: #101b2a; }
.sty .sty-bl img { position: static; width: 34px; height: 34px; flex: none; }
.sty .gold > .sty-bl img, .sty .cyan > .sty-bl img { filter: brightness(0.15); }
/* the pack's labels are blank: the game letters them (Barlow Condensed 800 italic caps, as the Unlocks chips) */
.sty .sty-chipt { text-align: center; letter-spacing: 1.5px; font: italic 800 19px/1 var(--font-display); text-transform: uppercase; color: #e9f4ff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55); }
.sty .sty-h { letter-spacing: 0.5px; }
.sty .sty-sumh, .sty .sty-gh { font-family: var(--font-display); font-style: italic; text-transform: uppercase; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5); }
.sty .sty-sumh { color: #c4d6ee; letter-spacing: 1.5px; }
.sty .sty-more { color: #b3c7e2; text-align: right; font-weight: 700; }
.sty .sty-name { overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3); }
.sty .sty-sub { color: #b3c7e2; font-weight: 700; }
.sty .sty-num { font-weight: 800; }
.sty .sty-tl { left: 10px; right: 10px; text-align: center; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #f4f6ff; pointer-events: none; }
.sty .sty-pos { display: grid; place-items: center; border-radius: 10px; font: 800 24px/1 var(--font-display); font-style: normal; letter-spacing: 0.02em; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 3px 0 rgba(0, 0, 0, 0.35); pointer-events: none; }

/* the stage: his figure, the close-up, what he wears now */
/* (style.css gives every canvas rounded corners and a box-shadow: not these two) */
.sty .sty-fig, .sty .sty-close > canvas { border-radius: 0; box-shadow: none; }
.sty .sty-fig { pointer-events: none; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.4)); }
.sty .sty-chest { position: absolute; pointer-events: none; z-index: 2; }
.sty .sty-chest svg { width: 100%; height: 100%; display: block; }
.sty .sty-close { border-radius: 50%; overflow: hidden; pointer-events: none; }   /* (the pack's gold ring is drawn over it) */
.sty .sty-close > canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.sty .sty-close > .sty-chest { z-index: 2; }
.sty .sty-row { pointer-events: none; display: flex; align-items: center; gap: 8px; }
.sty .sty-row > b { width: 106px; flex: none; font: 700 16px/1 var(--font-ui); color: #9fb4d0; letter-spacing: 0.3px; }
.sty .sty-row > span { flex: 1; min-width: 0; font: 800 22px/1 var(--font-ui); color: #f4f6ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sty .sty-row.ch > span { color: #ffd75a; }
.sty .sty-row > img { width: 32px; height: 32px; flex: none; margin: -4px -2px -4px -4px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5)); }   /* (his hair colour's dye pot) */
.sty .sty-rule { height: 2px; background: linear-gradient(90deg, rgba(255, 200, 70, 0.7), rgba(255, 200, 70, 0.08)); pointer-events: none; }

/* the tabs: Kit & Crest's navy button with the pack's icon over its name; the one showing is lit (the pack's cyan-lit icon,
   a cyan glow round the frame) */
.sty .sty-tab > .sty-bl { top: 70px; height: 24px; font-family: var(--font-display); font-style: italic; text-transform: uppercase; letter-spacing: 0.6px; color: #d7e4f7; }
.sty .sty-tab > .ic { filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5)); }
.sty .sty-tab.on::before { filter: drop-shadow(0 0 3px #19d6f0) drop-shadow(0 0 8px rgba(25, 214, 240, 0.7)); }
.sty .sty-tab.on::after { content: ""; position: absolute; left: 7px; right: 7px; top: 6px; bottom: 9px; border-radius: 20px; pointer-events: none;
  background: linear-gradient(180deg, rgba(25, 214, 240, 0.32), rgba(25, 214, 240, 0.06) 70%); box-shadow: inset 0 0 0 2px rgba(130, 235, 255, 0.55); }
.sty .sty-tab.on > .sty-bl { color: #fff; text-shadow: 0 0 8px rgba(25, 214, 240, 0.8); }
.sty .sty-tab.off { filter: saturate(0.3) brightness(0.62); }

/* the option grid: a scrolling panel of tiles, each the option on his own head */
.sty .sty-scrollA { overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: none;
  /* (a row cut by the edge fades out instead of ending hard: the grid starts 12 px down, clear of the top fade) */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12px, #000 calc(100% - 30px), transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 12px, #000 calc(100% - 30px), transparent 100%); }
.sty .sty-scrollA::-webkit-scrollbar { display: none; }
.sty .sty-grid { position: relative; }
.sty .sty-grid > * { position: absolute; }
.sty .sty-head { left: 50%; transform: translateX(-50%); object-fit: contain; filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.45)); }
.sty .sty-cel { left: 50%; transform: translateX(-50%); object-fit: contain; object-position: center bottom; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.45)); }
.sty .sty-pot { left: 50%; transform: translateX(-50%); object-fit: contain; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.5)); }
.sty .sty-tf:active { transform: scale(0.96); }
.sty .sty-wait { left: 50%; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%; border: 5px solid rgba(169, 197, 220, 0.25); border-top-color: #19d6f0; animation: styspin 0.9s linear infinite; box-sizing: border-box; pointer-events: none; }
@keyframes styspin { to { transform: rotate(360deg); } }

/* the unlockables: as Kit & Crest's (a locked tile's picture dimmed, its padlock top right, its price or "Earn" on a chip,
   a new one's NEW tag; the marks are the Unlocks pack's pieces, drawn by unlocks.css .unl-*); the player's own looks are never locked for him */
.sty .sty-tf.lk > img:not(.sty-lock) { filter: grayscale(0.55) brightness(0.62); }
.sty .sty-b.lk > .sty-tl { color: #a9b8cf; }
.sty .sty-b > .sty-lock { right: 8px; top: 9px; left: auto; --pl: 38px; z-index: 2; }
.sty .sty-price { left: 8px; top: 9px; --ch: 28px; z-index: 2; }
.sty .sty-new { left: 6px; top: 7px; --tg: 26px; z-index: 2; }
/* the pack's tick spot (a ring 17 across, 28 in from the right edge and 30 down): a live tick on a gold disc a little bigger */
.sty .sty-tick { right: 16px; top: 18px; width: 24px; height: 24px; 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); }

/* a message instead of the tiles (a Superstar, a one-off face): the pack's card, the lettering over it */
.sty .sty-msg { pointer-events: none; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.sty .sty-msg b { display: block; font: italic 800 36px/1.05 var(--font-display); text-transform: uppercase; color: #ffd75a; letter-spacing: 1px; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.45); }
.sty .sty-msg p { margin: 12px 0 0; font: 700 24px/1.25 var(--font-ui); color: #c9d7ea; }
.sty .sty-card.star + .sty-msg b { color: #4a2900; text-shadow: 0 2px 0 rgba(255, 244, 170, 0.7); font-size: 38px; }
.sty .sty-card.star + .sty-msg p { color: #5a3600; }

@media (prefers-reduced-motion: reduce) { .sty .sty-b:active { transform: none; } .sty .sty-wait { animation: none; } }
