html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: #ffffff;
}

body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
}

* {
  box-sizing: border-box;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  overflow: hidden;
  padding-top: 7px;
  padding-bottom: 10px;
}

.title:empty,
.dek:empty {
  display: none;
  margin: 0;
  padding: 0;
  background: transparent;
}

.cover.has-framed-image {
  background: #ffffff;
}

.cover.has-framed-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/images/adcover.avif");
  background-size: cover;
  background-position: center;
  opacity: 0.82;
  filter: blur(0.5px) saturate(0.85);
  transform: scale(1.04);
  pointer-events: none;
  z-index: 0;
}

.cover.has-framed-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.28);
  pointer-events: none;
  z-index: 1;
}

.cover-img.cover-framed {
  position: relative;
  z-index: 2;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  margin: 10px;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

/* Title/dek black backing without trapping meta */
h1.title {
  display: table;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  padding: 8px 12px;
  margin-bottom: 6px;
}

p.dek {
  display: table;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  padding: 6px 10px;
  margin-bottom: 8px;
}

/* Ad cards with faded background image */
.ad-cover {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.ad-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/images/adcover.avif");
  background-size: cover;
  background-position: center;
  opacity: 0.82;
  filter: blur(0.5px) saturate(0.85);
  transform: scale(1.04);
  pointer-events: none;
  z-index: 0;
}

.ad-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.28);
  pointer-events: none;
  z-index: 1;
}

.ad-cover > * {
  position: relative;
  z-index: 2;
}

.ad-card-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 60px 20px 20px;
  background: transparent;
  transform: translateY(-15px);
}

.ad-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #777777;
}

.ad-slot {
  width: 100%;
  max-width: 320px;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-slot img,
.ad-slot iframe {
  max-width: 100%;
  display: block;
}

.ad-slot iframe {
  border: 0;
}

.card,
.card-copy,
.title,
.dek,
.meta {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.card {
  touch-action: pan-y;
}

.reader-toolbar-bottom {
  justify-content: center;
  gap: 12px;
  padding-bottom: 28px;
}

.reader-tip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #ff0000;
  color: #f4ebe1;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(255,0,0,.22);
}

.reader-tip-btn:hover {
  color: #ffffff;
  text-decoration: none;
}

.age-gate {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0,0,0,.92);
}

.age-gate.open {
  display: flex;
}

.age-gate-box {
  width: 420px;
  max-width: calc(100vw - 44px);
  background: #ffffff;
  color: #000000;
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 22px 80px rgba(0,0,0,.45);
}

.age-gate-box h1 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: .95;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.age-gate-box p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.45;
  color: #333333;
}

.age-gate-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.age-gate-actions button {
  flex: 1;
  min-height: 48px;
}

.age-gate-actions button.primary {
  background: #ff0000;
  color: #ffffff;
}

.legal-footer {
  flex: 0 0 auto;
  margin: 8px 0 0;
  padding-top: 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1;
  text-align: center;
  color: #999999;
}

.legal-footer a {
  color: #666666;
  text-decoration: none;
}

.legal-footer a:hover {
  text-decoration: underline;
}

.legal-footer span {
  color: #bbbbbb;
  margin: 0 4px;
}

button.primary:disabled {
  opacity: 1;
  cursor: default;
  color: transparent;
  background: #ff0000;
  box-shadow: 0 12px 30px rgba(255,0,0,.22);
}

.issue-cover-copy {
  position: absolute;
  z-index: 3;
  left: 22px;
  right: 22px;
  bottom: 28px;
  color: #ffffff;
}

.issue-month {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,.75);
}

.issue-title {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 11vw, 58px);
  line-height: .9;
  letter-spacing: -.055em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 4px 16px rgba(0,0,0,.8);
}

.issue-dek {
  margin: 0 0 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.35;
  color: #eeeeee;
  text-shadow: 0 2px 10px rgba(0,0,0,.75);
}

.issue-headlines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.issue-headlines li {
  margin: 0 0 11px;
  padding: 0 0 11px;
  border-bottom: 1px solid rgba(255,255,255,.38);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(17px, 4.7vw, 22px);
  font-weight: 900;
  line-height: 1.12;
  color: #ffffff;
  text-shadow: 0 3px 12px rgba(0,0,0,.85);
}

.issue-headlines li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.image-viewer {
  margin: 20px 0 40px;
}

.image-viewer img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.image-viewer a {
  display: block;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.92);
  padding: 18px;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-close {
  position: fixed;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  min-height: 42px;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  font-size: 28px;
  line-height: 1;
  z-index: 201;
}

.deck-progress {
  width: calc(100% - 36px);
  max-width: 404px;
  height: 18px;
  margin: 5px 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.deck-progress-title {
  width: 100%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .15em;
  text-align: center;
  color: #666666;
  text-transform: uppercase;
}

.deck-progress-track {
  display: none;
  width: 80%;
  height: 4px;
  background: #eeeeee;
  border-radius: 999px;
  overflow: hidden;
}

.deck-progress-bar {
  width: 0%;
  height: 100%;
  background: #ff0000;
  border-radius: 999px;
  transition: width .25s ease;
}

.topbar {
  width: calc(100% - 36px);
  max-width: 404px;
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.topbar a {
  display: block;
  width: 100%;
  line-height: 0;
}

.logo-img {
  display: block;
  width: 100%;
  max-width: 404px;
  height: auto;
  margin: 0 auto;
}

.deck-wrap {
  width: 100%;
  max-width: 440px;
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0 18px;
  margin: 0;
}

.card {
  position: absolute;
  inset: 0 18px 0 18px;
  max-width: 404px;
  margin: 0 auto;
  height: auto;
  min-height: 0;
  max-height: none;
  border-radius: 28px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(0,0,0,.22), 0 0 0 1px rgba(0,0,0,.12);
  transform: translateX(0) rotate(0deg) scale(1);
  transition: transform .16s ease, opacity .16s ease;
  touch-action: none;
  cursor: grab;
  opacity: 1;
  z-index: 2;
}

.card.dragging {
  transition: none;
  cursor: grabbing;
}

.card.next,
.card.hidden {
  display: none;
}

.cover {
  width: 100%;
  height: 100%;
  position: relative;
  background: #000000;
}

.cover-img,
.cover-video,
.cover-embed {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 1;
  background: #000000;
}

.cover-img,
.cover-video {
  object-fit: cover;
  object-position: center;
}

.app-copyright {
  flex: 0 0 auto;
  margin: 4px 0 0;
  padding-top: 2px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  line-height: 1;
  color: #999999;
  text-align: center;
  letter-spacing: .04em;
}

.cover-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: auto;
  background: #000000;
}

/* Overrides the Bunny embed's 16:9 wrapper so it fills the vertical card */
.cover-embed > div {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding-top: 0 !important;
  pointer-events: auto;
}

/* Forces the iframe to behave like full-bleed cover video */
.cover-embed iframe {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 177.78vh !important;
  height: 100vh !important;
  min-width: 100% !important;
  min-height: 100% !important;
  transform: translate(-50%, -50%) scale(1.25);
  transform-origin: center center;
  border: 0 !important;
  pointer-events: auto;
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.label {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  background: #d31a12;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  padding: 8px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.card-copy {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 24px;
}

.title {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 8vw, 46px);
  line-height: .92;
  letter-spacing: -.045em;
  text-transform: uppercase;
  text-shadow: 0 4px 16px rgba(0,0,0,.75);
  color: #ffffff;
}

.dek {
  margin: 0 0 18px;
  color: #eeeeee;
  font-size: 15px;
  line-height: 1.35;
  max-width: 95%;
  text-shadow: 0 2px 10px rgba(0,0,0,.65);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #cfcfcf;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,.65);
}

.open-link {
  display: none;
}

.controls {
  width: min(390px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  z-index: 20;
  margin: 10px auto 0;
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  flex: 0 0 auto;
}

button {
  border: 0;
  border-radius: 999px;
  min-height: 52px;
  color: #000000;
  background: #f4ebe1;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18), 0 8px 24px rgba(0,0,0,.08);
  font-weight: 900;
  cursor: pointer;
}

button.primary {
  color: #ffffff;
  background: #d31a12;
  box-shadow: 0 12px 30px rgba(255,0,0,.22);
}

button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.hint {
  display: none;
}

.reader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 100;
  display: none;
  color: #000000;
}

.reader.open {
  display: block;
}

.reader-shell {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.reader-toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 14px;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid #e6e6e6;
  backdrop-filter: blur(12px);
}

.reader-toolbar button {
  min-height: 44px;
  padding: 0 14px;
  font-size: 12px;
}

.reader-content {
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 80px;
  color: #111111;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.58;
}

.reader-content h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 10vw, 84px);
  line-height: .92;
  letter-spacing: -.06em;
  text-transform: uppercase;
  margin: 24px 0 14px;
}

.reader-content .story-kicker {
  display: inline-block;
  background: #d31a12;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 8px 10px;
}

.reader-content .story-dek {
  color: #555555;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 28px;
}

.reader-content img,
.reader-content video,
.reader-content iframe {
  max-width: 100%;
  border-radius: 18px;
}

.reader-content figure {
  margin: 28px 0;
}

.reader-content figcaption {
  color: #777777;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  margin-top: 8px;
}

.reader-content blockquote {
  border-left: 6px solid #d31a12;
  margin: 30px 0;
  padding: 4px 0 4px 18px;
  font-size: 26px;
  line-height: 1.25;
}

.story-ad {
  margin: 34px 0;
  padding: 22px;
  border: 1px dashed rgba(0,0,0,.25);
  border-radius: 18px;
  color: #555555;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}

@media (min-width: 760px) {
  .topbar {
    max-width: 440px;
  }

  .logo-img {
    max-width: 440px;
  }

  .deck-wrap {
    max-width: 520px;
  }

  .card {
    max-width: 440px;
  }

  .deck-progress {
    max-width: 440px;
  }
}

/* Desktop blurred swipe backdrop */
.desktop-backdrop {
  display: none;
}

@media (min-width: 1024px) {
  html,
  body {
    background: #111111;
  }

 .desktop-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #ffffff;
}

.desktop-backdrop-image {
  position: absolute;
  inset: -50px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: blur(30px);
  transform: scale(1.14);
  opacity: 0.38;
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.desktop-backdrop-image.is-changing {
  opacity: 0.18;
  transform: scale(1.18);
}

.desktop-backdrop-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.45), rgba(255,255,255,0.82)),
    radial-gradient(circle at center, rgba(255,255,255,0.08), rgba(255,255,255,0.55));
}

  .app {
    position: relative;
    z-index: 1;
    background: transparent;
  }

  .deck-wrap,
  .controls,
  .topbar,
  .deck-progress,
  .legal-footer,
  .app-copyright {
    position: relative;
    z-index: 2;
  }
}
