/* ============================================================
   Card & Tile — Google Play games site
   Two games, one table: classic solitaire on green felt,
   colorful tile matching in ocean blues.
   ============================================================ */

:root {
  /* base */
  --ink-900: #0a1c12;
  --ink-800: #0e2418;
  --ink-700: #153523;

  /* solitaire — green felt */
  --felt: #0a7d2c;
  --felt-dark: #075921;
  --felt-deep: #044316;

  /* tile match — ocean blues */
  --tile: #359cdc;
  --tile-light: #8fd8ee;
  --navy: #1d4a63;
  --navy-deep: #12303f;

  /* cards & accents */
  --card: #f8f6f0;
  --paper: #efe9dc;
  --heart: #e03333;
  --gold: #e5b85a;
  --orange: #e26a27;
  --tilegreen: #5c8640;

  /* text */
  --text-on-dark: #f4f1e8;
  --muted-on-dark: rgba(244, 241, 232, 0.72);

  /* type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Outfit", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  /* shared */
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 24px 48px rgba(0, 0, 0, 0.45), 0 6px 14px rgba(0, 0, 0, 0.3);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-on-dark);
  background: var(--ink-900);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- felt / grain textures ---------- */

.felt-noise {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27240%27 height=%27240%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.85%27 numOctaves=%273%27 stitchTiles=%27stitch%27/%3E%3C/filter%3E%3Crect width=%27240%27 height=%27240%27 filter=%27url%28%23n%29%27 opacity=%270.55%27/%3E%3C/svg%3E");
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(10, 28, 18, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.35s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-mark {
  color: var(--gold);
  font-size: 1.15em;
  line-height: 1;
  transform: translateY(-1px);
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--muted-on-dark);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.site-nav a:hover {
  color: var(--text-on-dark);
  border-bottom-color: var(--gold);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(1100px 600px at 50% 18%, rgba(50, 130, 70, 0.28), transparent 65%),
    radial-gradient(900px 500px at 82% 88%, rgba(53, 156, 220, 0.16), transparent 60%),
    linear-gradient(180deg, var(--ink-800) 0%, var(--ink-900) 100%);
}

/* felt grain over the hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27240%27 height=%27240%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.85%27 numOctaves=%273%27 stitchTiles=%27stitch%27/%3E%3C/filter%3E%3Crect width=%27240%27 height=%27240%27 filter=%27url%28%23n%29%27 opacity=%270.35%27/%3E%3C/svg%3E");
  opacity: 0.06;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 7.5rem 1.5rem 4.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- the two dealt cards --- */

.hero-cards {
  position: relative;
  width: min(420px, 78vw);
  height: min(300px, 56vw);
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}

.hero-card {
  position: absolute;
  width: min(216px, 42vw);
  border-radius: 22px;
  padding: 9px;
  background: linear-gradient(160deg, #ffffff 0%, #ece7da 100%);
  box-shadow: var(--shadow-card);
  will-change: transform;
}

.hero-card img {
  border-radius: 14px;
  width: 100%;
  height: auto;
}

.hero-card--sol {
  left: 4%;
  top: 0;
  transform: rotate(-7deg);
  animation: deal-sol 0.9s var(--ease-out) 0.15s both;
  z-index: 1;
}

.hero-card--tile {
  right: 4%;
  bottom: 0;
  transform: rotate(6deg);
  animation: deal-tile 0.9s var(--ease-out) 0.3s both;
  z-index: 2;
}

@keyframes deal-sol {
  from {
    opacity: 0;
    transform: translate(-90px, 110px) rotate(-22deg) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translate(0, 0) rotate(-7deg) scale(1);
  }
}

@keyframes deal-tile {
  from {
    opacity: 0;
    transform: translate(90px, -110px) rotate(20deg) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translate(0, 0) rotate(6deg) scale(1);
  }
}

/* idle float */
@media (hover: hover) {
  .hero-card--sol:hover {
    transform: rotate(-7deg) translateY(-8px);
    transition: transform 0.4s var(--ease-out);
  }
  .hero-card--tile:hover {
    transform: rotate(6deg) translateY(-8px);
    transition: transform 0.4s var(--ease-out);
  }
}

/* --- hero copy --- */

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.9rem, 7.5vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--card);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

.hero-sub {
  margin-top: 1.4rem;
  max-width: 36rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 400;
  color: var(--muted-on-dark);
}

.hero-actions {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  justify-content: center;
}

/* ============================================================
   GOOGLE PLAY BUTTON
   ============================================================ */

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1.5rem 0.7rem 1.15rem;
  background: var(--card);
  color: #1c1c1c;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.play-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.play-btn:active {
  transform: translateY(-1px);
}

.play-btn-logo {
  width: 30px;
  height: 30px;
  flex: none;
}

.play-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.play-btn-small {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #55534e;
}

.play-btn-big {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ============================================================
   GAME SECTIONS
   ============================================================ */

.game {
  position: relative;
  overflow: hidden;
}

.game-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(5rem, 10vh, 7.5rem) 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

/* --- solitaire: green felt --- */

.game--solitaire {
  background:
    radial-gradient(900px 500px at 12% 8%, rgba(255, 255, 255, 0.08), transparent 60%),
    linear-gradient(165deg, var(--felt) 0%, var(--felt-dark) 55%, var(--felt-deep) 100%);
}

.game--solitaire::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27240%27 height=%27240%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.85%27 numOctaves=%273%27 stitchTiles=%27stitch%27/%3E%3C/filter%3E%3Crect width=%27240%27 height=%27240%27 filter=%27url%28%23n%29%27 opacity=%270.45%27/%3E%3C/svg%3E");
  opacity: 0.055;
}

/* --- tile match: ocean blue --- */

.game--tilematch {
  background:
    radial-gradient(900px 500px at 88% 12%, rgba(143, 216, 238, 0.14), transparent 60%),
    linear-gradient(195deg, var(--navy) 0%, var(--navy-deep) 62%, #0c2230 100%);
}

.game--tilematch::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27240%27 height=%27240%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.85%27 numOctaves=%273%27 stitchTiles=%27stitch%27/%3E%3C/filter%3E%3Crect width=%27240%27 height=%27240%27 filter=%27url%28%23n%29%27 opacity=%270.45%27/%3E%3C/svg%3E");
  opacity: 0.05;
}

/* --- decorative suits (solitaire) --- */

.game-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.suit {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, 0.09);
  user-select: none;
}

.suit--spade {
  font-size: clamp(7rem, 16vw, 15rem);
  top: 8%;
  left: 3%;
  transform: rotate(-14deg);
}

.suit--club {
  font-size: clamp(5rem, 11vw, 10rem);
  bottom: 12%;
  left: 14%;
  transform: rotate(10deg);
  color: rgba(0, 0, 0, 0.14);
}

.suit--heart {
  font-size: clamp(5.5rem, 12vw, 11rem);
  top: 16%;
  right: 6%;
  transform: rotate(12deg);
  color: rgba(255, 255, 255, 0.07);
}

.suit--diamond {
  font-size: clamp(6rem, 13vw, 12rem);
  bottom: 8%;
  right: 20%;
  transform: rotate(-8deg);
  color: rgba(0, 0, 0, 0.12);
}

/* --- decorative CSS playing card (solitaire) --- */

.showcard {
  position: absolute;
  right: -46px;
  top: 50%;
  transform: translateY(-46%) rotate(13deg);
  width: clamp(120px, 13vw, 168px);
  aspect-ratio: 5 / 7;
  background: linear-gradient(165deg, #ffffff 0%, #e9e3d4 100%);
  border-radius: 14px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcard-rank,
.showcard-suit {
  font-family: var(--font-display);
  color: var(--heart);
  line-height: 1;
}

.showcard-rank {
  font-size: clamp(3.4rem, 7vw, 5rem);
  font-weight: 900;
}

.showcard-suit {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  margin-top: -0.9em;
  margin-left: 0.18em;
}

/* --- decorative tile grid (tile match) --- */

.tile-grid {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%) rotate(9deg);
  display: grid;
  grid-template-columns: repeat(3, clamp(46px, 6vw, 72px));
  gap: clamp(8px, 1.2vw, 14px);
}

.tile-grid span {
  aspect-ratio: 1;
  border-radius: 18%;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35), inset 0 -4px 0 rgba(0, 0, 0, 0.18), inset 0 3px 0 rgba(255, 255, 255, 0.35);
}

.tile-grid span:nth-child(1) { background: var(--tile); }
.tile-grid span:nth-child(2) { background: var(--gold); }
.tile-grid span:nth-child(3) { background: var(--orange); }
.tile-grid span:nth-child(4) { background: var(--tile-light); }
.tile-grid span:nth-child(5) { background: var(--tilegreen); }
.tile-grid span:nth-child(6) { background: var(--tile); }
.tile-grid span:nth-child(7) { background: var(--gold); }
.tile-grid span:nth-child(8) { background: var(--tilegreen); }
.tile-grid span:nth-child(9) { background: var(--orange); }

/* --- app icon card --- */

.game-card {
  position: relative;
  width: min(300px, 64vw);
  justify-self: center;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: linear-gradient(160deg, #ffffff 0%, #e9e4d6 100%);
  box-shadow: var(--shadow-card);
  transform: rotate(-3deg);
}

.game--tilematch .game-card {
  transform: rotate(3deg);
}

.game-card img {
  border-radius: calc(var(--radius-lg) - 6px);
  width: 100%;
  height: auto;
}

.game-card-corner {
  position: absolute;
  top: 18px;
  left: 20px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  color: #17140f;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  line-height: 1;
}

.game-card-corner--tile {
  color: var(--tile);
  font-size: 1.5rem;
}

/* --- game copy --- */

.game-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--card);
}

.game-tagline {
  margin-top: 0.9rem;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  font-weight: 500;
  color: rgba(248, 246, 240, 0.85);
}

.features {
  list-style: none;
  margin: 1.9rem 0 2.4rem;
  display: grid;
  gap: 0.95rem;
  max-width: 32rem;
}

.features li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: rgba(248, 246, 240, 0.92);
  font-size: 1.04rem;
  line-height: 1.45;
}

.feature-mark {
  flex: none;
  width: 1.65rem;
  height: 1.65rem;
  margin-top: 0.08rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--card);
  background: rgba(255, 255, 255, 0.14);
  border-radius: 6px;
}

.feature-mark--red {
  color: #ffb3b3;
}

.feature-mark--tile {
  background: linear-gradient(150deg, var(--tile), var(--tile-light));
  border-radius: 5px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--ink-900);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.2rem 1.5rem 2.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
}

.footer-note {
  color: var(--muted-on-dark);
  font-size: 0.98rem;
  max-width: 30rem;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  margin-top: 0.3rem;
}

.footer-nav a {
  color: var(--muted-on-dark);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.footer-nav a:hover {
  color: var(--text-on-dark);
  border-bottom-color: var(--gold);
}

.footer-copy {
  margin-top: 1.2rem;
  color: rgba(244, 241, 232, 0.62);
  font-size: 0.85rem;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

.reveal {
  opacity: 0;
  translate: 0 26px;
  transition: opacity 0.7s var(--ease-out), translate 0.7s var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  translate: 0 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* short viewports: tighten the hero so the buttons stay in view */
@media (max-height: 760px) {
  .hero-inner {
    padding-top: 5.6rem;
    padding-bottom: 3rem;
  }

  .hero-card {
    width: min(168px, 36vw);
  }

  .hero-cards {
    height: min(236px, 48vw);
    margin-bottom: 1.7rem;
  }

  .hero-title {
    font-size: clamp(2.4rem, 6.5vw, 4.1rem);
  }

  .hero-sub {
    margin-top: 1rem;
  }

  .hero-actions {
    margin-top: 1.8rem;
  }
}

@media (max-width: 900px) {
  .game-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: left;
    padding: 4.5rem 1.5rem;
  }

  .game--tilematch .game-card {
    order: -1;
  }

  .game-card {
    width: min(240px, 58vw);
  }

  .features {
    max-width: none;
  }

  /* tuck decorations further into corners */
  .showcard {
    right: -1.2rem;
    top: 6%;
    transform: rotate(13deg);
    opacity: 0.9;
  }

  .tile-grid {
    right: -1.6rem;
    top: 5%;
    transform: rotate(9deg);
    opacity: 0.85;
  }

  .suit--spade { left: -2rem; }
  .suit--heart { right: -2.5rem; }
}

@media (max-width: 560px) {
  .site-nav {
    gap: 1.2rem;
  }

  .site-nav a {
    font-size: 0.9rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: min(320px, 100%);
  }

  .play-btn {
    justify-content: center;
  }

  .showcard {
    width: 96px;
  }

  .tile-grid {
    grid-template-columns: repeat(3, 40px);
    gap: 8px;
  }

  .footer-nav {
    gap: 1.4rem;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-card--sol,
  .hero-card--tile {
    animation: none;
  }

  .reveal {
    opacity: 1;
    translate: none;
    transition: none;
  }

  .play-btn,
  .hero-card {
    transition: none;
  }
}


/*# sourceMappingURL=main.e96c8b5f.css.map*/