/*! minireset.css v0.0.6 | MIT License | github.com/jgthms/minireset.css */
html,
body,
p,
ol,
ul,
li,
dl,
dt,
dd,
blockquote,
figure,
fieldset,
legend,
textarea,
pre,
iframe,
hr,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: normal;
}

ul {
  list-style: none;
}

button,
input,
select {
  margin: 0;
}

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

img,
video {
  height: auto;
  max-width: 100%;
}

iframe {
  border: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  padding: 0;
}

:root {
  --dark: #12121a;
  --cyan: #5bc3ec;
  --purple: #9966ff;
  --purple-dark: hsl(from #fff h s 10%);
  --pink: #f363f3;
  --text: #fff;
}

html {
  background-color: var(--dark);
  font-size: 1em;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-width: 300px;
  overflow-x: hidden;
  overflow-y: scroll;
  text-align: center;
  text-rendering: optimizeLegibility;
  text-size-adjust: 100%;
}

body {
  font-size: 1em;
  font-weight: 400;
  line-height: 1.5;
}

body,
button,
input,
optgroup,
select,
textarea {
  color: var(--text);
  font-family:
    "Mona Sans", "Inter Variable", Inter, Helvetica, Arial, sans-serif;
}

a {
  transition-duration: 300ms;
  transition-property: opacity;
}

a {
  text-decoration: none;
  color: inherit;
}

strong,
h1,
h2,
h3,
h4 {
  font-weight: 600;
}

h1 {
  color: var(--pink);
}

h2 {
  color: var(--cyan);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1em;
  align-items: center;
}

.home {
  text-align: center;
  min-height: 100vh;
}

.intro {
  padding: 3em;
  gap: 3em;
  margin: auto 0;
}

.logo {
  width: 100%;
  max-width: 320px;
}

.tagline {
  font-size: 1.125em;
}

.pattern {
  background-image: url("https://jgthms.com/hopera/assets/images/pattern.png");
  background-size: 30px 30px;
  background-repeat: repeat;
  background-position: center;
  height: 240px;
  width: 100%;
  padding: 30px;
  /* padding-left: 23px;
  padding-top: 23px;
  background-position: 8px 8px; */
  gap: 28px;
  position: relative;
  overflow: hidden;
}

.block {
  --color: var(--pink);
  --x: 2;
  --o: 3;
  background-color: color-mix(in srgb, var(--color) 10%, transparent);
  border: 2px solid var(--color);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  width: calc(30px * var(--x));
  flex-shrink: 0;
  position: absolute;
  margin-left: calc(calc(30px * var(--o)) + 28px);
  top: -40px;
  animation: fall 3s linear infinite;

  &.is-cyan {
    --color: var(--cyan);
    animation-delay: -1s;
  }

  &.is-purple {
    --color: var(--purple);
    animation-delay: -2s;
  }
}

@keyframes fall {
  from {
    top: -40px;
  }

  to {
    top: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .block {
    animation: none;
    top: 40px;
  }
}

.letter {
  background-image: url("https://jgthms.com/hopera/assets/images/e.png");
  background-size: 24px 24px;
  background-position: center;
  height: 24px;
  width: 24px;

  &.is-o {
    background-image: url("https://jgthms.com/hopera/assets/images/o.png");
  }

  &.is-a {
    background-image: url("https://jgthms.com/hopera/assets/images/a.png");
  }
}

.store-buttons {
  display: flex;
  gap: 1em;
  justify-content: center;
  align-items: center;
}

.store-buttons img {
  display: block;
  width: auto;
  height: 40px;
}

.web {
  em {
    opacity: 0.5;
  }
}

.info {
  padding: 3em;
}

.disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3em;

  a {
    text-decoration: underline;
  }
}

.disclaimer-body {
  border-radius: 2em;
  padding: 1.5em 2em;
  corner-shape: squircle;
}

#game {
  width: 320px;
  height: 568px;
  flex-shrink: 0;
  touch-action: none;
}

.gradient-border {
  --border-bg: var(--dark);

  border: 2px solid transparent;
  background:
    linear-gradient(var(--border-bg), var(--border-bg)) padding-box,
    linear-gradient(90deg, var(--cyan), var(--purple), var(--pink)) border-box;
}

.button {
  --button-bg: var(--dark);

  display: inline-block;
  padding: 0.625em 1.5em;
  border: 2px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(var(--button-bg), var(--button-bg)) padding-box,
    linear-gradient(90deg, var(--cyan), var(--purple), var(--pink)) border-box;
  font-weight: 500;
  transition-duration: 300ms;
  transition-property: background-color;

  &:hover {
    --button-bg: color-mix(in srgb, var(--dark) 85%, black);
  }

  &:active {
    --button-bg: color-mix(in srgb, var(--dark) 65%, black);
  }
}

.about {
  span,
  a {
    opacity: 0.3;
  }

  a {
    font-weight: 500;
  }

  a:hover {
    opacity: 1;
  }
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2em;
  padding: 3em;
  font-size: 0.875em;
  margin-top: auto;

  a {
    opacity: 0.3;

    &:hover {
      opacity: 1;
    }
  }
}

.page {
  margin: 0 auto;
  max-width: 64em;
  text-align: left;
  padding: min(10vw, 6em);
  width: 100%;
}

.content {
  gap: 1em;
  margin-top: min(10vw, 6em);
  align-items: start;

  a {
    text-decoration: underline;
  }
}
