@font-face {
  font-family: AppFont;
  src: url("fonts/Manrope.ttf") format("truetype");
  font-display: swap;
  font-weight: 200 800;
}
* {
  box-sizing: border-box;
}
html {
  background: #f7f8f5;
  color: #202c31;
  -webkit-tap-highlight-color: transparent;
}
body {
  font:
    14px/1.45 AppFont,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  margin: 0;
}
button,
input,
a {
  font: inherit;
}
button,
a {
  -webkit-touch-callout: none;
}
button {
  cursor: pointer;
  color: inherit;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #f97647;
  outline-offset: 4px;
}
a {
  color: inherit;
  text-decoration: none;
}
#app {
  max-width: 1160px;
  margin: auto;
  padding: 0 20px;
}
.header {
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -1.3px;
  line-height: 1.1;
}
.brand-icon {
  width: 42px;
  height: 42px;
  background: #f4643b;
  color: white;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 38px;
  font-weight: 500;
  box-shadow: 0 4px 0 #de5630;
}
.brand-sub {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  margin-top: 6px;
  font-weight: 800;
  color: #758080;
}
.tag {
  background: white;
  border: 1px solid #e1e5df;
  border-radius: 30px;
  padding: 9px 13px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.tag span {
  margin-left: 7px;
  color: #f4643b;
}
.navigation {
  display: flex;
  gap: 7px;
  background: #ebeee9;
  padding: 5px;
  border-radius: 15px;
  margin-bottom: 24px;
}
.navigation > button {
  flex: 1;
  padding: 12px 6px;
  border-radius: 11px;
  color: #7b8685;
  font-size: 12px;
  font-weight: 750;
  transition: background 0.2s;
}
.navigation > button.active {
  background: #fff;
  color: #233035;
  box-shadow: 0 2px 4px #23303508;
}
.tiny-pill {
  font-size: 9px;
  border-radius: 5px;
  background: #eaf0e5;
  color: #688054;
  padding: 2px 4px;
  margin-left: 3px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 800;
  color: #7a8985;
  text-transform: uppercase;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 17px;
}
.section-head h1 {
  font-size: 25px;
  letter-spacing: -1.1px;
  margin: 3px 0 0;
  line-height: 1.25;
}
.counter-button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid #e1e5df;
  border-radius: 13px;
  padding: 11px 13px;
  font-size: 11px;
  white-space: nowrap;
}
.counter-button b {
  font-size: 16px;
}
.counter-button span {
  color: #8b9692;
}
.scene-panel {
  position: relative;
  background: #dce8d2;
  border-radius: 22px;
  overflow: hidden;
  height: 350px;
  isolation: isolate;
  box-shadow: 0 1px 0 #d7dfd4;
}
.scene {
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}
.scene canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.scene-bar {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 13px;
  right: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  pointer-events: none;
}
.scene-bar button,
.scene-bar .view-switch {
  pointer-events: auto;
}
.scene-badge {
  font-size: 8px;
  letter-spacing: 1px;
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 20px;
  background: #ffffffdd;
  display: flex;
  align-items: center;
  gap: 6px;
}
.scene-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f4643b;
}
.view-switch {
  display: flex;
  border: 1px solid #ffffff80;
  background: #ffffffbb;
  backdrop-filter: blur(14px);
  border-radius: 24px;
  padding: 3px;
  box-shadow: 0 3px 9px #20302b0a;
}
.view-switch button {
  font-size: 10px;
  padding: 6px 10px;
  border-radius: 22px;
}
.view-switch button.selected {
  background: #26362f;
  color: #fff;
}
.scene-legend {
  position: absolute;
  bottom: 12px;
  left: 13px;
  right: 13px;
  z-index: 2;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  pointer-events: none;
}
.legend-item {
  background: #fffdf3e8;
  border: 1px solid #ffffff8a;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 5px;
}
.legend-item i {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: var(--dot);
}
.ticket-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #eef1eb;
  padding: 42px 4px;
}
.no-picture {
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 8px;
  color: #66766e;
}
.no-picture b {
  font-size: 64px;
  color: #f4643b;
}
.transport {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 0 19px;
}
.play-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f4643b;
  color: white;
  display: grid;
  place-items: center;
  font-size: 17px;
  flex-shrink: 0;
  box-shadow: 0 3px 8px #f4643b21;
}
.timeline {
  flex: 1;
  min-width: 40px;
  height: 4px;
  accent-color: #f4643b;
}
.time {
  font-size: 10px;
  color: #7d8781;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.icon-button {
  height: 35px;
  width: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 22px;
  background: #e9ede6;
  flex-shrink: 0;
}
.speed {
  font-size: 11px;
  font-weight: 800;
  width: 30px;
  padding: 0;
}
.question-panel {
  padding: 0 1px;
}
.question-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.question-meta .eyebrow {
  font-size: 9px;
  letter-spacing: 1px;
}
.bookmark {
  font-size: 22px;
  width: 33px;
  height: 33px;
  color: #929e98;
  border-radius: 50%;
}
.bookmark.saved {
  color: #f4643b;
  background: #fdf0e9;
}
.question-panel h2 {
  font-size: 21px;
  letter-spacing: -0.65px;
  line-height: 1.35;
  margin: 0 0 19px;
  font-weight: 800;
}
.answers {
  display: grid;
  gap: 8px;
}
.answer {
  display: flex;
  gap: 11px;
  align-items: center;
  background: #fff;
  border: 1px solid #e1e6de;
  border-radius: 14px;
  padding: 14px 13px;
  text-align: left;
  font-size: 12px;
  line-height: 1.5;
  min-height: 57px;
  transition:
    border-color 0.18s,
    background 0.18s;
}
.answer-index {
  width: 26px;
  height: 26px;
  border: 1px solid #e3e7e0;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #8a958f;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.answer.correct {
  border-color: #80b397;
  background: #edf7ef;
}
.answer.correct .answer-index {
  color: white;
  background: #5b9271;
  border-color: #5b9271;
}
.answer.wrong {
  border-color: #e88c77;
  background: #fff0ea;
}
.answer.wrong .answer-index {
  background: #e9775b;
  border-color: #e9775b;
  color: white;
}
.answer:disabled {
  opacity: 1;
}
.answer:active:not(:disabled) {
  transform: scale(0.992);
}
.hint-line {
  color: #929c94;
  font-size: 10px;
  text-align: center;
  margin: 14px 0;
}
.result {
  background: #edf4e9;
  border-radius: 16px;
  padding: 17px;
  margin-top: 15px;
  border: 1px solid #d8e6d2;
  animation: appear 0.25s ease;
}
.result.error {
  background: #fff2e9;
  border-color: #f1dfcd;
}
.result-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
}
.result p {
  font-size: 12px;
  line-height: 1.7;
  margin: 10px 0;
  color: #546256;
}
.rule-tag {
  font-size: 9px;
  font-weight: 800;
  padding: 5px 8px;
  background: #ffffffb3;
  border-radius: 7px;
  display: inline-block;
}
.next-button,
.primary-button {
  width: 100%;
  border-radius: 13px;
  padding: 15px;
  background: #f4643b;
  color: #fff;
  font-weight: 750;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 13px;
  box-shadow: 0 4px 0 #e5e9df;
}
.next-button span {
  font-size: 20px;
  line-height: 14px;
}
.question-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 17px;
}
.text-button {
  font-size: 11px;
  color: #7a8881;
  padding: 8px 0;
}
.question-nav .text-button:last-child {
  color: #f4643b;
  font-weight: 700;
}
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #8d988f;
  font-size: 9px;
  margin: 26px 0 20px;
}
.footer button {
  font-size: 9px;
  text-decoration: underline;
  padding: 0 0 0 9px;
}
.status-dot {
  width: 5px;
  height: 5px;
  background: #8ead73;
  border-radius: 50%;
}
.intro {
  margin-bottom: 22px;
}
.intro h1 {
  font-size: 30px;
  letter-spacing: -1.4px;
  margin: 6px 0 8px;
  line-height: 1.2;
}
.intro p {
  font-size: 12px;
  color: #89938d;
  margin: 0;
  line-height: 1.6;
}
.library-banner {
  background: #e7edde;
  border: 1px solid #dce5d4;
  padding: 18px;
  border-radius: 19px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.library-banner strong {
  font-size: 16px;
  display: block;
  letter-spacing: -0.4px;
}
.library-banner p {
  font-size: 11px;
  margin: 3px 0 0;
  color: #7b8973;
}
.library-banner .banner-icon {
  font-size: 35px;
  color: #758e5e;
}
.ticket-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}
.ticket {
  padding: 14px 5px 12px;
  border: 1px solid #e0e5dc;
  background: #fff;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.ticket span {
  font-size: 8px;
  letter-spacing: 0.8px;
  color: #93a089;
  font-weight: 650;
}
.ticket b {
  font-size: 25px;
  font-weight: 600;
  line-height: 1.2;
}
.ticket small {
  font-size: 8px;
  color: #9aab94;
}
.ticket.complete {
  background: #e9f1e0;
  border-color: #bbceaa;
}
.ticket-progress {
  height: 3px;
  width: 30px;
  background: #edf0e7;
  border-radius: 4px;
  margin-top: 5px;
  overflow: hidden;
}
.ticket-progress i {
  display: block;
  height: 100%;
  background: #789460;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-bottom: 18px;
}
.stat {
  background: #fff;
  border: 1px solid #e1e5dc;
  border-radius: 19px;
  padding: 19px;
}
.stat.accent {
  background: #273b33;
  color: #fff;
  border-color: #273b33;
}
.stat .eyebrow {
  font-size: 9px;
  letter-spacing: 0.5px;
}
.stat.accent .eyebrow {
  color: #a2b5a4;
}
.stat b {
  display: block;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -2px;
  margin: 8px 0 0;
}
.stat p {
  font-size: 10px;
  color: #92a08e;
  margin: 0;
}
.collection {
  border: 1px solid #e2e7dc;
  background: #fff;
  border-radius: 16px;
  width: 100%;
  text-align: left;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 9px;
}
.collection .collection-icon {
  background: #f9eee3;
  width: 41px;
  height: 41px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 21px;
  color: #df9257;
}
.collection strong {
  display: block;
  font-size: 13px;
}
.collection small {
  color: #939e93;
  font-size: 10px;
}
.collection .chevron {
  margin-left: auto;
  color: #99a38f;
  font-size: 24px;
}
.about-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 25px 0 0;
}
.about-row button {
  color: #94a087;
  font-size: 10px;
  text-decoration: underline;
}
.note {
  font-size: 11px;
  color: #88927e;
  line-height: 1.65;
}
.empty {
  padding: 40px 20px;
  text-align: center;
  background: white;
  border: 1px solid #e1e8da;
  border-radius: 20px;
}
.empty .empty-symbol {
  font-size: 50px;
  color: #7b985f;
}
.empty h2 {
  font-size: 19px;
}
.empty p {
  font-size: 12px;
  color: #879780;
}
dialog {
  border: 0;
  border-radius: 25px;
  padding: 23px;
  max-width: 580px;
  width: calc(100% - 28px);
  max-height: 84dvh;
  background: #f7f8f5;
  color: #253a2e;
  box-shadow: 0 18px 100px #15261f30;
}
dialog::backdrop {
  background: #19342965;
  backdrop-filter: blur(4px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}
.modal-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.7px;
}
.modal-head button {
  font-size: 27px;
}
.modal-body p,
#modal-body p {
  font-size: 12px;
  line-height: 1.75;
  color: #7b8973;
}
#modal-body a {
  color: #ed6b43;
  text-decoration: underline;
  overflow-wrap: anywhere;
}
#modal-body h3 {
  font-size: 15px;
}
.scene-list {
  display: grid;
  gap: 8px;
}
.scene-option {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid #e0e6d8;
  background: #fff;
  text-align: left;
  padding: 13px;
  border-radius: 13px;
}
.scene-option.current {
  border-color: #ed865c;
  background: #fff6ec;
}
.scene-option > span {
  font-size: 18px;
  font-weight: 800;
  color: #e58957;
  min-width: 28px;
}
.scene-option b {
  display: block;
  font-size: 11px;
  font-weight: 750;
}
.scene-option small {
  font-size: 9px;
  color: #9ba78f;
}
.error-state {
  padding: 35px 20px;
  text-align: center;
}
.scene-unavailable {
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  color: #6a7a62;
  padding: 35px;
}
.scene-unavailable b {
  font-size: 20px;
  margin-bottom: 8px;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 20px);
  padding: 12px 20px;
  border-radius: 12px;
  background: #263c32;
  color: white;
  font-size: 11px;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  max-width: 85%;
  width: max-content;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.source-label {
  font-size: 10px;
  line-height: 1.6;
  color: #8b977e;
  margin-top: 18px;
}
.ticket-back {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #809077;
  margin-bottom: 13px;
}
.no-3d .scene-panel {
  height: 210px;
  background: #f0f2eb;
}
.no-3d .transport {
  display: none;
}
.no-3d .question-panel {
  padding-top: 20px;
}
.no-3d .scene-legend {
  display: none;
}
.achievement {
  background: #e7eddf;
  border-radius: 17px;
  padding: 20px;
  margin-top: 15px;
}
.achievement b {
  font-size: 15px;
}
.achievement p {
  font-size: 11px;
  color: #819174;
  margin-bottom: 0;
}
.ticket-finish h2 {
  font-size: 26px;
}
.scene-loading {
  height: 100%;
  display: grid;
  place-content: center;
  font-size: 12px;
  color: #698063;
}
.question-layout {
  min-width: 0;
}
.question-column {
  min-width: 0;
}
.small-button {
  padding: 9px 14px;
  background: #e9eee1;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  margin: 8px 0;
}
.progress-line {
  height: 4px;
  background: #e2e8db;
  border-radius: 9px;
  margin: 0 0 18px;
  overflow: hidden;
}
.progress-line i {
  height: 100%;
  background: #f4794b;
  display: block;
  transition: width 0.2s;
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 760px) {
  #app {
    padding: 0 36px;
  }
  .header {
    height: 100px;
  }
  .navigation {
    width: 440px;
    margin-bottom: 32px;
  }
  .section-head h1 {
    font-size: 34px;
  }
  .question-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 32px;
  }
  .scene-panel {
    height: 470px;
    border-radius: 25px;
  }
  .question-panel h2 {
    font-size: 26px;
    line-height: 1.3;
  }
  .answer {
    font-size: 13px;
    padding: 16px;
  }
  .question-column {
    padding-top: 3px;
  }
  .ticket-grid {
    grid-template-columns: repeat(8, 1fr);
  }
  .intro h1 {
    font-size: 40px;
  }
  .ticket {
    padding: 20px 8px;
  }
  .stats {
    max-width: 650px;
  }
  .collection {
    max-width: 650px;
  }
  .no-3d .scene-panel {
    height: 330px;
  }
  .no-3d .question-panel {
    padding-top: 0;
  }
  .footer {
    margin: 32px 0;
  }
  .source-label {
    max-width: 700px;
  }
  .question-meta {
    margin-bottom: 15px;
  }
}
@media (max-width: 370px) {
  #app {
    padding: 0 13px;
  }
  .brand {
    font-size: 24px;
  }
  .header {
    height: 76px;
  }
  .scene-panel {
    height: 290px;
  }
  .section-head h1 {
    font-size: 23px;
  }
  .navigation {
    margin-bottom: 20px;
  }
  .question-panel h2 {
    font-size: 19px;
  }
  .tag {
    font-size: 10px;
    padding: 8px;
  }
  .scene-badge {
    font-size: 7px;
  }
  .view-switch button {
    padding: 5px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 759px) {
  .header {
    height: 68px;
  }
  .brand {
    font-size: 24px;
  }
  .brand-icon {
    width: 35px;
    height: 35px;
    font-size: 32px;
    border-radius: 11px;
  }
  .brand-sub {
    font-size: 7px;
    letter-spacing: 1.6px;
    margin-top: 5px;
  }
  .navigation {
    margin-bottom: 17px;
  }
  .navigation > button {
    padding: 10px 5px;
  }
  .section-head {
    margin-bottom: 13px;
  }
  .section-head h1 {
    font-size: 23px;
    letter-spacing: -0.8px;
  }
  .section-head .eyebrow {
    font-size: 8px;
    letter-spacing: 1.4px;
  }
  .counter-button {
    padding: 9px 11px;
  }
  .scene-panel {
    height: 300px;
  }
  .transport {
    padding: 12px 0;
  }
  .scene-help {
    display: block;
    font-size: 12px;
    color: #63735d;
  }
  .question-panel h2 {
    font-size: 20px;
    margin-bottom: 15px;
  }
  .question-meta {
    margin-bottom: 6px;
  }
  .answer {
    min-height: 53px;
    padding: 12px;
    font-size: 12px;
  }
  .question-nav {
    margin-top: 9px;
  }
  .footer {
    margin-top: 17px;
  }
}
@media (max-width: 370px) {
  .scene-panel {
    height: 260px;
  }
  .question-panel h2 {
    font-size: 18px;
  }
  .section-head h1 {
    font-size: 21px;
  }
}

@media (max-width: 759px) {
  .without-picture .scene-panel {
    display: none;
  }
  .without-picture .question-panel {
    padding-top: 5px;
  }
}

/* Scenario library: new additions remain easy to find as the collection grows. */
.scene-filters {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
  position: sticky;
  top: 0;
  background: var(--paper, #f7f8f5);
  padding: 6px 0;
  z-index: 2;
}
.scene-filters button {
  border: 1px solid #dce4d8;
  border-radius: 12px;
  background: #fff;
  padding: 10px 17px;
  font: inherit;
  font-size: 13px;
  color: #46604f;
  cursor: pointer;
}
.scene-filters button.selected {
  background: #294e42;
  color: #fff;
  border-color: #294e42;
}
.explanation-steps {
  margin: 14px 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.65;
}
.explanation-steps li {
  padding-left: 3px;
  margin: 7px 0;
}

/* Answer-gated playback and device feedback preferences. */
[hidden] {
  display: none !important;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.settings-button {
  background: white;
  border: 1px solid #e1e5df;
  width: 36px;
  height: 36px;
}
.before-answer-note {
  font-size: 11px;
  line-height: 1.55;
  color: #7a8980;
  margin: 13px 0 18px;
  text-align: center;
}
.scene-help {
  margin: 0 0 16px;
}
.playback-summary {
  padding: 14px 0 0;
  font-size: 12px;
  color: #4d6457;
}
.playback-summary strong {
  display: block;
  font-size: 13px;
}
.playback-summary p {
  line-height: 1.65;
  margin: 7px 0;
}
.crash-summary {
  color: #885342;
}
.crash-notice {
  border-left: 2px solid #e7ad87;
  padding-left: 10px;
  color: #7e6f61;
  font-size: 11px;
}
.outcome-switch {
  display: flex;
  gap: 5px;
  padding: 4px;
  background: #e9ede6;
  border-radius: 13px;
  margin: 0 0 12px;
}
.outcome-switch button {
  flex: 1;
  font-size: 11px;
  font-weight: 750;
  padding: 10px 7px;
  border-radius: 10px;
  color: #728075;
}
.outcome-switch button[aria-pressed="true"] {
  background: white;
  color: #263b30;
  box-shadow: 0 2px 5px #253a2510;
}
.outcome-switch button[data-outcome="crash"][aria-pressed="true"] {
  color: #b96142;
}
.settings-list {
  border: 1px solid #e0e5dc;
  background: white;
  border-radius: 18px;
  overflow: hidden;
  margin: 19px 0;
}
.setting-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 19px 16px;
  cursor: pointer;
  position: relative;
}
.setting-row + .setting-row {
  border-top: 1px solid #edf0e9;
}
.setting-row > span:first-child {
  flex: 1;
}
.setting-row b {
  display: block;
  font-size: 14px;
}
.setting-row small {
  display: block;
  font-size: 11px;
  color: #8c9789;
  margin-top: 5px;
  line-height: 1.5;
}
.setting-row input {
  position: absolute;
  right: 16px;
  width: 44px;
  height: 27px;
  opacity: 0;
  margin: 0;
  z-index: 1;
  cursor: pointer;
}
.switch-track {
  width: 44px;
  height: 27px;
  border-radius: 30px;
  background: #d8dfd4;
  padding: 3px;
  flex-shrink: 0;
  transition: background 0.18s;
}
.switch-track:after {
  content: "";
  display: block;
  background: white;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  box-shadow: 0 1px 3px #182c2220;
  transition: transform 0.18s;
}
.setting-row input:checked + .switch-track {
  background: #f47748;
}
.setting-row input:checked + .switch-track:after {
  transform: translateX(17px);
}
.setting-row input:focus-visible + .switch-track {
  outline: 3px solid #f97647;
  outline-offset: 4px;
}
.setting-row input:disabled + .switch-track {
  opacity: 0.4;
}
@media (max-width: 370px) {
  .header-actions {
    gap: 5px;
  }
  .tag span {
    margin-left: 2px;
  }
  .settings-button {
    width: 32px;
    height: 32px;
  }
  .brand {
    font-size: 22px;
  }
  .brand-icon {
    width: 32px;
  }
}

.tiny-pill {
  white-space: nowrap;
  display: inline-block;
}

/* Рульно: the selected warm ivory / mint / deep teal product direction. */
:root {
  --paper: #f7f6f0;
  --ink: #173e3d;
  --mint: #e0ede5;
  --mint-strong: #c7ddcf;
  --clay: #ca795f;
  --line: #e4e7dd;
  --muted: #778781;
}
html,
body {
  background: var(--paper);
  color: var(--ink);
}
#app {
  max-width: 1060px;
  padding: 0 28px 100px;
}
.header {
  height: 92px;
}
.brand {
  font-size: 30px;
  letter-spacing: -1.4px;
  gap: 7px;
}
.brand-logo {
  border-radius: 12px;
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.ui-icon {
  display: inline-block;
  vertical-align: middle;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  opacity: 0.82;
}
.header-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}
.header .icon-button {
  background: transparent;
}
.tag {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.3px;
  background: transparent;
  border-color: var(--line);
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: var(--muted);
}
.intro {
  padding-top: 10px;
  margin-bottom: 24px;
}
.intro h1,
.home-intro h1 {
  font-size: 40px;
  line-height: 1.14;
  letter-spacing: -1.8px;
  font-weight: 800;
  margin: 12px 0 13px;
}
.intro p,
.home-intro p {
  font-size: 14px;
  color: var(--muted);
  max-width: 520px;
  margin: 0;
}
.home-intro {
  margin: 10px 0 25px;
}
.home-intro h1 {
  font-size: 43px;
  letter-spacing: -2px;
  line-height: 1.16;
}
.mentor-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 108px;
  border: 1px solid #d5e5db;
  border-radius: 22px;
  background: #e7efe6;
  padding: 11px 22px 0;
  overflow: hidden;
  margin-bottom: 22px;
}
.stepan {
  height: 105px;
  width: 96px;
  object-fit: contain;
  object-position: center bottom;
  align-self: flex-end;
  flex: 0 0 auto;
}
.mentor-banner b {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
}
.mentor-banner p {
  font-size: 12px;
  color: #687f76;
  margin: 5px 0 14px;
}
.mentor-banner.small {
  margin: 22px 0;
}
.mentor-banner.small .stepan {
  height: 86px;
  width: 75px;
}
.mentor-banner.small b {
  font-size: 14px;
}
.resume-card {
  background: #fff;
  border: 1px solid #e5e8df;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 7px 19px #163b2d04;
  margin-bottom: 22px;
}
.resume-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.resume-heading h2 {
  font-size: 20px;
  letter-spacing: -0.6px;
  margin: 6px 0 16px;
}
.resume-percent {
  font-size: 16px;
  font-weight: 800;
  color: #5b8e75;
}
.progress-line {
  height: 5px;
  border-radius: 8px;
  background: #eef0e9;
  overflow: hidden;
  margin: 0 0 12px;
}
.progress-line i {
  height: 100%;
  display: block;
  background: #a3c3ae;
  border-radius: 8px;
}
.home-scene {
  height: 260px;
  margin: 0 -9px 14px;
  border-radius: 18px;
  overflow: hidden;
  background: #e9ede2;
}
.home-scene canvas,
.home-scene img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.primary-button,
.next-button {
  background: var(--ink);
  color: white;
  border-radius: 14px;
  min-height: 52px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: none;
  width: 100%;
}
.primary-button .ui-icon,
.next-button .ui-icon {
  filter: invert(1);
  opacity: 0.95;
}
.primary-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.resume-card .primary-button {
  justify-content: center;
  padding-left: 22px;
  padding-right: 22px;
}
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #edf2eb;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #e0e7dc;
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5b756c;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 0;
}
.text-button .ui-icon {
  width: 15px;
  height: 15px;
}
.action-group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 21px;
  overflow: hidden;
  margin: 18px 0;
}
.action-row {
  display: flex;
  align-items: center;
  gap: 17px;
  width: 100%;
  min-height: 95px;
  padding: 20px 24px;
  text-align: left;
  border-bottom: 1px solid #edf0e9;
}
.action-row:last-child {
  border-bottom: 0;
}
.action-icon,
.round-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mint);
  flex: 0 0 auto;
}
.action-icon .ui-icon,
.round-icon .ui-icon {
  width: 25px;
  height: 25px;
}
.action-row.clay .action-icon,
.round-icon.clay {
  background: #faeee7;
}
.action-row > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.action-row b {
  display: block;
  font-size: 16px;
  letter-spacing: -0.35px;
}
.action-row small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}
.row-chevron {
  width: 18px;
  height: 18px;
  opacity: 0.45;
}
.home-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  color: var(--muted);
  font-size: 11px;
  padding: 0 3px;
}
.navigation {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  max-width: 1060px;
  width: 100%;
  margin: 0;
  padding: 10px 24px max(13px, env(safe-area-inset-bottom));
  border-radius: 0;
  background: #f9faf5f5;
  border-top: 1px solid #e2e7de;
  backdrop-filter: blur(18px);
  gap: 5px;
}
.navigation > button {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 53px;
  font-size: 10px;
  color: #819089;
  padding: 8px 7px;
  position: relative;
  border-radius: 0;
}
.navigation > button.active {
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}
.navigation > button .ui-icon {
  width: 23px;
  height: 23px;
  opacity: 0.45;
}
.navigation > button.active .ui-icon {
  opacity: 0.95;
}
.navigation > button.active:before {
  content: "";
  height: 3px;
  width: 36px;
  border-radius: 9px;
  background: #9ab5a3;
  position: absolute;
  top: -10px;
}
.footer {
  border: 0;
  padding: 26px 0 10px;
  font-size: 10px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0.75;
}
.status-dot {
  background: #8eae99;
}
.animated-promo {
  background: var(--mint);
  border-radius: 21px;
  padding: 20px;
  display: flex;
  gap: 15px;
  align-items: center;
  width: 100%;
  text-align: left;
}
.animated-promo > div {
  flex: 1;
}
.animated-promo b {
  font-size: 17px;
}
.animated-promo p {
  font-size: 12px;
  margin: 6px 0 0;
  color: #657e72;
}
.mode-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 22px 0;
}
.mode-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 20px;
  background: white;
  border-radius: 20px;
  text-align: left;
  border: 1px solid var(--line);
  min-height: 170px;
}
.mode-card b {
  font-size: 15px;
  letter-spacing: -0.25px;
}
.mode-card small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.mode-card .round-icon {
  width: 43px;
  height: 43px;
  margin-bottom: 5px;
}
.ticket-grid {
  grid-template-columns: repeat(8, 1fr);
}
.ticket {
  border-color: var(--line);
  border-radius: 18px;
}
.ticket b {
  color: var(--ink);
}
.ticket.complete {
  background: #e5f0e6;
}
.panel {
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #fff;
  margin: 20px 0;
}
.panel h2 {
  font-size: 19px;
  margin: 0 0 15px;
}
.panel p {
  color: #647970;
  line-height: 1.7;
}
.stat {
  border-color: var(--line);
  background: white;
  border-radius: 22px;
  padding: 25px;
}
.stat.accent {
  background: var(--ink);
}
.stat b small {
  font-size: 16px;
  letter-spacing: 0;
  color: #91a69b;
  font-weight: 600;
}
.stat p {
  color: #93a69b;
}
.stat:not(.accent) p {
  color: var(--muted);
}
.stat:not(.accent) b {
  color: var(--ink);
}
.history-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.history-row:last-child {
  border-bottom: 0;
}
.muted {
  color: var(--muted);
}
.profile-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 27px;
  text-align: center;
}
.profile-avatar {
  height: 72px;
  width: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: #e7eee5;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.profile-avatar .ui-icon {
  width: 32px;
  height: 32px;
  opacity: 0.5;
}
.profile-avatar > img:not(.ui-icon) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-card h2 {
  font-size: 23px;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
}
.profile-card p {
  color: var(--muted);
  font-size: 13px;
  max-width: 470px;
  margin: 10px auto 20px;
}
.login-button {
  width: 100%;
  min-height: 50px;
  margin-top: 9px;
  border: 1px solid #e0e5dd;
  border-radius: 13px;
  font-weight: 750;
  text-align: left;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f7f8f4;
}
.login-button.vk {
  background: #eaf3fc;
}
.auth-form {
  text-align: left;
  margin-top: 4px;
}
.auth-form label {
  margin: 14px 0;
}
.auth-form .primary-button {
  width: 100%;
  margin-top: 6px;
}
.auth-optional {
  position: relative;
}
.auth-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  text-align: left;
  font-size: 13px !important;
  font-weight: 700;
  color: var(--ink) !important;
  background: #f1f3ed;
  border-radius: 13px;
  padding: 11px 14px;
  margin: 0 0 6px !important;
  word-break: break-word;
}
.auth-identity .text-button {
  flex: none;
  font-size: 12px;
}
.auth-or {
  font-size: 12px !important;
  text-transform: lowercase;
  margin: 16px 0 2px !important;
}
.auth-error {
  color: #a35c46;
  font-size: 12px !important;
  text-align: left;
  margin: 0 0 10px !important;
  line-height: 1.5;
}
.city-suggestions {
  list-style: none;
  margin: 6px 0 0;
  padding: 5px;
  max-height: 232px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: 0 12px 28px rgba(31, 43, 32, 0.12);
  position: absolute;
  left: 0;
  right: 0;
  z-index: 5;
}
.city-suggestions button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 9px;
  padding: 9px 11px;
  font: inherit;
}
.city-suggestions button:hover,
.city-suggestions button:focus-visible {
  background: #f1f3ed;
}
.city-suggestions b {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
.city-suggestions small {
  color: var(--muted);
  font-size: 11px;
}
.auth-city-chosen {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
  min-height: 13px;
}
.profile-exit {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 5px 4px;
}
.danger {
  color: #b76b53;
}
.danger-button {
  background: #a35c46;
}
.inline-notice {
  background: #f1f3ed;
  border-radius: 13px;
  font-size: 12px;
  padding: 15px;
  color: #728175;
  line-height: 1.6;
}
.sync-state {
  font-size: 11px !important;
}
.profile-card .small-button {
  margin: 3px;
}
.profile-card > .text-button {
  display: flex;
  margin: auto;
}
.pro-intro {
  display: flex;
  align-items: center;
  gap: 17px;
  background: var(--mint);
  padding: 16px 18px 0;
  border-radius: 18px;
  overflow: hidden;
}
.pro-intro .stepan {
  height: 120px;
  width: 96px;
}
.pro-intro h3 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin: 4px 0;
}
.pro-intro p {
  font-size: 12px;
}
.pro-features {
  padding: 14px 18px 5px;
  line-height: 1.9;
  font-size: 14px;
}
.tariff-list {
  display: grid;
  gap: 10px;
  margin: 15px 0;
}
.tariff {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 18px;
  background: #f0f5ee;
  border: 1px solid #d9e4d8;
  border-radius: 15px;
  text-align: left;
}
.tariff b,
.tariff strong {
  font-size: 16px;
}
.tariff small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.mentor-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
}
.mentor-steps li {
  counter-increment: step;
  position: relative;
  padding: 16px 12px 20px 46px;
  border-bottom: 1px solid var(--line);
  line-height: 1.65;
  font-size: 13px;
}
.mentor-steps li:before {
  content: counter(step);
  position: absolute;
  left: 4px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mint);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.topic-stats > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.topic-stats b {
  font-size: 13px;
}
.topic-stats span {
  font-size: 11px;
  display: block;
  color: var(--muted);
  margin: 6px 0 10px;
}
form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin: 16px 0;
}
form input:not([type="checkbox"]),
form textarea,
form select,
.search-field input {
  font: inherit;
  border: 1px solid #dce3d9;
  background: #fff;
  color: var(--ink);
  width: 100%;
  border-radius: 11px;
  padding: 13px;
  margin-top: 7px;
  outline-offset: 2px;
}
textarea {
  resize: vertical;
}
.search-field {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 15px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  margin-bottom: 20px;
}
.search-field input {
  border: 0;
  padding: 12px 0;
  margin: 0;
}
.sign-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}
.sign-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  text-align: center;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.sign-card img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin: 5px 0 10px;
}
.sign-card span {
  font-size: 11px;
  color: var(--muted);
}
.sign-card b {
  font-size: 13px;
}
.sign-detail {
  text-align: center;
}
.sign-detail > img {
  max-width: 240px;
  height: 220px;
  object-fit: contain;
  margin: 20px;
}
.sign-detail p {
  text-align: left;
  line-height: 1.7;
}
.sign-detail a {
  font-size: 11px;
  display: block;
  text-decoration: underline;
  margin: 20px;
}
.explanation-actions {
  display: grid;
  gap: 8px;
  margin: 15px 0;
}
.mentor-button,
.comment-button {
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  background: #e7eee3;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}
.mentor-button span {
  font-size: 9px;
  margin-left: auto;
  border: 1px solid #bbcbbb;
  border-radius: 6px;
  padding: 2px 5px;
}
.comment-button {
  background: #fff;
  border: 1px solid var(--line);
}
.explanation-actions .ui-icon {
  width: 19px;
  height: 19px;
}
.comment {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px;
  margin: 10px 0;
}
.comment.reply {
  margin-left: 20px;
  background: #f8faf6;
}
.comment > div:first-child {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  font-size: 11px;
}
.comment time {
  color: var(--muted);
  font-size: 10px;
}
.comment p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
  font-size: 13px;
}
.comment-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 10px;
}
.comment-actions button {
  padding: 5px 0;
  color: #7b8f7f;
}
.empty-discussion {
  padding: 18px 0;
  color: var(--muted);
  font-size: 13px;
}
.exam-intro {
  max-width: 720px;
  margin: 15px auto;
}
.exam-intro h1 {
  font-size: 34px;
  letter-spacing: -1px;
}
.exam-intro ul {
  padding: 10px 18px;
  line-height: 1.8;
  font-size: 13px;
}
.exam-intro li {
  padding-bottom: 10px;
}
.exam-intro .small-button {
  margin-top: 12px;
}
.exam-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0;
}
.exam-top > b {
  background: var(--ink);
  color: white;
  font-variant-numeric: tabular-nums;
  padding: 9px 16px;
  border-radius: 11px;
  font-size: 18px;
}
.exam-progress {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 15px;
}
.exam-image {
  width: 100%;
  max-height: 330px;
  object-fit: contain;
  background: #fafaf5;
  border-radius: 13px;
  margin-bottom: 22px;
}
.exam-question h2 {
  font-size: 22px;
  margin: 10px 0 22px;
  line-height: 1.5;
  letter-spacing: -0.6px;
}
.exam-question .primary-button {
  margin-top: 20px;
}
.answer.chosen {
  border-color: #688f7b;
  background: #eef5ed;
}
.answer.chosen .answer-index {
  background: var(--ink);
  color: white;
}
.exam-result {
  text-align: center;
  padding: 30px;
}
.exam-result .round-icon {
  margin: 0 auto 20px;
}
.exam-result h1 {
  font-size: 35px;
  line-height: 1.2;
  letter-spacing: -1px;
}
.exam-result .primary-button {
  max-width: 340px;
  margin: 24px auto 0;
}
.list-title {
  font-size: 20px;
  margin: 27px 0 15px;
}
.note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.rule-tag {
  background: #e7ede1;
  color: #637b63;
}
.question-panel h2 {
  color: var(--ink);
}
.question-layout {
  margin-top: 15px;
}
.section-head {
  margin-top: 10px;
}
.section-head h1 {
  font-size: 25px;
}
.question-meta {
  margin-top: 8px;
}
.bookmark {
  display: grid;
  place-items: center;
}
.bookmark.saved {
  background: #e5eddf;
  color: var(--ink);
}
.bookmark .ui-icon {
  height: 21px;
  width: 21px;
}
.result {
  border-color: #dce7d6;
  background: #edf5e8;
}
.result.error {
  background: #fff3e9;
  border-color: #eed6bd;
}
.result-title {
  color: var(--ink);
}
.modal-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 17px;
  margin-bottom: 12px;
}
dialog {
  background: var(--paper);
  color: var(--ink);
  border-radius: 24px;
  border: 1px solid #dbe4d6;
  max-height: 90dvh;
}
dialog h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
}
dialog::backdrop {
  background: #18393160;
  backdrop-filter: blur(5px);
}
#toast {
  background: var(--ink);
  bottom: 90px;
}
.settings-list {
  border-color: var(--line);
}
.setting-row {
  margin: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #789e87;
  outline-offset: 3px;
}
.primary-button:active,
.action-row:active,
.mode-card:active {
  transform: translateY(1px);
}
@media (min-width: 780px) {
  .home-intro,
  .mentor-banner:not(.small),
  .resume-card,
  .home-foot {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
  }
  .home-intro ~ .action-group {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
  }
  .home-scene {
    height: 315px;
  }
  .home-intro {
    margin-top: 20px;
  }
  .home-intro h1 {
    font-size: 50px;
  }
  .profile-card {
    max-width: 600px;
    margin: auto;
  }
  .question-layout {
    gap: 28px;
  }
  .question-panel h2 {
    font-size: 23px;
  }
  .navigation > button {
    flex-direction: row;
    font-size: 12px;
    gap: 10px;
  }
  .footer {
    margin-top: 20px;
  }
  .home-intro ~ .mentor-banner {
    padding-left: 32px;
  }
  .home-intro ~ .mentor-banner .stepan {
    height: 118px;
    width: 105px;
  }
}
@media (max-width: 779px) {
  #app {
    padding: 0 20px 100px;
  }
  .header {
    height: 79px;
  }
  .brand {
    font-size: 27px;
  }
  .brand-logo {
    height: 42px;
    width: 42px;
  }
  .home-intro {
    margin: 9px 0 24px;
  }
  .home-intro h1 {
    font-size: 37px;
    letter-spacing: -1.5px;
  }
  .home-intro > .eyebrow {
    font-size: 8px;
  }
  .mentor-banner {
    gap: 12px;
    padding: 10px 14px 0;
    min-height: 100px;
    border-radius: 18px;
    margin-bottom: 18px;
  }
  .mentor-banner .stepan {
    height: 92px;
    width: 82px;
  }
  .mentor-banner b {
    font-size: 14px;
  }
  .mentor-banner p {
    font-size: 10px;
    margin-top: 4px;
  }
  .resume-card {
    padding: 19px;
    border-radius: 22px;
    margin-bottom: 18px;
  }
  .resume-heading h2 {
    font-size: 17px;
    margin-bottom: 15px;
  }
  .resume-heading .eyebrow {
    font-size: 8px;
  }
  .resume-percent {
    font-size: 13px;
  }
  .home-scene {
    height: auto;
    aspect-ratio: 2.17;
    margin: 0 -7px 14px;
  }
  .action-row {
    padding: 18px;
    gap: 14px;
    min-height: 84px;
  }
  .action-row b {
    font-size: 15px;
  }
  .action-row small {
    font-size: 10px;
  }
  .action-icon {
    height: 43px;
    width: 43px;
  }
  .action-icon .ui-icon {
    width: 22px;
    height: 22px;
  }
  .action-group {
    border-radius: 19px;
  }
  .home-foot {
    font-size: 9px;
  }
  .home-foot .text-button {
    font-size: 10px;
  }
  .navigation {
    padding-left: 12px;
    padding-right: 12px;
  }
  .intro h1 {
    font-size: 32px;
  }
  .intro p {
    font-size: 12px;
  }
  .mode-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
  }
  .mode-card {
    padding: 17px;
    min-height: 166px;
    border-radius: 18px;
  }
  .mode-card b {
    font-size: 14px;
  }
  .mode-card small {
    font-size: 10px;
  }
  .animated-promo {
    padding: 18px 15px;
    gap: 12px;
  }
  .animated-promo b {
    font-size: 15px;
  }
  .animated-promo p {
    font-size: 10px;
  }
  .animated-promo .round-icon {
    width: 43px;
    height: 43px;
  }
  .ticket-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 18px;
  }
  .stat b {
    font-size: 40px;
  }
  .stat b small {
    font-size: 12px;
  }
  .stat .eyebrow {
    font-size: 8px;
  }
  .stat p {
    font-size: 10px;
  }
  .panel {
    padding: 20px;
    border-radius: 20px;
  }
  .sign-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
  }
  .sign-card img {
    width: 95px;
    height: 95px;
  }
  .sign-card {
    padding: 15px;
  }
  .sign-card b {
    font-size: 12px;
  }
  .profile-card {
    padding: 23px;
  }
  .profile-card h2 {
    font-size: 21px;
  }
  .question-panel h2 {
    font-size: 21px;
  }
  .scene-panel {
    height: 310px;
  }
  .exam-question h2 {
    font-size: 20px;
  }
  .exam-result h1 {
    font-size: 30px;
  }
  .exam-question .answer {
    font-size: 12px;
  }
  .exam-image {
    max-height: 230px;
  }
  dialog {
    width: calc(100vw - 24px);
    padding: 21px;
    max-height: 91dvh;
  }
  .pro-intro {
    gap: 10px;
    padding: 12px 13px 0;
  }
  .pro-intro .stepan {
    width: 78px;
    height: 105px;
  }
  .pro-intro h3 {
    font-size: 17px;
  }
  .pro-intro p {
    font-size: 11px;
  }
  .section-head .eyebrow {
    max-width: 245px;
  }
  .section-head h1 {
    font-size: 22px;
  }
  .counter-button {
    gap: 6px;
    padding: 9px 10px;
  }
  .tag {
    padding: 7px 9px;
    font-size: 9px;
  }
  .footer {
    font-size: 9px;
  }
  .no-3d .scene-panel {
    height: 260px;
  }
}
@media (max-width: 360px) {
  #app {
    padding-left: 15px;
    padding-right: 15px;
  }
  .home-intro h1 {
    font-size: 33px;
  }
  .header-actions .tag {
    display: none;
  }
  .mentor-banner b {
    font-size: 13px;
  }
  .mentor-banner .stepan {
    width: 72px;
    height: 89px;
  }
  .home-scene {
    height: auto;
  }
  .mode-card {
    padding: 14px;
  }
  .action-row {
    padding: 16px;
  }
  .navigation > button {
    font-size: 9px;
  }
  .resume-heading h2 {
    font-size: 16px;
  }
}
.artwork-credit {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
  text-align: left;
}
.artwork-credit a {
  font-size: inherit;
  display: inline;
  margin: 0;
  text-decoration: underline;
}
.explanation-source {
  display: block;
  font-size: 10px;
  opacity: 0.65;
  margin: 8px 0 12px;
}

/* Home proportions and portrait crop follow the approved brand reference. */
.mentor-portrait {
  position: relative;
  width: 96px;
  height: 105px;
  flex: 0 0 auto;
  align-self: flex-end;
  overflow: hidden;
}
.mentor-banner .mentor-portrait .stepan {
  position: absolute;
  width: 180px;
  height: 180px;
  max-width: none;
  left: -42px;
  top: -2px;
  object-fit: contain;
}
.resume-meter {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 105px;
}
.resume-meter .progress-line {
  flex: 1;
  margin: 0;
  height: 5px;
}
.resume-heading {
  margin-bottom: 16px;
}
.resume-heading h2 {
  margin: 0;
}
#home-tickets .action-icon {
  background: var(--clay);
}
#home-tickets .action-icon .ui-icon {
  filter: invert(1);
  opacity: 1;
}
@media (max-width: 779px) {
  .mentor-portrait {
    width: 80px;
    height: 90px;
  }
  .mentor-banner .mentor-portrait .stepan {
    width: 157px;
    height: 157px;
    left: -39px;
    top: -2px;
  }
  .resume-heading {
    gap: 9px;
  }
  .resume-heading h2 {
    font-size: 14px;
    letter-spacing: -0.4px;
  }
  .resume-meter {
    flex-basis: 78px;
    gap: 7px;
  }
  .resume-card .primary-button {
    min-height: 50px;
    font-size: 15px;
  }
}

/* Keep both primary modes visible beside the fixed navigation on phones. */
@media (max-width: 779px) {
  .home-intro { margin: 4px 0 18px; }
  .home-intro > .eyebrow { display: none; }
  .home-intro h1 { margin: 8px 0 12px; }
  .home-intro + .mentor-banner { min-height: 76px; padding: 4px 12px 0; margin-bottom: 16px; }
  .home-intro + .mentor-banner .mentor-portrait { width: 68px; height: 70px; }
  .home-intro + .mentor-banner .stepan { width: 140px; height: 140px; left: -35px; top: -2px; }
  .home-intro + .mentor-banner p { margin-bottom: 9px; }
  .home-intro ~ .resume-card { padding: 16px; margin-bottom: 16px; }
  .home-intro ~ .resume-card .home-scene { aspect-ratio: 2; }
  .home-intro ~ .action-group .action-row { min-height: 74px; padding: 13px 16px; }
}
