@import url("./fonts.css?v=currency-language1");
.rakuenLanguage{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:6px;max-width:100%;min-width:0;font:500 12px/1.35 system-ui,sans-serif;margin:6px 0;color:inherit;box-sizing:border-box}
.rakuenLanguage span{white-space:nowrap;font:inherit}
.rakuenLanguage select{display:block;width:auto!important;min-width:0!important;max-width:220px;min-height:36px;padding:6px 24px 6px 8px!important;border:1px solid #8c795b!important;border-radius:6px!important;background:#152034!important;color:#fff0d1!important;font:500 12px/1.35 system-ui,sans-serif!important;text-transform:none}
#auth .rakuenLanguage{display:flex!important;margin-top:20px}
#seatNav .rakuenLanguage{margin:0;flex-shrink:1}#seatNav .rakuenLanguage>span{display:none}#seatNav .rakuenLanguage select{max-width:140px}
.unifiedSettingsBody>.rakuenLanguage{grid-column:1/-1;justify-content:space-between;padding:8px 2px;border-top:1px solid #756449}
html[data-rakuen-language] .topbar>div{flex-wrap:wrap;gap:8px}
html[data-rakuen-language] .unifiedFundingActions button{white-space:normal;overflow-wrap:anywhere;line-height:1.15}
html[data-rakuen-language] .creditDialog button,html[data-rakuen-language] .currencyCard button{white-space:normal;overflow-wrap:anywhere}
html[data-rakuen-language] .quickOptions label{white-space:normal;min-width:0;line-height:1.2}
html[data-rakuen-language] .hallHeader nav button{white-space:normal;line-height:1.1;min-width:0}
html[data-rakuen-language] .powerPresets button{padding-inline:4px;min-width:0;white-space:normal}
@media(max-width:600px){.rakuenLanguage select{max-width:170px}#seatNav #tabs{min-width:0}#seatNav .rakuenLanguage select{max-width:126px;font-size:11px!important}.topbar .rakuenLanguage span{display:none}html[data-rakuen-language] .actionRow button{font-size:clamp(11px,3.4vw,17px)}html[data-rakuen-language] .hallHeader nav button{font-size:clamp(10px,2.8vw,15px)}}
/* The host keeps its existing 36px navigation row and unchanged playfield geometry. */
body:has(#seatNav) #seatNav .rakuenLanguage select{min-height:28px;max-height:28px;padding:3px 22px 3px 7px!important}

/* UI-LANGUAGE2: native modal, SVG flags plus readable language names. */
.rakuenLanguage .languageTrigger{display:inline-flex!important;align-items:center;gap:7px;min-height:36px;max-width:100%;padding:6px 10px!important;border:1px solid #887248!important;border-radius:8px;background:#152034;color:#fff0d1;font:600 12px/1.3 system-ui;white-space:nowrap}
.rakuenLanguage img,.rakuenLanguageModal img{display:block;width:30px;height:20px;flex:none;border-radius:3px;box-shadow:0 0 0 1px #ffffff30;object-fit:cover}
#seatNav .rakuenLanguage .languageTrigger{min-height:30px;padding:4px 7px!important;max-width:150px;font-size:11px}
.rakuenLanguageModal{box-sizing:border-box;width:min(460px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);margin:auto;padding:20px;border:1px solid #b99b60;border-radius:16px;background:#122032;color:#f7eedb;font:14px/1.5 system-ui;overflow:auto;overscroll-behavior:contain;box-shadow:0 24px 90px #000b}
.rakuenLanguageModal::backdrop{background:#030911b8}.rakuenLanguageModal *{box-sizing:border-box}.rakuenLanguageModal [hidden]{display:none!important}
.rakuenLanguageModal header{display:flex;align-items:center;justify-content:space-between;gap:12px}.rakuenLanguageModal h2{font-size:21px;margin:0}.rakuenLanguageModal .languageClose{font-size:24px;min-width:40px;min-height:40px;color:inherit;background:transparent;border:1px solid #6d7887;border-radius:8px}
.rakuenLanguageModal .languageNote{font-size:12px;color:#bac9d9;margin:10px 0 18px;overflow-wrap:anywhere}
.rakuenLanguageModal .languageChoices{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.rakuenLanguageModal .languageChoices>button{display:flex;align-items:center;gap:10px;min-height:70px;min-width:0;padding:12px;border:1px solid #44566a;border-radius:10px;color:inherit;background:#192c42;text-align:left;white-space:normal;cursor:pointer}
.rakuenLanguageModal .languageChoices>button[aria-pressed=true]{border-color:#e7bf6c;background:#3b3425}.rakuenLanguageModal button:focus-visible,.rakuenLanguage .languageTrigger:focus-visible{outline:3px solid #a2e8ff;outline-offset:2px}
.rakuenLanguageModal strong,.rakuenLanguageModal small{display:block;overflow-wrap:anywhere}.rakuenLanguageModal strong{font-size:14px}.rakuenLanguageModal small{font-size:11px;color:#b9c8d7;margin-top:3px}.rakuenLanguageModal .languageCheck{margin-left:auto;color:#f3d58b;font-size:18px;flex:none}
@media(max-width:390px){.rakuenLanguageModal{padding:16px}.rakuenLanguageModal .languageChoices{grid-template-columns:1fr}}
