.kura-chibi-gallery{display:grid;gap:clamp(2rem,6vw,4.5rem);color:#493a3f}
.kura-chibi-gallery__intro{display:grid;padding:clamp(1.5rem,5vw,3.5rem);border-radius:28px;background:linear-gradient(135deg,#fff0f5,#fff8e9);text-align:center;place-items:center}
.kura-chibi-gallery__intro>p{margin:0;color:#a93661;font-size:.75rem;font-weight:900;letter-spacing:.16em}
.kura-chibi-gallery__intro h2{margin:.4rem 0;font-size:clamp(1.8rem,5vw,3.25rem)}
.kura-chibi-gallery__intro>span{line-height:1.8}
.kura-chibi-gallery__intro>div{display:flex;flex-wrap:wrap;justify-content:center;gap:.75rem;margin-top:1.25rem}
.kura-chibi-gallery__stage{position:relative;overflow:hidden;min-height:320px;border-radius:28px;background:#eef7fd;box-shadow:0 18px 46px rgba(73,58,63,.14)}
.kura-chibi-gallery__stage>img{display:block;width:100%;height:auto}
.kura-chibi-gallery__guest{position:absolute;z-index:1;left:calc(5% + var(--guest-column) * 15%);bottom:calc(5% + var(--guest-row) * 19%);display:grid;justify-items:center;width:clamp(62px,8vw,112px);padding:0;border:0;background:transparent;filter:drop-shadow(0 8px 7px rgba(40,30,34,.25));cursor:pointer;animation:kura-chibi-bounce 3.4s ease-in-out infinite;animation-delay:calc((var(--guest-column) + var(--guest-row) * 6) * -.28s)}
.kura-chibi-gallery__guest img{display:block;width:100%;height:clamp(88px,12vw,160px);border:0;border-radius:0;background:transparent;object-fit:contain;object-position:center bottom}
.kura-chibi-gallery__guest span{margin-top:.3rem;padding:.2rem .45rem;border-radius:999px;background:#fff;color:#a93661;font-size:.7rem;font-weight:800;white-space:nowrap}
.kura-chibi-gallery__guest:focus-visible{outline:4px solid #78bce6;outline-offset:4px;border-radius:16px}
.kura-chibi-gallery__empty{position:absolute;left:50%;bottom:8%;display:grid;width:min(86%,420px);padding:1rem 1.2rem;border-radius:18px;background:rgba(255,255,255,.92);text-align:center;transform:translateX(-50%);box-shadow:0 8px 28px rgba(73,58,63,.15)}
.kura-chibi-gallery__empty span{font-size:.86rem}
.kura-chibi-gallery__list>h3,.kura-chibi-gallery__submit>h3{font-size:clamp(1.4rem,3vw,2rem)}
.kura-chibi-gallery__cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
.kura-chibi-gallery__list article{overflow:hidden;padding:0 0 1rem;border:1px solid #eadde2;border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(126,70,91,.09)}
.kura-chibi-gallery__list article[hidden]{display:none}
.kura-chibi-gallery__list article img{display:block;width:100%;aspect-ratio:4/5;object-fit:contain;background:#fff8fa}
.kura-chibi-gallery__list article h4,.kura-chibi-gallery__list article p{margin:.75rem 1rem 0}
.kura-chibi-gallery__list article p{font-size:.9rem;line-height:1.7}
.kura-chibi-gallery__delete{margin:.85rem 1rem 0}
.kura-chibi-gallery__delete button{min-height:40px;padding:.55rem .8rem;border:1px solid #c76078;border-radius:10px;background:#fff;color:#9a3550;font:inherit;font-weight:800;cursor:pointer}
.kura-chibi-gallery__delete button:hover{background:#9a3550;color:#fff}
.kura-chibi-gallery__delete button:focus-visible{outline:4px solid rgba(120,188,230,.45);outline-offset:2px}
.kura-chibi-gallery__pagination{display:flex;flex-wrap:wrap;justify-content:center;gap:.55rem;margin-top:1.5rem}
.kura-chibi-gallery__pagination[hidden]{display:none}
.kura-chibi-gallery__pagination button{min-width:46px;min-height:46px;padding:.55rem .75rem;border:1px solid #d9a8ba;border-radius:999px;background:#fff;color:#8d3153;font:inherit;font-weight:900;cursor:pointer}
.kura-chibi-gallery__pagination button:hover,.kura-chibi-gallery__pagination button.is-current{border-color:#a93661;background:#a93661;color:#fff}
.kura-chibi-gallery__pagination button:focus-visible{outline:4px solid rgba(120,188,230,.45);outline-offset:2px}
.kura-chibi-gallery__swipe-hint{display:none;margin:.25rem 0 .8rem;color:#796a70;font-size:.88rem;font-weight:700}
.kura-chibi-gallery__submit{padding:clamp(1.4rem,4vw,2.5rem);border:1px solid #f1dbe3;border-radius:28px;background:#fffaf7}
.kura-chibi-gallery__submit form{display:grid;max-width:720px;gap:1rem;margin-top:1.5rem}
.kura-chibi-gallery__submit label:not(.kura-chibi-gallery__consent){display:grid;gap:.4rem}
.kura-chibi-gallery__submit label>span{font-weight:800}
.kura-chibi-gallery__submit :where(input[type=text],input[type=file]){box-sizing:border-box;width:100%;min-height:48px;padding:.7rem .8rem;border:1px solid #cabcc1;border-radius:12px;background:#fff;font:inherit}
.kura-chibi-gallery__submit :where(input,button):focus-visible{outline:4px solid rgba(120,188,230,.45);outline-offset:2px}
.kura-chibi-gallery__consent{display:flex;align-items:flex-start;gap:.65rem;line-height:1.65}
.kura-chibi-gallery__consent input{width:22px;height:22px;margin-top:.15rem;flex:0 0 auto}
.kura-chibi-gallery__notice{padding:1rem;border-radius:12px}
.kura-chibi-gallery__notice.is-success{background:#e9f8f1;color:#286650}
.kura-chibi-gallery__notice.is-error{background:#fff0f2;color:#96374d}
.kura-chibi-gallery__honeypot{position:absolute!important;left:-9999px!important}
.kura-chibi-gallery__submit form>small,.kura-chibi-gallery__submit label small{color:#796a70}
.kura-chibi-gallery__submit button{justify-self:start}
@keyframes kura-chibi-bounce{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-12px) rotate(1deg)}}
@media(max-width:860px){.kura-chibi-gallery__cards{grid-template-columns:repeat(3,minmax(0,1fr))}.kura-chibi-gallery__stage{min-height:240px}}
@media(max-width:700px){.kura-chibi-gallery__swipe-hint{display:block}.kura-chibi-gallery__cards{display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,auto);grid-auto-columns:calc((100% - .75rem)/2);grid-template-columns:none;gap:.75rem;overflow-x:auto;padding:.25rem .15rem 1rem;scroll-behavior:smooth;scroll-snap-type:x mandatory;scrollbar-width:thin;overscroll-behavior-inline:contain}.kura-chibi-gallery__list article,.kura-chibi-gallery__list article[hidden]{display:block;min-width:0;scroll-snap-align:start}.kura-chibi-gallery__list article:nth-child(4n+1){scroll-snap-align:start}.kura-chibi-gallery__pagination{display:none!important}}
@media(max-width:520px){.kura-chibi-gallery__intro>div{display:grid;width:100%}.kura-chibi-gallery__stage{min-height:0;border-radius:18px}.kura-chibi-gallery__stage>img{height:auto;min-height:0;object-fit:contain}.kura-chibi-gallery__guest{width:58px}.kura-chibi-gallery__guest img{height:82px}.kura-chibi-gallery__guest span{display:none}.kura-chibi-gallery__list article h4,.kura-chibi-gallery__list article p{margin:.65rem .7rem 0}.kura-chibi-gallery__list article p{font-size:.82rem}}
@media(prefers-reduced-motion:reduce){.kura-chibi-gallery__guest{animation:none}}
/* Give every character its own space; movement stays inside that space. */
.kura-chibi-gallery__stage{min-height:0;isolation:isolate}
.kura-chibi-gallery__stage .kura-chibi-gallery__backdrop{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;background:#eef7fd;opacity:.68}
.kura-chibi-gallery__stage-content{position:relative;z-index:1;display:grid;gap:1.5rem;padding:clamp(1rem,3vw,2rem);background:linear-gradient(90deg,rgba(255,255,255,.38),rgba(255,255,255,.12))}
.kura-chibi-gallery__stage-group h3,.kura-chibi-gallery__list-group h4{margin:0 0 .8rem;color:#79354e;font-size:clamp(1.1rem,2vw,1.4rem)}
.kura-chibi-gallery__guests{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(.45rem,1.4vw,1rem)}
.kura-chibi-gallery__guest{box-sizing:border-box;position:relative;left:auto;bottom:auto;display:grid;align-content:end;justify-items:center;min-width:0;width:100%;min-height:155px;padding:0;border:0;border-radius:0;background:transparent;text-decoration:none;filter:none;cursor:default;animation:none;box-shadow:none}
.kura-chibi-gallery__guest[href]{cursor:pointer}
.kura-chibi-gallery__guest img{max-width:100%;height:clamp(100px,13vw,170px);animation:kura-chibi-walk 4.2s ease-in-out infinite;animation-delay:calc(var(--guest-index) * -.37s)}
.kura-chibi-gallery__guest:nth-child(3n) img{animation-name:kura-chibi-hop;animation-duration:3.3s}
.kura-chibi-gallery__nameplate{box-sizing:border-box;display:block!important;max-width:100%;margin-top:.3rem!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#422b37!important;font-size:clamp(.78rem,1.2vw,.95rem)!important;line-height:1.35;text-align:center;text-shadow:0 1px 3px #fff,0 0 9px #fff;white-space:normal!important;overflow-wrap:anywhere}
.kura-chibi-gallery__guest[href]:hover img{filter:drop-shadow(0 6px 9px rgba(73,58,63,.3))}
.kura-chibi-gallery__list-group+.kura-chibi-gallery__list-group{margin-top:2.5rem}
.kura-chibi-gallery__card-link{display:block;color:inherit;text-decoration:none}
.kura-chibi-gallery__card-link:focus-visible{outline:4px solid #78bce6;outline-offset:-4px}
.kura-chibi-gallery__card-name{display:block;margin:.75rem 1rem 0;padding:.35rem .65rem;border-radius:10px;background:#ecf8f4;color:#375f5b;font-weight:800;overflow-wrap:anywhere}
.kura-chibi-gallery__card-cta{display:block;margin:.5rem 1rem;color:#9c3159;font-size:.84rem;font-weight:800;text-decoration:underline}
.kura-chibi-gallery__portrait-hint{display:none!important}
@keyframes kura-chibi-walk{0%,100%{transform:translate3d(-3px,0,0) rotate(-2deg)}50%{transform:translate3d(3px,-6px,0) rotate(2deg)}}
@keyframes kura-chibi-hop{0%,100%{transform:translateY(0)}45%{transform:translateY(-12px)}58%{transform:translateY(-4px)}}
@media(max-width:860px){.kura-chibi-gallery__guests{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:520px){.kura-chibi-gallery__guests{grid-template-columns:repeat(2,minmax(0,1fr))}.kura-chibi-gallery__guest{min-height:140px}.kura-chibi-gallery__guest img{height:110px}.kura-chibi-gallery__stage .kura-chibi-gallery__backdrop{min-height:0}.kura-chibi-gallery__stage-content{padding:.75rem}.kura-chibi-gallery__nameplate{font-size:.76rem!important}}
@media(prefers-reduced-motion:reduce){.kura-chibi-gallery__guest img{animation:none}}
.kura-chibi-gallery__mapping{padding:1rem 1.25rem;border:1px solid #d8c5d0;border-radius:18px;background:#fffafc}
.kura-chibi-gallery__mapping summary{color:#713550;font-weight:800;cursor:pointer}
.kura-chibi-gallery__mapping>p{line-height:1.6}
.kura-chibi-gallery__mapping-list{display:grid;gap:.65rem;max-height:520px;overflow-y:auto}
.kura-chibi-gallery__mapping-list form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:.75rem;padding:.7rem;border:1px solid #ebdfe5;border-radius:12px;background:#fff}
.kura-chibi-gallery__mapping-list label{display:grid;gap:.3rem;min-width:0;font-weight:700}
.kura-chibi-gallery__mapping-list input{box-sizing:border-box;width:100%;min-height:42px;padding:.5rem .65rem;border:1px solid #aa9ba2;border-radius:8px;font:inherit;font-weight:400}
.kura-chibi-gallery__mapping-list button{min-height:42px;padding:.5rem .8rem;border:0;border-radius:8px;background:#a93661;color:#fff;font:inherit;font-weight:800;cursor:pointer}
.kura-chibi-gallery__mapping-list :is(input,button):focus-visible,.kura-chibi-gallery__mapping summary:focus-visible{outline:3px solid #65b4ca;outline-offset:2px}
@media(max-width:520px){.kura-chibi-gallery__mapping-list form{grid-template-columns:1fr}}
.kura-chibi-gallery__guest[hidden],.kura-chibi-gallery__stage-controls[hidden]{display:none!important}
.kura-chibi-gallery__guest img{animation-duration:8s}
.kura-chibi-gallery__guest:nth-child(3n) img{animation-duration:9s}
@keyframes kura-chibi-walk{0%,100%{transform:translate3d(-2px,0,0) rotate(-1deg)}50%{transform:translate3d(2px,-3px,0) rotate(1deg)}}
@keyframes kura-chibi-hop{0%,100%{transform:translateY(0)}45%{transform:translateY(-5px)}58%{transform:translateY(-2px)}}
.kura-chibi-gallery__stage-controls{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.75rem 1.5rem;margin-top:-1rem}
.kura-chibi-gallery__stage-controls p{margin:0;color:#604853;font-size:.9rem;font-weight:700}
.kura-chibi-gallery__stage-controls button{min-height:44px;padding:.6rem 1.2rem;border:1px solid #a93661;border-radius:999px;background:#fff;color:#8d3153;font:inherit;font-weight:800;cursor:pointer}
.kura-chibi-gallery__stage-controls button:hover{background:#a93661;color:#fff}
.kura-chibi-gallery__stage-controls button:focus-visible{outline:4px solid #78bce6;outline-offset:3px}
