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

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

body {
    min-height: 100vh;
    background: url('background.jpg') no-repeat center top;
    background-size: cover;
    font-family: 'Georgia', serif;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 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;
}

.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);
}

/* ============================================================
   АДАПТИВНОСТЬ (МОБИЛЬНЫЕ УСТРОЙСТВА)
   ============================================================ */

@media (max-width: 550px) {
    .login-card {
        padding: 32px 20px 28px;
        border-radius: 36px;
    }
    .login-title {
        font-size: 22px;
    }

    .card, .canon-card {
        padding: 24px 14px;
        border-radius: 36px;
    }
    .hex-number-display {
        font-size: 42px;
    }
    .line {
        width: 170px;
    }

    .matrix-wrapper {
        padding: 4px;
        border-radius: 12px;
    }
    .matrix-wrapper table {
        min-width: auto;
        width: 100%;
        table-layout: fixed;
    }
    .matrix-wrapper th,
    .matrix-wrapper td {
        padding: 2px 0px;
        font-size: 6px;
    }
    .matrix-wrapper .header-relation {
        display: none;
    }
    .matrix-wrapper .header-trigram {
        font-size: 12px;
    }
    .matrix-wrapper .header-god {
        font-size: 7px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .matrix-wrapper .hex-num {
        font-size: 8px;
    }
    .matrix-wrapper .hex-symbols {
        font-size: 10px;
    }

    .domino {
        min-width: auto;
        width: 90%;
        max-width: 320px;
        padding: 24px;
        border-radius: 24px;
    }
    .domino-title {
        font-size: 1.3em;
    }
    .domino-gua {
        font-size: 3.5em;
        padding: 5px 20px;
    }
    .domino-names {
        font-size: 12px;
        padding-top: 10px;
    }

    .archetype-slide {
        padding: 18px;
    }
}

/* Адаптив для трёх колонок */
@media (max-width: 1100px) {
    .layout-wrapper {
        flex-wrap: wrap;
    }
    .card {
        flex: 1 1 40%;
        order: 1;
    }
    .canon-card.sorge {
        flex: 1 1 40%;
        order: 2;
    }
    .canon-card.wilhelm {
        flex: 1 1 100%;
        order: 3;
        max-width: 100%;
    }
}

@media (max-width: 700px) {
    .layout-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .card, .canon-card {
        flex: 1 1 100%;
        max-width: 600px;
        width: 100%;
    }
    .card {
        order: 1;
    }
    .canon-card.sorge {
        order: 2;
    }
    .canon-card.wilhelm {
        order: 3;
    }
}
