@font-face {
  font-family: "DM Sans";
  src: url("media/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

@font-face {
  font-family: "Young Serif";
  src: url("media/young-serif.ttf") format("truetype");
  font-display: swap;
}

:root {
  --forest: #172822;
  --forest-deep: #111d18;
  --cream: #faecd0;
  --gold: #f1be64;
  --paper: #f5ead3;
  --ink: #242b24;
  --muted: #514e40;
  --rule: #cdbc98;
  --serif: "Young Serif", Georgia, serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.55 "DM Sans", system-ui, sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
button { font: inherit; }
:focus-visible { outline: 3px solid #8a3625; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
.wrap { width: min(100% - 4rem, 76rem); margin-inline: auto; }

.masthead { background: var(--forest-deep); color: var(--cream); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.publisher { color: var(--cream); font-family: var(--serif); font-size: 1.08rem; text-decoration: none; }
.masthead nav { display: flex; gap: clamp(1rem, 3.5vw, 2rem); font-size: .925rem; }
.masthead nav a { color: #eee0c6; text-decoration: none; }
.masthead a:hover { color: var(--gold); }
.masthead :focus-visible, .hero :focus-visible { outline-color: var(--gold); }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--cream);
  background: radial-gradient(ellipse at 70% 50%, #3a4c36, transparent 57%),
              linear-gradient(110deg, #1b3027, var(--forest-deep));
  border-block: 1px solid #53604b;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 9px;
  border: 1px solid #e0bd7830;
  box-shadow: 0 0 0 3px #e0bd7811;
  pointer-events: none;
  content: "";
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  min-height: clamp(32rem, 47vw, 40rem);
  padding-block: clamp(2.75rem, 5.8vw, 5.25rem);
}

.hero-copy { position: relative; z-index: 1; }
.label {
  color: var(--gold);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1 { margin-block: .76rem 1.35rem; font: 400 clamp(3rem, 6.1vw, 6.25rem)/.98 var(--serif); letter-spacing: -.055em; }
h1 span { display: block; color: var(--gold); }
.pitch { max-width: 28rem; color: #f3e1c4; font-size: clamp(1.03rem, 1.6vw, 1.27rem); line-height: 1.5; }

.store-links { display: grid; grid-template-columns: repeat(2, max-content); gap: .75rem; margin-top: 1.8rem; }
.store-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 56px;
  padding: .53rem .93rem;
  border: 1px solid #ae995e;
  border-radius: .52rem;
  background: #111b16;
  color: #fff6e5;
  box-shadow: 0 .24rem .72rem #080e0b45;
  text-decoration: none;
  scroll-margin-top: 1rem;
}
.store-link img { flex: none; }
.store-link small, .store-link strong { display: block; line-height: 1.14; white-space: nowrap; }
.store-link small { font-size: .69rem; }
.store-link strong { font-size: 1.21rem; font-weight: 750; }
.store-link:hover { background: #3e4c33; border-color: var(--gold); }
.store-link:target { outline: 2px solid var(--gold); outline-offset: 4px; }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .28rem 1rem; min-height: 2.6rem; margin-top: .55rem; color: #e8d8b8; font-size: .89rem; }
.hero-meta button { min-height: 44px; padding: 0; border: 0; color: var(--cream); background: none; text-decoration: underline; text-underline-offset: .22em; cursor: pointer; }
.hero-meta button:hover, #share-status { color: var(--gold); }

.hero-art { position: relative; isolation: isolate; aspect-ratio: 1.21; }
.hero-art img { position: absolute; height: auto; }
.art-ring {
  position: absolute;
  inset: 5% 11% 6%;
  border: 1px solid #d3b97e4d;
  border-radius: 50%;
  box-shadow: 0 0 0 9px #d3b97e14, 0 0 0 10px #d3b97e2b;
  transform: rotate(-14deg);
}
.art-ring::after { position: absolute; inset: 11%; border: 1px solid #d3b97e26; border-radius: inherit; content: ""; }
.deck-back {
  width: 32%;
  aspect-ratio: 5 / 7;
  height: auto;
  border: 3px solid #1c1d17;
  border-radius: .65rem;
  object-fit: fill;
  box-shadow: 0 13px 25px #11140fb8;
}
.back-pickle { top: 13%; left: 18%; transform: rotate(-24deg); }
.back-cheese { top: 15%; left: 50%; transform: rotate(20deg); }
.back-chicken { top: 7%; left: 34%; transform: rotate(-4deg); }
.fighter { filter: drop-shadow(0 .56rem .55rem #10180e8f); }
.pickle { width: 33%; right: 2%; bottom: 9%; transform: rotate(5deg); }
.meat-man { width: 45%; right: 18%; bottom: 1%; transform: rotate(4deg); }
.nugget { width: 56%; left: 1%; bottom: -1%; transform: rotate(-4deg); }

.gameplay { padding-block: clamp(3rem, 6.9vw, 6.5rem); }
.gameplay-intro { display: grid; grid-template-columns: 1.55fr 1fr; align-items: end; gap: 1rem 3rem; padding-bottom: 1.55rem; border-bottom: 1px solid var(--rule); }
.gameplay-intro h2, .support h2 { font: 400 clamp(2rem, 4vw, 3.6rem)/1.08 var(--serif); letter-spacing: -.04em; }
.gameplay-intro p { max-width: 36ch; color: var(--muted); font-size: 1.06rem; }
.gameplay-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); margin-top: 1.8rem; }
.gameplay-card { min-width: 0; }
.gameplay-image {
  display: grid;
  place-items: center;
  min-width: 0;
  height: clamp(14rem, 32vw, 23.5rem);
  padding: clamp(.85rem, 2.4vw, 1.6rem);
  border: 1px solid #0003;
  border-radius: .35rem;
  background: radial-gradient(ellipse at 50% 46%, #626b4c, #293e33);
  box-shadow: inset 0 0 0 4px #f3d59427;
}
.battle .gameplay-image { background: radial-gradient(ellipse at 50% 46%, #865544, #592c25); }
.reward .gameplay-image { background: radial-gradient(ellipse at 50% 46%, #a28a53, #655235); }
.gameplay-image img { width: auto; height: 100%; min-height: 0; object-fit: contain; border: 1px solid #100e09b3; border-radius: .38rem; box-shadow: 0 .4rem 1rem #14100662; }
.gameplay-card figcaption { padding: 1.05rem .1rem 0; }
.gameplay-card h3 { color: #333e31; font: 400 clamp(1.18rem, 2.1vw, 1.72rem)/1.25 var(--serif); }
.gameplay-card p { max-width: 31ch; margin-top: .42rem; color: var(--muted); }

.support { background: #eaddc0; border-block: 1px solid var(--rule); }
.support-inner { display: flex; align-items: end; justify-content: space-between; gap: 1.15rem 3rem; padding-block: clamp(2rem, 4.5vw, 3.5rem); }
.support h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.support p { margin-top: .4rem; color: var(--muted); }
.text-link { flex: none; font-weight: 700; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.2rem; color: var(--muted); font-size: .9rem; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

#share-dialog { width: min(30rem, calc(100% - 2rem)); padding: 1.5rem; border: 1px solid var(--rule); border-radius: .65rem; color: var(--ink); background: var(--paper); box-shadow: 0 1rem 3rem #090c0880; }
#share-dialog::backdrop { background: #0d1713ba; }
#share-title { font: 400 1.4rem/1.25 var(--serif); }
#share-dialog label { display: block; margin-top: 1rem; }
#share-dialog input { display: block; width: 100%; margin-block: .25rem 1rem; padding: .55rem; border: 1px solid #96886d; border-radius: .23rem; background: #fffaf0; color: var(--ink); font: inherit; }
#share-dialog button { min-height: 44px; padding-inline: .9rem; border: 0; border-radius: .25rem; background: var(--forest); color: var(--cream); cursor: pointer; }

@media (max-width: 850px) {
  .wrap { width: min(100% - 3rem, 76rem); }
  .hero-inner { gap: .5rem; }
}

@media (max-width: 720px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding-block: 2.4rem 1rem; text-align: center; }
  .pitch { margin-inline: auto; }
  h1 { font-size: clamp(2.85rem, 10.7vw, 4.9rem); }
  .store-links { justify-content: center; }
  .hero-meta { justify-content: center; }
  .hero-art { width: min(100%, 29rem); margin-inline: auto; }
  .gameplay-intro { grid-template-columns: minmax(0, 1fr); }
  .gameplay-image { height: clamp(11rem, 41vw, 18rem); }
}

@media (max-width: 540px) {
  .wrap { width: calc(100% - 2.5rem); }
  .masthead-inner { min-height: 3.5rem; }
  .publisher { font-size: .96rem; }
  .masthead nav { gap: .85rem; font-size: .85rem; }
  .store-links { grid-template-columns: repeat(2, minmax(0, 10.5rem)); gap: .55rem; }
  .store-link { gap: .45rem; padding-inline: .4rem; }
  .store-link img { width: 23px; height: 23px; }
  .store-link strong { font-size: clamp(.99rem, 4.4vw, 1.16rem); }
  .store-link small { font-size: .63rem; }
  .gameplay-grid { grid-template-columns: minmax(0, 1fr); gap: 1.85rem; }
  .gameplay-image { height: min(80vw, 22rem); }
  .support-inner { flex-direction: column; align-items: start; }
}
