/* Page-turning magazine viewer (Nov 2026) */
.mag { width: 100%; margin-top: 4px; }
.mag__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 22px; }
.mag__tab {
  padding: 9px 18px; border-radius: 100px; cursor: pointer;
  border: 1px solid rgba(10, 11, 15, .2); background: transparent; color: inherit;
  font: 600 13px/1 Inter, system-ui, sans-serif; letter-spacing: .02em; opacity: .75;
  transition: background .2s, color .2s, opacity .2s, border-color .2s;
}
.mag__tab:hover { opacity: 1; }
.mag__tab.is-active { background: #E5FF53; border-color: #E5FF53; color: #0a0b0f; opacity: 1; }
.mag__stage { width: 100%; max-width: 900px; margin: 0 auto; }
.mag__book { width: 100%; aspect-ratio: 900 / 636; max-height: 80vh; margin: 0 auto; }
.mag__book .stf__parent { margin: 0 auto; }
.mag__book .stf__block { filter: drop-shadow(0 18px 30px rgba(10, 11, 15, .28)); }
.mag__page { position: relative; overflow: hidden; background: #f4f3ef; }
.mag__page img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.mag__page::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.mag__page.--soft.--left::after { background: linear-gradient(to left, rgba(0,0,0,.2), rgba(0,0,0,.05) 4%, rgba(0,0,0,0) 10%); }
.mag__page.--soft.--right::after { background: linear-gradient(to right, rgba(0,0,0,.2), rgba(0,0,0,.05) 4%, rgba(0,0,0,0) 10%); }
@media (max-width: 640px) { .mag__book { aspect-ratio: 450 / 636; } }
.mag__controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; }
.mag__btn {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(10, 11, 15, .25); background: transparent; color: inherit;
  display: grid; place-items: center; font-size: 16px; line-height: 1; transition: background .2s, opacity .2s;
}
.mag__btn:hover:not(:disabled) { background: #E5FF53; border-color: #E5FF53; color: #0a0b0f; }
.mag__btn:disabled { opacity: .3; cursor: default; }
.mag__count { min-width: 150px; text-align: center; font-size: 13px; opacity: .7; font-variant-numeric: tabular-nums; }
.mag__hint { text-align: center; font-size: 12px; opacity: .55; margin-top: 10px; }
.mag:focus { outline: none; }
@media (max-width: 640px) { .mag__hint { display: none; } }
