/* rainygames.app: the Rainy look (packages/look) for plain pages. Headings in Gochi Hand, body text
   in the system font so a policy stays easy to read. */
@font-face {
  font-family: 'Gochi Hand';
  src: url('/fonts/gochi-hand-latin-400-normal.woff2') format('woff2');
  font-display: swap;
}
:root {
  --paper: #fbf6e9;
  --sheet: #fffdf6;
  --pen: #2b2d42;
  --pencil: rgba(43, 45, 66, 0.62);
  --marker: #ff9d1f;
  --hand: 'Gochi Hand', ui-rounded, system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--paper)
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(63, 143, 224, 0.13) 31px 32px);
  color: var(--pen);
}
body {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 16px 64px;
  font: 17px/1.55 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
main {
  padding: 8px 24px 24px;
  background: var(--sheet);
  border: 2.5px solid var(--pen);
  border-radius: 3px 6px 4px 5px;
  box-shadow: 6px 7px 0 rgba(43, 45, 66, 0.18);
}
h1,
h2 {
  font-family: var(--hand);
  font-weight: 400;
  line-height: 1.1;
}
h1 {
  margin: 16px 0 8px;
  font-size: 46px;
  rotate: -1.5deg;
}
h2 {
  margin: 28px 0 4px;
  font-size: 28px;
}
a {
  color: var(--pen);
  text-decoration-color: var(--marker);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}
.small {
  color: var(--pencil);
  font-size: 15px;
}
.game {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
}
.game img {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  box-shadow: 0 0 0 2.4px var(--pen);
  rotate: -4deg;
}
.game h2 {
  margin: 0;
}
footer {
  margin-top: 20px;
  text-align: center;
}
footer a {
  margin: 0 10px;
}

/* A game's page: the feature graphic at the top of the sheet, a strip of screenshots that scrolls
   sideways, and the spot for the Google Play badge. */
.feature {
  display: block;
  width: calc(100% + 48px);
  height: auto;
  margin: -8px -24px 12px;
  border-bottom: 2.5px solid var(--pen);
}
.lead {
  margin: 0 0 4px;
  font-family: var(--hand);
  font-size: clamp(23px, 7.6vw, 30px);
  line-height: 1.15;
  text-align: center;
}
.play {
  display: flex;
  justify-content: center;
  margin: 12px 0 18px;
}
.play.soon {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 6px 18px;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  border: 2px dashed var(--pencil);
  border-radius: 999px;
  color: var(--pencil);
  font-family: var(--hand);
  font-size: clamp(17px, 5.2vw, 22px);
}
.play.live {
  width: fit-content;
  margin: 6px auto 14px;
}
/* The badge image has Google's own clear space around it, so it is drawn a little larger. */
.play.live img {
  display: block;
  width: auto;
  height: 78px;
}
.shots {
  display: flex;
  gap: 14px;
  margin: 0 -24px;
  padding: 6px 24px 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}
.shots img {
  flex: 0 0 auto;
  width: 200px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 0 2px var(--pen), 5px 6px 0 rgba(43, 45, 66, 0.18);
  scroll-snap-align: center;
}
.shots img:nth-child(odd) {
  rotate: -1deg;
}
.shots img:nth-child(even) {
  rotate: 1deg;
}
.home-game {
  display: block;
  margin: 16px 0;
  color: inherit;
  text-decoration: none;
}
.home-game img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 0 0 2.5px var(--pen), 6px 7px 0 rgba(43, 45, 66, 0.18);
}
.home-game span {
  display: block;
  margin-top: 8px;
  font-family: var(--hand);
  font-size: 24px;
}
footer .maker {
  margin: 10px 0 0;
}
