@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #0c0e14;
  --surface: #13161f;
  --raised: #1a1e29;
  --line: #262a36;
  --text: #f2f3f7;
  --muted: #9298aa;
  --blue: #527dff;
  --green: #80dfb2;
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--font);
}
* {
  box-sizing: border-box;
}
h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid #93adff;
  outline-offset: 4px;
}
button {
  border: 0;
  background: none;
}
img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}
svg {
  flex-shrink: 0;
}
.icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.2;
}
h1,
h2 {
  font-family: var(--display);
}
h1 {
  font-size: clamp(1.8rem, 4vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -1.2px;
}
h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 1rem;
  font-weight: 650;
}
p {
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.8rem;
}
.eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: #bcc9ed;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  padding: 12px;
  background: var(--blue);
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
.topbar {
  height: 82px;
  border-bottom: 1px solid #ffffff0d;
  display: flex;
  align-items: center;
  padding: 0 4.2%;
  gap: 40px;
  position: relative;
  background: #0c0e14f2;
  z-index: 20;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.7px;
  white-space: nowrap;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}
.brand span em {
  font-style: normal;
  color: #8aa6ff;
}
.desktop-nav {
  display: flex;
  height: 100%;
  gap: 29px;
}
.nav-link {
  display: flex;
  gap: 8px;
  align-items: center;
  position: relative;
  font-size: 0.87rem;
  color: var(--muted);
  white-space: nowrap;
}
.nav-link .icon {
  width: 17px;
  height: 17px;
}
.nav-link.active {
  color: #fff;
}
.nav-link.active:after {
  content: "";
  position: absolute;
  height: 2px;
  bottom: 0;
  background: var(--blue);
  left: 0;
  right: 0;
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.search {
  background: #191c26;
  border: 1px solid #292d3b;
  border-radius: 9px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 13px;
  color: #848ba0;
}
.search input {
  border: 0;
  outline: 0 !important;
  background: none;
  color: var(--text);
  min-width: 0;
  width: 100%;
  height: 41px;
  font-size: 0.84rem;
}
.search input::placeholder {
  color: #858b9c;
}
.search kbd {
  font-size: 11px;
  background: #222632;
  padding: 1px 5px;
  border: 1px solid #303543;
  border-radius: 4px;
}
.header-search {
  width: 240px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 41px;
  padding: 10px 17px;
  border-radius: 9px;
  background: #252a38;
  color: #f5f6fb;
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid #363c4b;
  white-space: nowrap;
  transition:
    background 0.2s,
    transform 0.2s;
}
.btn:hover {
  background: #32394b;
}
.btn:active {
  transform: translateY(1px);
}
.btn.primary {
  background: var(--blue);
  border-color: #648aff;
  box-shadow: 0 3px 16px #355fee15;
}
.btn.primary:hover {
  background: #6a8fff;
}
.btn.ghost {
  background: transparent;
  border-color: var(--line);
}
.btn.small {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 0.8rem;
}
.btn.white {
  background: #fff;
  color: #181b24;
  border-color: white;
}
.icon-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #b8bed0;
  background: #ffffff03;
}
.icon-button:hover {
  background: #ffffff0e;
  color: white;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--avatar, #799fd6) 35%, #191b27),
    var(--avatar, #799fd6)
  );
  color: white;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.75rem;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid #ffffff17;
}
.avatar img {
  width: 100%;
  height: 100%;
}
.avatar.large {
  width: 90px;
  height: 90px;
  border: 5px solid var(--bg);
  font-size: 1.7rem;
}
.page {
  max-width: 1420px;
  padding: 37px 4.2% 36px;
  margin: 0 auto;
}
.page-intro {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 29px;
}
.page-intro p {
  margin-top: 8px;
  font-size: 0.9rem;
}
.date-chip {
  color: #a9aebe;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.75rem;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 7px;
}
.date-chip .icon {
  color: #d4c184;
  width: 15px;
  height: 15px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin: 26px 0 17px;
}
.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 9px;
}
.section-heading h2 .icon {
  color: #839bff;
}
.section-heading p {
  font-size: 0.8rem;
  margin-top: 5px;
}
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9caaff;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}
.section-link .icon {
  width: 15px;
  height: 15px;
}
.carousel-controls {
  display: flex;
  gap: 7px;
}
.featured-track {
  display: flex;
  gap: 18px;
  overflow: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.featured-track::-webkit-scrollbar {
  display: none;
}
.feature-card {
  position: relative;
  min-width: 0;
  flex: 1 0 calc((100% - 36px) / 3);
  height: 324px;
  border-radius: 15px;
  overflow: hidden;
  background: #202338;
  scroll-snap-align: start;
  border: 1px solid #ffffff0f;
  isolation: isolate;
}
.feature-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    #090b16fa 0%,
    #090b16a8 30%,
    #090b1620 66%,
    #090b1610
  );
  z-index: 1;
}
.cover-art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, #ad4ce388, transparent 50%),
    linear-gradient(145deg, #1f2453, #572c7a 45%, #101a35);
  overflow: hidden;
}
.cover-art img {
  width: 100%;
  height: 100%;
  transition: transform 0.45s;
}
.feature-card:hover .cover-art img {
  transform: scale(1.04);
}
.cover-art.moss,
.cover-art.terrarium {
  background:
    radial-gradient(ellipse at 70% 35%, #9cdf6288, transparent 45%),
    linear-gradient(135deg, #174849, #256759, #182731);
}
.cover-art.orbit,
.cover-art.loop {
  background:
    radial-gradient(ellipse at 60% 45%, #ee7e4588, transparent 45%),
    linear-gradient(135deg, #25254a, #60323e, #111c39);
}
.cover-art.pixel {
  background:
    radial-gradient(ellipse at 15% 60%, #ff4c9366, transparent 50%),
    linear-gradient(135deg, #371940, #684075, #15294c);
}
.cover-art.gravity {
  background:
    radial-gradient(ellipse at 65% 50%, #567bea88, transparent 40%),
    linear-gradient(135deg, #122035, #304069, #0e1430);
}
.cover-art.synth {
  background:
    radial-gradient(ellipse at 65% 60%, #ee765788, transparent 45%),
    linear-gradient(135deg, #302458, #653358, #181c35);
}
.cover-art.particle {
  background:
    radial-gradient(ellipse at 70% 30%, #89cbb288, transparent 45%),
    linear-gradient(135deg, #214f52, #26405b, #122834);
}
.cover-art.midnight {
  background: linear-gradient(135deg, #303241, #161824);
}
.art-symbol {
  display: grid;
  place-items: center;
  position: absolute;
  inset: 0;
  color: #ffffff7a;
}
.art-symbol .icon {
  width: 62px;
  height: 62px;
  stroke-width: 1.1;
  filter: drop-shadow(0 0 18px #7e97ff);
}
.feature-top {
  position: absolute;
  left: 19px;
  right: 19px;
  top: 18px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pill {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  font-size: 0.66rem;
  padding: 5px 8px;
  line-height: 1;
  background: #15172591;
  backdrop-filter: blur(12px);
  border: 1px solid #ffffff20;
  border-radius: 5px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.pill .icon {
  width: 12px;
  height: 12px;
}
.feature-copy {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 2;
}
.feature-copy .eyebrow {
  font-size: 0.61rem;
  letter-spacing: 1.2px;
  color: #c7cfeb;
}
.feature-copy h3 {
  font-family: var(--display);
  font-size: 1.9rem;
  letter-spacing: -0.7px;
  margin: 6px 0;
}
.feature-copy p {
  font-size: 0.78rem;
  color: #c4c4d3;
}
.feature-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 17px;
  gap: 8px;
}
.tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.tag {
  background: #ffffff09;
  border: 1px solid #ffffff12;
  border-radius: 4px;
  color: #c8cad6;
  font-size: 0.62rem;
  line-height: 1.2;
  padding: 4px 6px;
  white-space: nowrap;
}
.tag.tool-Claude {
  color: #e7b293;
}
.tag.tool-ChatGPT {
  color: #93d0b5;
}
.tag.tool-v0 {
  color: #e0ddff;
}
.feature-card .tag {
  background: #10142080;
  border-color: #ffffff18;
}
.feature-bottom .btn {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 0.72rem;
}
.feature-bottom .btn .icon {
  width: 14px;
  height: 14px;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 14px 0 24px;
}
.carousel-dots i {
  height: 4px;
  width: 4px;
  border-radius: 5px;
  background: #3a3f4d;
}
.carousel-dots i:first-child {
  width: 17px;
  background: #6186ff;
}
.filterbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
  margin: 0 0 28px;
}
.category-tabs {
  display: flex;
  gap: 5px;
  overflow: auto;
  scrollbar-width: none;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 7px;
  padding: 8px 13px;
  font-size: 0.8rem;
  color: #a5aabd;
  white-space: nowrap;
  min-height: 37px;
}
.filter-chip .icon {
  width: 15px;
  height: 15px;
}
.filter-chip:hover {
  color: #fff;
  background: #ffffff08;
}
.filter-chip.active {
  background: #517cff1c;
  color: #a4baff;
  border: 1px solid #5877db49;
}
.select-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.select-wrap select,
select.input {
  background: var(--surface);
  color: #bdc3d3;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 11px;
  font-size: 0.77rem;
  min-height: 37px;
  max-width: 100%;
}
.select-wrap label {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 19px;
}
.game-card {
  min-width: 0;
}
.card-image {
  height: 150px;
  position: relative;
  display: block;
  border: 1px solid #ffffff10;
  border-radius: 11px;
  overflow: hidden;
}
.game-card:hover .cover-art img {
  transform: scale(1.05);
}
.card-image:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #00000044, transparent 50%);
}
.card-image .rating-pill {
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 1;
}
.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #b5ffd826;
  background: #10231ddd;
  color: #97eac1;
  font-size: 0.68rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  border-radius: 5px;
  padding: 4px 7px;
}
.rating-pill .icon {
  width: 12px;
  height: 12px;
}
.card-details {
  padding: 12px 1px 0;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}
.card-details h3 {
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.card-details p {
  font-size: 0.71rem;
}
.card-details > .icon-button {
  width: 29px;
  height: 29px;
  border: 0;
  border-radius: 6px;
}
.card-details > .icon-button .icon {
  height: 17px;
  width: 17px;
}
.game-card .tags {
  margin-top: 10px;
}
.save-button.saved {
  color: #86a5ff;
}
.save-button.saved .icon {
  fill: #527dff44;
}
.game-section {
  margin-bottom: 35px;
}
.lower-banner {
  border: 1px solid #3f476548;
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 23px 26px;
  border-radius: 12px;
  background: linear-gradient(110deg, #1a2037, #161925 65%);
  margin: 35px 0 22px;
}
.banner-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #6d85fd17;
  display: grid;
  place-items: center;
  color: #a6baff;
}
.lower-banner h3 {
  font-family: var(--display);
  font-size: 1.04rem;
  margin-bottom: 4px;
}
.lower-banner p {
  font-size: 0.8rem;
}
.lower-banner .btn {
  margin-left: auto;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 23px 0 5px;
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.73rem;
  color: #818799;
  gap: 15px;
}
.footer-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer button {
  padding: 3px;
  color: #9da3b5;
  font-size: 0.73rem;
}
.footer button:hover {
  color: white;
}
.bottom-nav {
  display: none;
}
.mobile-search {
  display: none;
}
.empty {
  padding: 55px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 14px;
  grid-column: 1/-1;
}
.empty > .icon {
  width: 35px;
  height: 35px;
  color: #89a6ff;
  margin-bottom: 12px;
}
.empty h3 {
  margin-bottom: 8px;
}
.empty p {
  font-size: 0.88rem;
  margin-bottom: 18px;
}
.loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 15px);
  z-index: 100;
  background: #252c3b;
  border: 1px solid #536078;
  box-shadow: 0 12px 50px #0006;
  padding: 13px 20px;
  border-radius: 11px;
  max-width: calc(100% - 32px);
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  color: var(--text);
  background: #161a25;
  border: 1px solid #363d50;
  border-radius: 18px;
  width: min(540px, calc(100% - 28px));
  padding: 28px;
  max-height: 88dvh;
  overflow: auto;
  box-shadow: 0 30px 100px #0008;
}
dialog::backdrop {
  background: #050711b8;
  backdrop-filter: blur(7px);
}
.modal-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 13px;
}
.modal-heading h2 {
  font-size: 1.4rem;
}
.modal-description {
  font-size: 0.9rem;
  margin-bottom: 23px;
}
.input {
  width: 100%;
  border: 1px solid #343b4f;
  border-radius: 9px;
  background: #0f131d;
  color: #f0f2f8;
  padding: 12px;
  font-size: 0.9rem;
  min-width: 0;
}
.input::placeholder {
  color: #767f95;
}
textarea.input {
  resize: vertical;
  min-height: 115px;
  line-height: 1.6;
}
.field {
  display: block;
  margin-bottom: 19px;
}
.field > span {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 7px;
}
.field small {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 6px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 23px;
}
.error-text {
  font-size: 0.85rem;
  color: #ffa0a9;
  margin: 12px 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.text-link {
  color: #9fb7ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 23px;
}
.back-link:hover {
  color: #fff;
}
.back-link .icon {
  height: 16px;
  width: 16px;
}
@media (min-width: 1450px) {
  .topbar {
    padding-left: max(4.2%, calc((100% - 1300px) / 2));
    padding-right: max(4.2%, calc((100% - 1300px) / 2));
  }
  .feature-card {
    height: 350px;
  }
  .card-image {
    height: 170px;
  }
}
@media (max-width: 1150px) {
  .topbar {
    gap: 25px;
  }
  .desktop-nav {
    gap: 20px;
  }
  .header-search {
    width: 200px;
  }
  .header-actions {
    gap: 12px;
  }
  .feature-card {
    height: 300px;
  }
  .feature-copy {
    left: 17px;
    right: 17px;
  }
  .feature-copy h3 {
    font-size: 1.65rem;
  }
  .feature-bottom .tags .tag:nth-child(2) {
    display: none;
  }
  .filter-chip {
    padding: 8px 10px;
  }
  .select-wrap label {
    display: none;
  }
}
@media (max-width: 950px) {
  .header-search {
    display: none;
  }
  .topbar {
    height: 74px;
  }
  .feature-card {
    flex-basis: calc((100% - 18px) / 2);
    height: 320px;
  }
  .games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .category-tabs {
    max-width: 100%;
  }
  .filterbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .select-wrap {
    justify-content: flex-end;
  }
  .card-image {
    height: 145px;
  }
}
@media (max-width: 640px) {
  .topbar {
    height: 70px;
    padding: 0 20px;
    gap: 12px;
  }
  .brand {
    font-size: 1.27rem;
    gap: 8px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .desktop-nav {
    display: none;
  }
  .header-actions {
    gap: 12px;
  }
  .header-actions .btn {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.76rem;
  }
  .header-actions .avatar {
    width: 30px;
    height: 30px;
  }
  .page {
    padding: 24px 20px 96px;
  }
  .page-intro {
    margin-bottom: 20px;
    gap: 8px;
  }
  .page-intro h1 {
    font-size: 1.78rem;
  }
  .page-intro p {
    font-size: 0.82rem;
    max-width: 270px;
    line-height: 1.5;
  }
  .date-chip {
    display: none;
  }
  .mobile-search {
    display: flex;
    margin-bottom: 23px;
  }
  .search input {
    font-size: 16px;
    height: 43px;
  }
  .section-heading {
    margin-top: 20px;
    margin-bottom: 15px;
  }
  .section-heading h2 {
    font-size: 1.14rem;
    gap: 7px;
  }
  .section-heading h2 .icon {
    width: 19px;
    height: 19px;
  }
  .section-heading p {
    font-size: 0.75rem;
  }
  .carousel-controls .icon-button {
    width: 30px;
    height: 30px;
  }
  .featured-track {
    margin-right: -20px;
    padding-right: 20px;
    gap: 13px;
  }
  .feature-card {
    flex-basis: 89%;
    height: 322px;
    border-radius: 13px;
  }
  .feature-copy {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
  .feature-copy h3 {
    font-size: 1.95rem;
  }
  .feature-copy p {
    font-size: 0.8rem;
  }
  .feature-bottom .tags .tag:nth-child(2) {
    display: inline;
  }
  .carousel-dots {
    margin: 16px 0 23px;
  }
  .filterbar {
    padding: 13px 0;
    margin-bottom: 25px;
    gap: 12px;
  }
  .category-tabs {
    margin-right: -20px;
    padding-right: 20px;
    gap: 4px;
  }
  .filter-chip {
    font-size: 0.78rem;
    padding: 8px 10px;
  }
  .select-wrap {
    justify-content: space-between;
    gap: 10px;
  }
  .select-wrap select {
    flex: 1;
    font-size: 0.75rem;
    min-width: 0;
  }
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 21px 13px;
  }
  .card-image {
    height: 125px;
    border-radius: 9px;
  }
  .card-details {
    padding-top: 10px;
    gap: 3px;
  }
  .card-details h3 {
    font-size: 0.86rem;
  }
  .card-details p {
    font-size: 0.68rem;
  }
  .card-details > .icon-button {
    width: 24px;
    height: 27px;
  }
  .card-details > .icon-button .icon {
    width: 16px;
    height: 16px;
  }
  .game-card .tags {
    gap: 4px;
    margin-top: 8px;
  }
  .tag {
    font-size: 0.6rem;
    padding: 4px 5px;
  }
  .section-link {
    font-size: 0.74rem;
    gap: 4px;
  }
  .section-link .icon {
    width: 13px;
    height: 13px;
  }
  .game-section {
    margin-bottom: 30px;
  }
  .lower-banner {
    padding: 19px;
    gap: 12px;
    flex-wrap: wrap;
    margin: 28px 0 20px;
  }
  .banner-icon {
    width: 38px;
    height: 38px;
  }
  .lower-banner > div:nth-child(2) {
    flex: 1;
  }
  .lower-banner h3 {
    font-size: 0.98rem;
  }
  .lower-banner p {
    font-size: 0.74rem;
  }
  .lower-banner .btn {
    margin-left: 50px;
    font-size: 0.76rem;
  }
  .footer {
    align-items: flex-start;
    gap: 13px;
    flex-direction: column;
    font-size: 0.68rem;
    padding-top: 20px;
  }
  .footer-actions {
    gap: 16px;
  }
  .footer button {
    font-size: 0.68rem;
  }
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(66px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: #11151fed;
    backdrop-filter: blur(20px);
    border-top: 1px solid #303747aa;
    z-index: 30;
    justify-content: space-around;
  }
  .bottom-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    color: #8b93a7;
    font-size: 0.64rem;
  }
  .bottom-nav .icon {
    width: 21px;
    height: 21px;
  }
  .bottom-nav a.active {
    color: #88a8ff;
  }
  .bottom-nav a.active .icon {
    filter: drop-shadow(0 0 8px #577fff77);
  }
  #toast {
    bottom: calc(83px + env(safe-area-inset-bottom));
    width: max-content;
    text-align: center;
    font-size: 0.82rem;
  }
  dialog {
    padding: 22px;
  }
  .input {
    font-size: 16px;
  }
  .btn {
    font-size: 0.84rem;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .page-intro .btn {
    font-size: 0.75rem;
    padding: 9px 11px;
  }
  .empty {
    padding: 35px 15px;
  }
  .empty p {
    font-size: 0.82rem;
  }
}
.page-eyebrow {
  margin-bottom: 12px;
  color: #809dff;
}
.surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 25px;
}
.count-pill {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 0.8rem;
  color: #b4bfd9;
}
.detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.detail-heading h1 {
  font-size: 2.7rem;
  margin: 8px 0 14px;
}
.creator-byline {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 0.83rem;
  color: var(--muted);
}
.creator-byline strong {
  color: #d6ddec;
  font-weight: 500;
}
.creator-byline .avatar {
  width: 27px;
  height: 27px;
  font-size: 0.6rem;
}
.creator-byline .tags {
  margin-left: 8px;
}
.detail-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.detail-actions .save-button {
  width: 42px;
  height: 42px;
  border-radius: 9px;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  align-items: start;
}
.game-stage {
  position: relative;
  aspect-ratio: 16/10;
  min-height: 320px;
  background: #101526;
  border: 1px solid #3e47634d;
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
}
.game-stage .cover-art:after {
  content: "";
  position: absolute;
  inset: 0;
  background: #070b18a6;
}
.game-stage .cover-art img {
  filter: blur(1px);
}
.game-launch {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 20px;
}
.game-launch[hidden] {
  display: none;
}
.game-launch h2 {
  font-size: 2.3rem;
  letter-spacing: -1px;
  margin: 18px 0 10px;
}
.game-launch p {
  font-size: 0.85rem;
  color: #c3cadd;
  max-width: 340px;
  margin-bottom: 22px;
}
.game-launch small {
  font-size: 0.7rem;
  color: #aab7d5;
  margin-top: 16px;
}
.game-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 3;
  background: #101526;
}
.game-stage:fullscreen,
.game-stage.expanded {
  height: 100dvh;
  aspect-ratio: auto;
  border-radius: 0;
  width: 100%;
}
.game-stage.expanded {
  position: fixed;
  inset: 0;
  z-index: 90;
}
.game-stage.expanded + .game-toolbar {
  position: fixed;
  bottom: 10px;
  left: 15px;
  right: 15px;
  z-index: 91;
}
.game-stage.expanded + .game-toolbar > span {
  display: none;
}
.game-stage.expanded + .game-toolbar button {
  margin-left: auto;
  background: #171d30;
  padding: 10px;
  border-radius: 7px;
}
.game-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #8290ac;
  font-size: 0.73rem;
  padding: 13px 2px;
}
.game-toolbar > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.game-toolbar .icon {
  width: 15px;
  height: 15px;
}
.detail-about {
  padding: 23px 0 26px;
}
.detail-about h2 {
  font-size: 1.2rem;
}
.detail-about > p {
  font-size: 0.94rem;
  line-height: 1.8;
  margin: 13px 0 19px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.about-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.about-tags > .muted {
  margin-left: 6px;
  font-size: 0.75rem;
}
.rating-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  background: #171d25;
  border: 1px solid #7dcda720;
  border-radius: 11px;
}
.rating-area > div:first-child {
  display: flex;
  flex-direction: column;
}
.rating-area strong {
  color: #95e7bc;
  font-family: var(--display);
  font-size: 1.6rem;
}
.rating-area span {
  font-size: 0.73rem;
  color: var(--muted);
}
.rating-buttons {
  display: flex;
  gap: 8px;
}
.btn.selected {
  background: #244438;
  border-color: #4b9c79;
  color: #a9f1cd;
}
.prompt-panel {
  padding: 27px 24px;
  background: linear-gradient(145deg, #1a1d2e, #131720 65%);
  border: 1px solid #3b436245;
  border-radius: 14px;
}
.prompt-panel > .eyebrow {
  font-size: 0.63rem;
  color: #92a7e5;
}
.prompt-panel h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  margin: 15px 0 13px;
}
.prompt-panel h2 .icon {
  color: #a9a0f8;
}
.prompt-panel > p {
  font-size: 0.82rem;
  line-height: 1.8;
}
.tools-label {
  font-size: 0.61rem;
  letter-spacing: 1.4px;
  color: #939ab1;
  margin: 25px 0 10px;
}
.prompt-panel > .tags .tag {
  font-size: 0.72rem;
  padding: 6px 8px;
}
.prompt-list {
  margin-top: 25px;
}
.prompt-list details {
  border-top: 1px solid var(--line);
}
.prompt-list summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-size: 0.8rem;
}
.prompt-list summary::-webkit-details-marker {
  display: none;
}
.prompt-list summary span {
  font-size: 0.65rem;
  color: #909dde;
  background: #242a43;
  border-radius: 5px;
  padding: 3px 5px;
}
.prompt-list summary .icon {
  margin-left: auto;
  width: 14px;
  height: 14px;
  color: #767d90;
}
.prompt-list details[open] summary .icon {
  transform: rotate(180deg);
}
.prompt-list details p {
  background: #0e111b;
  padding: 14px;
  border: 1px solid #2d3340;
  border-radius: 8px;
  color: #a6b2cd;
  font:
    12px/1.9 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-bottom: 18px;
}
.prompt-note {
  display: flex;
  gap: 8px;
  font-size: 0.73rem;
  color: #8c94a9;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  line-height: 1.6;
}
.prompt-note .icon {
  width: 16px;
  height: 16px;
  margin-top: 3px;
}
.comments-section {
  margin-top: 34px;
}
.comments-section .section-heading {
  align-items: flex-start;
}
.comment-compose textarea {
  min-height: 100px;
}
.compose-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.compose-bottom > span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.74rem;
}
.compose-bottom .avatar {
  width: 26px;
  height: 26px;
  font-size: 0.6rem;
}
.compose-bottom .btn {
  font-size: 0.77rem;
  min-height: 36px;
}
.author-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.author-line > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.author-line strong {
  font-size: 0.8rem;
  font-weight: 600;
}
.author-line > div > span {
  color: #818ba2;
  font-size: 0.7rem;
}
.comment {
  border-bottom: 1px solid var(--line);
  padding: 23px 0;
}
.comment > p {
  font-size: 0.87rem;
  color: #b3bbcf;
  white-space: pre-wrap;
  margin: 12px 0 12px 44px;
  overflow-wrap: anywhere;
}
.comment.reply {
  border: 0;
  border-left: 2px solid #313c56;
  margin: 17px 0 0 43px;
  padding: 5px 0 5px 16px;
}
.comment-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: 44px;
}
.comment-actions button {
  font-size: 0.74rem;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #949db2;
  padding: 4px 0;
}
.comment-actions button .icon {
  height: 15px;
  width: 15px;
}
.comment-actions .reaction {
  border: 1px solid var(--line);
  background: #181e2b;
  padding: 3px 8px;
  border-radius: 5px;
}
.comment-actions .selected {
  color: #9cb7ff;
  background: #527dff18;
  border-color: #527dff55;
}
.reply-form {
  margin: 15px 0 0 44px;
}
.reply-form textarea {
  min-height: 80px;
  font-size: 0.84rem;
}
.reply-form > .btn {
  margin-top: 8px;
}
.quiet-empty {
  text-align: center;
  padding: 35px 15px;
  color: #8d98af;
  font-size: 0.84rem;
}
.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}
.community-tabs {
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 17px;
  margin-bottom: 20px;
}
.local-label {
  font-size: 0.66rem;
  color: #8d96ac;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 8px;
  margin-left: auto;
}
.forum-search {
  margin-bottom: 20px;
}
.forum-search input {
  height: 44px;
}
.forum-post {
  padding: 25px;
  background: #131720;
  border: 1px solid #282e3d;
  border-radius: 12px;
  margin-bottom: 16px;
}
.forum-post h2 {
  font-size: 1.25rem;
  margin: 20px 0 12px;
  line-height: 1.4;
  letter-spacing: -0.2px;
}
.forum-post h2 button {
  padding: 0;
  font: inherit;
  text-align: left;
}
.forum-post h2 button:hover {
  color: #a4bbff;
}
.post-body {
  color: #a5afc4;
  line-height: 1.8;
  font-size: 0.9rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.hashtag {
  padding: 0;
  display: inline;
  color: #8faaff;
  font: inherit;
}
.hashtag:hover {
  text-decoration: underline;
}
.post-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
}
.post-bottom > .small {
  font-size: 0.68rem;
}
.post-bottom .comment-actions {
  margin: 0;
}
.community-sidebar {
  display: flex;
  gap: 18px;
  flex-direction: column;
}
.community-note {
  background: linear-gradient(145deg, #1d253d, #151a26);
}
.community-note h2 {
  font-size: 1.4rem;
  margin: 17px 0 12px;
}
.community-note p {
  font-size: 0.84rem;
  line-height: 1.8;
  margin-bottom: 20px;
}
.community-note .section-link {
  font-size: 0.74rem;
}
.community-sidebar .surface > h3 {
  font-size: 0.9rem;
}
.trending-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 17px;
}
.trending-tags button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 0.82rem;
  color: #b0bdd9;
  padding: 7px 0;
}
.trending-tags button .icon {
  width: 14px;
  height: 14px;
  color: #626e85;
}
.community-footnote {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #7a879f;
  font-size: 0.7rem;
  padding: 0 15px;
}
.community-footnote .icon {
  width: 16px;
  height: 16px;
}
.topic-detail h2 {
  font-size: 1.4rem;
  margin: 22px 0 15px;
  line-height: 1.35;
}
.topic-detail > p {
  font-size: 0.9rem;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.topic-replies {
  margin: 10px 0 25px;
}
.chat-room {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.chat-room-heading {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.chat-room-heading p {
  font-size: 0.76rem;
  margin-top: 5px;
}
#chat-messages {
  height: 400px;
  overflow: auto;
  padding: 0 23px;
}
.chat-message {
  margin: 23px 0;
}
.chat-message > p {
  padding-left: 44px;
  font-size: 0.9rem;
  color: #bec9de;
  margin-top: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#chat-form {
  display: flex;
  gap: 10px;
  padding: 18px;
  border-top: 1px solid var(--line);
  background: #171d2a;
}
.library-grid {
  min-height: 300px;
  align-content: start;
}
.profile-cover {
  height: 200px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  background: #202944;
}
.profile-cover > img,
.profile-cover-default {
  height: 100%;
  width: 100%;
}
.profile-cover-default {
  background:
    radial-gradient(ellipse at 80% 80%, #69539c77, transparent 55%),
    radial-gradient(ellipse at 20% 0%, #4478a999, transparent 70%),
    linear-gradient(110deg, #1b2540, #302e54);
}
.profile-cover .pill {
  position: absolute;
  bottom: 20px;
  right: 22px;
  font-size: 0.59rem;
  letter-spacing: 1px;
}
.profile-identity {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -44px 25px 0;
  position: relative;
}
.profile-identity > .btn {
  margin-top: 65px;
}
.profile-avatar .avatar {
  width: 110px;
  height: 110px;
  font-size: 2rem;
  border-width: 6px;
}
.profile-info {
  padding: 13px 25px 32px;
  max-width: 650px;
}
.profile-info h1 {
  font-size: 2rem;
}
.profile-handle {
  color: #8593af;
  font-size: 0.85rem;
  display: inline-block;
  margin: 6px 0 14px;
}
.profile-info > p {
  font-size: 0.94rem;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.profile-stats {
  display: flex;
  gap: 27px;
  margin-top: 24px;
  font-size: 0.79rem;
  color: #8e9ab2;
}
.profile-stats strong {
  color: #e8edf8;
  font-size: 0.95rem;
  margin-right: 4px;
}
.graveyard {
  background: #151720;
  border: 1px solid #363444;
  border-radius: 14px;
  padding: 26px;
}
.graveyard .section-heading {
  margin-top: 0;
}
.graveyard .eyebrow {
  font-size: 0.59rem;
  color: #af9cae;
  margin-bottom: 10px;
}
.graveyard h2 {
  font-size: 1.25rem;
}
.graveyard .games-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.local-profile-note {
  display: flex;
  gap: 7px;
  justify-content: center;
  align-items: center;
  font-size: 0.75rem;
  margin-top: 30px;
}
.local-profile-note .icon {
  width: 16px;
  height: 16px;
}
.edit-banner {
  height: 120px;
  border-radius: 10px;
  background: linear-gradient(110deg, #274366, #594877);
  display: grid;
  place-items: center;
  color: #c4cfe1;
  font-size: 0.8rem;
  overflow: hidden;
}
.edit-banner img {
  width: 100%;
  height: 100%;
}
.image-edit-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 12px 0;
}
.image-edit-actions .btn,
.edit-avatar-row .btn {
  cursor: pointer;
}
.edit-avatar-row {
  display: flex;
  gap: 15px;
  align-items: center;
  margin: 18px 0;
}
.edit-avatar-row .avatar {
  width: 75px;
  height: 75px;
  font-size: 1.4rem;
}
.upload-heading {
  text-align: center;
  margin: 5px 0 40px;
}
.upload-heading h1 {
  font-size: 2.3rem;
}
.upload-heading p {
  font-size: 0.9rem;
  margin-top: 12px;
}
.upload-layout {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 35px;
}
.upload-steps {
  list-style: none;
  padding: 5px 0;
  margin: 0;
}
.upload-steps li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  color: #717d95;
  font-size: 0.86rem;
  min-height: 88px;
  position: relative;
}
.upload-steps li:not(:last-child):before {
  content: "";
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: 5px;
  width: 1px;
  background: var(--line);
}
.upload-steps li > span {
  border: 1px solid #343d53;
  border-radius: 50%;
  background: #161d2c;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  flex-shrink: 0;
}
.upload-steps li > span .icon {
  width: 17px;
  height: 17px;
}
.upload-steps li > div {
  padding-top: 4px;
}
.upload-steps li small {
  display: block;
  font-size: 0.72rem;
  color: #707c93;
  margin-top: 4px;
}
.upload-steps li.current {
  color: #e3eaff;
}
.upload-steps li.current > span {
  background: var(--blue);
  border-color: #7698ff;
  color: white;
  box-shadow: 0 0 22px #527dff25;
}
.upload-steps li.complete > span {
  color: #96dfb7;
  border-color: #54785c;
  background: #14291f;
}
.creator-note {
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 8px;
}
.creator-note .icon {
  width: 17px;
  height: 17px;
  color: #a2a4c5;
}
.creator-note p {
  font-size: 0.75rem;
  line-height: 1.8;
}
.upload-panel {
  padding: 33px;
  background: #151a25;
  border: 1px solid #2c3446;
  border-radius: 15px;
  scroll-margin-top: 20px;
}
.step-title {
  margin-bottom: 30px;
}
.step-title .eyebrow {
  font-size: 0.62rem;
  color: #8fa7ef;
}
.step-title h2 {
  font-size: 1.55rem;
  margin: 12px 0 9px;
}
.step-title p {
  font-size: 0.84rem;
}
.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  margin-top: 28px;
}
.wizard-actions > div {
  display: flex;
  gap: 9px;
}
.tools-field {
  border: 0;
  padding: 0;
  margin: 0 0 26px;
}
.tools-field legend {
  font-size: 0.83rem;
  margin-bottom: 12px;
}
.tools-field legend > .muted {
  font-size: 0.74rem;
}
.tool-search {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  padding: 0 12px;
  border: 1px solid #384158;
  border-radius: 11px;
  background: #151b29;
}
.tool-search .icon { width: 17px; color: var(--muted); }
.tool-search .input { border: 0; padding-inline: 0; background: transparent; }
.tool-catalog {
  max-height: 390px;
  overflow: auto;
  padding: 3px 10px 10px 2px;
  scrollbar-color: #46536f transparent;
}
.tool-group + .tool-group { margin-top: 19px; }
.tool-group h3 {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.other-tool { margin-top: 18px; }
.tool-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tool-options label {
  position: relative;
  cursor: pointer;
}
.tool-options input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.tool-options span {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #384158;
  background: #1e2638;
  color: #aebbd6;
  font-size: 0.78rem;
  border-radius: 7px;
  padding: 9px 12px;
  pointer-events: none;
}
.tool-options .icon {
  width: 14px;
  height: 14px;
}
.tool-options input:checked + span {
  color: #c4d3ff;
  background: #527dff25;
  border-color: #688cff;
}
.tool-options input:focus-visible + span {
  outline: 2px solid white;
  outline-offset: 3px;
}
.prompt-input {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.82rem;
}
.upload-zone {
  border: 1px dashed #455372;
  border-radius: 11px;
  background: #111827;
  text-align: center;
  padding: 25px 20px;
  margin-bottom: 19px;
}
.upload-zone:focus-within {
  outline: 2px solid #8eacff;
  outline-offset: 3px;
}
.upload-zone.dragging {
  border-color: #9ab6ff;
  background: #284278;
}
.upload-zone label {
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
}
.upload-zone label > .icon {
  width: 31px;
  height: 31px;
  color: #92aaf0;
  margin: 0 0 8px;
}
.upload-zone strong {
  font-size: 0.91rem;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.upload-zone span {
  font-size: 0.79rem;
  color: #8797b6;
}
.upload-zone small {
  font-size: 0.69rem;
  color: #7a88a2;
  margin-top: 6px;
}
.upload-zone > .section-link {
  font-size: 0.73rem;
  margin-top: 12px;
}
.thumbnail-zone {
  padding: 20px;
}
.thumbnail-zone label > .icon {
  width: 25px;
  height: 25px;
}
.info-note {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  background: #29375435;
  color: #8fa9e5;
}
.info-note > .icon {
  width: 17px;
  height: 17px;
  margin-top: 2px;
}
.info-note p {
  font-size: 0.74rem;
  line-height: 1.7;
  color: #9dabca;
}
.submission-review {
  display: flex;
  gap: 17px;
  align-items: center;
  background: #1c2538;
  padding: 22px;
  border: 1px solid #3b496b66;
  border-radius: 12px;
}
.review-game-icon {
  background: linear-gradient(145deg, #5469b766, #8561a666);
  border-radius: 12px;
  width: 65px;
  height: 65px;
  display: grid;
  place-items: center;
  color: #b8c5ff;
  flex-shrink: 0;
}
.review-game-icon .icon {
  width: 34px;
  height: 34px;
}
.submission-review h3 {
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}
.submission-review p {
  font-size: 0.73rem;
  margin: 5px 0 10px;
  overflow-wrap: anywhere;
}
.submission-review > div {
  min-width: 0;
}
.review-description {
  font-size: 0.86rem;
  line-height: 1.8;
  margin: 20px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.review-metadata {
  font-size: 0.78rem;
  margin: 20px 0;
}
.review-metadata > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.review-metadata dt {
  color: #8f9db7;
}
.review-metadata dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
  max-width: 60%;
}
.draft-choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #222233;
  border: 1px solid #413b58;
  border-radius: 9px;
  padding: 17px;
  margin: 25px 0;
  cursor: pointer;
}
.draft-choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  flex-shrink: 0;
}
.draft-choice strong {
  font-size: 0.85rem;
}
.draft-choice small {
  display: block;
  margin-top: 5px;
  color: #a29bb7;
  font-size: 0.76rem;
  line-height: 1.7;
}
.install-steps {
  display: flex;
  flex-direction: column;
  gap: 17px;
  background: #1d2435;
  border: 1px solid #35405a;
  border-radius: 12px;
  padding: 20px;
}
.install-steps p {
  font-size: 0.9rem;
  color: #bcc8e4;
}
.install-steps .icon {
  width: 18px;
  height: 18px;
  color: #9eb8ff;
}
.image-edit-actions label:focus-within,
.edit-avatar-row label:focus-within {
  outline: 2px solid white;
  outline-offset: 3px;
}
@media (max-width: 1000px) {
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 20px;
  }
  .prompt-panel {
    padding: 23px 18px;
  }
  .community-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 20px;
  }
  .community-sidebar .surface {
    padding: 21px;
  }
  .graveyard .games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .upload-layout {
    grid-template-columns: 195px minmax(0, 1fr);
    gap: 25px;
  }
}
@media (max-width: 800px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .prompt-panel {
    grid-row: 2;
  }
  .community-layout {
    grid-template-columns: 1fr;
  }
  .community-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .community-footnote {
    grid-column: 1/-1;
  }
  .game-stage {
    aspect-ratio: 16/10;
  }
  .detail-heading h1 {
    font-size: 2.25rem;
  }
  .upload-layout {
    grid-template-columns: 1fr;
  }
  .upload-sidebar {
    display: block;
  }
  .upload-steps {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
  }
  .upload-steps li {
    min-height: auto;
    gap: 8px;
    align-items: center;
    font-size: 0.74rem;
  }
  .upload-steps li > div {
    padding: 0;
  }
  .upload-steps li small {
    display: none;
  }
  .upload-steps li:not(:last-child):before {
    display: none;
  }
  .creator-note {
    display: none;
  }
  .upload-panel {
    padding: 30px;
  }
}
@media (max-width: 640px) {
  .page-eyebrow {
    font-size: 0.62rem;
  }
  .detail-heading {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
  }
  .detail-heading h1 {
    font-size: 2.25rem;
    margin: 8px 0 12px;
  }
  .detail-heading .eyebrow {
    font-size: 0.6rem;
  }
  .creator-byline {
    font-size: 0.75rem;
  }
  .creator-byline .tags {
    margin: 3px 0 0;
    width: 100%;
  }
  .detail-actions {
    gap: 9px;
  }
  .detail-actions .btn {
    font-size: 0.76rem;
    min-height: 36px;
    padding: 8px 12px;
  }
  .detail-actions .save-button {
    width: 36px;
    height: 36px;
  }
  .detail-layout {
    gap: 24px;
  }
  .game-stage {
    min-height: 370px;
    aspect-ratio: auto;
  }
  .game-launch h2 {
    font-size: 2rem;
  }
  .game-launch p {
    font-size: 0.8rem;
  }
  .game-launch small {
    font-size: 0.65rem;
  }
  .game-toolbar {
    font-size: 0.65rem;
  }
  .game-toolbar .section-link {
    font-size: 0.68rem;
  }
  .detail-about {
    padding: 19px 0 24px;
  }
  .detail-about > p {
    font-size: 0.9rem;
  }
  .rating-area {
    padding: 16px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .rating-area strong {
    font-size: 1.4rem;
  }
  .rating-area span {
    font-size: 0.66rem;
  }
  .rating-buttons {
    gap: 6px;
  }
  .rating-buttons .btn {
    font-size: 0.68rem;
    min-height: 33px;
    padding: 7px 8px;
  }
  .rating-buttons .icon {
    width: 14px;
    height: 14px;
  }
  .comments-section .section-heading {
    flex-direction: column;
    gap: 6px;
  }
  .comments-section .section-heading > .small {
    font-size: 0.73rem;
  }
  .compose-bottom > span > span:last-child {
    display: none;
  }
  .compose-bottom .btn {
    font-size: 0.73rem;
  }
  .comment > p {
    font-size: 0.84rem;
    margin-left: 0;
  }
  .comment-actions {
    margin-left: 0;
  }
  .comment.reply {
    margin-left: 20px;
    padding-left: 13px;
  }
  .reply-form {
    margin-left: 0;
  }
  .reply-form textarea {
    font-size: 16px;
  }
  .prompt-panel {
    padding: 24px;
  }
  .community-layout {
    gap: 25px;
  }
  .community-tabs {
    gap: 3px;
  }
  .community-tabs .filter-chip {
    font-size: 0.75rem;
  }
  .community-tabs .local-label {
    font-size: 0.6rem;
    padding: 3px 6px;
  }
  .forum-post {
    padding: 20px;
  }
  .forum-post h2 {
    font-size: 1.17rem;
  }
  .post-body {
    font-size: 0.86rem;
  }
  .community-sidebar {
    grid-template-columns: 1fr;
  }
  .community-note {
    display: none;
  }
  .community-sidebar .surface {
    padding: 22px;
  }
  .trending-tags {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 14px;
  }
  .trending-tags button {
    font-size: 0.75rem;
  }
  .trending-tags button .icon {
    display: none;
  }
  .post-bottom .small {
    display: none;
  }
  .profile-cover {
    height: 160px;
    border-radius: 12px;
  }
  .profile-cover .pill {
    left: 15px;
    right: auto;
    bottom: 13px;
    font-size: 0.48rem;
    letter-spacing: 0.6px;
  }
  .profile-identity {
    margin: -33px 12px 0;
    align-items: flex-start;
  }
  .profile-avatar .avatar {
    width: 88px;
    height: 88px;
    font-size: 1.5rem;
  }
  .profile-identity > .btn {
    margin-top: 47px;
    font-size: 0.72rem;
    min-height: 35px;
    padding: 8px 10px;
  }
  .profile-info {
    padding: 17px 12px 24px;
  }
  .profile-info h1 {
    font-size: 1.75rem;
  }
  .profile-info > p {
    font-size: 0.86rem;
  }
  .profile-handle {
    font-size: 0.78rem;
  }
  .profile-stats {
    gap: 16px;
    font-size: 0.68rem;
    flex-wrap: wrap;
    margin-top: 20px;
  }
  .profile-stats strong {
    font-size: 0.85rem;
  }
  .graveyard {
    padding: 19px 15px;
    margin: 0 -3px;
  }
  .graveyard .section-heading {
    align-items: flex-start;
  }
  .graveyard h2 {
    font-size: 1.13rem;
    line-height: 1.5;
  }
  .graveyard .section-heading p {
    font-size: 0.72rem;
    line-height: 1.6;
  }
  .graveyard .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .graveyard .eyebrow {
    font-size: 0.51rem;
  }
  .graveyard .count-pill {
    font-size: 0.65rem;
    padding: 4px 8px;
  }
  .local-profile-note {
    font-size: 0.66rem;
  }
  .edit-avatar-row {
    gap: 10px;
  }
  .edit-avatar-row .btn {
    font-size: 0.7rem;
    padding: 6px 9px;
  }
  .edit-avatar-row > .section-link {
    font-size: 0.71rem;
  }
  .upload-heading {
    text-align: left;
    margin: 4px 0 28px;
  }
  .upload-heading h1 {
    font-size: 1.85rem;
    line-height: 1.2;
  }
  .upload-heading p {
    font-size: 0.82rem;
    line-height: 1.7;
  }
  .upload-layout {
    gap: 7px;
  }
  .upload-steps {
    margin: 0 0 22px;
    gap: 5px;
  }
  .upload-steps li {
    flex-direction: column;
    gap: 8px;
    font-size: 0.61rem;
    text-align: center;
    align-items: center;
    flex: 1;
  }
  .upload-steps li > span {
    width: 30px;
    height: 30px;
    font-size: 0.7rem;
  }
  .upload-panel {
    padding: 23px 20px;
    border-radius: 12px;
  }
  .step-title {
    margin-bottom: 24px;
  }
  .step-title h2 {
    font-size: 1.35rem;
  }
  .step-title p {
    font-size: 0.78rem;
  }
  .step-title .eyebrow {
    font-size: 0.56rem;
  }
  .field > span {
    font-size: 0.81rem;
  }
  .field small {
    font-size: 0.71rem;
  }
  .wizard-actions > .small {
    font-size: 0.7rem;
  }
  .wizard-actions .btn {
    font-size: 0.76rem;
    padding: 9px 12px;
  }
  .tool-options {
    gap: 7px;
  }
  .tool-options span {
    font-size: 0.72rem;
    padding: 9px 10px;
  }
  .tools-field legend {
    font-size: 0.78rem;
  }
  .tools-field legend > .muted {
    font-size: 0.64rem;
  }
  .prompt-input {
    font-size: 16px;
  }
  .upload-zone {
    padding: 23px 13px;
  }
  .upload-zone strong {
    font-size: 0.83rem;
  }
  .upload-zone span {
    font-size: 0.71rem;
  }
  .info-note {
    padding: 12px;
    gap: 8px;
  }
  .info-note p {
    font-size: 0.7rem;
  }
  .submission-review {
    padding: 16px;
    gap: 13px;
  }
  .submission-review h3 {
    font-size: 1rem;
  }
  .review-game-icon {
    width: 46px;
    height: 46px;
    border-radius: 9px;
  }
  .review-game-icon .icon {
    width: 27px;
    height: 27px;
  }
  .review-description {
    font-size: 0.82rem;
  }
  .draft-choice {
    padding: 13px;
  }
  .draft-choice small {
    font-size: 0.72rem;
  }
  .install-steps {
    padding: 17px;
  }
  .install-steps p {
    font-size: 0.85rem;
  }
}
/* Keep dense metadata readable without changing the mobile card hierarchy. */
.tag,
.pill,
.rating-pill,
.eyebrow,
.feature-copy .eyebrow,
.feature-top .pill,
.feature-card .tag,
.game-card .tag,
.profile-cover .pill,
.graveyard .eyebrow,
.tools-label,
.step-title .eyebrow {
  font-size: 0.75rem;
}
.feature-copy .eyebrow {
  letter-spacing: 0.75px;
}
.feature-top .pill {
  letter-spacing: 0;
}
.feature-card .tag {
  padding: 4px 6px;
}
.feature-bottom .btn {
  font-size: 0.78rem;
}
.card-details p,
.author-line > div > span,
.profile-handle,
.profile-stats,
.comment-actions button,
.footer,
.footer button,
.footer-actions,
.game-toolbar,
.game-toolbar .section-link,
.local-profile-note,
.local-label,
.upload-steps li,
.field small,
.info-note p,
.post-bottom > .small,
.community-footnote,
.upload-zone span,
.upload-zone small,
.draft-choice small,
.review-metadata,
.submission-review p {
  font-size: 0.75rem;
}
.carousel-dots i:first-child {
  width: 4px;
  background: #3a3f4d;
}
.carousel-dots i.current {
  width: 17px;
  background: #6186ff;
}
.profile-cover .pill {
  max-width: calc(100% - 30px);
  line-height: 1.4;
}
.feature-copy .eyebrow {
  display: block;
  max-width: 100%;
}
.feature-copy .tags {
  gap: 4px;
}
.feature-copy .tag {
  font-size: 0.7rem;
}
.carousel-controls button:disabled {
  cursor: default;
}
@media (min-width: 951px) {
  .carousel-controls {
    display: none;
  }
  .carousel-dots {
    visibility: hidden;
    margin: 10px 0 15px;
  }
}
@media (max-width: 640px) {
  .feature-copy .eyebrow {
    font-size: 0.69rem;
  }
  .feature-top .pill {
    font-size: 0.68rem;
  }
  .tag {
    white-space: normal;
  }
  .card-details p {
    line-height: 1.6;
  }
  .profile-cover .pill {
    font-size: 0.65rem;
  }
  .upload-steps li {
    font-size: 0.66rem;
  }
  .graveyard .eyebrow {
    font-size: 0.65rem;
  }
  .page-intro:has(.btn) {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .feature-bottom .btn {
    padding: 7px 10px;
  }
  .feature-bottom .tags {
    max-width: 60%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.usage-track { position: relative; }
.usage-track .usage-reserved { position:absolute;top:0;background:repeating-linear-gradient(45deg,#e0b46e,#e0b46e 3px,#665945 3px,#665945 6px); }
.usage-meter.show-details .usage-tooltip { opacity:1;visibility:visible;transform:translateY(0); }
.usage-tooltip { pointer-events:none;max-width:min(390px,calc(100vw - 56px));z-index:30; }

.compatibility-alert {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 15px;
  border: 1px solid rgba(255, 190, 92, 0.32);
  border-radius: 14px;
  background: rgba(103, 68, 19, 0.2);
}
.compatibility-alert > svg { flex: 0 0 auto; color: #ffc66d; margin-top: 2px; }
.compatibility-alert p { margin: 4px 0 11px; color: var(--muted); }
.compatibility-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 14px; }
.compatibility-details { border-top: 1px solid var(--line); padding-top: 14px; }
.compatibility-details summary { cursor: pointer; color: var(--muted); font-weight: 650; }
.compatibility-details ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.compatibility-details li { display: grid; gap: 3px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.04); }
.compatibility-details li span { color: var(--muted); font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.live-upload-progress { padding:16px;margin-top:20px;background:#151c29;border-radius:12px; }
.live-upload-progress progress { display:block;width:100%;height:12px;accent-color:#a1e8c5;margin:12px 0; }
.live-upload-progress p { font-size:0.85rem;color:#bdc9de; }
.live-google-auth { min-height:65px;display:grid;gap:16px;margin:22px 0; }
.admin-panel { padding:24px;margin:20px 0;overflow-wrap:anywhere; }
.admin-panel article { border-bottom:1px solid #344056;padding:18px 0; }
.admin-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:22px 0 48px; }
.admin-grid .admin-panel { margin:0;min-width:0; }
.admin-wide { grid-column:1/-1; }
.admin-list { display:grid;gap:0; }
.admin-panel article { display:flex;align-items:flex-start;justify-content:space-between;gap:20px; }
.admin-panel article:last-child { border-bottom:0; }
.admin-item-main { display:grid;gap:5px;min-width:0; }
.admin-item-main p { margin:4px 0;white-space:pre-wrap; }
.admin-item-main small,.admin-item-main span { color:var(--muted); }
.admin-actions { display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end;flex:0 0 auto; }
.role-badge { color:#a9c7ff;font-size:.72em;font-weight:800;letter-spacing:.03em;white-space:nowrap; }
.role-badge.admin { color:#70f5ce;text-shadow:0 0 16px rgba(60,245,190,.28); }
.account-warning { border:1px solid rgba(255,183,77,.4);background:rgba(78,48,15,.38);border-radius:18px;padding:18px 20px;margin:18px 0; }
.account-warning>div { display:flex;align-items:center;gap:9px;color:#ffd28a; }
.account-warning time { margin-left:auto;color:var(--muted);font-size:.8rem; }
.account-warning p { margin:10px 0 0;white-space:pre-wrap; }
.admin-usage .admin-track { background:linear-gradient(90deg,#4de8bf,#8c7cff,#4de8bf);background-size:200% 100%;animation:adminStorage 3s linear infinite; }
@keyframes adminStorage { to { background-position:200% 0; } }

@media (max-width:760px) {
  .admin-grid { grid-template-columns:1fr;gap:14px; }
  .admin-wide { grid-column:auto; }
  .admin-panel { padding:18px; }
  .admin-panel article { flex-direction:column;gap:12px; }
  .admin-actions { justify-content:flex-start; }
}
.engine-progress.indeterminate > div { width:35%!important;animation:engine-loading 1.3s ease-in-out infinite alternate; }
@keyframes engine-loading { from{transform:translateX(0)} to{transform:translateX(180%)} }
@media(prefers-reduced-motion:reduce){.engine-progress.indeterminate > div{animation:none;width:100%!important;opacity:.5}}

/* Google identity, account storage and membership foundation. */
.google-signin {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid #d8dce5;
  border-radius: 12px;
  background: #fff;
  color: #202124;
}
.google-signin > span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #4285f4;
  border: 2px solid #4285f4;
  font: 700 0.82rem Arial, sans-serif;
}
.auth-assurance {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff03;
}
.auth-assurance span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c1c7d6;
  font-size: 0.8rem;
}
.google-account-line {
  display: block;
  color: #91a5d4;
  font-size: 0.76rem;
  margin-top: 7px;
}
.usage-card {
  position: relative;
  max-width: 920px;
  margin: 8px 25px 38px;
  padding: 24px;
  border: 1px solid #35415b;
  border-radius: 18px;
  background:
    radial-gradient(circle at 96% 0%, #527dff20, transparent 36%),
    linear-gradient(135deg, #171d2a, #11151e);
}
.usage-card.compact {
  margin: 0 0 26px;
  padding: 18px;
}
.usage-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}
.usage-heading h2,
.usage-heading h3 {
  margin: 5px 0 0;
}
.usage-heading h3 {
  font-size: 1rem;
}
.usage-meter {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}
.usage-track {
  display: block;
  height: 12px;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid #56627a55;
  background: #070a10;
}
.usage-track i {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  background: linear-gradient(90deg, #527dff, #79e2c0);
  box-shadow: 0 0 18px #5a8fff85;
}
.usage-values {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}
.usage-values strong {
  color: #dce4f8;
}
.usage-tooltip {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(100% + 14px);
  width: min(360px, calc(100vw - 44px));
  padding: 16px;
  display: grid;
  gap: 6px;
  border: 1px solid #566889;
  border-radius: 12px;
  background: #171d29;
  box-shadow: 0 20px 60px #000b;
  color: #cbd2e2;
  font-size: 0.76rem;
  line-height: 1.5;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 7px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s;
}
.usage-tooltip:after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #171d29;
  border-right: 1px solid #566889;
  border-bottom: 1px solid #566889;
  transform: translate(-50%, -5px) rotate(45deg);
}
.usage-tooltip strong {
  color: #fff;
  font-size: 0.83rem;
}
.usage-tooltip small {
  color: #8f99ad;
  margin-top: 5px;
}
.usage-meter:hover .usage-tooltip,
.usage-meter:focus-visible .usage-tooltip,
.usage-meter:focus .usage-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.usage-rule {
  margin: 16px 0 0;
  color: #9da7ba;
  font-size: 0.76rem;
}
.billing-intro {
  align-items: flex-start;
}
.secure-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid #50649166;
  border-radius: 30px;
  background: #1d2942;
  color: #b9caff;
  font-size: 0.73rem;
}
.secure-chip svg {
  width: 16px;
}
.plan-explainer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 0 0 28px;
}
.plan-explainer article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.plan-explainer span,
.plan-name {
  color: #91a5d4;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.plan-explainer h2 {
  margin: 7px 0 8px;
  font-size: 1.05rem;
}
.plan-explainer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.plan-card {
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(145deg, #171b25, #11141c);
}
.plan-card.current {
  border-color: #6386f4;
  box-shadow: inset 0 0 30px #527dff12;
}
.plan-card > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.plan-card h2 {
  margin: 25px 0 2px;
  font-size: 2rem;
}
.plan-card h2 small {
  color: var(--muted);
  font-size: 0.72rem;
}
.plan-card > strong {
  color: #c5ccda;
  font-size: 0.86rem;
}
.plan-card ul {
  display: grid;
  gap: 9px;
  padding-left: 18px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.plan-card .btn {
  margin-top: auto;
}
.billing-notice {
  display: flex;
  gap: 14px;
  margin-top: 25px;
  padding: 18px;
  border: 1px solid #405076;
  border-radius: 14px;
  background: #172036;
}
.billing-notice.compact {
  margin: 20px 0 0;
}
.billing-notice > svg {
  flex: 0 0 auto;
  color: #9fb5f4;
}
.billing-notice p {
  margin: 4px 0 0;
  color: #a9b1c2;
  font-size: 0.78rem;
}
.plan-confirm {
  display: grid;
  gap: 7px;
  padding: 20px;
  border-radius: 14px;
  background: #ffffff05;
}
.plan-confirm strong {
  font-size: 1.5rem;
}
.plan-confirm p {
  color: var(--muted);
  font-size: 0.8rem;
}
.project-management {
  display: grid;
  gap: 10px;
  margin-top: 15px;
}
.project-management .project-update {
  margin-top: 0;
}
.danger-link {
  color: #ee969c;
  font-size: 0.72rem;
  text-align: left;
}
.btn.danger {
  border-color: #cf5f68;
  background: #ad3f49;
  color: white;
}
.package-zone {
  border-color: #5d7ad26b;
  background: linear-gradient(145deg, #17223b, #121620);
}

@media (min-width: 1080px) {
  .usage-card:not(.compact) {
    margin-inline: 25px;
  }
}
@media (max-width: 900px) {
  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .usage-card {
    margin: 5px 0 30px;
    padding: 19px;
  }
  .usage-heading {
    align-items: flex-start;
  }
  .usage-heading .section-link {
    font-size: 0.7rem;
  }
  .usage-values {
    font-size: 0.7rem;
  }
  .usage-tooltip {
    left: 0;
    width: 100%;
    transform: translate(0, 7px);
  }
  .usage-tooltip:after {
    left: 25%;
  }
  .usage-meter:hover .usage-tooltip,
  .usage-meter:focus-visible .usage-tooltip,
  .usage-meter:focus .usage-tooltip {
    transform: translate(0, 0);
  }
  .plan-explainer,
  .plans-grid {
    grid-template-columns: 1fr;
  }
  .plan-card {
    min-height: 0;
  }
  .secure-chip {
    align-self: flex-start;
  }
}
@media (max-width: 640px) {
  .bottom-nav a {
    font-size: 0.75rem;
  }
}
@media (max-width: 360px) {
  .header-actions > a[aria-label="Your profile"] {
    display: none;
  }
  .topbar {
    gap: 8px;
  }
  .brand {
    font-size: 1.18rem;
  }
}

/* Device-aware discovery stays separate from genre/category filters. */
.device-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0 0 28px;
}
.device-filter {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  border: 1px solid #30374a;
  border-radius: 12px;
  background: #141a27;
}
.device-filter-button {
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #a6b1ca;
  font-size: 0.875rem;
  font-weight: 550;
}
.device-filter-button:hover {
  background: #252f47;
  color: #fff;
}
.device-filter-button.active {
  background: #334876;
  border-color: #6b8ee75c;
  box-shadow: 0 2px 10px #03081735;
  color: #edf2ff;
}
.device-toolbar > p {
  font-size: 0.8rem;
  color: #939fba;
}
.device-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid #93b6ff40;
  border-radius: 6px;
  background: #121b30ef;
  color: #b8cdff;
  font-size: 0.75rem;
  line-height: 1.2;
}
.device-badge .icon {
  width: 13px;
  height: 13px;
}
.device-mobile {
  background: #102720ef;
  color: #a1e1be;
  border-color: #81dba536;
}
.device-universal {
  background: #211c35ef;
  color: #d4c4ff;
  border-color: #c0a0ff36;
}
.card-device {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 1;
}
.device-warning {
  background: linear-gradient(135deg, #131c36ed, #151624e8);
  backdrop-filter: blur(10px);
  border: 1px solid #8291c535;
}
.device-warning h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.device-warning > p {
  max-width: 410px;
  color: #d3dcef;
  font-size: 1rem;
  line-height: 1.7;
}
.device-warning > small {
  max-width: 300px;
  line-height: 1.7;
}
/* On PCs, the shell uses the available width and gives the game more space. */
@media (min-width: 1024px) {
  .page {
    max-width: 1600px;
    padding: 46px clamp(32px, 3.5vw, 56px) 48px;
  }
  .topbar {
    height: 88px;
    padding-inline: max(clamp(32px, 3.5vw, 56px), calc((100% - 1488px) / 2));
    gap: clamp(24px, 2.2vw, 40px);
  }
  .page-intro {
    margin-bottom: 32px;
  }
  .page-intro h1 {
    font-size: clamp(2.2rem, 3vw, 2.8rem);
  }
  .page-intro p {
    font-size: 1rem;
  }
  .featured-track {
    gap: 24px;
  }
  .feature-card {
    flex-basis: calc((100% - 48px) / 3);
    height: clamp(330px, 26vw, 400px);
  }
  .feature-copy {
    left: 24px;
    right: 24px;
    bottom: 25px;
  }
  .feature-copy h3 {
    font-size: clamp(1.85rem, 2.2vw, 2.35rem);
  }
  .games-grid {
    gap: 30px 24px;
  }
  .card-image {
    height: auto;
    aspect-ratio: 16 / 10;
  }
  .card-details {
    padding-top: 16px;
  }
  .card-details h3 {
    font-size: 1.05rem;
  }
  .game-section {
    margin-bottom: 46px;
  }
  .section-heading {
    margin-bottom: 22px;
  }
  .section-heading h2 {
    font-size: 1.5rem;
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 36px;
  }
  .game-stage {
    aspect-ratio: 16 / 10;
    min-height: 450px;
  }
  .game-stage:fullscreen {
    min-height: 100dvh;
  }
  .upload-layout {
    max-width: 1100px;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 52px;
  }
  .upload-panel {
    padding: 40px;
  }
  .community-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 36px;
  }
}
@media (max-width: 640px) {
  .device-toolbar {
    gap: 9px;
    margin-bottom: 23px;
  }
  .device-filter {
    width: 100%;
    padding: 4px;
    gap: 3px;
  }
  .device-filter-button {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 5px;
    font-size: 0.75rem;
    line-height: 1.45;
  }
  .device-toolbar > p {
    font-size: 0.75rem;
  }
  .card-device {
    top: 8px;
    left: 8px;
  }
  .device-badge {
    padding: 4px 6px;
  }
  .device-warning {
    padding: 26px 20px;
  }
  .device-warning > p {
    font-size: 0.94rem;
  }
}
/* Project discovery, releases, and the production launch canvas. */
.classification-filter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.classification-filter button {
  text-align: left;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(120deg, #171c29, #11151f);
  transition:
    border-color 0.2s,
    background 0.2s;
}
.classification-filter button.active {
  border-color: #7394ff;
  background: linear-gradient(120deg, #243355, #17213b);
  box-shadow: inset 0 0 24px #537dff0d;
}
.classification-filter button > span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
}
.classification-filter button small {
  display: block;
  color: var(--muted);
  margin: 6px 0 0 28px;
  font-size: 0.78rem;
}
.classification-filter button.active small {
  color: #b3c5fc;
}
.project-card-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 10px;
  font-size: 0.7rem;
  color: var(--muted);
}
.project-card-meta + .project-card-meta {
  margin-top: 4px;
}
.wip-text {
  color: #eab77a;
}
.release-metadata {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0 0 24px;
  color: #b7bece;
  font-size: 0.8rem;
}
.version-badge {
  border: 1px solid #577bed6b;
  border-radius: 8px;
  background: #27396770;
  color: #b7caff;
  font-weight: 700;
  padding: 5px 10px;
}
.owner-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.78rem;
}
.detail-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.download-cluster {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.download-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.download-cluster small {
  color: var(--muted);
  font-size: 0.7rem;
  overflow-wrap: anywhere;
}
.report-link {
  font-size: 0.75rem;
  white-space: normal;
}
.version-history {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 22px 0;
  overflow: hidden;
  background: var(--surface);
}
.version-history > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  cursor: pointer;
  gap: 12px;
}
.version-history > summary::-webkit-details-marker {
  display: none;
}
.version-history > summary > span {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.release-list {
  padding: 0 20px 6px;
}
.release-list article {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.release-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.release-heading time {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.75rem;
}
.release-list p {
  white-space: pre-wrap;
  color: #c0c6d4;
  font-size: 0.88rem;
  line-height: 1.7;
}
.release-list small {
  color: var(--muted);
}
.production-stage .game-launch {
  background: linear-gradient(140deg, #111a32db, #121625ed);
}
.engine-loading {
  width: min(100%, 440px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.engine-emblem {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #527dff24;
  border: 1px solid #7895ff5c;
  box-shadow: 0 0 55px #537dff25;
}
.engine-emblem svg {
  width: 26px;
  height: 26px;
  color: #a1b8ff;
}
.engine-loading h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.8rem);
  margin: 0;
}
.engine-loading p {
  margin: 0;
}
.engine-progress {
  width: 100%;
  height: 7px;
  background: #ffffff12;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 10px;
}
.engine-progress > div {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #5679ff, #8becd6);
  box-shadow: 0 0 15px #76abff80;
  border-radius: 20px;
  transition: width 0.2s ease;
}
.progress-caption {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.75rem;
  color: var(--muted);
}
.progress-caption strong {
  color: #bdd0ff;
}
.engine-loading .btn {
  margin-top: 6px;
}
.simulation-label {
  color: #b6c7f2 !important;
  border: 1px solid #7a91cd38;
  padding: 5px 10px;
  border-radius: 8px;
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.delivery-options {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff02;
  cursor: pointer;
}
.check-row input {
  accent-color: var(--blue);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
}
.check-row span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.check-row small {
  font-size: 0.78rem;
  color: var(--muted);
}
.review-metadata dd {
  overflow-wrap: anywhere;
}
.auth-panel {
  padding: 24px;
  border: 1px solid #4e628748;
  border-radius: 14px;
  background: linear-gradient(130deg, #192135, #131821);
  margin: 16px 0 24px;
}
.auth-panel h3 {
  margin: 0 0 8px;
}
.auth-panel p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.auth-cta {
  white-space: normal;
  line-height: 1.5;
  text-align: left;
}
.header-actions .auth-cta {
  max-width: 215px;
  font-size: 0.72rem;
  padding: 9px 12px;
}
.create-account {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.create-account > summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 20px;
}
.profile-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 20px;
  flex-wrap: wrap;
}
.profile-project {
  min-width: 0;
}
.project-update {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}
.project-update span {
  margin-left: auto;
  color: var(--muted);
}
@media (min-width: 1100px) {
  .detail-heading > div:first-child {
    flex: 1;
    min-width: 0;
  }
  .detail-actions {
    max-width: 48%;
  }
  .production-stage {
    min-height: 490px;
  }
}
@media (max-width: 1000px) {
  .download-buttons {
    gap: 12px;
  }
  .detail-heading {
    flex-wrap: wrap;
    gap: 20px;
  }
  .download-cluster {
    align-items: flex-start;
  }
  .detail-actions {
    justify-content: flex-start;
  }
  .classification-filter button {
    padding: 15px;
  }
}
@media (max-width: 640px) {
  .classification-filter {
    gap: 7px;
    margin-bottom: 18px;
  }
  .classification-filter button {
    padding: 12px 8px;
    border-radius: 12px;
    text-align: center;
  }
  .classification-filter button > span {
    flex-direction: column;
    gap: 7px;
    font-size: 0.77rem;
    line-height: 1.4;
  }
  .classification-filter button small {
    display: none;
  }
  .field-pair {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .release-metadata {
    gap: 10px 12px;
    font-size: 0.72rem;
  }
  .owner-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .download-buttons {
    align-items: flex-start;
    flex-direction: column;
  }
  .detail-actions {
    width: 100%;
    align-items: flex-start;
  }
  .download-cluster {
    max-width: calc(100% - 52px);
  }
  .production-stage {
    min-height: 380px;
  }
  .production-stage .game-launch {
    padding: 24px 20px;
  }
  .production-stage .game-launch small {
    font-size: 0.68rem;
  }
  .engine-loading {
    gap: 12px;
  }
  .engine-loading h2 {
    font-size: 1.15rem;
  }
  .profile-identity {
    flex-wrap: wrap;
  }
  .profile-controls {
    width: 100%;
    padding: 12px 0 0;
    gap: 8px;
  }
  .profile-controls .btn {
    font-size: 0.75rem;
    padding: 9px 11px;
  }
  .header-actions:has(.auth-cta) > a[aria-label="Your profile"] {
    display: none;
  }
  .header-actions .auth-cta {
    max-width: 138px;
    font-size: 0.63rem;
    padding: 7px 8px;
    gap: 6px;
  }
  .header-actions .auth-cta svg {
    width: 15px;
    min-width: 15px;
  }
  .project-card-meta {
    gap: 3px;
    font-size: 0.64rem;
  }
  .auth-panel {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .engine-progress > div,
  .classification-filter button {
    transition: none;
  }
}
.policy-page{max-width:800px;margin:32px auto;padding:clamp(24px,5vw,56px)}.policy-page p{color:var(--muted);line-height:1.8}.policy-page h2{margin-top:32px}.policy-page h1{line-height:1.15}.footer-actions a{color:inherit;font-size:12px}
/* Unified discovery, creator profiles, and optional game screenshot galleries */
.search-discovery {
  margin: 8px 0 28px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(136, 166, 255, 0.2);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(76, 96, 160, 0.16), rgba(17, 21, 31, 0.78));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}
.search-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.search-summary p { margin: 0; color: var(--muted); }
.search-group + .search-group { margin-top: 20px; }
.search-group h2 { margin: 0 0 10px; font-size: 1rem; }
.creator-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.creator-result { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.035); color: var(--text); text-decoration: none; }
.creator-result:hover { border-color: rgba(126,157,255,.55); background: rgba(126,157,255,.09); }
.creator-result > span:nth-child(2) { display: grid; min-width: 0; flex: 1; }
.creator-result strong,.creator-result small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creator-result small { color: var(--muted); margin-top: 3px; }
.tag-results,.game-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-results button,.game-tags button { border: 1px solid rgba(126,157,255,.22); border-radius: 999px; background: rgba(126,157,255,.08); color: #b9c9ff; cursor: pointer; }
.tag-results button { display: grid; padding: 9px 13px; text-align: left; }
.tag-results button span { margin-top: 2px; color: var(--muted); font-size: .72rem; }
.game-tags { margin: 10px 0 2px; }
.game-tags button { padding: 5px 9px; font-size: .72rem; }
.game-tags button:hover,.tag-results button:hover { border-color: #7e9dff; color: white; }
.game-card .game-tags { min-height: 27px; overflow: hidden; flex-wrap: nowrap; }
.public-profile-cover { height: clamp(150px, 23vw, 280px); overflow: hidden; border-radius: 26px; background: linear-gradient(120deg,#1f2945,#412b61 55%,#193849); }
.public-profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.public-profile-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: -38px 24px 28px; position: relative; }
.public-profile-heading > div { display: flex; align-items: center; gap: 14px; }
.public-profile-heading .avatar.large { box-shadow: 0 0 0 6px var(--bg); }
.public-profile-heading h1 { margin: 0; }
.public-profile-heading span { color: var(--muted); }
.public-profile-heading dl { display: flex; gap: 12px; margin: 0; }
.public-profile-heading dl div { min-width: 90px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(17,21,31,.9); }
.public-profile-heading dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.public-profile-heading dd { margin: 3px 0 0; font-weight: 800; }
.public-profile-bio { max-width: 720px; margin: 0 24px 34px; color: var(--muted); }
.screenshot-upload { margin-top: 14px; }
.selected-screenshots { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 8px; margin-top: 9px; }
.selected-screenshots > span { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.03); }
.selected-screenshots > span > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.selected-screenshots button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.2rem; }
.game-gallery { margin: 26px 0; }
.screenshot-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.screenshot-grid button { padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #0b0e15; cursor: zoom-in; aspect-ratio: 16/9; }
.screenshot-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.screenshot-grid button:hover img { transform: scale(1.025); }
.screenshot-lightbox { display: block; max-width: min(100%,1100px); max-height: 75vh; margin: 0 auto; border-radius: 16px; object-fit: contain; }
.creator-byline > a { display: inline-flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; }
@media (max-width: 700px) {
  .search-summary,.public-profile-heading { align-items: flex-start; flex-direction: column; }
  .search-summary { gap: 6px; }
  .creator-results { grid-template-columns: 1fr; }
  .public-profile-heading { margin: -30px 14px 24px; }
  .public-profile-heading dl { width: 100%; }
  .public-profile-heading dl div { min-width: 0; flex: 1; }
  .public-profile-bio { margin-inline: 14px; }
  .screenshot-grid { grid-template-columns: 1fr; }
}
