/* ============================================================
   ОБЩИЕ СТИЛИ (используются и для логина, и для основного сайта)
   ============================================================ */

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

body {
    min-height: 100vh;
    background: #12121c;
    color: #cfc2a8;
    font-family: 'Georgia', serif;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(34,30,24,0), rgba(34,30,24,1));
    z-index: 0;
    pointer-events: none;
}

/* ============================================================
   СТИЛИ ДЛЯ СТРАНИЦЫ ВХОДА (login)
   ============================================================ */

.login-wrapper {
    position: relative;
    z-index: 1;
    max-width: 480px;
    width: 100%;
}

.login-card {
    background: rgba(18, 18, 28, 0.92);
    backdrop-filter: blur(16px);
    border-radius: 56px;
    padding: 48px 36px 44px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(200,170,110,0.25);
    border: 1px solid rgba(200, 170, 110, 0.35);
    text-align: center;
}

.login-title {
    font-size: 28px;
    font-weight: bold;
    color: #ecd9b4;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.login-subtitle {
    font-size: 14px;
    color: #b49262;
    margin-bottom: 32px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-style: italic;
}

.login-badge {
    font-size: 11px;
    background: rgba(0,0,0,0.5);
    display: inline-block;
    padding: 6px 20px;
    border-radius: 40px;
    margin-bottom: 20px;
    color: #c6a15e;
    letter-spacing: 1px;
    border: 1px solid rgba(200,170,110,0.4);
}

.login-form input[type="text"] {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(200,170,110,0.4);
    border-radius: 16px;
    color: #ecd9b4;
    font-size: 16px;
    font-family: 'Georgia', serif;
    transition: all 0.3s ease;
}

.login-form input[type="text"]:focus {
    outline: none;
    border-color: #c6a15e;
    box-shadow: 0 0 20px rgba(198, 161, 94, 0.15);
}

.login-form input[type="text"]::placeholder {
    color: #6a5a43;
}

.login-form button {
    width: 100%;
    margin-top: 16px;
    padding: 14px;
    background: #c6a15e;
    color: #12121c;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: bold;
    font-family: 'Georgia', serif;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.login-form button:hover {
    background: #d4b87a;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(198, 161, 94, 0.3);
}

.login-form button:active {
    transform: translateY(0);
}

.login-error {
    background: rgba(255, 70, 70, 0.15);
    border: 1px solid rgba(255, 70, 70, 0.3);
    border-radius: 12px;
    padding: 10px 16px;
    color: #ff8a8a;
    font-size: 14px;
    margin-top: 12px;
}

.login-hint {
    margin-top: 20px;
    font-size: 12px;
    color: #6a5a43;
    letter-spacing: 1px;
}

.login-hint a {
    color: #c6a15e;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.menu-links {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.menu-links a {
    color: #b49262;
    text-decoration: none;
    font-size: 13px;
    padding: 6px 14px;
    border: 1px solid rgba(200,170,110,0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
    font-family: 'Georgia', serif;
}

.menu-links a:hover {
    border-color: #c6a15e;
    color: #ecd9b4;
    background: rgba(200,170,110,0.1);
}

/* ============================================================
   СТИЛИ ДЛЯ ОСНОВНОГО САЙТА (layout)
   ============================================================ */

.layout-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 24px;
    width: 100%;
    max-width: 1400px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
}

.card, .canon-card {
    background: rgba(18, 18, 28, 0.88);
    backdrop-filter: blur(16px);
    border-radius: 56px;
    padding: 34px 28px 40px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(200,170,110,0.25), 0 0 0 3px rgba(0,0,0,0.3);
    border: 1px solid rgba(200, 170, 110, 0.35);
    flex: 1;
    min-width: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover, .canon-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(200,170,110,0.35), 0 0 0 3px rgba(0,0,0,0.3);
}

.card {
    max-width: 600px;
    text-align: center;
}

.canon-card {
    max-width: 600px;
    text-align: left;
}

/* ПЕРЕОПРЕДЕЛЯЕМ ШИРИНУ ТОЛЬКО ДЛЯ СТРАНИЦЫ "О ПЬЕСЕ" */
.master-wrapper .canon-card {
    max-width: 940px !important;
    width: 100%;
}

.badge {
    font-size: 11px;
    background: rgba(0,0,0,0.5);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 40px;
    margin-bottom: 18px;
    color: #c6a15e;
    letter-spacing: 1px;
    border: 1px solid rgba(200,170,110,0.4);
}

.navigator-box {
    background: rgba(255, 215, 150, 0.05);
    border: 1px solid rgba(200, 170, 110, 0.2);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 24px;
}

.navigator-box input {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(200,170,110,0.4);
    color: #ecd9b4;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: monospace;
    margin-bottom: 12px;
    width: 100%;
    max-width: 250px;
}

.navigator-box button {
    background: #c6a15e;
    color: #12121c;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-right: 8px;
    font-family: 'Georgia', serif;
}

.navigator-box .logout-link {
    color: #b49262;
    text-decoration: none;
    font-size: 13px;
    margin-left: 8px;
    border: 1px solid rgba(200,170,110,0.2);
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.navigator-box .logout-link:hover {
    border-color: #c6a15e;
    color: #ecd9b4;
    background: rgba(200,170,110,0.1);
}

.user-identifier {
    font-size: 12px;
    color: #6a5a43;
    margin-top: 8px;
}

.user-identifier span {
    color: #b49262;
}

.hex-number-display {
    font-size: 56px;
    font-weight: bold;
    color: #ecd9b4;
    text-shadow: 0 4px 12px rgba(0,0,0,0.6);
    margin-bottom: 6px;
}

.name {
    font-size: 32px;
    font-weight: bold;
    color: #ecd9b4;
    border-bottom: 2px solid #b4946a;
    display: inline-block;
    padding-bottom: 8px;
    margin-bottom: 24px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.direction {
    font-size: 18px;
    font-style: italic;
    color: #cfc2a8;
    background: rgba(30, 30, 45, 0.7);
    padding: 12px 20px;
    border-radius: 60px;
    display: inline-block;
    margin-bottom: 28px;
    border: 1px solid rgba(200,170,110,0.3);
}

.quote-block {
    background: rgba(255, 215, 150, 0.08);
    border: 1px solid rgba(200, 170, 110, 0.3);
    border-radius: 24px;
    padding: 20px 18px;
    margin-bottom: 24px;
}

.quote-iching {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #b49262;
    margin-bottom: 10px;
}

.quote-text {
    font-size: 16px;
    line-height: 1.6;
    color: #e7dbbc;
    font-style: italic;
}

.hexagram-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 24px 0;
    background: rgba(0, 0, 0, 0.4);
    padding: 24px;
    border-radius: 40px;
}

.line {
    width: 240px;
    height: 14px;
    position: relative;
    transition: all 0.3s ease;
}

.line.yang {
    background: #ecd9b4;
    box-shadow: 0 0 8px rgba(236, 217, 180, 0.5);
    border-radius: 2px;
}

.line.yin {
    display: flex;
    gap: 12px;
}

.line.yin::before,
.line.yin::after {
    content: '';
    flex: 1;
    height: 14px;
    background: #ecd9b4;
    box-shadow: 0 0 6px rgba(236, 217, 180, 0.4);
    border-radius: 2px;
}

.line.completed-line {
    opacity: 0.55;
}

.line.pending-line {
    opacity: 0.3;
}

.line.active {
    box-shadow: 0 0 20px rgba(240, 192, 96, 0.5), 0 0 40px rgba(240, 192, 96, 0.2) !important;
}

.line.active.yang {
    background: #f5e7c8;
}

.marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: bold;
    background: rgba(0,0,0,0.6);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 2;
}

.marker.circle {
    color: #ffaa44;
    border: 1px solid #ffaa44;
    box-shadow: 0 0 16px rgba(255, 170, 68, 0.5);
}

.marker.cross {
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
    box-shadow: 0 0 16px rgba(255, 107, 107, 0.5);
}

.line-label {
    position: absolute;
    right: -32px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #c6a15e;
    font-family: sans-serif;
}

.gua-block {
    background: rgba(0, 0, 0, 0.5);
    padding: 18px 14px;
    border-radius: 40px;
    margin: 20px 0;
    font-family: monospace;
    font-size: 22px;
    font-weight: bold;
    color: #e7dbbc;
    letter-spacing: 2px;
    border: 1px solid rgba(200,170,110,0.4);
}

.moving-info {
    background: rgba(255, 215, 150, 0.1);
    padding: 12px 18px;
    border-radius: 28px;
    font-size: 13px;
    color: #d4b87a;
    margin: 16px 0;
    border-left: 3px solid #c6a15e;
    text-align: left;
}

.stable {
    border-left-color: #5a7a5a;
    color: #8aaa8a;
}

.timers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.timer-box {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 14px;
    border: 1px solid rgba(200,170,110,0.3);
}

.timer-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #b49262;
    margin-bottom: 6px;
}

.timer-value {
    font-size: 1.4em;
    font-weight: bold;
    font-family: monospace;
}

.timer-value.line-timer {
    color: #5b9bd5;
}

.timer-value.step-timer {
    color: #f0c060;
}

.timer-date {
    font-size: 10px;
    color: #6a5a43;
    margin-top: 4px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 6px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e0a030, #f0c060);
}

.next-hex {
    background: rgba(0, 0, 0, 0.5);
    padding: 14px 20px;
    border-radius: 24px;
    margin: 16px 0;
    border: 1px solid rgba(200,170,110,0.2);
    text-align: center;
}

.next-hex .label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #b49262;
    margin-bottom: 4px;
}

.next-hex .value {
    font-size: 15px;
    color: #cfc2a8;
}

.next-hex .arrow {
    color: #c6a15e;
    margin: 0 6px;
}

.next-quote {
    font-size: 12px;
    color: #8a7a5a;
    font-style: italic;
    margin-top: 4px;
    line-height: 1.4;
}

.date {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #b49262;
    margin-top: 24px;
}

.footer-note {
    margin-top: 16px;
    font-size: 11px;
    color: #6a5a43;
    font-style: italic;
}

/* ============================================================
   СТИЛИ ДЛЯ КАНОНА
   ============================================================ */

.canon-section-title {
    font-size: 18px;
    color: #ecd9b4;
    margin-bottom: 16px;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 1px dashed rgba(200, 170, 110, 0.3);
    padding-bottom: 8px;
}

.canon-text {
    font-size: 16px;
    line-height: 1.6;
    color: #e7dbbc;
    font-style: italic;
    margin-bottom: 32px;
}

.lines-container {
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    margin-bottom: 24px;
}

.dimmed-line-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 12px 20px;
    border: 1px solid rgba(200, 170, 110, 0.1);
    border-left: 4px solid rgba(200, 170, 110, 0.2);
    opacity: 0.35;
    transition: opacity 0.3s ease;
}

.dimmed-line-box:hover {
    opacity: 0.65;
}

.active-line-box {
    background: rgba(255, 215, 150, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
    border: 1px solid rgba(200, 170, 110, 0.3);
    border-left: 4px solid #c6a15e;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.active-line-text {
    color: #f5e7c8;
    font-size: 15px;
    line-height: 1.5;
}

/* ============================================================
   ИГРОВЫЕ КАРТОЧКИ СМЫСЛОВ (Sorge)
   ============================================================ */

.sorge-card {
    background: rgba(18, 18, 28, 0.6);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(200, 170, 110, 0.2);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.sorge-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #c6a15e;
}

.sorge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sorge-title {
    font-size: 16px;
    font-weight: bold;
    color: #ecd9b4;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sorge-symbol {
    font-size: 24px;
    color: #c6a15e;
    line-height: 1;
}

.sorge-text {
    font-size: 15px;
    color: #cfc2a8;
    line-height: 1.6;
    margin-bottom: 16px;
}

.sorge-question {
    background: rgba(200, 170, 110, 0.1);
    padding: 12px 16px;
    border-radius: 12px;
    font-style: italic;
    color: #f5e7c8;
    font-size: 14px;
    border-left: 2px solid #b4946a;
}

.sorge-label {
    font-size: 10px;
    text-transform: uppercase;
    color: #8a7a5a;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 4px;
    font-style: normal;
}

/* ============================================================
   ФОКУС СЮЖЕТА
   ============================================================ */

.plot-focus-gods {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.3);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(200, 170, 110, 0.15);
    margin-bottom: 12px;
}

.god-card {
    flex: 1;
    text-align: center;
}

.god-name {
    font-size: 15px;
    font-weight: bold;
    color: #ecd9b4;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.god-role {
    font-size: 11px;
    color: #c6a15e;
    font-style: italic;
}

.god-card-vs {
    font-size: 18px;
    color: #ffaa44;
    margin: 0 10px;
    opacity: 0.7;
}

/* ============================================================
   ДРАМ-ДОСКА (МАТРИЦА)
   ============================================================ */

.matrix-wrapper {
    position: relative;
    overflow-x: auto;
    background: rgba(18, 18, 28, 0.6);
    border-radius: 20px;
    padding: 12px;
    border: 1px solid rgba(200, 170, 110, 0.2);
    margin-bottom: 24px;
    scrollbar-width: thin;
    scrollbar-color: #c6a15e rgba(0,0,0,0.3);
}

.matrix-wrapper table {
    border-collapse: collapse;
    margin: 0 auto;
    width: 100%;
    min-width: 600px;
}

.matrix-wrapper th,
.matrix-wrapper td {
    border: 1px solid rgba(200, 170, 110, 0.25);
    padding: 8px;
    text-align: center;
    vertical-align: middle;
}

.matrix-wrapper th {
    background-color: rgba(5, 5, 8, 0.6);
    color: #ecd9b4;
}

.matrix-wrapper .corner-th {
    color: #6a5a43;
    font-size: 0.8em;
    font-style: italic;
}

.matrix-wrapper .header-relation {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #b49262;
    margin-bottom: 4px;
    font-weight: normal;
}

.matrix-wrapper .header-trigram {
    font-size: 1.5em;
    line-height: 1;
    margin-bottom: 4px;
    text-shadow: 0 0 8px rgba(0,0,0,0.5);
}

.matrix-wrapper .header-god {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.5px;
    color: #ecd9b4;
}

.matrix-wrapper .hex-cell {
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
}

.matrix-wrapper .hex-cell:hover {
    background: rgba(200, 170, 110, 0.1);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(198, 161, 94, 0.15);
    z-index: 10;
    position: relative;
}

.matrix-wrapper .hex-num {
    font-size: 1em;
    font-weight: bold;
    color: #ecd9b4;
    display: block;
    margin-bottom: 2px;
}

.matrix-wrapper .hex-symbols {
    font-size: 1.2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.9;
}

/* ============================================================
   МОДАЛЬНОЕ ОКНО ДОМИНО
   ============================================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.domino {
    background: rgba(18, 18, 28, 0.95);
    border: 1px solid rgba(200, 170, 110, 0.4);
    border-radius: 40px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 30px 70px rgba(0,0,0,0.8), 0 0 0 1px rgba(200,170,110,0.2);
    min-width: 280px;
    color: #ecd9b4;
}

.domino-content-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.domino-title {
    font-size: 1.6em;
    font-weight: bold;
    color: #ecd9b4;
    letter-spacing: 1px;
}

.domino-gua {
    font-size: 4.5em;
    line-height: 0.85;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,0.4);
    padding: 10px 30px;
    border-radius: 20px;
    border: 1px solid rgba(200,170,110,0.15);
}

.domino-names {
    font-size: 14px;
    color: #cfc2a8;
    line-height: 1.6;
    border-top: 1px solid rgba(200,170,110,0.2);
    padding-top: 15px;
    width: 100%;
}

.domino-names strong {
    color: #ecd9b4;
}

/* ============================================================
   РОЛЕВЫЕ АРХЕТИПЫ (СЛАЙДЕР)
   ============================================================ */

.archetypes-module {
    margin-bottom: 32px;
}

.archetypes-slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(0,0,0,0.4);
    padding: 4px;
}

.archetypes-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: pan-y;
}

.archetype-slide {
    min-width: 100%;
    padding: 24px;
    box-sizing: border-box;
    text-align: left;
}

.archetype-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.archetype-god {
    font-size: 28px;
    font-weight: bold;
    color: #ecd9b4;
}

.archetype-trigram {
    font-size: 42px;
    line-height: 1;
    color: #c6a15e;
}

.archetype-positive,
.archetype-negative {
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.55;
}

.archetype-positive {
    background: rgba(76, 175, 80, 0.15);
    border-left: 4px solid #4caf50;
    color: #a5d6a7;
}

.archetype-negative {
    background: rgba(244, 67, 54, 0.15);
    border-left: 4px solid #f44336;
    color: #ef9a9a;
}

.archetype-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #b49262;
    margin-bottom: 6px;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.slider-btn {
    background: rgba(198, 161, 94, 0.2);
    color: #c6a15e;
    border: 1px solid rgba(198, 161, 94, 0.4);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: #c6a15e;
    color: #12121c;
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    justify-content: center;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(198, 161, 94, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #c6a15e;
    transform: scale(1.4);
}

/* ============================================================
   СТИЛИ ДЛЯ СТРАНИЦЫ "О ПЬЕСЕ" (about)
   ============================================================ */

.master-wrapper {
    max-width: 1100px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: center;
}

/* ===== ЗАГОЛОВОК ===== */
.title-block {
    text-align: center;
    border-bottom: 1px solid rgba(200, 170, 110, 0.15);
    padding-bottom: 24px;
    width: 100%;
}

.title-block h1 {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 28px;
    color: #ecd9b4;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.title-block .subtitle {
    color: #6a5a43;
    font-size: 13px;
    letter-spacing: 3px;
    font-style: italic;
}

/* ===== СЕКЦИЯ «ДЕЙСТВУЮЩИЕ ЛИЦА» ===== */
.section {
    margin-bottom: 16px;
    width: 100%;
    max-width: 940px;
}

.section-title {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 16px;
    color: #b49262;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(200, 170, 110, 0.2);
    padding-bottom: 10px;
    margin-bottom: 28px;
    text-align: center;
}

.angels-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ===== КАРТОЧКИ АНГЕЛОВ ===== */
.angel-demo-card {
    background: rgba(18, 18, 28, 0.8);
    border: 1px solid rgba(200, 170, 110, 0.2);
    border-radius: 24px;
    padding: 28px 24px 24px;
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.angel-demo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.angel-demo-card.card-wenn::before { background: linear-gradient(to right, #7eb8da, #4a90c4); }
.angel-demo-card.card-dann::before { background: linear-gradient(to right, #e0b860, #c69c3c); }
.angel-demo-card.card-sonst::before { background: linear-gradient(to right, #b39ddb, #7e57c2); }
.angel-demo-card.card-oder::before { background: linear-gradient(to right, #66bb8f, #3d8b5e); }

.angel-demo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.angel-demo-card .angel-name {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 5px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.card-wenn .angel-name { color: #7eb8da; }
.card-dann .angel-name { color: #e0b860; }
.card-sonst .angel-name { color: #b39ddb; }
.card-oder .angel-name { color: #66bb8f; }

.angel-demo-card .angel-role {
    font-size: 11px;
    letter-spacing: 2px;
    color: #6a5a43;
    margin-bottom: 20px;
    font-style: italic;
}

.icon-monogram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 30px;
    font-weight: 700;
    color: #12121c;
    margin-bottom: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.icon-monogram.monogram-wenn { background: #7eb8da; }
.icon-monogram.monogram-dann { background: #e0b860; }
.icon-monogram.monogram-sonst { background: #b39ddb; }
.icon-monogram.monogram-oder { background: #66bb8f; }

.variant-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #6a5a43;
    margin-top: 10px;
}

/* ============================================================
   РЕПЛИКИ ЧЕТЫРЁХ АНГЕЛОВ (для страницы "О пьесе")
   ============================================================ */

.angel-speech {
    margin-bottom: 32px;
    padding-left: 12px;
    border-left: 3px solid transparent;
}

.angel-speech:last-of-type {
    margin-bottom: 32px;
}

.angel-speech .angel-name {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.angel-speech .angel-text {
    font-size: 15px;
    line-height: 1.6;
    color: #d6cdbb;
    padding-right: 4px;
}

.angel-wenn { border-left-color: #7eb8da; }
.angel-wenn .angel-name { color: #7eb8da; }

.angel-dann { border-left-color: #e0b860; }
.angel-dann .angel-name { color: #e0b860; }

.angel-sonst { border-left-color: #b39ddb; }
.angel-sonst .angel-name { color: #b39ddb; }

.angel-oder { border-left-color: #66bb8f; }
.angel-oder .angel-name { color: #66bb8f; }

/* Блок цитаты внутри диалога */
.master-wrapper .canon-card .quote-block {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    padding: 16px 20px;
    border: 1px solid rgba(200, 170, 110, 0.08);
    margin-top: 8px;
}

.master-wrapper .canon-card .quote-iching {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 12px;
    letter-spacing: 3px;
    color: #7a6a52;
    text-transform: uppercase;
}

.master-wrapper .canon-card .quote-text {
    font-style: italic;
    color: #cbbfa9;
    font-size: 15px;
    line-height: 1.5;
    margin-top: 4px;
}

.master-wrapper .canon-card .footer-note {
    font-size: 11px;
    letter-spacing: 2px;
    color: #5a4d3a;
    text-align: right;
    margin-top: 10px;
}

/* ============================================================
   АДАПТИВНОСТЬ ДЛЯ СТРАНИЦЫ "О ПЬЕСЕ"
   ============================================================ */

@media (max-width: 1000px) {
    .section {
        max-width: 100%;
    }
    .master-wrapper .canon-card {
        max-width: 100% !important;
    }
}

@media (max-width: 700px) {
    .master-wrapper {
        gap: 32px;
    }

    .angels-row {
        flex-direction: column;
        align-items: center;
    }

    .angel-demo-card {
        max-width: 100%;
        width: 100%;
        min-width: auto;
    }

    .master-wrapper .canon-card {
        padding: 24px 18px;
    }

    .title-block h1 {
        font-size: 22px;
        letter-spacing: 2px;
    }

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

    .angel-speech .angel-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 20px 12px;
    }
    .angel-demo-card {
        padding: 20px 16px;
    }
    .icon-monogram {
        width: 54px;
        height: 54px;
        font-size: 24px;
    }
    .angel-speech .angel-name {
        font-size: 16px;
    }
}

/* ============================================================
   ТЕМА: GRAW — Пространство Четырёх Ангелов
   (добавьте класс theme-graw к body)
   ============================================================ */

body.theme-graw {
    background: url('background-graw.jpg') no-repeat center top;
    background-size: cover;
}

body.theme-graw::before {
    background: linear-gradient(to bottom, rgba(28, 28, 35, 0.4), rgba(18, 18, 28, 0.95));
}

body.theme-graw .card,
body.theme-graw .canon-card,
body.theme-graw .login-card {
    background: rgba(22, 22, 32, 0.9);
    border: 1px solid rgba(160, 160, 180, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(180, 180, 200, 0.15);
    backdrop-filter: blur(20px);
}

body.theme-graw .card:hover,
body.theme-graw .canon-card:hover {
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(200, 200, 220, 0.25);
}

body.theme-graw .name,
body.theme-graw .login-title,
body.theme-graw .hex-number-display,
body.theme-graw .domino-title {
    font-family: 'Cinzel', 'Georgia', serif;
    font-weight: 700;
    color: #d0d0e0;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(180, 180, 220, 0.2);
    letter-spacing: 3px;
    text-transform: uppercase;
}

body.theme-graw .quote-text,
body.theme-graw .sorge-text,
body.theme-graw .canon-text,
body.theme-graw .direction,
body.theme-graw .domino-names,
body.theme-graw p {
    color: #b8b8cc;
    font-weight: 400;
    line-height: 1.7;
}

body.theme-graw .badge,
body.theme-graw .login-badge {
    background: rgba(40, 40, 55, 0.7);
    color: #a0a0c0;
    border: 1px solid rgba(180, 180, 210, 0.35);
    text-shadow: none;
}

body.theme-graw .login-subtitle,
body.theme-graw .date,
body.theme-graw .timer-label,
body.theme-graw .quote-iching,
body.theme-graw .sorge-label {
    color: #808095;
    letter-spacing: 2px;
}

body.theme-graw .login-form button,
body.theme-graw .navigator-box button {
    background: #6a6a80;
    color: #1a1a28;
    border: none;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

body.theme-graw .login-form button:hover,
body.theme-graw .navigator-box button:hover {
    background: #a0a0c0;
    box-shadow: 0 8px 25px rgba(160, 160, 200, 0.3);
    transform: translateY(-2px);
}

body.theme-graw input[type="text"] {
    background: rgba(10, 10, 18, 0.7);
    border: 1px solid rgba(160, 160, 180, 0.4);
    color: #d0d0e0;
}

body.theme-graw input[type="text"]:focus {
    border-color: #a0a0c0;
    box-shadow: 0 0 20px rgba(160, 160, 200, 0.2);
}

body.theme-graw .name {
    border-bottom: 2px solid #8080a0;
}

body.theme-graw .quote-block {
    background: rgba(200, 200, 220, 0.04);
    border: 1px solid rgba(200, 200, 220, 0.15);
}

body.theme-graw .quote-text {
    color: #c0c0d0;
}

body.theme-graw .sorge-card::before {
    background: #8080a0;
}

body.theme-graw .sorge-question {
    background: rgba(200, 200, 220, 0.05);
    border-left: 2px solid #8080a0;
    color: #e0e0f0;
}

body.theme-graw .line.yang,
body.theme-graw .line.yin::before,
body.theme-graw .line.yin::after {
    background: #c0c0d8;
    box-shadow: 0 0 8px rgba(200, 200, 220, 0.4);
}

body.theme-graw .line.active {
    box-shadow: 0 0 25px rgba(200, 200, 255, 0.6), 0 0 50px rgba(180, 180, 220, 0.3) !important;
}
body.theme-graw .line.active.yang {
    background: #f0f0ff;
}

body.theme-graw .archetype-god {
    color: #d0d0e0;
}

body.theme-graw .archetype-positive {
    background: rgba(100, 140, 180, 0.15);
    border-left: 4px solid #8090b0;
    color: #b0c0e0;
}

body.theme-graw .archetype-negative {
    background: rgba(120, 80, 100, 0.15);
    border-left: 4px solid #907080;
    color: #e0b0c0;
}

body.theme-graw .menu-links a,
body.theme-graw .navigator-box .logout-link {
    color: #9090b0;
    border: 1px solid rgba(160, 160, 180, 0.25);
}

body.theme-graw .menu-links a:hover,
body.theme-graw .navigator-box .logout-link:hover {
    color: #d0d0e0;
    border-color: #a0a0c0;
    background: rgba(160, 160, 200, 0.15);
}

body.theme-graw .domino {
    background: rgba(22, 22, 32, 0.95);
    border: 1px solid rgba(180, 180, 200, 0.5);
}

/* ============================================================
   АДАПТАЦИЯ РЕПЛИК АНГЕЛОВ ДЛЯ ТЕМЫ GRAW
   ============================================================ */

body.theme-graw .angel-wenn { border-left-color: #8ab8d8; }
body.theme-graw .angel-wenn .angel-name { color: #8ab8d8; }
body.theme-graw .angel-wenn .angel-text { color: #b0c8e0; }

body.theme-graw .angel-dann { border-left-color: #c0a050; }
body.theme-graw .angel-dann .angel-name { color: #c0a050; }
body.theme-graw .angel-dann .angel-text { color: #d8c898; }

body.theme-graw .angel-sonst { border-left-color: #9a8ab8; }
body.theme-graw .angel-sonst .angel-name { color: #9a8ab8; }
body.theme-graw .angel-sonst .angel-text { color: #c0b8d8; }

body.theme-graw .angel-oder { border-left-color: #5a9878; }
body.theme-graw .angel-oder .angel-name { color: #5a9878; }
body.theme-graw .angel-oder .angel-text { color: #a0c8b0; }

body.theme-graw .angel-demo-card {
    background: rgba(22, 22, 32, 0.85);
    border-color: rgba(160, 160, 180, 0.25);
}

body.theme-graw .angel-demo-card.card-wenn::before {
    background: linear-gradient(to right, #8ab8d8, #5078a0);
}
body.theme-graw .angel-demo-card.card-dann::before {
    background: linear-gradient(to right, #c0a050, #a08030);
}
body.theme-graw .angel-demo-card.card-sonst::before {
    background: linear-gradient(to right, #9a8ab8, #6850a0);
}
body.theme-graw .angel-demo-card.card-oder::before {
    background: linear-gradient(to right, #5a9878, #306848);
}

body.theme-graw .card-wenn .angel-name { color: #8ab8d8; }
body.theme-graw .card-dann .angel-name { color: #c0a050; }
body.theme-graw .card-sonst .angel-name { color: #9a8ab8; }
body.theme-graw .card-oder .angel-name { color: #5a9878; }

body.theme-graw .icon-monogram.monogram-wenn { background: #8ab8d8; }
body.theme-graw .icon-monogram.monogram-dann { background: #c0a050; }
body.theme-graw .icon-monogram.monogram-sonst { background: #9a8ab8; }
body.theme-graw .icon-monogram.monogram-oder { background: #5a9878; }

body.theme-graw .title-block {
    border-bottom-color: rgba(160, 160, 180, 0.2);
}

body.theme-graw .title-block h1 {
    color: #d0d0e0;
}

body.theme-graw .section-title {
    color: #808095;
    border-bottom-color: rgba(160, 160, 180, 0.2);
}

body.theme-graw .angel-demo-card .angel-role {
    color: #808095;
}

body.theme-graw .variant-label {
    color: #808095;
}

body.theme-graw .master-wrapper .canon-card .quote-block {
    background: rgba(200, 200, 220, 0.04);
    border-color: rgba(160, 160, 180, 0.15);
}

body.theme-graw .master-wrapper .canon-card .quote-iching {
    color: #808095;
}

body.theme-graw .master-wrapper .canon-card .quote-text {
    color: #c0c0d0;
}

body.theme-graw .master-wrapper .canon-card .footer-note {
    color: #5a5a6a;
}
/* ============================================================
   СТИЛИ ДЛЯ СТРАНИЦЫ "О ПЬЕСЕ" (about)
   ============================================================ */

.master-wrapper {
    max-width: 1100px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: center;
}

/* ===== ЗАГОЛОВОК ===== */
.title-block {
    text-align: center;
    border-bottom: 1px solid rgba(200, 170, 110, 0.15);
    padding-bottom: 24px;
    width: 100%;
}

.title-block h1 {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 28px;
    color: #ecd9b4;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.title-block .subtitle {
    color: #6a5a43;
    font-size: 13px;
    letter-spacing: 3px;
    font-style: italic;
}

/* ===== СЕКЦИЯ «ДЕЙСТВУЮЩИЕ ЛИЦА» ===== */
.section {
    margin-bottom: 16px;
    width: 100%;
    max-width: 940px; /* Ограничиваем ширину секции */
}

.section-title {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 16px;
    color: #b49262;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(200, 170, 110, 0.2);
    padding-bottom: 10px;
    margin-bottom: 28px;
    text-align: center;
}

.angels-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ===== КАРТОЧКИ АНГЕЛОВ ===== */
.angel-demo-card {
    background: rgba(18, 18, 28, 0.8);
    border: 1px solid rgba(200, 170, 110, 0.2);
    border-radius: 24px;
    padding: 28px 24px 24px;
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.angel-demo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.angel-demo-card.card-wenn::before { background: linear-gradient(to right, #7eb8da, #4a90c4); }
.angel-demo-card.card-dann::before { background: linear-gradient(to right, #e0b860, #c69c3c); }
.angel-demo-card.card-sonst::before { background: linear-gradient(to right, #b39ddb, #7e57c2); }
.angel-demo-card.card-oder::before { background: linear-gradient(to right, #66bb8f, #3d8b5e); }

.angel-demo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.angel-demo-card .angel-name {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 5px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.card-wenn .angel-name { color: #7eb8da; }
.card-dann .angel-name { color: #e0b860; }
.card-sonst .angel-name { color: #b39ddb; }
.card-oder .angel-name { color: #66bb8f; }

.angel-demo-card .angel-role {
    font-size: 11px;
    letter-spacing: 2px;
    color: #6a5a43;
    margin-bottom: 20px;
    font-style: italic;
}

.icon-monogram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 30px;
    font-weight: 700;
    color: #12121c;
    margin-bottom: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.icon-monogram.monogram-wenn { background: #7eb8da; }
.icon-monogram.monogram-dann { background: #e0b860; }
.icon-monogram.monogram-sonst { background: #b39ddb; }
.icon-monogram.monogram-oder { background: #66bb8f; }

.variant-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #6a5a43;
    margin-top: 10px;
}

/* ===== БЛОК С ДИАЛОГОМ ===== */
/* Делаем блок с диалогом такой же ширины, как и секция с карточками */
.canon-card {
    max-width: 940px !important; /* Переопределяем стандартную ширину */
    width: 100%;
    margin: 0 auto;
}

/* ============================================================
   РЕПЛИКИ ЧЕТЫРЁХ АНГЕЛОВ (для страницы "О пьесе")
   ============================================================ */

.angel-speech {
    position: relative;
    padding: 18px 22px 18px 28px;
    margin-bottom: 20px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(200, 170, 110, 0.15);
    transition: all 0.4s ease;
    overflow: hidden;
}

.angel-speech::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    border-radius: 3px;
    transition: all 0.4s ease;
}

.angel-speech .angel-name {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Монограмма в круге перед именем */
.angel-speech .angel-name::before {
    content: '';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 16px;
    font-weight: 700;
    color: #12121c;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Декоративная линия после имени */
.angel-speech .angel-name::after {
    content: '';
    flex: 1;
    height: 1px;
    opacity: 0.25;
}

.angel-speech .angel-text {
    font-size: 16px;
    line-height: 1.7;
    font-style: italic;
    color: #cfc2a8;
}

/* ============================================================
   WENN — Ангел Условия
   ============================================================ */
.angel-wenn::before {
    background: linear-gradient(to bottom, #7eb8da, #4a90c4);
    box-shadow: 0 0 18px rgba(74, 144, 196, 0.4);
}

.angel-wenn .angel-name {
    color: #7eb8da;
}

.angel-wenn .angel-name::before {
    content: 'W';
    background: #7eb8da;
    box-shadow: 0 0 14px rgba(126, 184, 218, 0.5);
}

.angel-wenn .angel-name::after {
    background: #7eb8da;
}

.angel-wenn .angel-text {
    color: #c8ddf0;
}

.angel-wenn:hover {
    background: rgba(74, 144, 196, 0.08);
    border-color: rgba(126, 184, 218, 0.3);
}

/* ============================================================
   DANN — Ангел Следствия
   ============================================================ */
.angel-dann::before {
    background: linear-gradient(to bottom, #e0b860, #c69c3c);
    box-shadow: 0 0 18px rgba(198, 156, 60, 0.5);
}

.angel-dann .angel-name {
    color: #e0b860;
}

.angel-dann .angel-name::before {
    content: 'D';
    background: #e0b860;
    box-shadow: 0 0 14px rgba(224, 184, 96, 0.5);
}

.angel-dann .angel-name::after {
    background: #e0b860;
}

.angel-dann .angel-text {
    color: #f5e7c8;
}

.angel-dann:hover {
    background: rgba(198, 156, 60, 0.08);
    border-color: rgba(224, 184, 96, 0.35);
}

/* ============================================================
   SONST — Ангел Иного Пути
   ============================================================ */
.angel-sonst::before {
    background: linear-gradient(to bottom, #b39ddb, #7e57c2);
    box-shadow: 0 0 18px rgba(126, 87, 194, 0.4);
}

.angel-sonst .angel-name {
    color: #b39ddb;
}

.angel-sonst .angel-name::before {
    content: 'S';
    background: #b39ddb;
    box-shadow: 0 0 14px rgba(179, 157, 219, 0.5);
}

.angel-sonst .angel-name::after {
    background: #b39ddb;
}

.angel-sonst .angel-text {
    color: #d1c4e9;
}

.angel-sonst:hover {
    background: rgba(126, 87, 194, 0.08);
    border-color: rgba(179, 157, 219, 0.3);
}

/* ============================================================
   ODER — Ангел Возможности
   ============================================================ */
.angel-oder::before {
    background: linear-gradient(to bottom, #66bb8f, #3d8b5e);
    box-shadow: 0 0 18px rgba(61, 139, 94, 0.4);
}

.angel-oder .angel-name {
    color: #66bb8f;
}

.angel-oder .angel-name::before {
    content: 'O';
    background: #66bb8f;
    box-shadow: 0 0 14px rgba(102, 187, 143, 0.5);
}

.angel-oder .angel-name::after {
    background: #66bb8f;
}

.angel-oder .angel-text {
    color: #b9e4c9;
}

.angel-oder:hover {
    background: rgba(61, 139, 94, 0.08);
    border-color: rgba(102, 187, 143, 0.3);
}

/* ============================================================
   Блок цитаты внутри диалога
   ============================================================ */
.master-wrapper .canon-card .quote-block {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    padding: 16px 20px;
    border: 1px solid rgba(200, 170, 110, 0.08);
    margin-top: 8px;
}

.master-wrapper .canon-card .quote-iching {
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 12px;
    letter-spacing: 3px;
    color: #7a6a52;
    text-transform: uppercase;
}

.master-wrapper .canon-card .quote-text {
    font-style: italic;
    color: #cbbfa9;
    font-size: 15px;
    line-height: 1.5;
    margin-top: 4px;
}

.master-wrapper .canon-card .footer-note {
    font-size: 11px;
    letter-spacing: 2px;
    color: #5a4d3a;
    text-align: right;
    margin-top: 10px;
}

/* ============================================================
   АДАПТАЦИЯ РЕПЛИК АНГЕЛОВ ДЛЯ ТЕМЫ GRAW
   ============================================================ */

/* Graw — Wenn */
body.theme-graw .angel-wenn::before {
    background: linear-gradient(to bottom, #8ab8d8, #5078a0);
    box-shadow: 0 0 18px rgba(80, 120, 160, 0.4);
}
body.theme-graw .angel-wenn .angel-name {
    color: #8ab8d8;
}
body.theme-graw .angel-wenn .angel-name::before {
    content: 'W';
    background: #8ab8d8;
    box-shadow: 0 0 14px rgba(138, 184, 216, 0.5);
}
body.theme-graw .angel-wenn .angel-name::after {
    background: #8ab8d8;
}
body.theme-graw .angel-wenn .angel-text {
    color: #b0c8e0;
}
body.theme-graw .angel-wenn:hover {
    background: rgba(80, 120, 160, 0.1);
    border-color: rgba(138, 184, 216, 0.3);
}

/* Graw — Dann */
body.theme-graw .angel-dann::before {
    background: linear-gradient(to bottom, #c0a050, #a08030);
    box-shadow: 0 0 18px rgba(160, 128, 48, 0.5);
}
body.theme-graw .angel-dann .angel-name {
    color: #c0a050;
}
body.theme-graw .angel-dann .angel-name::before {
    content: 'D';
    background: #c0a050;
    box-shadow: 0 0 14px rgba(192, 160, 80, 0.5);
}
body.theme-graw .angel-dann .angel-name::after {
    background: #c0a050;
}
body.theme-graw .angel-dann .angel-text {
    color: #d8c898;
}
body.theme-graw .angel-dann:hover {
    background: rgba(160, 128, 48, 0.1);
    border-color: rgba(192, 160, 80, 0.35);
}

/* Graw — Sonst */
body.theme-graw .angel-sonst::before {
    background: linear-gradient(to bottom, #9a8ab8, #6850a0);
    box-shadow: 0 0 18px rgba(104, 80, 160, 0.4);
}
body.theme-graw .angel-sonst .angel-name {
    color: #9a8ab8;
}
body.theme-graw .angel-sonst .angel-name::before {
    content: 'S';
    background: #9a8ab8;
    box-shadow: 0 0 14px rgba(154, 138, 184, 0.5);
}
body.theme-graw .angel-sonst .angel-name::after {
    background: #9a8ab8;
}
body.theme-graw .angel-sonst .angel-text {
    color: #c0b8d8;
}
body.theme-graw .angel-sonst:hover {
    background: rgba(104, 80, 160, 0.1);
    border-color: rgba(154, 138, 184, 0.3);
}

/* Graw — Oder */
body.theme-graw .angel-oder::before {
    background: linear-gradient(to bottom, #5a9878, #306848);
    box-shadow: 0 0 18px rgba(48, 104, 72, 0.4);
}
body.theme-graw .angel-oder .angel-name {
    color: #5a9878;
}
body.theme-graw .angel-oder .angel-name::before {
    content: 'O';
    background: #5a9878;
    box-shadow: 0 0 14px rgba(90, 152, 120, 0.5);
}
body.theme-graw .angel-oder .angel-name::after {
    background: #5a9878;
}
body.theme-graw .angel-oder .angel-text {
    color: #a0c8b0;
}
body.theme-graw .angel-oder:hover {
    background: rgba(48, 104, 72, 0.1);
    border-color: rgba(90, 152, 120, 0.3);
}
/* ============================================================
   АДАПТИВНОСТЬ ДЛЯ СТРАНИЦЫ "О ПЬЕСЕ"
   ============================================================ */

@media (max-width: 1000px) {
    .section {
        max-width: 100%;
    }
    .canon-card {
        max-width: 100% !important;
    }
}

@media (max-width: 700px) {
    .master-wrapper {
        gap: 32px;
    }

    .angels-row {
        flex-direction: column;
        align-items: center;
    }

    .angel-demo-card {
        max-width: 100%;
        width: 100%;
        min-width: auto;
    }

    .canon-card {
        padding: 24px 18px;
    }

    .title-block h1 {
        font-size: 22px;
        letter-spacing: 2px;
    }

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

    .angel-speech .angel-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 20px 12px;
    }
    .angel-demo-card {
        padding: 20px 16px;
    }
    .icon-monogram {
        width: 54px;
        height: 54px;
        font-size: 24px;
    }
    .angel-speech .angel-name {
        font-size: 16px;
    }
}
