/* Turtle Snap homepage embed. Phone overlay only.
   Does not restyle Search Everywhere, wells, logo, or FAQ. */

.game-fs-close,
.game-fs-hint {
  display: none;
}

.game-hit-play {
  display: none;
}

body.ts-fs-open {
  overflow: hidden;
}

@media (max-width: 599px) {
  .ds-ghead {
    cursor: pointer;
  }

  .game-hit {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .game-hit-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #42f5e6;
    color: #04222b;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    border-radius: 11px;
    padding: 9px 16px;
    pointer-events: none;
  }

  html body .game-strip.is-fs {
    position: fixed;
    inset: 0;
    z-index: 4000;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 0;
    aspect-ratio: auto;
    overflow: hidden;
    background: #0d3d6b;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    box-sizing: border-box;
  }

  html body .game-strip.is-fs .game-fs-close {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    position: absolute;
    top: max(10px, env(safe-area-inset-top));
    left: max(12px, env(safe-area-inset-left));
    z-index: 2;
    border: 0;
    border-radius: 11px;
    padding: 9px 14px;
    background: #42f5e6;
    color: #04222b;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
  }

  html body .game-strip.is-fs .game-fs-hint {
    display: block;
    position: absolute;
    top: max(10px, env(safe-area-inset-top));
    left: 0;
    right: 0;
    margin: 0 72px;
    text-align: center;
    color: #e7fff9;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    z-index: 1;
    pointer-events: none;
  }

  html body .game-strip.is-fs iframe {
    display: block;
    position: relative;
    inset: auto;
    width: min(100%, 820px);
    height: auto;
    max-height: calc(100dvh - 64px);
    margin: 52px auto 12px;
    aspect-ratio: var(--game-ar, 700 / 246);
    border: 0;
    pointer-events: auto;
  }

  html body .game-strip.is-fs .game-hit {
    display: none;
  }
}
