/* System fonts contain the full Vietnamese alphabet, including combined accents. */
/* Legacy widgets set their own font shorthand, including in dynamically added styles.
   Override the family only: preserve each widget's size, weight and icon geometry. */
html[lang="vi"] body,
html[lang="vi"] body * {
  font-family: "Segoe UI", Arial, sans-serif !important;
}
html[lang="vi"] body,
html[lang="vi"] button,
html[lang="vi"] input,
html[lang="vi"] select,
html[lang="vi"] textarea,
html[lang="vi"] h1,
html[lang="vi"] h2,
html[lang="vi"] h3,
html[lang="vi"] .brand,
html[lang="vi"] .lobby-bottom,
html[lang="vi"] .native-ann-title,
html[lang="vi"] #shopDialog .ns-stage,
html[lang="vi"] .native-shop .ns-text,
html[lang="vi"] .native-shop .ns-tooltip,
html[lang="vi"] .native-shop span,
html[lang="vi"] .native-shop p,
html[lang="vi"] .native-shop strong,
html[lang="vi"] .augment-card,
html[lang="vi"] .augment-card strong,
html[lang="vi"] .augment-card p,
html[lang="vi"] .augment-rarity {
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: normal;
}
html[lang="vi"] .summoner-loadout select { min-width: 120px; }
html[lang="vi"] .augment-card p { overflow-wrap: anywhere; }
html[lang="vi"] .shop-tabs { gap: 12px; }

/* Lobby-only Hextech theme. Stage visibility and gameplay remain in lobby-flow. */
html[lang="vi"] #lobby {
  --lobby-gold: #e6c989;
  --lobby-text: #e5eff4;
  --lobby-muted: #a8bbc7;
  padding: 24px 16px 16px;
  gap: 16px;
  background: radial-gradient(ellipse at 50% 15%, #173d5266, #020a13e8 75%);
  overflow: auto;
}
html[lang="vi"] #lobby .lobby-panel {
  width: min(1080px, 100%);
  max-height: calc(100dvh - 152px);
  border: 1px solid #6b6244;
  border-radius: 18px;
  background: radial-gradient(ellipse at 100% 0, #17354488, transparent 55%), #081723;
  box-shadow: 0 28px 90px #0009, inset 0 1px #f3d89922;
  scrollbar-width: thin;
  scrollbar-color: #597584 #0a1924;
}
html[lang="vi"] #lobby[data-online-stage="identity"] .lobby-panel,
html[lang="vi"] #lobby[data-online-stage="browser"] .lobby-panel { max-width: 980px; }
html[lang="vi"] #lobby .lobby-top {
  padding: 20px 28px;
  background: linear-gradient(100deg, #16334099, #09182433);
  border-bottom: 1px solid #bda56a33;
  color: var(--lobby-gold);
  font-weight: 650;
  font-size: 14px;
}
html[lang="vi"] #lobby .lobby-top span:first-child::before { content: "❖"; margin-right: 12px; color: #75d5e4; }
html[lang="vi"] #lobby .lobby-top span:last-child { color: var(--lobby-muted); font-size: 11px; font-weight: 400; }
html[lang="vi"] #lobby .lobby-mode-bar { padding: 20px 28px 0; gap: 12px; flex-wrap: wrap; }
html[lang="vi"] #lobby .lobby-mode-bar button { border-radius: 8px; min-height: 44px; }
html[lang="vi"] #lobby #lobbyResourceStatus { color: #add9d5; font-size: 12px; }
html[lang="vi"] #lobby #lobbyResourceStatus::before { content: "◇"; margin-right: 7px; }
html[lang="vi"] #lobby .lobby-flow-heading { padding: 26px 28px 24px; }
html[lang="vi"] #lobby .lobby-flow-heading h2 { color: #f3e5c4; font-size: clamp(25px, 3vw, 34px); font-weight: 700; margin-bottom: 10px; }
html[lang="vi"] #lobby .lobby-flow-heading p { color: var(--lobby-muted); font-size: 14px; line-height: 1.6; }
html[lang="vi"] #lobby .online-lobby { background: transparent; border-top: 0; padding: 0 28px 24px; gap: 18px; }
html[lang="vi"] #lobby .online-name-step,
html[lang="vi"] #lobby .online-room-step,
html[lang="vi"] #lobby .online-room-list {
  padding: 20px;
  border: 1px solid #365260;
  border-radius: 12px;
  background: linear-gradient(135deg, #13303b88, #091a27bb);
  min-width: 0;
}
html[lang="vi"] #lobby .online-step-label { color: var(--lobby-gold); font-size: 13px; font-weight: 650; letter-spacing: 0; }
html[lang="vi"] #lobby .online-name-step { flex-wrap: wrap; gap: 14px; }
html[lang="vi"] #lobby .online-name-step #onlineName { max-width: none; flex: 1 1 200px; }
html[lang="vi"] #lobby .online-row input:not([type="checkbox"]),
html[lang="vi"] #lobby .online-row select,
html[lang="vi"] #lobby .summoner-loadout select {
  height: 44px;
  background: #06121e;
  color: var(--lobby-text);
  border: 1px solid #486170;
  border-radius: 7px;
  padding: 0 12px;
  font-size: 14px;
}
html[lang="vi"] #lobby input::placeholder { color: #93a8b6; opacity: 1; }
html[lang="vi"] #lobby .online-row button,
html[lang="vi"] #lobby #onlineConnect,
html[lang="vi"] #lobby .online-actions button {
  min-height: 44px;
  height: auto;
  padding: 10px 18px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
}
html[lang="vi"] #lobby button:not(:disabled):hover { border-color: #b7a16a; background-color: #244351; }
html[lang="vi"] #lobby button:focus-visible,
html[lang="vi"] #lobby input:focus-visible,
html[lang="vi"] #lobby select:focus-visible { outline: 2px solid #89e3ef; outline-offset: 3px; }
html[lang="vi"] #lobby button:disabled { opacity: .6; cursor: not-allowed; }
html[lang="vi"] #lobby #onlineConnect:disabled { opacity: 1; color: #baded7; background: #11312f; border-color: #3b655d; font-size: 12px; }
html[lang="vi"] #lobby #onlineCreate,
html[lang="vi"] #lobby #onlineStart:not(:disabled) {
  background: linear-gradient(115deg, #f0d69b, #bea064);
  color: #13222c;
  border-color: #ead299;
  box-shadow: 0 4px 16px #c4a36022;
}
html[lang="vi"] #lobby #onlineCreate:hover,
html[lang="vi"] #lobby #onlineStart:not(:disabled):hover { filter: brightness(1.1); }
html[lang="vi"] #lobby[data-online-stage="browser"] .online-lobby { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: start; }
html[lang="vi"] #lobby[data-online-stage="browser"] .online-name-step,
html[lang="vi"] #lobby .online-room-meta { grid-column: 1 / -1; }
html[lang="vi"] #lobby[data-online-stage="browser"] .online-room-step { display: grid; grid-template-columns: 1fr; gap: 14px; }
html[lang="vi"] #lobby .online-room-step #onlineRoomName { width: 100%; }
html[lang="vi"] #lobby .online-cap { height: auto; min-height: 44px; border: 0; padding: 0; gap: 9px; color: var(--lobby-muted); font-size: 13px; white-space: normal; }
html[lang="vi"] #lobby .online-cap input[type="checkbox"] { width: 18px; height: 18px; flex: none; accent-color: #d8bc7c; }
html[lang="vi"] #lobby .online-room-list { gap: 18px; align-self: stretch; }
html[lang="vi"] #lobby #onlineRooms { gap: 10px; max-height: 260px; }
html[lang="vi"] #lobby .online-room-empty { display: grid; place-content: center; min-height: 204px; border: 1px dashed #46606e; border-radius: 8px; color: #afc3ce; font-size: 14px; line-height: 1.7; padding: 22px; background: #07162066; }
html[lang="vi"] #lobby .online-room-empty::before { content: "◇"; display: block; font-size: 38px; line-height: 1.2; color: #759ba8; margin-bottom: 12px; }
html[lang="vi"] #lobby .online-room-card { border-radius: 8px; padding: 14px; background: #102937; }
html[lang="vi"] #lobby .online-room-meta { flex-wrap: wrap; font-size: 12px; line-height: 1.6; color: var(--lobby-muted); gap: 8px 20px; }
html[lang="vi"] #lobby #onlineStatus { color: #b5d7df; }
html[lang="vi"] #lobby #onlineStatus.error { color: #ffb5b5; }
html[lang="vi"] #lobby .lobby-bottom { color: #a5b9c5; border-top: 1px solid #35505c; background: #07131c88; padding: 16px 28px; line-height: 1.6; gap: 10px; flex-wrap: wrap; }
html[lang="vi"] #lobby .disclaimer { position: static; margin: 0; max-width: 900px; font-size: 10px; line-height: 1.7; color: #a0b3c0; }
html[lang="vi"] #lobby .select-body { margin: 0 28px; border-color: #52616b; border-radius: 12px; overflow: hidden; }
html[lang="vi"] #lobby .hero-select { gap: 10px; padding: 18px 28px 14px; }
html[lang="vi"] #lobby .hero-card { border-radius: 8px; overflow: hidden; border-color: #48616c; transition: border-color .18s, box-shadow .18s; }
html[lang="vi"] #lobby .hero-card.active { border-color: #edcf89; box-shadow: 0 0 0 1px #edcf89, 0 0 20px #d4b16522; }
html[lang="vi"] #lobby .hero-card span { font-weight: 650; font-size: 13px; text-shadow: 0 1px 4px #000; }
html[lang="vi"] #lobby .summoner-loadout { padding: 8px 28px 20px; flex-wrap: wrap; }
html[lang="vi"] #lobby .team-roster { padding: 16px; border-radius: 10px; }
html[lang="vi"] #lobby .team-roster h3 { font-size: 14px; }
html[lang="vi"] #lobby .online-player { font-size: 13px; flex-wrap: wrap; }
html[lang="vi"] #lobby .online-player-detail { white-space: normal; }
html[lang="vi"] #lobby .online-actions { background: #0b1d2cf5; padding: 16px 28px; backdrop-filter: blur(12px); }
@media (max-width: 700px) {
  html[lang="vi"] #lobby { padding: 12px 8px; gap: 10px; }
  html[lang="vi"] #lobby .lobby-panel { max-height: calc(100dvh - 106px); border-radius: 12px; }
  html[lang="vi"] #lobby .lobby-top { padding: 16px; gap: 12px; }
  html[lang="vi"] #lobby .lobby-top span:last-child { font-size: 9px; }
  html[lang="vi"] #lobby .lobby-mode-bar { padding: 16px 16px 0; }
  html[lang="vi"] #lobby #lobbyResourceStatus { margin-left: 0; font-size: 11px; }
  html[lang="vi"] #lobby .lobby-flow-heading { padding: 20px 16px; }
  html[lang="vi"] #lobby .online-lobby,
  html[lang="vi"] #lobby[data-online-stage="browser"] .online-lobby { grid-template-columns: minmax(0, 1fr); padding: 0 16px 18px; gap: 14px; }
  html[lang="vi"] #lobby .online-name-step,
  html[lang="vi"] #lobby .online-room-step,
  html[lang="vi"] #lobby .online-room-list { padding: 16px; }
  html[lang="vi"] #lobby .online-name-step #onlineName,
  html[lang="vi"] #lobby #onlineConnect { width: 100%; flex-basis: 100%; }
  html[lang="vi"] #lobby .online-room-empty { min-height: 150px; }
  html[lang="vi"] #lobby .online-room-list-heading { flex-wrap: wrap; }
  html[lang="vi"] #lobby .online-room-list-heading .online-step-label { flex-basis: auto; }
  html[lang="vi"] #lobby .online-room-list-heading button { flex: none; }
  html[lang="vi"] #lobby .select-body { margin: 0 16px; }
  html[lang="vi"] #lobby .hero-select { padding: 14px 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  html[lang="vi"] #lobby .summoner-loadout,
  html[lang="vi"] #lobby .online-actions,
  html[lang="vi"] #lobby .lobby-bottom { padding: 14px 16px; }
  html[lang="vi"] #lobby .online-actions button { flex: 1 1 auto; }
}
/* In-match menu */
html[lang="vi"] #pauseDialog {
  box-sizing: border-box;
  width: min(440px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  overflow: auto;
  margin: auto;
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid #8b713f;
  border-radius: 0;
  background: radial-gradient(ellipse at top, #122738, transparent 78%), #010a13;
  color: #e3e8ec;
  box-shadow: inset 0 0 0 4px #010a13, inset 0 0 0 5px #c8aa6e32, 0 18px 64px #000b;
  text-align: left;
}
html[lang="vi"] #pauseDialog::backdrop { background: #010a13a8; }
html[lang="vi"] #pauseDialog h2 {
  margin: 0 0 14px;
  padding-bottom: 13px;
  border-bottom: 1px solid #c8aa6e52;
  color: #f0e6d2;
  font-size: clamp(23px, 5vw, 28px);
  line-height: 1.2;
}
html[lang="vi"] #pauseDialog .pause-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #a5dce4;
  font-size: 13px;
}
html[lang="vi"] #pauseDialog .pause-status > span {
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: currentColor;
}
html[lang="vi"] #pauseDialog[data-match-mode="online"] .pause-status { color: #edcf92; }
html[lang="vi"] #pauseDialog #pauseCopy {
  margin: 6px 0 20px;
  color: #bac8d1;
  font-size: 14px;
  line-height: 1.5;
}
html[lang="vi"] #pauseDialog .pause-actions { display: grid; gap: 8px; }
html[lang="vi"] #pauseDialog button {
  width: 100%;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid #405260;
  border-radius: 0;
  background: #0a1824;
  color: #d8e4ed;
  text-align: left;
  font-size: 14px;
  font-weight: 650;
}
html[lang="vi"] #pauseDialog button:hover:not(:disabled) {
  border-color: #c8aa6e;
  background: #142433;
}
html[lang="vi"] #pauseDialog #resume {
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: 0;
  border-color: #d2b679;
  background: linear-gradient(#203445, #0a1722);
  color: #f0e6d2;
}
html[lang="vi"] #pauseDialog #resume:hover { background: #263c4b; transform: none; }
html[lang="vi"] #pauseDialog #resume > span:last-child { color: #dfc488; }
html[lang="vi"] #pauseDialog .pause-reset {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid #c8aa6e38;
}
html[lang="vi"] #pauseDialog #backLobby {
  border-color: #6d4d44;
  background: #22191c;
  color: #edc1b0;
}
html[lang="vi"] #pauseDialog #backLobby:hover:not(:disabled) {
  border-color: #ad7764;
  background: #392529;
}
html[lang="vi"] #pauseDialog button:focus-visible { outline: 2px solid #8fe6f4; outline-offset: 2px; }
html[lang="vi"] #pauseDialog #pauseResetWarning {
  margin: 6px 0 0;
  color: #cbb0a4;
  font-size: 12px;
  line-height: 1.45;
}
html[lang="vi"] #pauseDialog .pause-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
  color: #a8b9c6;
  font-size: 12px;
}
html[lang="vi"] #pauseDialog kbd {
  padding: 2px 6px;
  border: 1px solid #42525c;
  border-radius: 0;
  background: #0b1b27;
  color: #dce7ed;
  font-size: 11px;
}
@media (max-width: 480px), (max-height: 560px) {
  html[lang="vi"] #pauseDialog { padding: 18px; }
  html[lang="vi"] #pauseDialog #pauseCopy { margin-bottom: 14px; }
}
/* Champion selection: artwork-led layout with a compact, readable team area. */
html[lang="vi"] #lobby[data-online-stage="room"] .lobby-flow-heading { padding: 18px 28px; }
html[lang="vi"] #lobby[data-online-stage="room"] .lobby-flow-heading h2 { font-size: 25px; }
html[lang="vi"] #lobby[data-online-stage="room"] .select-body,
html[lang="vi"] #lobby[data-online-stage="local"] .select-body {
  height: 260px;
  position: relative;
  isolation: isolate;
  background: linear-gradient(110deg, #112c3c, #081621);
  box-shadow: inset 0 0 50px #020b1466;
}
html[lang="vi"] #lobby .selected-copy { position: relative; z-index: 2; padding: 30px; }
html[lang="vi"] #lobby #selectedName { color: #fff0cf; font-size: clamp(34px, 4vw, 52px); font-weight: 750; text-shadow: 0 4px 20px #0009; }
html[lang="vi"] #lobby #selectedTitle { color: #c6dbe5; font-size: 17px; line-height: 1.6; }
html[lang="vi"] #lobby #selectedTitle span { display: inline-block; margin: 6px 0 0 12px; color: #c1e9eb; background: #1a495b88; border: 1px solid #4a7c8a; border-radius: 20px; padding: 2px 10px; }
html[lang="vi"] #lobby .hero-art { width: 62%; opacity: 1; }
html[lang="vi"] #lobby .hero-art img { object-position: center 23%; }
html[lang="vi"] #lobby .art-shade { background: linear-gradient(90deg, #112c3c 0%, #112c3c33 45%, #07131d22), linear-gradient(0deg, #07131dbb, transparent 45%); }
html[lang="vi"] #lobby #artName { right: 20px; bottom: 16px; color: #f6e4b5; font-size: 15px; text-shadow: 0 2px 8px #000; }
html[lang="vi"] #lobby[data-online-stage="room"] #random { position: static; margin-top: 20px; min-height: 40px; padding: 8px 14px; border-radius: 7px; background: #091b29bb; border-color: #607582; }
html[lang="vi"] #lobby .hero-select button { position: relative; height: 104px; background: #102736; }
html[lang="vi"] #lobby .hero-card img { transition: transform .2s ease; }
html[lang="vi"] #lobby .hero-card:not(:disabled):hover img { transform: scale(1.06); }
html[lang="vi"] #lobby .hero-card span { padding: 12px 4px 8px; background: linear-gradient(transparent, #030e19ef); color: #e9f2f6; }
html[lang="vi"] #lobby .hero-card.active::after { content: "✓"; position: absolute; top: 6px; right: 6px; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: #10222b; background: #ecd094; font-size: 13px; font-weight: 800; box-shadow: 0 2px 8px #0008; }
html[lang="vi"] #lobby .summoner-loadout { align-items: center; gap: 12px; margin: 0 28px 18px; padding: 12px 16px; background: #102b3788; border: 1px solid #365866; border-radius: 9px; }
html[lang="vi"] #lobby .summoner-loadout label { display: flex; align-items: center; gap: 10px; color: #efd59a; font-size: 15px; font-weight: 700; }
html[lang="vi"] #lobby .summoner-loadout>span { color: #a7c0ce; font-size: 12px; flex: 1 1 200px; line-height: 1.6; }
html[lang="vi"] #lobby[data-online-stage="room"] .online-lobby { padding-top: 0; gap: 12px; }
html[lang="vi"] #lobby .team-roster { background: linear-gradient(135deg, #103449, #0a1c2a); border-color: #3e7388; }
html[lang="vi"] #lobby .team-roster.red { background: linear-gradient(135deg, #352534, #1c1928); border-color: #855767; }
html[lang="vi"] #lobby .team-roster h3 { padding-bottom: 12px; border-bottom: 1px solid #7599ac33; color: #a4e1f4; }
html[lang="vi"] #lobby .team-roster.red h3 { color: #f1b3c4; }
html[lang="vi"] #lobby .online-player { padding: 10px 0; border-bottom: 1px solid #c9dfed12; }
html[lang="vi"] #lobby .online-player-name { color: #e4eff5; font-weight: 600; }
html[lang="vi"] #lobby .team-empty { padding: 16px 0; color: #a7bdc9; }
html[lang="vi"] #lobby #onlineStart { min-width: 180px; }
@media (max-width: 700px) {
  html[lang="vi"] #lobby[data-online-stage="room"] .lobby-flow-heading { padding: 16px; }
  html[lang="vi"] #lobby[data-online-stage="room"] .select-body,
  html[lang="vi"] #lobby[data-online-stage="local"] .select-body { height: 230px; }
  html[lang="vi"] #lobby .selected-copy { padding: 20px; width: 86%; }
  html[lang="vi"] #lobby .hero-art { width: 70%; }
  html[lang="vi"] #lobby #selectedName { font-size: 34px; }
  html[lang="vi"] #lobby #selectedTitle { font-size: 14px; }
  html[lang="vi"] #lobby #selectedTitle span { margin-left: 6px; font-size: 11px; }
  html[lang="vi"] #lobby .hero-select button { height: 86px; }
  html[lang="vi"] #lobby .summoner-loadout { margin: 0 16px 16px; padding: 12px; }
  html[lang="vi"] #lobby .summoner-loadout label { flex: 1 1 100px; }
  html[lang="vi"] #lobby .summoner-loadout select { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html[lang="vi"] #lobby .hero-card img { transition: none; }
  html[lang="vi"] #lobby button { transition: none; }
}
