:root { --black: #010101; --graphite: #2e2e2e; --gold-deep: #854c14; --gold-400: #c6a26c; --gold-300: #d4b991; --gold-100: #f1e8da; --silver: #d5d5d5; --heading: 'Oswald', sans-serif; --body: 'Golos Text', sans-serif; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: var(--black); color: var(--gold-100); font-family: var(--body); }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; }
[hidden] { display: none !important; }
.reader-shell { display: flex; height: 100dvh; flex-direction: column; }
.reader-header { display: grid; min-height: 66px; grid-template-columns: auto auto minmax(0, 1fr) auto auto; align-items: center; gap: 18px; border-bottom: 1px solid var(--graphite); padding: 8px 16px; }
.reader-header button, .reader-header a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border: 1px solid var(--graphite); border-radius: 12px; background: transparent; color: var(--gold-100); }
.reader-close { font-size: 30px; }
.reader-issue-number { color: var(--gold-400); font-family: var(--heading); font-size: 26px; }
.reader-header h1 { overflow: hidden; font-family: var(--heading); font-size: 24px; font-weight: 500; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
#reader-counter { min-width: 110px; color: var(--gold-300); font-family: var(--heading); font-size: 24px; text-align: center; }
.reader-tools { display: flex; gap: 8px; }
.reader-tools button { font-size: 25px; }
.reader-tools a { border-color: var(--gold-400); padding-inline: 18px; color: var(--gold-300); font-weight: 700; }
.reader-stage { position: relative; display: grid; min-height: 0; flex: 1; overflow: auto; place-items: center; padding: 28px 90px; touch-action: pan-y; }
.reader-pages { display: flex; align-items: flex-start; gap: 8px; margin: auto; }
.reader-pages img { display: block; width: 100%; height: auto; background: #fff; user-select: none; }
.reader-pages.has-two img { width: calc(50% - 4px); }
.reader-arrow { position: fixed; top: 50%; z-index: 5; display: grid; width: 56px; height: 56px; place-items: center; border: 1px solid var(--gold-deep); border-radius: 50%; background: var(--black); color: var(--gold-300); font-size: 28px; transform: translateY(-50%); }
.reader-arrow:hover { border-color: var(--gold-400); }
.reader-arrow:disabled { cursor: default; opacity: .25; }
.reader-arrow--prev { left: 18px; }
.reader-arrow--next { right: 18px; }
.reader-loading { position: absolute; top: 20px; left: 50%; border: 1px solid var(--gold-deep); border-radius: 999px; padding: 8px 18px; background: var(--black); color: var(--gold-300); transform: translateX(-50%); }
.reader-finish { margin: auto; padding: 40px 20px; text-align: center; }
.reader-finish > p:first-child { color: var(--gold-400); font-family: var(--heading); font-size: 26px; }
.reader-finish h2 { margin-block: 20px 12px; font-family: var(--heading); font-size: clamp(48px, 6vw, 82px); font-weight: 600; line-height: 1; text-transform: uppercase; }
.reader-finish .actions { display: flex; justify-content: center; gap: 16px; margin-block: 34px 24px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 12px; padding: 12px 24px; background: linear-gradient(90deg, var(--gold-deep), #936327); color: #fff; font-weight: 700; }
.button--outline { border-color: var(--gold-400); background: transparent; color: var(--gold-300); }
.reader-finish > a { color: var(--gold-300); text-decoration: underline; text-underline-offset: 5px; }
.nojs-reader { padding: 30px; }
.nojs-reader h2 { margin-bottom: 20px; font-family: var(--heading); }
.nojs-reader img { display: block; width: min(100%, 1000px); margin: 0 auto 20px; }
.cookie-banner { position: fixed; right: 20px; bottom: 20px; z-index: 20; width: min(460px, calc(100% - 40px)); border: 1px solid var(--gold-400); border-radius: 14px; padding: 20px; background: #111; }
.cookie-banner button { min-height: 44px; margin: 16px 10px 0 0; border: 1px solid var(--gold-400); border-radius: 10px; padding: 8px 16px; background: var(--gold-deep); color: #fff; }
@media (max-width: 800px) {
  .reader-header { min-height: 64px; grid-template-columns: auto 1fr auto; gap: 10px; padding: 8px 12px; }
  .reader-issue-number, .reader-header h1 { display: none; }
  #reader-counter { min-width: 0; font-size: 22px; text-align: left; }
  .reader-tools { gap: 6px; }
  .reader-tools a { padding-inline: 12px; font-size: 14px; }
  .reader-stage { padding: 20px 10px 110px; }
  .reader-arrow { top: auto; bottom: 24px; width: 64px; height: 64px; transform: none; }
  .reader-arrow--prev { left: 24px; }
  .reader-arrow--next { right: 24px; }
  .reader-finish h2 { font-size: 48px; }
  .reader-finish .actions { flex-direction: column; }
}
@media (max-width: 430px) {
  .reader-header { gap: 6px; }
  .reader-tools a { padding-inline: 9px; font-size: 12px; }
  #reader-counter { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
