:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #101010;
  --panel-soft: #181818;
  --text: #f3f0e8;
  --muted: #b7b2a8;
  --line: rgba(243, 240, 232, 0.16);
  --red: #d83f3f;
  --red-dark: #8e2020;
  --cyan: #5dc7c4;
  --gold: #e1b84f;
  --green: #2f9d63;
  --blue: #3478d4;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(216, 63, 63, 0.1), transparent 31rem),
    linear-gradient(215deg, rgba(93, 199, 196, 0.08), transparent 36rem),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 74%);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

code {
  color: var(--cyan);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.9rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(18px);
}

.social-rail {
  position: fixed;
  top: 50%;
  left: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transform: translateY(-50%);
}

.social-rail a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 4rem;
  min-height: 4rem;
  overflow: hidden;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 0.45rem 0.45rem 0;
  background: rgba(5, 5, 5, 0.82);
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  transition:
    width 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.social-rail a:hover,
.social-rail a:focus-visible {
  width: 10.75rem;
  justify-content: flex-start;
  gap: 0.7rem;
  border-color: rgba(93, 199, 196, 0.6);
  background: rgba(16, 16, 16, 0.96);
  outline: none;
}

.social-rail img {
  flex: 0 0 auto;
  width: 2.15rem;
  height: 2.15rem;
  object-fit: contain;
}

.social-rail span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.social-rail a:hover span,
.social-rail a:focus-visible span {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
}

.brand,
.site-header nav,
.socials {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.18rem;
}

.brand img {
  width: 2.1rem;
  height: 2.1rem;
  object-fit: contain;
}

.site-header nav {
  gap: clamp(0.7rem, 2vw, 1.5rem);
  flex-wrap: wrap;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.site-header nav a,
.nav-form button {
  text-decoration: none;
}

.site-header nav a:hover,
.nav-form button:hover,
.socials a:hover {
  color: var(--cyan);
}

.nav-user {
  color: var(--cyan);
  font-weight: 900;
}

.nav-form {
  margin: 0;
}

.nav-form button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-transform: uppercase;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-transform: uppercase;
}

.nav-dropdown-button:hover,
.nav-dropdown-button[aria-expanded="true"] {
  color: var(--cyan);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.7rem);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 12rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: rgba(12, 12, 12, 0.98);
  box-shadow: var(--shadow);
}

.nav-dropdown-menu a,
.nav-dropdown-menu button {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-dropdown-menu a:last-child,
.nav-dropdown-menu button:last-child {
  border-bottom: 0;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu button:hover,
.nav-dropdown-menu a[aria-current="page"] {
  background: rgba(93, 199, 196, 0.08);
  color: var(--cyan);
}

.manager-rail {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 25;
  display: flex;
  align-items: stretch;
  width: 16rem;
  max-width: calc(100vw - 1rem);
  transform: translateY(-50%);
  transition: transform 180ms ease;
}

.manager-rail.is-collapsed {
  transform: translate(calc(100% - 3rem), -50%);
}

.manager-rail-toggle {
  flex: 0 0 3rem;
  min-height: 3.6rem;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 0.5rem 0 0 0.5rem;
  background: rgba(5, 5, 5, 0.9);
  color: var(--cyan);
  cursor: pointer;
  font: inherit;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.manager-rail-toggle:hover {
  background: rgba(16, 16, 16, 0.96);
  color: white;
}

.manager-rail-panel {
  display: grid;
  flex: 1 1 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 0.5rem 0 0 0.5rem;
  background: rgba(8, 8, 8, 0.94);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.manager-rail-title {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.manager-rail-panel a,
.manager-rail-panel button {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.75rem 0.9rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
}

.manager-rail-panel a:last-child,
.manager-rail-panel button:last-child {
  border-bottom: 0;
}

.manager-rail-panel a:hover,
.manager-rail-panel button:hover,
.manager-rail-panel a[aria-current="page"] {
  background: rgba(93, 199, 196, 0.1);
  color: var(--cyan);
}

.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.manager-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 50;
  width: min(46rem, calc(100vw - 2rem));
  max-height: calc(100svh - 2rem);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    #0b0b0b;
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
}

.manager-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem 0.9rem;
  border-bottom: 1px solid var(--line);
}

.manager-modal-header h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.modal-close {
  display: inline-grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.modal-close:hover {
  border-color: rgba(216, 63, 63, 0.6);
  color: white;
}

.manager-modal-body {
  padding: 1.35rem;
}

.duties-grid {
  display: grid;
  gap: 1rem;
}

.duties-grid article,
.download-row,
.template-card {
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.035);
}

.duties-grid article {
  padding: 1rem;
}

.duties-grid ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.65;
}

.download-list,
.download-editor {
  display: grid;
  gap: 0.85rem;
}

.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.download-row h3,
.download-row p {
  margin-bottom: 0;
}

.download-editor {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.download-editor label,
.template-card label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-weight: 800;
}

.download-editor input,
.template-card input,
.template-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: rgba(0, 0, 0, 0.32);
  color: var(--text);
  font: inherit;
  padding: 0.7rem 0.75rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: clamp(34rem, 76svh, 48rem);
  padding: clamp(1.75rem, 4vw, 4rem) clamp(1rem, 5vw, 5rem);
}

.hero-media {
  display: grid;
  place-items: center;
  min-height: 24rem;
}

.hero-media img {
  width: min(32rem, 92%);
  max-height: 74svh;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(216, 63, 63, 0.28));
}

.hero-copy {
  min-width: 0;
  max-width: 44rem;
}

.eyebrow,
.game-meta {
  margin: 0 0 0.8rem;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  max-width: 100%;
  font-size: clamp(3.25rem, 7.5vw, 6rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
  line-height: 1.1;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 39rem;
  color: var(--text);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.auth-page,
.protected-page {
  display: grid;
  min-height: calc(100svh - 4.8rem);
  place-items: center;
  padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 5vw, 5rem);
}

.auth-panel,
.protected-panel {
  width: min(100%, 34rem);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
}

.auth-panel {
  padding: clamp(1.25rem, 4vw, 2rem);
}

.protected-panel {
  width: min(100%, 52rem);
  padding: clamp(1.5rem, 5vw, 3rem);
}

.auth-panel h1,
.protected-panel h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.75rem, 8vw, 5rem);
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-weight: 800;
}

.auth-form input,
.auth-form select {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: rgba(0, 0, 0, 0.32);
  color: var(--text);
  font: inherit;
  padding: 0.75rem 0.85rem;
}

.auth-form select,
.auth-form select option {
  background: #242424;
  color: var(--text);
}

.auth-error {
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(216, 63, 63, 0.45);
  border-radius: 0.45rem;
  background: rgba(216, 63, 63, 0.12);
  color: var(--text);
}

.tracker-page {
  display: block;
  min-height: calc(100svh - 4.8rem);
  padding: clamp(0.75rem, 2vw, 1.5rem);
}

.tracker-panel {
  width: 100%;
  max-width: none;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.tracker-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.tracker-heading h1 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.tracker-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.tracker-toolbar span {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
}

.tracker-message {
  margin-bottom: 1rem;
}

.tracker-message.success {
  border-color: rgba(93, 199, 196, 0.45);
  background: rgba(93, 199, 196, 0.1);
}

.templates-page {
  display: block;
  padding: clamp(1rem, 3vw, 2.5rem);
}

.templates-panel {
  width: 100%;
  max-width: 90rem;
  margin: 0 auto;
}

.template-form {
  display: grid;
  gap: 1rem;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 1rem;
}

.template-card {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: 1rem;
}

.template-card textarea {
  min-height: 14rem;
  resize: vertical;
}

.new-template-card {
  border-style: dashed;
  background: rgba(93, 199, 196, 0.04);
}

.template-actions,
.template-save-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.template-save-bar {
  position: sticky;
  bottom: 1rem;
  justify-content: flex-end;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: rgba(8, 8, 8, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.shadow-sheet-form {
  margin: 0;
}

.shadow-table-wrap {
  max-height: calc(100svh - 14rem);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.24);
  box-shadow: var(--shadow);
}

.shadow-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.shadow-table th,
.shadow-table td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.shadow-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0.65rem 0.6rem;
  background: #0c0c0c;
  color: var(--cyan);
  font-size: 0.7rem;
  letter-spacing: 0.1rem;
  text-align: left;
  text-transform: uppercase;
}

.shadow-table td {
  width: 10rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.025);
}

.shadow-table td[data-column="Name"] {
  width: 9.5rem;
}

.shadow-table td[data-column="Month"] {
  width: 4.5rem;
}

.shadow-table td[data-column="Location"],
.shadow-table td[data-column="Project"] {
  width: 8rem;
}

.shadow-table td[data-column="Due Date"],
.shadow-table td[data-column="Introduction"] {
  width: 6.75rem;
}

.shadow-table td[data-column="Discord"] {
  width: 7.5rem;
}

.shadow-table td[data-column="Email"] {
  width: 11rem;
}

.shadow-table td[data-column="Skills/Programs"],
.shadow-table td[data-column="Notes"] {
  width: 11rem;
}

.shadow-table td[data-column="Skills/Programs"] {
  width: 14rem;
}

.shadow-table input,
.shadow-table textarea,
.shadow-table select {
  width: 100%;
  min-height: 2.45rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  line-height: 1.45;
  padding: 0.55rem;
  resize: vertical;
}

.shadow-table select {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.35rem;
  background: #2a2a2a;
  color: var(--text);
  cursor: pointer;
}

.shadow-table select option {
  background: #2a2a2a;
  color: var(--text);
}

.shadow-table input:focus,
.shadow-table textarea:focus,
.shadow-table select:focus {
  outline: 2px solid rgba(93, 199, 196, 0.65);
  outline-offset: -2px;
  background: rgba(93, 199, 196, 0.08);
}

.shadow-table .actions-header,
.shadow-table .row-actions {
  position: sticky;
  right: 0;
  z-index: 3;
  width: 27rem;
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 28px rgba(0, 0, 0, 0.22);
  background: #090909;
}

.shadow-table .row-actions-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.5rem;
}

.shadow-table .row-actions .button {
  width: 100%;
  min-height: 1.95rem;
  padding: 0.35rem 0.4rem;
  font-size: 0.66rem;
  line-height: 1.05;
}

.add-row-button,
.button.action-promote {
  background: var(--green);
  color: white;
  box-shadow: 0 16px 36px rgba(47, 157, 99, 0.2);
}

.button.action-drop {
  background: var(--red);
  color: white;
  box-shadow: 0 16px 36px rgba(216, 63, 63, 0.2);
}

.button.action-delete {
  border-color: rgba(216, 63, 63, 0.5);
  background: rgba(216, 63, 63, 0.16);
  color: white;
}

.button.action-iot {
  background: var(--blue);
  color: white;
  box-shadow: 0 16px 36px rgba(52, 120, 212, 0.2);
}

.skill-picker {
  display: grid;
  align-content: start;
  gap: 0.25rem;
  padding: 0.3rem;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-content: flex-start;
  min-height: 1.55rem;
}

.skill-chip {
  min-height: 1.55rem;
  padding: 0.18rem 0.42rem;
  border: 1px solid rgba(93, 199, 196, 0.34);
  border-radius: 999px;
  background: rgba(93, 199, 196, 0.1);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
}

.skill-chip::after {
  content: " x";
  color: var(--cyan);
}

.skill-empty {
  color: var(--muted);
  font-size: 0.72rem;
}

.skill-controls {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.7fr) auto;
  gap: 0.25rem;
}

.skill-controls select,
.skill-controls input {
  height: 1.85rem;
  min-height: 0;
  padding: 0.18rem 0.35rem;
  font-size: 0.7rem;
  line-height: 1.1;
}

.skill-controls .button {
  min-height: 0;
  height: 1.85rem;
  padding: 0.18rem 0.45rem;
  font-size: 0.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  background: var(--red);
  color: white;
  box-shadow: 0 16px 40px rgba(216, 63, 63, 0.24);
}

.button.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.button.small {
  min-height: 2.35rem;
  padding: 0.6rem 0.8rem;
  font-size: 0.86rem;
}

.skill-controls .button.small {
  height: 1.85rem;
  min-height: 0;
  padding: 0.18rem 0.45rem;
  font-size: 0.7rem;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.section {
  padding: clamp(2.75rem, 5.5vw, 5rem) clamp(1rem, 5vw, 5rem);
}

.section-heading {
  max-width: 60rem;
  margin-bottom: 1.35rem;
}

.section-heading.wide {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: none;
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.studio-grid article,
.game-card {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
}

.studio-grid article {
  padding: 1rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.filters button {
  min-height: 2.5rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.filters button.active {
  border-color: rgba(216, 63, 63, 0.65);
  background: var(--red-dark);
}

.catalog {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

.catalog-group {
  display: grid;
  gap: 1rem;
}

.catalog-group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.catalog-group-heading h3 {
  margin-bottom: 0;
  font-size: clamp(1.65rem, 3vw, 2.65rem);
}

.catalog-count {
  margin: 0 0 0.2rem;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.game-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.game-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 18% 20%, rgba(93, 199, 196, 0.15), transparent 34%),
    var(--panel);
}

.game-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
}

.art-link {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  min-height: 2rem;
  padding: 0.46rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 0.45rem;
  background: rgba(216, 63, 63, 0.92);
  color: white;
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
}

.game-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0.9rem;
}

.game-body h3 a {
  text-decoration: none;
}

.game-body h3 a:hover {
  color: var(--cyan);
}

.game-description {
  flex: 1;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 0.92rem;
  line-height: 1.55;
}

.game-body .card-actions {
  margin-bottom: 0.75rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.8rem;
}

.tag-list span {
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-top: 1rem;
}

.mini-gallery img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.35rem;
  object-fit: cover;
}

.site-footer {
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  background: #020202;
}

.footer-brand {
  max-width: 70rem;
}

.footer-title-row {
  display: inline-flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.5rem);
  flex-wrap: wrap;
  width: auto;
}

.site-footer h2 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 5rem);
}

.site-footer .socials {
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.75rem;
}

.site-footer .socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
}

.site-footer .socials a:hover {
  border-color: rgba(93, 199, 196, 0.55);
}

.site-footer .socials img {
  width: 1.45rem;
  height: 1.45rem;
  object-fit: contain;
}

.site-footer .socials a::after {
  content: "";
}

.site-footer .socials a {
  font-size: 0;
}

@media (max-width: 980px) {
  .hero,
  .studio-grid,
  .section-heading.wide {
    grid-template-columns: 1fr;
  }

  .section-heading.wide {
    display: grid;
  }

  .filters {
    justify-content: flex-start;
  }
}

@media (max-width: 1500px) {
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
  }

  .site-header nav,
  .socials {
    justify-content: flex-start;
  }

  .social-rail {
    top: auto;
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    flex-direction: row;
    justify-content: center;
    transform: none;
    pointer-events: none;
  }

  .social-rail a {
    width: 4rem;
    min-height: 4rem;
    border-left: 1px solid var(--line);
    border-radius: 999px;
    pointer-events: auto;
  }

  .social-rail a:hover,
  .social-rail a:focus-visible {
    width: 4rem;
  }

  .social-rail span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 14rem;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }
}
