@font-face {
  font-family: "a_MachinaOrtoCaps";
  src: url("fonts/a_machinaortocaps_bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Supermolot Neue Trl";
  src: url("fonts/tt_supermolot_neue_trial_regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bar: #00b69e;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #7ec8ea url("img/bg_hd.jpg") center center / cover no-repeat fixed;
}

.bar {
  background: var(--bar);
  color: #fff;
}

header.bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 12px 28px;
}

.logo {
  justify-self: start;
  display: block;
  height: 50px;
  width: auto;
}

.nav-collection,
.nav-rules {
  font-family: "a_MachinaOrtoCaps", sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-collection { justify-self: center; }

.nav-rules { justify-self: end; }

main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.panel {
  width: min(820px, 100%);
  background: rgba(236, 248, 252, 0.72);
  padding: 32px 28px 40px;
  text-align: center;
}

h1,
.counter {
  font-family: "a_MachinaOrtoCaps", sans-serif;
  font-weight: 700;
  color: #0182de;
}

h1 {
  margin: 0 auto;
  /*max-width: 16em;*/
  font-size: 30px;
  line-height: 1.25;
}

.lead,
footer p {
  font-family: "TT Supermolot Neue Trl", sans-serif;
  font-weight: 400;
}

.lead {
  margin: 18px auto 0;
  max-width: 28em;
  color: #4e6270;
  font-size: 20px;
  line-height: 1.35;
}

.counter {
  margin: 26px 0 12px;
  font-size: 28px;
  line-height: 1;
}

.gems {
  width: min(100%, 620px);
  margin: 0 auto;
  aspect-ratio: 738 / 130;
  background: url("img/gems-row.png") center / 100% 100% no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
}

.gems img {
  width: 15.5%;
  height: auto;
  margin: 0 -0.3%;
}

.email-entry,
.dino-landing-search {
  display: block;
  width: max-content;
  margin: 16px auto 0;
  padding: 12px 24px;
  border-radius: 8px;
  background: #0182de;
  color: #fff;
  font: 400 16px/1.2 "TT Supermolot Neue Trl", sans-serif;
  text-align: center;
  text-decoration: none;
}

.email-entry[hidden] { display: none; }

.slots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: calc(100% + 40px);
  margin: 20px -20px 0;
}

.slot {
  width: 25%;
  margin: 0;
}

.slot img {
  display: block;
  width: 100%;
  height: auto;
}

footer.bar {
  padding: 12px 16px;
}

footer p {
  margin: 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.3;
}

@media (max-width: 767px) {
  body { background-attachment: scroll; }

  header.bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 56px;
    padding: 8px 10px;
  }

  .logo { height: 32px; }

  .nav-collection,
  .nav-rules { font-size: 12px; }

  main { padding: 0 10px; }

  .panel {
    width: 100%;
    padding: 18px 12px 22px;
  }

  h1 { font-size: 18px; }

  .lead { font-size: 16px; }

  .counter { font-size: 20px; }

  .gems { width: 100%; }

  .slots {
    width: 100%;
    margin: 16px 0 0;
  }

  .slot { width: 50%; }

  footer p { font-size: 12px; }
}

.slot[data-found="1"],
.slot[data-found="0"] { cursor: pointer; }

.dino-landing-modal { position: fixed; inset: 0; z-index: 10003; overflow: auto; }

.dino-landing-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
}

.dino-landing-frame {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  box-sizing: border-box;
  width: min(720px, calc(100% - 32px));
  min-height: 100%;
  margin: 0 auto;
  padding: 16px 0;
}

.dino-landing-panel {
  position: relative;
  width: 100%;
  padding: 0 0 20px;
  background: #fff;
  border-radius: 16px;
  box-sizing: border-box;
}

.dino-landing-image { display: block; width: 100%; height: auto; }

.dino-landing-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.dino-landing-text {
  margin: 12px 0 0;
  padding: 0 20px;
  color: #0182de;
  font: 400 20px/1.4 "TT Supermolot Neue Trl", sans-serif;
  text-align: center;
}

.dino-landing-text-follow { margin-top: 8px; }

.dino-landing-modal-email-input {
  display: block;
  width: max-content;
  margin: 16px auto 0;
  padding: 12px 24px;
  border-radius: 8px;
  border-color:#0182de;
  background: #ffffff;
  color: #0182de;
  font: 400 16px/1.2 "TT Supermolot Neue Trl", sans-serif;
  text-align: center;
  text-decoration: none;
  outline: none;
}

.dino-landing-modal-email-text {
  text-align: center;
  margin-top:10px;
}
.dino-landing-search {
  cursor: pointer;
}

.dino-landing-progress {
  margin: 24px 0 0;
  padding: 0 20px;
  font: 600 16px/1.4 sans-serif;
  text-align: center;
}

.dino-landing-close {
  align-self: center;
  flex: none;
  width: 41px;
  height: 41px;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
}

.dino-landing-close-icon { display: block; width: 41px; height: 41px; }

@media (min-width: 768px) {
  .dino-landing-close { align-self: flex-end; }
}
