/* rabe3.com's first page: «حاسبة رابع!» while the app is on its way. Its own file, so the game's play.css can change freely. */
:root {
  --gold: #e8c36a; --gold2: #b98e2f; --ivory: #fbf3e2; --ink: #2a1a08; --red: #c8102e; --black: #1d1d1f;
  --ground: #4a0d1d; --muted: #e9cfc0;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background-color: var(--ground);
  background-image: repeating-linear-gradient(45deg, transparent 0 23px, rgba(232, 195, 106, .07) 23px 24px),
    repeating-linear-gradient(-45deg, transparent 0 23px, rgba(232, 195, 106, .07) 23px 24px);
  color: var(--ivory); font-family: -apple-system, "SF Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;
  -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%;
}
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.page { position: relative; min-height: 100dvh; max-width: 440px; margin: 0 auto; display: flex; flex-direction: column;
  padding: calc(var(--sat) + 14px) 20px calc(var(--sab) + 38px); }
.top { display: flex; justify-content: flex-start; }
.pill { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(232, 195, 106, .55);
  color: var(--gold); font-size: 13px; font-weight: 600; }

.hero { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: clamp(12px, 5vh, 44px); }
.r3 { position: relative; width: clamp(100px, 15vh, 128px); aspect-ratio: 128 / 172; border-radius: 16px; background: var(--ivory);
  border: 4px solid var(--gold); box-shadow: 0 0 0 2px var(--ink), 0 18px 30px rgba(0, 0, 0, .45); transform: rotate(-8deg); }
.r3 .c { position: absolute; font-family: "Aref Ruqaa", serif; font-weight: 700; font-size: 26px; line-height: 1; color: var(--red); }
.r3 .c1 { top: 7%; right: 8%; }
.r3 .c2 { bottom: 7%; left: 8%; transform: rotate(180deg); }
.r3 .s { position: absolute; width: 14%; height: auto; }
.r3 .sn { top: 25%; left: 14%; }
.r3 .se { top: 42%; right: 10%; }
.r3 .sw { top: 52%; left: 10%; }
.r3 .ss { bottom: 22%; right: 14%; }
.r3 .mark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -54%); font-family: "Aref Ruqaa", serif; font-weight: 700;
  font-size: 74px; line-height: 1; color: #d4a843; }
.kicker { margin: clamp(16px, 3.5vh, 30px) 0 0; font-size: 19px; font-weight: 600; }
.word { margin: -6px 0 0; font-family: "Aref Ruqaa", serif; font-weight: 700; font-size: clamp(52px, 9vh, 68px); line-height: 1.45; color: var(--gold); }
.sub { margin: 14px 0 0; font-size: 15px; color: var(--muted); }

.soon { margin: clamp(18px, 4vh, 30px) 0 0; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(232, 195, 106, .35);
  background: rgba(0, 0, 0, .18); text-align: center; }
.soon b { display: block; font-size: 17px; color: var(--gold); }
.soon span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.6; color: var(--ivory); }

/* the owner, 2026-10-31: the button sits right under «انتظرونا», where the thumb rests (not down by Safari's bar), with a
   clear ivory border; the privacy link keeps the bottom */
.go { margin-top: clamp(16px, 3vh, 24px); height: 74px; border-radius: 20px; border: 3px solid var(--ivory); background: var(--gold);
  box-shadow: 0 5px 0 var(--gold2), 0 12px 22px rgba(0, 0, 0, .35); color: var(--ink); text-decoration: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.go b { font-size: 22px; font-weight: 800; }
.go small { font-size: 13px; font-weight: 500; color: #5a4320; }
.go:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--gold2), 0 6px 14px rgba(0, 0, 0, .3); }
.links { margin: auto 0 0; padding-top: 24px; text-align: center; font-size: 14px; color: var(--muted); }
.links a { color: var(--muted); }

.sadu { position: absolute; left: 0; right: 0; bottom: 0; height: calc(16px + var(--sab)); border-top: 2px solid var(--gold);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16'%3E%3Crect width='24' height='16' fill='%23c8102e'/%3E%3Cpath d='M0 16 12 3 24 16z' fill='%23fbf3e2'/%3E%3Cpath d='M6 16 12 9.5 18 16z' fill='%231d1d1f'/%3E%3C/svg%3E") repeat-x 0 0 / 24px 16px; }

/* the privacy page */
.doc { max-width: 680px; margin: 0 auto; padding: calc(var(--sat) + 20px) 20px calc(var(--sab) + 48px); line-height: 1.85; }
.doc .back { color: var(--gold); text-decoration: none; font-size: 15px; }
.doc h1 { margin: 18px 0 4px; font-size: 28px; }
.doc h2 { margin: 28px 0 6px; font-size: 20px; color: var(--gold); }
.doc p, .doc li { font-size: 16px; color: var(--ivory); }
.doc ul { padding-inline-start: 22px; }
.doc .date { color: var(--muted); font-size: 14px; margin: 0; }
