body.preauth #app > *:not(#modal),
body.pcgate-on #app > *:not(#modal),
body.pccreate-on #app > *:not(#modal),
body.pcslot-on #app > *:not(#modal),
body.preauth #chatBox,
body.preauth #chBtn,
body.preauth #fpsHud,
body.preauth #onHud,
body.preauth #actBar,
body.preauth #u20r,
body.preauth #u20rc,
body.preauth #u20gold,
body.preauth #u20side,
body.preauth #u20menu,
body.preauth #u20log,
body.preauth #u20boss,
body.preauth #u20trk,
body.preauth #u20wh,
body.preauth #u20zone,
body.preauth #u20ops,
body.preauth #u20pl,
body.preauth #ptyHud,
body.preauth #otDock,
body.preauth #gmMarq,
body.preauth #mapHud,
body.preauth #skBar,
body.preauth #hpBar,
body.preauth #u20fold,
body.pcgate-on #chatBox,
body.pcgate-on #chBtn,
body.pcgate-on #fpsHud,
body.pcgate-on #onHud,
body.pcgate-on #actBar,
body.pcgate-on #u20r,
body.pcgate-on #u20rc,
body.pcgate-on #u20gold,
body.pcgate-on #u20side,
body.pcgate-on #u20menu,
body.pcgate-on #u20log,
body.pcgate-on #u20boss,
body.pcgate-on #u20trk,
body.pcgate-on #u20wh,
body.pcgate-on #u20zone,
body.pcgate-on #u20ops,
body.pcgate-on #u20pl,
body.pcgate-on #ptyHud,
body.pcgate-on #otDock,
body.pcgate-on #gmMarq,
body.pcgate-on #mapHud,
body.pcgate-on #skBar,
body.pcgate-on #hpBar,
body.pcgate-on #u20fold,
body.pccreate-on #chatBox,
body.pccreate-on #chBtn,
body.pccreate-on #fpsHud,
body.pccreate-on #onHud,
body.pccreate-on #actBar,
body.pccreate-on #u20r,
body.pccreate-on #u20rc,
body.pccreate-on #u20gold,
body.pccreate-on #u20side,
body.pccreate-on #u20menu,
body.pccreate-on #u20log,
body.pccreate-on #u20boss,
body.pccreate-on #u20trk,
body.pccreate-on #u20wh,
body.pccreate-on #u20zone,
body.pccreate-on #u20ops,
body.pccreate-on #u20pl,
body.pccreate-on #ptyHud,
body.pccreate-on #otDock,
body.pccreate-on #gmMarq,
body.pccreate-on #mapHud,
body.pccreate-on #skBar,
body.pccreate-on #hpBar,
body.pccreate-on #u20fold,
body.pcslot-on #chatBox,
body.pcslot-on #chBtn,
body.pcslot-on #fpsHud,
body.pcslot-on #onHud,
body.pcslot-on #actBar,
body.pcslot-on #u20r,
body.pcslot-on #u20rc,
body.pcslot-on #u20gold,
body.pcslot-on #u20side,
body.pcslot-on #u20menu,
body.pcslot-on #u20log,
body.pcslot-on #u20boss,
body.pcslot-on #u20trk,
body.pcslot-on #u20wh,
body.pcslot-on #u20zone,
body.pcslot-on #u20ops,
body.pcslot-on #u20pl,
body.pcslot-on #ptyHud,
body.pcslot-on #otDock,
body.pcslot-on #gmMarq,
body.pcslot-on #mapHud,
body.pcslot-on #skBar,
body.pcslot-on #hpBar,
body.pcslot-on #u20fold {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}
body.preauth #app,
body.pcgate-on #app,
body.pccreate-on #app,
body.pcslot-on #app { background: #060a13; }
:root {
  --pg-gold: #e6c15a;
  --pg-gold2: #9c7a2c;
  --pg-ink: #f1e3bf;
  --pg-dim: #b9a780;
  --pg-panel: rgba(13, 12, 10, 0.93);
  --pg-line: #5c4a22;
  --pg-field: #0b0a08;
  --pg-bad: #ff8d7a;
}
body.preauth #modal:not(.hidden),
body.pcgate-on #modal:not(.hidden),
body.pccreate-on #modal:not(.hidden),
body.pcslot-on #modal:not(.hidden) {
  display: flex !important;
  z-index: 100 !important;
  align-items: center;
  justify-content: center;
  padding: 12px;
  padding-top: max(12px, env(safe-area-inset-top));
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  overflow: auto;
  background-color: #060a13 !important;
  background-image: radial-gradient(ellipse at center, rgba(6, 8, 14, 0.22), rgba(6, 8, 14, 0.7)), url("img/u2/login/bg-vl.webp") !important;
  background-position: center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}
body.preauth #modal .mx,
body.pcgate-on #modal .mx,
body.pccreate-on #modal .mx,
body.pcslot-on #modal .mx { display: none !important; }
body.preauth #toast,
body.pcgate-on #toast,
body.pccreate-on #toast,
body.pcslot-on #toast { z-index: 120 !important; }
body.preauth #modal .mbox,
body.pcgate-on #modal .mbox,
body.pccreate-on #modal .mbox,
body.pcslot-on #modal .mbox {
  position: relative;
  box-sizing: border-box;
  margin: auto;
  background: var(--pg-panel) !important;
  border: 1px solid var(--pg-gold2) !important;
  border-radius: 4px !important;
  outline: 1px solid rgba(0, 0, 0, 0.7) !important;
  outline-offset: 0 !important;
  box-shadow: 0 0 0 4px rgba(13, 12, 10, 0.9), 0 0 0 5px var(--pg-line), 0 18px 48px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(230, 193, 90, 0.12) !important;
  padding: 18px 18px 16px !important;
  width: min(440px, 100%) !important;
  max-width: min(440px, 100%) !important;
  max-height: none !important;
  overflow: visible !important;
  color: var(--pg-ink);
  font-size: 14px;
  line-height: 1.45;
}
body.pccreate-on #modal .mbox {
  width: min(680px, 100%) !important;
  max-width: min(680px, 100%) !important;
}
body.preauth #modal .mbox::before,
body.pcgate-on #modal .mbox::before,
body.pccreate-on #modal .mbox::before,
body.pcslot-on #modal .mbox::before,
body.preauth #modal .mbox::after,
body.pcgate-on #modal .mbox::after,
body.pccreate-on #modal .mbox::after,
body.pcslot-on #modal .mbox::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  width: min(180px, 46%) !important;
  height: 9px !important;
  margin: 0 !important;
  border: 0 !important;
  transform: translateX(-50%) !important;
  background:
    linear-gradient(90deg, transparent, var(--pg-gold) 18%, var(--pg-gold) 82%, transparent) center / 100% 1px no-repeat,
    radial-gradient(circle at center, var(--pg-gold) 0 3px, transparent 3.6px) center / 9px 9px no-repeat !important;
  pointer-events: none;
}
body.preauth #modal .mbox::before,
body.pcgate-on #modal .mbox::before,
body.pccreate-on #modal .mbox::before,
body.pcslot-on #modal .mbox::before { top: -5px !important; bottom: auto !important; }
body.preauth #modal .mbox::after,
body.pcgate-on #modal .mbox::after,
body.pccreate-on #modal .mbox::after,
body.pcslot-on #modal .mbox::after { bottom: -5px !important; top: auto !important; }
body.preauth #modal .mbox h3,
body.pcgate-on #modal .mbox h3,
body.pccreate-on #modal .mbox h3,
body.pcslot-on #modal .mbox h3 {
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 0 10px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--pg-line) !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: var(--pg-gold) !important;
  font: 700 17px/1.25 "Times New Roman", "Noto Serif", Tinos, serif !important;
  letter-spacing: 0.06em;
  text-align: center !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
}
body.preauth #modal .mbox p,
body.pcgate-on #modal .mbox p,
body.pccreate-on #modal .mbox p,
body.pcslot-on #modal .mbox p { color: var(--pg-dim); }
body.preauth #modal .mbox input:not([type=checkbox]):not([type=radio]),
body.pcgate-on #modal .mbox input:not([type=checkbox]):not([type=radio]),
body.pccreate-on #modal .mbox input:not([type=checkbox]):not([type=radio]),
body.pcslot-on #modal .mbox input:not([type=checkbox]):not([type=radio]),
body.preauth #modal .mbox select,
body.pcgate-on #modal .mbox select,
body.pccreate-on #modal .mbox select,
body.pcslot-on #modal .mbox select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--pg-line);
  border-radius: 3px;
  background: var(--pg-field);
  color: var(--pg-ink);
  font: inherit;
  font-size: 16px;
  outline: 0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.7);
}
body.preauth #modal .mbox input:not([type=checkbox]):not([type=radio]):focus,
body.pcgate-on #modal .mbox input:not([type=checkbox]):not([type=radio]):focus,
body.pccreate-on #modal .mbox input:not([type=checkbox]):not([type=radio]):focus,
body.pcslot-on #modal .mbox input:not([type=checkbox]):not([type=radio]):focus,
body.preauth #modal .mbox select:focus,
body.pcgate-on #modal .mbox select:focus,
body.pccreate-on #modal .mbox select:focus,
body.pcslot-on #modal .mbox select:focus {
  border-color: var(--pg-gold);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.7), 0 0 0 2px rgba(230, 193, 90, 0.22);
}
body.preauth #modal .mbox button,
body.pcgate-on #modal .mbox button,
body.pccreate-on #modal .mbox button,
body.pcslot-on #modal .mbox button {
  box-sizing: border-box;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--pg-gold2);
  border-radius: 3px;
  background: linear-gradient(#3a2d14, #1d160a);
  color: var(--pg-ink);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.03em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 235, 170, 0.18), 0 2px 5px rgba(0, 0, 0, 0.5);
  -webkit-tap-highlight-color: transparent;
}
body.preauth #modal .mbox button:hover:not(:disabled),
body.pcgate-on #modal .mbox button:hover:not(:disabled),
body.pccreate-on #modal .mbox button:hover:not(:disabled),
body.pcslot-on #modal .mbox button:hover:not(:disabled) { filter: brightness(1.15); }
body.preauth #modal .mbox button:active:not(:disabled),
body.pcgate-on #modal .mbox button:active:not(:disabled),
body.pccreate-on #modal .mbox button:active:not(:disabled),
body.pcslot-on #modal .mbox button:active:not(:disabled) { filter: brightness(0.9); transform: translateY(1px); }
body.preauth #modal .mbox button:disabled,
body.pcgate-on #modal .mbox button:disabled,
body.pccreate-on #modal .mbox button:disabled,
body.pcslot-on #modal .mbox button:disabled { opacity: 0.45; cursor: not-allowed; }
body.preauth #modal .mbox button:focus-visible,
body.pcgate-on #modal .mbox button:focus-visible,
body.pccreate-on #modal .mbox button:focus-visible,
body.pcslot-on #modal .mbox button:focus-visible { outline: 2px solid var(--pg-gold); outline-offset: 2px; }

.pcg-root, .pcs-root, .pcc-root { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pcg-brand {
  margin: 0;
  color: var(--pg-gold);
  font: 700 22px/1.2 "Times New Roman", "Noto Serif", Tinos, serif;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}
.pcg-brand small { display: block; margin-top: 3px; color: var(--pg-dim); font-family: inherit; font-weight: 400; font-size: 12px; line-height: 1.3; letter-spacing: 0.08em; text-transform: none; }
.pcg-panel { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pcg-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
body.preauth #modal .mbox .pcg-tabs button,
body.pcgate-on #modal .mbox .pcg-tabs button {
  min-height: 38px;
  padding: 0 4px;
  background: #15110a;
  border-color: var(--pg-line);
  color: var(--pg-dim);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: none;
}
body.preauth #modal .mbox .pcg-tabs button.on,
body.pcgate-on #modal .mbox .pcg-tabs button.on {
  background: linear-gradient(#5a4517, #2b200b);
  border-color: var(--pg-gold);
  color: #fff3c9;
}
.pcg-body { display: flex; flex-direction: column; gap: 9px; }
.pcg-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 10px; margin: 0; }
.pcg-row span { color: var(--pg-ink); font-weight: 700; font-size: 13px; }
.pcg-opts { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-left: 114px; }
.pcg-opts label { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; color: var(--pg-dim); font-size: 13px; cursor: pointer; }
.pcg-opts input { width: 17px; height: 17px; margin: 0; accent-color: var(--pg-gold); }
.pcg-row-act { display: flex; justify-content: flex-end; }
.pcg-hint { margin: 0; color: var(--pg-dim); font-size: 12px; }
.pcg-err { margin: 0; padding: 8px 10px; border: 1px solid #7a3326; border-radius: 3px; background: rgba(90, 24, 14, 0.45); color: var(--pg-bad) !important; font-size: 13px; font-weight: 700; text-align: center; }
.pcg-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body.preauth #modal .mbox .pcg-actions .ok,
body.pcgate-on #modal .mbox .pcg-actions .ok,
body.pccreate-on #modal .mbox .pcc-go,
body.pcslot-on #modal .mbox .pcs-play,
body.preauth #modal .mbox .pcs-play {
  background: linear-gradient(#7a5c16, #3d2d0a);
  border-color: var(--pg-gold);
  color: #fff3c9;
}
.pcg-actions button { min-height: 44px; font-size: 15px; }

.pcs-desc { margin: 0; text-align: center; font-size: 13px; }
.pcs-list { display: flex; flex-direction: column; gap: 8px; }
.pcs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--pg-line); border-radius: 3px; background: rgba(8, 7, 5, 0.6); }
.pcs-row.empty { border-style: dashed; }
.pcs-row.del { border-color: #8a4030; }
.pcs-av { width: 44px; height: 44px; flex: 0 0 44px; object-fit: contain; border: 1px solid var(--pg-line); border-radius: 3px; background: #0b0a08; image-rendering: pixelated; }
.pcs-av.ph { background: #15110a; }
.pcs-info { flex: 1 1 140px; min-width: 0; }
.pcs-info b { display: block; font-size: 15px; color: var(--pg-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcs-info small { display: block; margin-top: 2px; color: var(--pg-dim); font-size: 12px; }
body.preauth #modal .mbox .pcs-del,
body.pcslot-on #modal .mbox .pcs-del { background: linear-gradient(#4a1c14, #26100b); border-color: #8a4030; color: #ffb3a4; }
.pcs-foot { text-align: center; }
body.preauth #modal .mbox .pcs-out,
body.pcslot-on #modal .mbox .pcs-out { background: transparent; border-color: var(--pg-line); color: var(--pg-dim); box-shadow: none; }

.pcc-ser { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
body.pccreate-on #modal .mbox .pcc-ser button {
  min-height: 44px;
  padding: 0 2px;
  border-color: var(--pg-line);
  border-top: 3px solid var(--c, var(--pg-gold));
  background: #15110a;
  color: var(--pg-dim);
  font-size: 15px;
  box-shadow: none;
}
body.pccreate-on #modal .mbox .pcc-ser button.on {
  border-color: var(--c, var(--pg-gold));
  background: linear-gradient(#3a2d14, #1d160a);
  color: #fff3c9;
  box-shadow: 0 0 0 1px var(--c, var(--pg-gold)), 0 0 14px -4px var(--c, var(--pg-gold));
}
.pcc-stage {
  position: relative;
  height: clamp(200px, 38vh, 340px);
  border: 1px solid var(--pg-line);
  border-radius: 3px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 34% 60% at 25% 78%, rgba(230, 193, 90, 0.16), transparent 70%),
    radial-gradient(ellipse 34% 60% at 75% 78%, rgba(230, 193, 90, 0.16), transparent 70%),
    linear-gradient(#0d1420, #0a0c10 62%, #14110b);
}
.pcc-stage canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
body.pccreate-on #modal .mbox .pcc-half {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.pccreate-on #modal .mbox .pcc-half.l { left: 0; }
body.pccreate-on #modal .mbox .pcc-half.r { right: 0; }
body.pccreate-on #modal .mbox .pcc-half.on { box-shadow: inset 0 0 0 2px var(--pg-gold), inset 0 0 26px rgba(230, 193, 90, 0.18); }
body.pccreate-on #modal .mbox .pcc-half:hover:not(.on) { background: rgba(255, 255, 255, 0.04); filter: none; }
body.pccreate-on #modal .mbox .pcc-half:active { transform: none; }
.pcc-caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pcc-cap { min-width: 0; padding: 7px 8px; border: 1px solid var(--pg-line); border-radius: 3px; background: rgba(8, 7, 5, 0.6); text-align: center; cursor: pointer; }
.pcc-cap b { display: block; color: var(--pg-dim); font-size: 15px; }
.pcc-cap small { display: block; margin-top: 2px; color: var(--pg-dim); font-size: 12px; overflow-wrap: anywhere; }
.pcc-cap.on { border-color: var(--pg-gold); background: rgba(90, 69, 23, 0.35); }
.pcc-cap.on b { color: #fff3c9; }
.pcc-cap.on small { color: var(--pg-ink); }
.pcc-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.pcc-name { display: flex; flex-direction: column; gap: 5px; min-width: 0; margin: 0; }
.pcc-name span { color: var(--pg-ink); font-weight: 700; font-size: 13px; }
body.pccreate-on #modal .mbox .pcc-go { min-width: 120px; min-height: 40px; font-size: 15px; }
.pcc-stat { grid-column: 1 / -1; color: var(--pg-dim); font-size: 12px; text-align: center; }
.pcc-bad { grid-column: 1 / -1; margin: 0; color: var(--pg-bad) !important; font-weight: 700; text-align: center; }

#zaloBar.pcg-zalo {
  left: 12px !important;
  right: auto !important;
  top: max(10px, env(safe-area-inset-top)) !important;
  transform: none !important;
  max-width: 50vw;
}
body.pcgate-on #modal:not(.hidden) { padding-top: max(50px, env(safe-area-inset-top)) !important; }
@media (min-width: 521px) { body.pcgate-on #modal:not(.hidden) { padding-bottom: 50px !important; } }
#zaloBar.pcg-zalo a { color: #ffe14a !important; text-decoration: none !important; }

@media (max-width: 520px) {
  .pcc-stage { height: clamp(180px, 31vh, 290px); }
  body.preauth #modal:not(.hidden),
body.pcgate-on #modal:not(.hidden),
body.pccreate-on #modal:not(.hidden),
body.pcslot-on #modal:not(.hidden) {
    background-image: linear-gradient(#070a10 0, #070a10 150px, rgba(7, 10, 16, 0) 270px), radial-gradient(ellipse at center, rgba(6, 8, 14, 0.15), rgba(6, 8, 14, 0.6)), url("img/u2/login/bg-vl.webp") !important;
    background-position: 0 0, center, 61% 190px !important;
    background-size: 100% 100%, cover, auto 100% !important;
    align-items: flex-start;
  }
  body.preauth #modal:not(.hidden),
body.pcgate-on #modal:not(.hidden),
body.pccreate-on #modal:not(.hidden),
body.pcslot-on #modal:not(.hidden) { padding: 8px; align-items: flex-start; }
  body.preauth #modal .mbox,
body.pcgate-on #modal .mbox,
body.pccreate-on #modal .mbox,
body.pcslot-on #modal .mbox { padding: 16px 12px 14px !important; margin-top: max(8px, 6vh); }
  .pcg-brand { font-size: 19px; }
  .pcg-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pcg-opts { padding-left: 0; }
  body.pccreate-on #modal .mbox .pcc-ser button { font-size: 14px; }
  .pcc-bar { grid-template-columns: minmax(0, 1fr); }
  body.pccreate-on #modal .mbox .pcc-go { width: 100%; min-height: 44px; }
  .pcs-row .pcs-play, .pcs-row .pcs-del { flex: 1 1 0; }
}
@media (max-height: 520px) and (orientation: landscape) {
  body.preauth #modal:not(.hidden),
body.pcgate-on #modal:not(.hidden),
body.pccreate-on #modal:not(.hidden),
body.pcslot-on #modal:not(.hidden) { align-items: flex-start; }
  .pcc-stage { height: clamp(140px, 38vh, 200px); }
}
