/* Game start screens (landing + participant details), axis 2 step 2 (2026-11-11).
   A start button that stands out, an entrance that settles on the page as it was, and no text below 12 px.
   Motion lives in js/games/game-entrance.js; everything here is safe without it. */

/* Start button: near-white, lightly tinted with the game's accent, dark text, an accent edge and a soft
   pulse. Owners pick any accent (some are muted), so the button stays high-contrast whatever it is. */
.pg12-public-shell .pg12-launch-action,
.pg12-public-shell .pg12-form-actions .pg2-primary-action {
  position: relative;
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--pg-accent) 18%, #fff));
  color: #0b1f33;
  border: 3px solid var(--pg-accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--pg-accent) 55%, transparent), 0 16px 38px -10px color-mix(in srgb, var(--pg-accent) 60%, #000);
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  transition: transform .18s ease, filter .18s ease;
}
.pg12-public-shell .pg12-launch-action:hover,
.pg12-public-shell .pg12-form-actions .pg2-primary-action:hover { transform: translateY(-2px); filter: brightness(1.08); }
.pg12-public-shell .pg12-launch-action:active,
.pg12-public-shell .pg12-form-actions .pg2-primary-action:active { transform: translateY(1px) scale(.99); }
.pg12-public-shell .pg12-launch-action:focus-visible,
.pg12-public-shell .pg12-form-actions .pg2-primary-action:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.pg12-public-shell .pg12-launch-action:disabled { animation: none; border-color: rgba(255, 255, 255, .3); }
@media (prefers-reduced-motion: no-preference) {
  .pg12-public-shell .pg12-launch-action:not(:disabled),
  .pg12-public-shell .pg12-form-actions .pg2-primary-action { animation: ge-pulse 2.2s ease-out infinite; }
}
@keyframes ge-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pg-accent) 55%, transparent), 0 16px 38px -10px color-mix(in srgb, var(--pg-accent) 60%, #000); }
  70%, 100% { box-shadow: 0 0 0 16px color-mix(in srgb, var(--pg-accent) 0%, transparent), 0 16px 38px -10px color-mix(in srgb, var(--pg-accent) 60%, #000); }
}

/* Smallest text: 12 px. */
.pg12-public-shell .pg12-landing-metrics span,
.pg12-public-shell .pg12-landing-metrics small,
.pg12-public-shell .pg12-section-head p,
.pg12-public-shell .pg12-entry-summary small,
.pg12-public-shell .pg12-field-help,
.pg12-public-shell .pg12-level-card > em,
.pg12-public-shell .pg12-level-stats > span,
.pg12-public-shell .pg2-logo figcaption { font-size: max(12px, .75rem); }

/* Where the result goes (axis 5): signed-in "saved to your profile", guests a sign-in link. */
.pg12-public-shell .pg12-profile-note {
  margin: 14px 0 0; padding: 10px 14px; border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, .3); background: rgba(52, 211, 153, .08);
  color: #d1fae5; font-size: max(13px, .85rem); line-height: 1.7;
}
.pg12-public-shell .pg12-profile-note a { color: #6ee7b7; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* Attempt limit notice and back bar on the game pages (2026-11-11) */
.ge-attempts { display: flex; align-items: center; gap: 12px; margin: 14px 0; padding: 14px 16px; border-radius: 16px; font-size: 15px; line-height: 1.6; }
.ge-attempts--done { background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .45); color: #fde68a; }
.ge-attempts--left { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); color: #cbd5e1; font-size: 14px; padding: 10px 14px; }
.ge-attempts__icon { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(245, 158, 11, .18); color: #fbbf24; }
.ge-attempts__icon svg { width: 22px; height: 22px; }
.ge-attempts__text { display: grid; gap: 2px; min-width: 0; flex: 1 1 auto; }
.ge-attempts__text strong { color: #fef3c7; font-size: 16px; }
.ge-attempts__text span { color: #fde68a; opacity: .92; }
.ge-attempts__link { flex: 0 0 auto; padding: 9px 16px; border-radius: 12px; background: #fbbf24; color: #1c1917; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ge-attempts__link:hover, .ge-attempts__link:focus-visible { background: #fcd34d; }
.ge-attempts__link:focus-visible { outline: 3px solid #fef3c7; outline-offset: 2px; }
.pg2-primary-action[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none !important; animation: none !important; transform: none !important; }

.ge-backbar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px auto 8px; padding: 10px; width: fit-content; max-width: 100%; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.ge-backbar__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; color: #e2e8f0; font-weight: 700; font-size: 14px; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.ge-backbar__link svg { width: 18px; height: 18px; opacity: .85; }
.ge-backbar__link:hover, .ge-backbar__link:focus-visible { background: rgba(255, 255, 255, .08); color: #fff; }
.ge-backbar__link:focus-visible { outline: 2px solid #5eead4; outline-offset: 2px; }
@media (max-width: 560px) {
  .ge-attempts { flex-wrap: wrap; }
  .ge-attempts__link { width: 100%; text-align: center; }
  .ge-backbar { width: 100%; }
  .ge-backbar__link { flex: 1 1 0; justify-content: center; padding: 0 10px; }
}
/* Landing (2026-11-12): «نقاطك في هذه اللعبة» and room between the attempts note and the start button. */
.ge-mine { margin: 18px 0 4px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.ge-mine__title { margin: 0 0 10px; color: #e2e8f0; font-size: 14px; font-weight: 800; }
.ge-mine__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ge-mine__stat { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: rgba(2, 12, 18, .35); border: 1px solid rgba(255, 255, 255, .08); min-width: 0; }
.ge-mine__stat span { color: #94a3b8; font-size: 12px; font-weight: 700; }
.ge-mine__stat strong { color: #f8fafc; font-size: clamp(20px, 2.2vw, 26px); font-weight: 900; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ge-mine__stat small { color: #94a3b8; font-size: 12px; line-height: 1.5; }
.ge-mine__stat--best strong { color: #5eead4; }
.ge-mine__stat--reward strong { color: #fcd34d; }
.ge-launch { display: grid; gap: 14px; margin-top: 18px; }
.ge-launch > .ge-attempts { margin: 0; }
.ge-launch > .pg2-primary-action { margin: 0; }
@media (max-width: 560px) {
  .ge-mine__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .ge-mine__stat { padding: 8px; }
  .ge-mine__stat small { display: none; }
}