@font-face {
  font-family: "Galmuri11";
  src: url("../assets/fonts/galmuri/Galmuri11.woff2") format("woff2");
  font-weight: 400 550;
  font-display: block;
}
@font-face {
  font-family: "Galmuri11";
  src: url("../assets/fonts/galmuri/Galmuri11-Bold.woff2") format("woff2");
  font-weight: 551 900;
  font-display: block;
}
html[lang="ko"] { --font: "Pixelify", "Galmuri11", sans-serif; }
html[lang="ko"] body, html[lang="ko"] button, html[lang="ko"] input, html[lang="ko"] select {
  font-family: var(--font);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
html[lang="ko"] .box { line-height: 1.5; }
html[lang="ko"] .menu-item small { line-height: 1.45; }
html[lang="ko"] .toast { max-width: min(90vw, 680px); text-align: center; }
#btn-google { display: none !important; }
.kor-auth-help {
  color: #d5e0f5;
  font-size: 12px;
  line-height: 1.65;
  margin: 5px 0 13px;
  text-align: left;
}
.kor-auth-help[hidden], .kor-password-confirm[hidden] { display: none; }
.kor-auth-status { min-height: 1.65em; margin-bottom: 0; }
.kor-auth-status:empty { display: none; }
.kor-auth-status.is-match { color: #adf0b2; }
.kor-auth-status.is-error { color: #ffd0cf; }
#login-form .field[aria-invalid="true"] { border-color: #ffb9b5; }
#login-form > .row { margin-top: 22px; }
#login-form > .note { margin: 14px 0 18px; }
#scr-login a:not(.btn), #scr-login a:not(.btn):visited { color: #e5f0ff; text-decoration: underline; text-underline-offset: 4px; }
#scr-login a:not(.btn):hover { color: #ffe391; }
#scr-login a:not(.btn):focus-visible { outline: 2px solid #ffe391; outline-offset: 4px; border-radius: 2px; }
#login-err:empty { display: none; }
.kor-edition-credits { color: #d5e0f5; font-size: 12px; line-height: 1.7; margin-top: 18px; text-align: center; }
.kor-edition-credits p { margin: 4px 0; }
.kor-edition-credits strong { color: #fff; }
.kor-edition-credits a, .kor-edition-credits a:visited { color: #e5f0ff; text-underline-offset: 3px; }
.kor-edition-credits.compact { margin: 10px 0 0; text-align: left; }
.kor-server-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.kor-server-actions .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; text-decoration: none; }
.kor-server-actions .kor-support-shortcut { margin-left: auto; border-color: #fff0ac; box-shadow: 0 0 0 1px #e6c96755; }
.kor-support-shortcut[hidden] { display: none; }
dialog.kor-notices { position: fixed; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; width: min(600px, calc(100vw - 28px)); max-height: calc(100dvh - 36px); color: #eef4ff; margin: auto; padding: 20px; }
dialog.kor-notices:not([open]) { display: none; }
dialog.kor-notices::backdrop { background: #081022d9; }
.kor-notices-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: -20px; background: #263c77; z-index: 1; padding: 8px 0; }
.kor-notices-header h2 { margin: 0; }
.kor-notice { border-top: 1px solid #b3caff55; margin-top: 16px; padding-top: 12px; }
.kor-notice h3 { color: #ffe391; margin: 0 0 12px; }
.kor-notice p { line-height: 1.7; }
.kor-notices-body > .kor-notice:first-child { border-top: 0; margin-top: 0; padding-top: 8px; }
.kor-notice-archive > summary { min-height: 44px; padding: 10px 0; color: #e4edff; cursor: pointer; font-weight: 700; }
.kor-notice-archive > summary:focus-visible { outline: 3px solid #ffe391; outline-offset: 3px; }
.kor-notice-badge { display: inline-flex; align-items: center; margin-bottom: 10px; padding: 5px 10px; border-radius: 6px; background: #ffe391; color: #17244a; text-shadow: none; font-weight: 700; font-size: 14px; line-height: 1.5; }
.kor-notice .kor-notice-summary { padding: 12px 14px; border: 1px solid #8cafff; border-radius: 8px; background: #132449; color: #fff; font-weight: 700; }
.kor-notice-history { margin-top: 16px; border-top: 1px solid #b3caff55; border-bottom: 1px solid #b3caff55; }
.kor-notice-history summary { box-sizing: border-box; min-height: 44px; padding: 12px 0; color: #e4edff; cursor: pointer; font-weight: 700; }
.kor-notice-history summary:focus-visible { outline: 3px solid #ffe391; outline-offset: 3px; }
.kor-notice-history > div { padding-bottom: 8px; }
.kor-notice-gift { padding: 14px; border: 2px solid #e6c967; background: #132449; border-radius: 10px; }
.kor-notice-gift strong { display: block; color: #ffe391; }
.kor-notice-gift .btn { min-width: 140px; }
.kor-notices-message { color: #ffe391; line-height: 1.6; }
.kor-notices-message:empty { display: none; }
.kor-support .btn { display: inline-block; text-decoration: none; }
/* Mantener visible la etiqueta de actualizaciones en barra compacta. */
#topbar #btn-news > span { display: inline; }
/* Banner de noticias del menú, aislado de las pantallas de combate. */
.kor-news-banner { position:absolute;top:22px;left:24px;z-index:5;width:clamp(210px,17vw,270px);padding:7px;border:2px solid #afc2e1;border-radius:18px;background:#122348ee;box-shadow:0 8px 20px #0007; }
.kor-news-card { display:flex;align-items:center;gap:10px;width:100%;min-width:0;padding:8px;border:0;border-radius:10px;background:transparent;color:#fff;text-align:left;cursor:pointer; }
.kor-news-icon { flex:0 0 40px;display:flex;justify-content:center; }
.kor-news-text { display:flex;flex-direction:column;gap:4px;min-width:0; }
.kor-news-tag { align-self:flex-start;max-width:100%;padding:2px 6px;border-radius:5px;background:#ffe391;color:#17244a;font-size:11px;font-weight:700;text-shadow:none; }
.kor-news-text strong,.kor-news-text small { display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.4; }
.kor-news-text strong { font-size:14px; }.kor-news-text small { color:#d1def3;font-size:12px; }
.kor-news-nav { display:flex;justify-content:center;align-items:center;gap:6px;margin-top:4px; }
.kor-news-nav button { min-width:30px;min-height:30px;padding:2px 7px;border:1px solid #869fc7;border-radius:7px;background:#243e72;color:#fff;font-size:13px;cursor:pointer; }
.kor-news-nav button[aria-pressed=true] { border-color:#ffe391;color:#ffe391; }
.kor-news-count { min-width:40px;text-align:center;color:#d1def3;font-size:12px; }
.kor-news-banner button:focus-visible { outline:3px solid #ffe391;outline-offset:2px; }
@media (max-width:1200px) and (min-width:761px),(max-height:860px) and (min-height:521px) and (min-width:761px),(max-height:520px) {
 .kor-news-banner { top:18px;left:20px;width:clamp(220px,22vw,260px);padding:5px; }
 .kor-news-card { padding:3px;gap:7px; }.kor-news-text { gap:2px; }.kor-news-text strong { font-size:12px; }.kor-news-text small { display:none; }
 .kor-news-tag { font-size:10px;padding:1px 5px; }.kor-news-nav { margin-top:2px;gap:5px; }.kor-news-nav button { min-height:26px;min-width:28px;padding:1px 6px;font-size:12px; }
}
@media (max-width:760px) and (min-height:521px) {
 .kor-news-banner { position:relative;top:auto;left:auto;flex:0 0 auto;align-self:center;width:min(320px,calc(100% - 32px));margin-top:88px; }
 .kor-news-banner + .menu-left { padding-top:18px; }
}
@media (max-height:520px) {
 .kor-news-banner { --kor-news-width:min(290px,calc(100% - min(54vw,420px) - 16px));top:44px;left:calc((100% - min(54vw,420px) - var(--kor-news-width))/2);width:var(--kor-news-width);border-radius:12px; }
 .kor-news-card { min-height:40px;padding:0; }.kor-news-tag { display:none; }.kor-news-text strong { line-height:1.3; }
 .kor-news-banner + .menu-left { justify-content:flex-start;padding-top:138px; }
 .kor-news-banner + .menu-left .logo .t1 { font-size:24px; }
 .kor-news-banner + .menu-left #menu-partner { height:min(26vh,104px); }
}
@media (max-height:400px) {
 .kor-news-banner { top:38px; }.kor-news-banner + .menu-left { padding-top:124px; }
 .kor-news-banner + .menu-left .logo .t2 { display:none; }.kor-news-banner + .menu-left #menu-partner { height:min(21vh,76px); }
 .kor-news-banner + .menu-left { overflow-y:auto; }
 .kor-news-banner + .menu-left .partner-card .nm { display:inline-block;vertical-align:middle;margin-right:6px; }
 .kor-news-banner + .menu-left .kor-growth-partner { display:inline-block;vertical-align:middle;margin:3px 0; }
 .kor-news-banner + .menu-left .kor-growth-rating { padding:1px 5px;gap:4px;font-size:10px;line-height:1.3; }
 .kor-news-banner + .menu-left .kor-growth-label { display:none; }
}
.kor-updates-heading{color:#ffe391;margin:0 0 12px;font-size:18px}
.kor-update-archive{margin-top:18px;border-top:1px solid #8cafff66;padding-top:8px}
.kor-update-archive>summary{cursor:pointer;min-height:44px;padding:10px 0;color:#d4e1f6;font-weight:700}
.kor-update-archive>summary:focus-visible{outline:3px solid #ffe391;outline-offset:3px}

/* Keep long descriptions clear of the upgrade selection and purchase buttons. */
#upg-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
#upg-list > .upg-item { grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: 1fr auto; align-items: start; }
#upg-list > .upg-item > .ic { grid-column: 1; grid-row: 1; padding-top: 3px; }
#upg-list > .upg-item > :nth-child(2) { grid-column: 2; grid-row: 1; min-width: 0; }
#upg-list > .upg-item > :nth-child(2) > b { display: block; margin-bottom: 4px; }
#upg-list > .upg-item .pips { flex-wrap: wrap; }
#upg-list > .upg-item > .upg-btns { grid-column: 1 / -1; grid-row: 2; align-self: end; min-width: 0; justify-content: flex-end; margin-top: 4px; }
#upg-list > .upg-item .upg-btns .btn { min-width: 0; max-width: 100%; min-height: 36px; white-space: normal; }
#upg-list > .upg-item .upg-btns .btn:not([data-buy]) { flex: 1 1 140px; }

/* Indicadores de crecimiento y mejoras automáticas. */
.kor-growth-rating{display:inline-flex;align-items:center;justify-content:center;gap:6px;max-width:100%;padding:3px 8px;border:1px solid #738cb7;border-radius:7px;background:#132449;color:#eef4ff;font-size:12px;line-height:1.5;text-shadow:none;white-space:nowrap}
.kor-growth-rating .kor-growth-label{color:#d0def3}.kor-growth-stars{display:inline-flex;letter-spacing:1px;font-family:"Galmuri11",sans-serif}.kor-growth-stars .earned{color:#ffdc70}.kor-growth-stars .empty{color:#a9b9d3}.kor-growth-number{color:#ffdc70}
.kor-growth-partner{margin:3px 0}.kor-growth-detail{margin:7px 0}.kor-growth-detail>small{display:block;margin-top:4px;color:#d0def3;font-size:12px;line-height:1.5;text-shadow:none}
#dex-grid .cell>.kor-growth-rating{display:flex;width:max-content;margin:4px auto 0;padding:1px 3px;gap:3px;font-size:10px;border-color:#60799d}.kor-growth-rating.compact .kor-growth-stars{letter-spacing:0;font-size:11px}
.kor-growth{margin:14px 0;padding:14px;border:2px solid #6e89bf;border-radius:12px;background:#132750;color:#edf3ff}
.kor-growth-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.kor-growth-head h3{margin:0}.kor-growth .note{color:#c6d5ed;line-height:1.5;margin:8px 0}
.kor-growth progress{display:block;width:100%;height:12px;accent-color:#ffd35c;margin:10px 0}
.kor-growth-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,165px),1fr));gap:8px}
.kor-growth-card{display:flex;flex-direction:column;gap:6px;min-width:0;padding:12px;border:2px solid #687b9c;border-radius:10px;background:#1b2c47;line-height:1.4}
.kor-growth-card span{font-size:14px}.kor-growth-card small{color:#c8d3e4}.kor-growth-card.locked strong:before{content:'🔒 ';font-family:system-ui}
.kor-growth-card.unlocked{border-color:#f3ca51;background:#29436c}.kor-growth-card.unlocked small{color:#ffe28c}
.kor-growth-result{font-size:13px;color:#bfe2ff;line-height:1.5;margin-top:6px}.kor-growth-result b{display:block;color:#ffe28c}
@media(min-width:600px) and (max-height:500px){
 .kor-growth{padding:10px}.kor-growth-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
 .kor-growth-card{padding:8px;gap:4px}.kor-growth-card strong{font-size:14px}.kor-growth-card span,.kor-growth-card small{font-size:12px}
 .kor-growth .note{font-size:12px;margin:6px 0}.kor-growth-head h3{font-size:16px}
}
