@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./assets/home/fonts/dm-sans-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #f7f4eb;
  --ink: #252920;
  --muted: #676b60;
  --red: #c4432c;
  --line: #d6d7c9;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; min-width: 320px; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; }
a { color: inherit; }
button[hidden] { display: none; }
svg { display: block; flex-shrink: 0; }
::selection { background: #f5cd70; color: var(--ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 6px; }

.shell { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.site-header { min-height: 106px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 13px; font-size: 26px; font-weight: 700; letter-spacing: -1.2px; text-decoration: none; white-space: nowrap; }
.brand-by { font-weight: 400; }
.brand-period { color: var(--red); }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--red); color: var(--paper); transform: rotate(-7deg); }
.brand-mark svg { width: 36px; height: 36px; }
.site-nav { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 700; }
.all-games-link { padding-block: 12px; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.all-games-link span { display: inline-block; margin-left: 4px; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; vertical-align: super; text-decoration: none; }
.surprise-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 15px; border: 1.5px solid var(--ink); border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; box-shadow: 0 2px 0 var(--ink); transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.surprise-button svg { width: 22px; height: 22px; }
.surprise-button:active { transform: translateY(2px); box-shadow: 0 0 0 var(--ink); }

.intro { display: grid; grid-template-columns: 1.45fr 1fr; align-items: center; gap: 72px; padding: 43px 0 49px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 17px; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.eyebrow > span { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
h1 { position: relative; display: inline-block; margin: 0; font-size: clamp(56px, 6vw, 80px); line-height: .98; font-weight: 700; letter-spacing: -4.7px; }
h1 > span { color: var(--red); }
.heading-star { position: absolute; width: 49px; height: 49px; top: 6px; right: -58px; color: #d6a438; transform: rotate(12deg); }
.intro-note { padding-top: 37px; }
.intro-note p { margin: 0; font-size: 18px; line-height: 1.65; letter-spacing: -.3px; text-wrap: pretty; }
.intro-note p + p { color: var(--muted); margin-top: 3px; }
.browser-note { display: flex; align-items: center; gap: 8px; margin-top: 21px; font-size: 12px; font-weight: 500; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #5a7848; box-shadow: 0 0 0 3px #e3e8d8; }

.collection-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 0 20px; }
.collection-header h2 { margin: 0; font-size: 24px; letter-spacing: -.8px; line-height: 1.2; }
.collection-header h2 span { color: var(--red); }
.collection-header p { margin: 0; color: var(--muted); font-size: 12px; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; }
.game-card { --game-color: #f7d76f; --genre-color: #91700c; min-width: 0; border: 1.5px solid var(--ink); border-radius: 15px; background: #fffdf7; box-shadow: 0 5px 0 var(--ink); transition: transform 220ms ease, box-shadow 220ms ease; }
.game-football { --game-color: #afd4e9; --genre-color: #286c90; }
.game-wilds { --game-color: #c5d5ad; --genre-color: #507238; }
.game-cool-kids { --game-color: #b8dcd1; --genre-color: #347363; }
.game-tile-town { --game-color: #f4c6a0; --genre-color: #a45c2f; }
.game-link { height: 100%; display: flex; flex-direction: column; border-radius: 13px; text-decoration: none; }
.game-link:focus-visible { outline-offset: 8px; }
.game-art { position: relative; height: 223px; display: flex; align-items: center; justify-content: center; border-radius: 13px 13px 0 0; border-bottom: 1.5px solid var(--ink); background: var(--game-color); overflow: hidden; }
.game-icon { width: 176px; height: 176px; object-fit: cover; display: block; border: 2px solid var(--ink); border-radius: 31px; box-shadow: 5px 6px 0 #25292026; transform: rotate(-7deg); transition: transform 260ms cubic-bezier(.2,.8,.2,1); }
.game-football .game-icon { transform: rotate(6deg); }
.game-wilds .game-icon { transform: rotate(-5deg); }
.game-cool-kids .game-icon { transform: rotate(5deg); }
.game-tile-town .game-icon { transform: rotate(-5deg); }
.game-number { position: absolute; left: 18px; top: 16px; font-size: 11px; font-weight: 700; letter-spacing: 1px; opacity: .7; }
.art-caption { position: absolute; right: 13px; bottom: 12px; padding: 5px 8px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); font-size: 10px; font-weight: 700; transform: rotate(-5deg); box-shadow: 1px 2px 0 #25292025; }
.game-info { display: flex; flex: 1; flex-direction: column; padding: 22px 23px 18px; }
.game-genre { display: flex; align-items: center; gap: 6px; margin: 0 0 9px; color: var(--muted); font-size: 10px; font-weight: 500; }
.game-genre > span { width: 6px; height: 6px; border-radius: 2px; background: var(--genre-color); }
.game-info h3 { margin: 0 0 9px; font-size: 26px; line-height: 1.15; letter-spacing: -.9px; }
.game-description { margin: 0 0 21px; color: var(--muted); font-size: 13px; line-height: 1.65; text-wrap: pretty; }
.game-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 47px; margin-top: auto; padding: 11px 15px; border: 1.5px solid var(--ink); border-radius: 7px; background: var(--game-color); font-size: 13px; font-weight: 700; transition: background-color 180ms ease; }
.game-bottom svg { width: 19px; height: 19px; transition: transform 180ms ease; }
.game-card:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 46px; padding: 22px 0 25px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.site-footer p { display: flex; align-items: center; gap: 10px; margin: 0; }
.site-footer p:first-child { color: var(--ink); font-weight: 500; }
.site-footer svg { width: 21px; height: 21px; color: var(--ink); }
.skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 1; padding: 12px 20px; border-radius: 5px; background: var(--ink); color: var(--paper); }

@media (hover: hover) {
  .surprise-button:hover { background: #eee7d7; }
  .game-card:hover { transform: translateY(-5px); box-shadow: 0 10px 0 var(--ink); }
  .game-link:hover .game-icon { transform: rotate(0deg) scale(1.045); }
  .game-link:hover .game-bottom svg { transform: translateX(3px); }
  .all-games-link:hover { color: var(--red); }
}

@media (min-width: 1500px) {
  .intro { padding-block: 57px 59px; }
  .game-art { height: 244px; }
  .game-icon { width: 190px; height: 190px; }
}

@media (max-width: 1050px) {
  .shell { width: calc(100% - 64px); }
  .intro { gap: 50px; grid-template-columns: 1.2fr 1fr; }
  h1 { font-size: 66px; letter-spacing: -3.8px; }
  .heading-star { width: 34px; height: 34px; right: -34px; }
  .intro-note p { font-size: 16px; }
  .game-grid { gap: 18px; }
  .game-art { height: 200px; }
  .game-icon { width: 154px; height: 154px; border-radius: 26px; }
  .game-info { padding: 19px 17px 17px; }
  .game-info h3 { font-size: 22px; }
}

@media (max-width: 760px) {
  .shell { width: calc(100% - 40px); max-width: 560px; }
  .site-header { min-height: 86px; gap: 12px; }
  .brand { gap: 9px; font-size: 21px; letter-spacing: -1px; }
  .brand-mark { width: 39px; height: 39px; border-radius: 11px; }
  .brand-mark svg { width: 30px; height: 30px; }
  .site-nav { gap: 12px; }
  .all-games-link { display: none; }
  .surprise-button { gap: 5px; padding-inline: 10px; font-size: 11px; }
  .surprise-button svg { width: 18px; height: 18px; }
  .intro { grid-template-columns: 1fr; gap: 17px; padding: 28px 0 25px; }
  .eyebrow { font-size: 10px; margin-bottom: 12px; }
  h1 { font-size: clamp(55px, 12vw, 74px); line-height: 1; letter-spacing: -3.5px; }
  .heading-star { top: 3px; width: 37px; height: 37px; right: -46px; }
  .intro-note { padding: 0; }
  .intro-note p { font-size: 15px; line-height: 1.65; }
  .intro-note p + p { margin-top: 0; }
  .browser-note { font-size: 11px; margin-top: 15px; }
  .collection-header { padding-bottom: 17px; }
  .collection-header h2 { font-size: 21px; letter-spacing: -.7px; }
  .collection-header p { display: none; }
  .game-grid { grid-template-columns: 1fr; gap: 28px; }
  .game-art { height: 210px; }
  .game-icon { width: 181px; height: 181px; border-radius: 32px; }
  .game-info { padding: 20px 22px; }
  .game-info h3 { font-size: 27px; }
  .game-genre { font-size: 11px; }
  .game-description { font-size: 14px; margin-bottom: 20px; }
  .game-bottom { min-height: 48px; font-size: 14px; }
  .game-number { top: 19px; left: 20px; }
  .art-caption { font-size: 11px; right: 18px; bottom: 15px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 13px; margin-top: 36px; padding-bottom: 26px; }
}

@media (max-width: 370px) {
  .shell { width: calc(100% - 32px); }
  .brand { font-size: 19px; }
  .brand-mark { width: 33px; height: 35px; }
  .surprise-button { padding-inline: 7px; font-size: 10px; }
  .surprise-button svg { display: none; }
  h1 { font-size: 53px; }
  .heading-star { right: -19px; width: 24px; height: 24px; }
}

@media (min-width: 761px) and (max-height: 850px) {
  .site-header { min-height: 88px; }
  .intro { padding-block: 30px 35px; }
  h1 { font-size: 64px; letter-spacing: -3.8px; }
  .game-art { height: 192px; }
  .game-icon { width: 156px; height: 156px; border-radius: 27px; }
  .game-info { padding-top: 18px; }
  .game-description { margin-bottom: 18px; }
  .site-footer { margin-top: 30px; }
}

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