:root {
  color-scheme: light;
  --ink: #17141f;
  --ink-soft: #4d4658;
  --paper: #f4efe6;
  --paper-strong: #fffaf0;
  --line: rgba(23, 20, 31, 0.16);
  --orange: #ff7048;
  --violet: #7766e8;
  --lime: #badd71;
  --shadow: 0 24px 70px rgba(44, 34, 55, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 5%, rgba(255, 112, 72, 0.17), transparent 25rem),
    radial-gradient(circle at 90% 23%, rgba(119, 102, 232, 0.15), transparent 30rem),
    var(--paper);
  color: var(--ink);
}

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 50;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark,
.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-decoration: none;
}

.closet-mark {
  width: 28px;
  height: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 2px solid currentColor;
  border-radius: 4px 4px 2px 2px;
}

.closet-mark i { position: relative; border-right: 1px solid currentColor; }
.closet-mark i:last-child { border: 0; }
.closet-mark i::after {
  content: "";
  position: absolute;
  top: 52%;
  right: 2px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
}
.closet-mark i:last-child::after { right: auto; left: 2px; }
.closet-mark.small { width: 23px; height: 27px; }

.top-nav { display: flex; gap: 30px; }
.top-nav a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}
.top-nav a:hover { color: var(--ink); }

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: 660px;
  margin: 0 auto;
  padding: 76px 0 84px;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(44px, 8vw, 110px);
}

.kicker {
  margin: 0 0 15px;
  color: #695d75;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 8.4vw, 7.8rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.82;
}

.hero h1 em { color: var(--violet); font-weight: 500; }

.hero-text {
  max-width: 620px;
  margin: 32px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.65;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23, 20, 31, 0.13); }
.button-primary { background: var(--ink); color: white; }
.button-ghost { background: rgba(255, 255, 255, 0.42); }

.hero-door {
  position: relative;
  min-height: 506px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 9px solid #2b2632;
  border-bottom-width: 15px;
  border-radius: 170px 170px 12px 12px;
  background: #292331;
  color: white;
  box-shadow: var(--shadow);
  text-decoration: none;
  transform: rotate(1.2deg);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.hero-door:hover { transform: rotate(0) translateY(-5px); box-shadow: 0 34px 90px rgba(44, 34, 55, 0.22); }
.door-topline {
  position: absolute;
  z-index: 3;
  top: 26px;
  left: 50%;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(19, 16, 24, .5);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: translateX(-50%);
}
.door-scene { position: relative; flex: 1; overflow: hidden; background: linear-gradient(#40385f 0 52%, #6e6961 52%); }
.door-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 18%, rgba(244,228,174,.24), transparent 22%), linear-gradient(transparent 60%, rgba(23,20,31,.35));
}
.moon { position: absolute; top: 90px; right: 64px; width: 54px; height: 54px; border-radius: 50%; background: #efd995; box-shadow: 0 0 40px rgba(239,217,149,.4); }
.tower { position: absolute; bottom: 69px; width: 76px; background: #25212c; }
.tower::before { content: ""; position: absolute; top: -34px; left: -8px; border-left: 46px solid transparent; border-right: 46px solid transparent; border-bottom: 38px solid #25212c; transform: rotate(180deg); }
.tower::after { content: ""; position: absolute; left: 28px; bottom: 26px; width: 20px; height: 36px; border-radius: 10px 10px 0 0; background: #d5864e; box-shadow: 0 0 18px rgba(213,134,78,.6); }
.tower-one { left: 58px; height: 150px; }
.tower-two { right: 34px; height: 105px; transform: scale(.72); transform-origin: bottom; }
.road { position: absolute; bottom: -36px; left: 46%; width: 110px; height: 190px; background: #9a8b72; clip-path: polygon(42% 0, 62% 0, 100% 100%, 0 100%); }
.wanderer { position: absolute; z-index: 2; bottom: 38px; left: 49%; width: 18px; height: 32px; border-radius: 50% 50% 35% 35%; background: #5f3bac; box-shadow: 0 -7px 0 -4px #e4c38c; }
.door-label { position: relative; z-index: 4; display: grid; gap: 6px; padding: 24px 26px 27px; background: #17141f; }
.door-label small { color: #aca2b7; font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.door-label strong { font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.door-label > span { color: #d8ceea; font-size: .84rem; font-weight: 780; }

.collection {
  padding: 92px max(20px, calc((100vw - 1180px) / 2)) 110px;
  background: #17141f;
  color: #fffaf0;
}
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 38px; }
.section-heading .kicker { color: #b9aec6; }
.section-heading h2, .about h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.6rem, 5vw, 5rem); font-weight: 500; letter-spacing: -.04em; line-height: .96; }
.filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.filter {
  min-height: 39px;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: transparent;
  color: #d8d0df;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  cursor: pointer;
}
.filter:hover, .filter.is-active { border-color: #fffaf0; background: #fffaf0; color: var(--ink); }

.game-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.game-card {
  grid-column: span 4;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: #231f2a;
  transition: transform 180ms ease, border-color 180ms ease;
}
.game-card:nth-child(1), .game-card:nth-child(2) { grid-column: span 6; }
.game-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.28); }
.game-card[hidden] { display: none; }
.card-cover { position: relative; height: 260px; display: block; overflow: hidden; color: white; }
.game-card:nth-child(-n+2) .card-cover { height: 330px; }
.cover-chip { position: absolute; z-index: 5; top: 16px; left: 16px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(23,20,31,.5); backdrop-filter: blur(10px); font-size: .67rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.card-copy { min-height: 250px; display: flex; flex-direction: column; padding: 22px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: #aaa0b7; font-size: .67rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.card-copy h3 { margin: 13px 0 10px; font-family: Georgia, serif; font-size: 1.75rem; font-weight: 500; letter-spacing: -.025em; }
.card-copy h3 a { text-decoration: none; }
.card-copy p { margin: 0; color: #bcb3c5; font-size: .9rem; line-height: 1.62; }
.play-link { margin-top: auto; padding-top: 22px; color: #fffaf0; font-size: .83rem; font-weight: 850; text-decoration: none; }
.play-link span { display: inline-block; transition: transform 140ms ease; }
.play-link:hover span { transform: translateX(4px); }
.empty-state { padding: 50px 0; color: #bcb3c5; text-align: center; }

.card-sprout .card-cover { background: linear-gradient(150deg, #193f31, #6c9a5c); }
.sprout-art { position: absolute; inset: 34px 12% 18px; border-radius: 14px; background: linear-gradient(rgba(6,29,19,.05), rgba(6,29,19,.5)), repeating-linear-gradient(to top, transparent 0 50px, rgba(255,255,255,.15) 51px 53px); }
.sprout-art i { position: absolute; bottom: 10%; left: 48%; width: 17px; height: 17px; border-radius: 50% 50% 50% 8%; background: #d9f491; box-shadow: 0 16px 0 #b8e46e, -22px -52px 0 #d9f491, 25px -101px 0 #b8e46e; transform: rotate(-30deg); }
.sprout-art i:nth-child(2) { bottom: auto; top: 18%; left: 14%; width: 8px; height: 12px; border-radius: 50%; background: #8cd8d0; box-shadow: 220px 65px 0 #8cd8d0, 120px 152px 0 #8cd8d0; }
.sprout-art i:nth-child(3) { left: 18%; bottom: 14%; width: 36%; height: 8px; border-radius: 6px; background: #c89556; box-shadow: 150px -88px 0 #c89556; transform: none; }
.sprout-art i:nth-child(4) { left: 50%; bottom: 8px; width: 3px; height: 72%; border-radius: 0; background: rgba(218,244,145,.8); transform: none; }

.card-timber .card-cover { background: linear-gradient(#bdd8dc 0 61%, #8ba26f 61%); }
.timber-art { position: absolute; inset: 28px 7% 10px; transform: skewY(-4deg); }
.trees { position: absolute; left: 4%; bottom: 34%; width: 34px; height: 52px; background: #315f42; clip-path: polygon(50% 0, 100% 100%, 0 100%); filter: drop-shadow(48px 8px 0 #315f42) drop-shadow(93px -7px 0 #264d36); }
.truck { position: absolute; left: 43%; bottom: 22%; width: 94px; height: 43px; border-radius: 5px; background: #cc7048; box-shadow: 18px -19px 0 -7px #e0a165; }
.truck::after { content: ""; position: absolute; left: 13px; bottom: -8px; width: 16px; height: 16px; border-radius: 50%; background: #26302e; box-shadow: 55px 0 0 #26302e; }
.mill { position: absolute; right: 4%; bottom: 30%; width: 85px; height: 74px; background: #70513b; }
.mill::before { content: ""; position: absolute; top: -28px; left: -8px; border-left: 51px solid transparent; border-right: 51px solid transparent; border-bottom: 32px solid #47392f; transform: rotate(180deg); }

.card-wizard .card-cover { background: linear-gradient(#567259 0 55%, #735b45 55%); image-rendering: pixelated; }
.wizard-art { position: absolute; inset: 40px 8% 0; }
.inn { position: absolute; left: 4%; bottom: 38%; width: 120px; height: 80px; background: #a96f44; box-shadow: inset 0 -15px #76462f; }
.inn::before { content: ""; position: absolute; top: -30px; left: -8px; width: 136px; height: 38px; background: #432f2b; clip-path: polygon(10% 100%, 0 70%, 50% 0, 100% 70%, 90% 100%); }
.inn::after { content: "INN"; position: absolute; top: 20px; left: 38px; padding: 4px 8px; background: #e9c17f; color: #33271f; font: 900 10px/1 monospace; }
.path { position: absolute; left: 0; right: 0; bottom: 28%; height: 38px; background: #bf946c; box-shadow: 0 9px rgba(66,46,36,.35); }
.wizard { position: absolute; left: 62%; bottom: 19%; width: 24px; height: 49px; background: #4c327d; box-shadow: 0 -13px 0 -6px #e4bd8a; }
.wizard::before { content: ""; position: absolute; top: -23px; left: -8px; border-left: 20px solid transparent; border-right: 20px solid transparent; border-bottom: 29px solid #33214f; transform: rotate(-8deg); }

.card-tanks .card-cover { background: radial-gradient(circle at 50% 80%, #193e39, #080b10 64%); }
.tank-art { position: absolute; inset: 0; perspective: 400px; }
.grid { position: absolute; left: -25%; right: -25%; bottom: -20%; height: 76%; background: repeating-linear-gradient(90deg, rgba(73,255,182,.18) 0 1px, transparent 1px 38px), repeating-linear-gradient(rgba(73,255,182,.18) 0 1px, transparent 1px 35px); transform: rotateX(58deg); transform-origin: bottom; }
.tank { position: absolute; left: 41%; bottom: 20%; width: 84px; height: 41px; background: #36df8a; clip-path: polygon(12% 23%, 72% 23%, 100% 58%, 91% 100%, 0 100%); box-shadow: 0 0 24px rgba(54,223,138,.45); }
.tank::before { content: ""; position: absolute; top: -13px; left: 30px; width: 38px; height: 18px; border-radius: 6px 6px 0 0; background: #1c8e5a; }
.tank::after { content: ""; position: absolute; top: -8px; left: 55px; width: 60px; height: 5px; background: #61ffab; transform: rotate(-9deg); transform-origin: left; }
.drone { position: absolute; width: 25px; height: 7px; border-radius: 50%; background: #ebfffa; box-shadow: 0 0 14px #51f6a7, -16px 2px 0 -2px #51f6a7, 16px 2px 0 -2px #51f6a7; }
.drone-one { top: 27%; left: 22%; }
.drone-two { top: 20%; right: 18%; transform: scale(.72); }

.card-star .card-cover { background: radial-gradient(circle at 50% 100%, #20176b, #060617 72%); }
.star-art { position: absolute; inset: 0; }
.stars { position: absolute; inset: 0; background-image: radial-gradient(#fff 1px, transparent 1px), radial-gradient(#8da3ff 1px, transparent 1px); background-position: 0 0, 22px 19px; background-size: 46px 46px, 67px 67px; opacity: .52; }
.ship { position: absolute; z-index: 2; bottom: 15%; left: calc(50% - 17px); width: 34px; height: 50px; background: #95f4d4; clip-path: polygon(50% 0, 100% 100%, 52% 78%, 0 100%); filter: drop-shadow(0 0 12px #4fe8bb); }
.formation { position: absolute; z-index: 2; top: 28%; left: calc(50% - 68px); width: 18px; height: 13px; background: #ff7586; border-radius: 50% 50% 35% 35%; box-shadow: 30px 16px #ff7586, 60px 0 #ffba6b, 90px 16px #ff7586, 120px 0 #ffba6b, 15px 40px #ffba6b, 45px 51px #ff7586, 75px 40px #ff7586, 105px 51px #ffba6b; }

.card-mines .card-cover { background: linear-gradient(145deg, #dff3e9, #c9b7ed); }
.mine-art { position: absolute; left: 50%; top: 54%; width: 174px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; transform: translate(-50%, -50%) rotate(-4deg); }
.mine-art i { aspect-ratio: 1; border: 2px solid rgba(78,59,110,.15); border-radius: 9px; background: rgba(255,255,255,.72); box-shadow: 0 5px 9px rgba(54,48,66,.12); }
.mine-art i:nth-child(2)::after, .mine-art i:nth-child(6)::after { content: "2"; display: grid; height: 100%; place-items: center; color: #6d52aa; font: 900 20px/1 Georgia; }
.mine-art i:nth-child(5) { background: #386b55; }
.mine-art i:nth-child(5)::after { content: "✦"; display: grid; height: 100%; place-items: center; color: #e9d7ff; }

.about {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0 120px;
  display: grid;
  grid-template-columns: 1.05fr .8fr;
  gap: clamp(50px, 9vw, 130px);
}
.about h2 { max-width: 700px; }
.about-copy { padding-top: 28px; }
.about-copy p { margin: 0 0 22px; color: var(--ink-soft); font-size: 1.03rem; line-height: 1.75; }

.site-footer {
  width: min(1180px, calc(100% - 40px));
  min-height: 130px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .8rem;
}
.site-footer p { text-align: center; }
.site-footer nav { display: flex; justify-content: flex-end; gap: 20px; }

@media (max-width: 920px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 62px; }
  .hero-door { width: min(480px, 100%); min-height: 480px; justify-self: center; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .filters { justify-content: flex-start; }
  .game-card, .game-card:nth-child(-n+2) { grid-column: span 6; }
  .game-card:nth-child(-n+2) .card-cover { height: 280px; }
  .about { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header { width: min(100% - 26px, 1180px); min-height: 68px; }
  .top-nav { gap: 15px; }
  .top-nav a:last-child { display: none; }
  .hero { width: min(100% - 28px, 1180px); padding: 52px 0 70px; }
  .hero h1 { font-size: clamp(3.7rem, 18vw, 5.4rem); }
  .hero-door { min-height: 440px; border-radius: 130px 130px 10px 10px; }
  .collection { padding: 76px 14px 90px; }
  .section-heading { padding: 0 4px; }
  .filters { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
  .filter { flex: 0 0 auto; }
  .game-grid { gap: 15px; }
  .game-card, .game-card:nth-child(-n+2) { grid-column: 1 / -1; }
  .card-cover, .game-card:nth-child(-n+2) .card-cover { height: 255px; }
  .card-copy { min-height: 230px; }
  .about { width: min(100% - 28px, 1180px); padding: 78px 0 88px; }
  .site-footer { width: min(100% - 28px, 1180px); padding: 28px 0; grid-template-columns: 1fr; text-align: center; }
  .site-footer p { margin: 0; }
  .site-footer nav, .footer-mark { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
