/* ==========================================================================
   Setheun Development Interactive
   ui.css — rail, nav, buttons, tags, rows, panels, footer

   Deliberately short. Components that existed to fill space have been
   removed rather than restyled: no stat-plate grid, no scrolling ticker,
   no accordion, no filter chips, no contact form. Each of those was a shape
   looking for content.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Nav rail
   -------------------------------------------------------------------------- */

.rail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--rail);
  background-color: transparent;
  border-bottom: var(--hair) solid transparent;
  transition: background-color var(--d-2) var(--ease-out), border-color var(--d-2) var(--ease-out);
}

/* Opaque, not frosted. A translucent blurred bar is the single most
   recognisable template tell, and it makes the wordmark harder to read over
   a screenshot. */
.rail.is-stuck {
  background-color: var(--void);
  border-bottom-color: var(--line);
}

.rail-in {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  height: 100%;
  width: var(--shell);
  margin-inline: auto;
}

/* --- Wordmark: the group's real Roblox logo, a blue mark on black, which is
   where this palette came from. Framed rather than filled so it keeps its
   own black ground against the rail. */

.mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
  margin-right: auto;
}

.mark-glyph {
  display: block;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  background-color: var(--void);
  border: var(--hair) solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.mark-glyph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: transparent;
}

.mark-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.mark-text b {
  font-size: 0.9375rem;
  font-stretch: 112%;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.mark-text small {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: var(--t-xxs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- Links. The current page carries a static rule. Nothing follows the
   cursor: the pointer already says what is clickable. */

.nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  position: relative;
  padding: 0.45rem 0.7rem;
  color: var(--ink-3);
  font-size: var(--t-sm);
  font-weight: 500;
  transition: color var(--d-1) var(--ease-out);
}

.nav a:hover {
  color: var(--ink);
}

.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0;
  border-top: 2px solid var(--blue);
}

@media (min-width: 940px) {
  .nav {
    display: flex;
  }
}

/* --- Rail call to action: desktop only, the mobile sheet carries it instead.
   Scoped to .rail so it outranks the later `.btn { display: inline-flex }`. */

.rail .rail-cta {
  display: none;
}

@media (min-width: 940px) {
  .rail .rail-cta {
    display: inline-flex;
  }
}

/* --- Mobile toggle */

/* Absolutely positioned bars so the icon and the close cross are both
   geometrically exact inside the 44px hit area. */
.burger {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  border: var(--hair) solid var(--line-3);
  border-radius: var(--r);
  transition: border-color var(--d-2) var(--ease-out);
}

.burger:hover {
  border-color: var(--blue-edge);
}

.burger i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1.5px;
  margin: -0.75px 0 0 -8px;
  background-color: var(--ink);
  transition: transform var(--d-3) var(--ease-out), opacity var(--d-1) linear;
}

.burger i:nth-child(1) {
  transform: translateY(-5px);
}

.burger i:nth-child(3) {
  transform: translateY(5px);
}

.burger[aria-expanded="true"] i:nth-child(1) {
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] i:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] i:nth-child(3) {
  transform: rotate(-45deg);
}

@media (min-width: 940px) {
  .burger {
    display: none;
  }
}

/* --- Mobile sheet */

.sheet {
  position: fixed;
  inset: var(--rail) 0 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--s-6) var(--gutter) var(--s-7);
  background-color: var(--void);
  border-top: var(--hair) solid var(--line);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--d-2) var(--ease-out), visibility 0s linear var(--d-2);
}

.sheet.is-open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s, 0s;
}

.sheet-nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: 0.85rem;
  border-bottom: var(--hair) solid var(--line);
  font-size: 1.65rem;
  font-stretch: 108%;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.sheet-nav a[aria-current="page"] {
  color: var(--blue-lit);
}

.sheet-nav a em {
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-stretch: 100%;
  font-style: normal;
  font-weight: 400;
  color: var(--ink-3);
  text-transform: none;
  letter-spacing: 0;
}

@media (min-width: 940px) {
  .sheet {
    display: none;
  }
}

body.is-locked {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   2. Buttons
   -------------------------------------------------------------------------- */

.btn {
  --btn-fill: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.78rem 1.15rem;
  background-color: var(--btn-fill);
  color: var(--ink);
  border-radius: var(--r);
  font-size: var(--t-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: background-color var(--d-1) var(--ease-out);
}

.btn:hover {
  --btn-fill: var(--blue-hot);
}

.btn svg {
  flex: 0 0 auto;
}

.btn-ghost {
  --btn-fill: transparent;
  border: var(--hair) solid var(--line-3);
  color: var(--ink);
}

.btn-ghost:hover {
  --btn-fill: var(--surface-2);
  border-color: var(--blue-edge);
}

.btn-sm {
  padding: 0.5rem 0.8rem;
  font-size: var(--t-xs);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Text link. The arrow moves toward where it is taking you, which is the one
   hover effect on this site that carries information. */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 2px;
  border-bottom: var(--hair) solid var(--line-2);
  font-size: var(--t-sm);
  font-weight: 500;
  transition: border-color var(--d-1) var(--ease-out), color var(--d-1) var(--ease-out);
}

.tlink:hover {
  color: var(--blue-lit);
  border-bottom-color: var(--blue-edge);
}

.tlink svg {
  transition: transform var(--d-2) var(--ease-out);
}

.tlink:hover svg {
  transform: translate(3px, -3px);
}

/* --------------------------------------------------------------------------
   3. Status tag — border plus the word. Never colour alone.
   -------------------------------------------------------------------------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.5rem 0.22rem;
  border: var(--hair) solid var(--line-2);
  border-radius: var(--r);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: var(--t-xxs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag::before {
  content: "";
  width: 5px;
  height: 5px;
  background-color: currentColor;
}

.tag-live {
  border-color: var(--blue-edge);
  color: var(--blue-lit);
}

.tag-beta {
  border-color: var(--line-2);
  color: var(--ink);
}

.tag-quiet {
  border-color: var(--line);
  color: var(--ink-3);
}

/* In development. Deliberately not blue: on this site blue means shipped, so
   an unshipped title cannot borrow it. The dot is hollow, which says the same
   thing a second time without relying on colour at all. */
.tag-dev {
  border-color: var(--line-3);
  color: var(--ink-2);
}

.tag-dev::before {
  background-color: transparent;
  border: var(--hair) solid currentColor;
}

/* --------------------------------------------------------------------------
   4. Catalogue rows
   -------------------------------------------------------------------------- */

.rows {
  border-top: var(--hair) solid var(--line);
}

.grow {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "idx icon meta"
    "idx body body";
  align-items: center;
  gap: 0.35rem var(--s-4);
  padding: var(--s-4) var(--s-3);
  border-bottom: var(--hair) solid var(--line);
  transition: background-color var(--d-1) var(--ease-out);
}

.grow:hover {
  background-color: var(--surface);
}

.grow-idx {
  grid-area: idx;
  align-self: start;
  padding-top: 0.35rem;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: var(--t-xs);
  font-variant-numeric: tabular-nums;
}

.grow-icon {
  grid-area: icon;
  width: 56px;
  height: 56px;
  border: var(--hair) solid var(--line);
  border-radius: var(--r);
  object-fit: cover;
}

.grow-body {
  grid-area: body;
  min-width: 0;
}

.grow-title {
  display: block;
  font-size: var(--t-md);
  font-stretch: 104%;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.grow-sub {
  margin-top: 0.25rem;
  color: var(--ink-3);
  font-size: var(--t-xs);
}

.grow-meta {
  grid-area: meta;
  display: flex;
  align-items: center;
  gap: var(--s-4);
  justify-self: end;
}

.grow-stat {
  text-align: right;
}

.grow-stat b {
  display: block;
  font-weight: 600;
  font-size: var(--t-sm);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.grow-stat span {
  display: block;
  color: var(--ink-3);
  font-size: var(--t-xxs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.grow-arrow {
  color: var(--ink-3);
  transition: transform var(--d-2) var(--ease-out), color var(--d-1) var(--ease-out);
}

.grow:hover .grow-arrow {
  color: var(--blue-lit);
  transform: translateX(3px);
}

@media (min-width: 800px) {
  .grow {
    grid-template-columns: 3rem 56px minmax(0, 1fr) auto;
    grid-template-areas: "idx icon body meta";
    gap: var(--s-5);
    padding: var(--s-5) var(--s-3);
  }

  .grow-idx {
    align-self: center;
    padding-top: 0;
    text-align: right;
  }

  .grow-stat-hide {
    display: block;
  }
}

@media (max-width: 799px) {
  .grow-stat-hide {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   5. Panels
   -------------------------------------------------------------------------- */

.panel {
  padding: var(--s-5);
  background-color: var(--surface);
  border: var(--hair) solid var(--line);
  border-radius: var(--r);
}

.panel-bare {
  background-color: transparent;
}

.field-note {
  color: var(--ink-3);
  font-size: var(--t-xs);
}

/* --------------------------------------------------------------------------
   6. Footer
   -------------------------------------------------------------------------- */

.foot {
  padding-top: var(--s-8);
  border-top: var(--hair) solid var(--line);
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-6);
  padding-bottom: var(--s-7);
}

.foot-col h3 {
  margin-bottom: var(--s-4);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: var(--t-xxs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.foot-col li + li {
  margin-top: 0.55rem;
}

.foot-col a,
.foot-col p {
  color: var(--ink-2);
  font-size: var(--t-sm);
}

.foot-col a {
  transition: color var(--d-1) var(--ease-out);
}

.foot-col a:hover {
  color: var(--blue-lit);
}

/* The wordmark closes the page. Drawn as SVG text with textLength so it fills
   the shell exactly at any viewport without a JS fit routine and without
   distorting the glyphs. */
.foot-mark {
  display: block;
  width: 100%;
  height: auto;
  margin-top: var(--s-4);
  padding-top: var(--s-5);
  border-top: var(--hair) solid var(--line);
  overflow: visible;
}

.foot-mark text {
  fill: var(--surface-2);
  font-family: var(--font);
  font-size: 172px;
  font-stretch: 118%;
  font-weight: 800;
}

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-block: var(--s-4) var(--s-6);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: var(--t-xxs);
  letter-spacing: 0.04em;
}

.foot-legal a:hover {
  color: var(--blue-lit);
}
