/* Jクラ ガチャシミュレーター v0.1.14: 親テーマの装飾と衝突しないようルート配下に限定 */
.pepe-jcc-wrap{box-sizing:border-box;display:block;position:relative;width:100%;max-width:850px;margin:18px auto;padding:18px;color:#f8fafc;background:linear-gradient(160deg,#102b4c,#07152a);border:2px solid #a88d48;border-radius:12px;font-family:inherit;line-height:1.6;text-align:center;overflow:hidden;clear:both}
.pepe-jcc-wrap,.pepe-jcc-wrap *{box-sizing:border-box}
.pepe-jcc-wrap .pepe-jcc-title{font-size:clamp(18px,3.8vw,28px);font-weight:800;color:#ffe29e;line-height:1.45}
.pepe-jcc-wrap .pepe-jcc-subtitle{font-size:13px;color:#e2e8f0;margin-bottom:16px}
.pepe-jcc-wrap .pepe-jcc-progress{font-size:16px;font-weight:700;color:#fff;margin:9px 0}
.pepe-jcc-wrap .pepe-jcc-condition{margin:10px auto 16px;padding:12px;border-radius:8px;background:#1d3a5c;color:#ffe9ae;font-weight:700;min-height:3em}
.pepe-jcc-wrap button.pepe-jcc-pull,.pepe-jcc-wrap button.pepe-jcc-reset{appearance:none;-webkit-appearance:none;display:inline-block;width:auto;height:auto;min-height:44px;cursor:pointer;border:0;border-radius:7px;padding:11px 18px;font-weight:700;font-size:14px;line-height:1.3;margin:3px;box-shadow:none;text-shadow:none}
.pepe-jcc-wrap button.pepe-jcc-pull{background:linear-gradient(#ffd659,#df8d2c);color:#3b1a06}
.pepe-jcc-wrap button.pepe-jcc-reset{background:#dae1e9;color:#27394c}
.pepe-jcc-wrap button:disabled{opacity:.6;cursor:wait}
.pepe-jcc-wrap .pepe-jcc-message{padding:8px;min-height:2em;color:#ffdbbb;font-size:13px}
.pepe-jcc-wrap .pepe-jcc-results{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;align-items:start;margin:0;padding:0}
.pepe-jcc-wrap .pepe-jcc-card{display:block;min-width:0;background:#122c4b;border:1px solid #49627a;border-radius:8px;overflow:hidden;padding:0 0 8px;margin:0}
.pepe-jcc-wrap .pepe-jcc-card.sp{border:2px solid #f1bd45}
.pepe-jcc-wrap .pepe-jcc-card img{display:block;width:100%;max-width:100%;height:auto;aspect-ratio:0.63;object-fit:contain;background:#071527;margin:0;padding:0;border:0;border-radius:0;box-shadow:none}
.pepe-jcc-wrap .pepe-jcc-card strong{display:block;font-size:12px;margin:3px;color:#fff;overflow-wrap:anywhere;line-height:1.4}
.pepe-jcc-wrap .pepe-jcc-card small{display:block;font-size:10px;color:#dbeafe;line-height:1.5;opacity:.9;overflow-wrap:anywhere}
.pepe-jcc-wrap .pepe-jcc-sp-label{display:block;background:#c99b2e;color:#111;font-size:11px;font-weight:800;line-height:1.6}
.pepe-jcc-wrap p.pepe-jcc-notes{font-size:11px;line-height:1.6;text-align:left;color:#cbd5e1;margin:16px 0 0;padding:0}
@media(max-width:640px){.pepe-jcc-wrap{padding:10px}.pepe-jcc-wrap .pepe-jcc-results{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.pepe-jcc-wrap .pepe-jcc-card strong{font-size:11px}.pepe-jcc-wrap .pepe-jcc-card small{font-size:9px}.pepe-jcc-wrap button.pepe-jcc-pull,.pepe-jcc-wrap button.pepe-jcc-reset{font-size:13px;padding:12px 11px}}


/* v0.1.11: AFFINGER等のbutton ::before/::after装飾による白い線を排除 */
.pepe-jcc-wrap .pepe-jcc-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;margin:16px 0 4px;padding:0;position:relative;background:transparent;border:0;box-shadow:none;isolation:isolate}
.pepe-jcc-wrap .pepe-jcc-actions::before,.pepe-jcc-wrap .pepe-jcc-actions::after,
.pepe-jcc-wrap .pepe-jcc-actions button::before,.pepe-jcc-wrap .pepe-jcc-actions button::after,
.pepe-jcc-reveal-skip::before,.pepe-jcc-reveal-skip::after{content:none!important;display:none!important;visibility:hidden!important;border:0!important;box-shadow:none!important}
.pepe-jcc-wrap .pepe-jcc-actions button{position:relative;z-index:1;overflow:hidden;isolation:isolate;outline:0;outline-offset:0;border:0!important;box-shadow:none!important;text-decoration:none!important;filter:none;background-clip:padding-box;margin:0!important;transform:none;vertical-align:middle}
/* Explicit dark pill so AFFINGER's light label backgrounds cannot hide the text. */
.pepe-jcc-wrap label.pepe-jcc-effects-label{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;max-width:100%!important;background:#1e3d63!important;border:1px solid #7d9bbd!important;border-radius:999px!important;padding:9px 14px!important;margin:6px auto 8px!important;color:#fff!important;font-size:13px!important;font-weight:700!important;line-height:1.5!important;text-shadow:none!important;box-shadow:none!important;cursor:pointer!important;vertical-align:middle!important}
.pepe-jcc-wrap .pepe-jcc-effects-label .pepe-jcc-effects-text{display:inline!important;background:transparent!important;color:#fff!important;opacity:1!important;font-size:13px!important;font-weight:700!important;text-shadow:none!important;white-space:normal!important}
.pepe-jcc-wrap .pepe-jcc-effects-state{display:inline-block!important;padding:1px 7px!important;border-radius:999px!important;background:#f7c75b!important;color:#222!important;font-size:11px!important;font-weight:800!important;text-shadow:none!important}
.pepe-jcc-wrap .pepe-jcc-effects-label::before,.pepe-jcc-wrap .pepe-jcc-effects-label::after{content:none!important;display:none!important}
.pepe-jcc-wrap .pepe-jcc-effects-toggle{appearance:auto!important;-webkit-appearance:checkbox!important;display:inline-block;width:16px;height:16px;margin:0 4px 0 0;vertical-align:middle;accent-color:#f8c24f;cursor:pointer;box-shadow:none!important;border:1px solid #cadcf3!important;background:#f8fafc!important;flex:0 0 16px!important}
.pepe-jcc-wrap .pepe-jcc-actions button:focus-visible,.pepe-jcc-reveal-skip:focus-visible{outline:3px solid #fff!important;outline-offset:3px!important}

/* 11連ガチャ演出。Overlay is moved to document.body; scope selectors to modal class only. */
.pepe-jcc-reveal[hidden],.pepe-jcc-reveal .pepe-jcc-reveal-special[hidden],.pepe-jcc-reveal .pepe-jcc-reveal-loading[hidden]{display:none!important}
.pepe-jcc-reveal{position:fixed!important;inset:0!important;z-index:2147480000!important;display:flex;justify-content:center;align-items:center;padding:16px;overflow-y:auto;overscroll-behavior:contain;color:#fff;text-align:center;isolation:isolate}
.pepe-jcc-reveal-backdrop{position:fixed;inset:0;background:rgba(3,9,24,.94);backdrop-filter:blur(5px);pointer-events:none}
.pepe-jcc-reveal-panel{position:relative;z-index:1;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:8px;width:min(100%,520px);min-height:460px;max-height:calc(100dvh - 32px);margin:auto;padding:20px 16px 18px;overflow:hidden;border:1px solid #a98c4a;border-radius:18px;background:radial-gradient(ellipse at 50% 35%,#243e6e 0%,#0d2445 48%,#07162d 85%);box-shadow:0 0 40px rgba(253,188,58,.18),0 18px 48px rgba(0,0,0,.58)}
.pepe-jcc-reveal-heading{font-size:clamp(20px,5vw,27px);font-weight:900;letter-spacing:.04em;color:#ffe5a0;text-shadow:0 0 22px rgba(255,211,102,.55);margin:0}
.pepe-jcc-reveal-index{font-size:14px;min-height:22px;color:#eff6ff;font-weight:800;line-height:1.4;margin:0}
.pepe-jcc-reveal-stage{display:flex;align-items:center;justify-content:center;position:relative;width:100%;height:min(47dvh,395px);min-height:230px;margin:0 auto;perspective:900px}
.pepe-jcc-reveal-halo{position:absolute;inset:2% 4%;pointer-events:none;border-radius:50%;background:radial-gradient(ellipse,rgba(255,231,151,.35),rgba(68,154,255,.19) 35%,transparent 68%);filter:blur(12px);animation:pepe-jcc-halo 2.2s ease-in-out infinite alternate}
.pepe-jcc-reveal-card{position:relative;display:none;max-height:100%;max-width:100%;width:min(67%,240px);padding:8px 8px 10px;border-radius:12px;border:2px solid #4aa1ff;background:linear-gradient(160deg,#25528e,#0b1c35);box-shadow:0 0 26px rgba(70,151,255,.4);transform:rotateY(-85deg) scale(.88);backface-visibility:hidden}
.pepe-jcc-reveal-card.is-showing{display:block}
.pepe-jcc-reveal-card.is-flipped{animation:pepe-jcc-card-flip .56s cubic-bezier(.2,.8,.2,1) both}
.pepe-jcc-reveal-card.is-gold{border-color:#ffdc66;box-shadow:0 0 40px rgba(255,190,31,.8),0 0 15px rgba(255,190,31,.5) inset}
.pepe-jcc-reveal-card.is-rainbow{border-color:#fff1b8;box-shadow:0 0 40px rgba(255,184,41,.75),0 0 46px rgba(98,168,255,.5);background:linear-gradient(125deg,#2f2d69,#133d79,#593064)}
.pepe-jcc-reveal-card.is-special{box-shadow:0 0 55px rgba(255,203,51,.92),0 0 18px rgba(255,212,89,.65) inset;border-color:#ffe294}
.pepe-jcc-reveal-card img{display:block;width:auto;max-width:100%;height:min(31dvh,265px);max-height:265px;object-fit:contain;aspect-ratio:auto;box-shadow:none;border:0;margin:0 auto;background:transparent;padding:0}
.pepe-jcc-reveal-name{font-size:14px;font-weight:800;color:#fff;line-height:1.4;margin:5px 0 0;overflow-wrap:anywhere}
.pepe-jcc-reveal-meta{font-size:10px;color:#dceaff;line-height:1.45;overflow-wrap:anywhere;margin:2px 0 0}
.pepe-jcc-reveal-special{position:absolute;top:0;left:0;right:0;color:#2c1b04;background:linear-gradient(90deg,#ffcc43,#fff7ad,#ffcc43);font-size:12px;font-weight:900;line-height:1.8;z-index:2;text-shadow:none}
.pepe-jcc-reveal-loading{display:flex;gap:12px;align-items:center;justify-content:center;z-index:2}
.pepe-jcc-reveal-loading span{display:block;height:15px;width:15px;border-radius:100%;background:#ffcf5c;box-shadow:0 0 20px rgba(255,207,92,.7);animation:pepe-jcc-dot 1s infinite alternate}
.pepe-jcc-reveal-loading span:nth-child(2){animation-delay:.2s}.pepe-jcc-reveal-loading span:nth-child(3){animation-delay:.4s}
.pepe-jcc-reveal-count{font-size:13px;color:#ffe5a0;min-height:20px;letter-spacing:.13em;font-weight:900}
.pepe-jcc-reveal button.pepe-jcc-reveal-skip{appearance:none;display:inline-block;cursor:pointer;margin:5px 0 0;padding:10px 15px;min-height:42px;border:1px solid #d2e6ff!important;border-radius:9px;background:#1f3f66!important;box-shadow:none!important;color:#fff!important;font-size:13px;font-weight:700;line-height:1.4;text-shadow:none!important;max-width:100%}
.pepe-jcc-reveal-panel.is-opening .pepe-jcc-reveal-halo{animation:pepe-jcc-flare .85s ease-out both}
@keyframes pepe-jcc-dot{from{transform:translateY(7px) scale(.8);opacity:.5}to{transform:translateY(-7px) scale(1.18);opacity:1}}
@keyframes pepe-jcc-halo{from{transform:scale(.86);opacity:.5}to{transform:scale(1.12);opacity:1}}
@keyframes pepe-jcc-flare{0%{transform:scale(.4);opacity:.2;filter:blur(30px)}50%{transform:scale(1.5);opacity:1;filter:blur(8px)}100%{transform:scale(1);opacity:.7;filter:blur(12px)}}
@keyframes pepe-jcc-card-flip{0%{opacity:0;transform:rotateY(-85deg) scale(.68)}55%{opacity:1;transform:rotateY(6deg) scale(1.08)}100%{opacity:1;transform:rotateY(0deg) scale(1)}}
@media(max-width:640px){.pepe-jcc-reveal-panel{padding:14px 9px;min-height:410px;max-height:calc(100dvh - 22px)}.pepe-jcc-reveal-stage{height:min(46dvh,345px);min-height:210px}.pepe-jcc-reveal-card{width:min(78%,230px)}.pepe-jcc-reveal-card img{height:min(30dvh,235px)}.pepe-jcc-wrap .pepe-jcc-actions{gap:8px}}
/* Motion accessibility: in JS reduced-motion defaults the effect checkbox to OFF. Explicit ON overrides this default. */


/* v0.1.14: ガチャ結果カード全体を掲載記事へのクリック可能なリンクにする。
   AFFINGERの通常リンク装飾を抑え、キーボード操作時のフォーカスは残す。 */
.pepe-jcc-wrap .pepe-jcc-results a.pepe-jcc-card,
.pepe-jcc-wrap .pepe-jcc-results a.pepe-jcc-card:link,
.pepe-jcc-wrap .pepe-jcc-results a.pepe-jcc-card:visited{
  display:block!important;min-width:0;background:#122c4b!important;
  color:#fff!important;text-decoration:none!important;
  cursor:pointer;box-shadow:none!important;
  -webkit-tap-highlight-color:rgba(255,211,97,.18);
  transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease
}
.pepe-jcc-wrap .pepe-jcc-results a.pepe-jcc-card.sp{
  border:2px solid #f1bd45!important
}
.pepe-jcc-wrap .pepe-jcc-results a.pepe-jcc-card::before,
.pepe-jcc-wrap .pepe-jcc-results a.pepe-jcc-card::after{
  content:none!important;display:none!important
}
.pepe-jcc-wrap .pepe-jcc-results a.pepe-jcc-card:hover{
  border-color:#ffde80!important;box-shadow:0 0 0 2px rgba(255,209,99,.35)!important;
  transform:translateY(-2px)
}
.pepe-jcc-wrap .pepe-jcc-results a.pepe-jcc-card:focus-visible{
  outline:3px solid #fff!important;outline-offset:3px!important;
  border-color:#ffde80!important
}
.pepe-jcc-wrap .pepe-jcc-results a.pepe-jcc-card strong,
.pepe-jcc-wrap .pepe-jcc-results a.pepe-jcc-card small{
  text-decoration:none!important
}
@media(prefers-reduced-motion:reduce){
  .pepe-jcc-wrap .pepe-jcc-results a.pepe-jcc-card{transition:none}
  .pepe-jcc-wrap .pepe-jcc-results a.pepe-jcc-card:hover{transform:none}
}

/* Ver.0.1.15: 選手紹介へのページ内ジャンプ。固定ヘッダーとも重なりにくくする */
.pepe-jcc-player-anchor{display:block;height:0;position:relative;scroll-margin-top:100px;visibility:hidden}
