/* v2.2: scoped corrections; never alter the room's background or music. */
#nlce-download-panel.nkou-ring-ready #nlce-download-result,
#nlce-download-panel.nkou-ring-ready .nlce-ring-waiting-note {display:none!important}
#nlce-download-panel .nkou-ring-gallery {margin:14px 0 8px;width:100%;max-width:700px}
#nlce-download-panel .nkou-ring-small-title {margin:7px 0 12px;letter-spacing:.16em;text-align:center;color:#e8cb8b;font-size:12px}
.nkou-ring-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%}
.nkou-ring-card {min-width:0;border:1px solid rgba(198,162,95,.56);border-radius:15px;padding:13px 10px;text-align:center;background:linear-gradient(165deg,rgba(73,45,24,.92),rgba(24,20,21,.94));color:#f7e7ce;box-shadow:0 5px 18px rgba(0,0,0,.22)}
.nkou-ring-picture {position:relative;max-width:210px;margin:0 auto 10px;aspect-ratio:1;border-radius:50%;overflow:hidden;background:radial-gradient(circle,rgba(202,160,79,.17),rgba(20,15,17,.8) 71%);border:1px solid rgba(224,179,101,.18)}
.nkou-ring-image {display:block;width:100%;height:100%;object-fit:contain;margin:0!important}
.nkou-ring-locked {position:absolute;left:0;right:0;bottom:18%;display:block;margin:0 7px;border:1px solid rgba(225,191,124,.55);border-radius:999px;background:rgba(19,13,13,.84);color:#f7dca7;padding:7px 2px;font-size:11px;font-weight:600;letter-spacing:.04em;pointer-events:none}
.nkou-ring-unlocked .nkou-ring-locked {background:rgba(48,35,21,.83);color:#fff5d9}
.nkou-ring-name {display:block;letter-spacing:.12em;font-weight:650;font-size:13px;color:#fff0cd}
.nkou-ring-cost {display:block;margin:5px 0 10px;font-size:14px;color:#e8d1aa}
#nlce-download-panel .nkou-ring-action {display:inline-block;border:1px solid #c8a66b!important;background:linear-gradient(135deg,#89612c,#5b3b20)!important;color:#fff5db!important;border-radius:999px;padding:10px 11px;font-size:13px;font-weight:700;line-height:1.45;min-width:87%;cursor:pointer}
#nlce-download-panel .nkou-ring-action[disabled] {opacity:.6;cursor:default}
#nlce-download-panel .nkou-ring-download {display:block;margin:9px 0 0;padding:9px 8px;border:1px solid #c6a975;border-radius:999px;background:#987039;color:#fff8e5!important;text-decoration:none;font-size:13px}
#nlce-download-panel .nkou-ring-download[hidden],#nlce-download-panel .nkou-ring-login[hidden]{display:none!important}
#nlce-download-panel .nkou-ring-login {margin-top:12px;padding:15px;border-radius:12px;border:1px solid rgba(200,165,105,.5);background:rgba(40,28,20,.91);color:#fff3dd}
#nlce-download-panel .nkou-ring-login label {display:block;margin-bottom:11px;font-size:13px}
#nlce-download-panel .nkou-ring-login input {box-sizing:border-box;width:100%;max-width:100%;margin-top:5px;border:1px solid #c6a16a;background:#fffaf0;color:#28201a;border-radius:8px;padding:11px;font-size:16px}
#nlce-download-panel .nkou-ring-message {min-height:21px;color:#eed9b1;font-size:13px;line-height:1.7;margin:12px 0 0}

/* v2.4 — repair using official NekoOne Digital Gift Lounge CSS v1.0
 * as the reference. Never replace music/message/card HTML or its handlers. */
body.postid-1497 .ndgl-lounge {
  width:min(980px,calc(100% - 24px)); margin-inline:auto;
  color:#fff8df;
}
/* v1 original stage height is 260px desktop, 220px mobile.
 * The accidental 100vh/min-height from later CSS must not produce blank space. */
body.postid-1497 .ndgl-character-guide {
  position:relative!important; height:auto!important; min-height:0!important;
  margin:10px auto 14px!important; overflow:visible!important;
}
body.postid-1497 .ndgl-character-stage {
  position:relative!important; display:flex!important;
  align-items:flex-end!important; justify-content:center!important;
  box-sizing:border-box!important;
  height:auto!important; min-height:260px!important; max-height:none!important;
  padding:12px 12px 0!important;
  margin:0 auto!important; overflow:visible!important;
  background:none!important;
}
body.postid-1497 .ndgl-character {
  position:relative!important; display:block!important;
  width:clamp(150px,25vw,230px)!important;
  height:auto!important; min-height:0!important; max-height:none!important;
  padding:0!important;margin:0!important;
  border:0!important;border-radius:0!important;
  background:transparent!important; box-shadow:none!important;
}
body.postid-1497 .ndgl-character-image {
  display:block!important; width:100%!important; max-width:100%!important;
  height:auto!important; object-fit:contain!important;
  border:0!important;border-radius:0!important; outline:0!important;
  box-shadow:none!important;
}
/* Restore natural flow to monthly message and product sections. */
body.postid-1497 :is(.ndgl-monthly-message,.ndgl-icon-ring-section,.ndgl-voice-section){
  position:relative!important; clear:both; height:auto!important; min-height:0!important;
  transform:none!important;
}
body.postid-1497 .ndgl-monthly-message { margin-top:12px!important; margin-bottom:48px!important; }
/* Official room rule: strip WordPress article chrome, keep lounge content. */
body.postid-1497 :is(.entry-header,.post-meta,.date-tags,.article-header,.breadcrumb){display:none!important;}
/* Protect Cocoon inherited heading fills, without altering generic titles/cards. */
body.postid-1497 .ndgl-lounge .ndgl-section-title {
  background:transparent!important; background-image:none!important;
  border:0!important; color:#fff4c5!important; padding:8px 0!important;
  box-shadow:none!important; text-align:center!important;
}
body.postid-1497 .ndgl-lounge .ndgl-section-title::before,
body.postid-1497 .ndgl-lounge .ndgl-section-title::after { display:none!important; }
body.postid-1497 .ndgl-icon-ring-section .nrsedg-form :is(button,[type=submit]) {
  background:linear-gradient(135deg,#b78a46,#704b24)!important;
  color:#fff9e8!important; border:1px solid #e0bb77!important;
  border-radius:999px!important; min-height:44px!important;
  padding:10px 16px!important; font-size:14px!important;
}
body.postid-1497 .nkou-gift-preview {margin:14px 0 18px}
body.postid-1497 .nkou-gift-preview-guide{color:#f2d7a9;text-align:center;font-size:14px;line-height:1.7}
body.postid-1497 .nkou-gift-get-link{display:block;width:fit-content;margin:14px auto 0;
  border:1px solid #e0b86e;border-radius:999px;padding:10px 18px;
  background:#69471e;color:#fff4df!important;text-decoration:none;font-size:14px}
@media(max-width:600px){
  body.postid-1497 .ndgl-character-stage{min-height:220px!important}
  body.postid-1497 .ndgl-character{width:clamp(145px,48vw,205px)!important}
  body.postid-1497 .ndgl-lounge{width:calc(100% - 16px)!important}
}
