/* In portrait the document itself scrolls. Each section has its own white frame. */
body { --portrait-header-height: 56px; --portrait-footer-height: 105px; height: auto; min-height: 100svh; background-position: center top; background-size: 100% auto; background-repeat: repeat-y; }
.design { flex: none; }
header { position: sticky; top: 0; height: 56px; padding-inline: 10px; box-shadow: 0 2px 6px #0002; }
.brand { flex-basis: 42px; }
nav { gap: 3px; }
nav a:nth-child(n) { padding-inline: 8px; font-size: 12px; }
nav a[href="#home"], .hero-window { display: none; }

main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  flex: none; width: 100%; max-height: none;
  margin: 0; padding: 12px 10px 14px;
  border: 0; background: transparent; pointer-events: auto;
}
.window {
  position: relative; inset: auto; width: 100%; height: auto; min-height: calc(100dvh - var(--portrait-header-height) - 26px);
  display: flex; flex-direction: column;
  border: 1px solid #ccc; border-radius: 18px; padding: 7px;
  background: #fff; container-type: inline-size; pointer-events: auto;
}
.window:has(#support) { min-height: calc(100dvh - var(--portrait-header-height) - var(--portrait-footer-height) - 26px); }
.slide, .paper[hidden] {
  position: relative; inset: auto; display: flex; flex: 1; flex-direction: column; overflow: clip;
  overscroll-behavior: auto; border-radius: 10px; scroll-margin-top: calc(var(--portrait-header-height) + 20px);
}
.mobile-content, .support-content { min-height: 0; flex: 1; }
.hero-window { display: none; }

.game-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  grid-template-rows: auto minmax(min-content, 1fr) auto auto auto;
  align-content: space-between;
  gap: 0;
  padding: 20px 13px;
  background: #fafaf9;
}
.game-identity { gap: 4.5%; }
.game-identity img:first-child { width: 27%; aspect-ratio: 1; }
.game-identity img:last-child { width: 68%; aspect-ratio: 1000 / 211; }
.game-content .phone { width: calc(100% + 16px); aspect-ratio: 1080 / 545; max-height: none; margin: 20px -8px; }
.game-content p { font: 400 18px/1.4 Arial, Helvetica, sans-serif; margin: 0; }
.game-content p + p { margin-top: 10px; }
.game-content .store-badges { display: grid; grid-template-columns: minmax(0, 2.992fr) minmax(0, 3.357fr); align-items: center; gap: 10px; width: 100%; margin-top: 26px; }
.game-content .store-badges > a:last-child { grid-column: 1 / -1; width: 174px; max-width: 60%; justify-self: center; }

.about-content { display: grid; grid-template-rows: minmax(220px, 1fr) auto; grid-template-columns: minmax(0, 1fr); align-content: stretch; align-items: center; gap: 0; padding: 0 20px 24px; background: #f8f8f6; }
.about-content > img {
  width: min(53vw, 192px);
  aspect-ratio: 660 / 661;
  max-height: none;
  flex: none;
  margin: 0 auto;
}
.about-content p { margin: 0; font: 400 18px/1.45 Arial, Helvetica, sans-serif; }
.about-content p + p { margin-top: 16px; }
.about-content h1, .support-content h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.support-content { display: flex; flex-direction: column; justify-content: flex-start; gap: 0; padding: 20px 14px 0; background: #fafaf9; }
.support-content > p:has(.support-intro) { display: none; }
.support-content > p { order: 1; font: 14px/1.25 Arial, sans-serif; margin: 0 0 12px; }
.support-content > p:empty { display: none; }
.support-content form { flex: 1; min-height: 0; grid-template-rows: repeat(4, max-content) minmax(72px, 1fr); gap: 0 10px; }
.support-content label { gap: 6px; color: #212121; font: 600 14px/1.15 Arial, sans-serif; }
.support-content label:not(:has(textarea)) { margin-bottom: 12px; }
.support-content :is(input, select, textarea) {
  height: 48px;
  padding: 0 9px;
  border: 1px solid #b6b6b2;
  border-radius: 5px;
  font: 400 16px/1.2 Arial, sans-serif;
}
.support-content textarea { height: clamp(80px, calc(100dvh - var(--portrait-footer-height) - 459px), 132px); padding: 10px 9px; }
.support-content button {
  align-self: center; width: min(100%, 124px); height: 48px; margin: 0; padding: 8px 16px;
  background: #141414; border-radius: 5px; text-transform: none; font: 700 18px/1 Arial, sans-serif;
}

footer { flex-direction: column; justify-content: center; min-height: 0; padding: 12px 16px 14px; gap: 8px; }
footer small { order: 1; color: #bdbdbd; text-align: center; font: 11px/1.3 Arial, sans-serif; }
.social-links { display: flex; justify-content: center; gap: 22px; height: 56px; width: auto; flex: none; background: none; }
.social-links a { width: 56px; height: 56px; flex: none; border-radius: 8px; }
.social-links a:active { background-color: #333; }
.social-links a::before { width: 32px; height: 32px; }
.social-links a:nth-child(3)::before { width: calc(32px * 47 / 36); }

@media (max-height: 660px) {
  .game-content { padding-block: 16px; }
  .game-identity img:first-child { width: 25%; }
  .game-content .phone { width: 100%; margin: 12px 0; }
  .game-content p, .about-content p { font-size: 16px; }
  .game-content .store-badges { margin-top: 18px; }
  .game-content .store-badges > a:last-child { width: 156px; }
  .about-content { grid-template-rows: minmax(190px, 1fr) auto; padding-bottom: 20px; }
  .about-content > img { width: min(50vw, 176px); }
  .about-content p + p { margin-top: 14px; }
  .support-content { padding-top: 16px; }
  .support-content form { grid-template-rows: repeat(4, max-content) minmax(64px, 1fr); }
  .support-content label:not(:has(textarea)) { margin-bottom: 10px; }
  .support-content :is(input, select) { height: 44px; }
}

@media (max-width: 340px) {
  .game-content p, .about-content p { font-size: 16px; }
  .support-content { padding-top: 16px; }
  .support-content form { grid-template-rows: repeat(5, max-content) minmax(64px, 1fr); }
  .support-content label:has(select) { grid-column: 1 / -1; }
  .support-content label:not(:has(textarea)) { margin-bottom: 10px; }
  .support-content :is(input, select) { height: 44px; }
  .support-content textarea { height: 80px; }
}

