/* Стили оформления «dogshow» — ktodarit.ru. Общие — /t/core.css. */
.th-dogshow .tt { --tt-l: 2; }
.th-dogshow .ph:has(.gift-img) { display: block; overflow: hidden; }
.th-dogshow .cat { container-type: inline-size; }

.th-dogshow { --navy: #13224a; --gold: #c9a03c; --red: #b3202a; --cream: #fbf6ea; color: var(--navy); font-family: "Manrope", sans-serif; background: var(--cream); }

/* ---------- зал ---------- */
.th-dogshow .hero { position: relative; overflow: hidden; padding: 70px 0 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(201, 160, 60, .25), transparent 60%), repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 90px), linear-gradient(#0d1834, #1b2d5c 70%, #24396f); color: var(--cream); }
.th-dogshow .lamps i { position: absolute; top: -20px; width: 300px; height: 120%; translate: -50% 0; transform-origin: 50% 0; pointer-events: none; mix-blend-mode: screen;
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); background: linear-gradient(rgba(255, 236, 180, .38), transparent 75%); filter: blur(4px); animation: ds-lamp 7s ease-in-out infinite alternate; }
.th-dogshow .lamps i:nth-child(1) { left: 18%; rotate: 10deg; }
.th-dogshow .lamps i:nth-child(2) { left: 50%; animation-delay: -3s; }
.th-dogshow .lamps i:nth-child(3) { left: 82%; rotate: -10deg; animation-delay: -5s; }
@keyframes ds-lamp { from { opacity: .55; } to { opacity: 1; } }
.th-dogshow .garland { position: absolute; top: 0; left: 0; right: 0; height: 60px; display: flex; justify-content: space-around; pointer-events: none; }
.th-dogshow .garland i { width: 30px; height: 38px; margin-top: calc(6px + 14px * sin(var(--i) * 20deg)); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: 50% 0; animation: ds-wave 2.6s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.25s); }
.th-dogshow .garland i:nth-child(3n + 1) { background: var(--red); }
.th-dogshow .garland i:nth-child(3n + 2) { background: var(--cream); }
.th-dogshow .garland i:nth-child(3n) { background: var(--gold); }
@keyframes ds-wave { from { rotate: -7deg; } to { rotate: 7deg; } }
.th-dogshow .in { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 34px; align-items: center; }
.th-dogshow .pre { margin: 0; font: 700 13px "Manrope", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.th-dogshow .nm { display: inline-block; margin: 16px 0 0; padding: 5px 14px 6px; border: 2px solid var(--gold); border-radius: 4px; font: 400 15px "Russo One", sans-serif; letter-spacing: .1em; color: var(--cream); }
.th-dogshow h1 { margin: 10px 0 0; font: italic 700 min(calc(clamp(46px, 7.4vw, 104px) * max(var(--k, 1), .7)), calc(100cqi / var(--w, 1) / .68))/1.05 "Playfair Display", serif; overflow-wrap: anywhere; position: relative;
  background: linear-gradient(100deg, #f7e3a1 10%, #fff8dc 30%, #c9a03c 55%, #f7e3a1 80%) 0 0 / 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ds-gl 6s linear infinite; }
@keyframes ds-gl { to { background-position: -220% 0; } }
.th-dogshow .facts { margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.th-dogshow .facts div { margin: 0; }
.th-dogshow .facts dt { font: 700 11px "Manrope", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #9fb0d8; }
.th-dogshow .facts dd { margin: 3px 0 0; font: italic 600 19px "Playfair Display", serif; color: var(--cream); }
.th-dogshow .greet { position: relative; max-width: 560px; margin: 20px 0 0; font-size: 17px; line-height: 1.6; color: #dfe5f5; white-space: pre-line; overflow-wrap: anywhere; }
/* табличка с отсчётом */
.th-dogshow .plac { position: relative; padding: 22px 20px 18px; text-align: center; color: var(--navy); background: var(--cream); border-radius: 6px; box-shadow: 0 0 0 4px var(--gold), 0 0 0 8px var(--cream), 0 24px 40px rgba(0, 0, 0, .45); }
.th-dogshow .plac::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--gold); border-radius: 3px; pointer-events: none; }
.th-dogshow .pt { margin: 0; font: italic 700 22px "Playfair Display", serif; color: var(--red); }
.th-dogshow .cd { margin: 12px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.th-dogshow .cd p { margin: 0; display: flex; flex-direction: column; align-items: center; }
.th-dogshow .cd b { font: 700 clamp(28px, 3.4vw, 42px)/1 "Playfair Display", serif; color: var(--navy); }
.th-dogshow .cd small { margin-top: 4px; font: 700 10.5px "Manrope", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #7a7f93; }
.th-dogshow .pb { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed #c9bfa4; font: 700 14px "Manrope", sans-serif; }

/* ---------- ринг ---------- */
.th-dogshow .ring-w { position: relative; z-index: 1; margin-top: 30px; overflow: hidden; container-type: inline-size; background: linear-gradient(transparent 62%, #2a6e3f 62%, #3f9457); }
.th-dogshow .ring { position: relative; width: min(max(100%, 760px), 1900px); margin-left: 50%; translate: -50% 0; aspect-ratio: 1200 / 380; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.th-dogshow .ring:focus-visible { box-shadow: inset 0 0 0 4px var(--gold); }
.th-dogshow .scene { display: block; width: 100%; height: 100%; overflow: visible; }
.th-dogshow .team { animation: ds-walk 18s linear infinite; }
@keyframes ds-walk { 0% { transform: translate(130px, 352px) scale(1, 1); } 46% { transform: translate(900px, 352px) scale(1, 1); } 50% { transform: translate(1060px, 352px) scale(-1, 1); }
  96% { transform: translate(290px, 352px) scale(-1, 1); } 100% { transform: translate(130px, 352px) scale(1, 1); } }
.th-dogshow .dog .leg, .th-dogshow .hleg { transform-box: fill-box; transform-origin: 50% 8%; animation: ds-trot .36s ease-in-out infinite alternate; }
.th-dogshow .dog .leg.near.lf, .th-dogshow .dog .leg.far.lb, .th-dogshow .hleg.hr { animation-direction: alternate-reverse; }
@keyframes ds-trot { from { rotate: 22deg; } to { rotate: -22deg; } }
.th-dogshow .hleg { animation-duration: .72s; }
.th-dogshow .dog .bod, .th-dogshow .hnd { animation: ds-bob .18s ease-in-out infinite alternate; }
.th-dogshow .hnd { animation-duration: .36s; }
@keyframes ds-bob { to { translate: 0 -2.5px; } }
.th-dogshow .dog .tail { transform-box: fill-box; transform-origin: 100% 100%; animation: ds-wag .3s ease-in-out infinite alternate; }
@keyframes ds-wag { from { rotate: -10deg; } to { rotate: 12deg; } }
.th-dogshow .cup .shine { animation: ds-shine 2.4s ease-in-out infinite; }
@keyframes ds-shine { 0%, 70%, 100% { opacity: .2; } 80% { opacity: 1; } }
.th-dogshow .cup { filter: drop-shadow(0 0 10px rgba(255, 220, 120, .55)); }
.th-dogshow .judges .card { transform-box: fill-box; transform-origin: 50% 100%; translate: 0 30px; opacity: 0; transition: translate .35s cubic-bezier(.4, 1.8, .6, 1), opacity .2s; transition-delay: calc(var(--n) * .12s); }
.th-dogshow .score .judges .card { translate: 0 0; opacity: 1; }
.th-dogshow .fl { opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; animation: ds-flash 9s ease-out infinite; animation-delay: calc(var(--i) * 1.6s); }
@keyframes ds-flash { 0%, 92%, 100% { opacity: 0; scale: .4; } 94% { opacity: 1; scale: 1.2; } 97% { opacity: 0; scale: 1; } }
.th-dogshow .flash .fl { animation: ds-flash2 .5s ease-out 3; animation-delay: calc(var(--i) * .07s); }
@keyframes ds-flash2 { 0%, 100% { opacity: 0; scale: .4; } 30% { opacity: 1; scale: 1.3; } }
.th-dogshow .bravo { font: italic 700 54px "Playfair Display", serif; fill: var(--gold); stroke: var(--navy); stroke-width: 2; paint-order: stroke; opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; }
.th-dogshow .score .bravo { animation: ds-bravo 2.4s ease-out; }
@keyframes ds-bravo { 0% { opacity: 0; scale: .4; } 15% { opacity: 1; scale: 1.15; } 30%, 75% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 1.2; } }
.th-dogshow .hint { position: absolute; left: 50%; bottom: 4px; margin: 0; translate: -50% 0; white-space: nowrap; font: 700 clamp(17px, 2vw, 24px) "Caveat", cursive; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); pointer-events: none; transition: opacity .6s; }
.th-dogshow .ring-w:has(.played) .hint { opacity: 0; }

/* ---------- номинации: дипломы ---------- */
.th-dogshow .sec { text-align: center; margin: 56px 0 10px; padding: 0 16px; font: italic 700 clamp(34px, 5vw, 56px) "Playfair Display", serif; color: var(--navy); }
.th-dogshow .sec::after { content: "❦"; display: block; margin-top: 4px; font-size: 24px; font-style: normal; color: var(--gold); }
.th-dogshow .sec-sub { text-align: center; max-width: 580px; margin: 0 auto 40px; padding: 0 20px; line-height: 1.5; color: #5a6380; }
.th-dogshow .list { max-width: 1120px; margin: 0 auto; padding: 14px 20px 70px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 40px 28px; }
.th-dogshow .dip { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 20px 20px; background: #fffdf6;
  box-shadow: 0 0 0 1px #e5dcc3, 0 14px 30px rgba(19, 34, 74, .14); border-radius: 4px; transition: transform .25s, box-shadow .25s; }
.th-dogshow .dip::before { content: ""; position: absolute; inset: 8px; border: 2px solid var(--gold); outline: 1px solid var(--gold); outline-offset: 3px; pointer-events: none; }
.th-dogshow .dip:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px #e5dcc3, 0 20px 36px rgba(19, 34, 74, .2); }
.th-dogshow .dh { margin: 0; font: italic 700 26px "Playfair Display", serif; color: var(--red); letter-spacing: .04em; }
.th-dogshow .dn { min-height: 2.6em; margin: 2px 0 12px; font: 600 13px/1.3 "Manrope", sans-serif; color: #6a6f84; }
.th-dogshow .dip .ph { position: relative; width: 100%; aspect-ratio: 4 / 3; display: grid; place-items: center; font-size: 60px; border-radius: 3px; background: radial-gradient(circle at 50% 40%, #fff, #f1ead6); box-shadow: inset 0 0 0 1px #e5dcc3; }
.th-dogshow .dip .ph > * { transition: filter .3s, opacity .3s; }
.th-dogshow .dip h3 { width: 100%; margin: 14px 0 0; font: 800 17px/1.3 "Manrope", sans-serif; color: var(--navy); overflow-wrap: anywhere; }
.th-dogshow .pr { margin: 6px 0 16px; font: italic 700 20px "Playfair Display", serif; color: #9a741a; }
.th-dogshow .btn { position: relative; margin-top: auto; cursor: pointer; border: 0; border-radius: 4px; padding: 12px 24px; background: var(--navy); color: var(--cream); font: 700 15px "Manrope", sans-serif; letter-spacing: .02em;
  box-shadow: inset 0 0 0 2px var(--gold); transition: background .2s, transform .2s; }
.th-dogshow .btn:hover:not(:disabled) { background: var(--red); transform: translateY(-2px); }
.th-dogshow .ros { position: absolute; top: 56px; right: -22px; width: 78px; rotate: 10deg; opacity: 0; scale: 0; pointer-events: none; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .3)); transition: scale .35s cubic-bezier(.5, 1.8, .6, 1), opacity .2s; }
.th-dogshow .taken .ros { opacity: 1; scale: 1; }
.th-dogshow .taken .ph > * { filter: grayscale(1); opacity: .6; }
.th-dogshow .taken .btn { padding-left: 16px; padding-right: 16px; white-space: nowrap; background: transparent; color: var(--navy); }
.th-dogshow .taken .btn:hover:not(:disabled) { background: var(--red); color: var(--cream); }
.th-dogshow footer:not(.ktd-foot) { text-align: center; padding: 10px 16px 50px; font: italic 700 18px "Playfair Display", serif; color: #5a6380; }

@media (max-width: 900px) {
  .th-dogshow .in { grid-template-columns: 1fr; }
  .th-dogshow .plac { max-width: 440px; }
}
@media (max-width: 640px) {
  .th-dogshow .hero { padding-top: 56px; }
  .th-dogshow .in { padding: 0 16px; gap: 26px; }
  .th-dogshow .pre { font-size: 11px; letter-spacing: .14em; }
  .th-dogshow .facts dd { font-size: 17px; }
  .th-dogshow .garland i { width: 20px; height: 26px; }
  .th-dogshow .ros { right: -12px; width: 66px; }
}
@media (max-width: 640px) {
  .th-dogshow .team { animation-name: ds-walk-m; }
}
@keyframes ds-walk-m { 0% { transform: translate(300px, 352px) scale(1, 1); } 46% { transform: translate(700px, 352px) scale(1, 1); } 50% { transform: translate(890px, 352px) scale(-1, 1); }
  96% { transform: translate(490px, 352px) scale(-1, 1); } 100% { transform: translate(300px, 352px) scale(1, 1); } }
@media (prefers-reduced-motion: reduce) {
  .th-dogshow .lamps i, .th-dogshow .garland i, .th-dogshow h1, .th-dogshow .fl, .th-dogshow .team { animation: none !important; }
}
