:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #17211d;
  background: #f5f3ec;
  font-synthesis: none;
  --green: #c5f06b;
  --ink: #17211d;
  --line: #d7dcd0;
}
.gallery {
  margin: 40px 0;
}
.gallery img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  background: #e9ecdf;
  border-radius: 12px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid #436d12;
  outline-offset: 5px;
}
button,
summary {
  cursor: pointer;
}
button:disabled {
  opacity: 0.6;
}
img {
  max-width: 100%;
  height: auto;
}
main {
  max-width: 1240px;
  margin: auto;
  padding: 0 40px 64px;
}
.header {
  min-height: 88px;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
}
.brand > span {
  background: var(--ink);
  color: var(--green);
  font-size: 28px;
  padding: 6px 12px;
  letter-spacing: -3px;
}
.header nav {
  display: flex;
  gap: 30px;
  font-size: 14px;
}
.header nav a {
  text-decoration: none;
}
.skip {
  position: absolute;
  top: -100px;
  padding: 12px;
  background: var(--green);
  z-index: 9;
}
.skip:focus {
  top: 4px;
}
.hero {
  padding: 42px 0 36px;
  position: relative;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.7;
}
.hero h1 {
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -3px;
  margin: 24px 0;
}
.hero h1 em {
  font-style: normal;
  color: #476c32;
}
.hero > p:not(.eyebrow) {
  max-width: 580px;
  font-size: 18px;
  line-height: 1.65;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 13px 20px;
  background: var(--ink);
  color: white;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.hero .button {
  margin-top: 12px;
  background: var(--green);
  color: var(--ink);
  border-color: var(--green);
}
.hero-note {
  position: absolute;
  right: 0;
  bottom: 60px;
  max-width: 210px;
}
.hero-note > span {
  font-size: 50px;
  letter-spacing: -3px;
  font-weight: 700;
}
.hero-note p {
  white-space: pre-line;
  line-height: 1.6;
  font-size: 14px;
  color: #526052;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-heading h2 {
  font-size: 28px;
  letter-spacing: -1px;
}
.section-heading > span {
  font-size: 13px;
  color: #526052;
}
.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 14px;
  background: #e9ecdf;
  padding: 22px;
  border-radius: 10px;
  margin: 16px 0 30px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
input,
select,
textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #8b9882;
  border-radius: 5px;
  background: #fff;
  padding: 12px;
  color: var(--ink);
  min-height: 44px;
}
textarea {
  resize: vertical;
  line-height: 1.5;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  scroll-margin-top: 20px;
}
.art {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e4e9d8;
  text-decoration: none;
  overflow: hidden;
}
.art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.card-agigame .art {
  background: #203d35;
  color: #c5f06b;
}
.card-idleelevator .art {
  background: #dde4b8;
  color: #36492b;
}
.lettermark {
  font-size: 64px;
  font-family: monospace;
  font-weight: 700;
}
.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body .eyebrow {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  letter-spacing: 0.6px;
  font-size: 10px;
}
.ready {
  color: #3c631e;
}
.muted {
  color: #586451;
}
.card h3 {
  font-size: 25px;
  letter-spacing: -0.7px;
  margin: 16px 0 6px;
}
.card h3 a {
  text-decoration: none;
}
.card p {
  font-size: 14px;
  line-height: 1.7;
  color: #4a5748;
  margin: 5px 0 18px;
}
.chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: auto;
  margin-bottom: 18px;
}
.chips span {
  font-size: 10px;
  border: 1px solid var(--line);
  padding: 6px 8px;
  border-radius: 20px;
  line-height: 1.3;
}
.text-link {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
}
.group-title {
  font-size: 18px;
  margin: 30px 0 18px;
}
.group-title small {
  font-size: 12px;
  font-weight: 400;
  color: #586451;
  margin-left: 12px;
}
.empty {
  padding: 45px;
  border: 1px dashed #8b9882;
  border-radius: 10px;
}
.back {
  display: inline-block;
  margin-top: 30px;
  font-size: 14px;
}
.product-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  padding: 40px 0;
}
.product-hero h1,
.form-shell h1,
.prose h1 {
  font-size: clamp(36px, 5vw, 62px);
  letter-spacing: -2px;
  margin: 18px 0;
}
.lead {
  font-size: 19px;
  line-height: 1.65;
}
.product-image {
  display: block;
  border: 1px solid var(--line);
  padding: 20px;
  background: white;
  border-radius: 12px;
}
.product-image img {
  max-height: 480px;
  object-fit: contain;
  display: block;
  margin: auto;
}
.product-image > span {
  display: block;
  font-size: 12px;
  margin-top: 16px;
}
.product-placeholder {
  background: #203d35;
  color: var(--green);
  height: 330px;
  display: grid;
  place-items: center;
  font-family: monospace;
  font-size: 72px;
  border-radius: 12px;
}
.channels {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}
.channels article {
  background: #fff;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.channels h2 {
  font-size: 20px;
  margin: 0;
}
.channels h2 span {
  font-size: 12px;
  font-weight: 400;
  margin-left: 8px;
}
.channels p {
  line-height: 1.6;
  font-size: 14px;
}
.channels small {
  display: block;
  margin-top: 14px;
}
.channels code {
  word-break: break-all;
  font-size: 12px;
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.facts h2 {
  font-size: 18px;
}
.facts p {
  line-height: 1.7;
  color: #4a5748;
}
.studio-related {
  margin: 28px 0;
  padding: 28px 32px;
  border: 1px solid #d4dfd3;
  border-radius: 16px;
  background: #f4f7ee;
}
.studio-related h2 {
  margin: 8px 0;
  font-size: clamp(24px, 3vw, 32px);
}
.studio-related > p {
  line-height: 1.6;
}
.studio-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.studio-related-links a {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid #b9cdb8;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.studio-related-links a:hover,
.studio-related-links a:focus-visible {
  border-color: #638a62;
  background: #e7f1e1;
}
.studio-related-more {
  margin-bottom: 0;
}
.feedback-cta {
  padding: 36px;
  background: #e3edcf;
  border-radius: 12px;
  margin: 30px 0;
}
.feedback-cta h2 {
  font-size: 30px;
  margin: 12px 0;
}
.feedback-cta p {
  line-height: 1.6;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.secondary {
  background: transparent;
  color: var(--ink);
}
.form-shell {
  max-width: 720px;
  margin: auto;
}
.form-shell > p {
  line-height: 1.7;
}
.form-shell form {
  background: #fff;
  border: 1px solid var(--line);
  padding: 30px;
  border-radius: 12px;
  margin-top: 30px;
}
.form-shell label {
  margin: 0 0 24px;
}
.form-shell label small {
  font-weight: 400;
  color: #586451;
}
.form-shell fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.form-shell details {
  margin: 20px 0;
  padding: 16px;
  background: #f5f3ec;
  border-radius: 8px;
}
.form-shell details[open] summary {
  margin-bottom: 25px;
}
summary {
  line-height: 1.5;
  min-height: 30px;
}
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.privacy-note {
  font-size: 12px;
  line-height: 1.7;
}
.status-message {
  font-weight: 700;
  line-height: 1.7;
}
.prose {
  max-width: 780px;
  margin: 60px auto;
}
.prose p {
  line-height: 1.8;
}
.prose h2 {
  font-size: 23px;
  margin-top: 32px;
}
footer {
  background: var(--ink);
  color: #f5f3ec;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
footer p {
  font-size: 13px;
  color: #d3ddca;
}
footer > div:nth-child(2) {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  font-size: 13px;
}
footer small {
  width: 100%;
  font-size: 11px;
  color: #d3ddca;
}
.admin {
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
}
.admin .filters {
  grid-template-columns: repeat(5, 1fr);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
td,
th {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.table-wrap {
  overflow: auto;
}
.admin dl {
  background: white;
  padding: 25px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.admin dt {
  font-weight: 700;
  margin-top: 18px;
}
.admin dd {
  margin: 8px 0 20px;
}
.admin textarea {
  min-height: 110px;
}
.admin button {
  margin: 5px;
}
.admin .actions {
  margin: 20px 0;
}
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-note {
    display: none;
  }
  .product-hero {
    gap: 30px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .admin .filters {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  main {
    padding: 0 20px 40px;
  }
  .header {
    padding: 14px 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    min-height: 100px;
  }
  .header nav {
    width: 100%;
    justify-content: space-between;
    gap: 14px;
  }
  .brand {
    font-size: 12px;
  }
  .hero {
    padding: 38px 0;
    margin-bottom: 24px;
  }
  .hero h1 {
    letter-spacing: -1.8px;
  }
  .hero > p:not(.eyebrow) {
    font-size: 16px;
  }
  .filters {
    padding: 15px;
    gap: 12px;
  }
  .filters label:first-child {
    grid-column: 1/-1;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .art {
    height: 215px;
  }
  .product-hero {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }
  .facts {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .studio-related {
    padding: 22px;
  }
  .feedback-cta {
    padding: 25px;
  }
  .form-shell form {
    padding: 20px;
  }
  .form-shell h1 {
    font-size: 38px;
  }
  .actions .button {
    width: 100%;
  }
  footer {
    padding: 28px 20px;
  }
  footer > div:nth-child(2) {
    flex-wrap: wrap;
  }
  .group-title small {
    display: block;
    margin: 8px 0;
  }
  .admin .filters {
    grid-template-columns: 1fr;
  }
  .product-placeholder {
    height: 200px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

.filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0;
  color: #476c32;
  font-size: 14px;
}
.filter-summary button {
  background: none;
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 24px;
  color: var(--ink);
}
.image-preview {
  display: block;
  text-decoration: none;
}
.image-preview > img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  background: #e9ecdf;
  border-radius: 12px;
}
.image-preview > span {
  display: block;
  margin-top: 10px;
  text-decoration: underline;
}
.image-dialog {
  border: 0;
  border-radius: 16px;
  padding: 20px;
  max-width: 92vw;
  max-height: 92vh;
  background: var(--ink);
  color: white;
}
.image-dialog::backdrop {
  background: rgba(10, 20, 16, 0.8);
}
.image-dialog form {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.image-dialog img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  margin: auto;
}
.field-count {
  text-align: right;
  font-weight: 400;
  color: #52604f;
}

/* Studio art direction: original paper texture, real product artwork, quiet depth. */
.header {
  background: #fbfaf5;
}
.brand > span {
  border-radius: 13px 13px 13px 3px;
  transform: rotate(-5deg);
}
.hero {
  min-height: 480px;
  padding: 50px 38px;
  margin: 24px -12px 38px;
  border: 1px solid #e1e2d4;
  border-radius: 28px;
  background: #f7f5ec url("/brand/v1/worlds.png") center / 640px 360px;
  isolation: isolate;
}
.hero h1 {
  font-size: clamp(40px, 4.6vw, 64px);
  max-width: 58%;
  letter-spacing: -2.7px;
}
.hero > p:not(.eyebrow) {
  max-width: 47%;
  font-size: 17px;
}
.hero .eyebrow {
  max-width: 55%;
  color: #53654c;
}
.hero .button {
  border-radius: 100px;
  box-shadow: 0 4px 0 #9fbf59;
}
.hero-showcase {
  position: absolute;
  width: 43%;
  right: 24px;
  top: 52px;
  height: 380px;
}
.showcase-caption {
  position: absolute;
  top: 0;
  left: 15%;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #54644c;
}
.showcase-piece {
  position: absolute;
  display: block;
  padding: 8px;
  background: #fffdf5;
  border: 1px solid #dfdfd1;
  border-radius: 16px;
  box-shadow:
    0 14px 32px #24322122,
    0 2px 3px #24322110;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.showcase-piece img {
  display: block;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.showcase-piece > span {
  display: flex;
  justify-content: space-between;
  padding: 10px 4px 3px;
  font-size: 12px;
  font-weight: 700;
}
.showcase-idleelevator {
  width: 67%;
  right: 3%;
  top: 35px;
  transform: rotate(7deg);
}
.showcase-idleelevator img {
  aspect-ratio: 1.5;
}
.showcase-rogueball {
  width: 37%;
  left: 0;
  top: 133px;
  transform: rotate(-9deg);
  z-index: 2;
}
.showcase-rogueball img {
  aspect-ratio: 1;
}
.showcase-dubarena {
  width: 51%;
  right: 4%;
  top: 237px;
  transform: rotate(3deg);
  z-index: 3;
}
.showcase-dubarena img {
  aspect-ratio: 1.9;
  object-position: top;
}
.showcase-piece:hover,
.showcase-piece:focus-visible {
  transform: rotate(0) translateY(-4px);
  z-index: 4;
  box-shadow: 0 18px 38px #24322130;
}
.play-sprite {
  position: absolute;
  width: 160px;
  height: 160px;
  right: -35px;
  top: 122px;
  pointer-events: none;
  z-index: 4;
}
#catalog {
  scroll-margin-top: 24px;
}
.section-heading h2 {
  font-size: 34px;
}
.section-heading > span {
  background: #e6ebdd;
  border-radius: 30px;
  padding: 8px 13px;
}
.filters {
  background: #e9eddf;
  border: 1px solid #d8dece;
  border-radius: 18px;
  box-shadow: inset 0 1px #fff9;
}
.filters input,
.filters select {
  border-color: #bec8b5;
  border-radius: 9px;
}
.card {
  border-radius: 20px;
  border-color: #e0e4d8;
  box-shadow: 0 4px 16px #23311a06;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px #23311a12;
}
.art {
  height: 235px;
  margin: 10px 10px 0;
  border-radius: 13px;
  background: radial-gradient(ellipse at top, #f9faf2, #dfe6d3);
}
.art img {
  padding: 8px;
}
.card-turraboom .art,
.card-pulso .art {
  background: #182d30;
}
.card-turraboom .art img,
.card-pulso .art img {
  padding: 0;
  object-fit: cover;
}
.card-rogueball .art img {
  border-radius: 24px;
  padding: 14px;
}
.card-dubarena .art {
  background: #eeedf7;
}
.card-momentos-magicos .art {
  background: #f4eada;
}
.card .ready {
  background: #edf5df;
  border-radius: 15px;
  padding: 1px 7px;
}
.card .text-link {
  border-top: 1px solid #e6e9df;
  padding-top: 16px;
}
.group-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.group-title::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #769357;
  flex-shrink: 0;
}
.product-hero {
  background: radial-gradient(ellipse at right top, #e6ebd8aa, transparent 65%);
}
.product-image,
.image-preview > img {
  border-radius: 18px;
  box-shadow: 0 12px 30px #203d3510;
}
.feedback-cta {
  background: #eff1e2 url("/brand/v1/worlds.png") center / 640px 360px;
  border: 1px solid #dce3d0;
  border-radius: 22px;
}
.feedback-cta p {
  max-width: 680px;
}
footer {
  border-radius: 28px 28px 0 0;
}
@media (max-width: 1050px) and (min-width: 761px) {
  .hero {
    padding: 40px 26px;
  }
  .hero-showcase {
    right: 16px;
    width: 42%;
    top: 85px;
  }
  .showcase-rogueball {
    top: 112px;
  }
  .showcase-dubarena {
    top: 210px;
  }
}
@media (max-width: 760px) {
  .hero {
    margin: 20px 0 30px;
    padding: 30px 24px 20px;
    min-height: 0;
  }
  .hero h1,
  .hero > p:not(.eyebrow),
  .hero .eyebrow {
    max-width: 100%;
  }
  .hero h1 {
    font-size: clamp(37px, 7.5vw, 56px);
    letter-spacing: -1.7px;
  }
  .hero-showcase {
    position: relative;
    width: 100%;
    right: auto;
    top: auto;
    margin: 30px auto 0;
    height: 310px;
    max-width: 400px;
  }
  .showcase-caption {
    left: 0;
    font-size: 8px;
  }
  .showcase-idleelevator {
    top: 28px;
  }
  .showcase-rogueball {
    top: 100px;
  }
  .showcase-dubarena {
    top: 187px;
  }
  .play-sprite {
    width: 115px;
    height: 115px;
    right: -18px;
    top: 108px;
  }
  .art {
    height: 230px;
  }
  .group-title {
    flex-wrap: wrap;
  }
  .group-title small {
    margin: 0;
  }
}
@media (max-width: 380px) {
  .hero {
    padding: 25px 18px 12px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .hero-showcase {
    height: 265px;
  }
  .showcase-dubarena {
    top: 165px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .card,
  .showcase-piece {
    transition: none;
  }
  .card:hover {
    transform: none;
  }
}
/* Studio identity v1: deliberately crisp pixels, with readable interface type. */
.brand .studio-symbol {
  object-fit: contain;
  image-rendering: pixelated;
  border-radius: 0;
}
.hero,
.feedback-cta {
  background-image: none;
}
.hero {
  background-color: #f4f4ed;
}
.hero-showcase .play-sprite {
  width: 96px;
  height: 96px;
  object-fit: contain;
}
.play-sprite {
  content: url("/brand/v1/cat.png");
  image-rendering: pixelated;
  filter: none !important;
  transform: none !important;
}
.hero::after {
  background: url("/brand/v1/worlds.png") center bottom / 640px 360px repeat-x;
  image-rendering: pixelated;
  opacity: 0.08;
  pointer-events: none;
}
.studio-identity {
  margin: 3rem auto;
  padding: 2rem;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  border: 1px solid #ccd0ce;
}
.studio-identity h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}
.studio-identity label {
  display: block;
  margin: 1rem 0;
}
.studio-identity input {
  width: auto;
}
.studio-identity button {
  margin-right: 0.5rem;
}
.identity-stage {
  background: #050323;
  min-height: 288px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.identity-stage img,
.identity-stage canvas {
  image-rendering: pixelated;
  max-width: 100%;
}
.identity-stage [hidden] {
  display: none;
}
.advertising-note {
  font-size: 0.85rem;
  border-left: 3px solid #647488;
  padding: 0.5rem 0.75rem;
  margin: 1rem 0;
}
.advertising-note p {
  margin: 0.4rem 0;
}
.ad-questions {
  border: 1px solid #ccd0ce;
  padding: 1rem;
  margin: 1.5rem 0;
}
@media (max-width: 700px) {
  .studio-identity {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .play-sprite {
    animation: none !important;
  }
}

/* Signature v2: native 128px artwork, exact 2x display, fixed composition. */
.identity-stage {
  background: #030123;
  min-height: 304px;
}
.identity-stage canvas,
.identity-stage img {
  width: 256px;
  height: 256px;
  object-fit: contain;
  image-rendering: pixelated;
}
.studio-identity {
  border: 0;
  border-top: 1px solid var(--line);
  padding-top: 3rem;
}
.studio-identity h2 {
  max-width: 18ch;
}
@media (max-width: 350px) {
  .identity-stage canvas,
  .identity-stage img {
    width: 128px;
    height: 128px;
  }
}

.card-rogueball .art img {
  object-position: center 48%;
}
.showcase-rogueball img {
  object-position: center 48%;
}

.card-rogueball .art img {
  object-fit: cover;
  padding: 0;
  border-radius: 0;
}
.card-idleelevator .art img,
.card-agigame .art img {
  object-fit: cover;
  padding: 0;
}

/* New original scene: native pixels at 1x or 2x; never stretch fractionally. */
.identity-stage-v3 {
  background: #070c22;
  min-height: 272px;
}
.identity-stage-v3 canvas,
.identity-stage-v3 img {
  width: 256px;
  height: 224px;
  max-width: none;
}
@media (min-width: 1120px) {
  .identity-stage-v3 {
    min-height: 480px;
  }
  .identity-stage-v3 canvas,
  .identity-stage-v3 img {
    width: 512px;
    height: 448px;
  }
}

/* v4 candidate shares the v3 native grid; background matches its palette. */
.identity-stage-v4 {
  background: #01002a;
}
.identity-variants {
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0 0 0.75rem;
  padding: 0;
}
.identity-variants legend {
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.studio-identity .identity-variants label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.25rem 0;
}
.studio-identity .identity-variants input {
  margin: 0;
}

/* ==========================================================================
   Toti sky theme (local candidate, 2026-09-27).
   The portal lives in the planet's sky: logo navy, pixel starfield, stepped
   nine-slice frames from studio/brand/v4. Pixel assets scale by 2x, nearest.
   Revert by deleting from this marker to the end of the file.
   ========================================================================== */
:root {
  --space: #01002a;
  --orbit: #0d0b3a;
  --orbit-2: #1d1a55;
  --edge: #2e2f78;
  --cream: #fefeec;
  --haze: #c3c0e6;
  --mint: #aef4ac;
  --salmon: #f79275;
  --teal: #22c1b9;
  --violet: #9944a9;
  --ink: var(--cream);
  --line: var(--edge);
  --green: var(--mint);
  --sans:
    "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
    "Helvetica Neue", Arial, sans-serif;
  --display:
    "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  font-family: var(--sans);
  color: var(--cream);
  background: var(--space);
  color-scheme: dark;
}
body {
  background: var(--space) url("/brand/v4/portal-sky.png") 0 0 / 512px 512px;
  image-rendering: pixelated;
}
body * {
  image-rendering: auto;
}
.studio-wordmark,
.hero-planet,
.identity-stage img,
.identity-stage canvas {
  image-rendering: pixelated;
}
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}
h1,
h2,
h3 {
  font-family: var(--display);
}
.eyebrow,
.section-heading > span,
.group-title small,
.showcase-caption {
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Header: the identity's own pixel lettering, never resampled fractionally. */
.header {
  background: transparent;
  border-bottom: 1px solid var(--edge);
}
.brand {
  gap: 10px;
  align-items: flex-end;
}
.studio-wordmark {
  width: 137px;
  height: 27px;
}
.brand > span {
  background: none;
  color: var(--haze);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.35em;
  padding: 0 0 2px;
  transform: none;
  border-radius: 0;
}
.header nav a {
  color: var(--haze);
}
.header nav a:hover {
  color: var(--cream);
}
.skip {
  background: var(--mint);
  color: var(--space);
}

/* Hero: the planet is the thesis; products orbit it. */
.hero {
  background: transparent;
  border: 0;
  border-radius: 0;
  margin: 12px 0 40px;
  padding: 72px 0 56px;
  min-height: 560px;
}
.hero::after {
  display: none;
}
.hero .eyebrow {
  color: var(--haze);
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(42px, 5vw, 70px);
  letter-spacing: -0.035em;
  max-width: 50%;
}
.hero h1 em {
  color: var(--mint);
}
.hero > p:not(.eyebrow) {
  color: var(--haze);
  max-width: 44%;
}
.button {
  background: var(--cream);
  color: var(--space);
  border-color: var(--cream);
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--violet);
}
.button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--violet);
}
.button.secondary {
  background: transparent;
  color: var(--cream);
  box-shadow: none;
}
.hero .button {
  background: var(--salmon);
  border-color: var(--salmon);
  color: var(--space);
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--violet);
}
.hero-showcase {
  width: 50%;
  right: -16px;
  top: 24px;
  height: 520px;
}
.hero-planet {
  position: absolute;
  width: 512px;
  height: 320px;
  left: 50%;
  top: 96px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}
.showcase-caption {
  left: 0;
  top: 8px;
  color: var(--haze);
  font-size: 10px;
}
.showcase-piece {
  padding: 8px;
  background: transparent;
  border: 8px solid transparent;
  border-image: url("/brand/v4/portal-frame-raised.png") 4 fill / 8px;
  border-radius: 0;
  box-shadow: none;
  z-index: 2;
}
.showcase-piece img {
  border-radius: 0;
}
.showcase-piece > span {
  color: var(--cream);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}
.showcase-piece:hover,
.showcase-piece:focus-visible {
  border-image-source: url("/brand/v4/portal-frame-hover.png");
  box-shadow: none;
}
.showcase-idleelevator {
  width: 30%;
  right: 0;
  left: auto;
  top: 32px;
  transform: rotate(3deg);
}
.showcase-rogueball {
  width: 25%;
  left: 2%;
  top: 330px;
  transform: rotate(-4deg);
}
.showcase-dubarena {
  width: 32%;
  right: 3%;
  top: 370px;
  transform: rotate(2deg);
}

/* Catalogue */
.section-heading h2 {
  font-weight: 800;
  letter-spacing: -0.03em;
}
.section-heading > span {
  background: var(--orbit-2);
  color: var(--haze);
  border-radius: 0;
  font-size: 11px;
}
.filters {
  background: var(--orbit);
  border: 1px solid var(--edge);
  border-radius: 0;
  box-shadow: none;
}
label {
  color: var(--cream);
}
input,
select,
textarea,
.filters input,
.filters select {
  background: var(--space);
  color: var(--cream);
  border: 1px solid #4b4a93;
  border-radius: 0;
}
input::placeholder,
textarea::placeholder {
  color: #8f8cc0;
}
input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--teal);
  min-height: 0;
}
.filter-summary {
  color: var(--mint);
}
.filter-summary button {
  color: var(--cream);
  border-radius: 0;
}
.group-title {
  font-family: var(--display);
  font-size: 20px;
}
.group-title::before {
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: var(--mint);
}
.group-title:has(small)::before {
  background: var(--salmon);
}
.group-title small {
  color: var(--haze);
  font-size: 11px;
}
.empty {
  border: 1px dashed var(--edge);
  border-radius: 0;
  color: var(--haze);
}
.card {
  background: transparent;
  border: 8px solid transparent;
  border-image: url("/brand/v4/portal-frame.png") 4 fill / 8px;
  border-radius: 0;
  box-shadow: none;
}
.card:hover,
.card:focus-within {
  border-image-source: url("/brand/v4/portal-frame-hover.png");
  box-shadow: none;
}
.art,
.card-turraboom .art,
.card-pulso .art,
.card-idleelevator .art,
.card-agigame .art {
  margin: 0;
  border-radius: 0;
  background: var(--space);
  color: var(--mint);
}
.card-dubarena .art {
  margin: 0;
  border-radius: 0;
  background: #e9e8f3;
}
.card-momentos-magicos .art {
  margin: 0;
  border-radius: 0;
  background: #f4eada;
}
.lettermark {
  font-family: var(--mono);
  color: var(--mint);
  letter-spacing: -0.04em;
}
.card-body {
  padding: 18px 14px 12px;
}
.card-body .eyebrow {
  font-size: 10px;
  color: var(--haze);
}
.card .ready,
.card .muted {
  border-radius: 0;
  padding: 1px 0;
  background: none;
}
.card .ready {
  color: var(--mint);
}
.card .muted {
  color: var(--salmon);
}
.card .ready::before,
.card .muted::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  background: currentColor;
  vertical-align: 1px;
}
.card h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
}
.card p {
  color: var(--haze);
}
.chips {
  display: grid;
  gap: 0;
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--edge);
}
.chips li {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 2px 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--edge);
  font-size: 12px;
  line-height: 1.35;
}
.chips li small {
  grid-column: 2;
  color: #9c99cc;
  font-size: 11px;
}
.chips li span {
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: 12px;
}
.chip-platform {
  font-family: var(--mono);
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
}
.card .text-link {
  border-top: 0;
  color: var(--teal);
  padding-top: 6px;
}

/* Product, feedback and privacy pages */
.product-hero {
  background: none;
}
.lead,
.facts p,
.form-shell > p,
.form-shell label small,
.field-count,
.prose p {
  color: var(--haze);
}
.product-image,
.channels article,
.form-shell form,
.admin dl {
  background: transparent;
  border: 8px solid transparent;
  border-image: url("/brand/v4/portal-frame.png") 4 fill / 8px;
  border-radius: 0;
  box-shadow: none;
}
.image-preview > img,
.gallery img {
  background: var(--orbit);
  border-radius: 0;
  box-shadow: none;
}
.product-placeholder {
  background: var(--orbit);
  color: var(--mint);
  border-radius: 0;
}
.facts {
  border-top-color: var(--edge);
}
.feedback-cta {
  background: var(--orbit-2);
  border: 0;
  border-left: 8px solid var(--salmon);
  border-radius: 0;
}
.form-shell details {
  background: var(--orbit-2);
  border-radius: 0;
}
.advertising-note {
  border-left-color: var(--teal);
  color: var(--haze);
}
.ad-questions {
  border-color: var(--edge);
}
td,
th {
  border-bottom-color: var(--edge);
}
.image-dialog {
  background: var(--orbit);
  border: 1px solid var(--edge);
  border-radius: 0;
}
.image-dialog::backdrop {
  background: rgba(1, 0, 42, 0.85);
}

/* Signature demo (catalogue only) */
.studio-identity {
  border-top-color: var(--edge);
}
.studio-identity p:not(.eyebrow) {
  color: var(--haze);
}
.identity-stage,
.identity-stage-v4 {
  background: var(--space);
  outline: 1px solid var(--edge);
}

/* Footer */
footer {
  background: var(--orbit);
  border-top: 1px solid var(--edge);
  border-radius: 0;
}
footer p,
footer small {
  color: var(--haze);
}

/* Below 1050px the hero stacks. The planet only ever renders at 2x or 1x. */
@media (max-width: 1050px) {
  .hero {
    padding: 36px 0 12px;
    min-height: 0;
  }
  .hero h1,
  .hero > p:not(.eyebrow),
  .hero .eyebrow {
    max-width: 100%;
  }
  .hero-showcase {
    position: relative;
    width: 100%;
    max-width: 620px;
    right: auto;
    top: auto;
    margin: 24px auto 0;
    height: 500px;
  }
  .hero-planet {
    top: 80px;
  }
  .showcase-idleelevator {
    width: 30%;
    top: 24px;
  }
  .showcase-rogueball {
    width: 26%;
    top: 320px;
  }
  .showcase-dubarena {
    width: 32%;
    top: 350px;
  }
}
@media (max-width: 600px) {
  .hero-showcase {
    height: 470px;
  }
  .hero-planet {
    width: 256px;
    height: 160px;
    top: 140px;
  }
  .showcase-idleelevator {
    width: 42%;
    top: 0;
  }
  .showcase-rogueball {
    width: 40%;
    left: 0;
    top: 300px;
  }
  .showcase-dubarena {
    width: 46%;
    right: 0;
    top: 322px;
  }
  .showcase-caption {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .button:hover {
    transform: none;
  }
}

.header nav a[aria-current="page"] {
  color: var(--cream);
  text-decoration: underline;
}

.android-cta .button {
  background: var(--salmon);
  border-color: var(--salmon);
  margin-top: 8px;
}

.android-cta {
  margin: 30px 0 0;
  padding: 28px 32px;
  border: 8px solid transparent;
  border-image: url("/brand/v4/portal-frame-signal.png") 4 fill / 8px;
}
.android-cta .eyebrow {
  color: var(--salmon);
}
.android-cta h2 {
  font-size: 28px;
  margin: 10px 0;
}
.android-cta p:not(.eyebrow) {
  color: var(--haze);
  max-width: 60ch;
  line-height: 1.6;
}
.testers-page {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px 56px;
  padding: 48px 0 16px;
  align-items: start;
}
.testers-intro .eyebrow {
  color: var(--salmon);
}
.testers-intro h1 {
  font-size: clamp(38px, 4.6vw, 60px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 16px 0 20px;
}
.testers-steps {
  list-style: none;
  counter-reset: step;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.testers-steps li {
  counter-increment: step;
  position: relative;
  display: grid;
  gap: 4px;
  padding: 0 0 26px 56px;
}
.testers-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--space);
  background: var(--salmon);
}
.testers-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 38px;
  bottom: 4px;
  border-left: 2px dotted var(--edge);
}
.testers-steps strong {
  font-size: 18px;
}
.testers-steps span {
  color: var(--haze);
  line-height: 1.6;
}
.testers-form {
  position: sticky;
  top: 24px;
  padding: 28px;
  border: 8px solid transparent;
  border-image: url("/brand/v4/portal-frame-signal.png") 4 fill / 8px;
}
.testers-form h2 {
  font-size: 26px;
  margin: 0 0 20px;
}
.testers-form > label {
  margin-bottom: 22px;
}
.testers-form fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 22px;
  min-width: 0;
}
.testers-form legend {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
.testers-form legend small,
.field-hint {
  color: var(--haze);
  font-weight: 400;
}
.field-hint {
  font-size: 13px;
  margin: 10px 0 0;
}
.testers-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.testers-products label,
.testers-form .consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
}
.testers-products label {
  padding: 10px;
  border: 1px solid var(--edge);
  background: var(--space);
}
.testers-products label:has(input:checked) {
  border-color: var(--salmon);
}
.testers-products input,
.testers-form .consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex-shrink: 0;
}
.testers-products small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--haze);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.testers-form .consent {
  font-size: 13px;
  line-height: 1.55;
  color: var(--haze);
  margin: 0 0 22px;
}
.testers-form .consent a {
  color: var(--teal);
}
.testers-form .button {
  width: 100%;
  background: var(--salmon);
  border-color: var(--salmon);
}
.testers-closed {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--haze);
  border-left: 3px solid var(--salmon);
  padding-left: 10px;
}
.testers-projects {
  grid-column: 1 / -1;
}
.testers-projects h2 {
  font-size: 22px;
}
.testers-projects ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.testers-projects a {
  display: grid;
  gap: 6px;
  height: 100%;
  padding: 16px;
  text-decoration: none;
  background: var(--orbit);
  border: 1px solid var(--edge);
}
.testers-projects a:hover,
.testers-projects a:focus-visible {
  border-color: var(--teal);
}
.testers-projects span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--salmon);
  text-transform: uppercase;
}
.testers-projects small {
  color: var(--haze);
  line-height: 1.5;
}
.admin-testers {
  margin-top: 48px;
  border-top: 1px solid var(--edge);
  padding-top: 24px;
}
.admin-testers .filters {
  grid-template-columns: 1fr auto;
  align-items: end;
}
@media (max-width: 900px) {
  .testers-page {
    grid-template-columns: 1fr;
  }
  .testers-form {
    position: static;
  }
  .testers-projects ul {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .testers-products,
  .testers-projects ul {
    grid-template-columns: 1fr;
  }
  .testers-form {
    padding: 18px 12px;
  }
}

/* Products without public artwork: say so plainly instead of inventing one. */
.art-pending {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  padding: 16px;
}
.art-pending .lettermark {
  font-size: 30px;
  font-weight: 700;
}
.art-pending small {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--haze);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
footer .studio-wordmark {
  image-rendering: pixelated;
  display: block;
  margin-bottom: 12px;
}

.visual-caption {
  display: block;
  padding: 0.55rem 1rem;
  color: #c0cadb;
  font-size: 0.75rem;
  line-height: 1.5;
}

.closed-test-links {
  margin-block: 3rem;
}
.closed-test-links > article {
  padding: 1.25rem;
  margin-block: 1rem;
  border: 1px solid #405673;
  border-radius: 12px;
  background: #101e35;
}
.closed-test-access p {
  max-width: 70ch;
}

/* ==========================================================================
   Mobile (Android and iPhone), 2026-09-27.
   - Fields at 16px so iOS Safari does not zoom on focus.
   - Touch targets of at least 44px; no hover effects stuck after a tap.
   - Phone reading order: product image before channels, tester form before
     the steps, via display: contents (no markup change).
   - --pixel-snap (set by client.tsx on touch devices) keeps pixel art at a
     whole number of device pixels on fractional densities such as 2.625x.
   ========================================================================== */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  font-size: 16px;
}
@media (hover: none) {
  .card:hover,
  .button:hover,
  .showcase-piece:hover {
    transform: none;
  }
  .button:hover {
    box-shadow: 4px 4px 0 var(--violet);
  }
  .card:hover {
    border-image-source: url("/brand/v4/portal-frame.png");
  }
  .card:active,
  .card:focus-within {
    border-image-source: url("/brand/v4/portal-frame-hover.png");
  }
  .button:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--violet);
  }
  .testers-projects a:active {
    border-color: var(--salmon);
  }
}
@media (pointer: coarse) {
  body {
    background-size: calc(512px * var(--pixel-snap, 1))
      calc(512px * var(--pixel-snap, 1));
  }
  .studio-wordmark {
    width: calc(137px * var(--pixel-snap, 1));
    height: calc(27px * var(--pixel-snap, 1));
  }
  .card,
  .showcase-piece,
  .product-image,
  .channels article,
  .form-shell form,
  .android-cta,
  .testers-form {
    border-width: calc(8px * var(--pixel-snap, 1));
    border-image-width: calc(8px * var(--pixel-snap, 1));
  }
}
@media (max-width: 760px) {
  /* Header: one row of real touch targets. */
  .header {
    gap: 6px;
    padding-bottom: 0;
  }
  .header nav {
    gap: 0;
    margin: 0 -10px;
    width: calc(100% + 20px);
  }
  .header nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0 10px;
    justify-content: center;
  }
  .brand {
    min-height: 44px;
    align-items: center;
  }
  .back {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 12px;
  }
  /* Hero: shorter orbit so the first catalogue content comes sooner. */
  .hero {
    padding-top: 28px;
  }
  .hero h1 {
    margin: 16px 0;
  }

  /* Filters: search on its own row, the three selects share one row. */
  .filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 8px;
  }
  .filters label:first-child {
    grid-column: 1 / -1;
  }
  .filters label {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-size: 12px;
  }
  .filters label > input,
  .filters label > select {
    margin-top: 6px;
    min-width: 0;
  }
  .filters select {
    padding: 10px 6px;
  }
  .filter-summary button {
    min-height: 44px;
  }
  /* Cards: same information, less height per product. */
  .art {
    height: auto;
    aspect-ratio: 16 / 10;
  }
  .card-body {
    padding: 14px 12px 4px;
  }
  .card h3 {
    font-size: 22px;
    margin: 10px 0 4px;
  }
  .card p {
    margin-bottom: 12px;
  }
  .card .text-link {
    align-items: center;
    min-height: 48px;
    padding-top: 0;
  }
  /* Product page: title, description, image, then channels. */
  .product-hero {
    gap: 0;
    padding-top: 16px;
  }
  .product-hero h1 {
    margin: 10px 0 12px;
  }
  .product-hero .lead {
    margin: 0 0 20px;
  }
  .product-hero > div:first-child {
    display: contents;
  }
  .product-hero > div:first-child > .channels {
    order: 2;
    margin-top: 0;
  }
  .product-hero > div:last-child {
    order: 1;
    margin-bottom: 20px;
  }
  .product-hero .image-preview > img,
  .product-image img {
    max-height: 56vh;
  }
  .image-preview > span {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 0;
  }
  .channels .button,
  .android-cta .button,
  .feedback-cta .button {
    width: 100%;
    min-height: 48px;
  }
  /* Tester page: heading and promise, then the form, then the steps. */
  .testers-page {
    gap: 24px;
    padding-top: 24px;
  }
  .testers-intro {
    display: contents;
  }
  .testers-intro > .eyebrow,
  .testers-intro > h1,
  .testers-intro > .lead {
    order: 0;
  }
  .testers-intro > h1 {
    margin: 0;
  }
  .testers-intro > .eyebrow,
  .testers-intro > .lead {
    margin: 0;
  }
  .testers-form {
    order: 1;
  }
  .testers-steps {
    order: 2;
    margin-top: 8px;
  }
  .closed-test-links {
    order: 3;
  }
  .testers-projects {
    order: 4;
  }
  .testers-products label {
    min-height: 48px;
    align-items: center;
  }
  .testers-form .consent a {
    display: inline-block;
    padding: 8px 0;
  }
  .testers-form .button {
    min-height: 52px;
  }
  /* Footer: links as a two-column list of full-height rows. */
  footer > div:nth-child(2) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
    width: 100%;
  }
  footer > div:nth-child(2) a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  footer small a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
@media (pointer: coarse) and (max-width: 600px) {
  .hero-planet {
    width: calc(256px * var(--pixel-snap, 1));
    height: calc(160px * var(--pixel-snap, 1));
  }
}
@media (pointer: coarse) and (min-width: 601px) {
  .hero-planet {
    width: calc(512px * var(--pixel-snap, 1));
    height: calc(320px * var(--pixel-snap, 1));
  }
}
@media (pointer: coarse) and (max-width: 1119px) {
  .identity-stage-v3 canvas,
  .identity-stage-v3 img {
    width: calc(256px * var(--pixel-snap, 1));
    height: calc(224px * var(--pixel-snap, 1));
  }
}
@media (max-width: 760px) {
  .feedback-cta + p a,
  .studio-identity label {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .studio-identity label {
    gap: 8px;
    margin: 0;
  }
}

/* Android testers on the catalogue: a notice and a link, not a feature. */
.testers-notice {
  margin: 0 0 40px;
}
.testers-notice a {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  padding: 10px 16px 10px 12px;
  text-decoration: none;
  background: var(--orbit);
  border: 1px solid var(--edge);
  border-left: 4px solid var(--salmon);
}
.testers-notice a:hover,
.testers-notice a:focus-visible {
  border-color: var(--salmon);
}
.testers-notice-thumbs {
  display: flex;
  flex-shrink: 0;
  padding-left: 12px;
}
.testers-notice-thumbs img {
  width: 64px;
  height: 40px;
  object-fit: cover;
  margin-left: -12px;
  border: 2px solid var(--orbit);
  background: var(--space);
}
.testers-notice-text {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.testers-notice-text strong {
  font-size: 15px;
}
.testers-notice-text small {
  color: var(--haze);
  font-size: 13px;
}
.testers-notice-go {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--salmon);
  white-space: nowrap;
}
.android-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 24px;
  align-items: center;
  padding: 16px 20px;
  margin-top: 24px;
  border: 1px solid var(--edge);
  border-left: 4px solid var(--salmon);
  border-image: none;
  background: var(--orbit);
}
.android-cta .eyebrow {
  grid-column: 1;
  margin: 0;
}
.android-cta h2 {
  grid-column: 1;
  font-size: 18px;
  margin: 0;
}
.android-cta p:not(.eyebrow) {
  grid-column: 1;
  margin: 0;
  font-size: 14px;
}
.android-cta .button {
  grid-column: 2;
  grid-row: 1 / span 3;
  margin: 0;
}
@media (max-width: 760px) {
  .testers-notice {
    margin-bottom: 28px;
  }
  .testers-notice a {
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 12px;
  }
  .testers-notice-thumbs img {
    width: 52px;
    height: 34px;
  }
  .testers-notice-text {
    flex-basis: 100%;
    order: 2;
  }
  .testers-notice-go {
    order: 1;
    margin-left: auto;
  }
  .android-cta {
    grid-template-columns: 1fr;
  }
  .android-cta .button {
    grid-column: 1;
    grid-row: auto;
    margin-top: 10px;
  }
}
@media (pointer: coarse) {
  .android-cta {
    border-width: 1px 1px 1px 4px;
  }
}

/* Compact product metadata and immediate browser access. */
.quick-facts { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 14px 0 20px; }
.quick-facts > div { min-width: 0; }
.quick-facts dt { color: var(--haze); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.quick-facts dd { margin: 0; font-size: 14px; line-height: 1.5; }
.card .quick-facts { gap: 10px 20px; }
.card .quick-facts > div:first-child { flex-basis: 100%; }
.card .quick-facts dd { font-size: 13px; }
.web-access { margin: 16px 0 8px; }
.web-access .play-button { margin: 0; background: var(--mint, #b5ee92); border-color: var(--mint, #b5ee92); color: #080725; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.web-access.prominent { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 0 0 24px; margin: 0; }
.web-access.prominent .play-button { min-width: 180px; min-height: 58px; font-size: 20px; }
.web-access small { color: var(--haze); font-size: 13px; }
@media(max-width:760px) {
 .product-hero .quick-facts { margin-top: 0; }
 .product-hero .web-access { order: 0; margin-bottom: 8px; }
 .web-access.prominent { gap: 12px; }
 .card .web-access .button { width: 100%; }
}

/* Floating language switch: always reachable, named in its own language. */
.lang-switch {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 14px 8px 10px;
  background: var(--cream);
  color: var(--space);
  border: 2px solid var(--space);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  box-shadow:
    4px 4px 0 var(--violet),
    0 12px 32px rgba(1, 0, 42, 0.55);
}
.lang-switch img {
  width: calc(32px * var(--pixel-snap, 1));
  height: calc(32px * var(--pixel-snap, 1));
  image-rendering: pixelated;
}
.lang-switch small {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  background: var(--space);
  color: var(--cream);
}
.lang-switch:hover {
  transform: translate(-1px, -1px);
  box-shadow:
    6px 6px 0 var(--violet),
    0 14px 34px rgba(1, 0, 42, 0.6);
}
.lang-switch:active {
  transform: translate(2px, 2px);
  box-shadow:
    2px 2px 0 var(--violet),
    0 8px 20px rgba(1, 0, 42, 0.5);
}
.lang-switch:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
footer {
  padding-bottom: 104px;
}
@media (max-width: 760px) {
  .lang-switch {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    min-height: 48px;
    padding: 6px 12px 6px 8px;
    font-size: 14px;
  }
}
@media (hover: none) {
  .lang-switch:hover {
    transform: none;
    box-shadow:
      4px 4px 0 var(--violet),
      0 12px 32px rgba(1, 0, 42, 0.55);
  }
}
@media (prefers-reduced-motion: reduce) {
  .lang-switch:hover,
  .lang-switch:active {
    transform: none;
  }
}
@media print {
  .lang-switch {
    display: none;
  }
}


/* Report context: every report says which product, platform and entry point. */
.report-context {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 24px 0 0;
  background: var(--edge);
  border: 1px solid var(--edge);
}
.report-context > div {
  padding: 12px 14px;
  background: var(--orbit);
}
.report-context dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--haze);
}
.report-context dd {
  margin: 4px 0 0;
  font-weight: 600;
}
.admin .report-context {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 20px;
}
.admin .report-context .button {
  margin-left: 8px;
  min-height: 36px;
  padding: 6px 12px;
}
.form-shell .contact-choice {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid var(--edge);
  background: var(--orbit-2);
}
.contact-choice legend {
  font-weight: 700;
  padding: 0 6px;
}
.form-shell .contact-choice > label:not(.contact-email) {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0 0;
  font-weight: 500;
}
.contact-choice > label:not(.contact-email) > input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex-shrink: 0;
}
.form-shell .contact-choice .contact-email {
  display: block;
  margin-top: 14px;
}
.contact-email small {
  display: block;
  margin-top: 6px;
  color: var(--haze);
  font-weight: 400;
}
@media (max-width: 760px) {
  .report-context,
  .admin .report-context {
    grid-template-columns: 1fr;
  }
  .form-shell .contact-choice > label:not(.contact-email) {
    min-height: 44px;
    align-items: center;
  }
}

/* Patch notes and player communications. */
.product-updates,
.updates-page {
  margin: 40px 0;
}
.updates-page {
  max-width: 860px;
  padding-top: 32px;
}
.updates-page h1 {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 12px 0 16px;
}
.product-updates-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.product-updates-head h2 {
  font-size: 26px;
  margin: 0 0 16px;
}
.feed-link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--salmon);
}
.update-list {
  display: grid;
  gap: 12px;
}
.update {
  padding: 18px 20px;
  background: var(--orbit);
  border: 1px solid var(--edge);
  border-left: 4px solid var(--edge);
  scroll-margin-top: 24px;
}
.update-patch {
  border-left-color: var(--teal);
}
.update-announcement {
  border-left-color: var(--violet);
}
.update-known_issue,
.update-maintenance {
  border-left-color: var(--salmon);
}
.update-pinned .update {
  border: 8px solid transparent;
  border-image: url("/brand/v4/portal-frame-signal.png") 4 fill / 8px;
  margin-bottom: 16px;
}
.update header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.update-kind,
.update-status {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
}
.update-kind {
  background: var(--orbit-2);
  color: var(--cream);
}
.update-status {
  color: var(--mint);
}
.update-status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  background: currentColor;
  vertical-align: 1px;
}
.update-status-in_review,
.update-status-publication_blocked {
  color: var(--salmon);
}
.update-status-resolved {
  color: var(--haze);
}
.update h3 {
  font-size: 20px;
  margin: 10px 0 4px;
}
.update h3 a {
  color: var(--cream);
}
.update-meta {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--haze);
}
.update ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.6;
}
.update-more {
  margin-top: 16px;
}
.update-more a {
  color: var(--teal);
}
.card-update {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: -4px 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--teal);
  text-decoration: none;
}
.card-update span {
  color: var(--space);
  background: var(--teal);
  padding: 1px 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media (max-width: 760px) {
  .update {
    padding: 14px 12px;
  }
  .card-update,
  .update-more a,
  .feed-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* Mobile header: the floating switch covers the language, so the menu keeps
   one line and scrolls sideways instead of wrapping labels. */
@media (max-width: 760px) {
  .header nav a.nav-lang {
    display: none;
  }
  .header nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, #000 88%, transparent);
  }
  .header nav::-webkit-scrollbar {
    display: none;
  }
  .header nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}
