:root {
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: #edf3f6;
  background: #11191f;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; }
main {
  width: min(100% - 40px, 572px);
  min-height: 100svh;
  margin-inline: auto;
  display: grid;
  align-content: center;
  padding-block: 48px;
}
h1 { margin: 0 0 30px; font-size: clamp(2.6rem, 7vw, 4rem); line-height: 1.15; }
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 3vw, 20px); }
.platform {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  gap: 4px;
  padding: 10px 12px 16px;
  border: 1px solid transparent;
  border-radius: 22px;
  font: 700 clamp(1.15rem, 3.6vw, 1.6rem) "Segoe UI", Tahoma, sans-serif;
  cursor: pointer;
}
.platform img { width: 100%; height: 100%; object-fit: contain; }
.x { color: #fff; background: #010101; border-color: #34434d; }
.snap { color: #ffef4d; background: #010101; border-color: #665c0a; }
.platform:hover { border-color: #a4d2d7; }
.platform:focus-visible { outline: 3px solid #a4d2d7; outline-offset: 5px; }

a.platform { text-decoration: none; }
.back { color: inherit; justify-self: start; margin-block-end: 18px; }
.x-menu form { margin: 0; }
.x-menu .platform {
  min-height: 100%;
  grid-template-rows: auto;
  align-content: center;
  text-align: center;
  background: #18252d;
  border-color: #34434d;
  color: inherit;
}
.x-menu .platform:hover { border-color: #a4d2d7; }
.unavailable { color: #bacbd3; line-height: 1.7; }

main:has(.home-platforms) { width: min(100% - 40px, 820px); }
.home-platforms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.clips { color: #fff; background: #18252d; border-color: #34434d; }
.clips img { border-radius: 12px; }
@media (max-width: 460px) {
  .home-platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.login { max-width: 420px; }
.login form { display: grid; gap: 12px; padding: 24px; background: #18252d; border-radius: 16px; }
.login input, .login button, .logout button { font: inherit; padding: 10px; border: 1px solid #42616a; border-radius: 8px; }
.login button, .logout button { cursor: pointer; background: #a4d2d7; color: #11191f; }
.logout { margin-top: 24px; }
