@font-face {
  font-family: "IQOSSans-Regular";
  src: url("fonts/IQOSSans-Regular.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IQOSSans-Bold";
  src: url("fonts/IQOSSans-Bold.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Breathing";
  src: url("fonts/Breathing.ttf") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

:root {
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-right: env(safe-area-inset-right, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-left: env(safe-area-inset-left, 0px);
}

html,
body {
  width: 100%;
  height: 100%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  font-family: "IQOSSans-Regular", serif;
  letter-spacing: 0.025em;
  font-size: max(1.4vw, 1.4vh);
  color: white;
  background-color: #4823ae;
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  min-height: 100dvh;
  overflow: hidden;
}

.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/bg_2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

.content-area {
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex;
  flex: 1;
  position: relative;
  overflow: hidden;

  width: 100%;
  background-image: url('assets/bg_2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.main-spacer-top {
  flex: 1;
}

.content-center {
  text-align: center;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.content-center > * {
  grid-area: 1 / 1;
}

.content-labels {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.content-key-image {
  max-height: 50vh;
  max-width: 90vw;
}

.content-key {
  position: relative;
  width: 661px;
  height: 661px;
  z-index: -1;
  background-image: url('assets/key.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.electric-image {
  /*width: 620px;*/
  width: 95%;
  height: auto;
  display: block;
}

.headline-top {
  font-size: 2.5em;
  font-weight: 200;
  line-height: 1.2;
  margin-bottom: 5px;
  /*font-size: 50px;*/
  /*margin-top: 5px;*/
  /*margin-top: 2.0em;*/
  margin-top: 2.1em;
  color: #fff;
  font-family: "IQOSSans-Bold", serif;
}

.headline-main {
  font-family: "Breathing", sans-serif;
  font-weight: 100;
  font-size: 8em;
  line-height: 0.5;
  color: white;
}

.headline-main-gradient {
  font-family: "Breathing", sans-serif;
  font-size: 6em;
  line-height: 0.8;
  margin-top: 0;
  margin-bottom: 40px;
  background-image: linear-gradient(90deg, #9900ff, #00ffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(153, 0, 255, 0.5);
}

.start-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  color: #393E44;
  border: 2px solid white;
  padding: 1.4em 3.4em;
  font-size: 1.8em;
  line-height: 1.8;
  font-weight: 700;
  border-radius: 9990px;
  cursor: pointer;
  font-family: "IQOSSans-Bold", serif;
  transition: background-color 0.3s, border-color 0.3s;
}

.start-button:hover {
  background-color: rgba(255, 255, 255, 255);
}

.start-button:active {
  transform: scale(0.95);
  /*filter: brightness(0.85)*/
}

button {
  height: max(5vw, 5vh);
  font-size: max(2vw, 2vh);
  font-weight: bold;
  border-radius: max(1.5vw, 1.5vh);
  padding-left: max(5vw, 5vh);
  padding-right: max(5vw, 5vh);
  border: 0;
  color: #fff;
  background: #3d3d3d;
  transition: 0.1s;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

button:hover {
  filter: brightness(1.15)
}

button:active {
  transform: scale(0.95);
  filter: brightness(0.85)
}

.start-ar-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /*position: absolute;*/
  position: fixed;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: #2f2e32aa;
  z-index: 99;
  transition: 0.5s;
}

.sup-ar-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /*position: absolute;*/
  position: fixed;
  min-height: 100dvh;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: #2f2e32aa;
  z-index: 99;
  transition: 0.5s;
}

.below-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;

  align-items: center;
  justify-content: center;

  width: 100dvw;
}

.footer-wrap {
  /*position: relative;*/
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  padding-bottom: var(--safe-area-bottom);
  /*min-height: calc(var(--vh) * 10);*/
  background-color: white;
}

.footer-note {
  background-color: white;
  color: #393E44;
  width: 100%;
  padding: 2px;
  text-align: center;
  font-family: "IQOSSans-Regular", serif;
  font-size: clamp(10px, 12px, 16px);
  line-height: 1.2;
  box-sizing: border-box;
}

.footer-span {
  display: inline-block;
  width: 100%;
  word-wrap: break-word;
}

.gap-top,
.gap-bottom {
  flex: 1;
}

.brand {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-icon {
  width: 80%;
  height: auto;
}

.iqos-logo-v1 {
  position: absolute;
  right: calc(8px + env(safe-area-inset-right, 0px));
  bottom: calc(100% + env(safe-area-inset-bottom, 0px));
  width: 20%;
  height: auto;
  color: white;
  place-items: center;
}

.iqos-logo {
  position: absolute;
  right: calc(8px + var(--safe-area-right));
  bottom: calc(8px + var(--safe-area-bottom));
  /*width: 170px;*/
  width: 20%;
  height: auto;
  color: white;
  place-items: center;
}

.terms {
  position: absolute;
  bottom: calc(100% + env(safe-area-inset-bottom, 0px));
  color: white;
  place-items: center;
}

.terms-text {
  color: white;
  place-items: center;
  font-family: "IQOSSans-Regular", serif;
  font-weight: 200;

  padding: 0;
  margin: 0 0 1em 0;
}

.hidden {
  display: none;
!important;
}

.content-top {
  grid-row: 2;
  justify-self: center;
  align-self: center;
}

.content-middle {
  justify-self: center;
  align-self: center;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  display: flex;
  min-height: 90px;
  min-width: 50%;
}

.content-bot {
  justify-self: center;
}

/* Unity */

#unity-root {
  margin: 0;
  height: 100%;
}

#loader {
  height: auto;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.progress {
  height: 12px;
  background: #937585;
  border-radius: 999px;
  overflow: hidden;
}

.progress .bar {
  height: 100%;
  background: #fff;
  transition: width .2s ease;
}

.language-selector {
  padding: 12px 16px;
  box-sizing: border-box;
  display: none;
  width: 70px;
  height: auto;
  position: absolute;
  top: calc(25px + var(--safe-area-top));
  right: calc(25px + var(--safe-area-right));
  align-items: start;
  justify-content: space-between;
  border-radius: 24px;
  background-color: #FFFFFF99;

  .languages {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .language-item {
    font-size: 16px;
    font-family: "IQOSSans-Bold", serif;
    color: #393E4499;
    display: none;
    justify-content: space-between;
    gap: 4px;
  }

  .visible {
    display: flex;
  }
}

.sup-ar-content > div > button[onclick*="HideScreenshot"] {
  top: calc(max(1vw, 1vh) + var(--safe-area-top)) !important;
  right: calc(max(1vw, 1vh) + var(--safe-area-right)) !important;
}

.dream-screen {
  display: none;
  width: 100%;
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  min-height: 100dvh;
  background-color: #4823ae;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  z-index: 1000;
  gap: 56px;
}

.dream-screen.active {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.dream-mode #start-ar-div {
  display: none !important;
  visibility: hidden;
  opacity: 0;
}

.dream-mode .dream-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.dream-label {
  font-family: "IQOSSans-Regular", serif;
  font-size: 48px;
  color: white;
  text-align: center;
  padding: 0 25px;
}

.dream-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  color: #393E44;
  border: 2px solid white;
  padding: 1.4em 3.4em;
  font-size: 1.8em;
  line-height: 1.8;
  font-weight: 700;
  border-radius: 9990px;
  cursor: pointer;
  font-family: "IQOSSans-Bold", serif;
  position: absolute;
  bottom: calc(120px + var(--safe-area-bottom));
}

#loader-dream {
  position: absolute;
  bottom: calc(120px + var(--safe-area-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
}

.error-page {
  margin: 0;
  padding: 25px;
  color: white;
  background-color: #4823ae;
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 15px;

  .title {
    font-family: "IQOSSans-Bold", serif;
    font-size: 28px;
  }

  .subtitle {
    font-family: "IQOSSans-Regular", serif;
    font-size: 22px;
  }
}

/* Fonts */

.font-iqos-regular {
  font-family: "IQOSSans-Regular", Georgia, "Times New Roman", serif;
}

.font-iqos-bold {
  font-family: "IQOSSans-Bold", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.font-breathing {
  font-family: "Breathing", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
