/* Learning record world view. All rules are intentionally scoped to record mode. */
body.is-learning-record-view {
  min-height: 100dvh;
  color: #17213b;
  background:
    radial-gradient(circle at 12% 14%, rgba(126, 104, 186, .34), transparent 32rem),
    radial-gradient(circle at 86% 82%, rgba(49, 126, 139, .24), transparent 30rem),
    linear-gradient(150deg, #10152b 0%, #1e2748 48%, #142e42 100%);
}

body.is-learning-record-view::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 244, 187, .84) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 255, 255, .55) 0 1px, transparent 1.4px);
  background-position: 22px 35px, 91px 112px;
  background-size: 150px 160px, 210px 230px;
  opacity: .34;
}

body.is-learning-record-view .premium-notice,
body.is-learning-record-view .premium-progress,
body.is-learning-record-view .premium-footer,
body.is-learning-record-view .dev-note {
  display: none !important;
}

body.is-learning-record-view .premium-app {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 1040px);
  max-width: 1040px;
  min-width: 0;
  margin: 0 auto;
  padding: 28px 0 48px;
  background: transparent;
  box-shadow: none;
}

body.is-learning-record-view #todayScreen {
  width: 100%;
  max-width: none;
  padding: 0;
  overflow: visible;
  background: transparent;
}

.learning-record-world .learning-record-masthead {
  position: relative;
  padding: 26px 28px 28px;
  overflow: hidden;
  border: 1px solid rgba(239, 207, 132, .64);
  border-radius: 28px 28px 12px 12px;
  background:
    linear-gradient(135deg, rgba(34, 43, 77, .97), rgba(28, 76, 86, .94)),
    #253354;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .28);
  color: #fffaf0;
}

.learning-record-world .learning-record-masthead::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -84px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(245, 217, 147, .22);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(245, 217, 147, .05), 0 0 0 48px rgba(245, 217, 147, .035);
}

.learning-record-world .learning-record-nav,
.learning-record-world .learning-record-title-row,
.learning-record-world .learning-record-lead {
  position: relative;
  z-index: 1;
}

.learning-record-world .learning-record-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 24px;
}

.learning-record-world .learning-record-nav a,
.learning-record-world .learning-record-nav button {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 248, 225, .32);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #fffaf0;
  font: inherit;
  font-size: .84rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.learning-record-world .learning-record-nav a:hover,
.learning-record-world .learning-record-nav button:hover,
.learning-record-world .learning-record-nav a:focus-visible,
.learning-record-world .learning-record-nav button:focus-visible {
  border-color: #f0cf84;
  background: rgba(255, 255, 255, .15);
  outline: none;
}

.learning-record-world .learning-record-title-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.learning-record-world .learning-record-crest {
  display: grid;
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(247, 218, 149, .68);
  border-radius: 50%;
  background: rgba(255, 248, 225, .1);
  box-shadow: inset 0 0 0 5px rgba(255, 248, 225, .04);
  font-size: 2rem;
}

.learning-record-world .learning-record-kicker {
  margin: 0 0 4px;
  color: #f0cf84;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .15em;
}

.learning-record-world .learning-record-masthead h2 {
  margin: 0;
  color: #fffaf0;
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: .07em;
  line-height: 1.15;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .28);
}

.learning-record-world .learning-record-lead {
  max-width: 680px;
  margin: 16px 0 0 84px;
  color: rgba(255, 250, 240, .84);
  font-size: .96rem;
  line-height: 1.8;
}

.learning-record-world .today-mini-screen {
  position: relative;
  display: grid;
  gap: 20px;
  padding: 24px;
  border: 1px solid rgba(212, 178, 107, .54);
  border-top: 0;
  border-radius: 0 0 28px 28px;
  background:
    linear-gradient(rgba(255, 252, 240, .96), rgba(248, 240, 217, .98)),
    #fffaf0;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .28);
}

.learning-record-world .record-role-block {
  margin: 0;
  padding: 22px;
  border: 1px solid #d9c99f;
  border-radius: 20px;
  background: rgba(255, 255, 252, .83);
  box-shadow: 0 9px 25px rgba(73, 56, 31, .09);
}

.learning-record-world .record-role-head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dfd1ad;
}

.learning-record-world .record-role-head .premium-kicker {
  color: #8b6424;
}

.learning-record-world .record-role-head h3 {
  margin: 2px 0 5px;
  color: #21375a;
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.learning-record-world .record-role-head p:last-child {
  margin: 0;
  color: #5c594e;
  line-height: 1.7;
}

.learning-record-world .alice-message-card,
.learning-record-world .daily-call-card,
.learning-record-world .learning-status-card,
.learning-record-world .mission-clear-card,
.learning-record-world .alice-today-letter-card,
.learning-record-world .record-sections > *,
.learning-record-world .record-block,
.learning-record-world .history-list li,
.learning-record-world .empty-history {
  border-color: #ddcda8 !important;
  background: #fffdf7 !important;
  color: #25304a !important;
  box-shadow: 0 8px 20px rgba(62, 48, 27, .08) !important;
}

.learning-record-world .status-summary-card {
  align-items: flex-start;
}

.learning-record-world .alice-status-image {
  border-color: #d8bd78;
  background: #f6ecd2;
}

.learning-record-world .alice-message,
.learning-record-world .daily-task,
.learning-record-world .record-sections,
.learning-record-world .record-sections p,
.learning-record-world .record-sections span,
.learning-record-world .record-sections li,
.learning-record-world .alice-today-letter-card p {
  color: #343b4e !important;
}

.learning-record-world .daily-task {
  border-color: #e3d7b9 !important;
  background: #f8f3e7 !important;
}

.learning-record-world .today-screen-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.learning-record-world .today-screen-actions .primary-btn {
  border: 1px solid #b98227;
  background: linear-gradient(135deg, #f0c76d, #c89234);
  box-shadow: 0 8px 18px rgba(145, 94, 18, .24);
  color: #262035;
  font-weight: 900;
}

.learning-record-world .today-screen-actions .ghost-btn {
  border: 1px solid #b9aa88;
  background: #fffdf7;
  color: #293652;
  font-weight: 800;
}

.learning-record-world .record-maintenance {
  margin-top: 16px;
  border: 1px dashed #c5b895;
  border-radius: 14px;
  background: rgba(248, 243, 231, .76);
  color: #514d43;
}

.learning-record-world .record-maintenance > summary {
  color: #625b4c;
  font-weight: 800;
}

.learning-record-world .danger-btn {
  color: #8b3434 !important;
}

@media (min-width: 820px) {
  .learning-record-world .today-mini-screen {
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
    align-items: start;
  }
}

@media (max-width: 700px) {
  body.is-learning-record-view .premium-app {
    width: 100%;
    height: 100dvh;
    padding: 0;
    overflow: hidden;
  }

  body.is-learning-record-view #todayScreen {
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .learning-record-world .learning-record-masthead {
    padding: max(16px, env(safe-area-inset-top)) 16px 22px;
    border-width: 0 0 1px;
    border-radius: 0;
  }

  .learning-record-world .learning-record-nav {
    margin-bottom: 18px;
  }

  .learning-record-world .learning-record-title-row {
    gap: 12px;
  }

  .learning-record-world .learning-record-crest {
    width: 52px;
    height: 52px;
    font-size: 1.55rem;
  }

  .learning-record-world .learning-record-masthead h2 {
    font-size: 2rem;
  }

  .learning-record-world .learning-record-lead {
    margin: 12px 0 0;
    font-size: .88rem;
  }

  .learning-record-world .today-mini-screen {
    padding: 14px;
    border: 0;
    border-radius: 0;
  }

  .learning-record-world .record-role-block {
    padding: 16px;
    border-radius: 17px;
  }

  .learning-record-world .status-summary-card {
    display: block;
  }

  .learning-record-world .alice-status-image {
    width: 88px;
    margin: 0 auto 14px;
  }

  .learning-record-world .today-screen-actions > * {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .learning-record-world *,
  .learning-record-world *::before,
  .learning-record-world *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
