/* September review: explicit component styles resist inherited pill-button CSS. */
/* One layout for personal login notices and account bans. The overlay lives at body level. */
body .notice-game-overlay{position:fixed;inset:0;z-index:200000;display:grid;place-items:center;padding:18px;padding: max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));box-sizing:border-box;overflow:hidden}
body .notice-game-overlay .notice-game-box{box-sizing:border-box;width:min(680px,100%);max-width:100%;max-height:calc(100vh - 36px);max-height:calc(100dvh - max(12px,env(safe-area-inset-top)) - max(12px,env(safe-area-inset-bottom)));min-height:0;display:flex;flex-direction:column;padding:24px;overflow:hidden;text-align:center}
.notice-game-heading{flex:0 0 auto;min-width:0}
body .notice-game-heading .notice-game-icon{flex:none;width:64px;height:64px;box-sizing:border-box;margin:0 auto 12px;font-size:38px;line-height:1;font-family:Arial,sans-serif;text-shadow:none}
body .notice-game-heading h2{margin:0 0 12px;max-height:20vh;max-height:20dvh;overflow:auto;font-size:26px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;text-shadow:none}
.notice-game-content{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
body .notice-game-box .notice-game-content>p{margin:0;color:#f0f2fa;font-size:18px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere;text-align:left;text-shadow:none}
.notice-game-support{margin-top:16px;min-width:0}
.notice-game-support>strong{display:block;font-size:16px;line-height:1.5;margin-bottom:8px}
body .notice-game-support .contact-help-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
body .notice-game-support .contact-channel{min-width:0;padding:10px 8px;min-height:48px;box-sizing:border-box;border-radius:12px;gap:7px;display:flex;align-items:center;justify-content:center;white-space:normal}
body .notice-game-support .contact-channel>span{min-width:0;overflow-wrap:anywhere}
body .notice-game-support .contact-channel b{font-size:15px;line-height:1.4}
body .notice-game-support .contact-channel small,body .notice-game-support .contact-channel i{display:none}
body .notice-game-support .contact-channel-icon{width:24px;height:24px;flex:0 0 24px}
body .notice-game-support .contact-channel-icon img{width:100%;height:100%;object-fit:contain}
.notice-game-actions{flex:0 0 auto;display:grid;margin-top:18px;gap:10px}
body .notice-game-box .notice-game-confirm{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:48px;margin:0;padding:12px 18px;font-size:17px;line-height:1.4;text-align:center;text-decoration:none;white-space:normal;overflow-wrap:anywhere;background:linear-gradient(100deg,#fff0ae,#ffb3d4,#b08aff)!important;color:#261630!important;border:1px solid #fff4bd;border-radius:999px}
.notice-game-content:focus-visible,.notice-game-confirm:focus-visible{outline:2px solid #ffe4a0;outline-offset:-3px}
@media(max-width:640px){body .notice-game-overlay .notice-game-box{padding:20px 16px}body .notice-game-heading h2{font-size:24px}}
@media(max-height:540px){body .notice-game-overlay .notice-game-box{padding:14px 16px}body .notice-game-heading .notice-game-icon{width:44px;height:44px;font-size:28px;margin-bottom:8px}body .notice-game-heading h2{font-size:22px;margin-bottom:8px}.notice-game-actions{margin-top:10px}body .notice-game-box .notice-game-confirm{min-height:44px;padding:8px 14px}}






body .story-library-grid .story-library-card{position:relative;display:grid!important;place-items:center!important;aspect-ratio:16/10;min-height:190px;height:auto!important;max-height:none;border-radius:16px!important;padding:0!important;overflow:hidden;text-align:center!important;background:#111e31!important}
body .story-library-grid .story-library-card:before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#03091430,#03091499);z-index:1;pointer-events:none}
body .story-library-grid .story-library-card img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover;aspect-ratio:auto;border-radius:0!important}
body .story-library-grid .story-library-card .story-card-copy{position:relative;z-index:2;display:grid;gap:12px;place-items:center;width:100%;padding:20px;box-sizing:border-box;white-space:normal}
body .story-library-grid .story-library-card strong{padding:0!important;font-size:clamp(20px,2.5vw,25px)!important;line-height:1.45;color:#fff!important;text-shadow:0 2px 5px #000;overflow-wrap:anywhere}
body .story-library-grid .story-library-card .story-card-copy>span{padding:0!important;font-size:16px!important;color:#ffe4a0!important;text-shadow:0 1px 3px #000}
.admin-body .ad-link-preview{width:min(100%,320px);aspect-ratio:9/16;min-height:0;height:auto;max-height:none;margin:16px auto;box-sizing:border-box}
.admin-body .ad-link-preview video,.admin-body .ad-link-preview iframe,.admin-body .ad-link-preview img{width:100%;height:100%;max-height:none;object-fit:contain;aspect-ratio:9/16;display:block}
.exchange-tag{display:block!important;border:1px solid var(--tag-color,#e6c879);border-left-width:3px;border-radius:8px;background:rgba(0,0,0,.22);padding:10px 12px!important;margin:9px 0!important;line-height:1.7;overflow-wrap:anywhere;white-space:pre-wrap;box-sizing:border-box}
@media(max-width:640px){.story-library-grid{grid-template-columns:1fr!important}}

/* Map hints use the same accessible notice structure; no square theme artwork frame. */
body .notice-game-overlay[hidden]{display:none!important}
body #lockModal .notice-game-box{width:min(560px,100%);background:linear-gradient(155deg,#182338,#0b1321 74%)!important;border:1px solid #c6a55c!important;border-radius:18px!important;box-shadow:0 28px 90px #000b!important}
body #lockModal .notice-game-box::before,body #lockModal .notice-game-box::after{content:none!important;display:none!important}
