:root {
  color-scheme: light;
  --ink: #3e454d;
  --paper: #f4f5f6;
  --cream: #ffffff;
  --red: #fdbe1c;
  --teal: #3e454d;
  --mustard: #f6d46f;
  --muted: #66717b;
  --shadow: 0 16px 34px rgba(62, 69, 77, .16);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { width: 100%; max-width: 100%; overflow-x: hidden; background: transparent; scroll-behavior: smooth; }

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  color: var(--ink);
  background: transparent;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button { font: inherit; }

.experience {
  position: relative;
  width: min(100%, 1180px);
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(253,190,28,.07) 0 1px, transparent 1.5px) 0 0 / 13px 13px,
    var(--paper);
  border: 1px solid rgba(40, 39, 35, .16);
  isolation: isolate;
}

.experience::before,
.experience::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 280px;
  height: 280px;
  border: 24px solid rgba(212, 71, 61, .08);
  border-radius: 50%;
}

.experience::before { top: 250px; right: -160px; border-color: rgba(253,190,28,.10); }
.experience::after { bottom: 80px; left: -190px; border-color: rgba(253,190,28,.07); }

.masthead {
  min-height: 225px;
  display: grid;
  grid-template-columns: 200px 1fr 270px;
  gap: 28px;
  align-items: center;
  padding: 30px 44px;
  color: white;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 94%, 91% 97%, 80% 94%, 70% 98%, 58% 95%, 47% 99%, 35% 95%, 22% 98%, 10% 94%, 0 97%);
}

.issue-mark {
  width: 200px;
  min-height: 160px;
  display: grid;
  place-content: center;
  justify-items: center;
  background: var(--red);
  transform: rotate(-2deg);
  box-shadow: 7px 8px 0 rgba(255,255,255,.11);
}

.issue-mark strong { font: 900 clamp(4.5rem, 10vw, 7.2rem)/.76 Georgia, serif; }
.issue-mark span { margin-top: 14px; font-size: .86rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { margin: 0 0 4px; color: var(--mustard); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.heading h1 { margin: 0; font: 800 clamp(3rem, 7vw, 5.3rem)/.9 Georgia, serif; }
.heading h1 span { color: var(--red); }
.standfirst { max-width: 640px; margin: 14px 0 0; color: #ece7dd; font-family: Georgia, serif; font-size: 1.05rem; line-height: 1.45; }

.header-actions {
  width: 100%;
  display: grid;
  gap: 10px;
}

.mosaic-button,
.fullscreen-button {
  width: 100%;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 10px 15px;
  color: white;
  background: transparent;
  cursor: pointer;
}

.fullscreen-button {
  min-height: 48px;
  border: 2px solid white;
  color: white;
  background: var(--red);
  box-shadow: 4px 4px 0 var(--mustard);
  font-weight: 900;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.author-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  padding-left: 20px;
  border-left: 1px solid rgba(255,255,255,.22);
}

.publication-logo {
  display: block;
  width: min(100%, 245px);
  height: auto;
}

.author-credit {
  width: 100%;
  padding: 9px 12px 10px;
  color: var(--ink);
  background: var(--mustard);
  transform: rotate(-1deg);
  box-shadow: 4px 4px 0 rgba(255,255,255,.12);
}

.author-credit span,
.author-credit em {
  display: block;
  font-size: .7rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.author-credit strong {
  display: block;
  margin: 1px 0;
  font-family: Georgia, serif;
  font-size: 1.3rem;
  line-height: 1.08;
}

.mosaic-button:hover, .mosaic-button:focus-visible { background: white; color: var(--ink); }
.fullscreen-button:hover, .fullscreen-button:focus-visible { color: var(--ink); background: white; transform: translate(-1px,-1px); }

/* Pantalla completa con desplazamiento vertical real.
   BODY es el elemento fullscreen y funciona como contenedor de scroll,
   incluso cuando el iframe de Joomla tiene scrolling="no". */
body:fullscreen {
  width: 100%;
  height: 100vh;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--paper);
}

body:fullscreen .experience {
  width: 100%;
  max-width: none;
  min-height: 100%;
  overflow: visible;
  border: 0;
}

/* Compatibilidad con navegadores que todavía exponen el pseudoselector WebKit. */
body:-webkit-full-screen {
  width: 100%;
  height: 100vh;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--paper);
}

body:-webkit-full-screen .experience {
  width: 100%;
  max-width: none;
  min-height: 100%;
  overflow: visible;
  border: 0;
}

.intro {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px;
  padding: 26px 48px 18px;
  font-family: Georgia, serif;
  font-size: 1rem;
  line-height: 1.55;
}

.intro p { margin: 0; }
.intro p:first-child::first-letter { float: left; margin: .05em .08em 0 0; color: var(--red); font-size: 3.6em; font-weight: 800; line-height: .72; }

.chapter-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 48px 18px;
  padding: 11px 18px;
  color: white;
  background: var(--teal);
  transform: rotate(-.35deg);
  box-shadow: 5px 5px 0 rgba(25,26,29,.12);
}

.chapter-line span, .chapter-line time { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.chapter-line strong { flex: 1; font-family: Georgia, serif; font-size: 1.25rem; }

.viewer {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(280px, 38%) 1fr;
  gap: clamp(30px, 6vw, 78px);
  align-items: center;
  padding: 20px 70px 28px;
}

.cover-zone { position: relative; display: grid; place-items: center; min-height: 460px; }
.cover-zone::before { content: ""; position: absolute; inset: 9% -8% 4% 4%; background: var(--cream); transform: rotate(2deg); clip-path: polygon(1% 2%, 99% 0, 97% 97%, 4% 100%); }

.cover-button {
  position: relative;
  width: min(100%, 305px);
  padding: 13px;
  border: 0;
  background: white;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transform: rotate(-2deg);
  transition: transform .35s ease, box-shadow .35s ease;
}

.cover-button:hover, .cover-button:focus-visible { transform: rotate(0) translateY(-8px); box-shadow: 0 26px 48px rgba(30,27,22,.23); }
.cover-button img { display: block; width: 100%; height: auto; }
.tape { position: absolute; z-index: 3; top: 13px; width: 118px; height: 34px; background: rgba(225,205,153,.76); transform: rotate(4deg); box-shadow: 0 1px 1px rgba(0,0,0,.08); pointer-events: none; }
.zoom-hint { position: absolute; right: 18px; bottom: 18px; padding: 7px 10px; color: white; background: rgba(18,18,18,.76); font-size: .76rem; font-weight: 750; opacity: 0; transform: translateY(5px); transition: .25s ease; }
.cover-button:hover .zoom-hint, .cover-button:focus-visible .zoom-hint { opacity: 1; transform: none; }
.cover-number { position: absolute; right: -25px; bottom: 4px; z-index: -1; color: rgba(25,26,29,.10); font: 900 9rem/.7 Georgia, serif; }

.story { position: relative; padding: 34px 38px 36px; background: var(--cream); clip-path: polygon(0 2%, 98% 0, 100% 96%, 2% 100%); }
.story.is-changing { animation: paper-change .38s ease; }
.date { margin: 0 0 8px; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.story h2 { margin: 0; font: 800 clamp(2rem, 5vw, 3.55rem)/1 Georgia, serif; }
.subtitle { display: inline-block; max-width: 100%; margin: 13px 0 9px; padding: 7px 10px; color: white; background: var(--accent, var(--red)); font-size: .82rem; font-weight: 850; line-height: 1.35; letter-spacing: .06em; text-transform: uppercase; }
.credit { margin: 4px 0; color: var(--muted); font-size: .85rem; font-weight: 700; }
.rule { width: 100px; height: 6px; margin: 23px 0; background: var(--accent, var(--red)); }
.description { max-width: 58ch; margin: 0; font-family: Georgia, serif; font-size: 1.08rem; line-height: 1.62; }

.closing-panel {
  position: relative;
  min-height: 520px;
  margin: 22px 48px 34px;
  overflow: hidden;
  padding: clamp(48px, 8vw, 92px);
  color: white;
  background: var(--ink);
  clip-path: polygon(0 2%, 98% 0, 100% 95%, 91% 98%, 79% 95%, 66% 99%, 53% 96%, 39% 100%, 24% 96%, 11% 99%, 0 96%);
}

.closing-panel::before {
  content: "";
  position: absolute;
  inset: auto -80px -150px auto;
  width: 360px;
  height: 360px;
  border: 30px solid rgba(253,190,28,.34);
  border-radius: 50%;
}

.closing-number {
  position: absolute;
  top: 15px;
  right: 50px;
  color: rgba(255,255,255,.07);
  font: 900 clamp(9rem, 23vw, 17rem)/1 Georgia, serif;
}

.closing-kicker {
  position: relative;
  margin: 0 0 12px;
  color: var(--mustard);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.closing-panel h2 {
  position: relative;
  max-width: 760px;
  margin: 0 0 24px;
  font: 800 clamp(2.7rem, 7vw, 5.2rem)/.98 Georgia, serif;
}

.closing-panel > p:not(.closing-kicker):not(.closing-author) {
  position: relative;
  max-width: 750px;
  margin: 0 0 24px;
  color: #eef0f2;
  font-family: Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.65;
}

.closing-author { position: relative; margin: 0; color: var(--mustard); }
.closing-actions { position: relative; display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.restart-button,
.closing-mosaic-button,
.return-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border: 2px solid white;
  padding: 13px 22px;
  color: var(--ink);
  background: white;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.restart-button { border-color: var(--red); color: white; background: var(--red); box-shadow: 6px 6px 0 var(--mustard); }
.restart-button:hover,
.restart-button:focus-visible { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--mustard); }
.closing-mosaic-button:hover,
.closing-mosaic-button:focus-visible { color: white; background: transparent; }
.return-button { border-color: var(--mustard); color: var(--ink); background: var(--mustard); }
.return-button:hover,
.return-button:focus-visible { color: white; background: transparent; }

.controls { display: grid; grid-template-columns: 1fr minmax(190px, 310px) 1fr; align-items: center; gap: 20px; padding: 0 48px 18px; }
.arrow {
  min-width: 165px;
  min-height: 56px;
  border: 2px solid var(--ink);
  padding: 13px 22px;
  color: white;
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--mustard);
  font-size: .94rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.arrow:first-child { justify-self: start; }
.arrow:last-child { justify-self: end; }
.arrow:hover, .arrow:focus-visible { color: white; background: var(--red); box-shadow: 7px 7px 0 var(--mustard); transform: translate(-2px,-2px); }
.arrow:disabled { opacity: .28; cursor: default; box-shadow: none; transform: none; }
.counter { display: flex; justify-content: center; gap: 6px; margin-bottom: 7px; font-size: .86rem; }
.counter strong { color: var(--red); }
.progress { height: 4px; overflow: hidden; background: rgba(25,26,29,.16); }
.progress span { display: block; width: 4%; height: 100%; background: var(--red); transition: width .35s ease; }

.filmstrip {
  width: 100%;
  max-width: 100%;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 12px 48px 28px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
}


.thumb {
  flex: 0 0 80px;
  position: relative;
  scroll-snap-align: center;
  border: 3px solid transparent;
  padding: 4px;
  background: rgba(255,255,255,.6);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
}

.thumb img { display: block; width: 100%; aspect-ratio: .71; object-fit: cover; filter: saturate(.62); }
.thumb span { position: absolute; left: 7px; bottom: 7px; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: white; background: var(--ink); font-size: .68rem; font-weight: 800; }
.thumb:hover { transform: translateY(-4px) rotate(-1deg); }
.thumb[aria-current="true"] { border-color: var(--red); transform: translateY(-5px); }
.thumb[aria-current="true"] img { filter: none; }
.thumb[aria-current="true"] span { background: var(--red); }

.footer-note { display: flex; justify-content: space-between; gap: 20px; padding: 17px 48px; border-top: 1px solid rgba(25,26,29,.2); color: var(--muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }

dialog { max-width: none; max-height: none; border: 0; padding: 0; color: white; background: rgba(19,20,23,.96); }
dialog::backdrop { background: rgba(10,10,12,.82); backdrop-filter: blur(5px); }
.lightbox[open] { width: min(92vw, 760px); height: min(94vh, 980px); display: grid; place-items: center; padding: 54px 30px 28px; }
.lightbox img { max-width: 100%; max-height: calc(100% - 42px); object-fit: contain; box-shadow: 0 18px 50px #000; }
.lightbox p { margin: 15px 0 0; text-align: center; font-family: Georgia, serif; }
.close { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: white; background: transparent; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.lightbox .close { position: absolute; top: 12px; right: 12px; }
.close:hover, .close:focus-visible { color: var(--ink); background: white; }

.mosaic[open] { width: min(94vw, 1040px); max-height: 92vh; padding: 28px; overflow: auto; }
.mosaic-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 22px; }
.mosaic-head p { margin: 0 0 4px; color: var(--mustard); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.mosaic-head h2 { margin: 0; font: 800 2.4rem/1 Georgia, serif; }
.mosaic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mosaic-item { position: relative; border: 0; padding: 9px; background: white; box-shadow: 0 12px 24px rgba(0,0,0,.28); cursor: pointer; }
.mosaic-item:nth-child(odd) { transform: rotate(-1deg); }
.mosaic-item:nth-child(even) { transform: rotate(1deg); }
.mosaic-item img { display: block; width: 100%; }
.mosaic-item span { position: absolute; left: 14px; bottom: 14px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: white; background: var(--red); font-weight: 850; }

@keyframes paper-change { 0% { opacity: .25; transform: translateX(18px) rotate(.4deg); } 100% { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .masthead { grid-template-columns: 150px 1fr; gap: 20px 26px; padding: 28px 30px 42px; }
  .issue-mark { width: 145px; min-height: 130px; }
  .issue-mark strong { font-size: 5.5rem; }
  .author-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(190px, 245px) minmax(190px, 1fr) auto;
    gap: 16px;
    align-items: center;
    width: 100%;
    padding: 14px 0 0;
    border-top: 1px solid rgba(255,255,255,.22);
    border-left: 0;
  }
  .publication-logo { justify-self: start; }
  .author-credit { width: min(100%, 320px); }
  .header-actions { justify-self: end; width: min(100%, 250px); }
  .intro { padding-inline: 34px; }
  .chapter-line { margin-inline: 34px; }
  .viewer { gap: 34px; padding-inline: 40px; }
}

@media (max-width: 760px) {
  .masthead { min-height: 0; grid-template-columns: 95px 1fr; gap: 18px; padding: 24px 18px 38px; }
  .issue-mark { width: 92px; min-height: 96px; }
  .issue-mark strong { font-size: 4.2rem; }
  .issue-mark span { margin-top: 7px; font-size: .55rem; letter-spacing: .05em; }
  .eyebrow { font-size: .68rem; }
  .heading h1 { font-size: clamp(2.4rem, 12vw, 3.8rem); }
  .standfirst { font-size: .88rem; }
  .author-panel { grid-column: 1 / -1; width: 100%; display: grid; grid-template-columns: minmax(150px, 1fr) minmax(145px, .9fr); gap: 10px 16px; align-items: center; padding: 12px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.22); }
  .publication-logo { width: min(100%, 230px); }
  .author-credit { padding: 8px 10px; }
  .author-credit strong { font-size: 1.05rem; }
  .header-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; width: 100%; margin-top: 2px; }
  .intro { grid-template-columns: 1fr; gap: 12px; padding: 18px 22px 14px; font-size: .96rem; }
  .intro p:nth-child(2) { padding-left: 18px; border-left: 4px solid var(--red); }
  .chapter-line { margin: 5px 20px 12px; gap: 9px; }
  .chapter-line strong { font-size: 1rem; }
  .viewer { min-height: 0; grid-template-columns: 1fr; gap: 12px; padding: 14px 22px 18px; }
  .cover-zone { min-height: 390px; }
  .cover-button { width: min(72vw, 285px); }
  .cover-number { right: 4%; font-size: 7.4rem; }
  .story { padding: 27px 25px 30px; }
  .story h2 { font-size: 2.25rem; }
  .description { font-size: 1.02rem; }
  .closing-panel { min-height: 560px; margin: 18px 18px 28px; padding: 64px 28px 76px; }
  .closing-panel h2 { font-size: clamp(2.45rem, 12vw, 4rem); }
  .closing-number { top: 18px; right: 8px; font-size: 9rem; }
  .closing-actions { flex-direction: column; }
  .restart-button, .closing-mosaic-button, .return-button { width: 100%; }
  .controls { grid-template-columns: 1fr 82px 1fr; gap: 10px; padding: 0 22px 14px; }
  .arrow { min-width: 0; width: 100%; min-height: 52px; padding: 10px 9px; font-size: .74rem; }
  .filmstrip { padding: 10px 22px 24px; }
  .footer-note { flex-direction: column; gap: 5px; padding: 15px 22px; }
  .mosaic-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .header-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ==========================================================
   IDENTIDAD VISUAL — CIUDAD CAPITAL
   Paleta tomada del logo institucional: amarillo #FDBE1C,
   gris grafito #3E454D, blanco y grises neutros.
   ========================================================== */

.experience {
  background:
    linear-gradient(135deg, rgba(253,190,28,.045) 0 1px, transparent 1px) 0 0 / 18px 18px,
    var(--paper);
  border: 1px solid rgba(62,69,77,.16);
}

.experience::before,
.experience::after {
  border-color: rgba(253,190,28,.10);
}

.masthead {
  color: var(--ink);
  background: #ffffff;
  border-top: 7px solid var(--red);
  border-bottom: 1px solid rgba(62,69,77,.16);
  clip-path: none;
}

.issue-mark {
  color: var(--ink);
  background: var(--red);
  transform: none;
  box-shadow: none;
}

.issue-mark strong,
.heading h1,
.author-credit strong,
.chapter-line strong,
.story h2,
.closing-panel h2,
.description,
.lightbox p,
.mosaic-head h2 {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.eyebrow {
  color: #a36d00;
}

.heading h1 span {
  color: var(--red);
}

.standfirst {
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.author-panel {
  border-left-color: rgba(62,69,77,.20);
}

.publication-logo {
  width: min(100%, 205px);
  max-height: 92px;
  object-fit: contain;
}

.author-credit {
  color: var(--ink);
  background: #f0f2f3;
  border-left: 4px solid var(--red);
  transform: none;
  box-shadow: none;
}

.mosaic-button,
.fullscreen-button {
  border-radius: 4px;
}

.mosaic-button {
  border-color: rgba(62,69,77,.36);
  color: var(--ink);
  background: #ffffff;
}

.fullscreen-button {
  border-color: var(--red);
  color: var(--ink);
  background: var(--red);
  box-shadow: none;
}

.mosaic-button:hover,
.mosaic-button:focus-visible,
.fullscreen-button:hover,
.fullscreen-button:focus-visible {
  border-color: var(--ink);
  color: #ffffff;
  background: var(--ink);
  transform: none;
}

.intro {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.intro p:first-child {
  padding-left: 18px;
  border-left: 4px solid var(--red);
}

.intro p:first-child::first-letter {
  float: none;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.chapter-line {
  border-left: 6px solid var(--red);
  background: var(--ink);
  transform: none;
  box-shadow: none;
}

.cover-zone::before {
  background: rgba(253,190,28,.13);
  transform: none;
  clip-path: none;
}

.cover-button {
  border: 1px solid rgba(62,69,77,.13);
  transform: none;
}

.cover-button:hover,
.cover-button:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(62,69,77,.22);
}

.tape {
  background: rgba(253,190,28,.55);
  transform: rotate(2deg);
}

.cover-number {
  color: rgba(62,69,77,.09);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.story {
  background: var(--cream);
  border-top: 4px solid var(--accent, #b87a00);
  box-shadow: 0 12px 30px rgba(62,69,77,.10);
  clip-path: none;
}

.date {
  color: var(--muted);
}

.subtitle {
  border-radius: 2px;
}

.rule {
  height: 4px;
}

.closing-panel {
  background: var(--ink);
  border-top: 6px solid var(--red);
  clip-path: none;
}

.closing-panel::before {
  border-color: rgba(253,190,28,.34);
}

.closing-number {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.closing-kicker,
.closing-author {
  color: var(--red);
}

.restart-button,
.closing-mosaic-button,
.return-button,
.arrow {
  border-radius: 4px;
}

.restart-button {
  border-color: var(--red);
  color: var(--ink);
  background: var(--red);
  box-shadow: none;
}

.restart-button:hover,
.restart-button:focus-visible {
  color: var(--ink);
  background: #ffd35c;
  box-shadow: none;
  transform: none;
}

.return-button {
  border-color: var(--red);
  color: var(--ink);
  background: var(--red);
}

.arrow {
  border-color: var(--ink);
  color: #ffffff;
  background: var(--ink);
  box-shadow: 4px 4px 0 rgba(253,190,28,.72);
}

.arrow:hover,
.arrow:focus-visible {
  border-color: var(--red);
  color: var(--ink);
  background: var(--red);
  box-shadow: none;
  transform: none;
}

.counter strong {
  color: #a36d00;
}

.progress span {
  background: var(--red);
}

.thumb {
  background: rgba(255,255,255,.88);
}

.thumb:hover {
  transform: translateY(-4px);
}

.thumb[aria-current="true"] {
  border-color: var(--red);
}

.thumb[aria-current="true"] span,
.mosaic-item span {
  color: var(--ink);
  background: var(--red);
}

.footer-note {
  background: rgba(255,255,255,.65);
}

.mosaic-head p {
  color: var(--red);
}

@media (max-width: 960px) {
  .author-panel {
    border-top-color: rgba(62,69,77,.20);
  }
}

@media (max-width: 760px) {
  .author-panel {
    border-top-color: rgba(62,69,77,.20);
  }
  .publication-logo {
    width: min(100%, 185px);
    max-height: 84px;
  }
  .intro p:nth-child(2) {
    border-left-color: rgba(62,69,77,.24);
  }
}
