/* games.css - the games' own part of the shared look (v148, G1; games_look_handover v006 sections 4 to 6, sizes v001).
   Loaded after look.css, only by an app whose look has the part "games" (split.py). Sizes are the phone board's px times
   --uh on Home and the game card (the shared look's rule). */
@import url(cards/cards_games_moving_v001.css);
@import url(rabbits_talk_v001.css);

/* the game card: "?" at the top right; who she plays and the level, word over five dots; the choices button */
#lookcard .lk-head .lk-ask{margin-left:auto}
#lookcard .lk-set{display:flex;align-items:center;gap:calc(26px * var(--uh));font-weight:700;font-size:calc(15px * var(--uh));line-height:1.25}
#lookcard .lk-set[hidden]{display:none}
#lookcard .lk-who{display:flex;align-items:center;gap:calc(10px * var(--uh))}
#lookcard .lk-who svg{width:calc(24px * var(--uh));height:calc(24px * var(--uh));flex:0 0 auto}
#lookcard .lk-lv{display:flex;flex-direction:column;align-items:center;gap:calc(3px * var(--uh))}
#lookcard .lk-lv.dim{opacity:.4}
#lookcard .lk-lv .lk-dots{gap:calc(3px * var(--uh))}
#lookcard .lk-lv .lk-dots i{width:calc(9px * var(--uh));height:calc(9px * var(--uh));border-width:calc(1.6px * var(--uh))}
#lookcard .lk-choices{width:calc(56px * var(--uh));height:calc(56px * var(--uh))}
#lookcard .cog[hidden]{display:none}

/* in the game (v129's screen until G2): the arrow and the choices button drawn in the shared icons */
html.look-games #play .topbar #playhome svg.icon,html.look-games #play .topbar #playcog svg.icon{fill:none;stroke:currentColor}


/* How to play (section 5): v129's explain card in the shared look - over the card or the game on the screen dimmed, paper with
   the ink border and lip, 0.92 of the width; the game's name as its title (v129's); its rules list scrolls with v129's fade and
   down arrow. The card above it already says what you do, so the card's lead and its "in settings" line are not repeated. */
html.look-games #tell{background:rgba(42,30,30,.45);background-image:none}
html.look-games #tell .tellpanel{width:calc(100vw * .92);height:calc(100dvh - 20px * var(--u));background:var(--ui-paper);color:var(--ui-ink);font-family:var(--ui-font);
  border:calc(3px * var(--u)) solid var(--ui-ink);border-radius:calc(20px * var(--u));box-shadow:0 calc(5px * var(--u)) 0 var(--ui-ink);padding:calc(16px * var(--u)) calc(20px * var(--u)) calc(14px * var(--u));overflow:hidden}
html.look-games #tell .tellpanel::after,html.look-games #tell .tellnum,html.look-games #tell .tellmark,html.look-games #tell #telllead,html.look-games #tell #tellset,html.look-games #tell #tellsure{display:none}
html.look-games #tell .telltitle{margin:calc(4px * var(--u)) 0 0;font-family:var(--ui-font);font-weight:900;font-size:calc(20px * var(--u));line-height:1.3;padding-right:calc(130px * var(--u))}
html.look-games #tell .telltitle span::after{display:none}
html.look-games #tell .tellbody{width:auto;margin-top:calc(8px * var(--u));font-size:calc(15px * var(--u));font-weight:700}
html.look-games #tell .ckrhead{font-weight:700;margin:0 0 calc(8px * var(--u))}
html.look-games #tell .ckdiag{border:calc(2px * var(--u)) solid var(--ui-ink);border-radius:calc(8px * var(--u));box-shadow:none;box-sizing:border-box}
html.look-games #tell .tellx,html.look-games #tell .tellsay,html.look-games #tell .tellmore:not([hidden]){box-sizing:border-box;width:calc(48px * var(--u));height:calc(48px * var(--u));padding:0;display:flex;align-items:center;justify-content:center;
  background:var(--ui-paper);color:var(--ui-ink);border:calc(3px * var(--u)) solid var(--ui-ink);border-radius:calc(16px * var(--u));box-shadow:0 calc(5px * var(--u)) 0 var(--ui-ink);font-size:0}
html.look-games #tell .tellx{top:calc(14px * var(--u));right:calc(18px * var(--u))}
html.look-games #tell .tellsay{top:calc(14px * var(--u));bottom:auto;right:calc(78px * var(--u))}
html.look-games #tell .tellmore{background:#fff}
html.look-games #tell .tellx svg,html.look-games #tell .tellsay svg{width:calc(24px * var(--u));height:calc(24px * var(--u))}
html.look-games #tell .tellx:active,html.look-games #tell .tellsay:active{transform:translateY(calc(5px * var(--u)));box-shadow:none;background:var(--ui-press)}
html.look-games #tell .ckrgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
html.look-games #tell .ckrules{max-height:none}

/* ---- v149, G2: the game screens (games_look_handover v006, sections 4 and 5; sizes v001). Spec v005's sizes (--gs-*) stay;
   the look is the shared one: her ground, ink and paper, buttons with an ink border and lip. ---- */
html.look-games #play.boardgame{background-color:var(--look-g);color:var(--ui-ink);font-family:var(--ui-font);
  background-image:radial-gradient(circle at 104% -12%,var(--look-g2) 0 calc(170px * var(--uh)),transparent calc(170px * var(--uh) + 1px)),
                   radial-gradient(circle at -6% 112%,var(--look-g2) 0 calc(230px * var(--uh)),transparent calc(230px * var(--uh) + 1px))}
/* the board: one ink frame, c = 8 all round, its corner 14 nb / 48, its lip below; the board inside is v129's, never scaled */
html.look-games #play.boardgame #qcard,html.look-games #play.boardgame #qcard.fiq{box-sizing:border-box;background:var(--ui-ink);border:0;padding:8px;
  border-radius:calc(var(--gs-nb) * 14 / 48);box-shadow:0 max(4px, calc(var(--gs-nb) * .09)) 0 var(--ui-ink)}
/* the column: pinned right, from the margin at the top to the margin at the bottom, the same in every game */
html.look-games #play.boardgame .topbar{top:var(--gs-coltop)}
html.look-games #play.boardgame #pad{top:var(--gs-coltop);height:var(--gs-colh)}
html.look-games #play.boardgame .topbar .cog:not(.playcol){box-sizing:border-box;padding:0;display:flex;align-items:center;justify-content:center;background:var(--ui-paper);color:var(--ui-ink);
  border:3px solid var(--ui-ink);border-radius:calc(var(--gs-nb) / 3);box-shadow:0 var(--gs-lipa) 0 var(--ui-ink)}
html.look-games #play.boardgame .topbar .cog:not(.playcol):active{transform:translateY(var(--gs-lipa));box-shadow:none;background:var(--ui-press)}
html.look-games #play.boardgame .topbar .cog svg{width:50%;height:50%}
html.look-games #play.boardgame .topbar #playfs svg{fill:none;stroke:currentColor}
html.look-games #play.boardgame .topbar .playcol{border:3px solid var(--ui-ink);box-shadow:inset 0 0 0 max(3px, calc(var(--gs-nb) * .07)) var(--pc-bd), 0 var(--gs-lipa) 0 var(--ui-ink)}
/* the words: status 900, score 700, ink on her ground */
html.look-games #play.boardgame #pad .ckstatus{font-family:var(--ui-font);font-weight:900;color:var(--ui-ink);text-align:center}
html.look-games #play.boardgame #pad .bgscore{font-family:var(--ui-font);font-weight:700;color:var(--ui-ink)}
/* status, score, Venus and her line, then checkers' and chess's counter (UX-Q83 A): the same rows in every game */
html.look-games #play.boardgame #pad.coached .gsscore{grid-row:2 !important}   /* v129 writes it inline (gsColumn) */
html.look-games #play.boardgame #pad.coached .gscoach{grid-row:3 !important}
html.look-games #play.boardgame #pad.coached .cktaken{grid-row:4;justify-self:center;margin-top:calc(var(--gs-fc) * 1.2)}
/* Venus, 4 fc high, at the left of her line; her line in a paper bubble pointing at her */
html.look-games #play.boardgame #pad .bgcoach{align-items:center;gap:calc(var(--gs-fc) * .55)}
/* she is 4 fc high, and her line is centred on her whatever its length; the row reaches 1.2 fc less far down than she does, so
   the actions below keep their place (sizes v001: Venus 128 to 184 and Roll from 183 on the phone board) */
html.look-games #play.boardgame #pad .bgcoach{height:calc(var(--gs-fc) * 4);margin:calc(var(--gs-fc) * -.2) 0 calc(var(--gs-fc) * -1.2)}
html.look-games #play.boardgame #pad .bgface.lk-venus{width:calc(var(--gs-fc) * 4 * 13 / 14);height:calc(var(--gs-fc) * 4);border-radius:0;background:none}
html.look-games #play.boardgame #pad .bgface.lk-venus svg{display:block;width:100%;height:100%;overflow:visible}
html.look-games #play.boardgame #pad .bgcoach.talking .bgface::after{display:none}
html.look-games #play.boardgame #pad .bgsay{position:relative;background:var(--ui-paper);color:var(--ui-ink);font-family:var(--ui-font);font-weight:700;
  border:2px solid var(--ui-ink);border-radius:calc(var(--gs-fc) * .5)}
html.look-games #play.boardgame #pad .bgsay::before{content:"";position:absolute;left:calc(var(--gs-fc) * -.55);top:50%;transform:translateY(-50%);
  border:calc(var(--gs-fc) * .45) solid transparent;border-right:calc(var(--gs-fc) * .55) solid var(--ui-ink);border-left:0}
html.look-games #play.boardgame #pad .bgcoach.off .bgsay{visibility:hidden}
html.look-games #play.boardgame #pad .bgcoach.off{visibility:visible}
/* the counter: a paper pill with an ink border */
html.look-games #play.boardgame #pad .cktaken{background:var(--ui-paper);color:var(--ui-ink);border:2px solid var(--ui-ink);border-radius:calc(var(--gs-fc) * .6);
  padding:calc(var(--gs-fc) * .2) calc(var(--gs-fc) * .6);font-family:var(--ui-font);font-weight:900;width:max-content}
/* the actions: paper buttons with an ink border and lip; Teach me yellow, New game green; a button that cannot be used is dimmed */
html.look-games #play.boardgame #pad .ckbtn{box-sizing:border-box;background:var(--ui-paper);color:var(--ui-ink);font-family:var(--ui-font);font-weight:900;
  border:3px solid var(--ui-ink);border-radius:calc(var(--gs-ab) / 4);box-shadow:0 var(--gs-lipa) 0 var(--ui-ink)}
html.look-games #play.boardgame #pad .ckbtn:active:not(:disabled){transform:translateY(var(--gs-lipa));box-shadow:none;background:var(--ui-press)}
html.look-games #play.boardgame #pad .ckbtn.k-ok,html.look-games #play.boardgame #pad #bgnew,html.look-games #play.boardgame #pad #finew{background:var(--ui-go);color:var(--ui-ink)}
html.look-games #play.boardgame #pad .bgteach,html.look-games #play.boardgame #pad .gsteach{background:var(--ui-chosen);color:var(--ui-ink);box-shadow:0 var(--gs-lipa) 0 var(--ui-ink)}
/* Teach me: yellow when on (v129's meaning, the boards draw it on); off, a paper button like the others */
html.look-games #play.boardgame #pad .bgteach[aria-pressed="false"],html.look-games #play.boardgame #pad .gsteach[aria-pressed="false"]{background:var(--ui-paper)}
html.look-games #play.boardgame #pad .bgroll{background:var(--ui-paper);color:var(--ui-ink);box-shadow:0 var(--gs-lipa) 0 var(--ui-ink)}
html.look-games #play.boardgame #pad .ckbtn:disabled,html.look-games #play.boardgame #pad .bgroll:disabled{opacity:.4}
/* the score badge on the board: a pill, her win yellow */
html.look-games .gsbadge span{font-family:var(--ui-font);font-weight:900;color:var(--ui-ink);background:var(--ui-paper);border:3px solid var(--ui-ink);box-shadow:0 4px 0 var(--ui-ink)}
html.look-games .gsbadge.hers span{background:var(--ui-chosen)}
/* the new-game question: a sheet in the shared look */
html.look-games .setask{background:rgba(42,30,30,.45)}
html.look-games .setask .setaskcard{background:var(--ui-paper);color:var(--ui-ink);font-family:var(--ui-font);border:3px solid var(--ui-ink);border-radius:calc(20px * var(--u));
  box-shadow:0 calc(5px * var(--u)) 0 var(--ui-ink);padding:calc(18px * var(--u)) calc(22px * var(--u))}
html.look-games .setask .setaskcard p{font-weight:900;font-size:calc(19px * var(--u))}
html.look-games .setask .setaskbtns .btn{box-sizing:border-box;min-height:calc(52px * var(--u));background:var(--ui-paper);color:var(--ui-ink);font-family:var(--ui-font);font-weight:900;
  font-size:calc(17px * var(--u));border:3px solid var(--ui-ink);border-radius:calc(16px * var(--u));box-shadow:0 calc(5px * var(--u)) 0 var(--ui-ink)}
html.look-games .setask .setaskbtns .btn.k-ok{background:var(--ui-go)}
/* Four in a row's plate is the board's own colour, inside the ink frame (v129 painted it on the card round the board) */
html.look-games #play.boardgame #qcard.fiq .fihost{background:var(--fi-plate);border-radius:calc(var(--gs-nb) * 6 / 48)}
html.look-games #play.boardgame .topbar .playcol{border-radius:calc(var(--gs-nb) / 3)}

/* ---- v150, G3: My games on Me, What I did (section 5) ---- */
html.look-games #lookme .lm-games .lm-newpic img{display:block;width:100%;height:auto;max-height:100%;aspect-ratio:4 / 3;object-fit:cover;border:calc(3px * var(--u)) solid var(--ui-ink);border-radius:calc(8px * var(--u));box-sizing:border-box}
html.look-games #lookdid .ld-gm{display:block;box-sizing:border-box;width:calc(20px * var(--u));height:calc(20px * var(--u));border-radius:50%;background:#fff;border:calc(2px * var(--u)) solid var(--ui-ink)}
html.look-games #lookdid .ld-gm.won{border:0;border-radius:0;background:none;width:calc(24px * var(--u));height:calc(24px * var(--u))}
html.look-games #lookdid .ld-gm.won svg{display:block;width:100%;height:100%}
html.look-games #lookdid .ld-best{display:flex;align-items:center;gap:calc(6px * var(--u));font-style:normal;font-weight:700;font-size:calc(13px * var(--u));color:var(--ui-ink)}
/* the dots are a span inside the row's text span, and look.css lays every span in that row as a column: keep them a line */
html.look-games #lookdid .ld-best .lk-dots{display:inline-flex;flex-direction:row}
