/*
 * KOrder styles · public/css/02d-tablet-idle.css
 * Guest tablet: idle screen (media, fallback, copy).
 *
 * public/css/*.css used to be one public/styles.css. The files are cut from it in order
 * and index.html loads them in that same order, which is the CSS cascade order: do not
 * reorder the <link> tags, and add a rule to the file that owns its screen.
 * Map: public/css/README.md
 */

.idle-screen {
  position: relative;
  min-height: calc(100vh - 118px);
  overflow: hidden;
  border-radius: var(--radius);
  background: #111;
  box-shadow: var(--shadow);
}

.tablet-main .idle-screen {
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  border-radius: 0;
  box-shadow: none;
}

.idle-media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

video.idle-media::-webkit-media-controls,
video.idle-media::-webkit-media-controls-panel,
video.idle-media::-webkit-media-controls-start-playback-button {
  display: none !important;
  opacity: 0 !important;
}

img.image-load-failed {
  display: none !important;
}

[data-image-fallback].image-missing {
  position: relative;
}

.image-fallback-text {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 8px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.idle-screen.image-missing > .image-fallback-text {
  position: absolute;
  inset: 0;
  z-index: 0;
  color: #fff;
  font-size: clamp(58px, 12vw, 144px);
  background:
    linear-gradient(140deg, rgba(8, 127, 117, 0.94), rgba(23, 23, 23, 0.74)),
    #087f75;
}

.idle-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(140deg, rgba(8, 127, 117, 0.94), rgba(23, 23, 23, 0.74)),
    #087f75;
}

.idle-fallback span {
  color: #fff;
  font-size: clamp(58px, 12vw, 144px);
  font-weight: 900;
}

.idle-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.16));
}

.idle-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: calc(100vh - 118px);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 740px;
  padding: clamp(28px, 8vw, 92px);
  color: #fff;
}

.tablet-main .idle-copy {
  min-height: 100vh;
  min-height: 100dvh;
}

.idle-copy h2 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(44px, 8vw, 96px);
  line-height: 1.02;
}

.idle-copy p {
  max-width: 520px;
  margin: 18px 0 28px;
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 1.35;
}

.idle-copy .button.compact {
  width: min(360px, 100%);
  min-width: 0;
  height: 112px;
  min-height: 112px;
  padding: 0 48px;
  border-radius: 8px;
  font-size: 34px;
  font-weight: 900;
}
