/* «Моя практика», ритуал «Вечер / Утро», игра «Найди знак сна», трекер «30 ночей». Грузится только на этих страницах. */
.pr-sec { margin: 34px 0 0; }
.pr-sec h2 { font-size: 1.35rem; margin-bottom: .5em; }
.pr-sec h2 small { font: 700 .9rem/1 var(--ui); color: var(--muted); margin-left: 6px; }
.pr-note { color: var(--muted); font: 500 .95rem/1.5 var(--ui); }

.pr-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; font-family: var(--ui); }
@media (min-width: 700px) { .pr-tiles { grid-template-columns: repeat(4, 1fr); } }
.pr-tile { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 132px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); color: var(--text); text-decoration: none; transition: border-color .15s; }
a.pr-tile:hover { border-color: var(--gold); color: var(--text); }
.pr-tile i { font-style: normal; font-size: 1.3rem; line-height: 1; }
.pr-tile b { font: 800 2rem/1.05 var(--head); margin-top: 4px; }
.pr-tile b.pr-tile__word { font-size: 1.15rem; line-height: 1.2; }
.pr-tile span { font: 600 .82rem/1.35 var(--ui); color: var(--muted); }
.pr-tile--fire { background: linear-gradient(135deg, rgba(232, 200, 114, .18), rgba(75, 46, 131, .3)); border-color: var(--line); }
:root[data-theme="light"] .pr-tile--fire { background: #f6ecd2; }
.pr-plus { margin-top: auto; min-height: 44px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--gold); background: transparent; color: var(--text); font: 700 .82rem/1.2 var(--ui); cursor: pointer; transition: transform .15s, background-color .15s; }
.pr-plus:hover, .pr-plus.is-pop { background: var(--gold); color: var(--btn-text); }
.pr-plus.is-pop { transform: scale(1.06); }

.pr-days { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 0; margin: 0 0 10px; font-family: var(--ui); }
.pr-days li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 2px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); min-height: 74px; }
.pr-days li span { font: 700 .72rem/1 var(--ui); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pr-days li i { font-style: normal; font-size: 1.2rem; line-height: 1.2; color: var(--lav); min-height: 1.2em; }
.pr-days li.is-on { border-color: var(--gold); background: rgba(232, 200, 114, .12); }
.pr-days li.is-on i { color: var(--gold); }
:root[data-theme="light"] .pr-days li.is-on i { color: #b07f12; }

.pr-ach { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; font-family: var(--ui); }
@media (min-width: 640px) { .pr-ach { grid-template-columns: repeat(3, 1fr); } }
.pr-ach__item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 12px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); text-align: center; }
.pr-ach__item .pr-badge { width: 76px; height: 76px; filter: grayscale(1) brightness(.75); opacity: .55; transition: filter .3s, opacity .3s; }
.pr-ach__item.is-got { border-color: var(--line); }
.pr-ach__item.is-got .pr-badge { filter: none; opacity: 1; }
.pr-ach__item b { font: 700 1rem/1.25 var(--head); margin-top: 4px; }
.pr-ach__how { font-size: .82rem; line-height: 1.4; color: var(--muted); }
.pr-ach__got { font: 700 .75rem/1 var(--ui); color: var(--teal); padding: 5px 10px; border-radius: 999px; background: rgba(79, 209, 197, .14); }
:root[data-theme="light"] .pr-ach__got { color: #1d6f68; }
.pr-ach__share { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 4px; }
.pr-ach__share .share__btn { min-height: 44px; font-size: .78rem; padding: 3px 10px 3px 5px; }
.pr-ach__share .share__btn:not(.share__btn--vk) { padding-left: 10px; }

.pr-fav { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; font-family: var(--ui); }
.pr-fav li { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); }
.pr-fav a { flex: 1; font-weight: 700; text-decoration: none; padding: 6px 0; }
.pr-fav a::before { content: "★ "; color: var(--gold); }
.pr-fav button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 1.4rem; cursor: pointer; }
.pr-fav button:hover { color: var(--text); background: var(--line-2); }

.pr-import { padding: 22px; border-radius: var(--radius); border: 1px dashed var(--line); font-family: var(--ui); }
.pr-import h2 { margin-top: 0; }
.pr-import p, .pr-import li { font-size: 1rem; line-height: 1.5; }
.pr-import ol { padding-left: 1.3em; margin: 0 0 16px; }
.pr-import li { margin: 6px 0; }
.pr-import .diary__msg { margin-top: 12px; }

/* ритуал «Вечер / Утро» */
.rt-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px; margin: 0 0 22px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); }
.rt-tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border: 0; border-radius: 999px; background: transparent; color: var(--text); font: 700 1.05rem/1 var(--ui); cursor: pointer; }
.rt-tab img { width: 30px; height: 30px; border-radius: 50%; }
.rt-tab.is-on { background: var(--gold); color: var(--btn-text); }
.rt-steps { list-style: none; counter-reset: rt; padding: 0; margin: 0; display: grid; gap: 14px; }
.rt-step { counter-increment: rt; position: relative; padding: 20px 20px 20px 62px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-2); font-family: var(--ui); }
.rt-step::before { content: counter(rt); position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--btn-text); font: 800 .95rem/1 var(--ui); }
.rt-step h2 { font-size: 1.15rem; margin: 2px 0 6px; }
.rt-step p { font-size: .98rem; line-height: 1.5; color: var(--muted); margin-bottom: 10px; }
.rt-step p a { font-weight: 700; }
.ritual textarea, .ritual input[type="text"] { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(11, 14, 32, .45); color: var(--text); font: 400 1.05rem/1.5 var(--body); }
:root[data-theme="light"] .ritual textarea, :root[data-theme="light"] .ritual input[type="text"] { background: #fbf8f2; }
:root[data-theme="night"] .ritual textarea, :root[data-theme="night"] .ritual input[type="text"] { background: rgba(18, 7, 5, .6); }
.rt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rt-chips .chip { min-height: 44px; text-align: left; font-size: .82rem; line-height: 1.25; }
.rt-signs { margin: 0; padding-left: 1.2em; font: 600 1rem/1.5 var(--ui); }
.rt-signs li { margin: 4px 0; }
.rt-signs li::marker { color: var(--gold); }
.rt-switch { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; font: 600 .95rem/1.35 var(--ui); cursor: pointer; }
.rt-switch input { width: 20px; height: 20px; accent-color: var(--gold); flex: none; }
.rt-done { text-align: center; margin: 22px 0 8px; }
.rt-done .btn { min-width: 260px; }
.rt-msg { margin: 12px 0 0; min-height: 1.4em; font: 600 1rem/1.5 var(--ui); color: var(--teal); }
:root[data-theme="light"] .rt-msg { color: #1d7f77; }
.rt-yday { padding: 14px 18px; border-radius: 14px; border-left: 3px solid var(--gold); background: var(--surface); font: 600 1rem/1.5 var(--ui); }
.rt-form { display: grid; gap: 10px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-family: var(--ui); margin-bottom: 14px; }
.rt-form label { font-size: .95rem; line-height: 1.4; }
.rt-form label small { color: var(--muted); }
.rt-form .btns { margin-top: 6px; }
.rt-signs a { color: var(--text); text-decoration: none; border-bottom: 1px dotted var(--lav); }
.rt-signs a:hover { color: var(--gold); }
.rt-signs { font-weight: 500; }

/* трекер «30 ночей» */
.n30 { margin: 8px auto 34px; font-family: var(--ui); }
.n30__head h2 { margin-bottom: .3em; }
.n30__sum { font: 700 1rem/1.45 var(--ui); margin: 0 0 10px; }
.n30__bar { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; margin-bottom: 18px; }
.n30__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--gold)); border-radius: inherit; transition: width .3s; }
.n30__now { padding: 22px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(232, 200, 114, .14), rgba(75, 46, 131, .35)); border: 1px solid var(--line); margin-bottom: 18px; }
:root[data-theme="light"] .n30__now { background: #f6ecd2; }
:root[data-theme="night"] .n30__now { background: linear-gradient(135deg, rgba(227, 164, 98, .1), rgba(110, 38, 18, .35)); }
.n30__now .kicker { margin-bottom: 6px; }
.n30__now b { display: block; font: 800 1.3rem/1.25 var(--head); margin-bottom: 6px; }
.n30__now p:not(.kicker) { color: var(--muted); font: 500 1rem/1.5 var(--ui); margin-bottom: 14px; }
.n30__week { border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); margin-bottom: 10px; }
.n30__week summary { cursor: pointer; padding: 14px 18px; font: 700 1rem/1.3 var(--ui); display: flex; justify-content: space-between; gap: 10px; }
.n30__wn { color: var(--muted); font-weight: 600; font-size: .88rem; white-space: nowrap; }
.n30__week ol { list-style: none; margin: 0; padding: 0 12px 10px; }
.n30__item { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; padding: 10px 6px; border-top: 1px solid var(--line-2); }
.n30__item b { font: 700 1rem/1.3 var(--ui); }
.n30__item p { margin: 3px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.n30__chk { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; color: var(--text); font: 800 .95rem/1 var(--ui); cursor: pointer; }
.n30__chk:hover { border-color: var(--gold); }
.n30__item.is-done .n30__chk { background: var(--gold); border-color: var(--gold); color: var(--btn-text); }
.n30__item.is-done b { color: var(--muted); }
.n30__bots { margin-top: 18px; padding: 20px; border-radius: var(--radius); border: 1px dashed var(--line); }
.n30__bots p { color: var(--muted); font-size: .98rem; line-height: 1.5; }
.pr-tile--wide { grid-column: 1 / -1; min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.pr-tile--wide b { margin: 0; }

/* игра «Найди знак сна» */
.gm { margin: 4px auto 30px; font-family: var(--ui); }
.gm__levels { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: thin; }
.gm__levels .chip { flex: none; white-space: nowrap; }
.gm__lst { color: var(--gold); letter-spacing: .05em; }
.gm__levels .chip.is-on .gm__lst { color: var(--btn-text); }
.gm__demo { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px dashed var(--line); color: var(--muted); font: 500 .9rem/1.45 var(--ui); }
.gm__hud { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.gm__found { font: 800 1.05rem/1.2 var(--ui); }
.gm__time { margin-left: auto; font: 800 1.05rem/1.2 var(--ui); font-variant-numeric: tabular-nums; color: var(--gold); min-width: 3.5em; text-align: right; }
.gm__time.is-low { color: #f08a6a; }
:root[data-theme="light"] .gm__time { color: #7a5c0a; }
:root[data-theme="light"] .gm__time.is-low { color: #b23c17; }
.gm__hud .chip:disabled { opacity: .5; cursor: default; }
.gm__bar { height: 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; margin-bottom: 10px; }
.gm__bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); border-radius: inherit; }
.gm__stage { position: relative; width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--bg2); cursor: crosshair; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
@media (max-width: 699px) { .gm__stage { border-radius: 12px; } }
.gm__stage img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.gm__marks { position: absolute; inset: 0; pointer-events: none; }
.gm__ring { position: absolute; border-radius: 50%; border: 3px solid var(--gold); box-shadow: 0 0 0 3px rgba(11, 14, 32, .55), 0 0 18px rgba(232, 200, 114, .7); animation: gm-pop .35s ease-out; }
.gm__ring.is-missed { border-color: var(--teal); border-style: dashed; box-shadow: 0 0 0 3px rgba(11, 14, 32, .5); }
.gm__ring.is-hint { border-color: rgba(243, 239, 230, .8); border-style: dashed; animation: gm-pulse 1.2s ease-in-out infinite; }
.gm__miss { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 2px solid rgba(243, 239, 230, .7); animation: gm-miss .7s ease-out forwards; }
@keyframes gm-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes gm-pulse { 50% { opacity: .35; } }
@keyframes gm-miss { to { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .gm__ring, .gm__ring.is-hint, .gm__miss { animation: none; } }
.gm__cover { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(11, 14, 32, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
:root[data-theme="night"] .gm__cover { background: rgba(18, 7, 5, .6); }
.gm__card { max-width: 380px; text-align: center; padding: 20px 22px; border-radius: 18px; background: rgba(11, 14, 32, .82); border: 1px solid var(--line); color: #f3efe6; }
:root[data-theme="night"] .gm__card { background: rgba(28, 11, 7, .9); color: var(--text); }
.gm__card b { display: block; font: 800 1.2rem/1.25 var(--head); margin-bottom: 6px; }
.gm__card p { font-size: .92rem; color: #ddd6ea; margin-bottom: 14px; }
:root[data-theme="night"] .gm__card p { color: var(--muted); }
@media (max-width: 480px) { .gm__card { padding: 14px 16px; } .gm__card p { margin-bottom: 10px; } .gm__card .btn--lg { min-height: 46px; padding: 10px 20px; } }
.gm__info { min-height: 3.2em; margin: 12px 0 0; }
.gm__found-card { padding: 14px 18px; border-radius: 14px; background: rgba(79, 209, 197, .08); border: 1px solid rgba(79, 209, 197, .35); }
:root[data-theme="night"] .gm__found-card { background: rgba(217, 138, 92, .08); border-color: rgba(217, 138, 92, .3); }
.gm__found-card b { display: block; color: var(--teal); margin-bottom: 4px; }
:root[data-theme="light"] .gm__found-card b { color: #1d7f77; }
.gm__found-card p { margin: 0 0 6px; color: var(--text); font-size: .95rem; line-height: 1.5; }
.gm__found-card a { font-weight: 700; font-size: .92rem; }
.gm__result { margin-top: 14px; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--gold); }
.gm__result b { display: block; font: 800 1.2rem/1.3 var(--head); margin-bottom: 6px; }
.gm__result p { color: var(--muted); font-size: .98rem; }
.gm__result .gm__stars { font-size: 2.2rem; line-height: 1; letter-spacing: .1em; color: var(--gold) !important; margin: 0 0 8px; }
.gm__stars span { color: var(--lav); }
.gm__share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.gm__share > span { font: 700 .8rem/1.3 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gm__next { margin-top: 14px; color: var(--muted); font-size: .95rem; }
.gm__stage { width: min(100%, calc(74vh * var(--r, 1.6))); margin: 0 auto; }
