/* PlayCalm — main stylesheet. Identity: «القرطاس الدافئ» (Gemini), approved by Khalid. */
:root {
  --puzzle-bg: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22480%22 height=%22480%22 viewBox=%220 0 480 480%22%3E%3Cpath d=%22M0 0H10C10 0 9 -2 9 -3.2A3.4 3.4 0 1 1 15 -3.2C15 -2 14 0 14 0H24V10C24 10 26 9 27.2 9A3.4 3.4 0 1 1 27.2 15C26 15 24 14 24 14V24H14C14 24 15 22 15 20.8A3.4 3.4 0 1 0 9 20.8C9 22 10 24 10 24H0V14C0 14 2 15 3.2 15A3.4 3.4 0 1 0 3.2 9C2 9 0 10 0 10Z%22 transform=%22translate(206 248) rotate(-135 12 12) scale(1.03)%22 fill=%22rgba(232,176,75,0.12)%22 stroke=%22rgba(36,84,69,0.12)%22 stroke-width=%221.2%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M0 0H10C10 0 9 -2 9 -3.2A3.4 3.4 0 1 1 15 -3.2C15 -2 14 0 14 0H24V10C24 10 26 9 27.2 9A3.4 3.4 0 1 1 27.2 15C26 15 24 14 24 14V24H14C14 24 15 22 15 20.8A3.4 3.4 0 1 0 9 20.8C9 22 10 24 10 24H0V14C0 14 2 15 3.2 15A3.4 3.4 0 1 0 3.2 9C2 9 0 10 0 10Z%22 transform=%22translate(390 212) rotate(0 12 12) scale(1.09)%22 fill=%22none%22 stroke=%22rgba(36,84,69,0.12)%22 stroke-width=%221.2%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M0 0H10C10 0 9 -2 9 -3.2A3.4 3.4 0 1 1 15 -3.2C15 -2 14 0 14 0H24V10C24 10 26 9 27.2 9A3.4 3.4 0 1 1 27.2 15C26 15 24 14 24 14V24H14C14 24 15 22 15 20.8A3.4 3.4 0 1 0 9 20.8C9 22 10 24 10 24H0V14C0 14 2 15 3.2 15A3.4 3.4 0 1 0 3.2 9C2 9 0 10 0 10Z%22 transform=%22translate(276 339) rotate(33 12 12) scale(1.27)%22 fill=%22none%22 stroke=%22rgba(36,84,69,0.12)%22 stroke-width=%221.2%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M0 0H10C10 0 9 -2 9 -3.2A3.4 3.4 0 1 1 15 -3.2C15 -2 14 0 14 0H24V10C24 10 26 9 27.2 9A3.4 3.4 0 1 1 27.2 15C26 15 24 14 24 14V24H14C14 24 15 22 15 20.8A3.4 3.4 0 1 0 9 20.8C9 22 10 24 10 24H0V14C0 14 2 15 3.2 15A3.4 3.4 0 1 0 3.2 9C2 9 0 10 0 10Z%22 transform=%22translate(67 148) rotate(248 12 12) scale(1.21)%22 fill=%22rgba(232,176,75,0.12)%22 stroke=%22rgba(36,84,69,0.12)%22 stroke-width=%221.2%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M0 0H10C10 0 9 -2 9 -3.2A3.4 3.4 0 1 1 15 -3.2C15 -2 14 0 14 0H24V10C24 10 26 9 27.2 9A3.4 3.4 0 1 1 27.2 15C26 15 24 14 24 14V24H14C14 24 15 22 15 20.8A3.4 3.4 0 1 0 9 20.8C9 22 10 24 10 24H0V14C0 14 2 15 3.2 15A3.4 3.4 0 1 0 3.2 9C2 9 0 10 0 10Z%22 transform=%22translate(65 346) rotate(118 12 12) scale(1.27)%22 fill=%22none%22 stroke=%22rgba(36,84,69,0.12)%22 stroke-width=%221.2%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M0 0H10C10 0 9 -2 9 -3.2A3.4 3.4 0 1 1 15 -3.2C15 -2 14 0 14 0H24V10C24 10 26 9 27.2 9A3.4 3.4 0 1 1 27.2 15C26 15 24 14 24 14V24H14C14 24 15 22 15 20.8A3.4 3.4 0 1 0 9 20.8C9 22 10 24 10 24H0V14C0 14 2 15 3.2 15A3.4 3.4 0 1 0 3.2 9C2 9 0 10 0 10Z%22 transform=%22translate(300 46) rotate(33 12 12) scale(1.23)%22 fill=%22none%22 stroke=%22rgba(36,84,69,0.12)%22 stroke-width=%221.2%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M0 0H10C10 0 9 -2 9 -3.2A3.4 3.4 0 1 1 15 -3.2C15 -2 14 0 14 0H24V10C24 10 26 9 27.2 9A3.4 3.4 0 1 1 27.2 15C26 15 24 14 24 14V24H14C14 24 15 22 15 20.8A3.4 3.4 0 1 0 9 20.8C9 22 10 24 10 24H0V14C0 14 2 15 3.2 15A3.4 3.4 0 1 0 3.2 9C2 9 0 10 0 10Z%22 transform=%22translate(413 406) rotate(200 12 12) scale(1.13)%22 fill=%22rgba(232,176,75,0.12)%22 stroke=%22rgba(36,84,69,0.12)%22 stroke-width=%221.2%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M0 0H10C10 0 9 -2 9 -3.2A3.4 3.4 0 1 1 15 -3.2C15 -2 14 0 14 0H24V10C24 10 26 9 27.2 9A3.4 3.4 0 1 1 27.2 15C26 15 24 14 24 14V24H14C14 24 15 22 15 20.8A3.4 3.4 0 1 0 9 20.8C9 22 10 24 10 24H0V14C0 14 2 15 3.2 15A3.4 3.4 0 1 0 3.2 9C2 9 0 10 0 10Z%22 transform=%22translate(91 36) rotate(0 12 12) scale(1.30)%22 fill=%22none%22 stroke=%22rgba(36,84,69,0.12)%22 stroke-width=%221.2%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E");
  --page: #F6F3EC; --card: #FDFBF7; --secondary: #EAE4D7; --raised: #F1EDE2;
  --text: #1C2420; --text-2: #435049;
  --primary: #245445; --primary-hover: #1B4135; --on-primary: #FDFBF7;
  --accent-soft: #E3F0EA; --border: #D4CDBE; --border-strong: #B5AD9C;
  --star: #B87D14; --gold-text: #8A5C0C;
  --words: #1E4B68; --words-bg: #E5EFF5; --words-line: #B8D3E3;
  --logic: #245440; --logic-bg: #E3F0EA; --logic-line: #B4D6C6;
  --print: #784020; --print-bg: #F6EAE2; --print-line: #DFC2B0;
  --daily: #6B4A10; --daily-bg: #F7EFE0; --daily-line: #DFC99F;
  --err: #8A3B12; --err-bg: #FBE9DD;
  --radius-lg: 16px; --radius: 12px; --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(28,36,32,.05), 0 4px 14px rgba(28,36,32,.05);
  --font-ar: "IBM Plex Sans Arabic", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-head: "Cairo", "Plus Jakarta Sans", system-ui, sans-serif;
  --tap: 48px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --puzzle-bg: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22480%22 height=%22480%22 viewBox=%220 0 480 480%22%3E%3Cpath d=%22M0 0H10C10 0 9 -2 9 -3.2A3.4 3.4 0 1 1 15 -3.2C15 -2 14 0 14 0H24V10C24 10 26 9 27.2 9A3.4 3.4 0 1 1 27.2 15C26 15 24 14 24 14V24H14C14 24 15 22 15 20.8A3.4 3.4 0 1 0 9 20.8C9 22 10 24 10 24H0V14C0 14 2 15 3.2 15A3.4 3.4 0 1 0 3.2 9C2 9 0 10 0 10Z%22 transform=%22translate(206 248) rotate(-135 12 12) scale(1.03)%22 fill=%22rgba(232,176,75,0.08)%22 stroke=%22rgba(255,255,255,0.075)%22 stroke-width=%221.2%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M0 0H10C10 0 9 -2 9 -3.2A3.4 3.4 0 1 1 15 -3.2C15 -2 14 0 14 0H24V10C24 10 26 9 27.2 9A3.4 3.4 0 1 1 27.2 15C26 15 24 14 24 14V24H14C14 24 15 22 15 20.8A3.4 3.4 0 1 0 9 20.8C9 22 10 24 10 24H0V14C0 14 2 15 3.2 15A3.4 3.4 0 1 0 3.2 9C2 9 0 10 0 10Z%22 transform=%22translate(390 212) rotate(0 12 12) scale(1.09)%22 fill=%22none%22 stroke=%22rgba(255,255,255,0.075)%22 stroke-width=%221.2%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M0 0H10C10 0 9 -2 9 -3.2A3.4 3.4 0 1 1 15 -3.2C15 -2 14 0 14 0H24V10C24 10 26 9 27.2 9A3.4 3.4 0 1 1 27.2 15C26 15 24 14 24 14V24H14C14 24 15 22 15 20.8A3.4 3.4 0 1 0 9 20.8C9 22 10 24 10 24H0V14C0 14 2 15 3.2 15A3.4 3.4 0 1 0 3.2 9C2 9 0 10 0 10Z%22 transform=%22translate(276 339) rotate(33 12 12) scale(1.27)%22 fill=%22none%22 stroke=%22rgba(255,255,255,0.075)%22 stroke-width=%221.2%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M0 0H10C10 0 9 -2 9 -3.2A3.4 3.4 0 1 1 15 -3.2C15 -2 14 0 14 0H24V10C24 10 26 9 27.2 9A3.4 3.4 0 1 1 27.2 15C26 15 24 14 24 14V24H14C14 24 15 22 15 20.8A3.4 3.4 0 1 0 9 20.8C9 22 10 24 10 24H0V14C0 14 2 15 3.2 15A3.4 3.4 0 1 0 3.2 9C2 9 0 10 0 10Z%22 transform=%22translate(67 148) rotate(248 12 12) scale(1.21)%22 fill=%22rgba(232,176,75,0.08)%22 stroke=%22rgba(255,255,255,0.075)%22 stroke-width=%221.2%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M0 0H10C10 0 9 -2 9 -3.2A3.4 3.4 0 1 1 15 -3.2C15 -2 14 0 14 0H24V10C24 10 26 9 27.2 9A3.4 3.4 0 1 1 27.2 15C26 15 24 14 24 14V24H14C14 24 15 22 15 20.8A3.4 3.4 0 1 0 9 20.8C9 22 10 24 10 24H0V14C0 14 2 15 3.2 15A3.4 3.4 0 1 0 3.2 9C2 9 0 10 0 10Z%22 transform=%22translate(65 346) rotate(118 12 12) scale(1.27)%22 fill=%22none%22 stroke=%22rgba(255,255,255,0.075)%22 stroke-width=%221.2%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M0 0H10C10 0 9 -2 9 -3.2A3.4 3.4 0 1 1 15 -3.2C15 -2 14 0 14 0H24V10C24 10 26 9 27.2 9A3.4 3.4 0 1 1 27.2 15C26 15 24 14 24 14V24H14C14 24 15 22 15 20.8A3.4 3.4 0 1 0 9 20.8C9 22 10 24 10 24H0V14C0 14 2 15 3.2 15A3.4 3.4 0 1 0 3.2 9C2 9 0 10 0 10Z%22 transform=%22translate(300 46) rotate(33 12 12) scale(1.23)%22 fill=%22none%22 stroke=%22rgba(255,255,255,0.075)%22 stroke-width=%221.2%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M0 0H10C10 0 9 -2 9 -3.2A3.4 3.4 0 1 1 15 -3.2C15 -2 14 0 14 0H24V10C24 10 26 9 27.2 9A3.4 3.4 0 1 1 27.2 15C26 15 24 14 24 14V24H14C14 24 15 22 15 20.8A3.4 3.4 0 1 0 9 20.8C9 22 10 24 10 24H0V14C0 14 2 15 3.2 15A3.4 3.4 0 1 0 3.2 9C2 9 0 10 0 10Z%22 transform=%22translate(413 406) rotate(200 12 12) scale(1.13)%22 fill=%22rgba(232,176,75,0.08)%22 stroke=%22rgba(255,255,255,0.075)%22 stroke-width=%221.2%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M0 0H10C10 0 9 -2 9 -3.2A3.4 3.4 0 1 1 15 -3.2C15 -2 14 0 14 0H24V10C24 10 26 9 27.2 9A3.4 3.4 0 1 1 27.2 15C26 15 24 14 24 14V24H14C14 24 15 22 15 20.8A3.4 3.4 0 1 0 9 20.8C9 22 10 24 10 24H0V14C0 14 2 15 3.2 15A3.4 3.4 0 1 0 3.2 9C2 9 0 10 0 10Z%22 transform=%22translate(91 36) rotate(0 12 12) scale(1.30)%22 fill=%22none%22 stroke=%22rgba(255,255,255,0.075)%22 stroke-width=%221.2%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E");
  --page: #141917; --card: #1E2623; --secondary: #26302C; --raised: #222B28;
  --text: #ECE8DF; --text-2: #B8B3A7;
  --primary: #78B8A2; --primary-hover: #8FC9B5; --on-primary: #141917;
  --accent-soft: #1D332B; --border: #33403B; --border-strong: #485952;
  --star: #E5C178; --gold-text: #E5C178;
  --words: #8CC0E4; --words-bg: #1A2B38; --words-line: #2C485E;
  --logic: #84C7A8; --logic-bg: #192E25; --logic-line: #2B4F40;
  --print: #E4A582; --print-bg: #302119; --print-line: #52382A;
  --daily: #E5C178; --daily-bg: #2F2717; --daily-line: #524326;
  --err: #F0B08A; --err-bg: #3A2418;
  color-scheme: dark;
}
:lang(en) { --font-ar: "Plus Jakarta Sans", system-ui, sans-serif; --font-head: "Plus Jakarta Sans", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; }
body {
  margin: 0; background: var(--page); color: var(--text);
  font-family: var(--font-ar); font-size: 18px; line-height: 1.65;
  /* calm dots + a few faint puzzle pieces in random turns: hidden details for those who look closely */
  background-image: var(--puzzle-bg), radial-gradient(var(--border) 1px, transparent 1px); background-size: 480px 480px, 22px 22px;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.3; margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--star); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { background: var(--card); border-bottom: 2px solid var(--border); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 72px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand-name { font-family: "Plus Jakarta Sans", var(--font-head); font-weight: 800; font-size: 26px; letter-spacing: -.3px; direction: ltr; }
.brand-tag { display: block; font-size: 13px; color: var(--text-2); font-weight: 600; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; }

.btn {
  min-height: var(--tap); min-width: var(--tap); padding: 0 16px; border-radius: var(--radius);
  border: 2px solid var(--border-strong); background: var(--card); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 16px;
  box-shadow: 0 3px 0 var(--border-strong); transition: transform .08s, box-shadow .08s, background .15s; text-decoration: none;
}
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--border-strong); }
.btn-primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary-hover); box-shadow: 0 3px 0 var(--primary-hover); }
.btn-primary:hover { background: var(--primary-hover); }
.btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--primary); }
.btn .ico { width: 22px; height: 22px; }
.companion-btn { padding: 0 10px 0 6px; }
.companion-btn .mini { width: 40px; height: 40px; display: inline-block; }

/* Cards */
.card { background: var(--card); border: 2px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.tile { border-bottom-width: 5px; }

/* Home */
.hero { margin: 20px 0; padding: 22px; display: grid; gap: 18px; grid-template-columns: 1.3fr 1fr; align-items: center; }
.hero h1 { font-size: 30px; }
.hero p { margin: 6px 0 0; color: var(--text-2); }
.hero-companion { max-width: 320px; justify-self: end; width: 100%; }
.search { display: flex; align-items: center; gap: 8px; border: 2px solid var(--border-strong); border-radius: var(--radius); background: var(--raised); padding: 0 12px; min-height: 52px; margin-top: 14px; }
.search input { border: 0; background: transparent; font: inherit; color: inherit; width: 100%; min-height: 48px; outline: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.chip { flex: 0 0 auto; }
.section-title { display: flex; align-items: center; gap: 10px; font-size: 22px; margin: 26px 0 12px; }
.section-title .dot { width: 12px; height: 12px; border-radius: 4px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.game-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.game-card .top { display: flex; gap: 12px; align-items: center; padding-inline-end: 52px; }
.game-icon-box { width: 72px; height: 72px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex: 0 0 72px; border: 2px solid var(--border); }
.pc-icon-svg { width: 52px; height: 52px; }
.game-card h3 { font-size: 20px; }
.game-card p { margin: 0; color: var(--text-2); font-size: 16px; flex: 1; }
.badge { display: inline-block; font-size: 14px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--secondary); color: var(--text-2); }
.badge.soon { background: var(--daily-bg); color: var(--daily); border: 1px solid var(--daily-line); }
.fav { position: absolute; top: 10px; inset-inline-end: 10px; min-height: var(--tap); min-width: var(--tap); border-radius: 12px; border: 2px solid var(--border); background: var(--card); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.fav svg { width: 24px; height: 24px; }
.fav[aria-pressed="true"] svg path { fill: var(--star); stroke: var(--star); }
.row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.row .mini-card { flex: 0 0 auto; display: flex; gap: 10px; align-items: center; padding: 10px 14px; text-decoration: none; min-height: 64px; }
.row .mini-card .game-icon-box { width: 52px; height: 52px; flex-basis: 52px; }
.row .mini-card .pc-icon-svg { width: 38px; height: 38px; }
.empty-note { color: var(--text-2); font-size: 16px; }
.ad-slot { margin: 24px 0; min-height: 110px; border: 2px dashed var(--border-strong); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--text-2); font-size: 14px; }
.site-footer { margin-top: 40px; padding: 22px 0; border-top: 2px solid var(--border); background: var(--card); color: var(--text-2); font-size: 15px; }

/* Dialog */
dialog { border: 2px solid var(--border); border-radius: var(--radius-lg); background: var(--card); color: var(--text); padding: 0; max-width: 640px; width: calc(100% - 24px); }
dialog::backdrop { background: rgba(20,25,23,.45); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 2px solid var(--border); }
.dlg-body { padding: 16px; max-height: 70vh; overflow: auto; }
.comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.comp-opt { border: 2px solid var(--border); border-radius: var(--radius); background: var(--raised); padding: 6px; cursor: pointer; min-height: var(--tap); }
.comp-opt[aria-pressed="true"] { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.comp-opt span { display: block; font-weight: 700; font-size: 15px; margin-top: 4px; }
.field { display: flex; gap: 8px; margin-top: 14px; }
.field input { flex: 1; min-height: var(--tap); border: 2px solid var(--border-strong); border-radius: var(--radius); padding: 0 12px; font: inherit; background: var(--card); color: inherit; }

/* Toast */
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--page); padding: 12px 18px; border-radius: var(--radius); font-weight: 700; z-index: 50; max-width: calc(100% - 32px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.toast.show { opacity: 1; }

@media (max-width: 760px) {
  body { font-size: 18px; }
  .hero { grid-template-columns: 1fr; padding: 16px; }
  .hero h1 { font-size: 24px; }
  .hero-companion { justify-self: center; max-width: 300px; order: -1; }
  .brand-name { font-size: 22px; }
  .brand-tag { display: none; }
  .tools .btn-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.anim-sparkle { animation: pc-sparkle 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pc-sparkle { 0%,100% { opacity: .5; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }

/* ---------- Companions: picture on a soft circle ---------- */
.pc-comp { position: relative; display: block; width: 100%; aspect-ratio: 1; }
.pc-comp::before { content: ""; position: absolute; left: 8%; top: 11%; width: 84%; height: 84%; border-radius: 50%;
  background: radial-gradient(closest-side, #FFFDF8 calc(100% - 7%), var(--comp-bg) calc(100% - 6.5%)); }   /* light sticker with a coloured ring */
.pc-comp img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; }
.pc-comp.is-whole img { transform: scale(.86); transform-origin: 50% 35.7%; }   /* tips, tails and feet stay inside the circle */
.pc-comp-stage img { animation: pc-float 5s ease-in-out infinite; }
.pc-comp-stage.st-celebrate img { animation: pc-hop .6s ease-out 2, pc-float 5s ease-in-out 1.2s infinite; }
@keyframes pc-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -2.5%; } }
@keyframes pc-hop { 0%, 100% { translate: 0 0; } 40% { translate: 0 -7%; } }
@media (prefers-reduced-motion: reduce) { .pc-comp img { animation: none !important; } }
.comp-opt .pc-comp { width: 96px; margin: 0 auto; }

/* ---------- Report a problem ---------- */
.report-link { background: none; border: 0; color: var(--text-2); font: inherit; font-size: 15px; text-decoration: underline; cursor: pointer; padding: 10px 0; min-height: var(--tap); margin-inline-start: 12px; }
a.report-link { display: inline-flex; align-items: center; }
.policy article { padding: 22px 24px; margin: 18px 0; } .policy h1 { font-size: 28px; }
.policy h2 { font-size: 20px; margin: 22px 0 6px; } .policy p, .policy li { line-height: 1.8; } .policy ul { padding-inline-start: 22px; }
html[lang="ar"] .only-en, html:not([lang="ar"]) .only-ar { display: none; }
.report-form { display: flex; flex-direction: column; gap: 10px; }
.rep-cats { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rep-cats legend { font-weight: 700; margin-bottom: 6px; }
.rep-cat input { position: absolute; opacity: 0; }
.rep-cat span { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border: 2px solid var(--border); border-radius: 999px; background: var(--raised); cursor: pointer; font-weight: 600; }
.rep-cat input:checked + span { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.rep-cat input:focus-visible + span { outline: 3px solid var(--star); outline-offset: 2px; }
.rep-lbl { font-weight: 700; }
.report-form textarea { font: inherit; padding: 10px 12px; border: 2px solid var(--border-strong); border-radius: 12px; background: var(--card); color: var(--text); resize: vertical; min-height: 110px; }
.rep-count { font-size: 14px; color: var(--text-2); text-align: end; }
.rep-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.rep-note { font-size: 14px; color: var(--text-2); margin: 0; }
.rep-msg { font-weight: 700; margin: 0; min-height: 1.4em; }
.rep-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rep-actions .btn { min-height: 52px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
#pc-report-dlg .report-form { overflow-x: hidden; }
#rep-ts { max-width: 100%; overflow: hidden; }

/* Install the app: home card + footer link */
.install-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding: 14px 16px; }
.install-card img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.install-card p { flex: 1 1 220px; margin: 0; font-weight: 600; }
.install-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.install-actions .btn { min-height: 48px; }
.install-steps { padding-inline-start: 22px; display: grid; gap: 10px; font-size: 17px; }
.ios-share { vertical-align: middle; color: var(--primary); }
.install-link[hidden] { display: none; }

/* Printable sheets: shared header (name/date on the reading-start side, brand on the other) */
.ps-head { display: flex; justify-content: space-between; align-items: stretch; gap: 8mm; }
.ps-info { flex: 1; display: flex; flex-direction: column; gap: 3.2mm; max-width: 110mm; }
.ps-field { display: flex; align-items: flex-end; gap: 3mm; font: 700 15px var(--font-head), "Cairo", "Plus Jakarta Sans", sans-serif; color: #222; }
.ps-field span { white-space: nowrap; }
.ps-field i { flex: 1; height: 9mm; border-bottom: 1.6px dotted #8A8A8A; display: flex; justify-content: space-around; align-items: flex-end; font-style: normal; }
.ps-field i.ps-date em { font-style: normal; color: #8A8A8A; font: 500 16px "Plus Jakarta Sans", sans-serif; padding-bottom: 1mm; }
.ps-tags { display: flex; flex-wrap: wrap; gap: 2mm; margin-top: 1mm; }
.ps-tags b { font: 700 13px var(--font-head), "Cairo", "Plus Jakarta Sans", sans-serif; color: #245445; background: #EEF5F1; border: 1px solid #C9DED3; border-radius: 999px; padding: 1.2mm 3.5mm; }
.ps-brand { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5mm; padding: 3mm 5mm; border: 1.5px solid #E2DCCF; border-radius: 5mm; direction: ltr; }
.ps-brand img { width: 15mm; height: 15mm; }
.ps-brand span { font: 800 16px "Plus Jakarta Sans", sans-serif; color: #1C2420; letter-spacing: -.01em; }
.ps-brand small { font-size: 13px; color: #6B756F; font-weight: 700; }
@media print { .ps-tags b { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* Text that search engines and AI assistants read before the page script runs; the game replaces it at once. */
.seo-fallback { padding: 28px 0; }
.seo-fallback h1 { margin: 0 0 8px; }
.seo-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--text-2); }
.seo-list a { color: var(--primary); font-weight: 700; }
