/* Kit & Crest (kitcrest.js): the owner's Kit Designer and Crest Designer concepts (art to add/creators v1), laid out in
   their own pixels (853 x 1844) on game.js's stage (.menu.cs, scaled by fitStage). The buttons, panels, tiles and fields
   are the pack's pieces (assets/kc/ui_*.png, 2x their logical size) as 9-slices with the cap insets from its
   nine_slice.json: drawn by a ::before over the whole box, so what sits inside keeps the concept's offsets. */
.menu.cs.kc { background: #071533; }
.kc .cs-stage { width: 853px; font-family: var(--font-ui); font-weight: 800; color: #f4f6ff; background: #071533; overflow: hidden; }
.kc .cs-stage > * { position: absolute; }
.kc .cs-stage button, .kc .cs-stage label.kc-b { min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; text-transform: none; letter-spacing: 0; }
.kc .kc-b { position: absolute; display: block; }
.kc .kc-b > * { position: absolute; }
.kc .kc-i, .kc .kc-b img { pointer-events: none; user-select: none; -webkit-user-drag: none; }
.kc .kc-i.bg { object-fit: cover; }
.kc .kc-b > img:first-child:not(.ic) { left: 0; top: 0; width: 100%; height: 100%; }

/* the 9-slices */
.kc .kc-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; }
.kc .kc-9.gold::before { border-image-source: url("assets/kc/ui_button_gold_normal.png"); }
.kc .kc-9.cyan::before { border-image-source: url("assets/kc/ui_button_cyan_normal.png"); }
.kc .kc-9.navy:active::before { border-image-source: url("assets/kc/ui_button_navy_pressed.png"); }
.kc .kc-9.gold:active::before { border-image-source: url("assets/kc/ui_button_gold_pressed.png"); }
.kc .kc-9.cyan:active::before { border-image-source: url("assets/kc/ui_button_cyan_pressed.png"); }
.kc .kc-9.tile::before, .kc .kc-9.tsel::before { border-width: 28px; border-image: url("assets/kc/ui_tile_normal.png") 56 fill / 28px stretch; }
.kc .kc-9.tsel::before { border-image-source: url("assets/kc/ui_tile_selected.png"); }
.kc .kc-9.kc-panel::before { border-width: 34px; border-image: url("assets/kc/ui_panel_navy.png") 68 fill / 34px stretch; }
.kc .kc-9.kc-field::before { border-width: 26px; border-image: url("assets/kc/ui_input_field.png") 52 fill / 26px stretch; }
.kc .kc-panel, .kc .kc-field { pointer-events: none; }
.kc .kc-b.kc-9:active, .kc .kc-ib:active, .kc .kc-sw:active, .kc .kc-arr:active { transform: scale(0.96); }
.kc .kc-ib:active > img:first-child { content: url("assets/kc/ui_icon_button_pressed.png"); }

/* the words */
.kc .kc-t { white-space: nowrap; line-height: 1; pointer-events: none; }
.kc .kc-title { font-family: var(--font-display); letter-spacing: 0.5px; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); }
.kc .kc-bl { left: 0; top: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; line-height: 1; white-space: nowrap; pointer-events: none; color: #f4f6ff; }
.kc .kc-bl.small { align-items: flex-start; }
.kc .gold > .kc-bl, .kc .cyan > .kc-bl { color: #101b2a; }
.kc .kc-chipt { text-align: center; letter-spacing: 1px; }
.kc .kc-h { letter-spacing: 0.5px; }
.kc .kc-h2 { position: absolute; color: #b3c7e2; letter-spacing: 0.5px; }
.kc .kc-h2 small { font-size: 0.8em; font-weight: 600; color: #7f95b5; margin-left: 8px; }
.kc .kc-sum, .kc .kc-note { font-family: var(--font-ui); font-weight: 700; }
.kc .kc-note { color: #b3c7e2; }
.kc .kc-more { color: #b3c7e2; text-align: right; font-weight: 700; }
.kc .kc-plate { text-align: center; color: #2e1909; text-shadow: 0 1px 0 rgba(255, 236, 190, 0.45); overflow: hidden; text-overflow: ellipsis; }
.kc .kc-name { overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3); }
.kc input.kc-name { position: absolute; box-sizing: border-box; padding: 0 6px; border: 0; border-bottom: 3px solid #36d5ff; border-radius: 0; background: rgba(0, 10, 30, 0.35); color: #f4f6ff; font-family: var(--font-ui); font-weight: 800; outline: none; text-transform: uppercase; }
.kc .kc-tl { left: 0; width: 100%; text-align: center; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #f4f6ff; pointer-events: none; }

/* crests */
.kc .kc-crest { display: block; pointer-events: none; }
.kc .kc-crest svg { width: 100%; height: 100%; display: block; overflow: visible; }
.kc .kc-crest.big { filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.45)); }
.kc .kc-chest { position: absolute; pointer-events: none; z-index: 2; }
.kc .kc-chest svg { width: 100%; height: 100%; display: block; }
.kc .kc-tc { left: 0; top: 8px; width: 100%; display: flex; justify-content: center; pointer-events: none; }
.kc .kc-tc svg { width: 100px; height: auto; display: block; }
.kc .kc-tc.sm { top: 4px; }
.kc .kc-tc.sm svg { width: 86px; }
.kc .kc-em { object-fit: contain; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.5)); }
.kc .kc-fig { pointer-events: none; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.4)); }
.kc .kc-shirt { object-fit: contain; }

/* the swatches and the custom wheel */
.kc .kc-sw > img:first-child { border-radius: 50%; }
.kc .kc-sw .ic { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6)); }
.kc .kc-custom input[type="color"] { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; margin: 0; cursor: pointer; }
.kc .kc-cdot { left: 26px; top: 26px; width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; box-sizing: border-box; pointer-events: none; }
.kc .kc-dot { position: absolute; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.85); box-sizing: border-box; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); pointer-events: none; }
.kc .kc-swin { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.kc .kc-swin > * { pointer-events: auto; }

/* the scrolling rows and grids */
.kc .kc-scrollA { overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: none; }
.kc .kc-scrollB { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: none; }
.kc .kc-scrollA::-webkit-scrollbar, .kc .kc-scrollB::-webkit-scrollbar { display: none; }
.kc .kc-grid, .kc .kc-row { position: relative; height: 100%; }
.kc .kc-grid > *, .kc .kc-row > * { position: absolute; }
.kc .kc-segw > * { position: absolute; }

/* the header's buttons */
.kc .kc-av { border-radius: 50%; }
.kc .kc-avin { left: 9%; top: 9%; width: 82%; height: 82%; border-radius: 50%; overflow: hidden; pointer-events: none; }
.kc .kc-avin > i { position: absolute; inset: 0; filter: none; }
.kc .kc-avin > i::after { display: none; }
.kc .kc-av .ic { filter: drop-shadow(0 2px 3px #000); }
.kc .kc-pen { border-radius: 10px; }
.kc .kc-arr { display: grid; place-items: center; }
.kc .kc-arr img { position: static !important; width: 30px !important; height: 30px !important; }
.kc .kc-arr img.flip { transform: scaleX(-1); }
.kc .kc-arr:disabled { opacity: 0.25; }
.kc .kc-all { color: #b3c7e2; text-align: right; }
.kc .kc-all span { position: static !important; display: block; width: 100%; text-align: right; line-height: 40px; white-space: nowrap; font-weight: 700; }

/* the initials */
.kc .kc-init { position: absolute; box-sizing: border-box; padding: 0 12px; border: 0; background: transparent; color: #f4f6ff; font-family: var(--font-display); font-weight: 800; font-size: 40px; letter-spacing: 4px; text-transform: uppercase; outline: none; }
.kc .kc-init::placeholder { color: rgba(244, 246, 255, 0.35); }

/* Profile (game.js showProfile): the owner's Profile pack on the same pieces */
.menu.cs.pf { background: #071533; }
.pf .kc-9.pf-pill::before { border-width: 34px 38px; border-image: url("assets/kc/ui_currency_pill.png") 68 76 fill / 34px 38px stretch; }
.pf .pf-pill { pointer-events: none; }
.pf .pf-num { font-weight: 800; }
.pf .pf-k { letter-spacing: 1px; }
.pf .pf-name { overflow: hidden; text-overflow: ellipsis; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); }
.pf .pf-sub, .pf .pf-p { font-weight: 700; }
.pf .pf-h { letter-spacing: 1px; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.4); }
.pf .pf-sub2 { text-align: right; color: #afc3dd; font-weight: 700; }
.pf .pf-coachart { object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.45)); }
.pf .pf-ava { position: absolute; border-radius: 50%; background: center / contain no-repeat; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.45)); }
.pf .pf-bigcrest { filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.5)); }
.pf .pf-card > img:first-child { object-fit: cover; border-radius: 22px 22px 0 0; }
.pf .pf-card { filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.4)); }
.pf .pf-card:active { transform: scale(0.97); }
.pf .pf-card .kc-t { position: absolute; text-align: left; }
.pf .pf-cv { overflow: hidden; text-overflow: ellipsis; }
.pf .pf-cbg { object-fit: cover; border-radius: 26px; }
.pf .pf-shirt { object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45)); }
.pf .pf-wall { filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.5)); }

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

/* the boots' turnaround strips (eight directions side by side): one direction shows, front-right until it's picked */
.kc .kc-boot8 { position: absolute; display: block; background-repeat: no-repeat; background-size: 800% 100%; background-position: 14.2857% 0; pointer-events: none; }

/* the unlockables (unlocks.js): a locked tile's picture dimmed, its padlock top right, its price (or "Earn") on a chip;
   a swatch gets a small padlock; a new one a NEW tag. The marks are the Unlocks pack's pieces (.unl-lock, .unl-chip, .unl-tag:
   unlocks.css); only their place and size are set here */
.kc .kc-9.lk > img:not(.kc-lock), .kc .kc-9.lk > .kc-boot8, .kc .kc-9.lk > .kc-tc, .kc .kc-9.lk > svg { filter: grayscale(0.55) brightness(0.62); }
.kc .kc-b.lk > .kc-tl, .kc .kc-b.lk > .kc-bl { color: #a9b8cf; }
.kc .kc-sw.lk > img:first-child { filter: saturate(0.5) brightness(0.55); }
.kc .kc-b > .kc-lock { right: 8px; top: 8px; left: auto; --pl: 44px; z-index: 2; }
.kc .kc-sw > .kc-lock.sm { right: auto; left: 27px; top: 23px; --pl: 42px; }
.kc .kc-b.kc-9:not(.kc-sub) > .kc-lock { top: 10px; right: 10px; }
.kc .kc-price { left: 8px; top: 9px; --ch: 32px; z-index: 2; }
.kc .kc-new { right: 4px; top: 6px; --tg: 28px; z-index: 2; }
.kc .kc-sw > .kc-new { right: -6px; top: -8px; --tg: 24px; }

/* Found your club (3 Oct 2026, game.js foundClub: KITCREST.open opts.found): the same designer on the owner's found club pack
   (tools/cut_found.py: assets/found/*.webp, the pieces at half their 2x size, and assets/found_bg|found_bgm|found_coach: the office in
   the club's colour, its mask, the coach). The designer's own controls keep their places, lifted (.fnd-lift, a zero-height box that
   moves its children up) so the bottom band is free for the coach, his speech card and the Next button. All lettering is the game's. */
.kc .cs-stage > .fnd-lift { left: 0; top: 0; width: 853px; height: 0; overflow: visible; }
.kc .fnd-lift > * { position: absolute; }
.kc .fnd-room { object-fit: cover; object-position: 50% 0; }
.kc .fnd-sign { filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.45)); }
.kc .fnd-title { text-align: center; font-style: italic; text-transform: uppercase; letter-spacing: 1px; color: #ffe9ad; text-shadow: 0 3px 0 #3a1a05, 0 0 14px rgba(255, 190, 70, 0.35); }
.kc .fnd-hint { text-align: center; font: italic 800 24px / 1.15 var(--font-display); text-transform: uppercase; letter-spacing: 0.5px; color: #dbe8ff; text-shadow: 0 2px 3px rgba(0, 0, 0, 0.85), 0 0 8px rgba(0, 0, 0, 0.7); }
.kc .fnd-hc { filter: drop-shadow(0 5px 6px rgba(0, 0, 0, 0.55)); }
.kc .fnd-plq { filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.4)); }
/* the name: the real input (or the name on the button that opens it) in the plaque's blue field */
.kc input.kc-name.fnd-in { padding: 0 6px; border: 0; background: transparent; text-align: center; font-family: var(--font-display); font-style: italic; font-weight: 800; letter-spacing: 0.5px; color: #fff6dc; caret-color: #ffd23a; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.45); }
.kc input.kc-name.fnd-in::selection { background: #ffd23a; color: #241400; }
.kc .fnd-plqb { border-radius: 24px; }
.kc .fnd-nm { text-align: center; font-family: var(--font-display); font-style: italic; font-weight: 800; letter-spacing: 0.5px; color: #fff6dc; }
.kc .fnd-plqb .ic { filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.6)); }
.kc .fnd-plate { text-align: center; font-family: var(--font-display); font-style: italic; letter-spacing: 0.5px; color: #ffeeb8; text-transform: uppercase; text-shadow: 0 2px 0 rgba(0, 12, 44, 0.85); }
.kc .fnd-ped { pointer-events: none; }
/* the coach, his line and the gold Next button */
.kc .fnd-card { pointer-events: none; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45)); }
.kc .fnd-card > img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform: scaleX(-1); }
.kc .fnd-ct { position: absolute; display: flex; align-items: center; justify-content: center; text-align: center; font: italic 800 28px / 1.1 var(--font-display); text-transform: uppercase; letter-spacing: 0.3px; color: #fff; text-shadow: 0 2px 0 rgba(0, 20, 70, 0.75); }
.kc .fnd-coach { object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.5)); }
.kc .fnd-next > img { left: 0; top: 0; width: 100%; height: 100%; }
.kc .fnd-next .p { opacity: 0; }
.kc .fnd-next:active .p { opacity: 1; }
.kc .fnd-next:active .n { opacity: 0; }
.kc .fnd-next:active { transform: translateY(3px); }
.kc .fnd-nl { left: 34px; top: 25px; width: 335px; height: 62px; display: flex; align-items: center; justify-content: center; font: italic 800 46px / 1 var(--font-display); text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; color: #1a2860; text-shadow: 0 2px 0 rgba(255, 246, 190, 0.75); pointer-events: none; }
