.dkr-shell-float {
  position: fixed !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 2147483000 !important;
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
  width: auto !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 4px !important;
  border: 1px solid rgba(20, 20, 18, .2) !important;
  border-radius: 8px !important;
  background: rgba(250, 247, 239, .94) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18) !important;
  color: #1b1c19 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  user-select: auto !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

.dkr-shell-float a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  height: 26px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: transparent !important;
  color: #5f5c55 !important;
  font: inherit !important;
  text-decoration: none !important;
  opacity: 1 !important;
  transition: background 160ms ease, color 160ms ease !important;
  -webkit-text-fill-color: currentColor !important;
}

.dkr-shell-float a:hover,
.dkr-shell-float a[aria-current='page'] {
  background: #e7e0d3 !important;
  color: #171816 !important;
}

.dkr-shell-float__brand {
  background: #171816 !important;
  color: #fffdf9 !important;
}

@media (max-width: 520px) {
  .dkr-shell-float {
    top: 8px !important;
    right: 8px !important;
    height: 50px !important;
    font-size: 9px !important;
  }

  .dkr-shell-float a {
    height: 40px !important;
    padding: 0 7px !important;
  }

  .dkr-shell-float__brand {
    width: 32px !important;
    padding: 0 !important;
    overflow: hidden !important;
    font-size: 0 !important;
  }

  .dkr-shell-float__brand::after {
    content: 'DK';
    font-size: 9px;
  }

  body:has(> .slideshow-container) {
    padding: 66px 10px 18px !important;
  }

  body > .header h1 {
    font-size: clamp(25px, 7vw, 32px) !important;
    line-height: 1.12 !important;
  }

  body > .header .subtitle {
    margin-top: 6px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
  }

  body > .slideshow-container .slide.active {
    gap: 14px !important;
    flex-direction: column-reverse !important;
  }

  body > .slideshow-container .slide-text,
  body > .slideshow-container .slide-image-container {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body > .slideshow-container .slide-text {
    padding: 18px !important;
  }

  body > .slideshow-container .slide-title {
    font-size: 21px !important;
    line-height: 1.25 !important;
  }

  body > .slideshow-container .slide-narrative {
    font-size: 17px !important;
    line-height: 1.65 !important;
  }

  body > .slideshow-container .slide:first-of-type .slide-image,
  body > .slideshow-container .slide-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
  }

  body > .navigation {
    width: 100% !important;
    gap: 8px !important;
  }

  body > .navigation .nav-btn {
    min-height: 44px !important;
    padding: 10px 16px !important;
  }

  body > .keyboard-hint {
    font-size: 12px !important;
  }

  body:has(> .container > .slideshow-container) > .back-link {
    top: 56px !important;
  }

  body > .container:has(> .slideshow-container) {
    padding-top: 62px !important;
  }

  .container > .header h1 {
    font-size: 25px !important;
    line-height: 1.15 !important;
  }

  .container > .header .subtitle {
    font-size: 14px !important;
    line-height: 1.4 !important;
  }

  .container > .slideshow-container .slide-text {
    max-height: 42vh !important;
    padding: 10px 4px !important;
  }

  .container > .slideshow-container .slide-title {
    font-size: 21px !important;
    line-height: 1.24 !important;
  }

  .container > .slideshow-container .slide-narrative,
  .container > .slideshow-container .dialogue,
  .container > .slideshow-container .quote {
    font-size: 17px !important;
    line-height: 1.6 !important;
  }

  .container .nav-btn {
    min-height: 44px !important;
    padding: 8px 18px !important;
  }

  body:has(> #app) #app {
    top: 58px !important;
  }

  body:has(> #app) .book {
    width: calc(100vw - 16px) !important;
    height: calc(100dvh - 80px) !important;
    border-radius: 16px !important;
  }

  body:has(> #app) .pg-inner {
    padding: 14px 12px 28px !important;
    gap: 12px !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    overflow-y: auto !important;
  }

  body:has(> #app) .pg-img,
  body:has(> #app) .pg-inner.col .pg-img {
    max-width: 100% !important;
    max-height: 48% !important;
  }

  body:has(> #app) .char-story,
  body:has(> #app) .story-text {
    font-size: 16px !important;
    line-height: 1.55 !important;
  }

  body:has(> #app) .char-power,
  body:has(> #app) .math-heroes,
  body:has(> #app) .math-note {
    font-size: 14px !important;
  }

  body:has(> #app) .math-hint {
    font-size: 12px !important;
  }

  body > .hero {
    padding-top: 66px !important;
  }
}

/* Session 01a02af7-0560-7861-b9b7-f642c42efb08: short landscape phones keep the side-by-side composition but not desktop-sized story text. */
@media (max-width: 900px) and (max-height: 520px) {
  body > .slideshow-container .slide-narrative,
  .container > .slideshow-container .slide-narrative,
  .container > .slideshow-container .dialogue,
  .container > .slideshow-container .quote {
    font-size: 16px !important;
    line-height: 1.55 !important;
  }

  body:has(> #app) .char-story,
  body:has(> #app) .story-text {
    font-size: 16px !important;
    line-height: 1.55 !important;
  }
}
