/* The Guide's screens, the phone of the tutorial played with a phone (task 093; maquette 088, section 4, mode « Avec un téléphone »). A file of its own so that style.css, which the correction of
   the tablet layout (task 099) works on, is not touched: the page's colours and variables are style.css's, every length is a multiple of --u (1 px on a phone, 1.3 px on a tablet in portrait,
   1.15 px on a tablet in landscape, task 084). The soft orange of a mistake and the yellow of a hint are those of the headset's panel (XR/Tutorial/TutorialPanelView: ErrorPlate and ErrorInk,
   decision 0072, point 14): f3a55c on 3d2a14, ffd05a on 3a2f10; the green of a success is the page's. */

:root {
  --tut-error-bg: #3d2a14; --tut-error-ink: #f3a55c;
  --tut-hint-bg: #3a2f10; --tut-hint-ink: #ffd05a;
  --tut-ok-bg: #17382a; --tut-ok-ink: #6fd6a0;
  --tut-pause-bg: #3b464b; --tut-pause-ink: #fff4db;
  --tut-info-bg: #1b2226; --tut-info-ink: #d9cfb8;
}

/* The Guide's screen is a column of blocks in the order they are read in (two columns on a tablet in landscape, style.css); the button « Recommencer » is the last one. */
.screen.tutorial > .body { gap: calc(12 * var(--u)); padding: calc(14 * var(--u)) calc(14 * var(--u)) calc(calc(20 * var(--u)) + env(safe-area-inset-bottom)); }

/* The nine bars: done in green, the step in progress in gold, the rest dark. */
.tut-pips { display: flex; gap: calc(6 * var(--u)); }
.tut-pips i { flex: 1; height: calc(6 * var(--u)); border-radius: calc(3 * var(--u)); background: #3a4549; }
.tut-pips i.done { background: var(--tut-ok-ink); }
.tut-pips i.here { background: var(--accent); }

/* The card « Étape N · Nom »: what to say, and its value in big letters. */
.tut-card { gap: calc(8 * var(--u)); }
.tut-say { font-family: var(--title); font-weight: 700; font-size: calc(25 * var(--u)); line-height: 1.12; }
.tut-say strong { font-weight: 800; color: var(--accent); }
.tut-values { display: flex; flex-direction: column; gap: calc(6 * var(--u)); }
.tut-big { font-family: var(--title); font-weight: 800; font-size: calc(40 * var(--u)); line-height: 1.05; }
.tut-symbol-box { display: flex; align-items: center; gap: calc(14 * var(--u)); }
.tut-symbol-box .icon.symbol { width: calc(48 * var(--u)); height: calc(48 * var(--u)); color: var(--text); }
.tut-symbol-name { text-transform: lowercase; }
.tut-code { letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }
.tut-crans { display: flex; gap: calc(10 * var(--u)); }
.tut-cran { width: calc(52 * var(--u)); height: calc(52 * var(--u)); border-radius: 50%; border: calc(4 * var(--u)) solid #c9a24a; display: grid; place-items: center;
  font-family: var(--title); font-weight: 800; font-size: calc(26 * var(--u)); line-height: 1; color: var(--text); }
.tut-cran.aim { background: #c9a24a; color: #3b2a08; }
.tut-then { font-size: calc(16 * var(--u)); color: var(--tut-info-ink); font-weight: 700; }

/* The exact P of step 7: the number, the target, the bar of the page's gauges, the seconds held in the green. */
.tut-pressure { gap: calc(10 * var(--u)); }
.tut-p-head { display: flex; align-items: baseline; gap: calc(12 * var(--u)); }
.tut-p-value { font-family: var(--title); font-weight: 800; font-size: calc(46 * var(--u)); line-height: 1; font-variant-numeric: tabular-nums; }
.tut-p-label { font-size: calc(14 * var(--u)); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.tut-p-target { font-size: calc(15 * var(--u)); color: var(--tut-info-ink); }
.tut-pressure.in-zone .tut-p-value { color: var(--tut-ok-ink); }
.tut-pressure.critical .tut-p-value { color: var(--tut-error-ink); }
.tut-p-held { font-size: calc(15 * var(--u)); font-weight: 700; color: var(--tut-ok-ink); }

/* What the other player sees, and the rule of the step. */
.tut-sees, .tut-rule { font-size: calc(14 * var(--u)); line-height: 1.4; color: var(--tut-info-ink); background: var(--tut-info-bg); border-radius: calc(12 * var(--u)); padding: calc(10 * var(--u)) calc(12 * var(--u)); }
.tut-sees strong, .tut-rule strong { color: var(--text); }
.tut-rule { border-left: calc(4 * var(--u)) solid var(--accent); border-radius: calc(4 * var(--u)) calc(12 * var(--u)) calc(12 * var(--u)) calc(4 * var(--u)); }

/* The banner: a mistake, a hint, the pause, a success. */
.tut-ban { display: flex; align-items: center; gap: calc(10 * var(--u)); border-radius: calc(12 * var(--u)); padding: calc(10 * var(--u)) calc(12 * var(--u)); font-size: calc(15 * var(--u)); line-height: 1.35; font-weight: 700; }
.tut-ban-icon:empty { display: none; }
.tut-ban-icon .icon { display: block; }
.tut-ban.error { background: var(--tut-error-bg); color: var(--tut-error-ink); }
.tut-ban.hint { background: var(--tut-hint-bg); color: var(--tut-hint-ink); }
.tut-ban.success { background: var(--tut-ok-bg); color: var(--tut-ok-ink); }
.tut-ban.pause { background: var(--tut-pause-bg); color: var(--tut-pause-ink); }
