/* Two players + tablet (js/20-net.js, js/24-net-ui.js): the font kept in fonts/ (no network needed), touch manners,
   the fullscreen button, the «أختكِ في …» badge. */

/* Baloo Bhaijaan 2 (SIL OFL), variable weight 400-800, the two subsets the game uses */
@font-face{
  font-family:"Baloo Bhaijaan 2"; font-style:normal; font-weight:400 800; font-display:swap;
  src:url(fonts/baloo-bhaijaan-2-arabic.woff2) format("woff2");
  unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face{
  font-family:"Baloo Bhaijaan 2"; font-style:normal; font-weight:400 800; font-display:swap;
  src:url(fonts/baloo-bhaijaan-2-latin.woff2) format("woff2");
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* a tablet in small hands: no pull-to-refresh, no rubber band, no pinch or double-tap zoom, no long-press menu or selection */
html,body{overscroll-behavior:none; touch-action:pan-x pan-y;}
body{-webkit-touch-callout:none;}
button{touch-action:manipulation; -webkit-user-select:none; user-select:none; -webkit-touch-callout:none;}
button svg{pointer-events:none;}
.screen{overscroll-behavior:contain;}

/* her sister is somewhere else: a pill at the screen edge, on the side where she is */
#sisBadge{
  position:fixed; top:57%; z-index:5; pointer-events:auto; cursor:pointer; white-space:nowrap; max-width:76vw;
  display:flex; align-items:center; gap:8px; padding:6px 12px 5px 8px;
  font:inherit; font-size:18px; font-weight:800; line-height:1.2; color:var(--ink);
  background:var(--paper); border:3px solid var(--petal); border-radius:20px; box-shadow:0 4px 0 var(--petal-deep);
}
#sisBadge.l{left:max(14px, env(safe-area-inset-left,0px));}
#sisBadge.r{right:max(14px, env(safe-area-inset-right,0px));}
#sisBadge:active{transform:translateY(3px); box-shadow:0 1px 0 var(--petal-deep);}
#sisBadge svg{width:22px; height:22px; flex:none;}
#sisBadge .sgo{flex:none; font-size:15px; color:#fff; background:var(--petal-deep); border-radius:12px; padding:4px 10px 2px;}
@media (max-width:640px){ #sisBadge{font-size:15px; top:52%;} #sisBadge .sgo{font-size:13px;} }

/* the map: who is where (js/24-net-ui.js) */
#mapSis{display:grid; gap:8px; margin:0 0 10px;}
#mapSis[hidden], #mapSis [hidden]{display:none;}
.sgobtn{
  font:inherit; cursor:pointer; color:var(--ink); text-align:right; display:flex; align-items:center; gap:12px; padding:8px 14px;
  background:#fff0f6; border:3px solid var(--petal); border-radius:20px; box-shadow:0 5px 0 var(--petal-deep);
}
.sgobtn:active{transform:translateY(3px); box-shadow:0 2px 0 var(--petal-deep);}
.sgobtn .av{flex:none; width:34px; height:40px;}
.sgobtn .gt{flex:1; min-width:0;}
.sgobtn b{display:block; font-size:21px; line-height:1.2;}
.sgobtn small{display:block; font-size:15px; font-weight:700; color:var(--petal-deep);}
.sgobtn .sgo{flex:none; font-size:16px; font-weight:800; color:#fff; background:var(--petal-deep); border-radius:14px; padding:5px 12px 2px;}
#mapSis .snote{font-size:16px; font-weight:700; text-align:center; color:var(--leaf-deep); background:#f3faf3; border-radius:14px; padding:5px 10px 2px;}
.place .who{display:flex; flex-wrap:wrap; gap:6px; margin-inline-start:auto; justify-content:flex-end;}
.place .who:empty{display:none;}
.who .chip{display:inline-flex; align-items:center; gap:4px; padding:2px 10px 0 8px; font-size:15px; font-weight:800; border-radius:999px; background:#fff0f6; border:2px solid var(--petal); color:var(--petal-deep);}
.who .chip.me{background:#eefaf0; border-color:var(--mint); color:var(--leaf-deep);}
.who .chip i{font-style:normal;}
.who .chip .av{flex:none;}
#mapLook{margin:6px auto 0;}
#lookScreen.live #modeField, #lookScreen.live #playBtn{display:none;}
body.toddler .place .who{justify-content:center; margin:0; width:100%;}
body.toddler #mapSis .sgobtn b{font-size:20px;}
