/* ==========================================================================
   WaffarCash — Home page
   Every class uses the .wch- prefix; tokens live on .wch so nothing leaks into the
   parent theme (Bootstrap) or the store page (.wcs-) / coupon page (.wc-).
   Palettes are switched by  .wch[data-theme="…"]  (set from الإعدادات ▸ الصفحة الرئيسية).
   ========================================================================== */

.wch,
.wch[data-theme="teal"]   { --p:#0EA5A4; --p2:#0b8786; --acc:#F59E0B; --ink:#163C46; --mut:#5b7780; --bg:#F6FAFA; --card:#fff; --line:#D1E8E8; --soft:#E3F5F4; --h1:#0d3a44; --h2:#0EA5A4; --onp:#fff; }
.wch[data-theme="sunset"] { --p:#F97316; --p2:#E11D48; --acc:#FACC15; --ink:#3B1D12; --mut:#8a6a5a; --bg:#FFF8F1; --card:#fff; --line:#FBDCC3; --soft:#FFEBD8; --h1:#7a1d2b; --h2:#F97316; --onp:#fff; }
.wch[data-theme="violet"] { --p:#7C3AED; --p2:#4F46E5; --acc:#F472B6; --ink:#23124D; --mut:#6f6590; --bg:#F8F5FF; --card:#fff; --line:#E1D6FA; --soft:#EEE6FE; --h1:#23124D; --h2:#7C3AED; --onp:#fff; }
.wch[data-theme="emerald"]{ --p:#059669; --p2:#0F766E; --acc:#FDE047; --ink:#0F3D2E; --mut:#4f7566; --bg:#F2FBF6; --card:#fff; --line:#C9EBD8; --soft:#DFF5E8; --h1:#0a3a2c; --h2:#10B981; --onp:#fff; }
.wch[data-theme="rose"]   { --p:#E11D48; --p2:#9F1239; --acc:#FB923C; --ink:#4A0D1E; --mut:#8b5563; --bg:#FFF5F7; --card:#fff; --line:#FBD0DA; --soft:#FFE4EA; --h1:#4A0D1E; --h2:#F43F5E; --onp:#fff; }
.wch[data-theme="night"]  { --p:#22D3EE; --p2:#6366F1; --acc:#FBBF24; --ink:#E6EEF8; --mut:#93a4bd; --bg:#0B1220; --card:#131C2F; --line:#22304a; --soft:#1a2740; --h1:#0B1220; --h2:#312e81; --onp:#06202a; }

.wch { background: var(--bg); color: var(--ink); font-family: 'Alexandria', 'Cairo', sans-serif; font-size: 16px; font-weight: 400; line-height: 1.7; overflow-x: hidden; transition: background .4s, color .4s; }
.wch *, .wch *::before, .wch *::after { box-sizing: border-box; }
.wch a { color: inherit; text-decoration: none; }
.wch a:hover { text-decoration: none; }
.wch img { max-width: 100%; display: block; }
.wch h1, .wch h2, .wch h3, .wch h4 { color: inherit; margin: 0; letter-spacing: 0; }
.wch p { margin: 0; }
.wch button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.wch-w { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wch-sec { padding: 72px 0; }
.wch-sec--tight { padding-top: 8px; }
.wch-empty { text-align: center; color: var(--mut); padding: 32px 0; }
.wch-sech { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.wch-sech--c { justify-content: center; text-align: center; }
.wch-sech h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: var(--ink); }
.wch-sech h2 small { display: block; font-size: .8rem; font-weight: 600; color: var(--p); margin-bottom: 4px; }

.wch .wch-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 14px; font-weight: 700; transition: .2s; }
.wch .wch-btn--a { background: var(--acc); color: #2b1c00; }
.wch .wch-btn--o { border: 2px solid var(--line); background: var(--card); }
.wch .wch-btn--o:hover { border-color: var(--p); color: var(--p); }

/* ---------- HERO ---------- */
.wch-hero { position: relative; background: linear-gradient(135deg, var(--h1) 0%, var(--h2) 120%); color: #fff; overflow: hidden; padding: 64px 0 96px; }
.wch-hero::before, .wch-hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.wch-hero::before { width: 420px; height: 420px; background: var(--acc); top: -140px; left: -100px; opacity: .28; }
.wch-hero::after { width: 460px; height: 460px; background: var(--p); bottom: -200px; right: 10%; opacity: .45; }
.wch-hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.wch-hero__grid > div:only-child { grid-column: 1 / -1; }
.wch-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); padding: 6px 14px; border-radius: 99px; font-size: .85rem; font-weight: 500; backdrop-filter: blur(6px); }
.wch-pill span { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; animation: wch-ping 1.8s infinite; }
@keyframes wch-ping { 0% { box-shadow: 0 0 0 0 #4ade80; } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
.wch-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.25; margin: 18px 0 14px; color: #fff; }
.wch-lead { color: rgba(255,255,255,.82); font-size: 1.05rem; max-width: 520px; font-weight: 300; }
.wch-search { margin-top: 28px; display: flex; background: #fff; border-radius: 18px; padding: 6px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); max-width: 560px; position: relative; }
.wch-search input { flex: 1; border: 0; outline: 0; padding: 0 16px; font: inherit; font-size: 1rem; color: #163C46; background: transparent; min-width: 0; box-shadow: none; }
.wch-search button { padding: 12px 24px; border-radius: 13px; background: linear-gradient(135deg, var(--p), var(--p2)); color: var(--onp); font-weight: 700; }
.wch-sug { position: absolute; top: calc(100% + 8px); inset-inline: 0; background: var(--card); color: var(--ink); border-radius: 16px; box-shadow: 0 20px 50px -18px rgba(0,0,0,.5); overflow: hidden; display: none; z-index: 9; }
.wch-sug.is-on { display: block; }
.wch-sug a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.wch-sug a:hover { background: var(--soft); }
.wch-sug img { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.wch-sug small { margin-inline-start: auto; color: var(--mut); }
.wch-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; align-items: center; font-size: .85rem; }
.wch-chips b { font-weight: 600; opacity: .8; }
.wch-chips a { padding: 5px 14px; border-radius: 99px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); font-weight: 500; }
.wch-chips a:hover { background: #fff; color: var(--h1); }
.wch-stats { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.wch-stats b { display: block; font-size: 2rem; font-weight: 800; line-height: 1.1; color: var(--acc); }
.wch-stats span { font-size: .85rem; color: rgba(255,255,255,.75); }

/* palette switcher (optional) */
.wch-pal { position: absolute; top: 14px; inset-inline-start: 16px; z-index: 6; }
.wch-pal > button { display: flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 12px; background: rgba(255,255,255,.14); color: #fff; font-size: .82rem; font-weight: 600; backdrop-filter: blur(6px); }
.wch-dot { width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(var(--p) 0 50%, var(--acc) 0); }
.wch-pal__menu { position: absolute; inset-inline-start: 0; top: calc(100% + 8px); background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: none; grid-template-columns: repeat(3, 1fr); gap: 8px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.35); width: 250px; }
.wch-pal.is-open .wch-pal__menu { display: grid; }
.wch-sw { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 12px; border: 2px solid transparent; font-size: .72rem; font-weight: 600; }
.wch-sw:hover { background: var(--soft); }
.wch-sw.is-on { border-color: var(--p); }
.wch-sw i { width: 34px; height: 34px; border-radius: 50%; }

/* hero ticket stack */
.wch-stack { position: relative; height: 420px; }
.wch .wch-tk { position: absolute; inset-inline: 0; margin-inline: auto; width: min(360px, 100%); background: #fff; color: #163C46; border-radius: 22px; padding: 20px; box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .8s, top .8s; display: block; opacity: 0; pointer-events: none; top: 20px; }
.wch-tk::before, .wch-tk::after { content: ""; position: absolute; top: 56%; width: 24px; height: 24px; border-radius: 50%; background: var(--h1); }
.wch-tk::before { right: -12px; }
.wch-tk::after { left: -12px; }
.wch-tk__st { display: flex; align-items: center; gap: 12px; }
.wch-tk__st img { width: 52px; height: 52px; object-fit: contain; border-radius: 12px; border: 1px solid #e5eded; background: #fff; }
.wch-tk__st b { font-size: .95rem; }
.wch-tk__pc { margin-inline-start: auto; font-weight: 800; font-size: 1.6rem; color: var(--p); }
.wch-tk h4 { font-size: .95rem; line-height: 1.55; margin: 14px 0 18px; min-height: 3.1em; font-weight: 600; color: #163C46; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wch-tk__cut { border-top: 2px dashed #cfe3e3; margin: 0 -20px 14px; }
.wch-tk__cd { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wch-tk__cd span { font-weight: 800; background: #f1f8f8; border: 2px dashed var(--p); color: var(--p2); padding: 5px 16px; border-radius: 10px; }
.wch-tk__cd em { font-style: normal; color: #6b8790; font-size: .85rem; }
.wch-tk[data-p="0"] { opacity: 1; pointer-events: auto; top: 20px; transform: rotate(-3deg); z-index: 3; }
.wch-tk[data-p="1"] { opacity: .92; top: 76px; transform: rotate(4deg) scale(.94); z-index: 2; }
.wch-tk[data-p="2"] { opacity: .75; top: 130px; transform: rotate(-6deg) scale(.88); z-index: 1; }
.wch-float { position: absolute; font-weight: 800; padding: 8px 16px; border-radius: 14px; box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); animation: wch-bob 5s ease-in-out infinite; z-index: 5; }
.wch-float--a { top: 0; inset-inline-start: 0; background: var(--acc); color: #2b1c00; transform: rotate(-8deg); }
.wch-float--b { bottom: 30px; inset-inline-end: 0; background: #fff; color: var(--p2); animation-delay: -2s; transform: rotate(6deg); }
@keyframes wch-bob { 50% { translate: 0 -10px; } }

/* ---------- STORE LOGO STRIP ---------- */
.wch-mq { margin-top: -40px; position: relative; z-index: 5; }
.wch-mq__box { direction: ltr; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px 0; box-shadow: 0 20px 40px -24px rgba(0,0,0,.25); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.wch-mq__track { display: flex; gap: 16px; width: max-content; animation: wch-mq 45s linear infinite; }
.wch-mq__box:hover .wch-mq__track { animation-play-state: paused; }
.wch-mq__track a { display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); font-weight: 600; font-size: .9rem; white-space: nowrap; direction: rtl; }
.wch-mq__track img { width: 36px; height: 36px; object-fit: contain; border-radius: 9px; background: #fff; }
@keyframes wch-mq { to { transform: translateX(-50%); } }

/* ---------- COUPONS ---------- */
.wch-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.wch .wch-tab { padding: 9px 20px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; transition: .2s; }
.wch .wch-tab:hover { border-color: var(--p); }
.wch .wch-tab.is-on { background: linear-gradient(135deg, var(--p), var(--p2)); color: var(--onp); border-color: transparent; box-shadow: 0 8px 20px -10px var(--p); }
.wch-cg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wch-cc { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; transition: .25s; }
.wch-cc::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 5px; background: var(--sc, var(--p)); }
.wch-cc:hover { transform: translateY(-5px); box-shadow: 0 24px 40px -24px var(--sc, var(--p)); }
.wch-cc.is-hidden { display: none; }
.wch-cc__hd { display: flex; align-items: center; gap: 12px; }
.wch-cc__hd img { width: 54px; height: 54px; object-fit: contain; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 2px; }
.wch-cc__hd b { font-size: .95rem; display: block; line-height: 1.3; }
.wch-cc__hd small { color: var(--mut); font-size: .78rem; }
.wch-cc__off { margin-inline-start: auto; text-align: center; background: color-mix(in srgb, var(--sc, var(--p)) 12%, transparent); color: var(--sc, var(--p)); border-radius: 12px; padding: 4px 12px; font-weight: 800; line-height: 1.2; font-size: 1.25rem; min-width: 66px; }
.wch-cc__off small { display: block; font-size: .65rem; font-weight: 600; color: inherit; }
.wch-cc h3 { font-size: .92rem; font-weight: 500; line-height: 1.65; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wch-cc h3 a:hover { color: var(--sc, var(--p)); }
.wch .wch-cc__btn { display: flex; align-items: center; justify-content: center; height: 50px; border-radius: 14px; background: var(--sc, var(--p)); color: #fff; font-weight: 800; font-size: .98rem; transition: .2s; }
.wch .wch-cc__btn:hover { filter: brightness(1.08); }
.wch-cc__code { display: flex; height: 50px; border-radius: 14px; overflow: hidden; border: 2px dashed var(--sc, var(--p)); background: var(--soft); font-weight: 800; }
.wch-cc__code span { flex: 1; display: grid; place-items: center; letter-spacing: 2px; color: var(--sc, var(--p)); user-select: all; }
.wch-cc__code button { padding: 0 18px; background: var(--sc, var(--p)); color: #fff; font-weight: 700; font-size: .85rem; }
.wch-cc__ft { display: flex; justify-content: space-between; font-size: .78rem; color: var(--mut); }
.wch .wch-cc__ft a { color: var(--sc, var(--p)); font-weight: 700; }
.wch-more { text-align: center; margin-top: 28px; }

/* ---------- CATEGORIES ---------- */
.wch-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 16px; }
.wch .wch-bt { position: relative; border-radius: 24px; padding: 22px; color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; transition: .3s; isolation: isolate; }
.wch-bt:hover { transform: scale(1.02) rotate(-.4deg); }
.wch-bt h3 { font-size: 1.15rem; font-weight: 800; color: #fff; }
.wch-bt span { font-size: .85rem; opacity: .9; }
.wch-bt em { position: absolute; top: -8px; inset-inline-start: 14px; font-style: normal; font-size: 5.5rem; font-weight: 800; opacity: .18; line-height: 1; z-index: -1; }
.wch-bt:nth-child(1) { grid-column: span 2; grid-row: span 2; background: linear-gradient(140deg, var(--p), var(--p2)); }
.wch-bt:nth-child(1) h3 { font-size: 1.8rem; }
.wch-bt:nth-child(1) em { font-size: 11rem; }
.wch-bt:nth-child(2) { grid-column: span 2; background: linear-gradient(120deg, #F59E0B, #EA580C); }
.wch-bt:nth-child(3) { background: linear-gradient(140deg, #EC4899, #9333EA); }
.wch-bt:nth-child(4) { background: linear-gradient(140deg, #3B82F6, #1D4ED8); }
.wch-bt:nth-child(5) { background: linear-gradient(140deg, #10B981, #047857); }
.wch-bt:nth-child(6) { background: linear-gradient(140deg, #F43F5E, #BE123C); }
.wch-bt:nth-child(7) { grid-column: span 2; background: linear-gradient(120deg, #334155, #0f172a); }

/* ---------- SPIN WHEEL ---------- */
.wch-spin { background: linear-gradient(135deg, var(--h1), var(--h2) 130%); color: #fff; border-radius: 32px; padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; overflow: hidden; position: relative; }
.wch-spin::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: var(--acc); filter: blur(90px); opacity: .3; bottom: -120px; left: -60px; }
.wch-spin > div { position: relative; z-index: 2; }
.wch-spin h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 800; line-height: 1.35; }
.wch-spin p { color: rgba(255,255,255,.8); margin: 12px 0 22px; font-weight: 300; }
.wch-wheel { position: relative; width: min(340px, 100%); margin-inline: auto; aspect-ratio: 1; }
.wch-wheel canvas { width: 100%; height: 100%; transition: transform 5s cubic-bezier(.12,.75,.1,1); border-radius: 50%; box-shadow: 0 0 0 10px rgba(255,255,255,.15), 0 30px 60px -20px rgba(0,0,0,.6); }
.wch-ptr { position: absolute; top: -14px; left: 50%; translate: -50% 0; width: 0; height: 0; border-inline: 16px solid transparent; border-top: 32px solid var(--acc); filter: drop-shadow(0 4px 6px rgba(0,0,0,.4)); z-index: 3; }
.wch-hub { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--p2); display: grid; place-items: center; font-weight: 800; box-shadow: 0 6px 20px rgba(0,0,0,.4); z-index: 3; font-size: .8rem; }
.wch-prize { margin-top: 18px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 18px; padding: 16px; display: none; backdrop-filter: blur(8px); }
.wch-prize.is-on { display: block; animation: wch-pop .5s; }
@keyframes wch-pop { from { transform: scale(.9); opacity: 0; } }
.wch-prize b { color: var(--acc); }
.wch-prize small { display: block; opacity: .85; margin: 4px 0 12px; font-size: .88rem; }
.wch .wch-prize a { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 14px; background: var(--acc); color: #2b1c00; font-weight: 800; }
.wch-conf { position: fixed; pointer-events: none; z-index: 9999; width: 9px; height: 14px; border-radius: 2px; animation: wch-fall 1.3s ease-in forwards; }
@keyframes wch-fall { to { transform: translate(var(--dx), 110vh) rotate(720deg); opacity: 0; } }

/* ---------- STORES ---------- */
.wch-sg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.wch .wch-sc { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 14px 16px; text-align: center; position: relative; overflow: hidden; transition: .25s; }
.wch-sc::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0, var(--sc) 0, transparent 65%); opacity: .14; transition: .3s; }
.wch-sc:hover { transform: translateY(-6px); border-color: var(--sc); }
.wch-sc:hover::before { opacity: .3; }
.wch-sc img { width: 78px; height: 78px; object-fit: contain; margin: 0 auto 12px; border-radius: 18px; background: #fff; border: 1px solid var(--line); padding: 4px; position: relative; }
.wch-sc b { display: block; font-size: .9rem; position: relative; line-height: 1.4; min-height: 2.5em; }
.wch-sc span { display: inline-block; margin-top: 8px; padding: 2px 12px; border-radius: 99px; background: var(--sc); color: #fff; font-size: .75rem; font-weight: 700; position: relative; }

/* ---------- HOW / WHY / FAQ ---------- */
.wch-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: wchs; }
.wch-step { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; position: relative; counter-increment: wchs; }
.wch-step::before { content: counter(wchs); position: absolute; top: 18px; inset-inline-end: 22px; font-size: 3.6rem; font-weight: 800; color: var(--soft); line-height: 1; }
.wch-step i { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-style: normal; font-size: 1.6rem; background: linear-gradient(135deg, var(--p), var(--p2)); margin-bottom: 16px; box-shadow: 0 10px 20px -10px var(--p); }
.wch-step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.wch-step p { color: var(--mut); font-size: .92rem; font-weight: 300; }
.wch-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.wch-why > div { padding: 20px; border-radius: 20px; background: var(--soft); border: 1px solid var(--line); }
.wch-why b { display: block; font-size: 1rem; margin-bottom: 4px; color: var(--p); }
.wch-why span { font-size: .85rem; color: var(--mut); font-weight: 300; }
.wch-faq { max-width: 820px; margin-inline: auto; }
.wch-faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin-bottom: 10px; }
.wch-faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.wch-faq summary::-webkit-details-marker { display: none; }
.wch-faq summary::after { content: "+"; font-size: 1.4rem; color: var(--p); line-height: 1; }
.wch-faq details[open] summary::after { content: "−"; }
.wch-faq p { margin-top: 10px; color: var(--mut); font-weight: 300; font-size: .95rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
	.wch-hero__grid, .wch-spin { grid-template-columns: 1fr; }
	.wch-stack { height: 400px; }
	.wch-cg { grid-template-columns: repeat(2, 1fr); }
	.wch-sg { grid-template-columns: repeat(3, 1fr); }
	.wch-bento { grid-template-columns: repeat(2, 1fr); }
	.wch-bt:nth-child(n) { grid-column: auto; grid-row: auto; }
	.wch-bt:nth-child(1) { grid-column: span 2; }
	.wch-why { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
	.wch-cg, .wch-steps { grid-template-columns: 1fr; }
	.wch-sg { grid-template-columns: repeat(2, 1fr); }
	.wch-spin { padding: 28px 20px; border-radius: 24px; }
	.wch-sec { padding: 52px 0; }
	.wch-hero { padding: 44px 0 80px; }
}
@media (prefers-reduced-motion: reduce) { .wch *, .wch *::before, .wch *::after { animation: none !important; transition: none !important; } }

.wch-hero--pal { padding-top: 84px; }

/* ==========================================================================
   MOBILE HARDENING
   Phone bug: the page overflowed to the left (hero text, search box and tickets cut off).
   Cause: `1fr` grid columns have an automatic minimum = the widest child, so one wide child
   (search form / tickets) stretched the whole column past the screen.
   Fix: every grid uses minmax(0, …) and every grid child may shrink (min-width: 0).
   ========================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; } /* stop Android Chrome inflating text blocks */
.wch { max-width: 100%; overflow-x: hidden; overflow-x: clip; }
.wch-hero__grid > *, .wch-w > * { max-width: 100%; }
.wch-w { max-width: 100%; }
.wch-w > *, .wch-hero__grid > *, .wch-spin > *, .wch-cg > *, .wch-sg > *, .wch-bento > *, .wch-steps > *, .wch-why > * { min-width: 0; }

.wch-hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.wch-cg   { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wch-sg   { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.wch-bento{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wch-steps{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wch-why  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wch-spin { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.wch-lead, .wch-search { max-width: 100%; }
.wch-search input { width: 100%; }
.wch-hero h1, .wch-lead, .wch-cc h3, .wch-tk h4 { overflow-wrap: break-word; }
.wch-chips, .wch-stats { min-width: 0; }

@media (max-width: 1000px) {
	.wch-hero__grid, .wch-spin { grid-template-columns: minmax(0, 1fr); }
	.wch-cg    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wch-sg    { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.wch-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wch-why   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
	.wch-w { width: calc(100% - 32px); }
	.wch-cg, .wch-steps { grid-template-columns: minmax(0, 1fr); }
	.wch-sg { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.wch-why { grid-template-columns: minmax(0, 1fr); }
	.wch-bento { grid-auto-rows: 128px; gap: 12px; }
	.wch-bt { padding: 16px; border-radius: 20px; }
	.wch-bt h3 { font-size: 1rem; }
	.wch-bt:nth-child(1) h3 { font-size: 1.4rem; }
	.wch-bt:nth-child(1) em { font-size: 8rem; }
	.wch-hero h1 { font-size: 1.9rem; }
	.wch-lead { font-size: 1rem; }
	.wch-search { margin-top: 22px; }
	.wch-search button { padding: 12px 18px; }
	.wch-stats { gap: 20px; margin-top: 26px; }
	.wch-stats b { font-size: 1.6rem; }
	/* ticket stack: fits the screen, gentler tilt */
	.wch-stack { height: 350px; }
	.wch .wch-tk { width: calc(100% - 20px); padding: 16px; }
	.wch-tk[data-p="0"] { transform: rotate(-2deg); }
	.wch-tk[data-p="1"] { transform: rotate(3deg) scale(.95); top: 66px; }
	.wch-tk[data-p="2"] { transform: rotate(-4deg) scale(.9); top: 112px; }
	.wch-float { font-size: .8rem; padding: 6px 12px; }
	.wch-float--a { inset-inline-start: 4px; }
	.wch-float--b { inset-inline-end: 4px; bottom: 16px; }
	.wch-mq { margin-top: -30px; }
	.wch-sech h2 { font-size: 1.4rem; }
	.wch-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-inline: -16px; padding: 0 16px 6px; scrollbar-width: none; }
	.wch-tabs::-webkit-scrollbar { display: none; }
	.wch .wch-tab { white-space: nowrap; flex-shrink: 0; }
	.wch-spin { padding: 26px 18px; }
	.wch-wheel { width: min(300px, 100%); }
	.wch-step { padding: 22px; }
	.wch-more .wch-btn { width: 100%; justify-content: center; }
	.wch-pal { inset-inline-start: 12px; }
}
