﻿body { background-color: #F1EBDF; cursor: url('img/special/cursor.cur'), default; }
a { color: #007BFF; text-decoration: none; }
a:hover { color: #007BFF; }
img { margin-right: 10px; margin-top: 4px; }
b { font-weight: 600; color: #647484; }

#main-table { border: 0; width: 100%; height: 100%; margin-top: 20px; }
#sub-table { width: 100%; height: 100%; }
#center-column { font-family: 'Nunito', sans-serif; font-size: 15px; width: 60%; vertical-align: top; }
#vantala { font-style: italic; }
#zodiacSign { font-size: 14px; margin-bottom: 10px; font-family: 'Nunito', sans-serif; }
.header-logo { border-bottom: 1px solid #eee; height: 90px; }
.logo-img { display: block; }
.left-column { width: 20%; border-right: 1px dotted #999; vertical-align: top; }
.moon-content { font-size: 14px; margin-top: 7px; font-family: 'Nunito', sans-serif; }
.sun-sign { font-size: 14px; font-family: 'Nunito', sans-serif; }

.card { width: 90%; border: 1px solid #ddd; margin-top: 5px; }
.card-header { height: 20px; background-color: #eee; width: 100%; border-bottom: 1px solid #ddd; text-align: center; font-size: 15px; font-weight: bold; font-family: 'Nunito'; margin-bottom: 7px; }
.card-script { margin-bottom: 7px; margin-left: 10px; }
.motto { width: 100%; height: 20px; background-color: #eee; text-align: right; font-size: 14px; color: #000; font-weight: bolder; }
.level { width: 100%; height: 20px; background-color: #eee; text-align: center; font-size: 15px; font-weight: bolder; margin: 10px 0; border: 1px solid #ccc; }
.right-column { width: 20%; border-left: 1px dotted #999; vertical-align: top; }

.login { width: 90%; border: 1px solid #ddd; margin-top: 5px; }
.login-header { height: 20px; background-color: #eee; width: 100%; border-bottom: 1px solid #ddd; text-align: center; font-size: 15px; font-weight: bold; font-family: 'Nunito'; margin-bottom: 7px; }
.login-script { font-size: 14px; font-family: 'Nunito'; margin: 7px 1px 1px; }

.wheel { width: 90%; border: 1px #ddd solid; margin-top: 5px; }
.wheel-header { height: 20px; background-color: #eee; width: 100%; border-bottom: 1px solid #ddd; text-align: center; font-size: 15px; font-weight: bold; font-family: 'Nunito'; margin-bottom: 7px; }
.holiday { font-size: 14px; font-family: 'Nunito'; margin: 7px 1px 1px; }
.wheel-wheel { margin: 7px 1px 1px; }

.vantala { width: 90%; border: 1px solid #ddd; margin-top: 5px; }
.vantala-header { height: 20px; background-color: #eee; width: 100%; border-bottom: 1px solid #ddd; text-align: center; font-size: 15px; font-weight: bold; font-family: 'Nunito'; margin-bottom: 7px; }
.vantala-script { font-size: 14px; font-family: 'Nunito'; margin: 10px; }

.gallery { width: 90%; border: 1px solid #ddd; margin-top: 5px; }
.gallery-header { height: 20px; background-color: #eee; width: 100%; border-bottom: 1px solid #ddd; text-align: center; font-size: 15px; font-weight: bold; font-family: 'Nunito'; margin-bottom: 7px; }
.gallery-script { text-align: center; margin-left: 7px; margin-bottom: 7px; }

.sociologic { width: 90%; border: 1px solid #ddd; margin-top: 5px; }
.sociologic-header { height: 20px; background-color: #eee; width: 100%; border-bottom: 1px solid #ddd; text-align: center; font-size: 15px; font-weight: bold; font-family: 'Nunito'; margin-bottom: 7px; }
.sociologic-script { font-size: 14px; font-family: 'Nunito'; margin: 1px; }

.footer { width: 100%; border-top: 1px solid #eee; }
.scale { transition: 1s; }
.scale:hover { transform: scale(1.2); }
.bold { font-size: 15px; font-weight: bold; display: inline; }
img.rotate-img { border-radius: 50%; transition: transform 0.8s ease-in-out; }
img.rotate-img:hover { transform: rotate(-360deg); }
.GFG { color: #111; background: gold; box-shadow: 0 0 2px gold; transition: box-shadow 0.3s ease; }
.GFG:hover { box-shadow: 0 0 15px gold; }

.site-header { position: sticky; top: 0; z-index: 1000; width: 100%; background: #F1EBDF; text-align: left; }

.register-overlay[hidden] { display: none !important; }
.register-overlay { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 15px; box-sizing: border-box; background: rgba(35, 29, 25, 0.65); overflow-y: auto; }
.register-modal { position: relative; box-sizing: border-box; width: 100%; max-width: 400px; max-height: calc(100vh - 30px); overflow-y: auto; padding: 25px 24px; background: #F1EBDF; border: 1px solid #B9AA91; border-radius: 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); text-align: center; font-family: 'Nunito', sans-serif; }
.register-close { position: absolute; top: 8px; right: 12px; z-index: 5; width: 38px; height: 38px; border: none; background: transparent; color: #514333; font-size: 32px; line-height: 1; cursor: pointer; }
.register-close:hover { color: #9A3F35; }
.register-logo { display: block; width: 70px; height: auto; margin: 0 auto 8px; }
.register-modal h2 { margin: 5px 0; font-size: 21px; color: #333; }
.register-description { margin: 12px 0 18px; font-size: 14px; color: #555; }
#register-form { display: flex; flex-direction: column; align-items: center; gap: 10px; }
#register-form input:not([type="hidden"]) { box-sizing: border-box; width: 72%; padding: 5px 7px; border: 1px solid #bbb; border-radius: 4px; background: #fffdf8; font: 13px 'Nunito', sans-serif; }
#register-captcha-label { font-size: 14px; color: #333; }
.register-submit { width: 72%; padding: 6px; border: 0; border-radius: 4px; background: #00A1E0; color: white; font: 13px 'Nunito', sans-serif; cursor: pointer; }
.register-submit:hover { background: #0082B0; }
.register-submit:disabled { opacity: 0.6; cursor: wait; }
.register-error { color: #b00020; font-size: 14px; overflow-wrap: anywhere; }
.register-note { margin: 16px 0 0; font-size: 13px; }
.register-note button { border: 0; padding: 0; background: transparent; color: #007BFF; font: inherit; cursor: pointer; }
.register-note button:hover { text-decoration: underline; }

.tarot-modal { display: none; position: fixed; inset: 0; z-index: 10000; padding: 20px; background: rgba(20, 16, 25, 0.78); overflow-y: auto; align-items: center; justify-content: center; }
.tarot-modal.tarot-modal-open { display: flex; }
.tarot-modal-window { position: relative; width: 100%; max-width: 1000px; max-height: calc(100vh - 40px); overflow-y: auto; box-sizing: border-box; padding: 30px; background: #F1EBDF; border: 1px solid #B9AA91; border-radius: 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); font-family: 'Nunito', 'Trebuchet MS', Tahoma, sans-serif; }
.tarot-close { position: absolute; top: 8px; right: 12px; z-index: 5; width: 38px; height: 38px; border: none; background: transparent; color: #514333; font-size: 32px; line-height: 1; cursor: pointer; }
.tarot-close:hover { color: #9A3F35; }
.tarot-modal-content { display: grid; grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr); gap: 30px; align-items: start; }
.tarot-card-area { text-align: center; padding-top: 10px; }
.tarot-flip { display: block; width: 100%; max-width: 300px; margin: 0 auto; padding: 0; border: none; background: transparent; cursor: url('img/special/cursor.cur'), default; perspective: 1000px; }
.tarot-flip-inner { display: block; position: relative; width: 100%; aspect-ratio: 2 / 3; transform-style: preserve-3d; transition: transform 0.65s ease; }
.tarot-card-front, .tarot-card-back { position: absolute; inset: 0; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.tarot-card-back { transform: rotateY(180deg); }
.tarot-card-front img, .tarot-card-back img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }
.tarot-flip-hint { margin: 12px 0 0; color: #746650; font-size: 12px; }
.tarot-text-area { min-width: 0; overflow-wrap: anywhere; padding-top: 8px; }
.tarot-text-area h2 { margin: 0 35px 5px 0; color: #493B2C; font-size: 25px; text-align: center; }
.tarot-subtitle { margin: 0 0 18px; color: #78644A; font-size: 16px; text-align: center; font-style: italic; }
.tarot-quote { margin: 0 0 22px; padding: 12px 16px; border-left: 3px solid #A68A60; background: rgba(166, 138, 96, 0.10); color: #5D4B36; font-style: italic; line-height: 1.6; }
.tarot-sections h3 { margin: 20px 0 8px; color: #59442F; font-size: 18px; }
.tarot-sections p { margin: 0 0 14px; font-size: 15px; line-height: 1.7; text-align: justify; }
@media (max-width: 650px) {
    .tarot-modal { padding: 10px; align-items: flex-start; }
    .tarot-modal-window { max-height: calc(100vh - 20px); padding: 24px 16px; }
    .tarot-modal-content { grid-template-columns: 1fr; gap: 20px; }
    .tarot-flip { max-width: 220px; }
    .tarot-text-area h2 { font-size: 22px; }
}
.tarot-flip:hover .tarot-flip-inner { transform: rotateY(180deg); }

.stats { width: 90%; border: 1px solid #ddd; margin-top: 5px; }
.stats-header { height: 20px; background-color: #eee; width: 100%; border-bottom: 1px solid #ddd; text-align: center; font-size: 15px; font-weight: bold; font-family: 'Nunito'; margin-bottom: 7px; }
.stats-script { font-size: 14px; font-family: 'Nunito'; margin: 7px 10px; text-align: center; }

.books-content { max-height: 65vh; overflow-y: auto; text-align: left; padding: 0 8px; }
.books-list { list-style: none; padding: 0; margin: 0; }
.books-list li { border-bottom: 1px solid #eee; padding: 5px 0; }
.books-list li:last-child { border-bottom: none; }
.book-name { display: block; }
.book-size { color: #999; font-size: 12px; }
.books-launch { background: none; border: none; color: #007BFF; text-decoration: none; cursor: pointer; font: inherit; padding: 0; }
.books-launch:hover { color: #007BFF; text-decoration: underline; }
.book-ext { color: #999; font-size: 12px; font-weight: normal; }

#center-column .toggle { user-select: none; -webkit-user-select: none; }
#center-column .details { user-select: text; }
.today-highlight { background-color: #e8dac8; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.game-shots { display: flex; gap: 12px; justify-content: center; align-items: center; margin: 10px auto; flex-wrap: wrap; }
.game-shot { display: block; flex: 0 1 calc(50% - 6px); max-width: calc(50% - 6px); }
.game-shot img { display: block; width: 100%; height: auto; margin: 0 auto; border: 1px solid #ddd; border-radius: 4px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); transition: box-shadow 0.2s ease; }
.game-shot:hover img { box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25); }
.game-text { text-align: center; margin: 8px 0; }
.game-play { text-align: center; margin: 8px 0 4px; }

.toggle-link { color: #007BFF; }
.toggle-link:hover { text-decoration: underline; }
.editor-forum-link { margin: 4px 0 0 18px; font-family: 'Nunito', sans-serif; font-size: 14px; }
.editor-forum-link a { color: #007BFF; }
.editor-forum-link a:hover { text-decoration: underline; }

.deck-intro { margin: 15px 15px 25px; font-size: 15px; line-height: 1.7; text-align: justify; color: #665544; }
.deck-review { margin: 22px 0 10px; padding-bottom: 16px; border-bottom: 1px dashed #d8cdb8; text-align: center; font-family: 'Nunito', sans-serif; }
.deck-review:last-child { border-bottom: none; }
.deck-review-title { margin: 0 0 12px; padding: 0; color: #647484; font-size: 15px; font-weight: bold; text-align: center; line-height: 1.2; }
.deck-review-text { margin: 0 15px 18px; font-size: 15px; line-height: 1.7; text-align: justify; color: #4a3f33; }

.deck-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; padding: 8px; max-height: 65vh; overflow-y: auto; text-align: left; }
.deck-cards img { display: block; width: 100%; height: auto; margin: 0; border: 1px solid #ddd; border-radius: 4px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); transition: transform 0.2s ease, box-shadow 0.2s ease; cursor: url('img/special/cursor.cur'), default; }
.deck-cards img:hover { transform: scale(1.05); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); z-index: 1; }
@media (max-width: 650px) {
    .deck-cards { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }
}

/* ============================================================
   РАЗДЕЛЫ ГАЛЕРЕИ (Марсельское, Безансонское и т.д.)
   ============================================================ */

/* Чёрный текст во всём разделе */
.gallery-section,
.gallery-section * {
    color: #000;
}

/* Ссылки — синие */
.gallery-section a,
.gallery-section a:hover {
    color: #007BFF !important;
}
.gallery-section a:hover {
    text-decoration: underline;
}

/* Сетка для превью (3 картинки в ряд) */
.gallery-section .deck-review-cards {
    display: grid !important;
    grid-template-columns: repeat(3, 25%) !important;
    gap: 12px !important;
    justify-content: center !important;
    margin: 10px 0 !important;
}

/* Картинки внутри превью */
.gallery-section .deck-review-cards > img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Исправление подвала */
.footer {
    width: 100%;
    border-top: 1px solid #eee;
    padding: 12px 15px;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    line-height: 18px;
    color: #999;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.footer-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.footer-copyleft {
    display: block;
    width: auto;
    height: 36px;
    margin: 0;
    flex-shrink: 0;
}

.footer-left-text,
.footer-right {
    display: flex;
    flex-direction: column;
    line-height: 18px;
}

.footer-right {
    text-align: right;
}

.footer a {
    color: inherit;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-right {
        text-align: left;
        margin-left: 46px;
    }
}