/* /roblox-ui-templates (SEO wave 12, 2026-10-25), on tools.css and ui-kits.css: the gallery of every
   game screen RoCode's insert_ui adds. Ten cards show Studio screenshots from ui-kits-1023; the other
   screens are drawn in CSS from the kits' own theme colours (ui-kits.css .uk-gallery tokens) and are
   labelled "Illustration", never passed off as screenshots. */

.ut-group { max-width: 1120px; margin: 0 auto 44px; }
.ut-group:last-child { margin-bottom: 0; }
.ut-group-head { margin: 0 0 16px; }
.ut-group-head h3 { margin: 0 0 4px; font-size: 21px; font-weight: 600; letter-spacing: -.015em; color: #f6f1ff; }
.ut-group-head p { margin: 0; font-size: 15px; line-height: 1.5; color: #b7abc8; }
.ut-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ut-grid .uk-media { aspect-ratio: 4 / 3; }
.ut-grid .uk-body { padding: 18px 20px 20px; }
.ut-grid .uk-title { font-size: 17.5px; }
.ut-grid .uk-what { font-size: 14.5px; }
.ut-theme { font-size: 12.5px; color: #8f84a3; }
.uk-media .sl-tag.is-drawn { background: rgba(13, 10, 20, .88); color: #c9bde0; }
.ut-short { max-width: 860px; margin: 0 auto; padding: 22px 24px; border: 1px solid rgba(167, 139, 250, .22); border-radius: 18px; background: #15101f; }
.ut-short h2 { margin: 0 0 8px; font-size: 18px; font-weight: 600; color: #f6f1ff; }
.ut-short p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--rc-text-2, #c5b9d8); }
.ut-short p + p { margin-top: 10px; }

/* shared bits for the drawn screens */
.ut-txt {
  color: #fff; font-weight: 800; line-height: 1.1;
  text-shadow: -1.5px -1.5px 0 var(--ink), 1.5px -1.5px 0 var(--ink), -1.5px 1.5px 0 var(--ink), 1.5px 1.5px 0 var(--ink);
}
.uk-pill.is-red { background: linear-gradient(180deg, var(--red-a), var(--red-b)); }
.uk-pill.is-gray { background: linear-gradient(180deg, var(--gray-a), var(--gray-b)); }
.uk-pill.is-blue { background: linear-gradient(180deg, var(--blue-a), var(--blue-b)); }
.uk-pill.is-gold { background: linear-gradient(180deg, var(--gold-a), var(--gold-b)); }
.uk-tile.is-dim { background: var(--bar-b); opacity: .55; }
.uk-tile.is-lock { display: grid; place-items: center; background: linear-gradient(180deg, var(--gray-a), var(--gray-b)); }
.uk-tile.is-lock::after { content: ""; width: 34%; height: 30%; border: 2.5px solid var(--ink); border-radius: 3px; background: var(--ink); opacity: .55; }
.ut-in-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

/* main menu: title and stacked buttons */
.ut-menu { display: grid; gap: 9px; justify-items: center; width: min(100%, 300px); }
.ut-menu b { font-size: 26px; margin-bottom: 4px; }
.ut-menu .uk-pill { width: 70%; }
.ut-menu .uk-pill:first-of-type { width: 86%; height: 36px; line-height: 30px; font-size: 16px; }

/* ability bar: five slots with key labels, one cooling down */
.ut-slots { display: grid; grid-template-columns: repeat(5, 46px); gap: 8px; align-self: end; }
.ut-slots span {
  position: relative; height: 46px; border: 3px solid var(--ink); border-radius: calc(11px * var(--round));
  background: linear-gradient(180deg, var(--k-a), var(--k-b));
}
.ut-slots span:nth-child(2) { background: linear-gradient(180deg, var(--blue-a), var(--blue-b)); }
.ut-slots span:nth-child(3) { background: linear-gradient(180deg, var(--green-a), var(--green-b)); }
.ut-slots span:nth-child(4) { background: linear-gradient(180deg, var(--gold-a), var(--gold-b)); }
.ut-slots span:nth-child(5) { background: linear-gradient(180deg, var(--cyan-a), var(--cyan-b)); }
.ut-slots span::after { content: attr(data-key); position: absolute; right: 3px; bottom: 1px; font-size: 12px; color: #fff; font-weight: 800; text-shadow: -1px -1px 0 var(--ink), 1px 1px 0 var(--ink); }
.ut-slots span.is-cd::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: conic-gradient(rgba(0, 0, 0, .55) 0 62%, transparent 62% 100%); }

/* player bars: health, stamina and XP with a level badge */
.ut-bars { display: grid; gap: 9px; width: min(100%, 300px); align-self: end; }
.ut-bar { position: relative; height: 22px; border: 3px solid var(--ink); border-radius: calc(10px * var(--round)); background: var(--bar-b); overflow: hidden; }
.ut-bar::before { content: ""; display: block; height: 100%; width: var(--w, 70%); background: linear-gradient(180deg, var(--c-a), var(--c-b)); }
.ut-bar.is-hp { --c-a: var(--red-a); --c-b: var(--red-b); --w: 78%; }
.ut-bar.is-st { --c-a: var(--blue-a); --c-b: var(--blue-b); --w: 55%; }
.ut-bar.is-xp { --c-a: var(--gold-a); --c-b: var(--gold-b); --w: 36%; margin-left: 40px; }
.ut-lvl {
  position: absolute; left: 0; bottom: -4px; display: grid; place-items: center; width: 34px; height: 34px;
  border: 3px solid var(--ink); border-radius: 50%; background: linear-gradient(180deg, var(--purple-a), var(--purple-b)); font-size: 14px;
}
.ut-bars { position: relative; }

/* round banner */
.ut-banner { display: grid; gap: 6px; justify-items: center; align-self: start; width: min(100%, 320px); padding: 10px 14px; border: 3px solid var(--ink); border-radius: calc(14px * var(--round)); background: linear-gradient(180deg, var(--k-a), var(--k-b)); }
.ut-banner b { font-size: 19px; }
.ut-banner span { font-size: 13px; }

/* notifications: a stack of toasts on the right */
.ut-toasts { display: grid; gap: 8px; justify-items: end; width: 100%; }
.ut-toast { display: flex; align-items: center; gap: 8px; width: min(78%, 250px); height: 36px; padding: 0 10px; border: 3px solid var(--ink); border-radius: calc(11px * var(--round)); background: linear-gradient(180deg, var(--card-a), var(--card-b)); }
.ut-toast::before { content: ""; width: 16px; height: 16px; flex: none; border: 2px solid var(--ink); border-radius: 50%; background: linear-gradient(180deg, var(--green-a), var(--green-b)); }
.ut-toast.is-warn::before { background: linear-gradient(180deg, var(--gold-a), var(--gold-b)); }
.ut-toast.is-bad::before { background: linear-gradient(180deg, var(--red-a), var(--red-b)); }
.ut-toast::after { content: ""; flex: 1; height: 8px; border-radius: 4px; background: var(--ink); opacity: .2; }

/* dialogue box: portrait, name, text and choices */
.ut-dialog { display: grid; grid-template-columns: 56px 1fr; gap: 8px 10px; align-self: end; width: min(100%, 360px); padding: 10px; border: 3px solid var(--ink); border-radius: calc(14px * var(--round)); background: linear-gradient(180deg, var(--body-a), var(--body-b)); }
.ut-face { grid-row: span 2; width: 56px; height: 56px; border: 3px solid var(--ink); border-radius: calc(12px * var(--round)); background: linear-gradient(180deg, var(--k-a), var(--k-b)); }
.ut-name { align-self: end; font-size: 14px; }
.ut-lines { display: grid; gap: 5px; }
.ut-lines i { display: block; height: 7px; border-radius: 4px; background: var(--ink); opacity: .22; }
.ut-lines i:last-child { width: 60%; }
.ut-choices { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* shooter HUD: crosshair, ammo and kill feed */
.ut-shooter { position: relative; width: 100%; height: 100%; min-height: 150px; }
.ut-cross { position: absolute; left: 50%; top: 46%; width: 30px; height: 30px; transform: translate(-50%, -50%); }
.ut-cross::before, .ut-cross::after { content: ""; position: absolute; background: #fff; box-shadow: 0 0 0 2px var(--ink); border-radius: 2px; }
.ut-cross::before { left: 13px; top: 0; width: 4px; height: 30px; }
.ut-cross::after { top: 13px; left: 0; width: 30px; height: 4px; }
.ut-ammo { position: absolute; right: 0; bottom: 0; padding: 8px 12px; border: 3px solid var(--ink); border-radius: calc(12px * var(--round)); background: linear-gradient(180deg, var(--bar-a), var(--bar-b)); font-size: 22px; }
.ut-ammo small { font-size: 13px; opacity: .8; }
.ut-feed { position: absolute; right: 0; top: 0; display: grid; gap: 6px; justify-items: end; }
.ut-feed span { display: block; width: 150px; height: 22px; border: 2.5px solid var(--ink); border-radius: calc(8px * var(--round)); background: linear-gradient(180deg, var(--card-a), var(--card-b)); }
.ut-feed span:nth-child(2) { width: 120px; }

/* trade: two grids and buttons */
.ut-trade { grid-template-columns: 1fr 1fr !important; }
.ut-trade > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; border: 2.5px solid var(--ink); border-radius: calc(10px * var(--round)); background: var(--bar-b); }
.ut-trade .uk-tile { border-width: 2px; }

/* battle pass: two reward rows over a tier track */
.ut-pass { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
.ut-pass .uk-tile:nth-child(n+6) { background: linear-gradient(180deg, var(--gold-a), var(--gold-b)); }

@media (max-width: 980px) {
  .ut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ut-grid { grid-template-columns: minmax(0, 1fr); }
  .ut-slots { grid-template-columns: repeat(5, 40px); gap: 6px; }
  .ut-slots span { height: 40px; }
}

/* compact drawn screens so they fit the 4:3 card media */
.ut-grid .uk-mock { padding: 14px 14px 42px; }
.ut-grid .uk-win { width: min(100%, 300px); }
.ut-grid .uk-bar { height: 34px; font-size: 17px; }
.ut-grid .uk-in { gap: 7px; padding: 10px; }
.ut-grid .uk-row { height: 30px; }
