/* 進房、大廳、選單、遙控器、大螢幕。顏色和按鈕沿用 style.css。 */

#app { position: relative; }

/* ---------------------------------------------------------------- over every room screen: the knock and 沙池重整了 */

.room-layer {
  position: fixed;
  z-index: 30;
  top: calc(56px + var(--safe-t));
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(360px, calc(100% - 16px));
  transform: translateX(-50%);
  pointer-events: none;
}
.room-layer > * { pointer-events: auto; }
.room-note { margin: 0; padding: 6px 16px; border-radius: 999px; background: var(--panel); font-size: 14px; }
.room-layer .knock {
  border: 2px solid var(--yellow);
  background: #1b1d20;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
  touch-action: manipulation;
}
.room-layer .knock p { font-size: 19px; }
.room-layer .knock .small { min-width: 112px; min-height: 46px; font-size: 16px; }

/* ---------------------------------------------------------------- shared bits */

.small:disabled, .step:disabled { opacity: .4; }
.small.armed { border-color: var(--warn); background: var(--warn); color: var(--text); }
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--solid);
  text-align: left;
  white-space: normal;
}
.toggle::before {
  content: "";
  flex: none;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  border: 2px solid var(--muted);
  border-radius: 5px;
}
.toggle[aria-pressed="true"]::before, .toggle[aria-checked="true"]::before { border-color: var(--yellow); background: var(--yellow); box-shadow: inset 0 0 0 3px var(--solid); }
.hint { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.icon { display: inline-flex; flex: none; }
.swatch {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #8f9498;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .16);
}
.swatch.team0 { background: #3b86e0; }
.swatch.team1 { background: #f0862a; }
.swatch-icon { width: 16px; color: var(--muted); }
.swatch-icon svg { width: 18px; height: 18px; margin-left: -1px; }

/* ---------------------------------------------------------------- joining */

.join { gap: 18px; }
.page-top { display: grid; grid-template-columns: 84px 1fr 84px; align-items: center; width: min(100%, 420px); }
.page-top h2 { margin: 0; font-size: 22px; text-align: center; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
}
.back svg { width: 20px; height: 20px; }
.column { display: flex; flex-direction: column; gap: 12px; width: min(100%, 420px); }
.column h3 { margin: 8px 0 0; color: var(--soft); font-size: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-name { color: var(--muted); font-size: 14px; }
.code-input, .name-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0e0f10;
  font-size: 22px;
}
.code-input { text-align: center; font-size: 32px; font-variant-numeric: tabular-nums; letter-spacing: .4em; }
.name-input[readonly] { color: var(--soft); background: var(--solid); }
.name-row { display: flex; align-items: flex-end; gap: 8px; }
.name-row .field { flex: 1; }
.another { display: inline-flex; align-items: center; gap: 6px; min-height: 54px; }
.another svg { width: 20px; height: 20px; }
.roles { display: flex; flex-direction: column; gap: 10px; }
.role {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--solid);
  text-align: left;
}
.role:active { border-color: var(--yellow); }
.role-icon { color: var(--yellow); }
.role-icon svg { width: 40px; height: 40px; }
.role-words { display: flex; flex-direction: column; gap: 2px; }
.role-name { font-size: 19px; font-weight: 700; }
.role-about { color: var(--muted); font-size: 14px; }
.problem { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.problem .home-error { min-height: 0; }
.problem .home-error:empty { display: none; }
.problem .small { min-width: 160px; min-height: 46px; font-size: 16px; }

/* ---------------------------------------------------------------- the lobby */

.lobby { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--bg); }
.lobby-top {
  display: grid;
  grid-template-columns: 96px 1fr 96px;
  align-items: center;
  gap: 8px;
  padding: calc(8px + var(--safe-t)) calc(10px + var(--safe-r)) 8px calc(10px + var(--safe-l));
  border-bottom: 1px solid #2c3034;
  background: #181a1c;
}
.lobby-top .hud { justify-self: start; background: var(--solid); }
.lobby-top .hud.armed { background: var(--warn); }
.lobby-top h2 { margin: 0; font-size: 21px; text-align: center; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.locked { display: inline-flex; justify-self: end; align-items: center; gap: 4px; color: var(--yellow); font-size: 13px; }
.lobby-note {
  flex: none;
  margin: 0;
  padding: 8px calc(14px + var(--safe-r)) 8px calc(14px + var(--safe-l));
  border-bottom: 1px solid #2c3034;
  background: #2a2410;
  color: var(--yellow);
  font-size: 16px;
  text-align: center;
}
.locked svg { width: 16px; height: 16px; }

.lobby-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  min-height: 0;
  overflow-y: auto;
  padding: 14px calc(14px + var(--safe-r)) 18px calc(14px + var(--safe-l));
}
.lobby-body > * { flex: none; width: min(100%, 460px); }
.slot:empty { display: none; }
.block { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.block h3 { margin: 0; color: var(--soft); font-size: 15px; letter-spacing: .04em; }

.lobby-go {
  display: flex;
  justify-content: center;
  padding: 10px calc(14px + var(--safe-r)) calc(12px + var(--safe-b)) calc(14px + var(--safe-l));
  border-top: 1px solid #2c3034;
  background: #181a1c;
}
.lobby-go .start { width: min(100%, 460px); }
.waiting { display: flex; align-items: center; min-height: 52px; margin: 0; color: var(--soft); font-size: 18px; }

.invite-block {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--solid);
}
.invite-block .qr { display: block; width: min(40vw, 164px); height: min(40vw, 164px); border-radius: 6px; image-rendering: pixelated; }
.invite-side { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.invite-side .small { min-height: 44px; }
.invite-note, .invite-said { margin: 0; color: var(--soft); font-size: 14px; line-height: 1.5; }
.invite-said:empty { display: none; }
.invite-block .link-text { grid-column: 1 / -1; box-sizing: border-box; width: 100%; min-height: 40px; }

.people { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 4px 8px 4px 12px;
  border-radius: 10px;
  background: var(--solid);
}
.person.away { opacity: .55; }
.person-who { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.person-name { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.person-tags { color: var(--muted); font-size: 13px; }
.person .small { flex: none; min-height: 38px; padding: 0 10px; }
.small.team0 { border-color: #3b86e0; }
.small.team1 { border-color: #f0862a; }
.team-tag { flex: none; padding: 2px 8px; border: 1px solid; border-radius: 6px; font-size: 13px; }
.team-tag.team0 { border-color: #3b86e0; }
.team-tag.team1 { border-color: #f0862a; }
.lock-row { display: flex; align-items: center; gap: 10px; }
.lock-row .toggle { flex: none; }

.modes { display: flex; flex-direction: column; gap: 8px; }
.mode {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 12px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--solid);
  text-align: left;
}
.mode[aria-checked="true"], .kind[aria-checked="true"], .adv-choice[aria-checked="true"] { border-color: var(--yellow); background: #2b2717; }
.mode-icon svg { width: 32px; height: 32px; }
.mode[aria-checked="true"] .mode-icon, .kind[aria-checked="true"] .car { color: var(--yellow); }
.mode-words { display: grid; flex: 1; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; }
.mode-name { grid-column: 1; grid-row: 1; font-size: 17px; font-weight: 700; }
.mode-time { grid-column: 2; grid-row: 1; color: var(--muted); font-size: 13px; }
.mode-about { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }

.bot-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 12px; border-radius: 10px; background: var(--solid); }
.bot-name { flex: 1; }
.step { width: 46px; min-height: 42px; padding: 0; font-size: 22px; }
.bot-count { min-width: 2ch; font-size: 20px; font-variant-numeric: tabular-nums; text-align: center; }

.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kind {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 6px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--solid);
}
.kind:disabled { opacity: .4; }
.car svg { width: 72px; height: 48px; }
.kind-name { font-size: 17px; font-weight: 700; }
.kind-about { color: var(--muted); font-size: 13px; }

.advs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.adv-choice {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 64px;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--solid);
  text-align: left;
}
.adv-name { font-size: 17px; font-weight: 700; }
.adv-about { color: var(--muted); font-size: 13px; line-height: 1.4; }

/* sideways: two columns, so the mode cards and the machines are not one long thread */
@media (orientation: landscape) and (min-width: 640px) {
  .lobby-body { display: grid; grid-template-columns: 1fr 1fr; align-content: start; align-items: start; justify-content: center; column-gap: 18px; }
  .lobby-body > * { width: auto; }
  .lobby-go { padding-top: 8px; }
  .lobby-go .big { min-height: 48px; }
}

/* ---------------------------------------------------------------- the menu over the game and the remote */

.sheet {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(10, 11, 12, .55);
}
.sheet-panel {
  box-sizing: border-box;
  width: min(100%, 480px);
  max-height: calc(100% - 44px - var(--safe-t));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 14px calc(16px + var(--safe-b));
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: #1a1c1f;
  touch-action: pan-y;
}
.sheet-head {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 10px;
  background: #1a1c1f;
}
.sheet-head h2 { margin: 0; font-size: 19px; }
.sheet .small { min-height: 42px; }
.sheet-body { display: flex; flex-direction: column; gap: 18px; }
.host-row { display: flex; flex-wrap: wrap; gap: 8px; }
.host-row .toggle { min-height: 42px; }

@media (orientation: landscape) {
  .sheet { align-items: stretch; justify-content: flex-end; }
  .sheet-panel {
    width: min(440px, 64%);
    max-height: 100%;
    padding-right: calc(14px + var(--safe-r));
    border-radius: 16px 0 0 16px;
  }
}

/* ---------------------------------------------------------------- over the game: the match and the countdown */

.match {
  padding: 5px 14px;
  border-radius: 10px;
  background: var(--panel);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.countdown {
  position: absolute;
  z-index: 5;
  top: 40%;
  left: 50%;
  color: var(--yellow);
  font-size: 104px;
  font-weight: 800;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .7);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ---------------------------------------------------------------- the phone as a remote */

.remote {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #121315;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}
.remote-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;      /* the chip in the middle whatever is beside it */
  gap: 6px;
  align-items: center;
  padding: calc(8px + var(--safe-t)) calc(8px + var(--safe-r)) 0 calc(8px + var(--safe-l));
}
.remote-top .hud { background: var(--solid); }
.remote-top .hud.armed { background: var(--warn); }
.remote-card {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 0;
  padding: 8px 16px;
  text-align: center;
}
.remote-who { display: flex; align-items: center; gap: 14px; }
.remote-who .swatch { width: 36px; height: 36px; }
.remote-words { display: flex; flex-direction: column; text-align: left; }
.remote-name { overflow-wrap: anywhere; font-size: 26px; font-weight: 800; }
.remote-kind { color: var(--muted); font-size: 15px; }
.remote-load { margin: 0; font-size: 23px; font-weight: 700; }
.remote-score { margin: 0; color: var(--soft); font-size: 17px; font-variant-numeric: tabular-nums; }
.remote-card .banner { font-size: 15px; }
.remote-hint { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 14px; }
.remote-hint svg { width: 24px; height: 24px; }
.remote-side { position: relative; z-index: 3; display: flex; justify-content: center; gap: 22px; padding: 4px 0 10px; }
.remote-side .round { width: 66px; height: 66px; }
.remote-side .round svg { width: 26px; height: 26px; }
.remote .countdown { top: 34%; }
.remote .say-panel { bottom: calc(240px + var(--safe-b)); }
.remote-top > :first-child { justify-self: start; }
.remote-top > :last-child { justify-self: end; }
.remote-top .hud-group { display: flex; gap: 6px; }

/* the first time this phone is a remote: what it is for */
.first-card {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 11, 12, .62);
}
.first-card .card { box-sizing: border-box; width: min(380px, 100%); max-height: 100%; overflow-y: auto; text-align: left; }
.first-card h2 { margin: 0; font-size: 22px; text-align: center; }
.first-list { margin: 0; padding-left: 1.2em; color: var(--soft); font-size: 16px; line-height: 1.6; }
.first-list li + li { margin-top: 6px; }

.remote .deck:not(.two-sticks) {
  grid-template-columns: 1fr 1fr;
  height: auto;
  padding: 16px 8px calc(22px + var(--safe-b));
}
.remote .deck:not(.two-sticks) .stick { grid-column: 1; width: min(47vw, 210px); }
.remote .deck:not(.two-sticks) .act { grid-column: 2; width: min(40vw, 172px); font-size: 30px; }

@media (orientation: landscape) {
  .remote .deck:not(.two-sticks) { display: block; height: auto; padding: 0; }
  .remote .deck:not(.two-sticks) .stick { left: calc(20px + var(--safe-l)); bottom: calc(18px + var(--safe-b)); width: min(54vh, 216px); }
  .remote .deck:not(.two-sticks) .act { right: calc(20px + var(--safe-r)); bottom: calc(22px + var(--safe-b)); width: min(44vh, 180px); }
  .remote-card {
    gap: 6px;
    padding: 4px calc(min(44vh, 180px) + 34px + var(--safe-r)) 4px calc(min(54vh, 216px) + 34px + var(--safe-l));
  }
  .remote-name { font-size: 22px; }
  .remote-load { font-size: 19px; }
  .remote-hint { display: none; }
  .remote-side { padding-bottom: calc(14px + var(--safe-b)); }
  .remote .say-panel { top: calc(56px + var(--safe-t)); bottom: auto; }
  /* the buttons in the middle must not be under the stick's or the big button's layer */
  .remote-side { align-self: center; }
}

/* ---------------------------------------------------------------- the big screen */

.bigscreen { position: relative; height: 100%; overflow: hidden; background: #101112; }
.bigscreen .view { position: absolute; inset: 0; }
.bigscreen .swatch { width: max(11px, 1.8vmin); height: max(11px, 1.8vmin); }

.big-score {
  position: absolute;
  z-index: 3;
  top: 2vmin;
  left: 2vmin;
  min-width: 30vmin;
  max-width: 34vw;
  padding: 1.4vmin 2vmin;
  border-radius: 1.6vmin;
  background: var(--panel);
  font-size: clamp(14px, 2.6vmin, 32px);
}
.score-head { display: flex; justify-content: space-between; gap: 2vmin; font-weight: 800; }
.score-clock { color: var(--yellow); font-variant-numeric: tabular-nums; }
.score-teams { display: flex; gap: 1.4vmin; margin-top: 1vmin; }
.score-team { flex: 1; padding: .6vmin 1vmin; border-radius: 1vmin; text-align: center; }
.score-team.team0 { background: rgba(59, 134, 224, .34); }
.score-team.team1 { background: rgba(240, 134, 42, .34); }
.score-team-name { display: block; font-size: .85em; }
.score-team-points { display: block; font-size: 2.1em; font-weight: 800; font-variant-numeric: tabular-nums; }
.score-list { margin: 1vmin 0 0; padding: 0; list-style: none; }
.score-row { display: flex; align-items: center; gap: 1.2vmin; line-height: 1.7; }
.score-row .person-name { flex: 1; }
.score-row .person-tags { font-size: .8em; }
.score-row.away { opacity: .5; }
.score-points { font-weight: 800; font-variant-numeric: tabular-nums; }

.big-banner {
  position: absolute;
  z-index: 3;
  top: 3vmin;
  left: 50%;
  max-width: 56vw;
  margin: 0;
  padding: 1.2vmin 3.4vmin;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(18, 20, 22, .86);
  font-size: clamp(18px, 4vmin, 52px);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateX(-50%);
}
.bigscreen .countdown { top: 46%; font-size: 30vmin; }

.big-corner {
  position: absolute;
  z-index: 3;
  right: 2vmin;
  top: 2vmin;                 /* the far side of the picture, mostly beyond the fence */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6vmin;
  padding: 1.2vmin;
  border-radius: 1.4vmin;
  background: var(--panel);
  font-size: clamp(13px, 2.4vmin, 28px);
  font-variant-numeric: tabular-nums;
}
.big-corner .qr { width: max(96px, 16vmin); height: max(96px, 16vmin); border-radius: 4px; image-rendering: pixelated; }
.big-tools { position: absolute; z-index: 7; bottom: 2vmin; left: 2vmin; display: flex; gap: 8px; }

.big-lobby {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3vmin;
  background: rgba(10, 11, 12, .3);
}
.big-panel {
  display: flex;
  flex-direction: column;
  gap: 3vmin;
  box-sizing: border-box;
  max-width: 100%;
  max-height: 100%;
  overflow: auto;
  padding: 4vmin 5vmin 3vmin;
  border: 1px solid var(--line);
  border-radius: 2.4vmin;
  background: rgba(20, 22, 24, .95);
}
.big-join { display: flex; align-items: center; gap: 5vmin; }
.big-join .qr { flex: none; width: 48vmin; height: 48vmin; border-radius: 1.2vmin; image-rendering: pixelated; }
.big-words h1 { margin: 0 0 2.4vmin; font-size: 6vmin; letter-spacing: .1em; }
.big-steps p { margin: 0 0 1vmin; color: var(--soft); font-size: 2.8vmin; }
.big-steps .big-scan { margin-bottom: 2.4vmin; color: var(--text); font-size: 3.6vmin; font-weight: 700; }
.big-steps .big-code {
  margin: 0;
  color: var(--yellow);
  font-size: 13vmin;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: .14em;
  line-height: 1.15;
}
.big-steps .big-small { color: var(--muted); font-size: 2.3vmin; }
.big-here { padding-top: 2.4vmin; border-top: 1px solid var(--line); text-align: center; }
.big-status { margin: 0 0 1vmin; color: var(--muted); font-size: 2.8vmin; }
.big-people { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6vmin; margin: 0; padding: 0; list-style: none; }
.big-people:empty { display: none; }
.big-person {
  display: flex;
  align-items: center;
  gap: 1.2vmin;
  padding: 1vmin 2.2vmin;
  border-radius: 999px;
  background: var(--solid);
  font-size: max(14px, 3vmin);
}
.big-person.away { opacity: .5; }
.big-person .person-tags { font-size: .75em; }

@media (orientation: portrait) {
  .big-join { flex-direction: column; text-align: center; }
  .big-join .qr { width: 62vmin; height: 62vmin; }
  .big-score { max-width: 60vw; }
  .big-banner { top: auto; bottom: 26vmin; max-width: 92vw; }
}

/* ---------------------------------------------------------------- 我的工地, 怎麼玩 and the lesson's own pages */

.profile, .help { gap: 14px; }
.profile-body, .help-body { gap: 22px; padding-bottom: 12px; }
.profile .toggle { align-self: flex-start; }

.paints { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.paint {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 6px 10px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--solid);
}
.paint[aria-checked="true"] { border-color: var(--yellow); background: #2b2717; }
.paint:disabled { opacity: .5; cursor: default; }
.paint-car svg { display: block; width: 84px; height: 56px; }
.paint-name { font-size: 15px; font-weight: 700; }
.paint-note { min-height: 1.4em; color: var(--muted); font-size: 13px; }
.paint[aria-checked="true"] .paint-note { color: var(--yellow); }
.paint-lock { position: absolute; top: 8px; right: 8px; color: var(--muted); }
.paint-lock svg { width: 18px; height: 18px; }

.awards { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.award { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 12px; border-radius: 10px; background: var(--solid); }
.award-mark { flex: none; box-sizing: border-box; width: 28px; height: 28px; border: 2px solid var(--line); border-radius: 50%; }
.award.got .award-mark { display: inline-flex; align-items: center; justify-content: center; border-color: var(--yellow); background: var(--yellow); color: var(--ink); }
.award.got .award-mark svg { width: 18px; height: 18px; stroke-width: 3; }
.award-words { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.award-name { font-weight: 700; }
.award:not(.got) .award-name { color: var(--soft); }
.award-about { color: var(--muted); font-size: 13px; line-height: 1.45; }
.award-state { flex: none; color: var(--muted); font-size: 13px; }
.award.got .award-state { color: var(--yellow); }

.help-list { margin: 0; padding-left: 1.2em; color: var(--soft); line-height: 1.65; }
.help-list li + li { margin-top: 4px; }
.help-rows { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.help-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--solid); }
.help-icon { flex: none; justify-content: center; width: 60px; color: var(--yellow); }
.help-icon svg { width: 30px; height: 30px; }
.help-icon.car svg { width: 60px; height: 40px; }
.help-words { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.help-name { font-weight: 700; }
.help-about { color: var(--soft); font-size: 14px; line-height: 1.5; }
.help-note { color: var(--muted); font-size: 13px; }
.help .choices { align-self: center; }

.lesson-steps { margin: 0; padding-left: 1.6em; color: var(--soft); font-size: 18px; line-height: 1.8; text-align: left; }
.lesson .choices { width: min(100%, 340px); }

@media (orientation: landscape) and (min-width: 640px) {
  .paints { grid-template-columns: repeat(4, 1fr); }
}
