:root {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1c1917;
  background: #f5f5f4;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at -5rem 9rem, rgb(254 215 170 / 35%), transparent 24rem),
    radial-gradient(circle at calc(100% + 7rem) 35%, rgb(214 211 209 / 40%), transparent 24rem),
    #f5f5f4;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(calc(100% - 2rem), 72rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgb(231 229 228 / 80%);
  background: rgb(245 245 244 / 85%);
  backdrop-filter: blur(12px);
}

.header-inner {
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  padding-block: 0.25rem;
  border-radius: 0.5rem;
}

.brand img {
  width: auto;
  height: 2.25rem;
  transition: transform 150ms;
}

.brand:hover img {
  transform: scale(1.02);
}

.brand:focus-visible,
.legal-nav a:focus-visible,
.dialog-tab:focus-visible,
.close:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

.legal-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  color: #57534e;
  font-size: 0.875rem;
  font-weight: 500;
}

.legal-nav span {
  color: #d6d3d1;
}

.legal-nav a {
  padding: 0.25rem 0.375rem;
  border-radius: 0.25rem;
  transition: color 150ms;
}

.legal-nav a:hover {
  color: #0c0a09;
}

.hero {
  min-height: calc(100vh - 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 1rem 1.5rem;
}

.profile-card {
  position: relative;
  width: min(100%, 32rem);
  margin: auto;
  overflow: hidden;
  padding: 2.5rem;
  border: 1px solid rgb(231 229 228 / 90%);
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 20px 40px rgb(214 211 209 / 50%);
}

.accent {
  position: absolute;
  inset: 0 0 auto;
  height: 0.375rem;
  background: #f97316;
}

.hero-logo {
  display: block;
  width: auto;
  height: 3rem;
  margin: 0 auto 1.5rem;
}

.profile-card h1 {
  margin: 0;
  color: #1c1917;
  font-size: 1.875rem;
  line-height: 1.2;
  text-align: center;
}

.subtitle {
  margin: 0.375rem 0 1.75rem;
  color: #57534e;
  font-weight: 500;
  text-align: center;
}

.contacts {
  display: grid;
  gap: 0.75rem;
}

.contact {
  display: flex;
  gap: 0.875rem;
  align-items: center;
  padding: 0.875rem 1rem;
  border: 1px solid rgb(231 229 228 / 90%);
  border-radius: 1rem;
  background: rgb(250 250 249 / 70%);
  transition: border-color 150ms, background-color 150ms;
}

.contact:hover {
  border-color: #d6d3d1;
  background: #fafaf9;
}

.contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.75rem;
  background: #ffedd5;
  color: #c2410c;
  font-size: 1.1rem;
}

.contact-icon.phone {
  background: #e7e5e4;
  color: #44403c;
}

.contact small,
.steam-box small {
  display: block;
  color: #78716c;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact span:last-child {
  color: #1c1917;
  font-size: 0.875rem;
  font-weight: 500;
}

.discover {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
  color: #78716c;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 150ms;
}

.discover:hover {
  color: #1c1917;
}

.discover-circle {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 1px solid #d6d3d1;
  border-radius: 50%;
  background: rgb(255 255 255 / 80%);
  color: #78716c;
  box-shadow: 0 1px 2px rgb(0 0 0 / 5%);
  transition: border-color 150ms, color 150ms;
}

.discover:hover .discover-circle {
  border-color: #f97316;
  color: #ea580c;
}

.discover-icon {
  width: 1rem;
  height: 1rem;
  animation: discover-bounce 1s infinite;
}

@keyframes discover-bounce {
  0%,
  100% {
    transform: translateY(-20%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }

  50% {
    transform: translateY(20%);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

.game-section {
  position: relative;
  overflow: hidden;
  padding: 7rem 0;
  border-top: 1px solid #292524;
  background:
    radial-gradient(circle at 75% 0, rgb(234 88 12 / 10%), transparent 24rem),
    radial-gradient(circle at 25% 100%, rgb(2 132 199 / 10%), transparent 24rem),
    #1c1917;
  color: #f5f5f4;
}

.section-heading {
  max-width: 42rem;
  margin: 0 auto 4rem;
  text-align: center;
}

.eyebrow {
  color: #fb923c;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading .eyebrow {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgb(249 115 22 / 30%);
  border-radius: 999px;
  background: rgb(249 115 22 / 15%);
}

.game-logo {
  display: block;
  width: min(100%, 36rem);
  margin: 1rem auto 0;
}

.section-heading p {
  margin: 0.875rem 0 0;
  color: #a8a29e;
  font-size: 1.1rem;
}

.game-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem;
  overflow: hidden;
  border: 1px solid #292524;
  border-radius: 1.5rem;
  background: rgb(12 10 9 / 85%);
  box-shadow: 0 25px 50px rgb(0 0 0 / 70%);
}

.screenshots {
  display: grid;
  gap: 1.25rem;
}

.screenshots img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 2px dashed rgb(68 64 60 / 80%);
  border-radius: 1rem;
  transition: border-color 150ms;
}

.screenshots img:hover {
  border-color: rgb(249 115 22 / 60%);
}

.game-info h2 {
  margin: 0.5rem 0 1rem;
  color: #fff;
  font-size: 2rem;
  line-height: 1.2;
}

.game-info p {
  color: #d6d3d1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.tags span {
  padding: 0.35rem 0.7rem;
  border: 1px solid #292524;
  border-radius: 0.6rem;
  background: #1c1917;
  color: #d6d3d1;
  font-size: 0.75rem;
}

.steam-box {
  padding: 1rem;
  border: 1px solid #292524;
  border-radius: 1rem;
  background: rgb(28 25 23 / 90%);
}

.steam-link {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin: 0.6rem 0;
  padding: 0.8rem 1rem;
  border: 1px solid #44403c;
  border-radius: 0.75rem;
  background: #292524;
  color: #fff;
  font-weight: 700;
  transition: border-color 150ms, background-color 150ms;
}

.steam-link:hover {
  border-color: #fb923c;
  background: #ea580c;
}

.steam-link img {
  width: 8rem;
}

.steam-link b {
  margin-left: auto;
}

.legal-dialog {
  width: min(calc(100% - 2rem), 48rem);
  max-height: 85vh;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e7e5e4;
  border-radius: 1rem;
  background: #fff;
  color: #44403c;
  box-shadow: 0 1rem 4rem rgb(0 0 0 / 50%);
}

.legal-dialog[open] {
  display: flex;
  flex-direction: column;
}

.legal-dialog::backdrop {
  background: rgb(28 25 23 / 60%);
  backdrop-filter: blur(2px);
}

.dialog-head,
.dialog-foot {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e7e5e4;
  background: #fafaf9;
}

.dialog-tabs {
  display: flex;
  gap: 0.5rem;
}

.dialog-tab,
.close {
  border: 0;
  cursor: pointer;
}

.dialog-tab {
  padding: 0.4rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  background: transparent;
  color: #57534e;
  font-size: 0.875rem;
  font-weight: 600;
}

.dialog-tab:hover {
  color: #1c1917;
}

.dialog-tab.active {
  border-color: rgb(231 229 228 / 80%);
  background: #fff;
  color: #ea580c;
  box-shadow: 0 1px 2px rgb(214 211 209 / 50%);
}

.dialog-close-icon {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 0.5rem;
  background: transparent;
  color: #a8a29e;
  font-size: 1.5rem;
  line-height: 1;
}

.dialog-close-icon:hover {
  background: #f5f5f4;
  color: #44403c;
}

.dialog-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 1.5rem;
  overflow-y: auto;
  color: #44403c;
  font-size: 0.875rem;
  line-height: 1.6;
}

.dialog-panel[hidden] {
  display: none;
}

.dialog-body h2,
.dialog-body h3,
.dialog-body h4 {
  color: #1c1917;
}

.dialog-body a {
  color: #ea580c;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.dialog-foot {
  justify-content: flex-end;
  padding-block: 0.75rem;
  border-top: 1px solid #e7e5e4;
  border-bottom: 0;
}

.button {
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  background: #1c1917;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.button:hover {
  background: #292524;
}

.privacy-panel {
  height: min(60vh, 42rem);
  margin: -1.5rem;
}

.privacy-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 700px) {
  .header-inner {
    height: 4rem;
  }

  .brand img {
    height: 2rem;
  }

  .legal-nav {
    gap: 0.5rem;
    font-size: 0.75rem;
  }

  .hero {
    min-height: calc(100vh - 4rem);
    padding-block: 2rem 1rem;
  }

  .profile-card {
    padding: 2rem 1.25rem;
  }

  .game-section {
    padding: 5rem 0;
  }

  .section-heading {
    margin-bottom: 3rem;
  }

  .game-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }

  .legal-dialog {
    width: calc(100% - 1rem);
    max-height: calc(100vh - 1rem);
  }

  .dialog-head {
    padding: 0.75rem;
  }

  .dialog-tabs {
    gap: 0.25rem;
  }

  .dialog-tab {
    padding-inline: 0.55rem;
    font-size: 0.78rem;
  }

  .dialog-body {
    padding: 1rem;
  }

  .privacy-panel {
    height: calc(100vh - 9rem);
    margin: -1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
