:root {
  font-family: system-ui, "Microsoft YaHei", sans-serif;
  color: #193b30;
  background: #f6f0df;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  overflow-x: hidden;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: #195440;
  color: #fff;
  border-radius: 9px;
  padding: 12px 16px;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button:active {
  filter: brightness(0.94);
}
button:focus-visible,
input:focus-visible {
  outline: 2px solid #b28a36;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.learner {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 14px calc(100px + env(safe-area-inset-bottom));
}
.brandbar {
  height: 58px;
  margin: 0 -14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fffdf7;
  border-bottom: 1px solid #e9dfc8;
}
.brandLogo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: contain;
}
.brandbar strong {
  font-size: 18px;
}
.brandbar small,
.badge {
  display: none;
}
.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #174c3e;
  color: #ead395;
  font: 26px serif;
}
.posterCarousel {
  width: calc(100% + 28px);
  margin: 0 -14px;
  overflow: hidden;
  position: relative;
  background: #174c3e;
}
.posterTrack {
  display: flex;
  transition: transform 0.35s;
  touch-action: pan-y;
}
.poster {
  flex: 0 0 100%;
  aspect-ratio: 2.35/1;
  padding: 22px 24px 28px;
  color: #f3e0aa;
  background:
    linear-gradient(90deg, #081916f5, #0e2420ad),
    url("/ink-landscape.webp") center/cover;
}
.posterTwo {
  background:
    linear-gradient(90deg, #443319f2, #443319a6),
    url("/ink-landscape.webp") center/cover;
}
.posterThree {
  background:
    linear-gradient(90deg, #19332cf5, #19332ca8),
    url("/ink-landscape.webp") center/cover;
}
.poster h1 {
  font-size: 22px;
  line-height: 1.4;
  margin: 13px 0 7px;
}
.poster h1 br {
  display: none;
}
.poster small {
  font-size: 10px;
}
.poster p {
  font-size: 11px;
  margin: 0;
  color: #d4decf;
}
.poster > span {
  display: none;
}
.uploadedPoster {
  padding: 0;
}
.uploadedPoster img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.posterDots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.posterDots button {
  width: 5px;
  height: 5px;
  border-radius: 9px;
  background: #ffffff66;
  padding: 0;
}
.posterDots .active {
  width: 15px;
  background: #ebcf89;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 13px;
}
.heading h2 {
  margin: 0;
  font-size: 19px;
}
.heading small {
  display: none;
}
.heading > span {
  font-size: 11px;
  color: #92968c;
}
.homePreviewList,
.specialList {
  display: grid;
  gap: 16px;
}
.specialCard {
  width: 100%;
  display: block;
  text-align: left;
  padding: 0;
  overflow: hidden;
  background: #fffdf7;
  border: 1px solid #d5c99f;
  border-radius: 12px;
  color: #193b30;
  box-shadow: 0 4px 12px #30240c08;
}
.specialCard > img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.specialCaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 12px;
}
.specialCaption h3 {
  font-size: 15px;
  margin: 0;
}
.specialCaption > span {
  font-size: 11px;
  flex-shrink: 0;
  color: #7e6a3b;
}
.courseLocked,
.courseOpened {
  padding: 4px 8px;
  border: 1px solid #dfc9a2;
  background: #fbf2e0;
  border-radius: 14px;
}
.courseOpened {
  color: #176947 !important;
}
.specialTitleBox {
  margin: 18px 0 16px;
  padding: 20px 16px;
  background: linear-gradient(115deg, #fffaf0, #f6e9c8);
  border: 1px solid #e3d3a9;
  border-radius: 12px;
}
.specialTitleBox h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  color: #6d5127;
  letter-spacing: 0.3px;
}
section:not(.specialTitleBox) {
  background: #fffdf7;
  border-radius: 14px;
  padding: 18px;
  margin: 14px 0;
}
section h2 {
  font-size: 21px;
  line-height: 1.5;
}
section p,
section small {
  font-size: 13px;
  color: #7a837c;
  line-height: 1.6;
}
input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 9px;
  background: #fafafa;
  color: #213d32;
  margin: 8px 0 14px;
}
label {
  font-size: 14px;
  color: #62766c;
}
.accessGate {
  margin-top: 24px !important;
}
.accessGate h1 {
  font-size: 22px;
}
.accessGate button {
  width: 100%;
}
.accessGate p {
  font-size: 13px;
}
.back {
  background: none;
  color: #526e60;
  padding: 14px 0;
  text-align: left;
  font-size: 14px;
}
.directoryHint {
  margin: 0 0 18px;
}
#lessons {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}
.lessonCard {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 12px;
  text-align: left;
  border: 1px solid #e5dec9;
  background: #fdfaf1;
  color: #193b30;
}
.lessonNumber {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 38px;
  background: #eee5ce;
  border-radius: 8px;
  font-size: 14px;
  flex-shrink: 0;
}
.lessonCopy {
  flex: 1;
  min-width: 0;
}
.lessonTitle {
  display: block;
  line-height: 1.55;
  font-size: 14px;
}
.lessonCopy small {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  color: #92958d;
}
.lessonPlay {
  font-size: 12px;
  color: #9b7f45;
}
.profile {
  text-align: center;
}
.profile h2 {
  margin: 14px 0 8px;
}
.profile button {
  font-size: 12px;
  padding: 9px 14px;
}
.myCoursesHeading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.myCoursesHeading h3 {
  margin: 0;
  font-size: 17px;
}
.myCoursesHeading span {
  color: #999;
  font-size: 12px;
}
.myCourseCard {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 10px 0;
  padding: 10px;
  background: #fbf7eb;
  border: 1px solid #e5dec9;
  color: #193b30;
  text-align: left;
}
.myCourseCard img {
  width: 82px;
  height: 60px;
  object-fit: cover;
  border-radius: 7px;
}
.myCourseInfo {
  flex: 1;
  min-width: 0;
}
.myCourseInfo strong,
.myCourseInfo small {
  display: block;
}
.myCourseInfo strong {
  font-size: 14px;
}
.myCourseInfo small {
  font-size: 11px;
  margin-top: 6px;
  color: #899081;
}
#video {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  border-radius: 10px;
  background: #111;
}
.exitLesson {
  display: block;
  background: #f1ead8;
  border: 1px solid #ddcba2;
  color: #4d653b;
  font-size: 15px;
  min-height: 44px;
}
.exitHint {
  display: block;
  margin: 8px 0;
}
.playerActions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.playerActions button {
  flex: 1;
  padding: 11px 4px;
  font-size: 13px;
}
#message {
  font-size: 13px;
  color: #745c25;
  line-height: 1.6;
  white-space: pre-wrap;
}
#message:not(:empty) {
  position: sticky;
  bottom: 85px;
  padding: 12px;
  background: #fff5d8;
  border: 1px solid #e8d6ab;
  border-radius: 8px;
  z-index: 4;
}
footer {
  display: none;
}
.bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  z-index: 5;
  border-top: 1px solid #e3e0d6;
  background: #fffdf7;
  padding: 7px 0 calc(7px + env(safe-area-inset-bottom));
}
.bottom button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 47px;
  border: 0;
  border-radius: 0;
  background: none;
  padding: 4px;
  color: #999d98;
}
.bottom svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.bottom .playGlyph {
  fill: currentColor;
  stroke: none;
}
.bottom span {
  font-size: 11px;
}
.bottom .active {
  color: #174c3e;
  font-weight: 600;
}
@media (max-width: 350px) {
  .specialTitleBox {
    padding: 18px 12px;
  }
  .specialTitleBox h2 {
    font-size: 20px;
    letter-spacing: 0;
  }
  .specialCaption h3 {
    font-size: 14px;
  }
  .poster h1 {
    font-size: 19px;
  }
}
