/* 240px WebP copies of sejong-reference-v1.webp and duel-card-back-v1.webp;
   original artwork is unchanged. Combined transfer size: 38,572 bytes. */
.cards-page .access-gate{position:relative;overflow:hidden;max-width:600px;margin:36px auto 64px;padding:34px 24px 38px;border:1px solid #c9ad70;background:radial-gradient(ellipse at 50% 26%,#296157 0,#123d38 50%,#092d2d 100%);color:#fff8e3;box-shadow:0 14px 36px #123d3818}
.access-gate .gate-kicker{font-size:12px;font-weight:800;letter-spacing:.18em;color:#e7ca88;margin:0 0 8px}
.access-gate .gate-art{position:relative;width:min(100%,310px);height:248px;margin:0 auto 16px}
.gate-art .loading-card{position:absolute;width:112px;aspect-ratio:2/3;top:46px;left:calc(50% - 56px);border:2px solid #d8b575;border-radius:9px;overflow:hidden;background:#f9f2dd;box-shadow:0 10px 18px #001b2860;transform-origin:50% 90%}
.gate-art .loading-card img{display:block;width:100%;height:100%;object-fit:contain}
.gate-art .loading-card:first-child{transform:translateX(-67px) rotate(-18deg)}
.gate-art .loading-card:last-child{transform:translateX(67px) rotate(18deg)}
.gate-art .loading-card.is-front{width:130px;left:calc(50% - 65px);top:22px;z-index:1;display:flex;flex-direction:column;border-width:3px;box-shadow:0 12px 28px #001b2870}
.loading-card.is-front b{flex:none;text-align:center;padding:5px 0;color:#543d24;background:linear-gradient(100deg,#edd393,#fff0c6,#dec080);font-size:13px;line-height:1.2;border-bottom:1px solid #b3945d}
.loading-card.is-front img{flex:1;min-height:0}
.cards-page .access-gate h1{margin:6px 0 12px;font-size:clamp(22px,4vw,28px);line-height:1.45;word-break:keep-all;text-wrap:balance;color:#fff8e3}
.cards-page .access-gate p:not(.gate-kicker){color:#c4d9d1;font-size:14px;margin:0 0 24px;word-break:keep-all}
.gate-loading-dots{display:none;justify-content:center;gap:7px;margin:0 0 18px}
.gate-loading-dots i{width:6px;height:6px;border-radius:50%;background:#e8c783;animation:card-loading-dot 1.5s ease-in-out infinite}
.gate-loading-dots i:nth-child(2){animation-delay:.2s}.gate-loading-dots i:nth-child(3){animation-delay:.4s}
.access-gate[data-state=loading] .gate-loading-dots{display:flex}
.access-gate[data-state=loading] .loading-card.is-front{animation:card-loading-float 2.8s ease-in-out infinite}
.access-gate .primary,.access-gate .secondary{background:#f4d899;color:#173f38;border:1px solid #e3c482}
@keyframes card-loading-float{50%{transform:translateY(-7px)}}
@keyframes card-loading-dot{50%{opacity:.35;transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){.access-gate[data-state=loading] .loading-card.is-front,.gate-loading-dots i{animation:none}}
@media(max-width:380px){.cards-page .access-gate{padding-inline:16px}.gate-art .loading-card:first-child{transform:translateX(-59px) rotate(-16deg)}.gate-art .loading-card:last-child{transform:translateX(59px) rotate(16deg)}}
/* 2026-10-02 시안: 문(로그인 전·불러오는 중·오류)을 하나의 초록 카드로 — 주 단추 하나 + 글자 링크 하나 */
.cards-page .access-gate{display:flex;flex-direction:column;align-items:center;max-width:440px;margin:16px auto 20px;padding:26px 22px 22px;border:0;border-radius:22px;background:radial-gradient(120% 80% at 50% 0%,#1f5b52 0%,#0f3a35 70%);text-align:center;box-shadow:0 10px 28px #0f3a3524}
.access-gate .gate-kicker{letter-spacing:.12em;color:#f3d9a0;font-weight:700}
.access-gate .gate-art{margin:10px auto 6px}
.cards-page .access-gate[data-state=signed-out] h1{margin:14px 0 0;font-family:Jua,'Noto Sans KR',sans-serif;font-weight:400;font-size:28px;line-height:1.25;white-space:pre-line;color:#fff}
.cards-page .access-gate[data-state=signed-out] p:not(.gate-kicker){margin:10px 0 0;font-size:14px;line-height:1.65;color:rgba(255,255,255,.82)}
.cards-page .access-gate #gate-login.primary{display:flex;align-items:center;justify-content:center;width:100%;max-width:360px;min-height:56px;margin:24px 0 0;padding:0 16px;border:0;border-radius:14px;background:#f3d9a0;color:#3d2a08;font-size:17px;font-weight:700;text-decoration:none;box-shadow:none}
@media (hover: hover) and (pointer: fine) { .cards-page .access-gate #gate-login.primary:hover {filter:brightness(.95)} }
.cards-page .access-gate .gate-text-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin-top:6px;padding:0 8px;color:#f3d9a0;font-size:14px;font-weight:700;text-decoration:none}
@media (hover: hover) and (pointer: fine) { .cards-page .access-gate .gate-text-link:hover {color:#fff;text-decoration:underline;text-underline-offset:3px} }
.cards-page .access-gate :is(#gate-login,.gate-text-link,#gate-retry):focus-visible{outline:3px solid #f3d9a0;outline-offset:2px}
@media(max-width:600px){.cards-page .access-gate{margin:16px 0 18px}}
/* 문이 보일 때만: 능력치 안내 한 줄을 카드 바로 아래로 (로그인한 카드 화면의 바닥글은 그대로) */
.cards-page:has(#access-gate:not([hidden])) footer{max-width:440px;margin:0 auto;padding:0 20px 110px;border-top:0;font-size:12px;color:#66706f}
