/* KJK Webes Olvasó és Játékmotor Stíluslap - Antik Pergamen és Fantasy Kódex */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;900&family=Marcellus&family=MedievalSharp&display=swap');

:root {
    --bg-wood: #18110b;
    --parchment-light: #f5ecd8;
    --parchment-base: #ebdcc0;
    --parchment-dark: #d8c29d;
    --leather-dark: #2c1b10;
    --gold-accent: #c59b27;
    --gold-light: #f7d560;
    --crimson: #801818;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Marcellus', Georgia, serif;
    --font-medieval: 'MedievalSharp', cursive, serif;
    --shadow-deep: 0 10px 30px rgba(0,0,0,0.7);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-wood) url('https://www.transparenttextures.com/patterns/dark-wood.png');
    color: #2b1f14;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px));
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

/* Felső Főfejléc */
#site-header {
    background: linear-gradient(180deg, #2a180e 0%, #170d07 100%);
    border-bottom: 3px solid var(--gold-accent);
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
    padding: max(16px, env(safe-area-inset-top, 16px)) max(20px, env(safe-area-inset-right, 20px)) 16px max(20px, env(safe-area-inset-left, 20px));
    color: #e8d8be;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.brand-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    font-size: 34px;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 26px;
    letter-spacing: 2px;
    color: var(--gold-light);
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
}

.brand-sub {
    font-size: 14px;
    color: #b59b7c;
    letter-spacing: 1px;
}

/* Jobb felső vezérlő konténer */
.header-right-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Környezeti Háttérzaj Gomb */
.ambient-toggle-btn {
    background: linear-gradient(180deg, #382718 0%, #1f140b 100%);
    border: 1px solid #7c5e3d;
    color: #e0d0be;
    cursor: pointer;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 13px;
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.25s ease;
    user-select: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    touch-action: manipulation;
}

.ambient-toggle-btn:hover {
    filter: brightness(1.2);
    border-color: #b59b7c;
}

.ambient-toggle-btn.ambient-active {
    background: linear-gradient(180deg, #1b4d2e 0%, #0d2b17 100%);
    border-color: #4cd97b;
    color: #72f7a1;
    box-shadow: 0 0 12px rgba(76, 217, 123, 0.4);
}

/* Felhasználói Profil Kezelő */
.user-profile-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.4);
    padding: 6px 14px;
    border: 1px solid var(--gold-accent);
    border-radius: 6px;
    flex-wrap: wrap;
}

/* Felhő Szinkronizáció Állapotjelző */
.sync-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    padding: 3px 9px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #b59b7c;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.sync-indicator.synced {
    color: #72f7a1;
    border-color: rgba(114, 247, 161, 0.45);
    background: rgba(13, 43, 23, 0.6);
}

.sync-indicator.syncing {
    color: #f1c40f;
    border-color: rgba(241, 196, 15, 0.45);
    background: rgba(45, 36, 10, 0.6);
}

.sync-indicator.syncing .sync-icon {
    display: inline-block;
    animation: spin-sync 1s linear infinite;
}

@keyframes spin-sync {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sync-indicator.offline {
    color: #e67e22;
    border-color: rgba(230, 126, 34, 0.45);
    background: rgba(40, 20, 10, 0.6);
}

.sync-indicator.error {
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.45);
    background: rgba(45, 10, 10, 0.6);
}

.user-profile-box label {
    font-size: 15px;
    color: var(--gold-light);
}

.gold-input {
    background: #120904;
    border: 1px solid var(--gold-accent);
    color: #fff;
    padding: 6px 10px;
    font-family: var(--font-body);
    font-size: 16px;
    border-radius: 4px;
    outline: none;
    width: 150px;
}

.gold-btn {
    background: linear-gradient(180deg, #c59b27 0%, #87620d 100%);
    color: #fff;
    border: 1px solid #ffe07a;
    font-family: var(--font-heading);
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: filter 0.15s ease, transform 0.1s ease;
}

.gold-btn:active {
    transform: scale(0.98);
}

.gold-btn:hover {
    filter: brightness(1.15);
}

/* Fő Konténer */
.main-wrapper {
    max-width: 1280px;
    margin: 25px auto;
    padding: 0 16px;
}

/* Kereső és Szűrősáv */
.search-toolbar {
    background: rgba(27, 18, 12, 0.85);
    border: 1px solid #4a3221;
    border-radius: 8px;
    padding: 14px 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: #e0d0b8;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 250px;
}

.search-input {
    width: 100%;
    max-width: 400px;
    background: #0d0704;
    border: 1px solid #6b4c30;
    color: #fff;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
}

.profile-badges-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-badge {
    background: #2a1b11;
    border: 1px solid #63462d;
    padding: 4px 10px;
    font-size: 14px;
    border-radius: 12px;
    cursor: pointer;
    color: #cfbda8;
}

.profile-badge.active {
    background: var(--gold-accent);
    color: #1a0f07;
    font-weight: bold;
    border-color: #ffd875;
}

/* Könyvespolc Rács (Books Grid) */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.book-card {
    background: linear-gradient(180deg, #24160d 0%, #150c07 100%);
    border: 2px solid #543924;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-deep);
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    cursor: pointer;
}

.book-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--gold-accent);
    box-shadow: 0 16px 35px rgba(197, 155, 39, 0.35);
}

.book-cover-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.55;
    background: #0a0603;
    overflow: hidden;
}

.book-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.book-card:hover .book-cover-img {
    transform: scale(1.04);
}

.series-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.85);
    color: var(--gold-light);
    border: 1px solid var(--gold-accent);
    padding: 3px 8px;
    font-size: 13px;
    font-family: var(--font-heading);
    border-radius: 4px;
    font-weight: bold;
}

.progress-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, rgba(139, 0, 0, 0.95), rgba(90, 0, 0, 0.95));
    color: #fff;
    padding: 5px 10px;
    font-size: 13px;
    text-align: center;
    font-weight: bold;
    border-top: 1px solid #e74c3c;
}

.book-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    color: #d6c6b2;
}

.book-title {
    font-family: var(--font-heading);
    font-size: 19px;
    color: var(--gold-light);
    margin-bottom: 4px;
    line-height: 1.3;
}

.book-author {
    font-size: 13px;
    color: #9e856c;
    margin-bottom: 8px;
}

.book-desc {
    font-size: 14px;
    color: #bcab97;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.open-book-btn {
    background: #382214;
    border: 1px solid #734d2d;
    color: #f7e6cf;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: background 0.2s, border-color 0.2s;
}

.book-card:hover .open-book-btn {
    background: var(--gold-accent);
    border-color: #ffd875;
    color: #150c07;
}

/* ========================================================
   KÖNYVOLVASÓ NÉZET (READER VIEW)
   ======================================================== */
#reader-view {
    display: none;
}

/* Olvasó Fejléc & Kalandlap Gyorssáv */
.reader-topbar {
    background: linear-gradient(180deg, #24150d 0%, #170d07 100%);
    border: 2px solid var(--gold-accent);
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: var(--shadow-deep);
}

.reader-book-meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.reader-thumb {
    width: 48px;
    height: 72px;
    object-fit: cover;
    border: 1px solid var(--gold-accent);
    border-radius: 3px;
}

.reader-title-box h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--gold-light);
}

.reader-title-box p {
    font-size: 13px;
    color: #9e856c;
}

/* HUD Stat Értékek */
.reader-stats-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0,0,0,0.5);
    padding: 8px 14px;
    border: 1px solid #4a3321;
    border-radius: 6px;
    flex-wrap: wrap;
}

.hud-stat-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    font-weight: bold;
    color: #e8d8be;
}

.stat-icon {
    font-size: 18px;
}

/* Fejezet Ugró Sáv */
.section-jump-toolbar {
    background: rgba(18, 11, 7, 0.9);
    border: 1px solid var(--gold-accent);
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.jump-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jump-label {
    color: var(--gold-light);
    font-family: var(--font-heading);
    font-size: 16px;
}

.jump-input {
    background: #0a0502;
    border: 2px solid var(--gold-accent);
    color: #fff;
    padding: 6px 12px;
    font-size: 18px;
    width: 90px;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: bold;
    border-radius: 4px;
    outline: none;
}

.jump-input:focus {
    box-shadow: 0 0 10px rgba(197, 155, 39, 0.7);
}

/* Antik Pergamen Kódex Lap */
.parchment-scroll {
    background: var(--parchment-base) var(--parchment-img, url('https://www.transparenttextures.com/patterns/parchment.png'));
    border: 12px solid #2b180d;
    outline: 3px solid var(--gold-accent);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.85), inset 0 0 60px rgba(160, 120, 60, 0.35);
    position: relative;
    min-height: 500px;
    color: #111111;
}

.section-header {
    text-align: center;
    border-bottom: 2px double #8a6a42;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 32px;
    color: #5c1818;
    text-shadow: 0 1px 1px rgba(255,255,255,0.6);
}

.section-body {
    font-size: 21px;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Szörny találkozás doboz */
.monster-encounter-card {
    display: none;
    background: linear-gradient(180deg, #421616 0%, #2b0e0e 100%);
    border: 2px solid #c0392b;
    border-radius: 8px;
    padding: 16px 20px;
    color: #fff;
    margin-bottom: 25px;
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.3);
}

.monster-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.monster-title {
    font-family: var(--font-heading);
    font-size: 22px;
    color: #f1c40f;
}

/* Döntési Lehetőségek Gombjai */
.choices-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.choice-btn {
    background: #e2d1b1;
    border: 2px solid #8f704b;
    color: #3b2210;
    padding: 14px 20px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: bold;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    transition: background 0.15s, transform 0.1s, border-color 0.15s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-height: 48px;
}

.choice-btn:hover {
    background: #fff3db;
    border-color: var(--crimson);
    color: var(--crimson);
    transform: translateX(5px);
}

.choice-target {
    background: #8f704b;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 16px;
    font-family: var(--font-heading);
}

.choice-btn:hover .choice-target {
    background: var(--crimson);
}

.choice-content-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
    margin-right: 12px;
}

.choice-arrow {
    color: var(--crimson);
    font-size: 18px;
    font-weight: bold;
}

.choice-text-desc {
    flex: 1;
    line-height: 1.35;
}

.choice-dice-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    white-space: nowrap;
}

.choice-dice-badge.dice-badge {
    background: linear-gradient(135deg, #d35400 0%, #a04000 100%);
    color: #fff;
    border: 1px solid #78281f;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.choice-dice-badge.luck-badge {
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
    color: #fff;
    border: 1px solid #145a32;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.choice-dice-badge.bad-luck-badge {
    background: linear-gradient(135deg, #c0392b 0%, #922b21 100%);
    color: #fff;
    border: 1px solid #641e16;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.choice-dice-badge.skill-badge {
    background: linear-gradient(135deg, #2980b9 0%, #1f618d 100%);
    color: #fff;
    border: 1px solid #154360;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.choice-dice-badge.stamina-badge {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    border: 1px solid #78281f;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.choice-btn.has-badge {
    border-left: 6px solid #d35400;
}

/* Jegyzetek szövegdoboz */
.notes-section {
    border-top: 1px dashed #997755;
    padding-top: 18px;
    margin-top: 25px;
}

.notes-section label {
    font-family: var(--font-heading);
    font-size: 16px;
    color: #634325;
    display: block;
    margin-bottom: 6px;
}

.notes-textarea {
    width: 100%;
    height: 80px;
    background: rgba(255,255,255,0.5);
    border: 1px solid #aa8a66;
    border-radius: 4px;
    padding: 10px;
    font-family: var(--font-body);
    font-size: 17px;
    color: #2b180d;
    resize: vertical;
    outline: none;
}

/* ========================================================
   MODÁLIS ABLAKOK (KOCKADOBÓ & KALANDLAP)
   ======================================================== */
.kjk-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overscroll-behavior: contain;
}

.kjk-modal-overlay.active {
    display: flex;
}

.kjk-modal-box {
    background: var(--parchment-base) var(--parchment-img, url('https://www.transparenttextures.com/patterns/parchment.png'));
    border: 8px solid #2b180d;
    outline: 2px solid var(--gold-accent);
    border-radius: 10px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    padding: 25px;
    color: #2b180d;
    box-shadow: 0 15px 50px rgba(0,0,0,0.9);
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #8a6a42;
    padding-bottom: 10px;
    margin-bottom: 18px;
}

.modal-head h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: #5c1818;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #5c1818;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Kockadobó Felület */
.dice-arena {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.dice-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    min-height: 90px;
}

.die {
    width: 80px;
    height: 80px;
    background: #fffdf7;
    border: 3px solid #3b2010;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    font-weight: 900;
    font-family: var(--font-heading);
    color: #2b1509;
    box-shadow: 0 8px 18px rgba(0,0,0,0.4);
    transition: transform 0.1s;
}

.die.rolling {
    animation: roll3d 0.35s infinite ease-in-out;
}

@keyframes roll3d {
    0% { transform: rotate(0deg) scale(0.9); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(0.9); }
}

.dice-result-text {
    font-family: var(--font-heading);
    font-size: 24px;
    color: #3b1d0e;
    text-align: center;
}

.dice-btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

/* Harci szekció a kockadobóban */
.battle-section {
    background: #ddcca8;
    border: 2px solid #8f704b;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
}

.battle-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.battle-inputs label {
    font-size: 14px;
    font-weight: bold;
    color: #4a2d15;
    display: block;
}

.battle-input {
    width: 100%;
    padding: 6px;
    border: 1px solid #7a5833;
    background: #fff;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
}

.battle-log {
    background: #fff;
    border: 1px solid #997855;
    padding: 10px;
    border-radius: 4px;
    font-size: 16px;
    min-height: 60px;
    margin-top: 10px;
}

/* Kalandlap Statisztikák */
.sheet-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.sheet-stat-card {
    background: #ddcca8;
    border: 2px solid #8f704b;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
}

.stat-title {
    font-family: var(--font-heading);
    font-size: 18px;
    color: #5c1818;
    margin-bottom: 6px;
}

.stat-number-box {
    font-size: 32px;
    font-weight: bold;
    font-family: var(--font-heading);
    color: #1a0f07;
}

.stat-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.stat-btn {
    width: 32px;
    height: 32px;
    background: #4a2a14;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
}

.equipment-list {
    list-style: none;
    max-height: 180px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #997855;
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 12px;
}

.equipment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    border-bottom: 1px dotted #ccc;
    font-size: 16px;
}

.del-item-btn {
    background: #c0392b;
    color: #fff;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 3px;
    cursor: pointer;
}

/* Lebegő / Alsó Segédsáv (Mobile Floating Bar) */
#floating-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, #24150d 0%, #110904 100%);
    border-top: 2px solid var(--gold-accent);
    padding: 8px 12px max(8px, env(safe-area-inset-bottom, 8px));
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 500;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.7);
    gap: 8px;
}

.nav-btn {
    background: #361f12;
    border: 1px solid var(--gold-accent);
    color: var(--gold-light);
    font-family: var(--font-heading);
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.nav-btn:active {
    transform: scale(0.96);
}

.nav-btn:hover {
    background: var(--gold-accent);
    color: #1a0f07;
}

.nav-btn.ambient-active {
    background: #1b4d2e;
    border-color: #4cd97b;
    color: #72f7a1;
}

/* Reszponzív Mobil & Tablet Szabályok */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .brand-title {
        font-size: 22px;
    }

    .header-right-box {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
    }

    .ambient-toggle-btn {
        justify-content: center;
        width: 100%;
    }

    .user-profile-box {
        justify-content: space-between;
        width: 100%;
    }

    .user-profile-box .gold-input {
        flex: 1;
        width: auto;
        min-width: 100px;
    }

    .search-toolbar {
        padding: 12px 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .search-box {
        min-width: 0;
        width: 100%;
    }

    .search-input {
        max-width: none;
        width: 100%;
    }

    .profile-badges-container {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 14px;
    }

    .book-title {
        font-size: 15px;
    }

    .book-desc {
        display: none;
    }

.parchment-scroll {
        padding: 24px 16px;
        border-width: 8px;
        border-radius: 8px;
        outline-width: 2px;
    }

    .section-title {
        font-size: 26px;
    }

    .section-body {
        font-size: 18px;
        line-height: 1.6;
    }

    .choice-btn {
        font-size: 17px;
        padding: 12px 14px;
        min-height: 48px;
    }

    .reader-topbar {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 10px;
    }

    .reader-stats-box {
        justify-content: space-around;
        gap: 8px;
        padding: 8px;
    }

    .hud-stat-pill {
        font-size: 14px;
    }

    .section-jump-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .jump-form {
        justify-content: space-between;
    }

    .jump-input {
        flex: 1;
        max-width: 100px;
    }

    .sheet-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .sheet-stat-card {
        padding: 10px 6px;
    }

    .stat-title {
        font-size: 13px;
    }

    .stat-number-box {
        font-size: 26px;
    }

    .stat-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .battle-inputs {
        grid-template-columns: 1fr;
    }

    .battle-monsters-grid.multi-grid {
        grid-template-columns: 1fr;
    }

    .kjk-modal-overlay {
        padding: 12px 8px;
        padding-top: max(12px, env(safe-area-inset-top, 12px));
        padding-bottom: max(12px, env(safe-area-inset-bottom, 12px));
    }

    .kjk-modal-box {
        padding: 18px 14px;
        border-width: 6px;
        outline-width: 1px;
        max-height: 92dvh;
    }

    .modal-head h2 {
        font-size: 20px;
    }

    .nav-btn {
        flex: 1;
        justify-content: center;
        padding: 8px 4px;
        font-size: 12px;
        min-height: 44px;
        text-align: center;
        white-space: nowrap;
    }
}

/* Extra kis képernyők / Okostelefonok (max 480px) */
@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .main-wrapper {
        padding: 0 10px;
        margin: 12px auto;
    }

    .brand-title {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .brand-sub {
        font-size: 11px;
    }

    .brand-icon {
        font-size: 26px;
    }

    .user-profile-box {
        padding: 6px 10px;
        gap: 6px;
    }

    .user-profile-box label {
        font-size: 13px;
    }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .book-card {
        padding: 6px;
    }

    .book-info {
        padding: 8px 4px;
    }

    .book-title {
        font-size: 13px;
        line-height: 1.25;
    }

    .book-author {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .series-badge {
        font-size: 11px;
        padding: 2px 5px;
        top: 6px;
        left: 6px;
    }

    .progress-badge {
        font-size: 11px;
        padding: 3px 6px;
    }

    .open-book-btn {
        font-size: 12px;
        padding: 6px 8px;
    }

.parchment-scroll {
        padding: 16px 10px;
        border-width: 5px;
        outline-width: 2px;
        margin: 8px 0;
        border-radius: 6px;
        min-height: auto;
    }

    .section-header {
        padding-bottom: 10px;
        margin-bottom: 16px;
    }

    .section-title {
        font-size: 20px;
    }

    .section-body {
        font-size: 16px;
        line-height: 1.55;
        margin-bottom: 20px;
    }

    .choice-btn {
        padding: 12px 10px;
        font-size: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .choice-content-wrap {
        margin-right: 0;
        width: 100%;
        gap: 6px;
    }

    .choice-target {
        align-self: flex-end;
        font-size: 14px;
        padding: 3px 8px;
    }

    .choice-dice-badge {
        font-size: 12px;
        padding: 2px 7px;
    }

    .monster-encounter-card {
        padding: 12px;
    }

    .monster-title {
        font-size: 18px;
    }

    .notes-textarea {
        font-size: 16px;
        height: 70px;
    }

    .reader-book-meta {
        flex-wrap: wrap;
        gap: 8px;
    }

    .reader-thumb {
        width: 36px;
        height: 52px;
    }

    .reader-title-box h2 {
        font-size: 16px;
    }

    .reader-stats-box {
        gap: 6px;
        padding: 6px;
    }

    .hud-stat-pill {
        font-size: 12px;
        padding: 2px 5px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
    }

    .die {
        width: 58px;
        height: 58px;
        font-size: 28px;
        border-radius: 8px;
    }

    .dice-arena {
        gap: 12px;
        margin-bottom: 14px;
    }

    .dice-container {
        gap: 12px;
        min-height: 60px;
    }

    .dice-result-text {
        font-size: 18px;
    }

    .dice-btn-group button {
        width: 100%;
        font-size: 14px;
        padding: 8px 10px;
    }

    .battle-section {
        padding: 10px;
    }

    .battle-action-btn {
        width: 100%;
        font-size: 14px;
        padding: 10px 8px;
    }

    .monster-card-body {
        flex-wrap: wrap;
        gap: 6px;
    }

    .monster-stat-input {
        width: 44px;
        font-size: 15px;
        padding: 3px;
    }

    #floating-nav {
        padding: 6px 4px max(6px, env(safe-area-inset-bottom, 6px));
        gap: 4px;
    }

    .nav-btn {
        padding: 6px 2px;
        font-size: 11px;
        min-height: 44px;
        border-radius: 5px;
        flex-direction: column;
        gap: 2px;
        text-align: center;
    }

    .stat-effect-card {
        padding: 10px 12px;
    }

    .stat-effect-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .item-effect-card {
        padding: 10px 12px;
    }

    .item-effect-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .sheet-stat-card {
        padding: 8px 4px;
    }

    .stat-title {
        font-size: 11px;
    }

    .stat-number-box {
        font-size: 22px;
    }

    .stat-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

/* --- Belső Könyvillusztrációk & Galéria --- */
.section-illustration-wrap {
    text-align: center;
    margin: 18px auto 24px auto;
    max-width: 100%;
}

.section-illustration {
    max-width: 100%;
    max-height: 480px;
    height: auto;
    border-radius: 6px;
    border: 3px solid #8e6c46;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    background: #e4d3b8;
    filter: sepia(0.12) contrast(1.05);
}

/* --- Betöltésjelző & Spinner --- */
.loading-spinner {
    text-align: center;
    padding: 40px 20px;
    font-family: var(--font-heading);
    font-size: 22px;
    color: #6a4423;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; transform: scale(0.99); }
    50% { opacity: 1; transform: scale(1.01); }
    100% { opacity: 0.6; transform: scale(0.99); }
}

/* --- Kaland Záróképernyők (Győzelem / Vereség) --- */
.end-game-banner {
    padding: 24px 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.35);
}

.end-game-banner h3 {
    font-family: var(--font-heading);
    font-size: 26px;
    margin-bottom: 10px;
}

.end-game-banner p {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.end-game-banner.victory {
    background: linear-gradient(180deg, #3d3112 0%, #201705 100%);
    border: 2px solid var(--gold-accent);
    color: var(--gold-light);
}

.end-game-banner.victory h3 {
    color: #ffe066;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.end-game-banner.gameover {
    background: linear-gradient(180deg, #3a1111 0%, #1c0606 100%);
    border: 2px solid #a93226;
    color: #f5b7b1;
}

.end-game-banner.gameover h3 {
    color: #e74c3c;
}

.restart-btn {
    display: inline-block;
    width: auto;
    margin: 0 auto;
    padding: 12px 28px;
    background: linear-gradient(180deg, #c59b27 0%, #87620d 100%);
    color: #fff;
    border: 1px solid #ffe07a;
    font-family: var(--font-heading);
    font-weight: bold;
    cursor: pointer;
}

.restart-action-btn {
    background: linear-gradient(180deg, #6e2017 0%, #441009 100%);
    border-color: #d9534f;
    color: #ffe6e4;
}

.restart-action-btn:hover {
    background: linear-gradient(180deg, #8b281c 0%, #59160d 100%);
    border-color: #ff7875;
}

/* Lebegő Toast Értesítés Újrakezdéskor */
.kjk-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-40px);
    background: linear-gradient(180deg, #2e1d11 0%, #150c05 100%);
    border: 2px solid #ffd700;
    border-radius: 8px;
    padding: 14px 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.85);
    z-index: 2500;
    text-align: center;
    color: #f7e6c4;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    max-width: 92vw;
    width: 380px;
}

.kjk-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast-title {
    font-family: var(--font-heading);
    font-size: 18px;
    color: #ffd700;
    margin-bottom: 8px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}

.toast-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 6px;
}

.toast-stats span {
    background: rgba(0,0,0,0.35);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 215, 0, 0.25);
}

.toast-sub {
    font-size: 13px;
    color: #cbb497;
    margin-top: 4px;
}

/* ========================================================
   AUTOMATIKUS FEJEZETHATÁSOK (STAT MÓDOSÍTÁS)
   ======================================================== */
.stat-effects-container {
    margin: 20px 0 25px 0;
}

.stat-effect-card {
    border-radius: 8px;
    padding: 14px 18px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    animation: fadeInSlide 0.3s ease-out;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-effect-card.damage {
    background: linear-gradient(135deg, #441414 0%, #2b0c0c 100%);
    border: 2px solid #c0392b;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.35);
}

.stat-effect-card.heal {
    background: linear-gradient(135deg, #143d22 0%, #0d2415 100%);
    border: 2px solid #27ae60;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.35);
}

.stat-effect-card.applied {
    background: linear-gradient(135deg, #2e2617 0%, #1c170d 100%);
    border: 1px solid rgba(212, 175, 55, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stat-effect-card.undone {
    background: linear-gradient(135deg, #2b2b2b 0%, #1a1a1a 100%);
    border: 1px dashed #7f8c8d;
    opacity: 0.85;
}

.stat-effect-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.stat-effect-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 15px;
    color: #f1c40f;
}

.stat-effect-card.damage .stat-effect-title {
    color: #ff8585;
}

.stat-effect-card.heal .stat-effect-title {
    color: #85e8a5;
}

.stat-effect-card.undone .stat-effect-title {
    color: #bdc3c7;
}

.stat-effect-actions {
    display: flex;
    gap: 8px;
}

.stat-effect-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stat-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.stat-badge.loss {
    background: rgba(192, 57, 43, 0.4);
    border: 1px solid #e74c3c;
    color: #ff9999;
}

.stat-badge.gain {
    background: rgba(39, 174, 96, 0.4);
    border: 1px solid #2ecc71;
    color: #90ee90;
}

.stat-badge.applied-badge {
    background: rgba(212, 175, 55, 0.25);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: #ffe066;
}

.stat-badge.undone-badge {
    background: rgba(127, 140, 141, 0.25);
    border: 1px solid #7f8c8d;
    color: #aaa;
    text-decoration: line-through;
}

.stat-effect-btn {
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 13px;
    font-family: var(--font-heading);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stat-effect-btn.undo-btn {
    background: rgba(192, 57, 43, 0.25);
    border: 1px solid #e74c3c;
    color: #ffb3b3;
}

.stat-effect-btn.undo-btn:hover {
    background: rgba(192, 57, 43, 0.5);
    color: #fff;
    transform: translateY(-1px);
}

.stat-effect-btn.reapply-btn {
    background: rgba(212, 175, 55, 0.25);
    border: 1px solid #d4af37;
    color: #ffe066;
}

.stat-effect-btn.reapply-btn:hover {
    background: rgba(212, 175, 55, 0.5);
    color: #fff;
    transform: translateY(-1px);
}

/* ========================================================
   AUTOMATIKUS TÁRGYFELVÉTEL / HÁTIZSÁK KÁRTYA STÍLUSOK
   ======================================================== */

.item-effects-container {
    margin: 0 0 25px 0;
}

.item-effect-card {
    border-radius: 8px;
    padding: 14px 18px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    animation: fadeInSlide 0.3s ease-out;
}

.item-effect-card.added {
    background: linear-gradient(135deg, #1c2e3d 0%, #0d1a24 100%);
    border: 2px solid #3498db;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.35);
}

.item-effect-card.applied {
    background: linear-gradient(135deg, #242c23 0%, #151c14 100%);
    border: 1px solid rgba(46, 204, 113, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.item-effect-card.undone {
    background: linear-gradient(135deg, #2b2b2b 0%, #1a1a1a 100%);
    border: 1px dashed #7f8c8d;
    opacity: 0.85;
}

.item-effect-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.item-effect-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 15px;
    color: #5dade2;
}

.item-effect-card.applied .item-effect-title {
    color: #a3e4d7;
}

.item-effect-card.undone .item-effect-title {
    color: #bdc3c7;
}

.item-effect-actions {
    display: flex;
    gap: 8px;
}

.item-effect-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.item-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.item-badge.added {
    background: rgba(52, 152, 219, 0.3);
    border: 1px solid #3498db;
    color: #d6eaf8;
}

.item-badge.applied {
    background: rgba(46, 204, 113, 0.25);
    border: 1px solid rgba(46, 204, 113, 0.6);
    color: #d4efdf;
}

.item-badge.undone {
    background: rgba(127, 140, 141, 0.25);
    border: 1px solid #7f8c8d;
    color: #aaa;
    text-decoration: line-through;
}

.item-effect-footer {
    font-size: 12px;
    color: #aed6f1;
    margin-top: 4px;
}

.item-effect-btn {
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 13px;
    font-family: var(--font-heading);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.item-effect-btn.undo-btn {
    background: rgba(192, 57, 43, 0.25);
    border: 1px solid #e74c3c;
    color: #ffb3b3;
}

.item-effect-btn.undo-btn:hover {
    background: rgba(192, 57, 43, 0.5);
    color: #fff;
    transform: translateY(-1px);
}

.item-effect-btn.reapply-btn {
    background: rgba(52, 152, 219, 0.3);
    border: 1px solid #3498db;
    color: #d6eaf8;
}

.item-effect-btn.reapply-btn:hover {
    background: rgba(52, 152, 219, 0.6);
    color: #fff;
    transform: translateY(-1px);
}

/* ========================================================
   SZÖRNYEK KÜLÖNÁLLÓ KÁRTYÁI A HARC MODALBAN
   ======================================================== */

.battle-monsters-container {
    margin-bottom: 12px;
}

.battle-monsters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.battle-monsters-grid.multi-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.battle-monster-card {
    background: #fdfbf7;
    border: 2px solid #b89b72;
    border-radius: 8px;
    padding: 12px 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    position: relative;
}

.battle-monster-card.is-target {
    border: 2px solid #c0392b;
    background: #fffdfa;
    box-shadow: 0 0 12px rgba(192, 57, 43, 0.35);
}

.battle-monster-card.is-defeated {
    opacity: 0.6;
    background: #e8e3d8;
    border-color: #999;
    filter: grayscale(0.5);
}

.monster-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e0d0b8;
}

.monster-card-name {
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 16px;
    color: #4a2d15;
}

.target-badge {
    font-size: 12px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.target-badge.active {
    background: #c0392b;
    color: #fff;
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 4px rgba(192, 57, 43, 0.4); }
    50% { box-shadow: 0 0 10px rgba(192, 57, 43, 0.8); }
}

.target-badge.defeated {
    background: #7f8c8d;
    color: #fff;
}

.target-select-btn {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    background: #8f704b;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s ease;
}

.target-select-btn:hover {
    background: #5c1818;
}

.monster-card-body {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.monster-stat-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.monster-stat-input {
    width: 52px;
    padding: 4px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    border: 1px solid #8f704b;
    border-radius: 4px;
    background: #fff;
}

.monster-stat-max {
    font-size: 13px;
    color: #777;
}

.monster-hp-bar-wrap {
    height: 8px;
    background: #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 4px;
}

.monster-hp-bar {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.monster-hp-bar.hp-good {
    background: #27ae60;
}

.monster-hp-bar.hp-warning {
    background: #f39c12;
}

.monster-hp-bar.hp-danger {
    background: #c0392b;
}



/* KÖNYVSPECIFIKUS TÉMÁK (LAP HÁTTÉRSZÍNEK) */
body[data-book="orszagut"] { --parchment-base: #e2e5e6; --parchment-img: url('https://www.transparenttextures.com/patterns/dust.png'); }
body[data-book="skorpiok"] { --parchment-base: #dbe5d0; --parchment-img: url('https://www.transparenttextures.com/patterns/worn-dots.png'); }
body[data-book="vegzet"] { --parchment-base: #e5eed6; --parchment-img: url('https://www.transparenttextures.com/patterns/natural-paper.png'); }
body[data-book="vertengerek"] { --parchment-base: #dce6ee; }
body[data-book="hoboszorkany"] { --parchment-base: #eaf2f6; }
body[data-book="kaosz"] { --parchment-base: #e6e0eb; }
body[data-book="kripta"] { --parchment-base: #d5d6d8; --parchment-img: url('https://www.transparenttextures.com/patterns/stucco.png'); }
body[data-book="gyikkiraly"] { --parchment-base: #e0ebd0; }
body[data-book="elatkozott"] { --parchment-base: #d4d1cf; }
body[data-book="halallabirintus"] { --parchment-base: #e3dfda; --parchment-img: url('https://www.transparenttextures.com/patterns/concrete-wall.png'); }
body[data-book="szamuraj"] { --parchment-base: #f5f2e6; }
body[data-book="tolvajok"] { --parchment-base: #e8e0d5; }
body[data-book="bajnokok"] { --parchment-base: #f0e5d1; }
body[data-book="tuzhegy"] { --parchment-base: #f0e4d3; }
body[data-book="pusztitas"] { --parchment-base: #ebdcd0; }
body[data-book="remulet"] { --parchment-base: #eed6d6; }
body[data-book="talizman"] { --parchment-base: #f2eadf; }
