/* NoWayOut Vienna · the combined design · home.css
   The first screen of the homepage, in the order the owner approved:
   bar · rolling line · photograph with the small h1 and the struck headline · one line · day and players ·
   "Available today" and the price · the board · one red button · the review line.
   Needs base.css. The sections below the first screen add their own rules after the marked line at the end of this file. */

/* ---------- the black first sheet: the photograph, and the headline set across its lower edge ---------- */
.first__ink{position:relative;background:var(--ink);color:var(--white)}
.first__ink :focus-visible{outline-color:var(--white)}
/* the photograph takes what the window leaves: at 390 x 664 it is 164 px high, at 390 x 844 it grows until the review line still fits */
.first__photo{position:relative;height:clamp(max(60px,164px - var(--consent-h) - var(--roll-x)),calc(100vh - 606px - var(--consent-h) - var(--roll-x)),calc(300px - var(--roll-x)));height:clamp(max(60px,164px - var(--consent-h) - var(--roll-x)),calc(100svh - 606px - var(--consent-h) - var(--roll-x)),calc(300px - var(--roll-x)));overflow:hidden;background:var(--ink)}
/* (--roll-x is 0 px for everyone but a visitor who asks for less motion: there the still rolling line takes more than one row,
   and the photograph is lower by as much, at its tallest too, here and in the rules below: the slots and the red button stand
   where they stand for everyone else) */
/* a first visit: the low cookie strip stands at the foot of the window (base.css 15b; --consent-h is 0 px without it). The
   photograph gives way by the strip's height and no more (at 390 x 664: 108 px for 164), so that the board and the red button
   stand above the strip as they stand above the foot of the window without it. */
.first__photo img{width:100%;height:100%;object-fit:cover;object-position:50% 22%}
.first__h1{position:absolute;left:0;top:0;z-index:2;margin:0}
.first__lang{position:absolute;right:0;top:0;z-index:2}
.first__lang:active{background:var(--white);color:var(--ink)}
.first__line{position:relative;z-index:2;margin:-21px var(--pad) 0;height:46px;display:flex;align-items:flex-end;pointer-events:none}
/* the headline keeps the spacing of its letters as the owner approved it (the other fitted lines stand at 0 since the finish) */
.first__line .fit__l{flex:none;width:100%;letter-spacing:-.01em;font-size:min(calc(100cqi / var(--w) * .995),4.25rem)}
.first__where{margin:0 var(--pad);padding:6px 0 10px;font-size:var(--fs-note);line-height:1.2;font-weight:600;color:var(--white)}
/* the strike of the first screen: a little heavier than in running headings, it carries the idea */
.first__line .x__s{height:.3em;top:.21em}
.first__line .x--k .x__s{height:.3em;top:.23em}
/* variant b strikes a whole word (SOMEDAY): a thinner stroke, so that the word can still be read */
.first__line [data-v=b] .x__s{height:.17em;top:.3em;left:-5%;width:109%;transform:rotate(-1.2deg)}

/* ---------- paper: the two fields, the board, the button, the review line ---------- */
.first__paper{background:var(--paper);padding:8px var(--pad) 0}
.first__pair{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:6px}

.board{margin-top:7px}
.board__head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:0 10px;min-height:28px;padding-bottom:5px;border-bottom:var(--rule) solid var(--ink)}
.board__skip{flex:0 0 100%;padding:3px 0 8px}
.board__skip .flag{font-size:var(--fs-text)}
/* while the times load: the price is a block of its final size */
.board[aria-busy] .board__price b{display:inline-block;min-width:78px;background:var(--paper-2);color:transparent}
.board__lab{flex:1 1 0;min-width:0;color:var(--ink);padding-bottom:1px;text-wrap:balance}
.board__price{flex:none;display:flex;align-items:baseline;gap:6px;font-size:var(--fs-note);line-height:1;font-weight:600;color:var(--ink-2);white-space:nowrap}
.board__price b{color:var(--ink);font-family:var(--ff-poster);font-weight:800;font-stretch:75%;font-size:var(--fs-btn);line-height:.9;letter-spacing:0}
.board__price .flag{align-self:center;margin-right:2px}
.board__row{display:grid;grid-template-columns:150px minmax(0,1fr);column-gap:6px;align-items:center;min-height:46px;border-bottom:1px solid var(--hair)}
.board__row:last-child{border-bottom:0}
.board__room{display:flex;align-items:center;gap:8px;min-height:var(--tap);min-width:0;text-decoration:none}
.board__pic{position:relative;flex:none;width:40px;height:40px;background:var(--ink)}
.board__pic img{width:100%;height:100%;object-fit:cover}
.board__age{position:absolute;right:0;bottom:0;min-width:26px;height:17px;background:var(--ink);color:var(--white);box-shadow:none}
.board__name{min-width:0;font-family:var(--ff-poster);font-weight:800;font-stretch:75%;font-size:var(--fs-text);line-height:.98;letter-spacing:.01em;text-transform:uppercase}
.board__genre{display:none}
.board__times{align-self:center}
.board .chip--next small,.board .chip--count small{padding-top:1px}
.board__fail{margin:8px 0 2px}
.board.is-failed .board__times{visibility:hidden}
.board.is-failed .board__head{display:none}      /* slots that could not be loaded: no "Available today" and no dash for a price above the note (as on the room page) */
/* without script no slot and no price can be shown: the rows keep picture and name (they lead to the rooms), a note says how to book */
html.no-js .board__times,html.no-js .board__head{display:none}      /* the head goes whole: "Available today" above "the slots cannot be shown" said two things */

/* the one red button: in the flow of the page where the window is tall enough, at the foot of the window where it is not (no second button, no jump) */
.first__go{position:sticky;bottom:var(--consent-h);z-index:6;margin:0 calc(-1*var(--pad));padding:0 var(--pad) calc(8px + env(safe-area-inset-bottom));background:var(--paper)}
.first__go::before{content:"";display:block;border-top:var(--rule) solid var(--ink);margin-bottom:8px}
.first__proof{padding:3px 0 15px;font-size:var(--fs-note);line-height:1.35;color:var(--ink-2);text-wrap:pretty}
.first__proof b{color:var(--ink);font-weight:700;white-space:nowrap}

/* ---------- narrow phones ---------- */
@media (max-width:374px){
  .board__row{grid-template-columns:132px minmax(0,1fr)}
  .board__pic{width:36px;height:36px}
  .board__name{font-size:1rem}
}
@media (max-width:345px){
  /* "4 players" has to stand whole in its field (base.css sets the words of a field one size down at this width) */
  .first__pair{grid-template-columns:minmax(0,7fr) minmax(0,6fr)}
}

/* ---------- from 600 px: the same order, more air ---------- */
@media (min-width:600px){
  .first__photo,html.consent-open .first__photo{height:clamp(max(180px,240px - var(--roll-x)),calc(100vh - 620px - var(--consent-h) - var(--roll-x)),calc(420px - var(--roll-x)));height:clamp(max(180px,240px - var(--roll-x)),calc(100svh - 620px - var(--consent-h) - var(--roll-x)),calc(420px - var(--roll-x)))}
  /* a first visit in a low window (a tablet with its bars showing): the photograph may be 180 px, so that the red button still ends above the cookie strip */
  html.consent-open .first__photo{height:clamp(max(150px,180px - var(--roll-x)),calc(100vh - 620px - var(--consent-h) - var(--roll-x)),calc(420px - var(--roll-x)));height:clamp(max(150px,180px - var(--roll-x)),calc(100svh - 620px - var(--consent-h) - var(--roll-x)),calc(420px - var(--roll-x)))}
  .first__line{margin-top:-30px;height:66px}
  .first__line .fit__l{font-size:min(calc(100cqi / var(--w) * .995),6rem)}
  .first__where{font-size:var(--fs-text);padding:10px 0 16px}
  .first__paper{padding-top:16px}
  .first__pair{grid-template-columns:minmax(0,260px) minmax(0,200px)}
  .board__row{grid-template-columns:220px minmax(0,1fr);min-height:52px}
  .board__name{font-size:var(--fs-chip)}
  .first__go{position:static;margin:0;padding:0 0 4px;background:none}
  .first__go .btn{display:inline-flex;width:auto;min-width:320px}
  .first__proof{padding:8px 0 24px}
}

/* ---------- from 900 px: the black sheet holds the headline on two lines beside the photograph, which runs to the right
   edge of the window and under the last letters of the headline; the board below shows every time of the day in one line ---------- */
@media (min-width:900px){
  .first__ink{--ink-h:clamp(300px,calc(100vh - 540px - var(--consent-h)),470px);display:grid;grid-template-columns:max-content minmax(0,1fr);grid-template-rows:auto 1fr auto;column-gap:0;padding-left:var(--edge);height:var(--ink-h)}
  .first__photo,html.consent-open .first__photo{grid-column:2;grid-row:1/4;height:100%;margin-left:-3.4vw}
  .first__photo img{object-position:50% 26%}
  .first__h1{position:static;grid-column:1;grid-row:1;justify-self:start;align-self:start;padding:20px 0 0;background:none;color:var(--on-ink-3)}
  .first__lang{right:var(--edge)}
  .first__line{grid-column:1;grid-row:2;align-self:center;display:block;height:auto;margin:0 0 0 -.3vw;container-type:normal}
  .first__line .fit__l{white-space:normal;line-height:1;width:auto;
    font-size:min(calc((var(--ink-h) - 104px) / 1.76),calc(45vw / max(var(--wa,3.1),var(--wb,3.1))))}
  .first__line .fit__a,.first__line .fit__b{display:block;white-space:nowrap;line-height:.86}
  html[lang=de] .first__line .fit__b{margin-top:.06em}
  .first__where{grid-column:1;grid-row:3;margin:0;padding:0 0 20px;font-size:var(--fs-text)}

  .first__paper{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:var(--gap);align-items:center;padding:20px var(--edge) 0}
  .first__pair{grid-column:1;grid-row:1;grid-template-columns:260px 200px;gap:8px}
  .first__pair .field{min-height:52px}
  .first__go{grid-column:2;grid-row:1;padding:0}
  .first__go::before{display:none}
  .first__go .btn{min-width:300px;min-height:52px}
  .board{grid-column:1/-1;grid-row:2;margin-top:12px}
  .board__head{min-height:34px;padding-bottom:7px}
  .board__price b{font-size:var(--fs-time)}
  .board__row{grid-template-columns:minmax(260px,26%) minmax(0,1fr);column-gap:var(--gap);min-height:50px}
  .board__room{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;row-gap:1px;align-content:center}
  .board__pic{grid-row:1/3;width:42px;height:42px}
  .board__name{align-self:end;font-size:var(--fs-chip);line-height:1.12;white-space:nowrap}
  .board__genre{display:block;align-self:start;font-size:var(--fs-lab);line-height:1.2;font-weight:600;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .board__times{margin-right:0;padding-right:0}
  .first__proof{grid-column:1/-1;grid-row:3;padding:11px 0 24px;font-size:var(--fs-text);border-top:var(--rule) solid var(--ink)}
}
@media (min-width:900px) and (max-height:820px){
  .board__row{min-height:46px}
  .board__pic{width:38px;height:38px}
}

/* ---------- below the first screen: the next builder's rules start here ---------- */
/* below:css:start */
/* below:css:end */
