/* мини-игра с собачкой (20261025d) */
.hero { position: relative; }
.rgg { position: absolute; left: 0; right: 0; top: 0; height: 64px; z-index: 5; pointer-events: none; max-width: 1200px; margin: 0 auto; contain: layout; }
.rgg > * { pointer-events: auto; }
.rgg__path { position: absolute; left: 0; right: 0; bottom: 6px; height: 6px; border-radius: 6px; pointer-events: none; background: repeating-linear-gradient(90deg, rgba(217,173,98,.35) 0 14px, transparent 14px 24px); opacity: .7; }
.rgg__dog { position: absolute; left: 0; bottom: 8px; width: 70px; height: 52px; padding: 0; border: 0; background: none; cursor: pointer; touch-action: none; -webkit-tap-highlight-color: transparent; will-change: transform; user-select: none; -webkit-user-select: none; }
.rgg__dog:focus-visible { outline: 2px solid #e8c56a; outline-offset: 2px; border-radius: 10px; }
.rgg__flip, .rgg__body { display: block; width: 70px; height: 52px; transform-origin: 50% 100%; }
.rgg__dog .sl { display: none; }
.rgg__dog.is-sleep .st { display: none; } .rgg__dog.is-sleep .sl { display: inline; }
.rgg__dog.is-walk .l1 { animation: rgg-leg .36s infinite alternate ease-in-out; transform-origin: 50% 0; transform-box: fill-box; }
.rgg__dog.is-walk .l2 { animation: rgg-leg .36s infinite alternate-reverse ease-in-out; transform-origin: 50% 0; transform-box: fill-box; }
.rgg__dog.is-walk .rgg__body { animation: rgg-bob .36s infinite alternate ease-in-out; }
.rgg__dog .tail { transform-origin: 90% 90%; transform-box: fill-box; animation: rgg-tail 1.2s infinite ease-in-out; }
.rgg__dog.is-happy .tail, .rgg__dog.is-eat .tail { animation-duration: .25s; }
.rgg__dog.is-happy .rgg__body { animation: rgg-wig .3s 3 ease-in-out; }
.rgg__dog.is-eat .head { transform: rotate(18deg) translateY(6px); transform-origin: 30% 80%; transform-box: fill-box; animation: rgg-eat .3s infinite alternate; }
.rgg__dog.is-bark .head { animation: rgg-bark .2s 3 alternate; transform-origin: 20% 80%; transform-box: fill-box; }
.rgg__dog.is-bark .jaw { ry: 4; }
.rgg__dog.is-sleep .rgg__body { animation: rgg-breath 2.4s infinite ease-in-out; }
.rgg__fx { position: absolute; left: 0; top: -6px; width: 70px; height: 0; pointer-events: none; }
.rgg__pop { position: absolute; bottom: 0; font: 700 14px/1 system-ui, sans-serif; color: #f1d49a; text-shadow: 0 1px 3px rgba(0,0,0,.6); animation: rgg-up 1.5s ease-out forwards; white-space: nowrap; }
.rgg__bowl { position: absolute; bottom: 6px; font-size: 20px; animation: rgg-in .3s; pointer-events: none; }
.rgg__bones { position: absolute; left: 0; right: 0; bottom: 4px; height: 26px; pointer-events: none; }
.rgg__bone { position: absolute; width: 28px; height: 28px; padding: 0; border: 0; background: none; font-size: 18px; line-height: 28px; cursor: pointer; pointer-events: auto; animation: rgg-in .35s; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.rgg__bone.got { animation: rgg-got .4s forwards; pointer-events: none; }
.rgg__ball { position: absolute; left: 0; bottom: 8px; font-size: 16px; opacity: 0; transition: transform .7s cubic-bezier(.2,.8,.3,1), opacity .2s; pointer-events: none; }
.rgg__ball.on { opacity: 1; }
.rgg__hud { position: absolute; right: 8px; top: 2px; display: flex; gap: 4px; align-items: center; font: 600 12px/1 system-ui, sans-serif; color: #f1d49a; background: rgba(20,18,18,.55); border: 1px solid rgba(217,173,98,.25); border-radius: 99px; padding: 3px 6px; }
.rgg__cnt b { font-weight: 700; } .rgg__cnt i { font-style: normal; opacity: .7; }
.rgg__mood { width: 42px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; }
.rgg__mood i { display: block; height: 100%; background: linear-gradient(90deg, #d9ad62, #f1d49a); transition: width .4s; } .rgg__mood i.low { background: #c2475a; }
.rgg__b { width: 26px; height: 26px; border: 0; border-radius: 50%; background: none; font-size: 14px; cursor: pointer; padding: 0; line-height: 26px; }
.rgg__b:hover, .rgg__b:focus-visible { background: rgba(217,173,98,.2); outline: none; }
.rgg__toast { position: absolute; right: 8px; top: 36px; max-width: min(360px, 90vw); margin: 0; padding: 8px 12px; font-size: 13px; line-height: 1.35; color: #fff; background: rgba(20,18,18,.92); border: 1px solid rgba(217,173,98,.4); border-radius: 12px; opacity: 0; transform: translateY(-4px); transition: .25s; pointer-events: none; }
.rgg__toast.on { opacity: 1; transform: none; pointer-events: auto; } .rgg__toast a { color: #e8c56a; }
.rgg.is-hidden > *:not(.rgg__hud):not(.rgg__toast) { display: none; }
.rgg.is-hidden .rgg__hud > *:not([data-a=hide]) { display: none; }
html.rg-game-on #rg-dog { display: none !important; }
html[data-theme="light"] .rgg__hud { background: rgba(255,255,255,.75); color: #6b3a2a; }
@keyframes rgg-leg { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
@keyframes rgg-bob { from { transform: translateY(0); } to { transform: translateY(-2px); } }
@keyframes rgg-tail { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(10deg); } }
@keyframes rgg-wig { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-6deg); } }
@keyframes rgg-eat { from { transform: rotate(14deg) translateY(4px); } to { transform: rotate(22deg) translateY(8px); } }
@keyframes rgg-bark { from { transform: rotate(0); } to { transform: rotate(-10deg) translateY(-2px); } }
@keyframes rgg-breath { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(1.04); } }
@keyframes rgg-up { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-34px); } }
@keyframes rgg-in { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rgg-got { to { transform: translateY(-30px) scale(1.4); opacity: 0; } }
@media (max-width: 640px) { .rgg { height: 58px; } .rgg__mood { width: 30px; } .rgg__toast { left: 8px; right: 8px; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .rgg *, .rgg *::before { animation: none !important; transition: none !important; } }
/* 20261025f: мобильная адаптация */
.rgg { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.rgg__dog { -webkit-touch-callout: none; }
.rgg__bone { width: 44px; height: 44px; line-height: 44px; font-size: 22px; margin-left: -8px; margin-top: -12px; }
.rgg__bones { height: 44px; }
.rgg__b--menu { display: none; }
@media (max-width: 980px), (pointer: coarse) {
  .rgg { height: 76px; }
  .rgg__hud { top: 4px; right: 6px; padding: 0 4px 0 10px; gap: 2px; font-size: 14px; }
  .rgg__b { width: 44px; height: 44px; line-height: 44px; font-size: 18px; }
  .rgg__mood { display: none; }
  .rgg__b--menu { display: inline-block; }
  .rgg__more { display: none; position: absolute; right: 100%; top: -1px; margin-right: 4px; background: rgba(20,18,18,.94); border: 1px solid rgba(217,173,98,.35); border-radius: 22px; padding: 2px; z-index: 2; }
  .rgg.menu-open .rgg__more { display: flex; }
  .rgg__toast { top: 54px; }
}
html[data-layout="phone"] .rgg { height: 76px; }
html[data-layout="phone"] .rgg__b { width: 44px; height: 44px; line-height: 44px; font-size: 18px; }
html[data-layout="phone"] .rgg__mood { display: none; }
html[data-layout="phone"] .rgg__b--menu { display: inline-block; }
html[data-layout="phone"] .rgg__more { display: none; position: absolute; right: 100%; top: -1px; margin-right: 4px; background: rgba(20,18,18,.94); border: 1px solid rgba(217,173,98,.35); border-radius: 22px; padding: 2px; z-index: 2; }
html[data-layout="phone"] .rgg.menu-open .rgg__more { display: flex; }
@media (max-width: 980px) { .hero__frame { max-height: 62vh; overflow: hidden; } .hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; } }
html[data-layout="phone"] .hero__frame { max-height: 62vh; overflow: hidden; }
