@font-face{font-family:Bricolage;src:url('./assets/fonts/display.woff2') format('woff2');font-display:swap}@font-face{font-family:DM;src:url('./assets/fonts/sans.woff2') format('woff2');font-display:swap}
:root{--cream:#f8f5ed;--paper:#fffdf8;--teal:#123d3c;--teal-light:#35605b;--sun:#efc16e;--coral:#c9694d;--ink:#213d38;--muted:#6c7770;--line:#dedfd3;--display:Bricolage,DM,'Noto Sans Arabic',sans-serif;--body:DM,'Noto Sans Arabic',Tahoma,sans-serif;color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:var(--body);font-size:15px;line-height:1.55}button,input,select{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.46}a{color:inherit}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid #bf5e40;outline-offset:4px}button{border:0}button svg,svg{display:block}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--display);font-weight:700;line-height:1.12;letter-spacing:-.035em}h2{font-size:33px}h3{font-size:23px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}.skip{position:absolute;top:-100px;left:10px;padding:10px;background:var(--sun);z-index:99}.skip:focus{top:10px}.site-header{height:92px;max-width:1440px;margin:auto;padding:0 56px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-family:var(--display);font-size:19px;font-weight:700;line-height:1.2}.brand small{display:block;margin-top:6px;letter-spacing:.23em;font:9px var(--body);font-weight:600;color:var(--muted)}.brand-mark{width:42px;height:46px;border-radius:12px 12px 20px 20px;display:grid;place-items:center;background:var(--teal);color:var(--sun)}.brand-mark svg{width:30px;height:34px;stroke:none}.header-tools{display:flex;align-items:center;gap:16px}.icon-button{height:40px;min-width:40px;padding:9px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:transparent;color:var(--teal);font-size:20px;font-weight:600}.icon-button:hover{background:#e9eadf}.language select{border:0;background:transparent;color:var(--teal);font-weight:700;font-size:12px;letter-spacing:.05em;min-width:57px;height:44px;cursor:pointer}.hero{margin:0 auto;max-width:1328px;height:555px;border-radius:20px;position:relative;overflow:hidden;background:var(--teal);isolation:isolate}.hero-image,.hero-shade{position:absolute;inset:0;z-index:-2}.hero-image{background:url('./assets/jounieh.webp') center 40%/cover no-repeat;transform:scale(1.015)}.hero-shade{z-index:-1;background:linear-gradient(90deg,rgba(11,42,39,.95),rgba(12,44,40,.83) 27%,rgba(12,44,40,.26) 59%,rgba(12,44,40,.03)),linear-gradient(0deg,rgba(17,47,40,.6),transparent 35%)}.hero-copy{position:relative;z-index:2;max-width:580px;padding:57px 56px;color:var(--cream)}.eyebrow{font-size:10px;font-weight:700;letter-spacing:.16em;color:var(--teal-light);line-height:1.5}.eyebrow.light{color:#e7d8b9;display:flex;align-items:center;gap:9px;letter-spacing:.18em}.live-dot{width:6px;height:6px;background:var(--sun);border-radius:50%;box-shadow:0 0 0 4px #edc4771c}.arabic-title{font-size:26px;font-weight:600;color:#efc16e;text-align:start;width:max-content;direction:rtl;margin-top:27px;transform:rotate(-5deg)}.hero h1{font-size:76px;letter-spacing:-.055em;margin-top:4px;line-height:1.03;white-space:nowrap}.hero-description{font-size:17px;line-height:1.65;color:#e5e9df;max-width:345px;margin:23px 0 24px}.button{display:inline-flex;align-items:center;justify-content:center;gap:18px;border-radius:9px;min-height:48px;padding:12px 22px;font-size:14px;font-weight:700;text-decoration:none;transition:transform .16s,background .16s}.button:hover{transform:translateY(-2px)}.button-sun{background:var(--sun);color:#193e37;box-shadow:0 4px 0 #183e3922}.button-sun:hover{background:#ffd893}.button-teal{background:var(--teal);color:var(--cream)}.button-outline{border:1px solid #b5c2b9;background:transparent;color:var(--teal)}.hero-play{min-width:168px}.hero-play svg{width:17px;height:17px}.hero-meta{font-size:11px;letter-spacing:.04em;color:#d5d9cd;margin-top:17px}.hero-family{position:absolute;inset:0 40px 25px 46%;z-index:1}.hero-family:after{content:'';position:absolute;bottom:24px;left:3%;right:0;height:28px;border-radius:50%;background:#23332255;filter:blur(9px);z-index:-1}.hero-family img{position:absolute;object-fit:contain;object-position:bottom;filter:drop-shadow(3px 5px 3px #21332133)}.hero-dad{height:81%;left:3%;bottom:35px}.hero-mom{height:77%;left:35%;bottom:36px}.hero-nicolas{height:62%;left:23%;bottom:2px}.hero-melanie{height:49%;left:65%;bottom:3px}.hero-postmark{position:absolute;right:30px;top:29px;width:100px;height:100px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:1px dashed #fff4dabb;border-radius:50%;color:#fff6da;transform:rotate(10deg);background:#1d493833}.hero-postmark span{font-size:9px;font-weight:700;letter-spacing:.13em;text-align:center;line-height:1.5}.hero-postmark svg{width:20px;height:20px}.hero-caption{position:absolute;bottom:16px;right:35px;font-size:10px;color:#f4efdfcc;letter-spacing:.04em}.home-body{max-width:1328px;margin:auto;padding:46px 0 0}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:25px}.section-heading h2{margin-top:7px}.small-note{font-size:12px;color:var(--muted);padding-bottom:4px}.game-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:23px}.game-card{display:block;text-align:start;padding:0;background:var(--paper);border:1px solid #deded1;border-radius:14px;overflow:hidden;box-shadow:0 3px 0 #233d3810;transition:transform .2s,box-shadow .2s;color:var(--ink);position:relative}.game-card:hover{transform:translateY(-5px);box-shadow:0 10px 24px #233d3812}.card-image{height:176px;position:relative;overflow:hidden}.card-image>img{width:100%;height:100%;object-fit:cover;object-position:center 30%;transition:transform .5s}.game-card:hover .card-image>img{transform:scale(1.04)}.card-image:after{content:'';position:absolute;inset:40% 0 0;background:linear-gradient(transparent,#172f304a)}.card-location{position:absolute;bottom:13px;left:19px;z-index:1;color:white;display:flex;align-items:center;gap:6px;font-size:11px;font-weight:600;letter-spacing:.04em}.card-location svg{width:13px;height:13px}.card-stamp{position:absolute;right:12px;top:12px;background:#f8f5edee;color:var(--teal);border-radius:50%;width:30px;height:30px;display:grid;place-items:center}.card-body{padding:21px 22px 20px}.card-kicker{display:flex;justify-content:space-between;align-items:center;font-size:10px;font-weight:600;color:var(--muted);margin-bottom:7px}.card-arabic{font-size:15px;color:#a15b42;font-weight:500}.card-body h3{font-size:26px;margin:0 0 9px}.card-description{font-size:12px;line-height:1.6;min-height:39px;color:var(--muted);max-width:90%}.card-bottom{margin-top:20px;padding-top:13px;border-top:1px solid #e7e5dc;display:flex;align-items:center;justify-content:space-between;font-size:10px;font-weight:600;letter-spacing:.04em}.card-bottom svg{width:18px;height:18px;color:var(--coral)}.family-panel{margin-top:29px;padding:25px 28px;display:flex;align-items:center;justify-content:space-between;gap:30px;background:#eceee4;border:1px solid #e1e4d6;border-radius:14px}.family-panel-title{display:flex;gap:16px;align-items:center}.family-panel-title h3{font-size:20px}.family-panel-title p{font-size:11px;color:var(--muted);margin-top:6px}.line-icon{font-size:33px;color:#b96b48}.segmented{border:0;margin:0;padding:0;white-space:nowrap;display:flex;gap:3px}.segmented legend{font-size:9px;letter-spacing:.13em;font-weight:700;margin-bottom:8px;color:var(--muted)}.segmented label{position:relative;cursor:pointer}.segmented input{position:absolute;opacity:0;inset:0;width:100%;height:100%;cursor:pointer}.segmented span{display:block;font-size:11px;padding:9px 14px;border-radius:7px;background:#dfe4d8;color:#4f655b;font-weight:600}.segmented input:checked+span{background:var(--teal);color:#f7f2de;box-shadow:0 2px 4px #18392c22}.segmented input:focus-visible+span{outline:3px solid var(--coral);outline-offset:3px}.bottom-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:60px;margin:46px 0}.story-card h3{font-size:27px;margin:10px 0 15px}.story-card>p:not(.eyebrow){font-size:13px;color:var(--muted);line-height:1.8;max-width:480px}.family-names{display:flex;align-items:center;gap:12px;margin-top:20px;font-size:11px;font-weight:600;color:var(--teal)}.family-names i{color:var(--coral);font-style:normal}.tin-card{border-left:1px solid var(--line);padding-left:55px}.tin-heading{display:flex;justify-content:space-between;align-items:center}.tin-heading h3{font-size:23px}.tin-heading>span{font-size:11px;border:1px solid #d8ddcf;border-radius:20px;padding:3px 10px;color:var(--muted)}.tin-card>p{font-size:12px;color:var(--muted);margin-top:10px}.stamp-row{display:flex;gap:22px;margin:20px 0 16px}.stamp{width:70px;text-align:center;color:#9ba79c}.stamp-icon{margin:auto;width:54px;height:54px;display:grid;place-items:center;border:1px dashed #b9c3b7;border-radius:50%;font-size:25px;color:#a5b3a6}.stamp small{font-size:9px;display:block;margin-top:7px;letter-spacing:.03em}.stamp.earned .stamp-icon{background:#e9c98722;color:#b57044;border:2px double #b5704477;transform:rotate(-9deg)}.stamp.earned small{color:var(--teal)}.tin-card .storage-note{font-size:10px}.text-button{background:none;color:var(--teal);padding:0;font-size:11px;text-decoration:underline;text-underline-offset:3px}.tin-card .text-button{font-size:10px;color:var(--muted);margin-top:6px}.game-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:23px 0 27px;font-size:10px;letter-spacing:.03em;color:var(--muted)}
.play-view{max-width:1100px;margin:0 auto;padding:0 26px 22px}.play-topbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:5px 0 18px}.back-button{display:flex;align-items:center;gap:8px;background:transparent;color:var(--teal);font-size:12px;padding:10px 0}.back-button>span:first-child{font-size:20px}.play-game-name{text-align:center}.play-game-name h1{font-size:27px;margin-top:3px}.play-game-name .eyebrow{font-size:9px}.play-tools{display:flex;gap:8px}.play-tools .icon-button{height:34px;min-width:34px;padding:6px}.play-tools svg{width:18px;height:18px}.game-surface{border-radius:14px;overflow:hidden;background:var(--paper);box-shadow:0 8px 38px #18382e1a;border:1px solid #dfe0d3}.hud{background:var(--teal);color:#f7efd8;padding:12px 19px;display:flex;justify-content:space-between;align-items:center;gap:20px;min-height:47px;font-size:12px}.hud strong{font-size:11px;color:#efc16e;text-align:end}.stage{position:relative;display:flex;justify-content:center;background:#1a302c;touch-action:none;overflow:hidden}.stage canvas{display:block;width:100%;height:auto;max-height:calc(100dvh - 345px);min-height:220px;object-fit:contain;aspect-ratio:1000/650;cursor:crosshair;touch-action:none}.control-dock{padding:13px 20px 11px;background:#fffdf8;min-height:120px}.hud-tip{font-size:12px;color:#566858;text-align:center;min-height:19px}.game-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:center;margin-top:10px}.game-actions button{padding:10px 17px;min-height:42px;border-radius:7px;background:#e8ecdf;color:var(--teal);font-size:12px;font-weight:600;border:1px solid #dfe4d6}.game-actions button.primary{background:var(--teal);color:#fbf3db;border-color:var(--teal)}.game-actions button:hover:not(:disabled){filter:brightness(1.08)}.game-announcement{font-size:11px;text-align:center;color:#9b533a;min-height:17px;margin-top:8px}.play-footer{display:flex;justify-content:space-between;gap:20px;font-size:10px;color:var(--muted);padding:17px 2px}.paused-state,.load-state{position:absolute;inset:0;display:grid;place-items:center;background:#123d3cdd;backdrop-filter:blur(5px);color:var(--cream);z-index:5;text-align:center;padding:20px}.paused-state h2{font-size:36px;margin:10px 0 13px}.paused-state p{font-size:13px;margin-bottom:23px}.pause-symbol{font-family:var(--display);font-size:35px;color:var(--sun)}.load-state{align-content:center;gap:20px}.loader{width:32px;height:32px;border:2px solid #ffffff44;border-top-color:var(--sun);border-radius:50%;animation:spin 1s linear infinite;margin:auto}@keyframes spin{to{transform:rotate(360deg)}}.game-surface:fullscreen{background:var(--teal);display:flex;flex-direction:column;justify-content:center;max-width:none;border-radius:0}.game-surface:fullscreen .stage{flex:1;min-height:0}.game-surface:fullscreen canvas{width:auto;max-width:100%;height:100%;max-height:none;min-height:0}.game-surface:fullscreen .control-dock{flex-shrink:0}.game-surface:fullscreen .hud{flex-shrink:0}
.dialog{border:0;border-radius:18px;padding:0;background:var(--cream);color:var(--ink);max-width:520px;width:calc(100% - 34px);max-height:calc(100dvh - 40px);overflow:auto;box-shadow:0 24px 80px #0c282e44}.dialog::backdrop{background:#0c272bb3;backdrop-filter:blur(4px)}.dialog-content{padding:33px;position:relative}.dialog-close{position:absolute;right:15px;top:12px;font-size:26px;color:var(--muted);background:transparent;width:32px;height:32px;border-radius:50%}.dialog h2{font-size:33px;line-height:1.15;margin:10px 0 14px}.dialog p{font-size:13px;line-height:1.75;color:#617165}.dialog .eyebrow{color:#a86443;font-size:10px}.dialog ol{padding-inline-start:23px;font-size:13px;color:#506352;line-height:1.7;margin:18px 0 23px}.dialog li{margin-bottom:9px;padding-inline-start:5px}.dialog li::marker{color:#b16d42;font-weight:700}.dialog-buttons{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.dialog-buttons .button{flex:1;white-space:nowrap;min-width:140px}.info-location-image{height:140px;object-fit:cover;width:100%;border-radius:10px;margin:8px 0 16px}.info-tip{border-left:3px solid var(--sun);padding-inline-start:12px}.result-dialog{text-align:center}.result-dialog .dialog-content{padding-top:35px}.result-stamp{margin:16px auto 13px;border:2px double #b4753f77;border-radius:50%;width:68px;height:68px;font-size:35px;display:grid;place-items:center;color:#bd7545;background:#f0d9ab4d;transform:rotate(-12deg)}.result-score{margin:18px 0;display:flex;justify-content:center;gap:9px;align-items:baseline}.result-score strong{font-family:var(--display);font-size:38px;line-height:1;color:var(--teal)}.result-score span{font-size:11px;color:var(--muted)}.reflection{padding:17px;background:#e9eddf;border-radius:10px}.reflection .eyebrow{color:var(--teal-light);font-size:9px}.reflection p{font-size:12px;margin-top:6px}.reduced-motion *{animation:none!important;transition:none!important}body[dir=rtl],html[dir=rtl] body{font-family:Tahoma,Arial,sans-serif}html[dir=rtl] h1,html[dir=rtl] h2,html[dir=rtl] h3{font-family:Tahoma,Arial,sans-serif;letter-spacing:0}html[dir=rtl] .hero-copy{margin-inline-start:auto;text-align:right}html[dir=rtl] .hero-shade{background:linear-gradient(270deg,rgba(11,42,39,.95),rgba(12,44,40,.83) 27%,rgba(12,44,40,.26) 59%,rgba(12,44,40,.03)),linear-gradient(0deg,rgba(17,47,40,.6),transparent 35%)}html[dir=rtl] .hero-family{right:46%;left:40px}html[dir=rtl] .hero-postmark{right:auto;left:30px}html[dir=rtl] .hero-caption{right:auto;left:35px}html[dir=rtl] .tin-card{border-left:0;border-right:1px solid var(--line);padding-left:0;padding-right:55px}html[dir=rtl] .card-location{left:auto;right:19px}html[dir=rtl] .hero h1{font-size:59px}html[dir=rtl] .hero-description{font-size:16px}html[dir=rtl] .hero-play svg,html[dir=rtl] .card-bottom svg{transform:rotate(180deg)}html[dir=rtl] .back-button>span:first-child{transform:rotate(180deg)}
@media(min-width:1450px){.hero{height:580px}.hero-copy{padding-top:65px}.hero-family{right:60px}}@media(max-width:1439px){.hero,.home-body{margin-inline:38px}.site-header{padding-inline:38px}.family-panel{gap:20px}.family-panel-title{gap:10px}.segmented span{padding-inline:11px}}@media(max-width:1100px){.hero h1{font-size:65px}.hero-copy{padding:48px 40px}.hero{height:515px}.hero-family{left:48%;right:15px}.hero-family img{max-width:38%}.hero-postmark{width:80px;height:80px;right:20px}.hero-family .hero-melanie{left:61%;height:45%}.hero-description{max-width:310px;font-size:16px}.hero .eyebrow{font-size:8px}.hero-meta{font-size:10px}.family-panel{flex-wrap:wrap;justify-content:flex-start;gap:23px}.family-panel-title{flex:1;min-width:245px}.game-grid{gap:17px}.card-body{padding:18px}.card-body h3{font-size:23px}.card-description{max-width:100%}.small-note{display:none}.bottom-grid{gap:35px}.tin-card{padding-left:35px}.stage canvas{max-height:calc(100dvh - 345px)}}@media(max-width:760px){.site-header{height:77px;padding-inline:22px}.brand{font-size:16px;gap:9px}.brand small{font-size:7px;letter-spacing:.22em}.brand-mark{width:34px;height:39px}.header-tools{gap:8px}.header-tools .icon-button{width:34px;height:34px;min-width:34px;padding:7px}.hero,.home-body{margin-inline:20px}.hero{height:560px;border-radius:15px}.hero-copy{padding:29px;max-width:100%}.hero h1{font-size:59px}.arabic-title{font-size:22px;margin-top:16px}.hero-description{font-size:14px;line-height:1.65;max-width:285px;margin:17px 0}.hero-family{left:44%;right:14px;bottom:15px;top:180px;z-index:1}.hero-family .hero-dad{height:84%;left:0;max-width:42%}.hero-family .hero-mom{height:80%;left:45%;max-width:42%}.hero-family .hero-nicolas{height:66%;left:10%;max-width:45%}.hero-family .hero-melanie{height:52%;left:60%;max-width:40%}.hero-shade{background:linear-gradient(90deg,#0b2a27e6,#0b2a2799 49%,#0b2a271a),linear-gradient(0deg,#112f2866,transparent 35%)}.hero-postmark{display:none}.hero-play{margin-top:4px;padding:11px 18px;min-width:140px}.hero-caption{bottom:12px;right:20px;left:20px;font-size:9px;text-align:center}.hero-meta{max-width:170px;line-height:1.7}.home-body{padding-top:33px}.section-heading{margin-bottom:20px}.section-heading h2{font-size:28px}.game-grid{grid-template-columns:1fr;gap:15px}.game-card{display:grid;grid-template-columns:39% 1fr;border-radius:12px}.card-image{height:100%;min-height:210px}.card-image>img{object-position:44% center}.card-body{padding:18px}.card-body h3{font-size:24px;margin-bottom:9px}.card-description{font-size:12px;min-height:auto}.card-location{font-size:10px;left:12px;bottom:13px}.card-arabic{font-size:13px}.card-kicker{font-size:8px}.card-bottom{margin-top:15px;padding-top:11px}.family-panel{padding:22px;gap:19px;margin-top:23px}.family-panel-title{width:100%;flex:none}.segmented{flex:1}.segmented label{flex:1}.segmented span{text-align:center;padding-inline:12px}.family-panel-title h3{font-size:21px}.family-panel-title p{font-size:12px}.bottom-grid{grid-template-columns:1fr;gap:32px;margin:32px 0}.tin-card{border-left:0;border-top:1px solid var(--line);padding:27px 0 0}.story-card h3{font-size:25px}.story-card>p:not(.eyebrow){max-width:none}.stamp-row{gap:26px}.game-footer{gap:18px;align-items:flex-start}.game-footer>span{max-width:220px;font-size:9px}.game-footer .text-button{font-size:10px;white-space:nowrap}.play-view{padding:0 13px 15px}.play-topbar{margin:0 0 14px;gap:6px}.play-game-name h1{font-size:21px}.play-game-name .eyebrow{font-size:8px}.back-button{font-size:10px;gap:5px}.play-tools{gap:5px}.play-tools .icon-button{width:30px;height:30px;min-width:30px;font-size:17px}.stage canvas{min-height:0;max-height:none}.hud{font-size:10px;padding:10px 12px;gap:8px;min-height:42px}.hud strong{font-size:9px}.control-dock{padding:11px 12px;min-height:135px}.game-actions{gap:7px}.game-actions button{padding:10px 12px;min-height:44px;font-size:11px}.hud-tip{font-size:11px;min-height:33px}.game-announcement{font-size:10px;min-height:30px}.play-footer{font-size:9px;line-height:1.6;gap:15px}.play-footer span:last-child{max-width:120px;text-align:end}.paused-state h2{font-size:26px}.paused-state p{font-size:11px;margin-bottom:12px}.pause-symbol{font-size:22px}.paused-state .button{min-height:40px;padding:10px 16px;font-size:12px}.paused-state{padding:12px}.dialog-content{padding:28px}.dialog h2{font-size:28px}.dialog li{font-size:12px}.info-location-image{height:110px}html[dir=rtl] .hero-copy{padding:29px}html[dir=rtl] .hero h1{font-size:44px;white-space:normal;max-width:280px}html[dir=rtl] .hero-family{left:14px;right:44%}html[dir=rtl] .hero-description{font-size:14px;max-width:250px}html[dir=rtl] .tin-card{padding:27px 0 0;border-right:0}html[dir=rtl] .hero-caption{right:20px;left:20px}html[dir=rtl] .card-location{right:12px}}
@media(max-width:380px){.brand{font-size:14px}.hero h1{font-size:50px}.hero-copy{padding:25px 23px}.hero-description{max-width:245px}.hero-family{left:42%;top:230px}.game-card{grid-template-columns:34% 1fr}.card-body h3{font-size:21px}.card-body{padding:15px}.card-description{font-size:11px}.family-panel{padding:18px}.segmented span{padding-inline:9px}.play-view{padding-inline:8px}.play-game-name h1{font-size:18px}.back-button span:last-child{display:none}}@media(max-height:600px) and (min-width:761px){.site-header{height:65px}.play-topbar{margin-bottom:10px}.stage canvas{max-height:calc(100dvh - 260px)}.control-dock{min-height:92px;padding:8px 12px}.game-announcement{display:none}.game-actions{margin-top:6px}.game-actions button{min-height:36px;padding-block:7px}.play-footer{padding:8px 2px}.hud{min-height:35px;padding:7px 15px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
/* Readable interface text at both touch and desktop sizes. */
body{font-size:16px}.eyebrow{font-size:12px}.hero .eyebrow{font-size:11px}.hero-meta{font-size:13px}.small-note{font-size:14px}.card-kicker,.card-duration{font-size:12px}.card-description{font-size:14px}.card-bottom{font-size:12px}.card-location{font-size:14px}.family-panel-title p{font-size:14px}.segmented legend{font-size:12px}.segmented span{font-size:14px}.story-card>p:not(.eyebrow){font-size:16px}.family-names{font-size:14px}.tin-card>p{font-size:14px}.tin-card .storage-note,.tin-card .text-button{font-size:12px}.tin-heading>span{font-size:13px}.stamp small{font-size:12px}.game-footer,.game-footer .text-button{font-size:12px}.hud,.hud strong{font-size:14px}.hud-tip{font-size:14px}.game-actions button{font-size:14px;min-height:44px}.game-announcement{font-size:13px}.play-footer{font-size:12px}.back-button{font-size:14px}.dialog p,.dialog ol,.dialog li{font-size:15px}.dialog .eyebrow{font-size:12px}.reflection p{font-size:14px}.result-score span{font-size:14px}.hero-postmark span{white-space:pre-line}.live-dot{display:none}.hero-play svg,.card-bottom svg,.back-button>span:first-child{display:none}
@media(max-width:1100px){.family-panel{gap:22px}.family-panel-title{flex-basis:100%}.family-panel fieldset{flex:1}.segmented label{flex:1}.segmented span{text-align:center}.hero .eyebrow{font-size:10px}.hero-meta{font-size:12px}}
@media(max-width:760px){.hero-description{font-size:16px;max-width:285px}.hero-meta{font-size:12px;max-width:170px}.hero-family{top:226px}.hero h1{font-size:55px}.card-image{min-height:235px}.card-kicker,.card-duration{font-size:11px}.card-location{font-size:12px}.card-body h3{font-size:24px}.card-description{font-size:14px}.card-bottom{font-size:11px}.segmented legend{font-size:11px}.segmented span{font-size:13px}.family-panel-title p{font-size:14px}.back-button{font-size:12px}.play-game-name .eyebrow{font-size:11px}.play-game-name h1{font-size:21px}.hud,.hud strong{font-size:12px}.hud-tip{font-size:13px}.game-actions button{font-size:14px}.game-announcement{font-size:12px}.play-footer{font-size:11px}.dialog li{font-size:14px}.game-footer>span{font-size:12px}.game-footer .text-button{font-size:12px}.paused-state p{font-size:13px}.paused-state .button{font-size:14px}}
@media(max-width:380px){.hero h1{font-size:48px}.hero-description{font-size:15px;max-width:255px}.game-card{grid-template-columns:32% 1fr}.card-description{font-size:13px}.card-body h3{font-size:22px}.card-arabic{font-size:12px}.segmented span{font-size:12px}.back-button span:last-child{display:inline}.play-game-name h1{font-size:17px}}
html[dir=rtl] .hero-copy{margin-left:auto;margin-right:0}
html[dir=rtl] .arabic-title{visibility:hidden}
@media(max-width:760px){html[dir=rtl] .hero-copy{margin-left:0;margin-right:0}}
@media(max-width:760px){.hero h1{font-size:clamp(34px,10.2vw,55px);white-space:normal}.hero-meta{max-width:125px}.hero-caption{display:none}html[dir=rtl] .hero h1{font-size:clamp(33px,10vw,44px)}}

.card-best{margin-top:9px;font-size:12px;color:#9a5b3f;font-weight:600}

.pause-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
#restartButton { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px var(--cream); }
#restartButton:hover { background: #fffdf81a; }

.move-controls,
.active-actor {
  display: none;
}

.phone-round {
  background: var(--teal);
}

.phone-round .site-header,
.phone-round .play-footer,
.phone-round #fullscreenButton,
.phone-round .play-game-name .eyebrow {
  display: none;
}

.phone-round .play-view {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  padding: env(safe-area-inset-top) 0 0;
}

.phone-round .play-topbar {
  flex: none;
  gap: 6px;
  margin: 0;
  padding: 4px 8px;
  background: var(--cream);
}

.phone-round .play-game-name h1 {
  font-size: clamp(16px, 5vw, 22px);
  line-height: 1.15;
  margin: 0;
}

.phone-round .play-tools {
  gap: 4px;
}

.phone-round .play-topbar button,
.phone-round #pauseSettings button,
.phone-round #pauseSettings select {
  min-width: 48px;
  min-height: 48px;
}

.phone-round .back-button {
  justify-content: center;
  padding: 0;
}

.phone-round .back-button span:first-child {
  display: block;
  font-size: 25px;
}

.phone-round .back-button span:last-child {
  display: none;
}

.phone-round .game-surface {
  display: grid;
  flex: 1;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.phone-round .hud {
  justify-content: start;
  gap: 8px;
  min-height: 48px;
  padding: 4px 9px;
  font-size: 13px;
  line-height: 1.2;
}

.phone-round .hud strong {
  margin-inline-start: auto;
  flex-shrink: 0;
  font-size: 12px;
}

.phone-round [data-game="seven"] .hud strong {
  direction: ltr;
}

.phone-round .active-actor {
  display: flex;
  flex: none;
  align-items: center;
  gap: 5px;
  padding-inline-end: 7px;
  border: 1px solid #efc16e77;
  border-radius: 6px;
  background: #28544d;
  color: #fff3d5;
  font-weight: 700;
}

.active-actor img {
  width: 28px;
  height: 35px;
  padding: 2px;
  object-fit: contain;
}

.phone-round .stage {
  min-height: 0;
}

.phone-round .stage canvas {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  object-fit: fill;
}

.phone-round .control-dock {
  min-height: 0;
  padding: 8px 10px max(10px, env(safe-area-inset-bottom));
}

.phone-round .hud-tip {
  margin: 0;
  min-height: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
}

.phone-round .hud-tip:empty {
  display: none;
}

.phone-round .game-announcement {
  position: absolute;
  display: block;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

.phone-round .dock-controls:has(.move-controls:not([hidden])) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.phone-round .move-controls {
  display: grid;
  grid-template: repeat(2, 48px) / repeat(3, 48px);
  gap: 4px;
  direction: ltr;
}

.move-controls button {
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #305c56;
  border-radius: 9px;
  background: #e3ede4;
  color: #123d3c;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  touch-action: none;
  user-select: none;
}

.move-controls button[data-active] {
  background: var(--teal);
  color: var(--cream);
}

#move-up { grid-area: 1 / 2; }
#move-left { grid-area: 2 / 1; }
#move-down { grid-area: 2 / 2; }
#move-right { grid-area: 2 / 3; }

.phone-round .game-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  margin-top: 7px;
}

.phone-round [data-game="marbles"] .game-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  direction: ltr;
}

html[dir="rtl"] .phone-round [data-game="marbles"] .game-actions button {
  direction: rtl;
}

.phone-round [data-game="marbles"] .game-actions .primary {
  grid-column: 1 / -1;
}

.phone-round .game-actions:empty {
  display: none;
}

.phone-round .game-actions button {
  min-height: 48px;
  padding: 5px 7px;
  font-size: 14px;
  line-height: 1.15;
}

.phone-round .dock-controls:has(.move-controls:not([hidden])) .game-actions {
  margin-top: 0;
}

.phone-round .pause-symbol {
  display: none;
}

.phone-round .paused-state {
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.phone-round .paused-state h2 {
  margin: 0 0 6px;
}

.phone-round .pause-actions button {
  min-height: 48px;
}

.phone-round #pauseSettings .header-tools {
  justify-content: center;
  margin-top: 8px;
}

html[dir="rtl"] .phone-round .back-button span:first-child {
  transform: scaleX(-1);
}

@media (orientation: landscape) and (max-height: 540px) {
  .phone-round .game-surface {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .phone-round .hud {
    grid-column: 1 / -1;
  }

  .phone-round .control-dock {
    overflow: auto;
    overscroll-behavior: contain;
  }

  .phone-round .dock-controls:has(.move-controls:not([hidden])) {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 5px;
  }

  .phone-round .dock-controls:has(.move-controls:not([hidden])) .game-actions {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
