/* goatacorngames.com — one sticker sheet. Tokens first, then the sheet, then the note. */

@font-face { font-family: "Lilita One"; src: url("/fonts/lilita-one.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Andika"; src: url("/fonts/andika-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Andika"; src: url("/fonts/andika-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --backing: #EEF1F5;        /* the waxy backing paper */
  --backing-sheen: #F8FAFC;
  --ink: #23203A;            /* printed ink on the sheet */
  --ink-2: #5B5779;          /* secondary text, tinted from the ink, never gray */
  --pink: #FF5FA2;
  --yellow: #FFC93C;
  --teal: #2BBFB2;
  --purple: #8B6CF6;
  --orange: #FF8A5B;
  --kiss: rgba(35, 32, 58, .16);         /* the kiss-cut ghost lines */
  --shadow: rgba(35, 32, 58, .20);
  --shadow-deep: rgba(35, 32, 58, .30);
  --display: "Lilita One", "Arial Rounded MT Bold", sans-serif;
  --text: "Andika", "Verdana", sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 3vw, 40px);
}

* { box-sizing: border-box; }
html { scrollbar-color: var(--ink-2) var(--backing); }
body {
  margin: 0;
  color: var(--ink);
  font: 400 18px/1.55 var(--text);
  background: var(--backing) linear-gradient(160deg, var(--backing-sheen) 0%, var(--backing) 30%, var(--backing) 75%, var(--backing-sheen) 100%);
  overflow-x: hidden;
}
::selection { background: var(--pink); color: #fff; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--pink); }
a:focus-visible, .sticker:focus-visible { outline: 4px solid var(--pink); outline-offset: 6px; border-radius: 8px; }
img { display: block; max-width: 100%; height: auto; }

/* ---------- header: the wordmark sticker, the Goatacorn leaning on it, the hook ---------- */
.head {
  position: relative;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) var(--gutter) 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  align-items: start;
}
.brand { grid-column: 1 / 8; grid-row: 1; position: relative; z-index: 1; padding-top: 24px; }
.wordmark { width: 100%; height: auto; filter: drop-shadow(0 4px 6px var(--shadow)); }
.games {
  display: block;
  margin-top: .06em;
  padding-left: 2%;
  font: 400 clamp(56px, 7.6vw, 112px)/.95 var(--display);
  letter-spacing: .04em;
  filter: drop-shadow(0 4px 6px var(--shadow));
}
.games i {
  font-style: normal;
  -webkit-text-stroke: .085em #fff;
  paint-order: stroke fill;
}
.games i:nth-child(1) { color: var(--pink); }
.games i:nth-child(2) { color: var(--yellow); }
.games i:nth-child(3) { color: var(--teal); }
.games i:nth-child(4) { color: var(--purple); }
.games i:nth-child(5) { color: var(--orange); }

.goat { grid-column: 7 / 10; grid-row: 1; z-index: 2; margin: 0 0 0 -15%; }
.goat img { width: 100%; }
.goat .more { position: absolute; inset: 0; opacity: 0; transition: opacity .45s var(--ease-out); }
.goat:hover .more, .goat:active .more, .goat:focus-visible .more { opacity: 1; }

.hook {
  grid-column: 10 / 13;
  grid-row: 1;
  margin: 0;
  padding-top: 40px;
  font-size: 20px;
  line-height: 1.5;
}
.hook strong {
  display: inline-block;
  margin: 0 0 18px -6px;
  padding: 10px 18px 12px;
  font: 400 40px/1.02 var(--display);
  color: var(--ink);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 0 3px #fff, 0 6px 12px var(--shadow);
  transform: rotate(-2.5deg);
  text-wrap: balance;
}
.hook span { display: block; }

/* ---------- a sticker: real die-cut art, a label sticker over its foot, lifts to peel ---------- */
.sticker {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--ink);
  transform: rotate(var(--tilt, 0deg));
  transform-origin: 50% 60%;
  transition: transform .55s var(--ease-out);
  will-change: transform;
}
.sticker img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 8px var(--shadow));
  transition: filter .55s var(--ease-out);
}
.tag {
  position: absolute;
  left: 4%;
  bottom: -14px;
  max-width: 92%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 10px 10px 10px 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 0 3px #fff, 0 6px 12px var(--shadow);
  transform: rotate(-3deg);
  transform-origin: 0 100%;
  transition: transform .55s var(--ease-out);
}
.tag b { font: 400 24px/1.05 var(--display); letter-spacing: .01em; }
.tag small { font-size: 14px; line-height: 1.3; color: var(--ink-2); margin-top: 3px; }
.s-bobby .sticker, .s-nelly .sticker { padding-bottom: 92px; }   /* room for the tag, which sits under the circle */
.s-bobby .tag, .s-nelly .tag { top: 100%; bottom: auto; margin-top: -84px; left: 4%; right: 4%; max-width: none; grid-template-columns: 1fr; grid-template-rows: auto auto; row-gap: 8px; padding: 10px 10px 10px 12px; }
.s-bobby .tag b, .s-nelly .tag b { font-size: 19px; }
.s-bobby .play, .s-nelly .play { grid-column: 1; grid-row: 2; justify-self: start; }

.play {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  min-height: 46px;
  min-width: 76px;
  display: grid;
  place-items: center;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 400 19px/1 var(--display);
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background-color .3s var(--ease-out);
}

@media (hover: hover) {
  .sticker:hover { transform: rotate(var(--tilt, 0deg)) translateY(-12px) scale(1.035); z-index: 3; }
  .sticker:hover img { filter: drop-shadow(0 26px 24px var(--shadow-deep)); }
  .sticker:hover .tag { transform: rotate(-7deg) translateY(-4px); }
  .sticker:hover .play { background: var(--pink); color: var(--ink); }
}
/* the same peel for a finger or a keyboard: the moment is not hover-only */
.sticker:active, .sticker:focus-visible { transform: rotate(var(--tilt, 0deg)) translateY(-12px) scale(1.035); z-index: 3; }
.sticker:active img, .sticker:focus-visible img { filter: drop-shadow(0 26px 24px var(--shadow-deep)); }
.sticker:active .tag, .sticker:focus-visible .tag { transform: rotate(-7deg) translateY(-4px); }
.sticker:active .play, .sticker:focus-visible .play { background: var(--pink); color: var(--ink); }

/* ---------- the sheet of game stickers ---------- */
main { position: relative; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter) 40px; }
.sheet {
  position: relative;
  list-style: none;
  margin: clamp(28px, 4vw, 56px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 56px 28px;
  align-items: center;
}
.sheet > li { position: relative; }
.s-super   { grid-column: 1 / 5; grid-row: 1; z-index: 4; }
.s-clicker { grid-column: 5 / 8; grid-row: 1; margin-left: -14%; z-index: 3; }    /* tucks under Super's corner, rides over Breach so its PLAY stays whole */
.s-kombat  { grid-column: 8 / 13; grid-row: 1; }
.s-craftz  { grid-column: 1 / 5; grid-row: 2; z-index: 1; }   /* four columns; Breach's left spikes and its tag ride over this corner, where there is no text */
.s-breach  { grid-column: 4 / 9; grid-row: 2; align-self: start; margin: -22% -8% 0 -4%; z-index: 2; }  /* five columns wide (Rich: it was tiny); % margins resolve against the grid area width */ /* the blast rides Kombat's lower edge */
.s-bobby   { grid-column: 9 / 11; grid-row: 2; }
.s-nelly   { grid-column: 11 / 13; grid-row: 2; }
/* rows are explicit above because Breach and GoatacraftZ share a column on purpose; auto-placement would push Breach down */

/* the rest of the cast, loose on the sheet (decorative) */
.sheet > li.cast, .head > .cast { position: absolute; pointer-events: none; z-index: 1; }
.cast img, img.cast { filter: drop-shadow(0 5px 8px var(--shadow)); }
.cat   { width: 9%;  right: 4%;  top: 72%; transform: rotate(8deg); }       /* lives in the header, under the hook */
.acorn { width: 5%;  left: 25%;  bottom: -13%; transform: rotate(-12deg); }   /* beside the ghost circle, with the duck */
.duck  { width: 7%;  left: 3%;   bottom: -15%; transform: rotate(-6deg); }
.pig   { width: 7%;  left: 60%;  bottom: -17%; transform: rotate(10deg); }

/* kiss-cut ghosts: stickers already peeled off this sheet */
.sheet::before, .sheet::after {
  content: "";
  position: absolute;
  border: 2px dashed var(--kiss);
  pointer-events: none;
}
.sheet::before { width: 9%; aspect-ratio: 1; border-radius: 50%; left: 12%; bottom: -13%; transform: rotate(6deg); }   /* where a round one came off, beside the duck */
.sheet::after  { width: 16%; aspect-ratio: 16 / 9; border-radius: 24px; right: 2%; bottom: -31%; transform: rotate(-5deg); } /* a wide one came off below the name-variant pair */

/* ---------- the note for grown-ups ---------- */
.note {
  max-width: 68ch;
  margin: clamp(96px, 12vw, 160px) auto 0;
  font-size: 18px;
}
.note h2 { font: 400 clamp(34px, 4vw, 44px)/1.05 var(--display); margin: 64px 0 16px; text-wrap: balance; }
.note h2:first-child { margin-top: 0; }
.note p { margin: 0 0 18px; }
.note blockquote {
  margin: 28px 0 28px -8px;
  padding: 20px 24px 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 0 3px #fff, 0 6px 12px var(--shadow);
  transform: rotate(-1deg);
}
.note blockquote p { margin: 0 0 8px; font-weight: 700; font-size: 21px; line-height: 1.4; text-wrap: pretty; }
.note cite { font-style: normal; color: var(--ink-2); font-size: 15px; }
.what { margin: 0; }
.what dt { font: 400 23px/1.1 var(--display); margin: 22px 0 4px; }
.what dd { margin: 0; color: var(--ink); }

/* ---------- the sheet's printed edge ---------- */
.foot {
  max-width: 1360px;
  margin: 72px auto 0;
  padding: 24px var(--gutter) 40px;
  border-top: 2px dashed var(--kiss);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-2);
  letter-spacing: .02em;
}
.foot a { color: var(--ink-2); }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .sheet > li { grid-row: auto; }
  .brand { grid-column: 1 / 9; }
  .goat { grid-column: 8 / 11; margin-left: -30%; }
  .hook { grid-column: 1 / 8; padding-top: 24px; }
  .hook strong { font-size: 36px; }
  .s-super   { grid-column: 1 / 6; }
  .s-clicker { grid-column: 6 / 9; margin-left: -10%; }
  .s-kombat  { grid-column: 9 / 13; }
  .s-craftz  { grid-column: 1 / 7; }
  .s-breach  { grid-column: 7 / 13; margin: -6% 0 0; }
  .s-bobby   { grid-column: 1 / 4; }
  .s-nelly   { grid-column: 4 / 7; }
  .cat { width: 14%; right: 3%; top: 62%; }
  .pig { display: none; }
  .acorn { left: 44%; top: 44%; width: 7%; }
  .duck { left: 52%; top: auto; bottom: -8%; width: 10%; }
}

/* ---------- phone: the same sheet, re-laid by hand ---------- */
@media (max-width: 720px) {
  body { font-size: 17px; }
  .head { display: block; padding-top: 20px; }
  .brand { padding-top: 8px; width: 100%; }
  .games { font-size: clamp(56px, 19vw, 84px); padding-left: 1%; }
  .goat { width: 44%; margin: -6% 5% 0 auto; padding-bottom: 70px; }
  .goat .more { bottom: 70px; }
  .goat .tag { left: -46%; right: 0; top: 100%; bottom: auto; margin-top: -64px; }
  .hook { padding-top: 8px; font-size: 17px; }
  .hook strong { font-size: 30px; margin-left: 0; }

  .sheet { grid-template-columns: repeat(2, 1fr); gap: 44px 20px; margin-top: 36px; }
  .s-super, .s-clicker, .s-kombat, .s-craftz, .s-breach { grid-column: 1 / 3; margin: 0; }
  .s-clicker { width: 78%; justify-self: center; margin-top: -6%; }
  .s-breach { margin-top: -4%; z-index: 2; }
  .s-bobby { grid-column: 1 / 2; }
  .s-nelly { grid-column: 2 / 3; }

  .tag { left: 2%; right: 2%; bottom: -16px; max-width: none; padding: 8px 8px 8px 12px; column-gap: 8px; border-radius: 14px; }
  .tag b { font-size: 19px; }
  .tag small { font-size: 12.5px; }
  .play { min-height: 44px; min-width: 64px; padding: 0 14px; font-size: 16px; }
  .s-bobby .tag small, .s-nelly .tag small { display: none; }
  .s-bobby .tag b, .s-nelly .tag b { font-size: 17px; }
  .sheet::after { display: none; }

  .cat { display: none; }
  .acorn { width: 12%; left: 2%; top: 31%; }
  .duck { display: none; }
  .sheet::before { width: 24%; left: 4%; top: auto; bottom: 31%; }
  .sheet::after { width: 40%; right: 2%; bottom: -5%; }

  .note { margin-top: 88px; font-size: 17px; }
  .note blockquote { margin-left: 0; }
  .foot { margin-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .sticker, .sticker img, .tag, .play { transition: none; }
}
