@font-face {
  font-family: "Michroma";
  src: url("Fonts/Michroma-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0d0b10;
  --panel: #1f1c26;
  --panel-2: #262332;
  --button-bg: #222121;
  --button-bg-pressed: #2c2836;
  --button-border: #b6b6b0;
  --text: #d65b02;
  --text-muted: #9b9a98;
  --text-light: #ffffff;
  --warning: #ffd84a;
  --energy: #24bfff;
  --card-bg: #19161e;
  --card-border: rgba(255, 255, 255, 0.20);
  --section-glow-bg:
    radial-gradient(circle at top left, rgba(255, 216, 74, 0.22), transparent 28rem),
    radial-gradient(circle at bottom right, rgba(255, 216, 74, 0.22), transparent 28rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%) 0 0 / 28px 28px,
    linear-gradient(225deg, rgba(255, 255, 255, 0.018) 25%, transparent 25%) 0 0 / 28px 28px,
    linear-gradient(180deg, rgba(38, 35, 50, 0.93), rgba(31, 28, 38, 0.93));
  --radius: 16px;
  --border-width: 2px;
  --max-width: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text-light);
  font-family: "Michroma", Arial, sans-serif;
  background: var(--bg);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58)),
    url("Images/the_wonder.png");
  background-position: left top, left top;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 28px, var(--max-width));
  margin: 0 auto;
  padding: clamp(20px, 4vw, 52px) 0;
}

.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(8px, 2vw, 18px) 0 clamp(16px, 3vw, 30px);
}

.hero-logo img {
  width: min(100%, 820px);
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.72));
}

.play-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 2vw, 18px);
  width: min(100%, 520px);
  margin: clamp(6px, 1.4vw, 14px) auto clamp(18px, 2.4vw, 28px);
}

.play-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 78px;
  margin: 0;
  padding: 13px 20px;
  flex-direction: column;
  gap: 4px;
  border: var(--border-width) solid var(--button-border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--button-bg), #191719);
  color: var(--text);
  font-size: clamp(1.15rem, 3vw, 1.85rem);
  font-weight: 400;
  letter-spacing: 0.09em;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 0 12px rgba(214, 91, 2, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 32px rgba(0, 0, 0, 0.36);
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}


.play-main,
.play-game {
  display: block;
}

.play-main {
  font-size: 0.92em;
}

.play-game {
  font-size: 0.82em;
}

.play-button:hover,
.play-button:focus-visible {
  background: linear-gradient(180deg, var(--button-bg-pressed), var(--button-bg));
  border-color: var(--warning);
  outline: none;
  transform: translateY(-1px);
}

.play-button:active {
  transform: translateY(0);
}

.story-panel,
.download-panel {
  border: var(--border-width) solid var(--button-border);
  border-radius: var(--radius);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

.story-panel {
  margin-top: 0;
  padding: clamp(18px, 4vw, 46px);
  background: var(--section-glow-bg);
}

.story-panel > h1,
.download-panel > h1 {
  color: var(--text);
  font-size: clamp(1.5rem, 3.6vw, 2.55rem);
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 1.18;
  text-align: center;
  text-shadow:
    0 0 12px rgba(214, 91, 2, 0.28),
    0 2px 0 rgba(0, 0, 0, 0.85);
}

.story-section {
  margin-top: clamp(20px, 3.4vw, 38px);
  padding: clamp(16px, 3vw, 30px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(214, 91, 2, 0.12), transparent 42%),
    rgba(25, 22, 30, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 32px rgba(0, 0, 0, 0.25);
}

.story-section h2 {
  margin-bottom: 16px;
  color: var(--text);
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.25;
}

.story-section p {
  max-width: 74ch;
  color: var(--text-light);
  font-size: clamp(0.9rem, 1.35vw, 1.04rem);
  font-weight: 400;
  line-height: 1.72;
}

.story-section p + p {
  margin-top: 0.92rem;
}

.story-image {
  margin-top: clamp(18px, 3vw, 28px);
  overflow: hidden;
  border: var(--border-width) solid rgba(182, 182, 176, 0.62);
  border-radius: var(--radius);
  background: rgba(13, 11, 16, 0.50);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 16px 40px rgba(0, 0, 0, 0.34);
}

.story-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.download-panel {
  margin-top: clamp(18px, 3vw, 30px);
  padding: clamp(18px, 4vw, 42px);
  background: var(--section-glow-bg);
}

.app-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3.4vw, 38px);
  width: 100%;
  margin-top: clamp(18px, 3vw, 30px);
}

.app-item {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: clamp(18px, 3vw, 30px);
  border: var(--border-width) solid var(--button-border);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(214, 91, 2, 0.10), transparent 46%),
    rgba(25, 22, 30, 0.88);
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 14px 34px rgba(0, 0, 0, 0.30);
}


#purge-the-bastions-app,
#the-wonder-defense-app {
  scroll-margin-top: clamp(18px, 4vw, 48px);
}

.app-item img {
  width: min(68vw, 230px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(182, 182, 176, 0.55);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
}

.app-item h2 {
  color: var(--text);
  font-size: clamp(1.08rem, 2.2vw, 1.45rem);
  font-weight: 400;
  line-height: 1.25;
  text-shadow: 0 0 10px rgba(214, 91, 2, 0.22);
}

.app-item h3 {
  color: var(--text-light);
  font-size: clamp(0.82rem, 1.25vw, 0.98rem);
  font-weight: 400;
  line-height: 1.35;
}

.app-item p {
  width: 100%;
  color: var(--text-light);
  font-size: clamp(0.88rem, 1.35vw, 1rem);
  line-height: 1.65;
  text-align: center;
}

.app-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  padding: 14px 18px;
  border: var(--border-width) solid var(--button-border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--button-bg), #191719);
  color: var(--text);
  font-size: clamp(0.94rem, 2vw, 1.18rem);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.30);
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.app-item a:hover,
.app-item a:focus-visible {
  background: linear-gradient(180deg, var(--button-bg-pressed), var(--button-bg));
  border-color: var(--warning);
  outline: none;
  transform: translateY(-1px);
}

.app-item a:active {
  transform: translateY(0);
}

.app-description {
  width: 100%;
  color: var(--text-light);
  font-size: clamp(0.88rem, 1.35vw, 1rem);
  line-height: 1.65;
}

.app-description p + p {
  margin-top: 0.7rem;
}

.store-button,
.wind-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 14px 18px;
  border: var(--border-width) solid var(--button-border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--button-bg), #191719);
  color: var(--text);
  font-size: clamp(0.94rem, 2vw, 1.18rem);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.30);
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.store-button {
  width: 100%;
}

.wind-button {
  width: min(100%, 800px);
  margin: clamp(18px, 3vw, 30px) auto 0;
}

.store-button:hover,
.store-button:focus-visible,
.wind-button:hover,
.wind-button:focus-visible {
  background: linear-gradient(180deg, var(--button-bg-pressed), var(--button-bg));
  border-color: var(--warning);
  outline: none;
  transform: translateY(-1px);
}

.store-button:active,
.wind-button:active {
  transform: translateY(0);
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 18px, var(--max-width));
    padding-block: 14px 28px;
  }

  .hero-logo {
    padding-top: 4px;
  }

  .play-buttons {
    width: min(100%, 360px);
    margin-bottom: clamp(18px, 5vw, 28px);
  }

  .play-button {
    min-height: 70px;
  }

  .story-panel,
  .download-panel {
    border-radius: 14px;
  }

  .story-section {
    padding: 16px;
  }

  .app-item img {
    width: min(72vw, 210px);
  }
}

@media (max-width: 420px) {
  .page-shell {
    width: min(100% - 12px, var(--max-width));
  }

  .story-panel,
  .download-panel {
    padding: 14px;
  }

  .story-section {
    padding: 14px;
  }

  .store-button,
  .wind-button {
    min-height: 52px;
    padding-inline: 12px;
  }
}
