/* New Year Garland by Igor, MIT. License: ../img/new-year-garland/LICENSE. */
:root:has(.atashi-garland) {
    --atashi-garland-height: 58px;
    --atashi-garland-scale: .5;
    --info-bar-height: var(--atashi-garland-height);
}

:root:has(.atashi-garland ~ .info-bar__grid) {
    --info-bar-height: calc(var(--atashi-garland-height) + 25px);
}

.atashi-garland ~ .info-bar__grid {
    min-height: 25px;
    padding-block-start: 0;
}

.atashi-garland {
    position: relative;
    isolation: isolate;
    height: var(--atashi-garland-height, 58px);
    overflow: hidden;
}

.atashi-garland:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
}

.atashi-garland__art {
    position: relative;
    display: flex;
    width: calc(100% / var(--atashi-garland-scale, .5));
    height: 115px;
    background: url('../img/new-year-garland/balls/b-head-decor_newyear.png') repeat-x left top;
    transform-origin: left top;
    transform: scale(var(--atashi-garland-scale, .5));
}

.atashi-garland__art::before {
    content: '';
    position: absolute;
    z-index: 3;
    inset: -115px 0 auto;
    height: 115px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, .75);
    pointer-events: none;
}

.atashi-garland .b-head-decor__inner {
    position: relative;
    display: block;
    flex: 0 0 373px;
    height: 115px;
}

.atashi-garland .b-ball_bounce { cursor: pointer; }
.atashi-garland .b-ball:not(.b-ball_bounce) { pointer-events: none; }

@media (max-width: 640px) {
    :root:has(.atashi-garland) {
        --atashi-garland-height: 42px;
        --atashi-garland-scale: .36;
    }
    .atashi-garland { height: var(--atashi-garland-height, 42px); }
    .atashi-garland ~ .info-bar__grid { padding-block-start: 2px; }
}

.atashi-garland .b-ball{position:absolute}
.atashi-garland .b-ball_n1{top:0;left:3px;width:59px;height:83px}
.atashi-garland .b-ball_n2{top:-19px;left:51px;width:55px;height:70px}
.atashi-garland .b-ball_n3{top:9px;left:88px;width:49px;height:67px}
.atashi-garland .b-ball_n4{top:0;left:133px;width:57px;height:102px}
.atashi-garland .b-ball_n5{top:0;left:166px;width:49px;height:57px}
.atashi-garland .b-ball_n6{top:6px;left:200px;width:54px;height:70px}
.atashi-garland .b-ball_n7{top:0;left:240px;width:56px;height:67px}
.atashi-garland .b-ball_n8{top:0;left:283px;width:54px;height:53px}
.atashi-garland .b-ball_n9{top:10px;left:321px;width:49px;height:66px}
.atashi-garland .b-ball_n1 .b-ball__i{background:url(../img/new-year-garland/balls/b-ball_n1.png) no-repeat}
.atashi-garland .b-ball_n2 .b-ball__i{background:url(../img/new-year-garland/balls/b-ball_n2.png) no-repeat}
.atashi-garland .b-ball_n3 .b-ball__i{background:url(../img/new-year-garland/balls/b-ball_n3.png) no-repeat}
.atashi-garland .b-ball_n4 .b-ball__i{background:url(../img/new-year-garland/balls/b-ball_n4.png) no-repeat}
.atashi-garland .b-ball_n5 .b-ball__i{background:url(../img/new-year-garland/balls/b-ball_n5.png) no-repeat}
.atashi-garland .b-ball_n6 .b-ball__i{background:url(../img/new-year-garland/balls/b-ball_n6.png) no-repeat}
.atashi-garland .b-ball_n7 .b-ball__i{background:url(../img/new-year-garland/balls/b-ball_n7.png) no-repeat}
.atashi-garland .b-ball_n8 .b-ball__i{background:url(../img/new-year-garland/balls/b-ball_n8.png) no-repeat}
.atashi-garland .b-ball_n9 .b-ball__i{background:url(../img/new-year-garland/balls/b-ball_n9.png) no-repeat}
.atashi-garland .b-ball_i1 .b-ball__i{background:url(../img/new-year-garland/balls/b-ball_i1.png) no-repeat}
.atashi-garland .b-ball_i2 .b-ball__i{background:url(../img/new-year-garland/balls/b-ball_i2.png) no-repeat}
.atashi-garland .b-ball_i3 .b-ball__i{background:url(../img/new-year-garland/balls/b-ball_i3.png) no-repeat}
.atashi-garland .b-ball_i4 .b-ball__i{background:url(../img/new-year-garland/balls/b-ball_i4.png) no-repeat}
.atashi-garland .b-ball_i5 .b-ball__i{background:url(../img/new-year-garland/balls/b-ball_i5.png) no-repeat}
.atashi-garland .b-ball_i6 .b-ball__i{background:url(../img/new-year-garland/balls/b-ball_i6.png) no-repeat}
.atashi-garland .b-ball_i1{top:0;left:0;width:25px;height:71px}
.atashi-garland .b-ball_i2{top:0;left:25px;width:61px;height:27px}
.atashi-garland .b-ball_i3{top:0;left:176px;width:29px;height:31px}
.atashi-garland .b-ball_i4{top:0;left:205px;width:50px;height:51px}
.atashi-garland .b-ball_i5{top:0;left:289px;width:78px;height:28px}
.atashi-garland .b-ball_i6{top:0;left:367px;width:6px;height:69px}

.atashi-garland .b-ball__i {
    position: absolute;
    inset: 0;
    transform-origin: 50% 0;
    pointer-events: none;
}
