:root {
  --ink: #071b3c;
  --blue: #155dc0;
  --electric: #1479e8;
  --cyan: #70dff3;
  --lime: #c8f36a;
  --paper: #f3f0e7;
  --white: #fffef9;
  --orange: #ff7547;
  --muted: #687487;
  --line: rgba(7, 27, 60, 0.16);
  --display: "DM Sans", sans-serif;
  --body: "Be Vietnam Pro", sans-serif;
  --serif: "Fraunces", serif;
  --shadow: 0 30px 90px rgba(7, 27, 60, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(7, 27, 60, 0.04) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(rgba(7, 27, 60, 0.04) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--paper);
  font-family: var(--body);
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.lab-header {
  position: relative;
  z-index: 30;
  display: flex;
  width: min(100% - 52px, 1380px);
  min-height: 88px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.lab-header img {
  width: 154px;
}

.lab-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 11px;
  font-weight: 700;
}

.lab-header a {
  color: inherit;
  text-decoration: none;
}

.lab-header-cta {
  padding: 12px 17px;
  border-radius: 999px;
  color: var(--white) !important;
  background: var(--ink);
}

.lab-hero {
  display: grid;
  width: min(100% - 52px, 1380px);
  min-height: 760px;
  margin: 0 auto;
  padding: 74px 0 42px;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: 1fr auto;
  gap: 22px;
}

.lab-hero-copy {
  position: relative;
  display: flex;
  padding: clamp(38px, 6vw, 82px);
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 34px;
  color: var(--white);
  background:
    radial-gradient(circle at 90% 12%, rgba(112, 223, 243, 0.45), transparent 28%),
    linear-gradient(145deg, #0b2858, var(--ink));
  box-shadow: var(--shadow);
}

.lab-hero-copy::after {
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 52px rgba(255, 255, 255, 0.035),
    0 0 0 104px rgba(255, 255, 255, 0.025);
  content: "";
}

.lab-hero-copy > p,
.console-top span,
.review-desk > div > p,
.competence-passport header p,
.room-heading > div p,
.membership-copy > p,
.runner-header p,
.stage-kicker {
  margin: 0;
  color: var(--cyan);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lab-hero-copy h1 {
  position: relative;
  z-index: 1;
  margin: 42px 0;
  font: 800 clamp(60px, 7.8vw, 116px)/0.84 var(--display);
  letter-spacing: -0.07em;
}

.lab-hero-copy h1 em {
  color: var(--lime);
  font-family: var(--serif);
  font-weight: 600;
}

.lab-hero-copy > span {
  position: relative;
  z-index: 1;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  line-height: 1.8;
}

.daily-console {
  display: flex;
  padding: clamp(34px, 5vw, 64px);
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 34px;
  background:
    radial-gradient(circle at 100% 0, rgba(20, 121, 232, 0.24), transparent 34%),
    rgba(255, 254, 249, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.console-top {
  display: flex;
  padding-bottom: 17px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.console-top span {
  color: var(--blue);
}

.console-top b {
  font-size: 9px;
}

.daily-console > p {
  margin: 50px 0 12px;
  color: var(--orange);
  font-size: 10px;
  font-weight: 800;
}

.daily-console h2 {
  margin: 0;
  font: 800 clamp(38px, 5vw, 68px)/0.98 var(--display);
  letter-spacing: -0.055em;
}

.daily-console > span {
  margin-top: 25px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.daily-console > button {
  display: flex;
  width: 100%;
  margin-top: 42px;
  padding: 16px 18px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 14px;
  color: var(--ink);
  background: var(--lime);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.daily-console > button b {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
}

.hero-proof {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 254, 249, 0.72);
}

.hero-proof > div {
  display: flex;
  min-height: 130px;
  padding: 25px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border-right: 1px solid var(--line);
}

.hero-proof > div:last-child {
  border-right: 0;
}

.hero-proof strong {
  font: 800 clamp(31px, 4vw, 58px)/0.9 var(--display);
  letter-spacing: -0.055em;
}

.hero-proof span {
  max-width: 130px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
  text-align: right;
}

.review-desk,
.competence-passport,
.lab-room,
.membership {
  width: min(100% - 52px, 1380px);
  margin-inline: auto;
}

.review-desk {
  display: grid;
  margin-top: 32px;
  padding: clamp(32px, 5vw, 62px);
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  border-radius: 30px;
  color: var(--white);
  background:
    radial-gradient(circle at 100% 0, rgba(200, 243, 106, 0.24), transparent 28%),
    var(--ink);
}

.review-desk h2,
.competence-passport h2,
.membership-copy h2 {
  margin: 14px 0 0;
  font: 800 clamp(39px, 5vw, 72px)/0.96 var(--display);
  letter-spacing: -0.055em;
}

.review-desk h2 em,
.competence-passport h2 em,
.membership-copy h2 em {
  color: var(--cyan);
  font-family: var(--serif);
  font-weight: 600;
}

.review-desk [data-review-list] {
  display: grid;
  gap: 10px;
}

.review-item {
  display: grid;
  padding: 16px;
  grid-template-columns: 1fr auto;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.review-item strong {
  font-size: 11px;
}

.review-item span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 8px;
}

.review-item button {
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  color: var(--ink);
  background: var(--lime);
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}

.competence-passport {
  margin-top: 110px;
}

.competence-passport header {
  display: flex;
  margin-bottom: 32px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.competence-passport header p {
  color: var(--blue);
}

.competence-passport header > span {
  color: var(--muted);
  font-size: 9px;
}

.receipt-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.competence-receipt,
.empty-receipt {
  display: flex;
  min-height: 260px;
  padding: 28px;
  grid-column: span 4;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
}

.competence-receipt {
  color: var(--white);
  background:
    radial-gradient(circle at 90% 10%, rgba(112, 223, 243, 0.4), transparent 29%),
    var(--ink);
}

.competence-receipt:nth-child(3n + 2) {
  color: var(--ink);
  background: var(--lime);
}

.competence-receipt:nth-child(3n + 3) {
  background: linear-gradient(145deg, var(--electric), var(--blue));
}

.competence-receipt > span,
.empty-receipt > span {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.competence-receipt strong {
  margin: 35px 0;
  font: italic 600 26px/1.25 var(--serif);
}

.competence-receipt small {
  color: currentColor;
  opacity: 0.6;
  font-size: 8px;
}

.empty-receipt {
  border: 1px dashed var(--line);
  background: rgba(255, 254, 249, 0.45);
}

.empty-receipt p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

#rooms {
  margin-top: 130px;
}

.lab-room {
  margin-top: 28px;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 34px;
}

.room-sentence {
  background: #dcecff;
}

.room-logic {
  color: var(--white);
  background:
    radial-gradient(circle at 92% 8%, rgba(200, 243, 106, 0.22), transparent 26%),
    #092653;
}

.room-sound {
  background:
    radial-gradient(circle at 12% 0, rgba(112, 223, 243, 0.44), transparent 28%),
    #e7f2e6;
}

.room-heading {
  display: grid;
  padding-bottom: 40px;
  grid-template-columns: 76px 1fr 0.8fr;
  align-items: end;
  gap: 24px;
  border-bottom: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 18%, transparent);
}

.room-heading > span {
  font: 800 12px/1 var(--body);
}

.room-heading > div p {
  color: var(--blue);
}

.room-logic .room-heading > div p {
  color: var(--lime);
}

.room-heading h2 {
  margin: 8px 0 0;
  font: 800 clamp(43px, 6vw, 82px)/0.9 var(--display);
  letter-spacing: -0.06em;
}

.room-heading > p {
  max-width: 430px;
  margin: 0;
  justify-self: end;
  color: currentColor;
  opacity: 0.65;
  font-size: 11px;
  line-height: 1.7;
}

.mission-grid {
  display: grid;
  margin-top: 28px;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.lab-mission-card {
  min-height: 330px;
  padding: 27px;
  border: 1px solid rgba(7, 27, 60, 0.13);
  border-radius: 22px;
  color: var(--ink);
  background: rgba(255, 254, 249, 0.8);
}

.room-logic .lab-mission-card {
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.lab-mission-card.is-daily {
  outline: 3px solid var(--orange);
  outline-offset: -3px;
}

.lab-mission-card.is-completed {
  box-shadow: inset 0 0 0 2px var(--lime);
}

.mission-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mission-card-top span,
.mission-card-top b,
.lab-mission-card > p {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mission-card-top b {
  padding: 7px 9px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--lime);
}

.lab-mission-card > p {
  margin: 48px 0 10px;
  color: var(--orange);
}

.lab-mission-card h3 {
  max-width: 560px;
  margin: 0;
  font: 800 clamp(28px, 3.2vw, 46px)/1 var(--display);
  letter-spacing: -0.045em;
}

.mission-card-bottom {
  display: grid;
  margin-top: 42px;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 18px;
}

.mission-card-bottom > span {
  max-width: 420px;
  color: currentColor;
  opacity: 0.62;
  font-size: 9px;
  line-height: 1.6;
}

.mission-card-bottom button {
  padding: 11px 13px;
  border: 0;
  border-radius: 10px;
  color: var(--white);
  background: var(--ink);
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
}

.room-logic .mission-card-bottom button {
  color: var(--ink);
  background: var(--lime);
}

.lab-mission-card.is-locked .mission-card-bottom button {
  color: var(--ink);
  background: rgba(104, 116, 135, 0.22);
}

.membership {
  display: grid;
  margin-top: 130px;
  grid-template-columns: 1fr 0.55fr 0.65fr;
  gap: 18px;
}

.membership-copy,
.tier-card {
  min-height: 540px;
  padding: clamp(30px, 4.5vw, 58px);
  border-radius: 30px;
}

.membership-copy {
  color: var(--white);
  background:
    radial-gradient(circle at 90% 8%, rgba(112, 223, 243, 0.38), transparent 30%),
    var(--ink);
}

.membership-copy > p {
  color: var(--lime);
}

.membership-copy > span {
  display: block;
  max-width: 680px;
  margin-top: 38px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.8;
}

.tier-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: rgba(255, 254, 249, 0.75);
}

.plus-tier {
  border: 0;
  background: var(--lime);
}

.tier-card > p {
  margin: 0;
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
}

.tier-card > strong {
  margin-top: 35px;
  font: 800 clamp(36px, 4vw, 62px)/1 var(--display);
  letter-spacing: -0.055em;
}

.tier-card > strong small {
  font-size: 10px;
  letter-spacing: 0;
}

.tier-card ul {
  display: grid;
  margin: 46px 0;
  padding: 0;
  gap: 14px;
  list-style: none;
}

.tier-card li {
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  line-height: 1.5;
}

.tier-card > a {
  margin-top: auto;
  padding: 15px;
  border-radius: 12px;
  color: var(--white);
  background: var(--ink);
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.tier-card > span {
  margin-top: 12px;
  color: var(--muted);
  font-size: 7px;
  line-height: 1.5;
  text-align: center;
}

.mission-runner {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  padding: 22px;
  place-items: center;
  background: rgba(3, 13, 31, 0.72);
  backdrop-filter: blur(16px);
}

.runner-shell {
  width: min(100%, 920px);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  border-radius: 30px;
  background:
    linear-gradient(90deg, rgba(7, 27, 60, 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(rgba(7, 27, 60, 0.035) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--paper);
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.38);
}

.runner-header {
  display: flex;
  padding: 26px 30px 20px;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.runner-header p {
  color: var(--blue);
}

.runner-header h2 {
  margin: 8px 0 0;
  font: 800 26px/1.1 var(--display);
  letter-spacing: -0.04em;
}

.runner-header > button {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  cursor: pointer;
  font-size: 20px;
}

.runner-progress {
  height: 5px;
  background: rgba(7, 27, 60, 0.1);
}

.runner-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--electric), var(--lime));
  transition: width 350ms ease;
}

.runner-stage {
  padding: clamp(30px, 6vw, 74px);
}

.runner-stage h3 {
  max-width: 750px;
  margin: 14px 0 0;
  font: 800 clamp(34px, 5vw, 58px)/1.02 var(--display);
  letter-spacing: -0.05em;
}

.runner-stage .stage-body {
  max-width: 700px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.answer-list {
  display: grid;
  margin-top: 36px;
  gap: 10px;
}

.answer-option {
  display: grid;
  width: 100%;
  padding: 16px;
  grid-template-columns: 34px 1fr;
  align-items: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: rgba(255, 254, 249, 0.84);
  cursor: pointer;
  text-align: left;
}

.answer-option > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: #dfeeff;
  font-size: 9px;
  font-weight: 800;
}

.answer-option > b {
  font-size: 11px;
  line-height: 1.6;
}

.answer-option.is-correct {
  border-color: #2b8b6f;
  background: #def6e9;
}

.answer-option.is-wrong {
  border-color: #c96146;
  background: #ffe5dc;
}

.answer-option:disabled {
  cursor: default;
}

.answer-feedback {
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  color: var(--ink);
  background: var(--lime);
  font-size: 10px;
  line-height: 1.65;
}

.lesson-formula {
  margin-top: 34px;
  padding: 23px;
  border-radius: 17px;
  color: var(--white);
  background: var(--ink);
  font: 700 14px/1.7 var(--body);
}

.runner-action {
  display: inline-flex;
  margin-top: 28px;
  padding: 14px 18px;
  border: 0;
  border-radius: 11px;
  color: var(--white);
  background: var(--ink);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.transfer-input {
  width: 100%;
  min-height: 150px;
  margin-top: 30px;
  padding: 17px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 254, 249, 0.88);
  font: 12px/1.7 var(--body);
}

.model-answer {
  margin-top: 18px;
  padding: 20px;
  border-left: 4px solid var(--electric);
  color: var(--muted);
  background: rgba(255, 254, 249, 0.75);
  font-size: 11px;
  line-height: 1.7;
}

.receipt-stage {
  text-align: center;
}

.receipt-stage .earned-receipt {
  max-width: 560px;
  margin: 35px auto 0;
  padding: 44px;
  border-radius: 25px;
  color: var(--white);
  background:
    radial-gradient(circle at 90% 10%, rgba(112, 223, 243, 0.4), transparent 28%),
    var(--ink);
}

.earned-receipt span {
  color: var(--lime);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.earned-receipt strong {
  display: block;
  margin-top: 30px;
  font: italic 600 clamp(26px, 4vw, 42px)/1.2 var(--serif);
}

.lab-footer {
  display: grid;
  width: min(100% - 52px, 1380px);
  min-height: 170px;
  margin: 100px auto 0;
  padding: 34px 0;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid var(--line);
}

.lab-footer img {
  width: 150px;
}

.lab-footer p {
  font: italic 600 13px/1.3 var(--serif);
}

.lab-footer > div {
  display: flex;
  justify-self: end;
  gap: 18px;
}

.lab-footer a {
  color: inherit;
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 1020px) {
  .lab-hero,
  .review-desk,
  .membership {
    grid-template-columns: 1fr;
  }

  .lab-hero {
    min-height: auto;
  }

  .hero-proof {
    grid-column: auto;
  }

  .membership-copy,
  .tier-card {
    min-height: auto;
  }

  .receipt-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .competence-receipt,
  .empty-receipt {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .lab-header {
    width: min(100% - 28px, 1380px);
    min-height: 72px;
  }

  .lab-header img {
    width: 124px;
  }

  .lab-header nav > a:not(.lab-header-cta) {
    display: none;
  }

  .lab-hero,
  .review-desk,
  .competence-passport,
  .lab-room,
  .membership,
  .lab-footer {
    width: min(100% - 28px, 1380px);
  }

  .lab-hero {
    padding-top: 32px;
  }

  .lab-hero-copy,
  .daily-console {
    border-radius: 24px;
  }

  .lab-hero-copy {
    min-height: 590px;
    padding: 32px 24px;
  }

  .lab-hero-copy h1 {
    font-size: clamp(56px, 17vw, 82px);
  }

  .daily-console {
    padding: 34px 24px;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .hero-proof > div {
    min-height: 98px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-proof > div:last-child {
    border-bottom: 0;
  }

  .review-desk {
    padding: 34px 24px;
    gap: 35px;
    border-radius: 24px;
  }

  .competence-passport {
    margin-top: 72px;
  }

  .competence-passport header {
    align-items: start;
    flex-direction: column;
  }

  .receipt-grid,
  .mission-grid {
    grid-template-columns: 1fr;
  }

  #rooms {
    margin-top: 80px;
  }

  .lab-room {
    padding: 32px 18px;
    border-radius: 24px;
  }

  .room-heading {
    grid-template-columns: 40px 1fr;
  }

  .room-heading > p {
    grid-column: 2;
    justify-self: start;
  }

  .lab-mission-card {
    min-height: 310px;
    padding: 23px;
  }

  .mission-card-bottom {
    grid-template-columns: 1fr;
  }

  .mission-card-bottom button {
    width: 100%;
  }

  .membership {
    margin-top: 80px;
  }

  .membership-copy,
  .tier-card {
    padding: 36px 24px;
    border-radius: 24px;
  }

  .mission-runner {
    padding: 0;
  }

  .runner-shell {
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    border-radius: 0;
  }

  .runner-header {
    padding: 21px 20px 17px;
  }

  .runner-stage {
    padding: 34px 20px 70px;
  }

  .answer-option {
    grid-template-columns: 28px 1fr;
    padding: 14px 12px;
  }

  .lab-footer {
    grid-template-columns: 1fr auto;
  }

  .lab-footer p {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
