/*
 * Руны / Книга ответов — стили. Все правила ограничены контейнером .runes-app,
 * чтобы не конфликтовать со стилями сайта и других сервисов.
 */

.runes-app {
  --rn-bg: #0a090d;
  --rn-gold: #c9a961;
  --rn-gold-hi: #e6cf94;
  --rn-gold-lo: #8e7136;
  --rn-line: rgba(201, 169, 97, .28);
  --rn-line-soft: rgba(201, 169, 97, .14);
  --rn-text: #ece6d9;
  --rn-text-2: #cfc8d8;
  --rn-muted: #a39cae;
  --rn-focus: #f0d999;
  --rn-rune: #e08a5a;
  --rn-serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --rn-sans: 'Manrope', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --rn-ease: cubic-bezier(.22, .7, .2, 1);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--rn-text);
  font-family: var(--rn-sans);
  font-size: 16px;
  line-height: 1.65;
  background:
    radial-gradient(800px 480px at 50% -4%, rgba(230, 207, 148, .12), transparent 60%),
    radial-gradient(1200px 700px at 50% 0%, rgba(70, 60, 110, .30), transparent 65%),
    radial-gradient(900px 700px at 100% 70%, rgba(60, 40, 30, .30), transparent 60%),
    linear-gradient(180deg, var(--rn-bg) 0%, #0f0c14 45%, var(--rn-bg) 100%);
  padding: clamp(28px, 6vw, 72px) clamp(16px, 4vw, 40px) clamp(40px, 6vw, 80px);
  -webkit-font-smoothing: antialiased;
}
.runes-app *, .runes-app *::before, .runes-app *::after { box-sizing: border-box; }
.runes-app [hidden] { display: none !important; }
.runes-app img { max-width: 100%; display: block; }
.runes-app button, .runes-app input { font: inherit; color: inherit; }
.runes-app :focus-visible { outline: 2px solid var(--rn-focus); outline-offset: 3px; }
:where(.runes-app) p { margin: 0 0 12px; }
.runes-page { margin: 0; background: #0a090d; }
.rn-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rn-sky {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(1px 1px at 14% 20%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 10%, #fff6 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 38% 46%, #e6cf9480 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 52%, #fff5 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 24% 76%, #e6cf9466 50%, transparent 51%),
    radial-gradient(1px 1px at 60% 86%, #fff5 50%, transparent 51%);
  background-size: 380px 380px;
}

/* ---------- Типографика ---------- */
.rn-hero { text-align: center; max-width: 800px; margin: 0 auto clamp(22px, 4vw, 36px); }
.rn-hero__emblem { width: 240px; height: 120px; max-width: 80%; margin: 0 auto 10px; filter: drop-shadow(0 0 14px rgba(230, 200, 130, .35)); }
.rn-hero__title {
  font-family: var(--rn-serif); font-weight: 600; letter-spacing: .02em;
  font-size: clamp(36px, 6.4vw, 64px); line-height: 1.05; margin: 0 0 14px;
  background: linear-gradient(180deg, #f3e3b6 0%, var(--rn-gold) 70%, #a88848 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rn-hero__lead { color: var(--rn-muted); font-size: clamp(16px, 2.2vw, 19px); margin: 0 auto !important; max-width: 620px; text-wrap: balance; }
.rn-h2 { font-family: var(--rn-serif); font-weight: 600; color: var(--rn-gold-hi); font-size: clamp(26px, 3.6vw, 36px); line-height: 1.15; margin: 0 0 16px; }
.rn-h2--caps { text-transform: uppercase; letter-spacing: .16em; font-weight: 500; }
.rn-h3 { font-family: var(--rn-serif); font-weight: 600; color: var(--rn-gold-hi); font-size: clamp(21px, 2.6vw, 25px); line-height: 1.2; margin: 0 0 8px; }
.rn-muted { color: var(--rn-muted); font-weight: 400; }
.rn-hint { color: var(--rn-muted); font-size: 13.5px; margin: 8px 0 0 !important; }

/* ---------- Вкладки ---------- */
.rn-tabs { display: flex; justify-content: center; gap: 6px; width: fit-content; max-width: 100%; margin: 0 auto clamp(20px, 3.5vw, 32px); padding: 5px; border-radius: 999px; border: 1px solid var(--rn-line); background: rgba(10, 9, 14, .55); }
.rn-tab { min-height: 46px; padding: 10px 24px; border: 0; border-radius: 999px; background: none; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--rn-muted) !important; transition: background .2s, color .2s; }
.rn-tab span { color: var(--rn-gold); margin-right: 4px; }
.rn-tab:hover { color: var(--rn-text) !important; }
.rn-tab[aria-selected="true"] { color: #1a1408 !important; background: linear-gradient(180deg, #ecd79f 0%, #c9a961 55%, #a98a48 100%); }
.rn-tab[aria-selected="true"] span { color: #1a1408; }

/* ---------- Панели ---------- */
.rn-panel {
  position: relative; max-width: 1040px; margin: 0 auto clamp(24px, 4vw, 40px);
  padding: clamp(22px, 4vw, 44px);
  background: linear-gradient(180deg, rgba(30, 28, 34, .78), rgba(18, 16, 22, .82));
  border: 1px solid rgba(201, 169, 97, .2); border-radius: 22px;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .03);
}
.rn-panel::before { content: ''; position: absolute; inset: 7px; border: 1px solid var(--rn-line-soft); border-radius: 16px; pointer-events: none; }
.rn-panel > * { position: relative; }
.rn-setup > .rn-h2, .rn-table__head, .rn-bookpanel > .rn-h2 { text-align: center; }

/* ---------- Форма ---------- */
.rn-fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.rn-legend { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: .04em; margin-bottom: 14px; padding: 0; }
.rn-step { font-family: var(--rn-serif); color: var(--rn-gold); font-size: 18px; width: 30px; height: 30px; flex: none; display: inline-grid; place-items: center; border: 1px solid var(--rn-line); border-radius: 50%; }
.rn-spreads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rn-option { position: relative; display: block; cursor: pointer; }
.rn-option input, .rn-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rn-option__box { display: grid; gap: 6px; height: 100%; padding: 20px 22px; border-radius: 14px; border: 1px solid var(--rn-line-soft); background: rgba(10, 9, 14, .45); transition: border-color .25s, background .25s, box-shadow .25s; }
.rn-option:hover .rn-option__box { border-color: var(--rn-line); }
.rn-option input:checked + .rn-option__box { border-color: var(--rn-gold); background: linear-gradient(180deg, rgba(201, 169, 97, .1), rgba(10, 9, 14, .4)); box-shadow: 0 0 0 1px rgba(201, 169, 97, .25), 0 12px 40px -18px rgba(201, 169, 97, .45); }
.rn-option input:focus-visible + .rn-option__box { outline: 2px solid var(--rn-focus); outline-offset: 3px; }
.rn-option__title { font-family: var(--rn-serif); font-size: 25px; font-weight: 600; color: var(--rn-gold-hi); line-height: 1.1; }
.rn-option__text { color: var(--rn-muted); font-size: 14.5px; }

.rn-input { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--rn-line-soft); background: rgba(8, 7, 12, .65); color: var(--rn-text); }
.rn-input::placeholder { color: #756f80; }
.rn-input:focus { outline: none; border-color: var(--rn-gold); box-shadow: 0 0 0 3px rgba(201, 169, 97, .2); }

.rn-setup__footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--rn-line-soft); }
.rn-switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; color: var(--rn-muted); }
.rn-switch__track { position: relative; width: 44px; height: 24px; border-radius: 999px; border: 1px solid var(--rn-line); background: rgba(10, 9, 14, .6); flex: none; transition: background .2s; }
.rn-switch__track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--rn-muted); transition: transform .25s var(--rn-ease), background .2s; }
.rn-switch input:checked + .rn-switch__track { background: rgba(201, 169, 97, .25); }
.rn-switch input:checked + .rn-switch__track::after { transform: translateX(20px); background: var(--rn-gold-hi); }
.rn-switch input:focus-visible + .rn-switch__track { outline: 2px solid var(--rn-focus); outline-offset: 3px; }

/* ---------- Кнопки ---------- */
.rn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 22px; border-radius: 999px; cursor: pointer; text-decoration: none;
  border: 1px solid var(--rn-line); background: rgba(10, 9, 14, .5); color: var(--rn-text) !important;
  font-weight: 600; font-size: 15px; letter-spacing: .02em; line-height: 1.2;
  transition: border-color .2s, background .2s, box-shadow .25s, transform .2s var(--rn-ease);
}
.rn-btn:hover { border-color: var(--rn-gold); background: rgba(201, 169, 97, .08); }
.rn-btn:active { transform: translateY(1px); }
.rn-btn--primary { color: #1a1408 !important; border-color: transparent; background: linear-gradient(180deg, #ecd79f 0%, #c9a961 55%, #a98a48 100%); box-shadow: 0 10px 30px -12px rgba(201, 169, 97, .6), inset 0 1px 0 rgba(255, 255, 255, .45); }
.rn-btn--primary:hover { background: linear-gradient(180deg, #f3e2b2 0%, #d4b56d 55%, #b39350 100%); }
.rn-btn--ghost { border-color: transparent; background: transparent; color: var(--rn-muted) !important; font-weight: 500; }
.rn-btn--ghost:hover { color: var(--rn-text) !important; background: transparent; border-color: var(--rn-line-soft); }
.rn-btn--lg { min-height: 54px; padding: 14px 34px; font-size: 16px; }
.runes-app .rn-btn:focus-visible { outline-offset: 4px; }

/* ---------- Камень с руной ---------- */
.rn-stone { display: block; width: 100%; height: auto; overflow: visible; }
.rn-stone__body { fill: #5d5650; stroke: rgba(0, 0, 0, .35); stroke-width: 1; }
.rn-stone__shine { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 3; stroke-linecap: round; }
.rn-stone__rune { fill: none; stroke: var(--rn-rune); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 3px rgba(224, 138, 90, .45)); }
.rn-stone--down .rn-stone__body { fill: #3f3a37; }
.rn-stone { filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .55)); }

/* ---------- Стол ---------- */
.rn-table__meta { color: var(--rn-muted); margin-top: -8px; font-size: 14.5px; }
.rn-status { text-align: center; color: var(--rn-gold-hi); font-family: var(--rn-serif); font-size: clamp(19px, 2.4vw, 23px); min-height: 1.5em; margin: 10px 0 18px !important; }
.rn-status:empty { display: none; }
.rn-slots { display: flex; justify-content: center; gap: clamp(16px, 4vw, 48px); margin: 0 auto 24px; }
.rn-slot { display: flex; flex-direction: column; align-items: center; gap: 8px; width: clamp(92px, 22vw, 140px); }
.rn-slots[data-spread="1"] .rn-slot { width: clamp(120px, 30vw, 170px); }
.rn-slot__label { font-family: var(--rn-serif); color: var(--rn-gold); font-size: clamp(15px, 2vw, 19px); text-align: center; line-height: 1.2; min-height: 2.4em; display: flex; align-items: flex-end; }
.rn-slot__place { position: relative; width: 100%; aspect-ratio: 80 / 110; border-radius: 50% / 45%; border: 1px dashed var(--rn-line); background: rgba(14, 12, 20, .5); }
.rn-slot__place.is-filled { border-color: transparent; background: none; }
.rn-slot__name { text-align: center; font-size: 14px; line-height: 1.35; min-height: 2.7em; }
.rn-slot__name small { display: block; color: var(--rn-muted); font-size: 12.5px; }

.rn-flip { position: absolute; inset: 0; perspective: 900px; border: 0; padding: 0; background: none; cursor: default; border-radius: 50% / 45%; }
button.rn-flip:not(:disabled) { cursor: pointer; }
.rn-flip__inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s var(--rn-ease); animation: rn-drop .45s var(--rn-ease); }
.rn-flip.is-open .rn-flip__inner { transform: rotateY(180deg); }
.rn-flip__face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.rn-flip__front { transform: rotateY(180deg); }
.rn-flip.is-open .rn-stone__rune { animation: rn-glow 1.6s ease-out .3s both; }
@keyframes rn-drop { from { opacity: 0; transform: translateY(-24px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes rn-glow { 0% { stroke: #fff1c4; filter: drop-shadow(0 0 12px rgba(255, 210, 150, .95)); } 100% { stroke: var(--rn-rune); filter: drop-shadow(0 0 3px rgba(224, 138, 90, .45)); } }

/* Мешочек */
.rn-bag {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 12px 10px;
  max-width: 640px; margin: 0 auto; padding: 22px clamp(14px, 3vw, 26px); border-radius: 26px;
  background: radial-gradient(closest-side, rgba(201, 169, 97, .08), transparent), rgba(10, 9, 14, .45);
  border: 1px solid var(--rn-line-soft);
}
.rn-bag__stone { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50% / 45%; transition: transform .25s var(--rn-ease), opacity .3s; }
.rn-bag__stone:hover, .rn-bag__stone:focus-visible { transform: translateY(-6px) rotate(-3deg); }
.rn-bag__stone:hover .rn-stone__body, .rn-bag__stone:focus-visible .rn-stone__body { fill: #57504b; stroke: var(--rn-gold); }
.rn-bag__stone.is-taken { opacity: .12; transform: scale(.85); pointer-events: none; }
.rn-bag.is-shuffling .rn-bag__stone { animation: rn-shake .42s ease-in-out 3 var(--d, 0ms); pointer-events: none; }
@keyframes rn-shake { 0%, 100% { transform: none; } 25% { transform: translate(-4px, -3px) rotate(-8deg); } 75% { transform: translate(4px, 2px) rotate(7deg); } }
.rn-table__actions { display: flex; justify-content: center; margin-top: 16px; }

/* ---------- Результат ---------- */
.rn-result { animation: rn-rise .8s var(--rn-ease) both; }
.rn-result > .rn-h2 { text-align: center; outline: none; }
.rn-result__question { text-align: center; color: var(--rn-muted); font-style: italic; font-family: var(--rn-serif); font-size: 20px; margin-top: -6px !important; }
.rn-notice { text-align: center; font-size: 14px; color: var(--rn-gold-hi); border: 1px solid var(--rn-line); border-radius: 999px; padding: 8px 18px; margin: 0 auto 18px; width: fit-content; max-width: 100%; background: rgba(201, 169, 97, .06); }
.rn-readings { display: grid; gap: 20px; margin: 22px 0 26px; }
.rn-reading { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); align-items: start; padding: clamp(18px, 3vw, 28px); border-radius: 16px; border: 1px solid rgba(201, 169, 97, .16); background: rgba(10, 9, 14, .5); animation: rn-rise .7s var(--rn-ease) both; }
.rn-reading:nth-child(2) { animation-delay: .12s; }
.rn-reading:nth-child(3) { animation-delay: .24s; }
.rn-reading__stone { padding-top: 6px; }
.rn-pos { font-size: 12.5px; text-transform: uppercase; letter-spacing: .16em; color: var(--rn-gold); margin: 0 0 4px !important; }
.rn-reading__title { font-family: var(--rn-serif); font-size: clamp(28px, 3.6vw, 36px); font-weight: 600; color: var(--rn-gold-hi); margin: 0 0 4px; line-height: 1.1; }
.rn-reading__meta { color: var(--rn-muted); font-size: 14px; margin-bottom: 6px !important; }
.rn-badge { display: inline-block; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--rn-line); color: var(--rn-gold-hi); margin-left: 8px; vertical-align: 1px; white-space: nowrap; }
.rn-badge--rev { border-color: rgba(170, 140, 220, .45); color: #cdb8f0; }
.rn-kw { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; padding: 0; list-style: none; }
.rn-kw li { font-size: 13px; padding: 4px 11px; border-radius: 999px; background: rgba(201, 169, 97, .09); color: var(--rn-gold-hi); }
.rn-frame { color: var(--rn-gold-hi); font-family: var(--rn-serif); font-size: 19px; line-height: 1.4; }
.rn-block-title { font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 16px 0 4px !important; opacity: .8; }
.rn-advice { margin-top: 16px !important; padding: 12px 16px; border-left: 2px solid var(--rn-gold); background: rgba(201, 169, 97, .06); border-radius: 0 8px 8px 0; font-family: var(--rn-serif); font-size: 19px; font-style: italic; }

.rn-summary { padding: clamp(20px, 3.4vw, 34px); border-radius: 16px; border: 1px solid var(--rn-line); background: linear-gradient(180deg, rgba(201, 169, 97, .07), rgba(8, 7, 12, .3)); }
.rn-summary .rn-h3 { text-align: center; font-size: clamp(25px, 3vw, 30px); }
.rn-summary .rn-h3::after { content: ''; display: block; width: 80px; height: 1px; margin: 12px auto 4px; background: linear-gradient(90deg, transparent, var(--rn-gold), transparent); }
#rn-summary-body p { font-size: 16.5px; }
.rn-disclaimer { font-size: 13px; color: var(--rn-muted); margin: 18px 0 0 !important; padding-top: 14px; border-top: 1px solid var(--rn-line-soft); }

.rn-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0 8px; }
.rn-share { max-width: 620px; margin: 10px auto 0; }
.rn-share__row { display: flex; gap: 8px; margin-top: 6px; }

.rn-consult { text-align: center; margin: 32px auto 0; max-width: 760px; padding: clamp(24px, 4vw, 40px); border-radius: 18px; border: 1px solid var(--rn-line); background: radial-gradient(600px 220px at 50% 0, rgba(201, 169, 97, .12), transparent 70%), rgba(10, 9, 14, .5); }
.rn-consult__ornament { color: var(--rn-gold); font-size: 20px; }
.rn-consult .rn-h3 { margin-top: 6px; font-size: clamp(24px, 3.2vw, 30px); }
.rn-consult p { color: var(--rn-muted); max-width: 560px; margin: 0 auto 22px; }

/* ---------- Книга ответов ---------- */
.rn-book { position: relative; width: 180px; height: 240px; margin: 6px auto 28px; perspective: 1200px; }
.rn-book__cover, .rn-book__page { position: absolute; inset: 0; border-radius: 4px 12px 12px 4px; transform-origin: 0 50%; }
.rn-book__page { background: linear-gradient(90deg, #d9cba8, #f1e6cb 12%, #efe3c4); box-shadow: inset 4px 0 8px rgba(0, 0, 0, .18); }
.rn-book__page--2 { transform: translateX(2px); }
.rn-book__page--3 { transform: translateX(4px); }
.rn-book__cover {
  z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #3a2030, #1d1426 60%, #2a1b20); border: 1px solid var(--rn-gold);
  box-shadow: 0 24px 50px -16px #000, inset 0 0 0 7px rgba(201, 169, 97, .25), 0 0 40px -10px rgba(201, 169, 97, .5);
  transition: transform 1.1s var(--rn-ease);
}
.rn-book__cover span { color: var(--rn-gold); font-size: 30px; }
.rn-book__cover b { font-family: var(--rn-serif); font-size: 26px; line-height: 1.05; text-align: center; color: var(--rn-gold-hi); font-weight: 600; }
.rn-book__cover { transform-style: preserve-3d; }
.rn-book__cover > * { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.rn-book.is-opening .rn-book__cover, .rn-book.is-open .rn-book__cover { transform: rotateY(-160deg); }
/* открытая книга сдвигается вправо, чтобы разворот был по центру */
.rn-book { left: 0; transition: left 1.1s var(--rn-ease); }
.rn-book.is-opening, .rn-book.is-open { left: 90px; }
@media (max-width: 760px) {
  .rn-book { width: 130px; height: 175px; }
  .rn-book.is-opening, .rn-book.is-open { left: 65px; }
  .rn-book__cover b { font-size: 20px; }
}
.rn-book.is-opening .rn-book__page--1 { animation: rn-page 1.1s var(--rn-ease) .35s 1; z-index: 4; }
.rn-book.is-opening .rn-book__page--2 { animation: rn-page 1s var(--rn-ease) .55s 1; z-index: 3; }
@keyframes rn-page { from { transform: rotateY(0); } to { transform: rotateY(-150deg); opacity: .4; } }
.rn-book.is-opening { animation: rn-float 1.6s ease-in-out; }
@keyframes rn-float { 50% { transform: translateY(-6px); } }

.rn-book-setup { max-width: 560px; margin: 0 auto; display: grid; gap: 12px; text-align: center; }
.rn-book-lead { color: var(--rn-text-2); margin: 0 !important; }
.rn-book-setup .rn-btn { justify-self: center; }

.rn-answer { max-width: 680px; margin: 0 auto; text-align: center; animation: rn-rise .8s var(--rn-ease) both; }
.rn-answer__question { color: var(--rn-muted); font-style: italic; font-family: var(--rn-serif); font-size: 19px; }
.rn-answer__type { display: inline-block; margin: 0 0 10px !important; padding: 4px 16px; border-radius: 999px; border: 1px solid var(--rn-line); color: var(--rn-gold-hi); font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; }
.rn-answer__type[data-type="no"] { border-color: rgba(170, 140, 220, .45); color: #cdb8f0; }
.rn-answer__text { font-family: var(--rn-serif); font-weight: 600; font-size: clamp(36px, 6vw, 56px); line-height: 1.08; margin: 0 0 12px; color: var(--rn-gold-hi); outline: none; text-wrap: balance; text-shadow: 0 0 30px rgba(230, 200, 130, .25); }
.rn-answer__note { font-size: 18px; color: var(--rn-text-2); }

/* ---------- Информация ---------- */
.rn-info__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); margin-bottom: 14px; }
.rn-info p { color: var(--rn-text-2); }
.rn-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.rn-steps li { counter-increment: s; position: relative; padding: 0 0 14px 44px; color: var(--rn-text-2); }
.rn-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--rn-line); border-radius: 50%; font-family: var(--rn-serif); color: var(--rn-gold); font-size: 17px; font-variant-numeric: lining-nums; }
.rn-steps b { color: var(--rn-text); }

.rn-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1100; padding: 12px 20px; border-radius: 999px; background: #1d1729; border: 1px solid var(--rn-gold); color: var(--rn-gold-hi); font-size: 14.5px; box-shadow: 0 20px 50px -10px #000; max-width: calc(100vw - 32px); text-align: center; }

@keyframes rn-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Адаптив ---------- */
@media (max-width: 760px) {
  .rn-hero__emblem { width: 200px; height: 100px; }
  .rn-spreads, .rn-info__grid { grid-template-columns: 1fr; }
  .rn-setup__footer { flex-direction: column; align-items: stretch; }
  .rn-setup__footer .rn-btn { width: 100%; }
  .rn-tab { padding: 10px 16px; font-size: 14.5px; }
  .rn-bag { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 8px; }
  .rn-reading { grid-template-columns: 1fr; }
  .rn-reading__stone { width: 110px; margin: 0 auto; }
  .rn-actions .rn-btn { flex: 1 1 calc(50% - 10px); }
  .rn-actions .rn-btn--primary { flex-basis: 100%; }
  .rn-slot__label { font-size: 14px; }
}
@media (max-width: 420px) { .rn-share__row { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) {
  .runes-app *, .runes-app *::before, .runes-app *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Печать (расклад рун) ---------- */
@media print {
  @page { margin: 14mm; }
  .runes-page, .runes-app { background: #fff !important; }
  .runes-app { color: #111 !important; padding: 0 !important; overflow: visible; }
  .runes-app .rn-sky, .runes-app .rn-tabs, .runes-app .rn-setup, .runes-app .rn-table, .runes-app .rn-actions, .runes-app .rn-share,
  .runes-app .rn-consult, .runes-app .rn-info, .runes-app .rn-notice, .runes-app .rn-hero__emblem, .runes-app .rn-hero__lead,
  .runes-app #rn-mode-book, .runes-app .rn-toast { display: none !important; }
  .runes-app .rn-panel { border: 0; box-shadow: none; background: none; padding: 0; }
  .runes-app .rn-panel::before { display: none; }
  .runes-app .rn-hero__title { background: none; color: #222 !important; -webkit-text-fill-color: #222; font-size: 26pt; }
  .runes-app .rn-h2, .runes-app .rn-h3, .runes-app .rn-reading__title, .runes-app .rn-frame, .runes-app .rn-pos { color: #5a4413 !important; }
  .runes-app p, .runes-app li { color: #222 !important; }
  .runes-app .rn-reading, .runes-app .rn-summary { background: none; border: 1px solid #ccc; break-inside: avoid; animation: none; }
  .runes-app .rn-reading { grid-template-columns: 26mm 1fr !important; }
  .runes-app .rn-kw li, .runes-app .rn-badge { background: none; border: 1px solid #bbb; color: #333 !important; }
}
