.td-hero { background: radial-gradient(ellipse at 75% 24%,#44254d 0%,transparent 52%),#17111f; border-block-end:1px solid #493454; }
.td-layout { display:grid; grid-template-columns: .9fr 1fr; gap:clamp(1.25rem,5vw,5rem); align-items:start; padding-block:clamp(2rem,6vw,5.5rem); }
.td-intro h1,.td-catalog h1 { font-family: Georgia,serif; font-size:clamp(2.7rem,6vw,6rem); line-height:1.02; letter-spacing:-.055em; margin:.4rem 0 1rem; }
.td-intro p,.td-catalog > p { max-width:37rem; color:#e7d7eb; font-size:1.12rem; }
.td-intro { align-self:center; }
.td-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.75rem; }
.td-action { display:inline-flex; min-height:48px; align-items:center; justify-content:center; padding:.65rem 1rem; border:1px solid #f6be69; border-radius:.6rem; background:#ffce82; color:#23152a; font:inherit; font-weight:750; text-decoration:none; text-align:center; cursor:pointer; }
.td-action:hover { background:#ffe2ae; }
.td-action--quiet { color:#fff3e8; background:transparent; border-color:#9b77a6; }
.td-action--quiet:hover { background:#3f294a; }
.td-action:focus-visible,.td-card:focus-visible { outline:3px solid #fff4cf; outline-offset:4px; }
.td-board { background:#22162d; border:1px solid #6b4979; border-radius:1.3rem; padding:clamp(.75rem,3vw,1.65rem); box-shadow:0 20px 65px #0d081f70; }
.td-board h2 { margin:0; font-family:Georgia,serif; font-size:clamp(1.35rem,3vw,2rem); }
.td-status { color:#e6d3e9; margin:.4rem 0 1rem; }
.td-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(.4rem,2vw,1rem); }
.td-card { display:grid; grid-template-rows:auto 1fr; gap:.45rem; padding:0; background:none; color:#f6e6f5; border:0; text-align:center; font:inherit; font-weight:700; cursor:pointer; }
.td-card[aria-disabled=true] { cursor:default; }
.td-face { display:grid; place-items:center; width:100%; aspect-ratio:5/8; overflow:hidden; border:1px solid #dcaa66; border-radius:.55rem; color:#ffda98; background:repeating-linear-gradient(45deg,#402552 0 8px,#322042 8px 16px); font-size:clamp(1.25rem,4vw,2.5rem); }
.td-card:hover:not([aria-disabled=true]) .td-face { box-shadow:0 0 0 2px #f6c580; }
.td-face img { width:100%; height:100%; object-fit:contain; background:#22162d; animation:td-reveal .25s ease-out both; }
@keyframes td-reveal { from { opacity:.25; transform:scale(.92) } to { opacity:1; transform:none } }
.td-caption { font-size:.9rem; line-height:1.3; }
.td-result,.td-meaning { margin:1rem 0 0; }
.td-meaning { padding:.8rem 1rem; background:#302039; border-radius:.6rem; }
.td-meaning p { margin:.3rem 0; }
.td-board [hidden] { display:none !important; }
.td-catalog .readings { gap:1.2rem; margin-block:1.25rem; }
.td-catalog .readings article { display:flex; flex-direction:column; }
.td-catalog .readings article > p:last-child { margin-top:auto; padding-top:.75rem; }
.td-catalog .td-action { width:100%; }
.td-catalog .td-featured { border-color:#b98358; background:#38223d; }
@media(max-width:760px) { .td-layout { grid-template-columns:1fr; } .td-intro p { margin:.5rem 0 1rem; } }
@media(max-width:440px) { .td-intro .td-action { flex:1 0 100%; } }
@media(prefers-reduced-motion:reduce) { .td-face img { animation:none; } }

.td-board-head { display:flex; flex-wrap:wrap; align-items:center; gap:.65rem; justify-content:space-between; }
.td-audio { padding:.35rem .7rem; font-size:.9rem; }
.td-progress { display:block; width:100%; height:.45rem; margin:0 0 .9rem; accent-color:#ffce82; }
.td-status { min-height:3em; }
.td-face { position:relative; display:block; overflow:visible; border:0; background:none; perspective:650px; border-radius:.55rem; }
.td-back,.td-front { position:absolute; inset:0; display:grid; place-items:center; border:1px solid #dcaa66; border-radius:inherit; overflow:hidden; backface-visibility:hidden; transition:transform .42s cubic-bezier(.2,.65,.3,1); }
.td-back { background:radial-gradient(ellipse at center,#553267 0 25%,transparent 55%),repeating-linear-gradient(45deg,#402552 0 8px,#322042 8px 16px); }
.td-front { background:#22162d; transform:rotateY(-180deg); }
.td-card[data-open] .td-back { transform:rotateY(180deg); }
.td-card[data-open] .td-front { transform:rotateY(0); }
.td-face img { animation:none; }
.td-card:active:not([data-open]) { transform:translateY(2px); }
.td-card:hover:not([aria-disabled=true]) .td-face { box-shadow:none; }
.td-card:hover:not([aria-disabled=true]) .td-back { box-shadow:0 0 0 2px #f6c580; }
.td-meaning,.td-result { animation:td-text-in .32s ease-out both; }
.td-card { animation:td-deal .38s ease-out both; }
.td-card:nth-child(2) { animation-delay:.055s; }
.td-card:nth-child(3) { animation-delay:.11s; }
@keyframes td-deal { from { opacity:0; translate:0 .5rem; } to { opacity:1; translate:none; } }
@keyframes td-text-in { from { opacity:0; translate:0 .45rem; } to { opacity:1; translate:none; } }
.td-result { padding:1rem; border:1px solid #a27155; border-radius:.7rem; background:#3b2641; }
.td-result h3 { margin:0; }
.td-result p { margin:.65rem 0; max-width:60ch; }
.td-catalog .readings article { transition:border-color .2s, background-color .2s; }
.td-catalog .readings article:focus-within { border-color:#e2b479; }
@media(hover:hover) { .td-catalog .readings article:hover { border-color:#ac826c; } }
@media(max-width:520px) { .td-result .td-actions > * { width:100%; } }
@media(prefers-reduced-motion:reduce) {
  .td-back,.td-front,.td-catalog .readings article { transition:none; }
  .td-card,.td-meaning,.td-result { animation:none; }
  .td-card:active:not([data-open]) { transform:none; }
}

.td-intro .td-audio { margin-bottom:.8rem; }
.td-intro [hidden] { display:none !important; }
.td-question-field { margin:1rem 0; }
.td-question-field label { display:block; margin:0 0 .35rem; font-weight:750; }
.td-question-field textarea { display:block; width:100%; max-width:100%; min-height:64px; resize:vertical; border:1px solid #947296; border-radius:.6rem; padding:.65rem .8rem; background:#160e21; color:#fff5ed; font:inherit; }
.td-question-field textarea::placeholder { color:#cbb8cd; }
.td-question-field textarea:focus-visible { outline:2px solid #ffce82; outline-offset:2px; }
.td-question-field p { margin:.35rem 0 0; font-size:.88rem; color:#e5cfe9; }
.td-asked { padding:.65rem .8rem; border-left:3px solid #ffce82; overflow-wrap:anywhere; }
.td-asked strong { display:block; margin-top:.15rem; }
.td-copy-status:empty { display:none; }
.td-hero { position:relative; isolation:isolate; }
.td-hero::before { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; background:radial-gradient(ellipse at 78% 38%,#8a4c844d 0%,transparent 54%); animation:td-aura 8s ease-in-out infinite alternate; }
.td-board { animation:td-border-light 7s ease-in-out infinite alternate; }
.td-telegram { position:relative; transition:box-shadow .25s,background-color .2s; box-shadow:0 0 22px #e5a75942; }
.td-telegram:hover,.td-telegram:focus-visible { box-shadow:0 0 30px #e5a75986; }
.td-result .td-action:first-child { box-shadow:0 0 22px #e5a75942; }
@keyframes td-aura { from { opacity:.35; } to { opacity:.9; } }
@keyframes td-border-light { from { box-shadow:0 20px 65px #0d081f70; } to { box-shadow:0 20px 65px #0d081f70,0 0 35px #a662a83d; } }
@media(prefers-reduced-motion:reduce) { .td-hero::before,.td-board { animation:none; } .td-telegram { transition:none; } }

.td-deal { margin-top:.8rem; }
.td-question-field .td-error { color:#ffd2cf; }
.td-play .td-status { min-height:0; }
.td-play .td-card { animation:td-slide-out .48s cubic-bezier(.17,.78,.32,1) both; }
.td-play .td-card:nth-child(2) { animation-delay:.11s; }
.td-play .td-card:nth-child(3) { animation-delay:.22s; }
@keyframes td-slide-out { from { opacity:0; translate:0 2.25rem; } to { opacity:1; translate:none; } }
.td-day > .td-card { width:min(170px,60%); margin-inline:auto; }
.td-day .td-copy { margin:.5rem 0; }
@media(prefers-reduced-motion:reduce) { .td-play .td-card { animation:none; } }
