:root {
  color-scheme: light;
  --ink: #17233c;
  --muted: #657084;
  --paper: #fffaf7;
  --surface: #ffffff;
  --line: #e8e6e2;
  --coral: #ff5a47;
  --coral-dark: #e94131;
  --yellow: #ffd866;
  --mint: #c7f0df;
  --navy-soft: #eef2f8;
  --shadow: 0 24px 70px rgba(23, 35, 60, .12);
  --radius-lg: 28px;
  --radius-md: 18px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.55; }
body.locked { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 14px; background: var(--ink); color: white; border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 10; border-bottom: 1px solid rgba(23,35,60,.08); background: rgba(255,250,247,.9); backdrop-filter: blur(14px); }
.nav-wrap { width: min(1180px, calc(100% - 40px)); min-height: 76px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.035em; font-size: 1.08rem; white-space: nowrap; }
.brand > span:last-child > span { color: var(--coral); }
.brand-mark { position: relative; width: 36px; height: 30px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; background: var(--coral); border-radius: 9px 9px 9px 3px; box-shadow: 0 5px 12px rgba(255,90,71,.22); }
.brand-mark::after { content: ""; position: absolute; left: 4px; bottom: -5px; border-width: 6px 6px 0 0; border-style: solid; border-color: var(--coral) transparent transparent transparent; }
.brand-mark span { width: 4px; height: 4px; border-radius: 50%; background: white; }
nav { display: flex; align-items: center; gap: 28px; }
nav > a { text-decoration: none; color: #3c4658; font-weight: 650; font-size: .94rem; }
nav > a:hover { color: var(--coral-dark); }
.language-button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid #d8dbe1; border-radius: 999px; color: var(--ink); background: white; font-weight: 700; cursor: pointer; }
.language-button:hover { border-color: var(--ink); }

.hero { position: relative; overflow: hidden; width: min(1180px, calc(100% - 40px)); min-height: 650px; margin: 0 auto; padding: 92px 0 78px; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: clamp(48px, 7vw, 96px); }
.hero::before { content: ""; position: absolute; z-index: -1; width: 330px; height: 330px; top: -180px; left: 36%; border-radius: 50%; background: var(--yellow); opacity: .24; }
.hero::after { content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; right: -150px; bottom: 10px; border-radius: 48% 52% 66% 34%; background: var(--mint); opacity: .65; transform: rotate(18deg); }
.eyebrow { margin: 0 0 12px; color: var(--coral-dark); text-transform: uppercase; font-size: .78rem; line-height: 1.2; letter-spacing: .14em; font-weight: 850; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { max-width: 660px; margin: 0; font-size: clamp(3rem, 5.2vw, 5rem); line-height: .98; letter-spacing: -.065em; }
.hero-lead { max-width: 610px; margin: 26px 0 24px; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.2rem); }
.trust-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #4f596b; font-size: .88rem; font-weight: 650; }
.platform { width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 50%; color: white; font-size: .8rem; font-weight: 850; box-shadow: 0 3px 8px rgba(23,35,60,.1); }
.platform.youtube { background: #f22; }
.platform.instagram { background: #d92c7b; font-size: 1.2rem; }
.platform.facebook { background: #1877f2; font-family: Arial, sans-serif; font-size: 1rem; }
.platform.tiktok { background: #131313; font-size: 1rem; }
.platform.x { background: #111; }

.picker-card { position: relative; padding: clamp(25px, 4vw, 38px); border: 1px solid rgba(23,35,60,.08); border-radius: var(--radius-lg); background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.picker-card::before { content: ""; position: absolute; inset: -9px 22px auto; height: 18px; z-index: -1; border-radius: 20px; background: var(--yellow); transform: rotate(-1deg); }
.card-heading { margin-bottom: 26px; }
.step-chip { display: inline-block; margin-bottom: 14px; padding: 5px 10px; border-radius: 999px; background: var(--navy-soft); color: var(--ink); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.card-heading h2 { margin: 0; font-size: clamp(1.55rem, 2vw, 2rem); line-height: 1.15; letter-spacing: -.04em; }
.card-heading p { margin: 8px 0 0; color: var(--muted); }
label { display: block; margin-bottom: 8px; font-size: .88rem; font-weight: 750; }
.url-field { position: relative; display: flex; align-items: center; }
.url-field input { width: 100%; height: 58px; padding: 0 78px 0 49px; border: 1.5px solid #d8dbe1; border-radius: 14px; background: #fff; color: var(--ink); outline: none; transition: .18s ease; }
.url-field input::placeholder { color: #9ba2ae; }
.url-field input:focus { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255,90,71,.12); }
.detected-provider { position: absolute; z-index: 1; left: 17px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; background: var(--navy-soft); color: var(--ink); font-weight: 800; }
.detected-provider.active { background: var(--ink); color: white; }
.paste-button { position: absolute; right: 7px; padding: 8px 11px; border: 0; border-radius: 9px; background: var(--navy-soft); color: var(--ink); font-size: .82rem; font-weight: 800; cursor: pointer; }
.paste-button:hover { background: #dfe6f0; }
.field-hint { margin: 7px 0 18px; color: var(--muted); font-size: .78rem; }
.check-row { display: flex; align-items: center; gap: 10px; width: fit-content; margin-bottom: 20px; cursor: pointer; color: #3c4658; font-weight: 650; }
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.fake-check { width: 21px; height: 21px; display: grid; place-items: center; flex: 0 0 auto; border: 1.5px solid #bdc3cc; border-radius: 6px; }
.check-row input:checked + .fake-check { border-color: var(--ink); background: var(--ink); }
.check-row input:checked + .fake-check::after { content: "✓"; color: white; font-size: .75rem; font-weight: 900; }
.check-row input:focus-visible + .fake-check { outline: 3px solid rgba(255,90,71,.25); }
.primary-button { width: 100%; height: 60px; border: 0; border-radius: 14px; color: white; background: var(--coral); box-shadow: 0 11px 24px rgba(255,90,71,.28); font-weight: 850; font-size: 1.02rem; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.primary-button:hover { background: var(--coral-dark); transform: translateY(-2px); }
.primary-button:active { transform: translateY(0); }
.primary-button:disabled { cursor: wait; opacity: .75; transform: none; }
.button-idle, .button-loading { align-items: center; justify-content: center; gap: 10px; }
.button-idle { display: flex; }
.button-loading { display: none; }
.is-loading .button-idle { display: none; }
.is-loading .button-loading { display: flex; }
.dice { font-size: 1.15rem; }
.spinner { width: 19px; height: 19px; border: 2px solid rgba(255,255,255,.4); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-message { min-height: 0; margin: 0; color: #b42318; text-align: center; font-size: .86rem; font-weight: 650; }
.form-message:not(:empty) { margin-top: 14px; }
.privacy-note { display: flex; justify-content: center; align-items: center; gap: 7px; margin: 15px 0 0; color: #858d9a; font-size: .75rem; }

.ad-slot { width: min(970px, calc(100% - 40px)); min-height: 106px; margin: 14px auto 90px; display: grid; place-items: center; border: 1px dashed #d4d6db; border-radius: 12px; background: rgba(255,255,255,.48); color: #9a9fa8; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; }
.ad-slot.compact { margin-top: 90px; margin-bottom: 90px; }
.how-section, .faq-section { width: min(1100px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0 100px; }
.section-heading { max-width: 690px; margin-bottom: 46px; }
.section-heading h2, .fair-copy h2 { margin: 0; font-size: clamp(2.1rem, 4vw, 3.5rem); line-height: 1.06; letter-spacing: -.055em; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps-grid article { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; }
.step-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 25px; border-radius: 15px; font-size: 1.5rem; font-weight: 900; }
.link-icon { background: var(--mint); }
.shuffle-icon { background: #e5e8ff; }
.trophy-icon { background: var(--yellow); }
.steps-grid h3 { margin: 0 0 9px; font-size: 1.25rem; letter-spacing: -.025em; }
.steps-grid p { margin: 0; color: var(--muted); }

.fair-section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: clamp(40px, 7vw, 80px); display: grid; grid-template-columns: 1fr .85fr; align-items: center; gap: clamp(55px, 8vw, 110px); border-radius: 38px; background: var(--ink); color: white; overflow: hidden; }
.fair-copy .eyebrow { color: #ff978b; }
.fair-copy > p:not(.eyebrow) { margin: 24px 0; color: #c4cad6; font-size: 1.05rem; }
.fair-copy ul { padding: 0; margin: 28px 0 0; list-style: none; }
.fair-copy li { display: flex; gap: 11px; margin: 12px 0; color: #eef1f6; font-weight: 650; }
.fair-copy li > span:first-child { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--ink); font-size: .72rem; }
.mini-winner { position: relative; max-width: 390px; margin: auto; padding: 42px 34px 26px; border-radius: 26px; background: white; color: var(--ink); text-align: center; box-shadow: 17px 18px 0 var(--coral); transform: rotate(2deg); }
.mini-winner::before { content: ""; position: absolute; width: 72px; height: 20px; top: -11px; left: calc(50% - 36px); background: rgba(255,216,102,.9); transform: rotate(-3deg); }
.mini-badge { display: inline-block; padding: 4px 10px; margin-bottom: 15px; border-radius: 999px; background: var(--yellow); font-size: .68rem; letter-spacing: .12em; font-weight: 900; }
.mini-avatar { width: 72px; height: 72px; margin: 0 auto 12px; display: grid; place-items: center; border: 4px solid #ffe7e3; border-radius: 50%; background: var(--coral); color: white; font-size: 1.8rem; font-weight: 850; }
.mini-winner strong { display: block; }
.mini-winner p { margin: 15px 0 25px; color: var(--muted); }
.mini-meta { display: flex; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); color: #858d9a; font-size: .72rem; font-weight: 700; }
.spark { position: absolute; color: var(--yellow); font-size: 1.6rem; }
.spark-one { top: 17px; left: -30px; }
.spark-two { right: -28px; bottom: 36px; }

.faq-section { padding-bottom: 110px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 24px 45px 24px 0; cursor: pointer; list-style: none; font-size: 1.08rem; font-weight: 750; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 8px; top: 19px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: white; border: 1px solid var(--line); font-size: 1.2rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 800px; margin: -7px 0 24px; color: var(--muted); }

footer { padding: 52px max(20px, calc((100% - 1180px)/2)); background: #10192c; color: white; }
.footer-main { display: flex; align-items: center; gap: 28px; }
.footer-brand { color: white; }
.footer-main > p { margin: 0; color: #939cab; }
.footer-links { display: flex; gap: 22px; margin-left: auto; }
.footer-links a { color: #d8dde6; text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: white; }
.footer-note { margin-top: 38px; padding-top: 22px; display: flex; justify-content: space-between; gap: 25px; border-top: 1px solid rgba(255,255,255,.1); color: #7f899a; font-size: .75rem; }

.winner-overlay { position: fixed; z-index: 50; inset: 0; display: none; place-items: center; overflow: auto; padding: 30px 20px; background: radial-gradient(circle at 50% 35%, #fffdf8 0, #fff7ed 45%, #f9e9dc 100%); opacity: 0; }
.winner-overlay.visible { display: grid; animation: overlayIn .3s ease forwards; }
@keyframes overlayIn { to { opacity: 1; } }
#confettiCanvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.close-winner { position: fixed; z-index: 2; top: 24px; right: 24px; width: 44px; height: 44px; border: 1px solid rgba(23,35,60,.12); border-radius: 50%; background: rgba(255,255,255,.76); color: var(--ink); font-size: 1.55rem; cursor: pointer; }
.winner-stage { position: relative; z-index: 1; width: min(620px, 100%); text-align: center; }
.winner-kicker { margin: 0 0 20px; color: var(--coral-dark); font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 850; letter-spacing: -.04em; }
.winner-card { position: relative; padding: clamp(35px, 7vw, 64px) clamp(24px, 7vw, 60px) 34px; border: 1px solid rgba(23,35,60,.08); border-radius: 32px; background: white; box-shadow: 0 30px 90px rgba(23,35,60,.15); transform: scale(.92) rotate(-1deg); opacity: 0; }
.visible .winner-card { animation: winnerIn .66s .23s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes winnerIn { to { transform: scale(1) rotate(0); opacity: 1; } }
.winner-badge { display: inline-block; margin-bottom: 22px; padding: 7px 14px; border-radius: 999px; background: var(--yellow); text-transform: uppercase; letter-spacing: .13em; font-size: .73rem; font-weight: 900; }
.winner-avatar { width: 96px; height: 96px; margin: 0 auto 17px; display: grid; place-items: center; border: 6px solid #ffe9e5; border-radius: 50%; background: var(--coral); background-position: center; background-size: cover; color: white; font-size: 2.2rem; font-weight: 850; }
.winner-card h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.1; letter-spacing: -.045em; }
.winner-card blockquote { margin: 22px auto 30px; color: #4f596b; font-size: clamp(1rem, 2.3vw, 1.25rem); font-style: normal; }
.winner-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px 18px; padding-top: 22px; border-top: 1px solid var(--line); color: #858d9a; font-size: .8rem; font-weight: 700; }
.winner-actions { display: flex; justify-content: center; gap: 12px; margin-top: 25px; opacity: 0; animation: actionIn .4s .8s ease forwards; }
@keyframes actionIn { to { opacity: 1; } }
.secondary-button, .share-button { min-height: 50px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; font-weight: 800; cursor: pointer; }
.secondary-button { border: 1px solid #d3d7de; background: white; color: var(--ink); }
.share-button { border: 0; background: var(--ink); color: white; }
.recording-note { margin: 18px 0 0; color: #737c8c; font-size: .78rem; }

[dir="rtl"] body { font-family: Tahoma, Arial, sans-serif; }
[dir="rtl"] .brand { letter-spacing: 0; }
[dir="rtl"] nav { flex-direction: row-reverse; }
[dir="rtl"] .url-field input { padding: 0 49px 0 78px; direction: ltr; text-align: left; }
[dir="rtl"] .detected-provider { left: auto; right: 17px; }
[dir="rtl"] .paste-button { right: auto; left: 7px; }
[dir="rtl"] .footer-links { margin-left: 0; margin-right: auto; }
[dir="rtl"] .faq-list summary { padding: 24px 0 24px 45px; }
[dir="rtl"] .faq-list summary::after { right: auto; left: 8px; }
[dir="rtl"] .close-winner { right: auto; left: 24px; }

@media (max-width: 860px) {
  .nav-wrap { min-height: 68px; }
  nav > a { display: none; }
  .hero { min-height: 0; padding: 64px 0 64px; grid-template-columns: 1fr; gap: 48px; }
  h1 { max-width: 700px; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .trust-row { justify-content: center; }
  .picker-card { width: min(600px, 100%); margin: auto; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid article { display: grid; grid-template-columns: 54px 1fr; column-gap: 18px; }
  .steps-grid .step-icon { grid-row: span 2; margin: 0; }
  .fair-section { grid-template-columns: 1fr; }
  .footer-main { flex-wrap: wrap; }
  .footer-main > p { width: 100%; order: 3; }
}

@media (max-width: 560px) {
  .nav-wrap, .hero, .how-section, .faq-section, .fair-section { width: min(100% - 28px, 1180px); }
  .brand { font-size: .95rem; }
  .brand-mark { width: 32px; height: 27px; }
  .language-button { padding: 8px 10px; }
  h1 { font-size: clamp(2.7rem, 14vw, 4rem); }
  .hero { padding-top: 48px; }
  .trust-row > span:last-child { flex-basis: 100%; margin-top: 4px; }
  .picker-card { padding: 24px 18px; border-radius: 22px; }
  .url-field input { font-size: 16px; }
  .how-section { padding-bottom: 75px; }
  .steps-grid article { padding: 22px; }
  .fair-section { padding: 50px 22px 62px; border-radius: 28px; }
  .mini-winner { padding-left: 22px; padding-right: 22px; box-shadow: 9px 11px 0 var(--coral); }
  .ad-slot { margin-bottom: 65px; }
  .footer-main { align-items: flex-start; }
  .footer-links { width: 100%; margin: 0; flex-wrap: wrap; }
  .footer-note { flex-direction: column; }
  .winner-overlay { align-items: start; padding-top: 80px; }
  .close-winner { top: 16px; right: 16px; }
  [dir="rtl"] .close-winner { right: auto; left: 16px; }
  .winner-actions { flex-direction: column-reverse; }
  .secondary-button, .share-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.legal-main { width: min(860px, calc(100% - 40px)); min-height: 65vh; margin: 0 auto; padding: 76px 0 110px; }
.legal-main .eyebrow { margin-bottom: 14px; }
.legal-main h1 { max-width: 780px; margin-bottom: 22px; font-size: clamp(2.6rem, 6vw, 4.5rem); }
.legal-lead { max-width: 730px; margin: 0 0 50px; color: var(--muted); font-size: 1.13rem; }
.legal-section { margin: 38px 0; padding-top: 32px; border-top: 1px solid var(--line); }
.legal-section h2 { margin: 0 0 12px; font-size: 1.45rem; letter-spacing: -.025em; }
.legal-section p, .legal-section li { color: #566174; }
.legal-section ul { padding-inline-start: 22px; }
.contact-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; }
.contact-card a { color: var(--coral-dark); font-weight: 800; }
