/* Qahwa Rush, the phone app's page: the majlis at night. Coffee ground, sand walls, the sadu band of the game
   (gold triangles on red), cushion green, thick coffee ink and hard comic shadows, as barha.games. */
:root {
  --night: #2a1a10;
  --night-2: #3a2617;
  --ink-dark: #120a05;
  --coffee: #2b1607;
  --coffee-soft: #5b3714;
  --sand: #e9dcc0;
  --sand-2: #d8c49c;
  --paper: #fbf3e0;
  --cream: #fff4dc;
  --gold: #f5d28a;
  --gold-deep: #d9a441;
  --red: #8e2c2c;
  --red-deep: #6d1f1f;
  --green: #2e5e50;
  --green-deep: #234a3f;
  --muted-light: #e3d3b4;
  --line: 3px;
  --shadow: 6px 6px 0 var(--ink-dark);
  --shadow-sm: 4px 4px 0 var(--ink-dark);
  --max: 1120px;
  --gutter: 16px;
  --display: 'Lalezar', 'Rubik', system-ui, 'Segoe UI', Tahoma, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: 'Rubik', system-ui, 'Segoe UI', Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--gold);
  color: var(--coffee);
  border: var(--line) solid var(--ink-dark);
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* The bar */
.bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 22px;
  color: var(--gold);
  min-width: 0;
}
.mark img { border-radius: 10px; border: 2px solid var(--gold); flex: none; }
.lang {
  flex: none;
  min-height: 44px;
  padding: 6px 16px;
  background: var(--night-2);
  color: var(--cream);
  border: 2px solid var(--gold);
  border-radius: 12px;
  font: 500 16px/1.2 'Rubik', system-ui, sans-serif;
  cursor: pointer;
}
.lang:hover { background: var(--coffee-soft); }

/* The hero */
.hero { position: relative; padding: 8px 0 0; }
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px var(--gutter) 40px;
  display: grid;
  gap: 28px;
}
.app-icon {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  border: 4px solid var(--gold);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.kicker { margin: 0; color: var(--gold-deep); font-weight: 700; font-size: 15px; }
.name {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(46px, 13vw, 84px);
  line-height: 1.15;
  color: var(--gold);
  text-shadow: 4px 4px 0 var(--ink-dark);
  overflow-wrap: anywhere;
}
.alt-name {
  display: block;
  font-family: 'Rubik', system-ui, sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.4;
  color: var(--muted-light);
  text-shadow: none;
}
.phone-label { margin: 6px 0 0; font-size: 14px; color: var(--muted-light); }
.shots-note { margin: 4px 0 0; font-size: 14px; color: var(--coffee-soft); }
.tagline { margin: 12px 0 0; font-size: 21px; font-weight: 700; color: var(--cream); }
.line { margin: 8px 0 0; color: var(--muted-light); max-width: 34em; }

.stores { margin-top: 22px; }
.store-title { margin: 0 0 8px; font-weight: 700; color: var(--gold); font-size: 15px; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 156px;
  min-height: 60px;
  padding: 8px 18px;
  border: var(--line) solid var(--ink-dark);
  border-radius: 14px;
  background: var(--cream);
  color: var(--coffee);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  line-height: 1.25;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.store:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink-dark); }
a.store:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink-dark); }
.store-sub { font-size: 13px; font-weight: 500; }
.store-name { font-size: 20px; font-weight: 700; text-align: start; }
.store.soon {
  background: var(--night-2);
  color: var(--muted-light);
  border: 2px dashed var(--gold-deep);
  box-shadow: none;
  cursor: default;
}
.store.soon .store-sub { color: var(--gold); font-weight: 700; }
.play-cue {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 0;
  color: var(--gold);
  font-weight: 700;
  text-underline-offset: 5px;
}

/* A phone held sideways, drawn around a screenshot */
.phone {
  margin: 0;
  padding: 10px;
  background: var(--ink-dark);
  border: 2px solid #4a3322;
  border-radius: 26px;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.45);
}
.phone img { border-radius: 16px; width: 100%; aspect-ratio: 20 / 9; object-fit: cover; }
.hero-shot { align-self: center; }

/* The sadu band of the game: gold triangles on red */
.sadu {
  height: 22px;
  background: conic-gradient(from 135deg at 50% 0, var(--gold-deep) 90deg, var(--red) 0) 0 0 / 28px 14px repeat-x, var(--red);
  border-top: 4px solid var(--red-deep);
  border-bottom: 4px solid var(--red-deep);
}

/* Sections on the sand */
.how, .hard, .shots, .nights, .phone-sec, .privacy { padding: 48px 0; }
.how, .shots, .phone-sec { background: var(--sand); color: var(--coffee); }
.hard, .nights, .privacy { background: var(--paper); color: var(--coffee); }
.h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 8vw, 46px);
  line-height: 1.2;
  color: var(--red);
}
.lede { margin: 8px 0 0; max-width: 40em; color: var(--coffee-soft); font-size: 18px; }
h3 { margin: 0; font-size: 20px; line-height: 1.35; }

.cards {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.card {
  position: relative;
  padding: 22px 20px 18px;
  padding-inline-start: 74px;
  background: var(--paper);
  border: var(--line) solid var(--coffee);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.card p { margin: 6px 0 0; }
.num {
  position: absolute;
  inset-inline-start: 16px;
  top: 18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--gold);
  border: var(--line) solid var(--coffee);
  font-family: var(--display);
  font-size: 26px;
  line-height: 1;
}

.bubbles {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.bubbles li {
  position: relative;
  padding: 14px 18px;
  background: #fffdf6;
  border: var(--line) solid var(--coffee);
  border-radius: 20px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.bubbles li::after {
  content: '';
  position: absolute;
  bottom: -11px;
  inset-inline-start: 30px;
  width: 18px;
  height: 18px;
  background: #fffdf6;
  border-right: var(--line) solid var(--coffee);
  border-bottom: var(--line) solid var(--coffee);
  transform: rotate(45deg);
}

/* The gallery: a strip that scrolls inside itself, never the page */
.shots { padding-bottom: 40px; }
.swipe { margin: 6px 0 0; font-size: 14px; color: var(--coffee-soft); }
.gallery {
  list-style: none;
  margin: 22px 0 0;
  padding: 6px var(--gutter) 22px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(86vw, 520px);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
}
.gallery li { scroll-snap-align: start; }
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 20 / 9;
  object-fit: cover;
  border: 8px solid var(--ink-dark);
  border-radius: 20px;
  background: var(--night-2);
}
.gallery figcaption { margin-top: 10px; font-size: 16px; font-weight: 500; color: var(--coffee); }

.tiles {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.tile {
  padding: 18px 20px;
  border: var(--line) solid var(--coffee);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  color: var(--cream);
}
.tile h3 { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--gold); }
.tile p { margin: 4px 0 0; }
.t-majlis { background: var(--green-deep); }
.t-eid { background: var(--red); }
.t-wedding { background: #5a2e4a; }
.t-rest { background: #3d4a2a; }
.t-daily { background: var(--night-2); }

.feats {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.feats li {
  padding: 16px 18px;
  padding-inline-start: 20px;
  background: var(--paper);
  border: 2px solid var(--coffee);
  border-inline-start: 8px solid var(--red);
  border-radius: 14px;
}
.feats p { margin: 4px 0 0; }
.note { margin: 18px 0 0; font-size: 15px; color: var(--coffee-soft); }

/* Play now */
.play { padding: 48px 0; background: var(--night); }
.play-box {
  text-align: center;
}
.play .h2 { color: var(--gold); text-shadow: 3px 3px 0 var(--ink-dark); }
.play p { margin: 10px auto 0; max-width: 32em; color: var(--muted-light); }
.play-row { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-gold { background: var(--gold); color: var(--coffee); border: var(--line) solid var(--ink-dark); box-shadow: var(--shadow-sm); }
.btn-gold:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink-dark); }
.btn-line { color: var(--gold); border: 2px solid var(--gold); }
.btn-line:hover { background: var(--night-2); }

.plain { margin: 20px 0 0; padding-inline-start: 22px; max-width: 46em; }
.plain li + li { margin-top: 10px; }

/* The footer */
.foot { background: var(--ink-dark); color: var(--muted-light); text-align: center; }
.foot .wrap { padding-top: 26px; padding-bottom: 34px; }
.foot p { margin: 4px 0; }
.foot a { color: var(--gold); text-underline-offset: 4px; }
.copy { font-size: 15px; }
.ver { font-size: 14px; }

@media (min-width: 640px) {
  .cards, .feats { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .bubbles { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 5fr 6fr; align-items: center; padding-top: 24px; padding-bottom: 56px; }
  .app-icon { width: 128px; height: 128px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .feats { grid-template-columns: repeat(3, 1fr); }
  .bubbles { grid-template-columns: repeat(3, 1fr); }
  .gallery {
    max-width: var(--max);
    margin-inline: auto;
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-columns: auto;
    overflow: visible;
    scroll-snap-type: none;
  }
  .swipe { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  a.store:hover, .btn-gold:hover { transform: none; }
}
