#reading-corner {
  --corner-art: url("assets/hearth-library.webp");
  width: min(1200px, 96vw); max-width: none; height: 94vh; height: 94dvh;
  max-height: 96dvh; padding: 22px; color: var(--cream);
  border: 1px solid var(--gold); border-radius: 12px;
  background: linear-gradient(rgba(38,27,17,.78), rgba(38,27,17,.86)), var(--corner-art) center / cover;
  box-shadow: 0 24px 80px #140f0bb3;
}
#reading-corner[open] { display: flex; flex-direction: column; }
#reading-corner[data-setting="hearth"] { --corner-art: url("assets/stone-apothecary.webp"); }
#reading-corner[data-setting="forest"] { --corner-art: url("assets/lantern-forest.jpeg"); background-size: auto, cover; }
#reading-corner::backdrop { background: rgba(25,20,14,.88); }
.reading-open { overflow: hidden; }
.corner-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-shrink: 0; }
.corner-toolbar .eyebrow { margin: 0 0 6px; }
#corner-title { font-size: clamp(1.25rem, 3vw, 2rem); }
#reading-corner button, #reading-corner select { font: inherit; color: var(--cream); background: #463321; border: 1px solid #b89460; border-radius: 5px; padding: 10px 14px; min-height: 44px; }
#close-corner { flex-shrink: 0; }
.corner-comfort { margin: 14px 0; flex-shrink: 0; }
.corner-comfort summary { display: list-item; padding: 6px 0; color: var(--gold); }
.comfort-options { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; padding: 10px 0; }
.comfort-options label { display: flex; flex-direction: column; gap: 4px; }
.comfort-options p { margin: 0; font-size: .8rem; max-width: 230px; }
#corner-reader { flex: 1 0 220px; width: 100%; min-height: 220px; border: 1px solid #ad8b59; border-radius: 8px; box-shadow: -5px 0 #b39770, -9px 0 #6e5132, 0 8px 26px #110c08a6; background: transparent; }
#corner-status:empty { display: none; }
#corner-status { font-size: .85rem; margin: 0 0 8px; }
.corner-fallback { font-size: .75rem; margin: 10px 0 0; }
.corner-fallback a { text-decoration: underline; }
@media(max-width:620px) {
  #reading-corner { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; padding: 14px; border-radius: 0; overflow-y: auto; }
  .corner-toolbar { align-items: flex-start; flex-direction: column-reverse; gap: 10px; }
  #close-corner { align-self: flex-end; }
  #corner-reader { box-shadow: 0 4px 18px #110c08a6; }
}
