/*
Theme Name: Holka z Festivalu
Theme URI: https://holkazfestivalu.cz
Description: Knižní web pro román Holka z Festivalu — Míša Matanelli
Author: Míša Matanelli
Version: 1.19.0
*/

/* =========================================================
   RESET & CUSTOM PROPERTIES
   ========================================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --dark:        #160e04;
    --dark-mid:    #271508;
    --dark-card:   #1e1106;
    --dark-footer: #0e0904;
    --cream:       #f5e8cc;
    --cream-light: #fbf4e6;
    --gold:        #c07820;
    --gold-light:  #d4963a;
    --text-on-dark: #ddc9a3;
    --text-on-light: #4a3420;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'EB Garamond', Georgia, serif;

    --max-w: 1200px;
    --pad-section: 88px 24px;
}

html {
    font-size: 20px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark);
    background-image: url('assets/bg-pattern.svg');
    background-size: 800px auto;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: repeat;
    color: var(--text-on-dark);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.15;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    display: inline-block;
    padding: 11px 30px;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: background .25s, color .25s;
    cursor: pointer;
    background: transparent;
}
.btn:hover           { background: var(--gold);       color: var(--dark); }
.btn.btn-solid       { background: var(--gold);        color: var(--dark); }
.btn.btn-solid:hover { background: var(--gold-light);  border-color: var(--gold-light); }

/* =========================================================
   NAVIGATION
   ========================================================= */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 200;
    padding: 22px 24px;
    transition: background .35s, padding .35s, box-shadow .35s;
}
.site-header.scrolled {
    background: rgba(22, 14, 4, .97);
    padding: 14px 24px;
    box-shadow: 0 2px 24px rgba(0,0,0,.45);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--cream);
    letter-spacing: .04em;
    line-height: 1.1;
}
.site-logo small {
    display: block;
    font-family: var(--font-body);
    font-size: .6rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 34px;
}
.nav-menu a {
    font-family: var(--font-body);
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cream);
    opacity: .8;
    transition: opacity .2s, color .2s;
}
.nav-menu a:hover,
.nav-menu .current-menu-item a { opacity: 1; color: var(--gold); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 201;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--cream);
    transition: all .3s;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    height: 100vh;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(22,14,4,.25) 0%,
        rgba(22,14,4,.55) 55%,
        rgba(22,14,4,.90) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 0 24px;
}
.hero-eyebrow {
    display: block;
    font-size: .72rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 22px;
}
.hero-title {
    font-size: clamp(3rem, 8vw, 6.5rem);
    color: var(--cream);
    line-height: 1;
    margin-bottom: 22px;
}
.hero-title em { font-style: italic; }
.hero-subtitle {
    font-size: clamp(.9rem, 2vw, 1.05rem);
    color: var(--text-on-dark);
    font-style: italic;
    line-height: 1.9;
    margin-bottom: 40px;
}
.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================================================
   SECTION LABELS / SHARED
   ========================================================= */

.section-label {
    display: block;
    font-size: .68rem;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    color: var(--cream);
    margin-top: 8px;
}

/* =========================================================
   ABOUT SECTION
   ========================================================= */

.section-about {
    background: transparent;
    color: var(--text-on-dark);
    padding: var(--pad-section);
}
.about-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.about-inner .section-label { color: var(--gold); }
.about-quote {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.8vw, 1.9rem);
    font-style: italic;
    line-height: 1.55;
    margin-bottom: 22px;
    color: var(--cream);
}
.about-text {
    font-size: .95rem;
    color: var(--text-on-dark);
    line-height: 1.95;
    margin-bottom: 32px;
}

/* =========================================================
   CHAPTERS SECTION (homepage)
   ========================================================= */

.section-chapters {
    background: transparent;
    padding: var(--pad-section);
}
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.chapters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: var(--max-w);
    margin: 0 auto;
}

.chapter-card {
    background: var(--dark-card);
    overflow: hidden;
    transition: transform .3s;
}
.chapter-card:hover { transform: translateY(-5px); }

.chapter-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.chapter-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s;
}
.chapter-card:hover .chapter-card-image img { transform: scale(1.05); }

.chapter-num-overlay {
    position: absolute;
    bottom: 10px;
    left: 14px;
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    color: rgba(245,232,204,.18);
    line-height: 1;
    pointer-events: none;
}

.chapter-card-body { padding: 24px; }
.chapter-card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--cream);
    margin-bottom: 10px;
}
.chapter-card-excerpt {
    font-size: .84rem;
    color: var(--text-on-dark);
    opacity: .8;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.chapter-card .btn { font-size: .72rem; padding: 8px 18px; }

/* =========================================================
   AUTHOR SECTION
   ========================================================= */

.section-author {
    background: transparent;
    padding: var(--pad-section);
}
.author-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 72px;
    align-items: center;
}
.author-photo {
    position: relative;
}
.author-photo img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    filter: sepia(15%) brightness(.88);
}
.author-photo::after {
    content: '';
    position: absolute;
    inset: 14px -14px -14px 14px;
    border: 1px solid var(--gold);
    opacity: .25;
    pointer-events: none;
}
.author-name {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--cream);
    margin-bottom: 20px;
}
.author-text {
    font-size: .98rem;
    line-height: 1.95;
    color: var(--text-on-dark);
    margin-bottom: 32px;
}

/* =========================================================
   BLOG SECTION (homepage – 3 nejnovější díly)
   ========================================================= */

.section-blog {
    background: transparent;
    padding: var(--pad-section);
    border-top: 1px solid rgba(192,120,32,.14);
}
.section-blog .chapter-card { display: block; }
.blog-card-cat {
    display: inline-block;
    font-size: .65rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: .8;
    margin-bottom: 8px;
}
.blog-card-more {
    display: inline-block;
    font-size: .74rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
    transition: opacity .2s;
}
.section-blog .chapter-card:hover .blog-card-more { opacity: .7; }
.section-blog-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 48px;
}

/* =========================================================
   PAGE: O ROMÁNU
   ========================================================= */

.book-hero {
    position: relative;
    height: 70vh;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-bottom: 64px;
}
.book-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--dark-mid);
}
.book-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(22,14,4,.2) 0%, rgba(22,14,4,.85) 100%);
}
.book-hero-content { position: relative; z-index: 2; }
.book-hero-sub {
    font-size: .82rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-on-dark);
    opacity: .7;
    margin-top: 14px;
}

.book-synopsis-text {
    font-size: .98rem;
    color: var(--text-on-dark);
    line-height: 1.95;
    text-align: left;
    margin-top: 24px;
}
.book-synopsis-text p { margin-bottom: 1.4em; }

.book-pullquote {
    background: transparent;
    padding: 72px 24px;
}
.pull-quote {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.8vw, 1.9rem);
    font-style: italic;
    color: var(--cream);
    text-align: center;
    line-height: 1.6;
    max-width: 820px;
    margin: 0 auto;
    border: none;
    position: relative;
}
.pull-quote::before {
    content: '\201E';
    font-size: 5rem;
    color: var(--gold);
    opacity: .25;
    position: absolute;
    top: -30px;
    left: -20px;
    line-height: 1;
    font-style: normal;
}

.book-origin {
    background: transparent;
    padding: var(--pad-section);
}
.book-origin-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 72px;
    align-items: center;
}
.book-origin-text p {
    font-size: .98rem;
    color: var(--text-on-dark);
    line-height: 1.95;
}
.book-origin-image img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    filter: sepia(15%) brightness(.85);
}

.book-cta {
    background: transparent;
    padding: var(--pad-section);
    text-align: center;
}
.book-cta-inner { max-width: 600px; margin: 0 auto; }
.book-cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--cream);
    font-style: italic;
    margin-bottom: 16px;
}
.book-cta-sub {
    font-size: .98rem;
    color: var(--text-on-dark);
    opacity: .75;
}

/* =========================================================
   PAGE: AUTORKA
   ========================================================= */

.author-page-hero {
    padding: 120px 24px 80px;
    background: transparent;
}
.author-page-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    gap: 80px;
    align-items: start;
}
.author-page-photo {
    position: relative;
    top: 0;
}
.author-page-photo img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}
.author-page-photo::after {
    content: '';
    position: absolute;
    inset: 14px -14px -14px 14px;
    border: 1px solid var(--gold);
    opacity: .2;
    pointer-events: none;
}
.author-page-bio {
    font-size: 1rem;
    color: var(--text-on-dark);
    line-height: 1.95;
}
.author-page-bio p { margin-bottom: 1.4em; }

.author-more {
    background: transparent;
}
.author-more a { color: var(--gold); }

/* =========================================================
   RESPONSIVE — nové šablony
   ========================================================= */

@media (max-width: 900px) {
    .book-origin-inner,
    .author-page-inner  { grid-template-columns: 1fr; gap: 40px; }
    .author-page-photo::after { display: none; }
    .book-origin-image  { display: none; }
}

/* =========================================================
   ARCHIVE — všechny kapitoly
   ========================================================= */

.archive-page {
    padding: 120px 24px 80px;
    max-width: var(--max-w);
    margin: 0 auto;
}
.archive-header {
    text-align: center;
    margin-bottom: 64px;
}
.archive-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--cream);
    margin-top: 8px;
}
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* =========================================================
   SINGLE CHAPTER
   ========================================================= */

.chapter-single {
    max-width: 720px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}
.chapter-kap-label {
    display: block;
    font-size: .72rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}
.chapter-single h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--cream);
    font-style: italic;
    margin-bottom: 10px;
}
.chapter-meta {
    font-size: .8rem;
    color: var(--text-on-dark);
    opacity: .55;
    padding-bottom: 32px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(192,120,32,.2);
}
.chapter-featured-img {
    margin-bottom: 48px;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.chapter-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.chapter-content {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text-on-dark);
}
.chapter-content p { margin-bottom: 1.65em; }
.chapter-content p:first-of-type::first-letter {
    font-family: var(--font-display);
    font-size: 3.6em;
    float: left;
    line-height: .82;
    margin: 6px 8px 0 0;
    color: var(--gold);
}
.chapter-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 64px;
    padding-top: 28px;
    border-top: 1px solid rgba(192,120,32,.2);
    gap: 16px;
}
.chapter-nav a {
    color: var(--gold);
    font-size: .8rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: opacity .2s;
}
.chapter-nav a:hover { opacity: .7; }
.chapter-nav .nav-prev::before { content: '← '; }
.chapter-nav .nav-next::after  { content: ' →'; }

/* =========================================================
   GENERIC PAGE
   ========================================================= */

.generic-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}
.generic-page h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--cream);
    margin-bottom: 32px;
    font-style: italic;
}
.generic-page .page-content {
    font-size: 1rem;
    line-height: 1.95;
    color: var(--text-on-dark);
}
.generic-page .page-content p { margin-bottom: 1.5em; }

/* =========================================================
   TEXTOVÝ OBSAH — odkazy, nadpisy, seznamy, tabulky
   Platí pro články, stránky, ukázky i text u hry.
   ========================================================= */

.chapter-content a,
.page-content a,
.hra-intro-text a,
.author-content a,
.book-text a {
    color: var(--gold-light);
    text-decoration: underline;
    text-decoration-color: rgba(192, 120, 32, .5);
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    transition: color .2s, text-decoration-color .2s, background .2s;
}
.chapter-content a:hover,
.page-content a:hover,
.hra-intro-text a:hover,
.author-content a:hover,
.book-text a:hover {
    color: var(--cream);
    text-decoration-color: var(--gold-light);
    background: rgba(192, 120, 32, .14);
}
.chapter-content a:focus-visible,
.page-content a:focus-visible,
.hra-intro-text a:focus-visible,
.author-content a:focus-visible,
.book-text a:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 3px;
    border-radius: 2px;
}

/* odkaz mimo web dostane šipku */
.chapter-content a[target="_blank"]::after,
.page-content a[target="_blank"]::after {
    content: " ↗";
    font-size: .8em;
    opacity: .75;
}

/* nadpisy uvnitř textu */
.chapter-content h2, .page-content h2 {
    font-size: 1.5rem;
    color: var(--cream);
    margin: 2em 0 .7em;
}
.chapter-content h3, .page-content h3 {
    font-size: 1.2rem;
    color: var(--cream);
    margin: 1.6em 0 .6em;
}

/* seznamy */
.chapter-content ul, .chapter-content ol,
.page-content ul, .page-content ol {
    margin: 0 0 1.5em 1.2em;
    padding-left: .8em;
}
.chapter-content li, .page-content li { margin-bottom: .6em; }
.chapter-content li::marker, .page-content li::marker { color: var(--gold); }

/* tabulky (např. přehled cookies v zásadách) */
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.8em;
    font-size: .9rem;
    display: block;
    overflow-x: auto;
}
.page-content thead th {
    text-align: left;
    font-family: var(--font-body);
    font-size: .7rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 400;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(192, 120, 32, .45);
    white-space: nowrap;
}
.page-content tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(221, 201, 163, .12);
    vertical-align: top;
    line-height: 1.6;
}
.page-content tbody tr:last-child td { border-bottom: none; }
.page-content tbody td:first-child {
    color: var(--cream);
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-size: .82rem;
    white-space: nowrap;
}

/* citace a oddělovač */
.chapter-content blockquote, .page-content blockquote {
    border-left: 2px solid var(--gold);
    padding-left: 20px;
    margin: 0 0 1.6em;
    font-style: italic;
    color: var(--cream);
}
.chapter-content hr, .page-content hr {
    border: none;
    height: 1px;
    background: rgba(192, 120, 32, .3);
    margin: 2.4em 0;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: rgba(14, 9, 4, .55);
    padding: 64px 24px 32px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(192,120,32,.14);
    margin-bottom: 28px;
}
.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--cream);
    display: block;
    margin-bottom: 14px;
}
.footer-tagline {
    font-size: .88rem;
    color: var(--text-on-dark);
    opacity: .6;
    line-height: 1.7;
    max-width: 260px;
}
.footer-col-title {
    font-size: .66rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}
.footer-nav { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
    font-size: .88rem;
    color: var(--text-on-dark);
    opacity: .65;
    transition: opacity .2s, color .2s;
}
.footer-nav a:hover { opacity: 1; color: var(--gold); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: .75rem;
    color: var(--text-on-dark);
    opacity: .4;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 960px) {
    .chapters-grid,
    .archive-grid        { grid-template-columns: repeat(2, 1fr); }
    .author-inner        { grid-template-columns: 1fr; gap: 40px; }
    .author-photo::after { display: none; }
    .footer-top          { grid-template-columns: 1fr 1fr 1fr; }
    .footer-top > :first-child { grid-column: 1 / -1; }
}

/* =========================================================
   FORMAT VOTE SECTION
   ========================================================= */

.section-format {
    padding: var(--pad-section);
    border-top: 1px solid rgba(192,120,32,.14);
    text-align: center;
}
.format-inner { max-width: 600px; margin: 0 auto; }
.format-text {
    font-size: .95rem;
    color: var(--text-on-dark);
    opacity: .75;
    margin: 14px 0 40px;
    font-style: italic;
}
.format-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.format-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    padding: 32px 36px;
    background: var(--dark-card);
    border: 1px solid rgba(192,120,32,.25);
    color: var(--text-on-dark);
    font-family: var(--font-body);
    cursor: pointer;
    transition: border-color .25s, background .25s, transform .2s;
}
.format-btn:hover {
    border-color: var(--gold);
    background: var(--dark-mid);
    transform: translateY(-3px);
}
.format-btn-label {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--cream);
}
.format-btn-count {
    font-size: .76rem;
    letter-spacing: .1em;
    color: var(--gold);
    opacity: 0;
    transition: opacity .3s;
}
.format-buttons.voted .format-btn         { cursor: default; }
.format-buttons.voted .format-btn:hover   { transform: none; }
.format-buttons.voted .format-btn-count   { opacity: 1; }
.format-btn.voted-choice {
    border-color: var(--gold);
    background: rgba(192,120,32,.1);
}
.format-thanks {
    font-size: .88rem;
    color: var(--gold);
    font-style: italic;
    letter-spacing: .06em;
    margin-top: 8px;
}

/* =========================================================
   FLOATING VOTE WIDGET
   ========================================================= */

.vote-float {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 150;
    background: rgba(192, 120, 32, .18);
    border: 1px solid var(--gold);
    border-left: none;
    border-radius: 0 8px 8px 0;
    padding: 18px 14px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 3px 0 20px rgba(0,0,0,.4);
    min-width: 90px;
    backdrop-filter: blur(6px);
}
.vote-float-label {
    font-size: .6rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--cream);
    text-align: center;
    line-height: 1.5;
    margin-bottom: 4px;
}
.vote-float-btn {
    width: 100%;
    background: rgba(245,232,204,.08);
    border: 1px solid rgba(245,232,204,.35);
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: border-color .2s, background .2s;
}
.vote-float-btn:hover {
    border-color: var(--cream);
    background: rgba(245,232,204,.18);
}
.vote-float-name {
    font-family: var(--font-display);
    font-size: .85rem;
    color: var(--cream);
    font-weight: 700;
}
.vote-float-count {
    font-size: .7rem;
    color: var(--gold-light);
    opacity: 0;
    transition: opacity .3s;
}
.vote-float.voted .vote-float-count  { opacity: 1; }
.vote-float.voted .vote-float-btn    { cursor: default; }
.vote-float.voted .vote-float-btn:hover { border-color: rgba(245,232,204,.35); background: rgba(245,232,204,.08); }
.vote-float-btn.voted-choice {
    border-color: var(--cream);
    background: rgba(245,232,204,.2);
}
.vote-float-thanks {
    font-size: .62rem;
    color: var(--cream);
    font-style: italic;
    text-align: center;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .vote-float {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        transform: none;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
        border: 1px solid var(--gold);
        border-bottom: none;
        border-left: 1px solid var(--gold);
        border-radius: 10px 10px 0 0;
        padding: 10px 16px;
        min-width: unset;
        width: 100%;
    }
    .vote-float-label {
        font-size: .55rem;
        white-space: nowrap;
        margin-bottom: 0;
        margin-right: 4px;
    }
    .vote-float-btn {
        flex-direction: row;
        gap: 8px;
        padding: 8px 14px;
        flex: 1;
        max-width: 140px;
        justify-content: center;
    }
    .vote-float-thanks { margin-top: 0; }
}

/* =========================================================
   KONTAKT PAGE
   ========================================================= */

.section-kontakt-top {
    padding: 120px 24px 64px;
}
.kontakt-top-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 72px;
    align-items: center;
}
.kontakt-photo { position: relative; }
.kontakt-photo img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    filter: sepia(15%) brightness(.88);
}
.kontakt-photo::after {
    content: '';
    position: absolute;
    inset: 14px -14px -14px 14px;
    border: 1px solid var(--gold);
    opacity: .25;
    pointer-events: none;
}
.kontakt-info { display: flex; flex-direction: column; }
.kontakt-info .section-label { margin-top: 28px; }
.kontakt-info .section-label:first-child { margin-top: 0; }
.kontakt-where {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-style: italic;
    color: var(--cream);
    line-height: 1.5;
    margin-bottom: 8px;
}
.kontakt-email {
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: .04em;
    transition: opacity .2s;
    margin-bottom: 4px;
}
.kontakt-email:hover { opacity: .7; }

@media (max-width: 900px) {
    .kontakt-top-inner { grid-template-columns: 1fr; gap: 40px; }
    .kontakt-photo::after { display: none; }
}

/* =========================================================
   FAQ SECTION
   ========================================================= */


.section-faq {
    padding: var(--pad-section);
    border-top: 1px solid rgba(192,120,32,.14);
}
.faq-list {
    max-width: 760px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid rgba(192,120,32,.18);
}
.faq-item:first-child {
    border-top: 1px solid rgba(192,120,32,.18);
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: none;
    border: none;
    padding: 22px 0;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--cream);
    text-align: left;
    cursor: pointer;
    transition: color .2s;
}
.faq-question:hover,
.faq-question[aria-expanded="true"] { color: var(--gold); }

.faq-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    position: relative;
}
.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: currentColor;
    border-radius: 1px;
    transition: transform .3s, opacity .3s;
}
.faq-icon::before { width: 100%; height: 1px; top: 50%; transform: translateY(-50%); }
.faq-icon::after  { width: 1px; height: 100%; left: 50%; transform: translateX(-50%); }
.faq-question[aria-expanded="true"] .faq-icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}
.faq-answer {
    padding: 0 0 24px;
    font-size: .95rem;
    color: var(--text-on-dark);
    line-height: 1.85;
    max-width: 680px;
}
.faq-answer p { margin: 0; }

/* =========================================================
   CONTACT SECTION
   ========================================================= */

.section-contact {
    padding: var(--pad-section);
    border-top: 1px solid rgba(192,120,32,.14);
    text-align: center;
}
.contact-inner {
    max-width: 540px;
    margin: 0 auto;
}
.contact-text {
    font-size: .95rem;
    color: var(--text-on-dark);
    opacity: .75;
    margin: 14px 0 36px;
    font-style: italic;
}

@media (max-width: 640px) {
    :root { --pad-section: 56px 20px; }

    .nav-menu {
        display: none;
        position: fixed;
        inset: 0;
        background: var(--dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 36px;
        z-index: 199;
    }
    .nav-menu.is-open { display: flex; }
    .nav-menu a        { font-size: 1rem; }
    .nav-toggle        { display: flex; }

    .chapters-grid,
    .archive-grid  { grid-template-columns: 1fr; }

    .footer-top    { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}


/* =========================
   Stránka /hra/ — minihra
   ========================= */
.page-template-page-hra,
.page-template-page-hra-php { overflow-x: hidden; }

.hra-page   { max-width: 960px; margin: 0 auto; padding: 110px 24px 80px; }
.hra-intro  { text-align: center; }
.hra-intro h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); color: var(--cream); }
.hra-tagline  { font-family: var(--font-display); font-style: italic; color: var(--gold-light); margin-top: 10px; font-size: 1.15rem; }
.hra-desc     { max-width: 560px; margin: 14px auto 0; color: var(--text-on-dark); line-height: 1.6; }
.hra-embed    { margin-top: 32px; text-align: center; }
.hra-frame-wrap {
    position: relative;
    width: 100vw; margin-left: calc(50% - 50vw);   /* přes celou šířku stránky */
    height: calc(100vh - 150px); min-height: 500px;
    border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
    overflow: hidden; background: var(--dark);
}
.hra-frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Celá obrazovka bez spoléhání na prohlížeč. Když je telefon na výšku, hru otočíme
   o 90° sami — Android někdy odmítne zamknout otočení a iOS to neumí vůbec. */
.hra-frame-wrap.na-cele {
    position: fixed; inset: 0; z-index: 9999;
    width: 100%; height: 100%; margin: 0;
    min-height: 0; border: 0;
}
/* Telefon na výšku = hru otočíme o 90° sami. Řídí to media query, ne JavaScript —
   otáčení displeje se pak projeví okamžitě a nezávisle na tom, jestli prohlížeč
   pošle resize událost. Dotyky si prohlížeč přepočítá podle transformace sám. */
@media (orientation: portrait) {
    .hra-frame-wrap.na-cele iframe {
        position: absolute;
        inset: 50% auto auto 50%;
        width: 100vh; height: 100vw;                       /* rozměry prohozené */
        transform: translate(-50%, -50%) rotate(90deg);
        transform-origin: center center;
    }
}
html.hra-zamceno, html.hra-zamceno body { overflow: hidden; }
.hra-zavrit {
    position: fixed; top: 10px; right: 10px; z-index: 10000;
    display: none;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(22,14,4,.85); color: var(--cream);
    border: 1px solid rgba(212,150,58,.6);
    font-size: 20px; line-height: 1; cursor: pointer;
    align-items: center; justify-content: center;
}
.hra-zavrit.videt { display: flex; }
.hra-otoc {
    position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 10000;
    display: none;
    background: rgba(22,14,4,.85); color: var(--cream);
    border: 1px solid rgba(212,150,58,.4);
    padding: 8px 14px; border-radius: 999px; font-size: .8rem; white-space: nowrap;
}
.hra-otoc.videt { display: block; }
/* Jakmile telefon otočíš, hláška zmizí sama. */
@media (orientation: landscape) { .hra-otoc.videt { display: none; } }
@media (min-width: 900px) { .hra-otoc.videt { display: none; } }

.hra-tools  { margin-top: 18px; }
.hra-note   { margin-top: 10px; font-size: .9rem; color: var(--text-on-dark); opacity: .75; }
.hra-cta    { margin-top: 56px; text-align: center; }
.hra-cta p  { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--cream); margin-bottom: 18px; }
.hra-content { margin-top: 40px; }
/* text z WP editoru (Stránky → Hra): první odstavec = zvýrazněný podtitul */
.hra-intro-text p { max-width: 560px; margin: 14px auto 0; color: var(--text-on-dark); line-height: 1.6; }
.hra-intro-text p:first-child { font-family: var(--font-display); font-style: italic; color: var(--gold-light); margin-top: 10px; font-size: 1.15rem; max-width: none; }
@media (max-width: 700px){
    .hra-frame-wrap { height: 78vh; min-height: 380px; }
    .hra-page { padding-top: 90px; }
}

/* =========================================================
   SVĚTLÝ REŽIM (bílé pozadí, černý text)
   Obrázky zůstávají barevné — žádný filtr se na ně nedává.
   Přepínají se jen barevné proměnné + pár míst s natvrdo
   zapsanou tmavou barvou.
   ========================================================= */

html.light {
    --dark:        #faf7f1;   /* pozadí stránky */
    --dark-mid:    #f1e9db;
    --dark-card:   #ffffff;   /* karty */
    --dark-footer: #f2ebdd;
    --cream:       #191309;   /* nadpisy a silný text */
    --cream-light: #2a2119;
    --text-on-dark: #3c3226;  /* běžný text */
    --gold:        #9c5d13;   /* tmavší zlatá, aby byla čitelná na bílé */
    --gold-light:  #b8721c;
}
html.light body {
    background-image: none;
    background-color: var(--dark);
}

/* hlavička nesmí být průhledná nad tmavou fotkou, jinak by text zmizel */
html.light .site-header {
    background: rgba(250, 247, 241, .94);
    box-shadow: 0 1px 0 rgba(25, 19, 9, .1);
    backdrop-filter: blur(6px);
}
html.light .site-header.scrolled {
    background: rgba(250, 247, 241, .98);
    box-shadow: 0 2px 18px rgba(25, 19, 9, .12);
}

/* hero má vlastní fotku s tmavým přechodem — text tam musí zůstat světlý */
html.light .hero-title,
html.light .hero-subtitle { color: #f5e8cc; }
html.light .hero-eyebrow  { color: #d4963a; }
html.light .hero .btn {
    color: #f5e8cc;
    border-color: rgba(245, 232, 204, .7);
}
html.light .hero .btn:hover      { background: #d4963a; color: #160e04; border-color: #d4963a; }
html.light .hero .btn.btn-solid  { background: #d4963a; color: #160e04; border-color: #d4963a; }

/* mobilní menu přes celou obrazovku */
html.light .nav-menu { background: var(--dark); }

/* 404 chat — jeho bubliny byly natvrdo tmavé */
html.light .p404-chat .msg.on,
html.light .p404-typing {
    background: #f1e9db;
    border-color: rgba(25, 19, 9, .12);
    color: var(--text-on-dark);
}
html.light .p404-chat .msg.ona {
    background: rgba(156, 93, 19, .16);
    border-color: rgba(156, 93, 19, .35);
    color: #2a2119;
}
html.light .p404-chat .msg.sys { border-color: rgba(25, 19, 9, .35); color: #191309; }
html.light .p404-chat { box-shadow: 0 18px 44px rgba(25, 19, 9, .12); }

/* lišta souhlasu */
html.light .cookie-bar {
    background: rgba(250, 247, 241, .98);
    box-shadow: 0 -8px 34px rgba(25, 19, 9, .12);
}

/* tlačítko v hlavičce — až za menu, úplně vpravo */
.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
    order: 3;
}
.nav-inner .nav-menu { order: 2; }

.bw-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(192, 120, 32, .45);
    border-radius: 999px;
    padding: 6px 14px 6px 10px;
    cursor: pointer;
    color: var(--cream);
    font-family: var(--font-body);
    font-size: .62rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    line-height: 1;
    opacity: .85;
    transition: opacity .2s, border-color .2s, background .2s;
}
.bw-toggle:hover {
    opacity: 1;
    border-color: var(--gold-light);
    background: rgba(192, 120, 32, .12);
}
.bw-toggle:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 3px;
}

/* půlměsíc: půlka tmavá, půlka světlá */
.bw-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex: none;
    background: linear-gradient(90deg, #f5e8cc 0 50%, #160e04 50% 100%);
    box-shadow: inset 0 0 0 1px rgba(245, 232, 204, .55);
}
html.light .bw-dot {
    background: linear-gradient(90deg, #191309 0 50%, #ffffff 50% 100%);
    box-shadow: inset 0 0 0 1px rgba(25, 19, 9, .35);
}

/* Patička a další místa, kde bylo pozadí i linky zapsané natvrdo tmavou barvou.
   Ve světlém módu z toho byla šedá kaše a text v ní nebyl vidět. */
html.light .site-footer {
    background: var(--dark-footer);
    border-top: 1px solid rgba(25, 19, 9, .08);
}
html.light .footer-top     { border-bottom-color: rgba(25, 19, 9, .12); }

/* Průhlednost se v patičce násobí (spodní lišta .7 × odkaz .75 = skoro nic vidět).
   Ve světlém režimu proto průhlednost vypínáme a barvu píšeme rovnou. */
html.light .footer-tagline  { opacity: 1; color: #5c5040; }
html.light .footer-nav a    { opacity: 1; color: #3c3226; }
html.light .footer-nav a:hover { color: var(--gold); }
html.light .footer-col-title { color: #8a5211; }
html.light .footer-bottom   { opacity: 1; color: #5c5040; }
html.light .footer-legal a  { opacity: 1; color: #5c5040; }
html.light .footer-legal a:hover { color: var(--gold); }

/* Hlasování o formátu knihy: světlé průhledné pozadí na světlém webu zmizelo. */
html.light .vote-float-btn {
    background: rgba(25, 19, 9, .04);
    border-color: rgba(25, 19, 9, .25);
}
html.light .vote-float-btn:hover,
html.light .vote-float-btn.voted-choice {
    background: rgba(25, 19, 9, .1);
    border-color: rgba(25, 19, 9, .5);
}
html.light .vote-float.voted .vote-float-btn:hover {
    background: rgba(25, 19, 9, .04);
    border-color: rgba(25, 19, 9, .25);
}

/* Číslo kapitoly přes obrázek a linky v tabulkách. */
html.light .chapter-num-overlay        { color: rgba(25, 19, 9, .22); }
html.light .page-content tbody td      { border-bottom-color: rgba(25, 19, 9, .12); }

@media (max-width: 900px) {
    .bw-label { display: none; }
    .bw-toggle { padding: 8px; }
}

/* =========================================================
   LIŠTA SOUHLASU S COOKIES
   ========================================================= */

.cookie-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
    background: rgba(22, 14, 4, .97);
    border-top: 1px solid var(--gold);
    box-shadow: 0 -8px 34px rgba(0, 0, 0, .5);
    padding: 18px 24px;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar-inner {
    max-width: var(--max-w); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
}
.cookie-bar-text {
    font-size: .82rem; line-height: 1.6; color: var(--text-on-dark);
    max-width: 62ch; margin: 0;
}
.cookie-bar-text a { color: var(--gold-light); text-decoration: underline; }
.cookie-bar-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-bar .btn { padding: 9px 22px; font-size: .7rem; }

@media (max-width: 700px) {
    .cookie-bar { padding: 16px 18px; }
    .cookie-bar-inner { gap: 14px; }
    .cookie-bar-actions { width: 100%; }
    .cookie-bar .btn { flex: 1; text-align: center; }
}

/* právní odkazy v patičce */
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { opacity: .75; }
.footer-legal a:hover { opacity: 1; color: var(--gold-light); }

/* =========================================================
   404 — „Tahle stránka neodpovídá."
   ========================================================= */

.p404-page {
    max-width: 660px; margin: 0 auto; padding: 130px 20px 80px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.p404-title {
    font-size: clamp(2rem, 6vw, 2.9rem); color: var(--cream);
    margin-top: 14px; text-wrap: balance;
}
.p404-sub {
    font-style: italic; color: var(--text-on-dark); opacity: .8;
    max-width: 36ch; margin: 12px auto 38px;
}

.p404-chat {
    width: 100%; max-width: 480px; background: var(--dark-card);
    border: 1px solid rgba(192, 120, 32, .28); border-radius: 10px;
    overflow: hidden; text-align: left; box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.p404-chat-head {
    display: flex; align-items: center; gap: 12px; padding: 13px 18px;
    background: var(--dark-mid); border-bottom: 1px solid rgba(192, 120, 32, .18);
}
.p404-avatar {
    width: 36px; height: 36px; border-radius: 50%; flex: none;
    background: linear-gradient(135deg, #3a2410, #241608);
    border: 1px solid rgba(192, 120, 32, .45);
    display: grid; place-items: center;
    font-family: var(--font-display); color: var(--gold-light); font-size: .95rem;
}
.p404-chat-name   { font-family: var(--font-display); color: var(--cream); font-size: .95rem; line-height: 1.2; }
.p404-chat-status { font-size: .7rem; color: var(--text-on-dark); opacity: .6; font-style: italic; }
.p404-chat-body {
    padding: 20px 16px 26px; display: flex; flex-direction: column; gap: 4px;
    height: 460px; overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: rgba(192, 120, 32, .55) rgba(22, 14, 4, .4);
}
.p404-chat-body::-webkit-scrollbar { width: 8px; }
.p404-chat-body::-webkit-scrollbar-track { background: rgba(22, 14, 4, .4); }
.p404-chat-body::-webkit-scrollbar-thumb {
    background: rgba(192, 120, 32, .55); border-radius: 999px;
}
.p404-chat-body::-webkit-scrollbar-thumb:hover { background: rgba(212, 150, 58, .75); }

.p404-chat .msg {
    position: relative; max-width: 82%; padding: 8px 14px 9px;
    font-size: .82rem; line-height: 1.5; border-radius: 16px; margin-top: 8px;
    font-family: system-ui, 'Segoe UI', sans-serif;
    opacity: 0; transform: translateY(8px);
    transition: opacity .45s ease, transform .45s ease;
}
.p404-chat .msg.shown { opacity: 1; transform: none; }
.p404-chat .msg .time {
    display: block; font-size: .6rem; color: var(--text-on-dark); opacity: .55;
    margin-top: 3px; letter-spacing: .04em;
}
.p404-chat .msg.ona {
    align-self: flex-end;
    background: rgba(192, 120, 32, .24); border: 1px solid rgba(192, 120, 32, .35);
    color: var(--cream-light); border-bottom-right-radius: 4px;
}
.p404-chat .msg.ona .time { text-align: right; }
.p404-chat .msg.on {
    align-self: flex-start;
    background: #241708; border: 1px solid rgba(221, 201, 163, .13);
    color: var(--text-on-dark); border-bottom-left-radius: 4px;
}
.p404-chat .msg.sys {
    align-self: center; background: none;
    border: 1px dashed rgba(245, 232, 204, .35); border-radius: 6px;
    color: var(--cream); font-size: .7rem; letter-spacing: .14em;
    text-transform: uppercase; text-align: center;
    padding: 9px 18px; margin: 16px 0 8px;
}
.p404-chat .msg.deleted {
    align-self: flex-end; background: none;
    border: 1px solid rgba(221, 201, 163, .18);
    color: var(--text-on-dark); opacity: .6; font-style: italic; font-size: .74rem;
}
.p404-chat .msg.photo { padding: 5px; }
.p404-chat .msg.photo svg {
    display: block; width: 220px; max-width: 100%;
    border-radius: 12px; border-bottom-left-radius: 3px;
}
.p404-chat .msg.photo .caption { padding: 6px 9px 4px; display: block; }
.p404-chat .msg.photo .time    { padding: 0 9px 4px; }
.p404-chat .react {
    position: absolute; bottom: -11px; right: 14px;
    background: var(--dark-mid); border: 1px solid rgba(192, 120, 32, .35);
    border-radius: 999px; padding: 1px 7px 2px; font-size: .7rem; line-height: 1.3;
    opacity: 0; transform: scale(.4);
    transition: opacity .3s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.p404-chat .react.shown { opacity: 1; transform: scale(1); }
.p404-seen {
    align-self: flex-end; font-size: .62rem; font-style: italic;
    color: var(--text-on-dark); opacity: 0; margin-top: 4px;
    transition: opacity .45s ease;
}
.p404-seen.shown { opacity: .55; }
.p404-divider {
    align-self: center; font-size: .64rem; font-style: italic;
    letter-spacing: .12em; color: var(--text-on-dark);
    margin: 18px 0 6px; opacity: 0; transition: opacity .45s ease;
}
.p404-divider.shown { opacity: .5; }
.p404-typing {
    align-self: flex-start; display: none; gap: 5px; padding: 11px 16px;
    background: #241708; border: 1px solid rgba(221, 201, 163, .13);
    border-radius: 16px; border-bottom-left-radius: 4px; margin-top: 8px;
}
.p404-typing.shown { display: flex; }
.p404-typing i {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--text-on-dark); opacity: .5;
    animation: p404blink 1.2s infinite;
}
.p404-typing i:nth-child(2) { animation-delay: .2s; }
.p404-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes p404blink {
    0%, 60%, 100% { opacity: .2; }
    30% { opacity: .9; }
}

.p404-punchline {
    margin-top: 42px; font-family: var(--font-display);
    font-size: clamp(1.15rem, 3.4vw, 1.45rem); color: var(--cream);
    line-height: 1.4; max-width: 30ch; text-wrap: balance;
}
.p404-punchline em { color: var(--gold-light); font-style: italic; }
.p404-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.p404-pulse { animation: p404pulse 1.6s ease 2; }
@keyframes p404pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 150, 58, 0); }
    50%      { box-shadow: 0 0 0 9px rgba(212, 150, 58, .22); }
}
.p404-footnote {
    margin-top: 44px; font-size: .72rem; font-style: italic;
    color: var(--text-on-dark); opacity: .6; max-width: 46ch;
}

@media (max-width: 700px){
    .p404-page { padding-top: 100px; }
}
@media (prefers-reduced-motion: reduce){
    .p404-chat .msg, .p404-seen, .p404-chat .react { transition: none; }
    .p404-pulse { animation: none; }
}
