/* The Roblox UI kits gallery (tools/roblox-ui-kits.html, 2026-10-23), on tools.css: the theme switcher,
   the ten screen cards with a real screenshot or a theme colour preview, and the game template cards.
   The preview colours are the kits' own (relay ui-kits-src/theme.mjs THEMES), so a preview shows the
   colours a theme really uses; it is labelled as a preview and never passed off as a screenshot. */

/* ---------- hero shot ---------- */
.uk-hero-shot { width: 100%; max-width: 1040px; margin: 40px auto 0; }
.uk-hero-shot img {
  display: block; width: 100%; height: auto; border-radius: 18px;
  border: 1px solid rgba(167, 139, 250, .24);
  box-shadow: 0 50px 100px -50px rgba(124, 58, 237, .6), 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.uk-hero-shot figcaption { justify-content: center; margin-top: 14px; }

/* ---------- theme switcher ---------- */
.uk-switch {
  position: sticky; top: 72px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 14px; max-width: 1120px; margin: 0 auto 28px; padding: 12px 14px;
  border: 1px solid rgba(167, 139, 250, .2); border-radius: 18px;
  background: rgba(21, 16, 31, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.uk-switch legend { float: left; margin: 0; padding: 0; font-size: 13.5px; font-weight: 600; color: #e6def3; }
.uk-switch .tl-options { justify-content: center; }
.uk-dot {
  width: 14px; height: 14px; flex: none; border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .35);
}
.uk-dot.is-candy { background: linear-gradient(135deg, #ff7385, #ffb01c 55%, #2c86f0); }
.uk-dot.is-neon { background: linear-gradient(135deg, #5ce1ff, #6a2cff 55%, #ff5c93); }
.uk-dot.is-gold { background: linear-gradient(135deg, #fff0a0, #f2b400 55%, #9a6a00); }
.uk-dot.is-blocky { border-radius: 3px; background: linear-gradient(135deg, #4fa8ff, #f5cd30 55%, #c4281c); }
.uk-dot.is-pastel { background: linear-gradient(135deg, #ffd1ec, #c6e6ff 55%, #c8f7c5); }
.uk-theme-note { width: 100%; margin: 0; text-align: center; font-size: 13.5px; line-height: 1.45; color: #b7abc8; }

/* ---------- the screen cards ---------- */
.uk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 1120px; margin: 0 auto; padding: 0; list-style: none; }
.uk-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border: 1px solid rgba(233, 226, 250, .1); border-radius: 20px; background: #15101f;
  scroll-margin-top: 150px;
}
.uk-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(80% 80% at 50% 40%, #241a36, #0d0a14); }
.uk-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.uk-media .sl-tag { position: absolute; left: 12px; bottom: 12px; z-index: 2; background: rgba(13, 10, 20, .88); color: #e9e2fa; }
.uk-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 22px 22px; }
.uk-title { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -.012em; color: #f6f1ff; }
.uk-what { margin: 0; font-size: 15px; line-height: 1.55; color: var(--rc-text-2, #c5b9d8); }
.uk-parts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.uk-parts code {
  display: inline-block; padding: 3px 8px; border-radius: 7px; background: rgba(255, 255, 255, .05);
  font-family: var(--rc-font-mono); font-size: 12px; color: #d9cdee; overflow-wrap: anywhere;
}
.uk-edit { margin: 0; font-size: 13.5px; line-height: 1.5; color: #8f84a3; }
.uk-edit strong { color: #cfc3e0; font-weight: 600; }
.uk-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: auto; padding-top: 8px; }
.uk-foot .btn { min-height: 44px; padding: 0 18px; border-radius: 12px; font-size: 14.5px; font-weight: 600; }
.uk-learn { font-size: 13.5px; color: #b7abc8; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rc-line-hover); }
.uk-learn:hover { color: #f6f1ff; }

/* ---------- theme colour preview (a screen with no screenshot in the chosen theme yet) ---------- */
.uk-gallery {
  --ink: #15151d; --body-a: #fff; --body-b: #e9eef6; --card-a: #fff; --card-b: #e6edf7; --text: #15151d; --round: 1;
  --green-a: #86f27e; --green-b: #22c24a; --red-a: #ff7385; --red-b: #e2284a; --gold-a: #ffe76e; --gold-b: #ffb01c;
  --blue-a: #6cd0ff; --blue-b: #2c86f0; --purple-a: #d08cff; --purple-b: #8a35f0; --orange-a: #ffb648; --orange-b: #f27a12;
  --pink-a: #ff8be8; --pink-b: #e43bc4; --cyan-a: #7ff3ff; --cyan-b: #22b8e6; --gray-a: #b9bdc9; --gray-b: #7c8193;
  --bar-a: #3a3a4e; --bar-b: #16161f; --mock-font: "Arial Rounded MT Bold", "Nunito", ui-rounded, system-ui, sans-serif;
}
.uk-gallery[data-theme="neon"] {
  --ink: #04050b; --body-a: #262a42; --body-b: #10111c; --card-a: #343a58; --card-b: #1b1e31; --text: #fff; --round: .8;
  --green-a: #5cffb0; --green-b: #00c27a; --red-a: #ff5c93; --red-b: #e0115f; --gold-a: #ffe45c; --gold-b: #ff9f1c;
  --blue-a: #5ce1ff; --blue-b: #1e7bff; --purple-a: #b98cff; --purple-b: #6a2cff; --orange-a: #ffb25c; --orange-b: #ff6a00;
  --pink-a: #ff6cf0; --pink-b: #b620e0; --cyan-a: #6cfff5; --cyan-b: #13c2d6; --gray-a: #8e93ad; --gray-b: #4a4f69;
  --bar-a: #2a2e4a; --bar-b: #0b0c14;
}
.uk-gallery[data-theme="gold"] {
  --ink: #2b1702; --body-a: #fff9ea; --body-b: #f1dda8; --card-a: #fffdf6; --card-b: #f4e3b8; --text: #2b1702; --round: .9;
  --green-a: #9bea7a; --green-b: #3daa3a; --red-a: #ff8a6e; --red-b: #d9342b; --gold-a: #fff0a0; --gold-b: #f2b400;
  --blue-a: #ffe9a6; --blue-b: #e8a800; --purple-a: #e6b8ff; --purple-b: #a353e0; --orange-a: #ffc774; --orange-b: #e88a10;
  --pink-a: #ffc9a8; --pink-b: #e8925a; --cyan-a: #fff3c2; --cyan-b: #e8c24a; --gray-a: #e3d3b0; --gray-b: #a8916a;
  --bar-a: #6a4614; --bar-b: #2b1702;
}
.uk-gallery[data-theme="blocky"] {
  --ink: #000; --body-a: #e4e4e8; --body-b: #aeaeb8; --card-a: #f4f4f6; --card-b: #cbcbd2; --text: #000; --round: .15;
  --green-a: #6bdc6b; --green-b: #287f47; --red-a: #f0584d; --red-b: #c4281c; --gold-a: #ffe766; --gold-b: #f5cd30;
  --blue-a: #4fa8ff; --blue-b: #0d69ac; --purple-a: #a86bd1; --purple-b: #6b327c; --orange-a: #ffaa4d; --orange-b: #da8541;
  --pink-a: #ff8fd0; --pink-b: #cc4fa0; --cyan-a: #6fe3f2; --cyan-b: #12a5bf; --gray-a: #c7c7cc; --gray-b: #8a8a92;
  --bar-a: #4a4a52; --bar-b: #1e1e22; --mock-font: "Arial Black", "Helvetica Neue", Arial, sans-serif;
}
.uk-gallery[data-theme="pastel"] {
  --ink: #4b3a5e; --body-a: #fffbfe; --body-b: #f4e6f6; --card-a: #fff; --card-b: #f1e7fb; --text: #4b3a5e; --round: 1.2;
  --green-a: #c8f7c5; --green-b: #7fd98a; --red-a: #ffc1c1; --red-b: #ff8a93; --gold-a: #ffefb0; --gold-b: #ffcf5c;
  --blue-a: #c6e6ff; --blue-b: #82bfff; --purple-a: #e2d1ff; --purple-b: #b496ff; --orange-a: #ffddb8; --orange-b: #ffb070;
  --pink-a: #ffd1ec; --pink-b: #ff94cf; --cyan-a: #c9f7f5; --cyan-b: #7fdce0; --gray-a: #e3ddea; --gray-b: #b6abc4;
  --bar-a: #8a74a6; --bar-b: #4b3a5e;
}
/* each screen's title bar colour, as in the kits */
.uk-mock.k-red { --k-a: var(--red-a); --k-b: var(--red-b); }
.uk-mock.k-blue { --k-a: var(--blue-a); --k-b: var(--blue-b); }
.uk-mock.k-pink { --k-a: var(--pink-a); --k-b: var(--pink-b); }
.uk-mock.k-orange { --k-a: var(--orange-a); --k-b: var(--orange-b); }
.uk-mock.k-purple { --k-a: var(--purple-a); --k-b: var(--purple-b); }
.uk-mock.k-green { --k-a: var(--green-a); --k-b: var(--green-b); }
.uk-mock.k-cyan { --k-a: var(--cyan-a); --k-b: var(--cyan-b); }
.uk-mock.k-gray { --k-a: var(--gray-a); --k-b: var(--gray-b); }
.uk-mock.k-gold { --k-a: var(--gold-a); --k-b: var(--gold-b); }

.uk-mock { position: absolute; inset: 0; display: grid; place-items: center; padding: 22px 22px 46px; font-family: var(--mock-font); }
/* A shown preview sits in the flow, so on narrow cards the box grows to fit it instead of cutting
   off its title bar (aspect-ratio keeps the 16:10 minimum while overflow is visible). */
.uk-mock:not([hidden]) { position: relative; inset: auto; min-height: 100%; }
.uk-media:has(> .uk-mock:not([hidden])) { overflow: visible; }
.uk-win {
  width: min(100%, 360px); border: 3px solid var(--ink); border-radius: calc(18px * var(--round));
  background: linear-gradient(180deg, var(--body-a), var(--body-b)); box-shadow: 0 6px 0 var(--ink); overflow: hidden;
}
.uk-bar {
  display: grid; place-items: center; height: 40px; border-bottom: 3px solid var(--ink);
  background: linear-gradient(180deg, var(--k-a), var(--k-b));
  color: #fff; font-size: 19px; font-weight: 800; letter-spacing: .01em;
  text-shadow: -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 2px 2px 0 var(--ink);
}
.uk-in { display: grid; gap: 8px; padding: 12px; }
.uk-in.is-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.uk-in.is-grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.uk-in.is-split { grid-template-columns: 1fr auto 1fr; align-items: center; }
.uk-tile, .uk-row {
  border: 2.5px solid var(--ink); border-radius: calc(10px * var(--round));
  background: linear-gradient(180deg, var(--card-a), var(--card-b));
}
.uk-tile { aspect-ratio: 1; }
.uk-tile.is-hot { background: linear-gradient(180deg, var(--k-a), var(--k-b)); }
.uk-row { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 8px; }
.uk-row::before { content: ""; width: 18px; height: 18px; flex: none; border: 2px solid var(--ink); border-radius: 50%; background: linear-gradient(180deg, var(--gold-a), var(--gold-b)); }
.uk-row::after { content: ""; flex: 1; height: 8px; border-radius: 4px; background: var(--ink); opacity: .18; }
.uk-pill {
  display: block; height: 28px; border: 2.5px solid var(--ink); border-radius: calc(9px * var(--round));
  background: linear-gradient(180deg, var(--green-a), var(--green-b));
  color: #fff; font-size: 13px; font-weight: 800; line-height: 22px; text-align: center;
  text-shadow: -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink), 1px 1px 0 var(--ink);
}
.uk-in > .uk-pill { grid-column: 1 / -1; }
.uk-arrow { color: var(--text); font-size: 20px; font-weight: 800; }
.uk-track { grid-column: 1 / -1; height: 14px; border: 2.5px solid var(--ink); border-radius: 8px; background: var(--bar-b); overflow: hidden; }
.uk-track::before { content: ""; display: block; width: 62%; height: 100%; background: linear-gradient(180deg, var(--gold-a), var(--gold-b)); }
/* the HUD: two counters and a 2-column menu of tiles */
.uk-hud { display: grid; gap: 8px; width: min(100%, 220px); }
.uk-count {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 4px;
  border: 3px solid var(--ink); border-radius: calc(12px * var(--round)); background: linear-gradient(180deg, var(--bar-a), var(--bar-b));
  color: #fff; font-size: 15px; font-weight: 800;
  text-shadow: -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink), 1px 1px 0 var(--ink);
}
.uk-count::before { content: ""; width: 24px; height: 24px; border: 2.5px solid var(--ink); border-radius: calc(8px * var(--round)); background: linear-gradient(180deg, var(--gold-a), var(--gold-b)); }
.uk-count.is-gem::before { background: linear-gradient(180deg, var(--cyan-a), var(--cyan-b)); }
.uk-menu { display: grid; grid-template-columns: repeat(4, 44px); gap: 8px; margin-top: 4px; }
.uk-menu span { height: 40px; border: 3px solid var(--ink); border-radius: calc(12px * var(--round)); }
.uk-menu span:nth-child(1) { background: linear-gradient(180deg, var(--orange-a), var(--orange-b)); }
.uk-menu span:nth-child(2) { background: linear-gradient(180deg, var(--purple-a), var(--purple-b)); }
.uk-menu span:nth-child(3) { background: linear-gradient(180deg, var(--cyan-a), var(--cyan-b)); }
.uk-menu span:nth-child(4) { background: linear-gradient(180deg, var(--green-a), var(--green-b)); }
/* the loading screen: a full panel with the game name and a progress bar */
.uk-load {
  display: grid; gap: 12px; justify-items: center; width: min(100%, 360px); padding: 22px 18px;
  border: 3px solid var(--ink); border-radius: calc(16px * var(--round));
  background: linear-gradient(180deg, var(--k-a), var(--k-b));
}
.uk-load b {
  color: #fff; font-size: 22px; font-weight: 800;
  text-shadow: -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 2px 2px 0 var(--ink);
}
.uk-load .uk-track { width: 100%; }
.uk-load .uk-pill { width: 92px; }

/* ---------- the whole-set call to action and the templates ---------- */
.uk-set { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; max-width: 920px; margin: 28px auto 0; text-align: center; }
.uk-set p { width: 100%; margin: 0; font-size: 14px; line-height: 1.5; color: #8f84a3; }
.uk-say { color: #f6f1ff; font-weight: 600; }
.uk-templates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 1120px; margin: 0 auto; padding: 0; list-style: none; }
.uk-tpl { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 20px; border: 1px solid rgba(233, 226, 250, .1); border-radius: 18px; background: #15101f; }
.uk-tpl h3 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; color: #f6f1ff; }
.uk-tpl p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--rc-text-2, #c5b9d8); }
.uk-tpl .uk-pairs { font-size: 13px; color: #8f84a3; }
.uk-tpl .uk-foot { flex-direction: column; align-items: stretch; }
.uk-tpl .uk-foot .btn { justify-content: center; }
.uk-tpl .link-arrow { font-size: 14px; }
.uk-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1040px; margin: 0 auto; padding: 0; list-style: none; counter-reset: uk; }
.uk-steps li { position: relative; padding: 20px 20px 20px 62px; border: 1px solid rgba(233, 226, 250, .1); border-radius: 18px; background: #15101f; counter-increment: uk; }
.uk-steps li::before {
  content: counter(uk); position: absolute; left: 18px; top: 18px; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; background: rgba(139, 92, 246, .18); color: #e9ddff; font-weight: 700; font-size: 14px;
}
.uk-steps h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; color: #f6f1ff; }
.uk-steps p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--rc-text-2, #c5b9d8); }

@media (max-width: 980px) {
  .uk-templates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uk-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .uk-grid, .uk-templates { grid-template-columns: minmax(0, 1fr); }
  /* one compact row under the header: the legend is read out but not shown, the pills scroll sideways if they must */
  .uk-switch { top: 64px; display: block; padding: 8px; border-radius: 14px; }
  .uk-switch legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .uk-switch .tl-options { flex-wrap: nowrap; justify-content: flex-start; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .uk-switch .tl-options::-webkit-scrollbar { display: none; }
  .uk-switch .tl-option > span { min-height: 40px; gap: 6px; padding: 0 10px; font-size: 13.5px; white-space: nowrap; }
  .uk-body { padding: 18px; }
}
@media (max-width: 440px) {
  /* five pills in one row on a phone: the colour dots go, the names stay */
  .uk-switch .uk-dot { display: none; }
  .uk-switch .tl-options { justify-content: space-between; gap: 4px; }
  .uk-switch .tl-option > span { padding: 0 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .uk-card, .uk-media img { transition: none; }
}
