.poems-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 108px;
  padding: 12px 16px;
  margin: 28px 0 20px;
  text-align: left;
  color: #34445a;
  border: 1px solid #d8b877;
  border-radius: 24px;
  background: linear-gradient(125deg, #fffdf1, #fff0c7 55%, #f8deb0);
  box-shadow:
    inset 0 2px 0 #fff,
    0 4px 0 #d7bb8666,
    0 9px 19px #91672813;
}
.poems-entry > img {
  flex: none;
  object-fit: contain;
  filter: drop-shadow(0 4px 3px #815a2822);
}
.poems-entry > span {
  display: grid;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.poems-entry small {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  color: #a16b20;
}
.poems-entry strong {
  font-size: 21px;
  line-height: 1.15;
}
.poems-entry span > span {
  font-size: 12px;
  line-height: 1.35;
}
.poems-entry > .icon {
  flex: none;
}
.kids-tabs #notebook-poems {
  color: #815d30;
  background: linear-gradient(135deg, #fff9e0, #f5deb1);
}
.notebook-page .kids-tabs button {
  min-width: 0;
  padding-inline: 6px;
  gap: 5px;
  font-size: 12px;
}
.notebook-page .kids-tabs .icon {
  width: 16px;
  height: 16px;
  flex: none;
}

body:is(
    [data-screen="poems"],
    [data-screen="poems-saved"],
    [data-screen="poems-favorites"],
    [data-screen="poem"],
    [data-screen="poem-reading"]
  )
  .site-foot {
  display: none;
}
body:is(
    [data-screen="poems"],
    [data-screen="poems-saved"],
    [data-screen="poems-favorites"],
    [data-screen="poem"],
    [data-screen="poem-reading"]
  )
  .game-header {
  border-bottom: 0;
}
.poems-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 12px 0 24px;
}
.poems-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.poems-heading h1 {
  font-size: 27px;
  line-height: 1.1;
  margin: 0;
  flex: 1;
}
.poem-bookmark {
  color: #b58234;
}
.poems-welcome {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 24px;
  padding: 12px 18px;
  background: linear-gradient(120deg, #fff1b0, #ffefcf 58%, #fce2c3);
  border: 1px solid #dcbd7c;
  box-shadow:
    inset 0 2px 0 #fffbed,
    0 4px 0 #d9b97255;
}
.poems-welcome img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  flex: none;
}
.poems-welcome strong {
  font-size: 23px;
  line-height: 1.1;
}
.poems-welcome p {
  margin: 5px 0 8px;
  font-size: 14px;
}
.poems-welcome span {
  font-size: 12px;
  color: #85602c;
  font-weight: 800;
}
.poems-tabs {
  display: flex;
  gap: 6px;
  margin: 18px 0;
}
.poems-tabs button {
  min-height: 46px;
  flex: 1;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: linear-gradient(135deg, #fffef8, #f8edd7);
  color: #6c6049;
  border: 1px solid #dcc69e;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
}
.poems-tabs button[aria-pressed="true"] {
  background: linear-gradient(135deg, #18a8c4, #278aa9 45%, #3766a1);
  color: #fff;
  border-color: #447a9b;
  box-shadow:
    inset 0 2px 0 #a3e3e6,
    0 3px 0 #376485;
}
.poems-shelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 12px;
}
.poem-cover {
  position: relative;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
  min-height: 212px;
  padding: 16px 14px;
  border-radius: 23px;
  color: #354157;
  border: 1px solid #d6b476;
  background: linear-gradient(
    150deg,
    hsl(var(--poem-hue) 67% 87%),
    #fff9eb 64%,
    #fff0d6
  );
  box-shadow:
    inset 0 2px 0 #fff,
    0 4px 0 #c8a46d66,
    0 8px 12px #98702712;
}
.poem-cover-number {
  font-size: 11px;
  font-weight: 900;
  color: #8c7859;
}
.poem-cover-art {
  position: absolute;
  top: 17px;
  right: 16px;
  color: hsl(var(--poem-hue) 42% 47%);
  transform: rotate(-12deg);
}
.poem-cover-art .icon {
  width: 36px;
  height: 36px;
}
.poem-cover strong {
  font-size: 21px;
  line-height: 1.12;
  padding-top: 21px;
  overflow-wrap: anywhere;
}
.poem-cover > span:not(.poem-cover-art):not(.poem-cover-number) {
  font-size: 12px;
  line-height: 1.4;
}
.poem-cover-action {
  margin-top: auto;
  padding-top: 12px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
}
.poem-cover.is-found .poem-cover-art {
  color: #c38b2b;
}
.poems-empty {
  grid-column: 1/-1;
  padding: 22px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 12px;
}
.poems-empty p {
  margin: 0;
}
.poems-footnote {
  font-size: 11px;
  line-height: 1.5;
  color: #807666;
  text-align: center;
  margin: 16px 8px 0;
}

.poem-challenge-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 6px 16px;
}
.poem-challenge-top {
  position: sticky;
  top: 0;
  z-index: 3;
  background: linear-gradient(#fbf6e9 85%, #fbf6e900);
}
.poem-counter {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  color: #147e9b;
  font-variant-numeric: tabular-nums;
  flex: none;
}
.poem-counter small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 600;
}
.poem-secret-title {
  text-align: right;
  max-width: 75%;
  min-width: 0;
  color: #938064;
}
.poem-secret-title small {
  font-size: 11px;
}
.poem-title-mask {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 9px;
  margin-bottom: 7px;
}
.poem-title-word {
  display: inline-flex;
  gap: 3px;
  align-items: flex-end;
}
.poem-title-word i {
  width: 9px;
  height: 14px;
  border-bottom: 2px solid #75bfd0;
  border-radius: 3px;
  background: linear-gradient(#f3faff99, #def2f477);
}
.poem-title-word b {
  font-size: 12px;
  font-weight: 400;
}
.poem-coach {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 72px;
  margin: 0 0 16px;
  padding: 8px 10px;
  background: linear-gradient(120deg, #fff7dc, #f6f6e8);
  border: 1px solid #e9d7b2;
  border-radius: 20px;
}
.poem-coach img {
  width: 56px;
  height: 56px;
  flex: none;
}
.poem-coach p {
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
  flex: 1;
}
.poem-coach .small-btn {
  min-height: 44px;
  padding: 7px;
  font-size: 11px;
  flex: none;
}
.poem-lines {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 24px;
  border: 1px solid #e1cda5;
  background: linear-gradient(125deg, #fffef5, #fff8eb 64%, #f9efdb);
  box-shadow:
    inset 0 2px 0 #fff,
    0 4px 0 #d8c39a55;
}
.poem-line {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #53677c;
  text-align: left;
  transition:
    background-color 160ms,
    color 160ms,
    border-color 160ms;
  touch-action: pan-y;
}
.poem-line-text {
  font-size: var(--verse-size);
  line-height: 1.4;
  font-weight: 500;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-width: 0;
  flex: 1;
}
.poem-line-check {
  width: 18px;
  flex: none;
  opacity: 0;
  color: #218781;
}
.poem-line-check .icon {
  width: 18px;
  height: 18px;
}
.poem-line[aria-pressed="true"] {
  color: #206d69;
  border-color: #b1d8c2;
  background: linear-gradient(125deg, #e7f8dc, #e6f4de 45%, #d7efe5);
  box-shadow: inset 0 1px 0 #fff;
}
.poem-line[aria-pressed="true"] .poem-line-check {
  opacity: 1;
}
.poem-line[data-missed="true"] {
  color: #9a6d60;
  background: #f9eee4;
  border-color: #ead4c4;
}
.poem-line.is-hinted {
  border-color: #d9b45b;
  background: linear-gradient(110deg, #fff7c6, #ffefd0);
}
.poem-line:focus-visible {
  outline: 3px solid #3c92b5;
  outline-offset: 2px;
}

.poem-reward {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 154px;
  padding: 10px 8px 26px;
}
.poem-reward img {
  width: 125px;
  height: 146px;
  object-fit: cover;
  object-position: 50% 0;
  align-self: flex-end;
  mask-image: linear-gradient(#000 86%, transparent);
}
.poem-reward > div {
  max-width: 260px;
}
.poem-reward strong {
  font-size: 26px;
  line-height: 1.1;
  display: block;
}
.poem-reward p {
  font-size: 12px;
  margin: 8px 0 0;
  color: #8a713f;
}
.poem-reward-stars {
  display: flex;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  gap: 7px;
  color: #d4a036;
}
.poem-reward-stars .icon {
  fill: #ffdb73;
  width: 25px;
  height: 25px;
  filter: drop-shadow(0 2px 0 #b9863433);
}
.poem-parchment {
  position: relative;
  border: 1px solid #d6b677;
  border-radius: 22px 22px 28px 12px;
  padding: 24px 24px 30px;
  margin: 10px 0 18px;
  background: linear-gradient(125deg, #fffef6, #fff8e7 52%, #fbe9c8);
  box-shadow:
    inset 0 2px 0 #fff,
    0 4px 0 #d8b87c55,
    0 12px 26px #9a773515;
}
.poem-work-label {
  display: block;
  text-align: center;
  color: #a17a3d;
  font-size: 11px;
  margin-bottom: 16px;
}
.poem-revealed-title {
  font-size: 32px;
  line-height: 1.12;
  margin: 0 0 10px;
  font-family: Georgia, serif;
  text-align: center;
  font-weight: 500;
  perspective: 700px;
}
.poem-revealed-title span {
  display: inline-block;
  transform-origin: 50% 90%;
}
.poem-revealed-author {
  font-size: 13px;
  color: #8b6c40;
  text-align: center;
  margin: 0 0 26px;
}
.poem-text-wrap {
  overflow: hidden;
}
.poem-full-text {
  margin: 0 !important;
  padding: 0 !important;
  white-space: normal;
  font:
    20px/1.7 Georgia,
    serif;
  color: #384c62;
  overflow-wrap: anywhere;
}
.poem-reading-line {
  display: block;
  white-space: pre-wrap;
  padding-left: 0.8em;
  text-indent: -0.8em;
}
.poem-stanza-break {
  height: 1.7em;
}
.poem-full-text::before,
.poem-full-text::after {
  content: none !important;
}
.poem-reading-actions {
  display: grid;
  gap: 12px;
}
.poem-reading-actions button {
  width: 100%;
  min-height: 54px;
}
.poem-favorite {
  margin-bottom: 20px;
}
.poem-reading-invitation {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 12px;
  border: 1px solid #d8be8e;
  border-radius: 20px;
  text-decoration: none;
  color: #41617a;
  background: linear-gradient(125deg, #fffdf0, #fff1d1 55%, #f5dfbd);
  box-shadow:
    inset 0 2px 0 #fff,
    0 3px 0 #d5b88155;
}
.poem-reading-invitation img {
  flex: none;
  object-fit: contain;
}
.poem-reading-invitation > span {
  display: grid;
  gap: 4px;
}
.poem-reading-invitation small {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #a17c42;
}
.poem-reading-invitation strong {
  font-size: 19px;
  line-height: 1.2;
}
.poem-reading-invitation span > span {
  font-size: 12px;
  font-weight: 800;
}
.poem-source {
  margin-top: 24px;
  border-top: 1px solid #e4d3b5;
  padding-top: 16px;
  font-size: 13px;
  line-height: 1.6;
}
.poem-source summary {
  min-height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}
.poem-source a {
  display: inline-block;
  min-height: 44px;
  padding: 10px 0;
  color: #2d79a2;
}
.poem-source .poems-footnote {
  text-align: left;
  margin: 10px 0;
}
@media (max-width: 599px) {
  body:is(
      [data-screen="poems"],
      [data-screen="poems-saved"],
      [data-screen="poems-favorites"],
      [data-screen="poem"],
      [data-screen="poem-reading"]
    )
    .brand {
    display: none;
  }
  body:is(
      [data-screen="poems"],
      [data-screen="poems-saved"],
      [data-screen="poems-favorites"],
      [data-screen="poem"],
      [data-screen="poem-reading"]
    )
    .game-header {
    display: flex;
    gap: 8px;
    height: 64px;
  }
  body:is(
      [data-screen="poems"],
      [data-screen="poems-saved"],
      [data-screen="poems-favorites"],
      [data-screen="poem"],
      [data-screen="poem-reading"]
    )
    .player-supplies {
    flex: 1;
    width: auto;
    margin: 0;
  }
  body:is(
      [data-screen="poems"],
      [data-screen="poems-saved"],
      [data-screen="poems-favorites"],
      [data-screen="poem"],
      [data-screen="poem-reading"]
    )
    .coin-pill {
    order: -1;
  }
  .poems-page {
    padding-top: 8px;
  }
  .poems-heading h1 {
    font-size: 22px;
  }
  .poems-welcome {
    padding: 10px;
    gap: 8px;
  }
  .poems-welcome img {
    width: 68px;
    height: 68px;
  }
  .poems-welcome strong {
    font-size: 20px;
  }
  .poems-welcome p {
    font-size: 12px;
  }
  .poem-cover {
    padding: 12px;
    min-height: 200px;
  }
  .poem-cover strong {
    font-size: 19px;
  }
  .poem-lines {
    padding: 7px;
    gap: 3px;
  }
  .poem-line {
    padding: 8px 6px;
    gap: 4px;
  }
  .poem-line-check {
    width: 15px;
  }
  .poem-line-check .icon {
    width: 15px;
    height: 15px;
  }
  .poem-parchment {
    padding: 20px 16px 25px;
  }
  .poem-full-text {
    font-size: clamp(16px, 4.6vw, 20px);
    line-height: 1.65;
  }
  .poem-revealed-title {
    font-size: 28px;
  }
  .poem-reward strong {
    font-size: 23px;
  }
  .poem-reward img {
    width: 110px;
    height: 139px;
  }
}
@media (max-width: 359px) {
  .poems-entry {
    padding: 10px;
    gap: 8px;
  }
  .poems-entry > img {
    width: 56px;
    height: 56px;
  }
  .poems-entry strong {
    font-size: 19px;
  }
  .poems-tabs button {
    font-size: 11px;
  }
  .poem-coach img {
    width: 42px;
    height: 42px;
  }
  .poem-coach p {
    font-size: 11px;
  }
  .poem-line-text {
    font-size: min(var(--verse-size), 18px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .poem-line {
    transition: none;
  }
}
