/* v01: the typed-up scouting report (the result page). The page scrolls as a document. */
.screen--doc { position: relative; inset: auto; overflow: visible; min-height: 100vh; background: var(--kraft) var(--fibre); }
.report { position: relative; max-width: 640px; margin: 0 auto; padding: calc(40px + var(--safe-t)) 10px 0; }
.report__board { animation: boardin2 .6s var(--ease-out) both; }
@keyframes boardin2 { from { opacity: 0; transform: translateY(80px); } }
.report__sheet { padding: 24px 18px 22px; }
.report__sheet.is-hit { animation: hit .25s ease-out; }
@keyframes hit { 30% { transform: translate(1px, 3px) rotate(.3deg); } 60% { transform: translate(-1px, -1px); } }
.report__dl { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; font-size: 14px; }
.report__dl div { display: flex; gap: 8px; }
.report__dl dt { color: var(--pencil); }
.report__dl dd { margin: 0; color: var(--graphite); border-bottom: 1.5px solid rgba(45, 43, 40, .35); }

/* the verdict: score in red pencil, the stamp, the gap */
.verdict { position: relative; margin: 14px 0 4px; padding-top: 6px; border-top: 2px solid var(--graphite); }
.verdict__k { margin: 8px 0 0; font-size: 13px; color: var(--pencil); }
.verdict__row { display: flex; align-items: center; justify-content: space-between; gap: 4px 10px; flex-wrap: wrap; }
.verdict__score { position: relative; display: inline-flex; align-items: baseline; margin: -6px 0 0 18px; color: var(--red); }
.verdict__score > .hand:first-child { font-size: 124px; line-height: .9; }
.verdict__score small { font-size: 46px; margin-left: 4px; color: var(--red); }
.verdict__ring { position: absolute; left: -22px; top: -8px; width: calc(100% + 40px); height: calc(100% + 20px); overflow: visible; pointer-events: none; }
.verdict__ring path { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .7s .2s var(--ease-out) forwards; }
.verdict__stamp { position: relative; margin: -30px 4px 0 auto; font-size: 27px; letter-spacing: .06em; opacity: 0; }
.verdict__stamp.is-in { animation: slam .32s var(--ease-pop) forwards; }
@keyframes slam { 0% { opacity: 0; transform: rotate(-24deg) scale(2.6); } 70% { opacity: .95; transform: rotate(-9deg) scale(.94); } 100% { opacity: .92; transform: rotate(-9deg) scale(1); } }
.verdict__gap { position: relative; display: inline-block; margin: 10px 0 0; font-size: 36px; line-height: 1; color: var(--graphite); }
.verdict__under { position: absolute; left: 0; bottom: -8px; width: 100%; height: 10px; }
.verdict__under path { fill: none; stroke: var(--graphite); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .5s 1.1s var(--ease-out) forwards; }
.ruler { display: block; width: 100%; height: auto; margin: 12px 0 0; overflow: visible; }
.ru__seg { stroke: rgba(45, 43, 40, .45); stroke-width: 5; stroke-linecap: round; }
.ru__seg.is-you { stroke: var(--red); }
.ru__tick { stroke: rgba(45, 43, 40, .4); stroke-width: 1.5; }
.ru__t { font: 400 9.5px var(--typed); fill: var(--pencil); text-anchor: middle; text-transform: uppercase; }
.ru__t.is-you { fill: var(--red); }
.ru__x { fill: none; stroke: var(--red); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .3s .9s forwards; }
.ru__flag { fill: var(--green); stroke: var(--green); stroke-width: 2; stroke-linejoin: round; }
.ru__arc { fill: none; stroke: var(--graphite); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .6s 1.2s var(--ease-out) forwards; }
.ru__gap { font: 700 19px var(--hand); fill: var(--graphite); text-anchor: middle; }

/* the #1 thing to fix */
.fix { margin: 26px 4px 8px; padding: 18px 18px 16px; transform: rotate(-1.2deg); animation: rise .5s 1.3s var(--ease-out) both; }
.fix__k { margin: 0; font-size: 12px; color: rgba(45, 43, 40, .75); }
.fix__h { margin: 2px 0 6px; font-size: 38px; line-height: 1; color: var(--red); }
.fix__line { margin: 0; font-size: 17px; line-height: 1.35; }
.fix__said { margin: 8px 0 0; font-size: 30px; line-height: 1; color: var(--red); transform: rotate(-2deg); }
.fix__train { margin: 10px 0 0; font-size: 16px; line-height: 1.35; color: var(--green); font-weight: 700; }

/* the coach's voice memo (VSL) */
.memo { position: relative; margin: 26px 0 6px; }
.memo__clip { position: absolute; z-index: 3; left: 14px; top: -34px; width: 26px; }
.memo__clip svg { width: 100%; height: auto; display: block; }
.memo__k { margin: 0 0 8px 48px; font-size: 26px; line-height: 1; }
.memo__vsl { border: 7px solid #fbf8ef; border-radius: 3px; box-shadow: 0 10px 22px rgba(30, 18, 4, .35); transform: rotate(.8deg); cursor: pointer; overflow: hidden; }
.memo__p { margin: 10px 2px 0; font-size: 16px; line-height: 1.35; color: var(--pencil); }

/* the evidence */
.evid { margin-top: 28px; border-top: 2px solid var(--graphite); padding-top: 4px; }
.evid__h { margin: 14px 0 8px; font-size: 13px; font-weight: 400; color: var(--pencil); }
.skills { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.skill { display: grid; grid-template-columns: 96px 1fr 52px; grid-template-rows: auto auto; align-items: center; gap: 0 10px; }
.skill__n { font-size: 12px; }
.skill__bar { position: relative; height: 14px; border-bottom: 2px solid rgba(45, 43, 40, .3); }
.skill__bar i { position: absolute; left: 0; bottom: 0; height: 12px; width: var(--w); background: repeating-linear-gradient(-50deg, var(--graphite) 0 2px, transparent 2px 5px); border: 2px solid var(--graphite); border-radius: 2px 5px 2px 4px; }
.skill__bar em { position: absolute; bottom: -6px; width: 2px; height: 24px; background: var(--green); }
.skill__v { font-size: 26px; text-align: right; }
.skill__said { grid-column: 2 / 4; font-size: 14px; color: var(--pencil); min-height: 0; }
.skill__said.is-over { color: var(--red); }
.mos { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mo { display: grid; grid-template-columns: 104px 1fr; gap: 12px; align-items: start; padding-bottom: 12px; border-bottom: 1.5px dashed rgba(81, 76, 70, .3); }
.mo__ph { margin: 4px 0 0; padding: 4px 4px 10px; background: #fbf8ef; box-shadow: 0 4px 10px rgba(30, 18, 4, .3); transform: rotate(var(--r)); }
.mo__ph img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #2a241c; }
.mo__t { min-width: 0; }
.mo__k { margin: 0; font-size: 12px; color: var(--pencil); line-height: 1.35; }
.mo__v { display: flex; align-items: center; gap: 2px; margin: 2px 0 0; font-size: 24px; line-height: 1.05; }
.mo.is-ok .mo__v { color: var(--green); }
.mo.is-hmm .mo__v { color: var(--red); }
.mo__tick { width: 24px; height: 24px; flex: none; }
.mo__his { margin: 0; font-size: 15px; line-height: 1.3; color: var(--green); }
.times--sm { margin: 6px 0 0; gap: 3px; }
.times--sm .times__row { grid-template-columns: 34px 1fr auto; gap: 8px; }
.times--sm .times__row i { height: 9px; }
.times--sm .times__row b { font-size: 19px; min-width: 44px; }
.evid__fine { margin: 14px 0 0; font-size: 13px; color: var(--faint); }

/* the book button, always one thumb away */
.bookbar {
  position: sticky; bottom: 0; z-index: 20; margin: 0 -10px; padding: 18px 16px calc(12px + var(--safe-b));
  background: linear-gradient(180deg, rgba(64, 42, 18, 0) 0%, rgba(64, 42, 18, .88) 34%, rgba(54, 35, 14, .96) 100%);
  animation: barin .45s 1.1s var(--ease-pop) both; text-align: center;
}
@keyframes barin { from { transform: translateY(110%); opacity: 0; } }
.btn--book { background: var(--red); box-shadow: 0 5px 0 #7d1d15, 0 12px 22px rgba(0, 0, 0, .3); font-size: 33px; }
.btn--book:active { box-shadow: 0 1px 0 #7d1d15; }
.btn--book.is-booked { background: var(--green); box-shadow: 0 5px 0 #11432a; }
.bookbar__fine { margin: 8px 0 0; font-size: 12px; color: rgba(251, 246, 232, .85); }

@media (min-width: 900px) {
  .report { padding-top: 56px; }
  .report__sheet { padding: 34px 40px 30px; }
  .verdict__score > .hand:first-child { font-size: 150px; }
  .verdict__stamp { font-size: 42px; margin: 0 20px 0 auto; }
  .bookbar { margin: 0 auto; max-width: 640px; }
}
.evid__sign { margin: 10px 0 0; font-size: 26px; text-align: right; transform: rotate(-2deg); color: var(--graphite); }

/* wide laptop: the report opens like a two-page spread, so the coach's memo and Book sit above the fold */
@media (min-width: 1100px) {
  .report { max-width: 1180px; padding-top: 46px; }
  .report__sheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-items: start; padding: 30px 44px 30px; }
  .report__head, .evid { grid-column: 1 / -1; }
  .verdict { grid-column: 1; grid-row: 2; }
  .fix { grid-column: 1; grid-row: 3; margin-top: 20px; }
  .memo { grid-column: 2; grid-row: 2 / 4; margin-top: 52px; }
  .memo__k { font-size: 30px; }
  .verdict__score > .hand:first-child { font-size: 132px; }
  .verdict__stamp { font-size: 36px; margin: 0 6px 0 auto; }
  .mos { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; }
  .skills { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
  .skill { grid-template-columns: 1fr 52px; }
  .skill__n { grid-column: 1 / -1; }
  .skill__said { grid-column: 1 / -1; }
  .bookbar { max-width: 1180px; }
  .btn--book { max-width: 560px; margin: 0 auto; }
}
