/* Gusto Games site styles. Brand guide: lime #95C11F on charcoal, Saira, cut corners. */
@font-face { font-family: "Saira"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/saira-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Saira"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/saira-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Saira"; font-style: normal; font-weight: 800; font-display: swap; src: url(/assets/fonts/saira-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Saira"; font-style: italic; font-weight: 800; font-display: swap; src: url(/assets/fonts/saira-latin-800-italic.woff2) format("woff2"); }

:root {
  --lime: #95c11f;
  --lime-dark: #6e8d15;
  --charcoal: #111416;
  --graphite: #1e2226;
  --steel: #5a5b5d;
  --silver: #b8b9ba;
  --white: #ecedee;
  --cut: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Saira", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(900px 500px at 50% 0%, #1b2024 0%, transparent 70%), var(--charcoal);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
.wrap { width: min(1080px, 100% - 40px); margin: 0 auto; }

/* Header */
header { padding: 22px 0; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: auto; display: block; }
.brand span { font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .04em; font-size: 18px; color: var(--silver); }
.nav { font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .12em; color: var(--silver); text-decoration: none; }
.nav:hover { color: var(--lime); }

/* Home hero: small logo in a faint frame, one metallic sheen every few seconds */
.hero { position: relative; padding: 24px 0 52px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: 0; width: min(340px, 86%); aspect-ratio: 340 / 262; transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 262'%3E%3Cpath d='M2 2h308l28 28v230H30L2 232z' fill='none' stroke='%235a5b5d' stroke-width='2'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  opacity: .28; pointer-events: none;
}
.logo { position: relative; display: inline-block; width: min(260px, 62%); animation: logo-in .9s cubic-bezier(.2,.8,.2,1) both; }
.logo img { width: 100%; height: auto; display: block; }
.logo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 42%, rgba(255,255,255,.45) 50%, transparent 58%) no-repeat;
  background-size: 300% 100%; background-position: 150% 0;
  -webkit-mask: url(/assets/logo.webp) center/contain no-repeat; mask: url(/assets/logo.webp) center/contain no-repeat;
  animation: sheen 7s ease-in-out 1.2s infinite;
}
@keyframes logo-in { from { opacity: 0; transform: translateX(-28px) skewX(-8deg); } }
@keyframes sheen { 0% { background-position: 150% 0; } 22%, 100% { background-position: -50% 0; } }
.hero p { position: relative; margin: 34px auto 0; font-size: 18px; color: var(--silver); max-width: 460px; animation: fade-up .8s ease .3s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } }

/* Section label with lime bars, like the bars around GAMES in the logo */
.label {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  font-weight: 600; font-size: 14px; letter-spacing: .3em; text-transform: uppercase; color: var(--silver);
  margin: 0 0 26px;
}
.label::before, .label::after {
  content: ""; width: 48px; height: 4px; background: var(--lime); transform: skewX(-20deg);
  animation: bar-grow .7s cubic-bezier(.2,.8,.2,1) .5s both;
}
@keyframes bar-grow { from { width: 0; } }

/* Screenshot slideshow: angled wipe with a lime edge, slow zoom */
.slides { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0b0d0e; display: block; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; }
.slides img.on { opacity: 1; z-index: 2; animation: wipe .9s cubic-bezier(.7,0,.2,1) both, zoom 6s linear both; }
.slides img.prev { opacity: 1; z-index: 1; }
.slides img.first { animation: zoom 6s linear both; }
.slides .edge {
  position: absolute; top: -10%; bottom: -10%; left: -14%; width: 5px; z-index: 3; pointer-events: none;
  background: var(--lime); box-shadow: 0 0 18px rgba(149,193,31,.7); transform: skewX(-24deg); opacity: 0;
}
.slides.sweep .edge { animation: edge .9s cubic-bezier(.7,0,.2,1) both; }
@keyframes wipe {
  from { clip-path: polygon(0 0, 0 0, -25% 100%, -25% 100%); }
  to { clip-path: polygon(0 0, 125% 0, 100% 100%, -25% 100%); }
}
@keyframes zoom { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes edge { 0% { left: -14%; opacity: 1; } 90% { opacity: 1; } 100% { left: 114%; opacity: 0; } }
.dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.dots button { width: 22px; height: 5px; padding: 0; border: 0; background: var(--steel); transform: skewX(-20deg); cursor: pointer; }
.dots button.on { background: var(--lime); width: 34px; }

/* Game cards on the home page */
.games {
  display: grid; gap: 22px; padding-bottom: 72px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.card {
  background: var(--graphite); display: flex; flex-direction: column;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  border-top: 3px solid var(--steel);
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover, .card:focus-within { transform: translateY(-4px); border-color: var(--lime); }
.body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h2 { margin: 0; font-size: 24px; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .02em; }
.card h2 a { text-decoration: none; }
.card h2 a:hover { color: var(--lime); }
.card p { margin: 0; color: var(--silver); font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.tag { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border: 1px solid var(--steel); color: var(--white); }
.tag.soon { border-style: dashed; color: var(--silver); }
.js .card { opacity: 0; transform: translateX(-20px) skewX(-4deg); }
.js .card.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1), border-color .18s ease; }
.js .card.in:hover, .js .card.in:focus-within { transform: translateY(-4px); transition: transform .18s ease, border-color .18s ease; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn {
  position: relative; overflow: hidden; display: inline-block; text-decoration: none;
  font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .04em; padding: 10px 22px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn.play { background: var(--lime); color: var(--charcoal); }
.btn.play:hover { background: #a8d42e; }
.btn.more { background: transparent; color: var(--silver); box-shadow: inset 0 0 0 2px var(--steel); }
.btn.more:hover { color: var(--white); box-shadow: inset 0 0 0 2px var(--silver); }
.btn.play::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg);
}
.btn.play:hover::after { left: 130%; transition: left .5s ease; }

/* Game page */
.back { display: inline-block; margin: 4px 0 18px; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--silver); text-decoration: none; }
.back:hover { color: var(--lime); }
.game-head h1 { margin: 0; font-size: clamp(34px, 6vw, 56px); line-height: 1.05; font-weight: 800; font-style: italic; text-transform: uppercase; animation: logo-in .8s cubic-bezier(.2,.8,.2,1) both; }
.game-head .genre { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--lime); }
.game-head p.lead { margin: 10px 0 24px; font-size: 19px; color: var(--silver); }
.game-slides { clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px)); }
.game-info { display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr; padding: 34px 0 72px; align-items: start; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.features li { position: relative; padding-left: 30px; color: var(--white); font-size: 17px; }
.features li::before { content: ""; position: absolute; left: 0; top: .55em; width: 16px; height: 4px; background: var(--lime); transform: skewX(-20deg); }
.panel { background: var(--graphite); border-top: 3px solid var(--steel); padding: 20px 22px 24px; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.panel h2 { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--silver); }
@media (max-width: 760px) { .game-info { grid-template-columns: 1fr; } }

/* Footer */
footer { margin-top: auto; padding: 26px 0 34px; border-top: 1px solid #262b30; color: var(--silver); font-size: 14px; }
footer .row { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer a { text-decoration: none; }
footer a:hover { color: var(--lime); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .card { opacity: 1; transform: none; }
}
