
@font-face{font-family:Tajawal;src:url(fonts/Tajawal-Regular.woff2) format('woff2');font-weight:400}
@font-face{font-family:Tajawal;src:url(fonts/Tajawal-Medium.woff2) format('woff2');font-weight:500}
@font-face{font-family:Tajawal;src:url(fonts/Tajawal-Bold.woff2) format('woff2');font-weight:700}
/* Acres brand: green #3E5C18 · forest #18230A · cream #F7F2D9 · leaf (light green) #7FA04A */
:root{--bg:#F6F4EF;--ink:#3E5C18;--ink2:#536143;--forest:#18230A;--mute:#86907A;--leaf:#7FA04A}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%;background:var(--bg);color:var(--ink);font-family:Tajawal,system-ui,sans-serif;overflow:hidden;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
/* owner 6 Dec: the pages slide right and left with the finger */
#stage{position:fixed;inset:0;overflow:hidden;touch-action:pan-y}
#track{display:flex;height:100%;will-change:transform;transition:transform .75s cubic-bezier(.22,.8,.24,1)}
#track.drag{transition:none}
.screen{position:relative;flex:0 0 100vw;width:100vw;height:100%;display:flex;align-items:center;align-content:center;justify-content:center;gap:5vw;padding:9vh 5vw 10vh}
/* owner 6 Dec: like the old tablet menu — the products sit on the page itself (cut-out photos, one background), no photo boxes */
.card{display:flex;flex-direction:column;align-items:center;text-align:center;flex:0 1 auto}
.ph{position:relative}
.ph img{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 1.2vmin 1.6vmin rgba(40,32,20,.10));transition:filter .5s,opacity .5s}
.n3{gap:4vw}
.n3 .ph{width:min(29vw,48vh);height:min(27vw,44vh)}
.ar{font-weight:700;line-height:1.15;margin-top:3.6vh;white-space:nowrap}
.en{font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--ink2);margin-top:.9vh;direction:ltr}
.n3 .ar{font-size:min(2.9vw,4.6vh)} .n3 .en{font-size:min(1.45vw,2.3vh)}
.meta{display:flex;align-items:baseline;justify-content:center;gap:1.4vw;margin-top:1.6vh;direction:ltr}
.price{display:flex;align-items:center;gap:.3em;font-weight:700;color:var(--ink)}
.cal{direction:ltr;color:var(--ink);font-weight:500;opacity:.8}
.price svg{height:.82em;width:auto;fill:currentColor}
.n3 .price{font-size:min(2.9vw,4.6vh)} .n3 .cal{font-size:min(1.3vw,2vh)}
/* two items: two rows, photo on the left and the name on the right (as on the old screens) */
.n2{flex-direction:column;gap:3vh;padding:6vh 8vw 8vh}
.n2 .card{flex-direction:row-reverse;width:100%;justify-content:space-between;align-items:center}
.n2 .ph{width:min(40vw,44vh);height:min(34vw,38vh)}
.n2 .ph img{object-position:center}
.n2 .txt{flex:1;display:flex;flex-direction:column;align-items:center}
.n2 .ar{font-size:min(4vw,6.2vh);margin-top:0} .n2 .en{font-size:min(1.7vw,2.6vh)}
.n2 .price{font-size:min(3.2vw,5vh)} .n2 .cal{font-size:min(1.5vw,2.3vh)}
/* one item: big photo, the name under it */
.n1 .ph{width:min(52vw,58vh);height:min(44vw,50vh)}
.n1 .ar{font-size:min(4.6vw,7vh)} .n1 .en{font-size:min(2.1vw,3.2vh)}
.n1 .price{font-size:min(3.8vw,5.8vh)} .n1 .cal{font-size:min(1.7vw,2.6vh)}
/* sold out — owner's sketches 5–6 Dec: a frame with cut corners, tilted, right over the product; see-through, frame and words in the brand light green */
.badge{position:absolute;top:50%;left:50%;width:78%;aspect-ratio:300/130;transform:translate(-50%,-50%) rotate(-24deg);display:none;pointer-events:none}
.badge svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.badge span{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--leaf);font-weight:700;line-height:1;white-space:nowrap;font-size:min(3.6vw,5.8vh);text-shadow:0 0 .35em rgba(246,244,239,.9),0 0 .12em rgba(246,244,239,.9)}
.badge small{font-size:.34em;font-weight:700;letter-spacing:.22em;margin-top:.35em;direction:ltr}
.n2 .badge span{font-size:min(3.4vw,5.2vh)}
.n1 .badge{width:70%}
.n1 .badge span{font-size:min(4.6vw,7.2vh)}
.n4 .badge span{font-size:min(2.8vw,4.4vh)}
.off .ph img{filter:saturate(.6) drop-shadow(0 1.2vmin 1.6vmin rgba(40,32,20,.08));opacity:.72}
.off .badge{display:block}
.off .ar,.off .en,.off .meta{opacity:.45}
.off .price{text-decoration:line-through;text-decoration-thickness:.08em}
/* chrome */
#logo{position:fixed;top:3vh;right:3vw;height:min(7vh,5vw);opacity:.9;z-index:5}
#dots{position:fixed;bottom:3.4vh;left:0;right:0;display:flex;justify-content:center;gap:1vw;z-index:5}
#dots i{width:1.1vmin;height:1.1vmin;border-radius:99px;background:var(--ink);opacity:.18;transition:all .5s}
#dots i.on{opacity:.75;width:3.2vmin}
#hint{position:fixed;bottom:3vh;left:3vw;font-size:1.6vh;color:var(--mute);opacity:0;transition:opacity .4s;z-index:5}
/* staff panel */
#panel{position:fixed;inset:0;background:rgba(20,30,22,.55);display:none;align-items:center;justify-content:center;z-index:20}
#panel.open{display:flex}
#panel .box{background:#fff;border-radius:2.4vmin;width:min(92vw,760px);max-height:88vh;overflow:auto;padding:22px 22px 16px}
#panel h2{font-size:22px;margin-bottom:4px}
#panel p{font-size:14px;color:var(--mute);margin-bottom:14px}
.row{display:flex;align-items:center;gap:14px;padding:10px 0;border-top:1px solid #eee}
.row img{width:52px;height:52px;border-radius:10px;object-fit:cover}
.row .t{flex:1;font-size:18px;font-weight:700}
.row .t small{display:block;font-size:13px;color:var(--mute);font-weight:500;direction:rtl;text-align:left}
.sw{width:64px;height:36px;border-radius:99px;background:#C9CFC6;position:relative;border:0;cursor:pointer;transition:background .2s;flex:none}
.sw::after{content:'';position:absolute;top:4px;left:4px;width:28px;height:28px;border-radius:99px;background:#fff;transition:left .2s;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.sw.on{background:#3E5C18}
.sw.on::after{left:32px}
.row .st{width:74px;font-size:13px;color:var(--mute);text-align:center}
#close{margin-top:14px;width:100%;padding:14px;border:0;border-radius:12px;background:var(--ink);color:#fff;font:700 18px Tajawal,sans-serif;cursor:pointer}

/* screens with a section title (the full menu) */
.stitle{position:absolute;top:3.4vh;left:0;right:0;text-align:center;display:flex;flex-direction:column;align-items:center;gap:.4vh}
.stitle b{font-size:min(3vw,4.6vh);font-weight:700;color:var(--ink)}
.stitle span{font-size:min(1.2vw,1.9vh);letter-spacing:.2em;text-transform:uppercase;color:var(--mute);direction:ltr}
.titled{padding-top:15vh}
.snote{position:absolute;bottom:8.5vh;left:0;right:0;text-align:center;font-size:min(1.7vw,2.6vh);color:var(--ink2);font-weight:500}
.snote b{color:var(--forest)}
/* four in a row */
.n4{gap:2.6vw}
.n4 .ph{width:min(22vw,40vh);height:min(30vw,46vh)}
.n4 .ar{font-size:min(2.3vw,3.8vh);margin-top:3vh} .n4 .en{font-size:min(1.15vw,1.9vh)}
.n4 .price{font-size:min(2.4vw,3.9vh)} .n4 .cal{font-size:min(1.1vw,1.8vh)}

/* full menu (owner 6 Dec): every drink picture is on the same canvas at the same scale (one cup type = one size), so they are drawn in one box size on every screen */
.cup .ph{width:min(21vw,42vh);height:auto;aspect-ratio:540/530}
.cup .ph img{object-fit:contain;object-position:center bottom}
.boxset .ph{width:min(22.5vw,40vh);height:auto;aspect-ratio:760/700}
.boxset .ph img{object-fit:contain;object-position:center bottom}

/* settings panel (v1.6) */
#panel .top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
#sync{border:0;border-radius:10px;background:var(--leaf);color:#fff;font:700 15px Tajawal,sans-serif;padding:10px 16px;cursor:pointer}
#sync:disabled{opacity:.6}
#panel h3{font-size:14px;color:var(--mute);font-weight:700;margin:14px 0 8px;text-transform:uppercase;letter-spacing:.06em}
.chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.chip{border:1.5px solid #D6DCCF;background:#fff;color:var(--ink);border-radius:99px;padding:8px 14px;font:700 14px Tajawal,sans-serif;cursor:pointer}
.chip.on{background:var(--ink);border-color:var(--ink);color:#fff}
.chip.preset{border-style:dashed;color:var(--ink2)}
.chips .sep{width:100%;height:0}
.grp{font-size:13px;font-weight:700;color:var(--leaf);margin:12px 0 2px;text-transform:uppercase;letter-spacing:.06em}
