html.kimono-page {
  --kimono-frame-width: 860px;
  background: #421b2c;
}

body.kimono-theme {
  --page: #40204f;
  --button: #18131c;
  --button-hover: #2b202d;
  --text: #fbf1de;
  --muted: #dfcfbd;
  --line: #9e8e94;
  --green: #aab588;
  --gold: #d9bd81;
  --selected: #b4b9c9;
  --selected-hover: #c5cada;
  --selected-text: #211b24;
  --skip: #687044;
  --check: #612b3b;
  --unknown: #3f5c7b;
  --correct: #add5f7;
  --incorrect: #f4b2b6;
  --kimono-pattern-size: min(110vw, 83svh, 830px);
  isolation: isolate;
  width: min(100%, var(--kimono-frame-width));
  min-height: 100svh;
  margin: 0 auto;
  background: var(--page);
}

body.kimono-theme::before {
  content: "";
  position: fixed;
  left: max(0px, calc((100% - var(--kimono-frame-width)) / 2));
  bottom: 0;
  z-index: -1;
  width: var(--kimono-pattern-size);
  max-width: min(100vw, var(--kimono-frame-width));
  height: var(--kimono-pattern-size);
  pointer-events: none;
  background-image:
    linear-gradient(to top, transparent 80%, var(--page)),
    linear-gradient(to right, transparent 85%, var(--page)),
    url("patterns/kimono-botan-tsubaki-v5.png");
  background-size: var(--kimono-pattern-size) var(--kimono-pattern-size);
  background-position: left bottom;
  background-repeat: no-repeat;
}

.kimono-theme main > section {
  background: transparent;
}

.kimono-theme .phrase-title,
.kimono-theme .exercise.is-mobile .mobile-header {
  position: relative;
  isolation: isolate;
  color: #f8edce;
  background: #000;
}

.kimono-theme .phrase-title::before,
.kimono-theme .phrase-title::after,
.kimono-theme .mobile-header::before,
.kimono-theme .mobile-header::after {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  z-index: -1;
  width: min(28%, 180px);
  pointer-events: none;
  background-image: url("patterns/lacquer-gold-clouds-v1.png");
  background-size: 200% 100%;
  background-repeat: no-repeat;
}

.kimono-theme .phrase-title::before,
.kimono-theme .mobile-header::before {
  left: 2px;
  background-position: left center;
}

.kimono-theme .phrase-title::after,
.kimono-theme .mobile-header::after {
  right: 2px;
  background-position: right center;
}

.kimono-theme .obi-caption {
  padding: 2px 12px;
  background: #000c;
  text-shadow: 0 1px 2px #000;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.kimono-theme .answer-feedback:not(:empty),
.kimono-theme .answer-example:not([hidden]) {
  padding: 3px 8px;
  border-radius: 4px;
  background: #23142cf2;
}

.kimono-theme #check-button:hover:not(:disabled),
.kimono-theme #next-button:hover:not(:disabled) {
  background: #79364b;
}

.kimono-theme #check-button:disabled {
  color: #c0b8b6;
  background: #39323c;
  border-color: #8f805f;
}

.kimono-theme #skip-button:hover:not(:disabled) {
  background: #79814b;
}

.kimono-theme #skip-button.is-confirmed {
  background: #4f5634;
}

.kimono-theme #unknown-button:hover:not(:disabled) {
  background: #506d8b;
}
