body.bi-page{background:#edf6fb;color:#183b56;font-family:system-ui,-apple-system,'Apple SD Gothic Neo',sans-serif}
.bi-page .bi-old-header,.bi-page main>.intro[hidden],.bi-page .bi-player-row>[hidden]{display:none!important}
.bi-page .bi-shell{position:relative;z-index:5;display:block;flex:0 0 auto;max-width:none;width:100%;height:auto;margin:0;padding:0;border:0;background:#f9fcff;box-shadow:0 1px 0 #d4e5ee;font-family:system-ui,-apple-system,'Apple SD Gothic Neo',sans-serif}
.bi-shell .bi-topbar{height:58px;max-width:1240px;margin:0 auto;padding:0 24px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.bi-shell .bi-brand{display:flex;align-items:center;gap:10px;color:#173d5a!important;text-decoration:none!important;letter-spacing:0!important;font-size:16px!important;line-height:1.25}
.bi-shell .bi-brandmark{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#217fad;color:white!important;font-size:23px!important;margin:0!important;font-weight:900!important}
.bi-shell .bi-brand b{font-size:16px;letter-spacing:-.6px;font-weight:850}.bi-shell .bi-brand small{display:block;margin:3px 0 0;color:#7896aa;font-size:8px;letter-spacing:2px;line-height:1.2}
.bi-shell .bi-brand>span:last-child{display:block;margin:0;font-size:inherit;color:inherit;font-weight:inherit;letter-spacing:0}.bi-caption{font-size:11px;color:#7692a5}
.bi-shell .bi-game-nav{display:flex!important;gap:5px!important;justify-content:center!important;align-items:center;flex-wrap:nowrap!important;width:100%;max-width:none;margin:0!important;padding:6px 16px!important;overflow-x:auto;background:#eaf4fa!important;border:0!important;scrollbar-width:thin}
.bi-shell .bi-game-nav a{display:flex!important;align-items:center;justify-content:center;flex:0 0 auto!important;gap:6px!important;padding:8px 16px!important;min-height:35px!important;background:transparent!important;border:1px solid transparent!important;border-radius:9px!important;color:#50748b!important;font:700 12px system-ui,sans-serif!important;text-decoration:none!important;white-space:nowrap;box-shadow:none!important}
.bi-shell .bi-game-nav a span{font-size:15px!important}.bi-shell .bi-game-nav a[aria-current=page]{background:#1d7fac!important;color:white!important;border-color:#156d99!important}.bi-shell .bi-game-nav a:hover{background:#d7eaf5!important}.bi-shell .bi-game-nav a[aria-current=page]:hover{background:#196f99!important}
.bi-shell .bi-titlebar{max-width:1240px;margin:auto;min-height:73px;padding:12px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.bi-shell .bi-title h1{font:850 25px/1.25 system-ui,sans-serif;margin:0;color:#193b55;letter-spacing:-1px}.bi-shell .bi-title p{font:12px/1.5 system-ui,sans-serif;color:#7a95a7;margin:5px 0 0}
.bi-shell .bi-actions,.bi-shell .bi-actions>div,.bi-shell .bi-actions>nav{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin:0;padding:0;flex-wrap:wrap;background:none;border:0}
.bi-shell .bi-actions button{display:inline-flex!important;align-items:center;justify-content:center;min-height:34px;padding:7px 11px;border:1px solid #d7e6ef;border-radius:9px;box-shadow:none;background:#f0f7fb;color:#3e6883;font:700 11px system-ui,sans-serif;line-height:1.2;cursor:pointer}
.bi-shell .bi-actions button.icon{width:34px;padding:7px}.bi-shell .bi-actions button svg{width:18px;height:18px}.bi-shell .bi-actions #rankingButton{background:#e5f1fa;color:#176c99;border-color:#b9d7e8}
.bi-shell .bi-actions .offline,.bi-shell .bi-actions .public-label,.bi-shell #marathonTab,.bi-shell #gameSelect{display:none!important}
.bi-shell a:focus-visible,.bi-shell button:focus-visible{outline:3px solid #e5ac3d;outline-offset:2px}
.bi-page main.bi-game-content{width:100%;max-width:1240px;margin:0 auto;padding:18px 24px 24px;box-sizing:border-box}.bi-page[data-shell-game=rpg] main.bi-game-content{padding:14px 18px 12px;min-height:0;flex:1}.bi-page .bi-player-row{justify-content:flex-end;margin:0 0 12px}
.bi-page[data-shell-game=volley] .court{max-height:calc(100dvh - 356px)}
#volleyRanking{width:min(640px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 32px);padding:22px;border:1px solid #d9e7f0;border-radius:20px;color:#193b55;background:#fff;box-shadow:0 24px 100px #18374b40;overflow:auto}
#volleyRanking::backdrop{background:#142b4166;backdrop-filter:blur(3px)}#volleyRanking .vr-heading{display:flex;justify-content:space-between;align-items:center;gap:15px}#volleyRanking .vr-heading small{font-size:9px;color:#6d99b4;letter-spacing:2px}#volleyRanking h2{font-size:23px;margin:5px 0 0}#closeRanking{border-radius:50%;padding:7px 11px;background:#eff5f8;color:#607b8c}
#volleyRanking .vr-rules{padding:12px;background:#edf6fc;border-radius:10px;font-size:12px;color:#337397;margin:17px 0 7px}#volleyRanking .vr-help{color:#8399a7;font-size:11px;margin:0 0 15px}#volleyRanking .vr-table{display:block;max-height:50dvh;overflow:auto}#volleyRanking table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}#volleyRanking th{position:sticky;top:0;background:#f7fafc;color:#7290a4;font-weight:600;padding:10px 8px;text-align:right}#volleyRanking td{padding:12px 8px;border-bottom:1px solid #eef3f7;text-align:right}#volleyRanking th:nth-child(2),#volleyRanking td:nth-child(2){text-align:left;white-space:normal;overflow-wrap:anywhere}#volleyRanking td:nth-child(3){font-weight:800;color:#197dad}#volleyRanking .vr-me{background:#fff8e4}#volleyRankingStatus{font-size:11px;color:#7c94a3;line-height:1.6}#volleyRanking .vr-footer{display:flex;align-items:center;justify-content:space-between;gap:8px}#volleyRanking .vr-footer small{font-size:10px;color:#8298a6}
@media(max-width:700px){.bi-shell .bi-topbar{height:48px;padding:0 14px}.bi-caption{font-size:9px}.bi-shell .bi-brand b{font-size:14px}.bi-shell .bi-game-nav{justify-content:flex-start!important;padding:5px 10px!important}.bi-shell .bi-game-nav a{padding:7px 11px!important;font-size:11px!important;min-height:32px!important}.bi-shell .bi-titlebar{padding:10px 14px;min-height:64px;gap:8px}.bi-shell .bi-title h1{font-size:22px}.bi-shell .bi-title p{display:none}.bi-shell .bi-actions{max-width:60%}.bi-shell .bi-actions button{font-size:10px;padding:6px 8px;min-height:31px}.bi-shell .bi-actions .nav{gap:4px}.bi-page main.bi-game-content{padding:12px 10px}.bi-page[data-shell-game=rpg] main.bi-game-content{padding:7px}.bi-page[data-shell-game=volley] .court{height:calc(100dvh - 363px);min-height:200px;max-height:430px}.bi-page .bi-player-row{margin-bottom:8px}}
@media(max-height:620px) and (min-width:600px){.bi-shell .bi-topbar{height:37px}.bi-shell .bi-caption,.bi-shell .bi-brand small,.bi-shell .bi-title p{display:none}.bi-shell .bi-game-nav{padding:3px 12px!important}.bi-shell .bi-game-nav a{padding:4px 11px!important;min-height:27px!important}.bi-shell .bi-titlebar{min-height:43px;padding:5px 14px}.bi-shell .bi-title h1{font-size:20px}.bi-page main.bi-game-content{padding:6px 14px}.bi-page[data-shell-game=volley] .court{height:calc(100dvh - 250px);min-height:120px;max-height:none}.bi-page[data-shell-game=rpg] main.bi-game-content{padding:5px 12px}.bi-page .bi-player-row{margin-bottom:4px}}
/* Mini Game Kingdom: a cheerful shared identity across every game. */
body.bi-page{background:#f7f5ff;color:#40375c}
.bi-page .bi-shell{background:#fffdf7;box-shadow:0 2px 0 #e9e0f6}
.bi-shell .bi-topbar{height:64px}
.bi-shell .bi-brand{gap:10px;color:#6546a1!important}
.bi-shell .bi-brandmark{display:block;width:44px;height:44px;border-radius:15px;background:transparent}
.bi-shell .bi-brand b{font-family:ui-rounded,'Apple SD Gothic Neo',system-ui,sans-serif;font-size:22px;letter-spacing:-1px;font-weight:900}
.bi-shell .bi-brand .bi-brand-kingdom{display:inline;color:#e18b25;margin:0;font:inherit;letter-spacing:inherit}
.bi-shell .bi-brand small{color:#a294b6;font-size:8px;letter-spacing:2px}
.bi-shell .bi-caption{color:#9786ad;background:#f3edf9;border-radius:20px;padding:7px 12px;font-size:11px}
.bi-shell .bi-game-nav{background:#f3edfc!important;border-top:1px solid #ece3f5!important;border-bottom:1px solid #e6ddf2!important;padding:7px 16px!important;gap:7px!important}
.bi-shell .bi-game-nav a{color:#716184!important;border-radius:13px!important;padding:8px 15px!important;gap:7px!important;border:1px solid transparent!important;transition:background .15s,box-shadow .15s}
.bi-shell .bi-game-nav a span{font-size:19px!important;line-height:1.25}
.bi-shell .bi-game-nav a:hover{background:#fffaf0!important}
.bi-shell .bi-game-nav a[aria-current=page]{background:#ffdd70!important;color:#594168!important;border-color:#e8bd51!important;box-shadow:0 3px 0 #e7bd5770!important}
.bi-shell .bi-game-nav a[aria-current=page]:hover{background:#ffe58c!important}
.bi-shell .bi-title h1{color:#514065;font-family:ui-rounded,'Apple SD Gothic Neo',system-ui,sans-serif;letter-spacing:-.8px}
.bi-shell .bi-title p{color:#95869f}
.bi-shell .bi-actions button{border-color:#e2d9ed;background:#f7f2fc;color:#75608b;border-radius:11px}
.bi-shell .bi-actions #rankingButton{background:#fff0b9;border-color:#e8cb75;color:#806126}
.bi-shell a:focus-visible,.bi-shell button:focus-visible{outline-color:#8a6acf}
@media(max-width:700px){.bi-shell .bi-topbar{height:57px;padding:0 12px}.bi-shell .bi-brandmark{width:38px;height:38px}.bi-shell .bi-brand b{font-size:19px}.bi-shell .bi-brand small{font-size:6px;letter-spacing:1.5px}.bi-shell .bi-caption{font-size:8px;padding:5px 7px}.bi-shell .bi-game-nav{padding:6px 9px!important;gap:5px!important}.bi-shell .bi-game-nav a{padding:7px 10px!important;border-radius:11px!important}.bi-shell .bi-game-nav a span{font-size:16px!important}.bi-shell .bi-titlebar{min-height:61px}}
@media(max-width:350px){.bi-shell .bi-caption{display:none}}
@media(max-height:620px) and (min-width:600px){.bi-shell .bi-topbar{height:41px}.bi-shell .bi-titlebar{min-height:43px}.bi-shell .bi-brandmark{width:31px;height:31px}.bi-shell .bi-brand b{font-size:18px}.bi-shell .bi-game-nav{padding:3px 12px!important}.bi-shell .bi-game-nav a span{font-size:16px!important}}

.bi-member-nav{display:flex;align-items:center;gap:15px;font:700 12px system-ui,sans-serif;white-space:nowrap}.bi-member-nav>a{color:#7d6395;text-decoration:none;display:inline-flex;align-items:center;gap:6px;min-height:36px}.bi-member-nav .bi-account{border:1px solid #e7d8f0;border-radius:22px;padding:4px 11px;background:#f6effb}.bi-member-nav .mk-avatar{display:inline-flex;width:26px;height:26px;border-radius:50%;overflow:hidden;align-items:center;justify-content:center;font-size:21px;background:#eee3f8}.bi-member-nav .mk-avatar img{width:100%;height:100%;object-fit:cover}.bi-shell .bi-titlebar[hidden],body>.game-select[hidden]{display:none!important}@media(max-width:480px){.bi-member-nav{gap:9px;font-size:11px}.bi-member-nav .bi-account{padding:4px 7px}.bi-member-nav .bi-account:has(.mk-avatar)>span:last-child{display:none}.bi-shell .bi-brand b{font-size:17px}.bi-shell .bi-brandmark{width:31px;height:31px}.bi-shell .bi-brand{gap:6px}.bi-shell .bi-topbar{gap:7px}.bi-shell .bi-brand small{font-size:5px;letter-spacing:1px}}

/* Shared entry dialog: clear labels, large controls, and no game input behind it. */
.mk-nickname-dialog{box-sizing:border-box;width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;margin:auto;padding:28px;border:1px solid #e6daef;border-radius:24px;background:#fffdf9;color:#514065;box-shadow:0 20px 70px #37234933;font:14px/1.6 system-ui,-apple-system,sans-serif;text-align:left}
.mk-nickname-dialog::backdrop{background:#30203c99}
.mk-nickname-dialog .mk-entry-icon{font-size:36px;line-height:1.2;margin-bottom:12px}
.mk-nickname-dialog h2{margin:0 0 8px;font-size:23px;letter-spacing:-.7px;color:#514065}
.mk-nickname-dialog .mk-entry-help{margin:0 0 22px;color:#897996;font-size:13px}
.mk-nickname-dialog label{display:block;margin-bottom:7px;font-weight:750}
.mk-nickname-dialog input{box-sizing:border-box;width:100%;min-height:48px;padding:11px 13px;border:1px solid #dacde7;border-radius:12px;background:#fff;color:#40334e;font:16px system-ui,sans-serif}
.mk-nickname-dialog input:focus-visible{outline:3px solid #c2a9ec;outline-offset:2px}
.mk-nickname-dialog .mk-entry-status{min-height:38px;margin:10px 0;color:#897996;font-size:12px;line-height:1.6}
.mk-nickname-dialog .mk-entry-submit{width:100%;min-height:48px;padding:12px;border:0;border-radius:12px;background:#8060a3;color:#fff;font:750 15px system-ui,sans-serif;cursor:pointer}
.mk-nickname-dialog .mk-entry-submit:hover{background:#6e4e92}
.mk-nickname-dialog .mk-entry-links{display:flex;justify-content:space-between;gap:12px;margin-top:14px}
.mk-nickname-dialog .mk-entry-links a{display:flex;align-items:center;min-height:44px;color:#806791;text-decoration:none;font-size:12px}
.mk-nickname-dialog button:focus-visible,.mk-nickname-dialog a:focus-visible{outline:3px solid #c2a9ec;outline-offset:3px}
@media(max-width:480px){.mk-nickname-dialog{padding:24px}.mk-nickname-dialog h2{font-size:21px}}

/* Hide retired entries in legacy headers before the shared shell mounts. */
.game-select a[data-game="jump"],.game-select a[data-game="mole"],.game-select a[data-game="memory"],.game-select a[href="/rpg.html"],.game-select a[href="/rpg"]{display:none!important}

.mk-game-account-notice{font-size:13px;line-height:1.6;padding:8px 12px;margin:0 0 12px;background:#f0f7ff;border-radius:10px;color:#34516a}.mk-game-account-notice a{font-weight:700;margin-left:6px}.mk-profile-nickname{display:inline-block;font-weight:700;padding:6px 0}

.bi-guide-link{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 12px;border:1px solid #cddcce;border-radius:10px;background:#f4f8ed;color:#2e6046;text-decoration:none;font-size:12px;white-space:nowrap;box-sizing:border-box}.bi-guide-link:focus-visible{outline:3px solid #318264;outline-offset:3px}
