/* Puzzle Guard : interface responsive et autonome, sans framework. */
:root {
  --brand: #4263eb;
  --accent: #12b5a5;
  --ink: #16213b;
  --muted: #6d7890;
  --border: #e4e9f2;
  --surface: #ffffff;
  --radius: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Arabic", Roboto, Arial, sans-serif;
  color: var(--ink);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 15% 8%, #e9f0ff, transparent 46%), radial-gradient(ellipse at 90% 90%, #e6f8f5, transparent 48%), #f8faff; }
button, select { font: inherit; }
button { cursor: pointer; }
.shell { max-width: 1100px; min-height: 100vh; margin: 0 auto; padding: 34px 32px 28px; display: flex; flex-direction: column; }
.topbar, .brand, .language-box, .verify-header, .puzzle-footer, .footer, .privacy { display: flex; align-items: center; }
.topbar { justify-content: space-between; margin-bottom: 56px; }
.brand { gap: 12px; color: var(--ink); font-weight: 750; text-decoration: none; font-size: 18px; letter-spacing: -.35px; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 14px; background: var(--brand); color: #fff; font-size: 25px; box-shadow: 0 9px 24px #4263eb2b; overflow: hidden; }
.brand-mark img { max-height: 100%; max-width: 100%; width: 100%; height: 100%; object-fit: contain; }
.language-box { gap: 12px; color: var(--muted); font-size: 13px; }
.language-box select { background: #fff; border: 1px solid var(--border); border-radius: 11px; padding: 10px 28px 10px 12px; color: var(--ink); box-shadow: 0 4px 15px #23385b08; }
.language-box select:focus-visible, .slider-thumb:focus-visible, .refresh:focus-visible { outline: 3px solid #8198ff; outline-offset: 3px; }
.panel { display: grid; grid-template-columns: 1fr 1.07fr; max-width: 1036px; align-self: center; width: 100%; background: #fff; border: 1px solid #eff2f8; border-radius: 28px; box-shadow: 0 25px 80px #1e36501a; overflow: hidden; }
.intro { position: relative; min-height: 548px; display: flex; flex-direction: column; background: linear-gradient(144deg, var(--brand), #647bdb 56%, var(--accent)); color: #fff; padding: 52px 46px 31px; isolation: isolate; }
.intro::before { content: ""; position: absolute; z-index: -1; width: 360px; height: 360px; right: -160px; top: -180px; border: 1px solid #ffffff35; border-radius: 50%; box-shadow: 0 0 0 65px #ffffff09, 0 0 0 145px #ffffff09; }
.intro-text { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; letter-spacing: 1.5px; font-weight: 700; color: #fffef5; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #96f6ca; box-shadow: 0 0 0 5px #ffffff1c; }
.intro h1 { margin: 26px 0 16px; max-width: 350px; font-size: clamp(30px, 3.25vw, 43px); font-weight: 770; line-height: 1.13; letter-spacing: -1.8px; }
.intro p { max-width: 320px; margin: 0; font-size: 15px; line-height: 1.8; color: #ffffffde; }
.intro-graphic { margin: 28px auto 0; width: 100%; max-width: 325px; }
.intro-graphic svg { display: block; width: 100%; }
.intro-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #ffffffe0; }
.shield-mini { font-size: 28px; }
.verification { padding: 52px 55px 34px; min-width: 0; }
.verify-header { gap: 8px; color: #0b927c; letter-spacing: 1.6px; font-size: 11px; font-weight: 750; }
.verified-icon { width: 22px; height: 22px; border: 1.5px solid #8acfc1; border-radius: 50%; text-align: center; line-height: 19px; }
.verification h2 { font-size: 28px; line-height: 1.2; letter-spacing: -.8px; margin: 22px 0 12px; font-weight: 780; }
.verify-description { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0 0 23px; max-width: 340px; }
.puzzle-wrap { max-width: 350px; }
.puzzle-stage { position: relative; width: 100%; aspect-ratio: 16/9; background: linear-gradient(130deg, #cfe6f4, #f2e5c8); background-repeat: no-repeat; background-size: 100% 100%; border-radius: 13px; box-shadow: 0 8px 24px #1f45621b; overflow: hidden; direction: ltr; }
.stage-shimmer { position: absolute; inset: 0; z-index: 2; background: linear-gradient(110deg, #f4f7fc0a 20%, #ffffff77 50%, #f4f7fc0a 80%); background-size: 250% 100%; animation: shimmer 1.2s linear infinite; }
.puzzle-stage.loaded .stage-shimmer { display: none; }
.hole-overlay { position: absolute; inset: 0; height: 100%; width: 100%; display: block; pointer-events: none; }
.puzzle-piece { position: absolute; top: 30%; left: 0; width: 16%; aspect-ratio: 1; z-index: 1; border-radius: 9px; border: 2.5px solid white; box-shadow: 0 4px 16px #10233e81; background-repeat: no-repeat; background-origin: border-box; background-color: #ffffff4d; pointer-events: none; }
.puzzle-piece::before { content: ""; position: absolute; top: -9px; left: calc(50% - 9px); width: 18px; height: 18px; border: 2px solid white; background: var(--brand); border-radius: 50%; }
.image-label { position: absolute; left: 12px; bottom: 12px; background: #101d33a8; color: #fff; backdrop-filter: blur(8px); border: 1px solid #ffffff50; border-radius: 100px; padding: 6px 10px; display: inline-flex; align-items: center; gap: 7px; font-size: 10px; }
.image-label-dot { width: 6px; height: 6px; background: #4ff5bf; border-radius: 50%; }
.slider { --fill: 0%; margin-top: 15px; height: 52px; background: #eff3f9; border-radius: 13px; display: flex; align-items: center; justify-content: center; position: relative; overflow: visible; direction: ltr; user-select: none; touch-action: none; }
.slider-progress { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 13px 0 0 13px; width: var(--fill); background: color-mix(in srgb, var(--brand) 20%, white); }
.slider-instruction { pointer-events: none; margin-left: 34px; color: #7a879b; font-size: 12px; letter-spacing: .25px; white-space: nowrap; }
.slider-thumb { position: absolute; left: 3px; top: 3px; width: 46px; height: 46px; border: 0; border-radius: 11px; background: var(--brand); color: white; display: grid; place-items: center; box-shadow: 0 5px 13px #4263eb50; transition: box-shadow .2s; touch-action: none; }
.slider-thumb:hover { box-shadow: 0 7px 18px #4263eb65; }
.slider-thumb:disabled { cursor: wait; opacity: .7; }
.puzzle-footer { justify-content: space-between; gap: 10px; margin-top: 16px; min-height: 22px; }
.status { font-size: 12px; color: var(--muted); line-height: 1.5; }
.status.ok { color: #0c987e; }
.status.error { color: #bd4b4b; }
.refresh { border: 0; display: flex; align-items: center; gap: 6px; color: var(--brand); background: transparent; white-space: nowrap; font-size: 12px; padding: 3px 0; }
.refresh:disabled { opacity: .4; }
.privacy { gap: 8px; color: #8995a5; margin-top: 26px; font-size: 11px; line-height: 1.5; }
.privacy svg { flex-shrink: 0; }
.footer { margin-top: auto; justify-content: center; gap: 14px; padding-top: 34px; color: #8793a7; font-size: 11px; }
.footer-dot { font-size: 16px; }
[dir="rtl"] .intro h1 { letter-spacing: 0; }
[dir="rtl"] .verification, [dir="rtl"] .intro { text-align: right; }
[dir="rtl"] .language-box select { padding: 10px 12px 10px 28px; }
@keyframes shimmer { to { background-position-x: -250%; } }
@media (max-width: 880px) { .shell { padding: 24px 20px; } .topbar { margin-bottom: 26px; } .intro { padding: 35px 28px 24px; min-height: 475px; } .verification { padding: 37px 30px 28px; } }
@media (max-width: 670px) { .shell { padding: 18px 14px 20px; } .topbar { margin-bottom: 20px; } .language-box label { display: none; } .panel { grid-template-columns: 1fr; border-radius: 22px; } .intro { min-height: 0; padding: 28px 26px 25px; } .intro h1 { font-size: 28px; margin: 20px 0 12px; letter-spacing: -.7px; } .intro p { font-size: 13px; } .intro-graphic, .intro-footer { display: none; } .verification { padding: 29px 24px 26px; } .verification h2 { font-size: 25px; margin-top: 14px; } .puzzle-wrap { max-width: none; } .footer { padding-top: 22px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
