
.lobby-page .page-wrap { max-width: 920px; padding-bottom: 100px; }
.lobby-title-pill { max-width: 420px; margin: 14px auto; font-family: Orbitron, "Be Vietnam Pro", sans-serif; letter-spacing: .06em; }

.lobby-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
  content-visibility: auto;
  contain-intrinsic-size: 600px;
}

@media (min-width: 520px) {
  .lobby-grid.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}

.tech-hall-card {
  position: relative;
  background: linear-gradient(160deg, rgba(4, 22, 30, .92), rgba(2, 10, 14, .95));
  border: 1px solid rgba(0, 212, 255, .28);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  animation: hallCardIn .5s ease backwards;
  transition: transform .25s cubic-bezier(.34, 1.2, .64, 1), box-shadow .25s, border-color .25s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(0, 212, 255, .08);
}

.tech-hall-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(0, 212, 255, .06), transparent 55%);
  z-index: 1;
}

.tech-hall-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, .08), transparent);
  animation: hallCardSweep 4s ease-in-out infinite;
  z-index: 2;
}

.tech-hall-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(0, 212, 255, .55);
  box-shadow: 0 8px 32px rgba(0, 212, 255, .22), 0 0 20px rgba(240, 160, 32, .08);
}

.hall-thumb {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(145deg, #0c1a22, #061018);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
}

.hall-logo-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(240, 245, 248, .92));
  border: 1px solid rgba(0, 212, 255, .25);
  box-shadow: inset 0 0 20px rgba(0, 212, 255, .06);
  animation: hallLogoFloat 4.5s ease-in-out infinite;
  transform: translateZ(0);
}

.hall-logo-ring {
  position: absolute;
  inset: -1px;
  border-radius: 11px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(0, 212, 255, .45), rgba(240, 160, 32, .35)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: logoRingSpin 8s linear infinite;
  opacity: .7;
}

.hall-logo-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, .85), transparent);
  animation: logoScan 3.2s ease-in-out infinite;
}

.hall-logo-img {
  position: relative;
  z-index: 2;
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  filter: contrast(1.1) saturate(1.08);
  transition: transform .3s cubic-bezier(.34, 1.2, .64, 1), filter .3s;
}

.tech-hall-card:hover .hall-logo-img {
  transform: scale(1.06);
  filter: contrast(1.14) saturate(1.12);
}

.hall-fallback {
  font-size: 9px;
  font-weight: 800;
  color: var(--accent-glow);
  text-align: center;
  padding: 4px;
}

.hall-logo-wrap.dark-logo {
  background: linear-gradient(145deg, #0a0a0c, #141418);
  border-color: rgba(0, 212, 255, .4);
  box-shadow: inset 0 0 24px rgba(0, 212, 255, .08), 0 0 12px rgba(0, 0, 0, .5);
}

.hall-logo-wrap.dark-logo .hall-logo-img {
  filter: contrast(1.05) brightness(1.05);
}

.hall-label {
  position: relative;
  z-index: 3;
  overflow: hidden;
  padding: 0;
  background: linear-gradient(135deg, #006680 0%, #00a8cc 35%, #00d4ff 50%, #00a8cc 65%, #006680 100%);
  background-size: 250% 100%;
  animation: hallLabelFlow 4s linear infinite;
  box-shadow: 0 -2px 16px rgba(0, 212, 255, .25), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.hall-label::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .35) 50%, transparent 100%);
  transform: translateX(-120%);
  animation: hallLabelSweep 2.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.hall-label::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff, rgba(240, 160, 32, .9), #fff, transparent);
  animation: hallLabelPulse 2s ease-in-out infinite;
  z-index: 2;
}

.hall-label-text {
  position: relative;
  z-index: 3;
  display: block;
  padding: 8px 6px;
  font-family: Orbitron, "Be Vietnam Pro", sans-serif;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 212, 255, .6), 0 1px 2px rgba(0, 0, 0, .5);
  line-height: 1.2;
}

.tech-hall-card:hover .hall-label {
  animation-duration: 2s;
  box-shadow: 0 -2px 24px rgba(0, 212, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.tech-hall-card:hover .hall-label-text {
  text-shadow: 0 0 14px rgba(255, 255, 255, .8), 0 0 8px rgba(0, 212, 255, .8);
}

@media (min-width: 768px) {
  .hall-label-text { font-size: 9px; padding: 9px 8px; letter-spacing: .08em; }
  .hall-thumb { padding: 12px; }
}

@keyframes hallLabelFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 250% 50%; }
}

@keyframes hallLabelSweep {
  0%, 100% { transform: translateX(-120%); opacity: 0; }
  20%, 80% { opacity: 1; }
  100% { transform: translateX(120%); }
}

@keyframes hallLabelPulse {
  0%, 100% { opacity: .4; transform: scaleX(.85); }
  50% { opacity: 1; transform: scaleX(1); }
}

@keyframes hallCardIn {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to { opacity: 1; transform: none; }
}

@keyframes hallCardSweep {
  0%, 100% { left: -100%; opacity: 0; }
  15%, 85% { opacity: 1; }
  100% { left: 140%; }
}

@keyframes hallLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 12px 0;
}

.filter-btn {
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.7;
}

.filter-btn.active { opacity: 1; transform: scale(1.05); }
.filter-all { background: #c0392b; color: #fff; }
.filter-jackpot { background: #00d4ff; color: #021018; }
.filter-play { background: var(--primary); color: #021018; }
.filter-wait { background: #7f8c8d; color: #fff; }

.search-box {
  width: 100%;
  padding: 10px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(2, 14, 18, 0.75);
  color: var(--text);
  font-size: 13px;
  margin-bottom: 12px;
}

.search-box::placeholder { color: #666; }

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  content-visibility: auto;
  contain-intrinsic-size: 500px;
}

.game-card {
  background: rgba(2, 14, 18, 0.88);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}

.game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 212, 255, .12);
}

.game-thumb {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #0a1820, #020806);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  padding: 8px;
}

.game-mult {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--accent-glow);
  color: #1a1000;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
}

.game-info { padding: 8px; }

.game-title {
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 6px;
}

.tag-wait { background: #7f8c8d; }
.tag-play { background: var(--primary); color: #021018; }
.tag-jackpot { background: #00d4ff; color: #021018; }

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.5s;
}

.pct-label {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- Games page --- */
.games-page .page-wrap { max-width: 960px; padding-bottom: 100px; }

.games-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 10px 0 4px;
}

.games-title-pill {
  max-width: 360px;
  margin: 0;
  font-family: Orbitron, "Be Vietnam Pro", sans-serif;
  letter-spacing: .08em;
}

.games-hall-logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(0, 212, 255, .45);
  background: #fff;
  padding: 4px;
  box-shadow: 0 0 16px rgba(0, 212, 255, .25);
}

.game-grid.cols-4 {
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 520px) {
  .game-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 720px) {
  .game-grid.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}

/* --- PG hall theme --- */
.pg-hall #page-background::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 50% 38%, rgba(240, 160, 32, .12), transparent 70%),
    radial-gradient(ellipse 30% 25% at 15% 20%, rgba(192, 57, 43, .08), transparent),
    radial-gradient(ellipse 30% 25% at 85% 20%, rgba(192, 57, 43, .08), transparent);
  z-index: 0;
}

.pg-hall .games-title-pill {
  background: linear-gradient(135deg, #e67e22, #d35400);
  border-color: rgba(255, 180, 80, .6);
  color: #fff;
  box-shadow: 0 0 24px rgba(230, 126, 34, .35), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.pg-hall .filter-jackpot { background: #1abc9c; color: #021018; }
.pg-hall .filter-play { background: #f1c40f; color: #1a1000; }

.pg-game-card {
  background: linear-gradient(165deg, rgba(8, 12, 18, .94), rgba(2, 6, 10, .96));
  border: 1px solid rgba(240, 160, 32, .22);
  border-radius: 12px;
  animation: hallCardIn .45s ease backwards;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}

.pg-game-card:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(0, 212, 255, .45);
  box-shadow: 0 8px 28px rgba(0, 212, 255, .18), 0 0 12px rgba(240, 160, 32, .12);
}

.pg-game-card .game-thumb {
  aspect-ratio: 1;
  padding: 0;
  background: #0a0e14;
  overflow: hidden;
}

.pg-game-card .game-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pg-game-card .game-icon-img.icon-missing {
  display: none;
}

.pg-game-card .game-thumb:has(.icon-missing) {
  background: linear-gradient(145deg, #1a2838 0%, #0a1218 50%, #162230 100%);
}

.pg-game-card .game-thumb:has(.icon-missing)::before {
  content: attr(data-fallback);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: rgba(0, 212, 255, .55);
  text-align: center;
  padding: 8px;
  letter-spacing: .04em;
}

.pg-soft-badge {
  position: absolute;
  right: 4px;
  bottom: 4px;
  background: rgba(0, 0, 0, .65);
  color: #1abc9c;
  font-size: 8px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: .04em;
  border: 1px solid rgba(26, 188, 156, .4);
}

.pg-game-card .game-mult {
  top: 0;
  left: 0;
  right: auto;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  font-size: 8px;
  padding: 3px 7px;
  border-radius: 0 0 8px 0;
  transform: skewX(-8deg);
  box-shadow: 0 2px 8px rgba(231, 76, 60, .4);
}

.pg-game-card .game-info {
  padding: 8px 8px 10px;
  text-align: center;
  background: rgba(0, 0, 0, .35);
}

.pg-game-card .game-title {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pg-game-card .status-tag {
  font-size: 10px;
  padding: 3px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.pg-bar {
  height: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .06);
}

.pg-bar .progress-fill {
  position: relative;
  min-width: 28px;
  border-radius: 7px;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, .15) 0,
    rgba(255, 255, 255, .15) 4px,
    transparent 4px,
    transparent 8px
  ) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: width .5s ease;
}

.pct-in-bar {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}

.pg-hall .search-box {
  border-color: rgba(240, 160, 32, .25);
  background: rgba(0, 0, 0, .55);
}

.pg-hall .search-box:focus {
  outline: none;
  border-color: rgba(0, 212, 255, .5);
  box-shadow: 0 0 12px rgba(0, 212, 255, .15);
}

/* --- Modal nhập số dư --- */
body.balance-modal-open,
body.hack-active { overflow: hidden; }

.balance-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.balance-modal[hidden] { display: none !important; }

.balance-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(4px);
}

.balance-modal-box {
  position: relative;
  width: min(340px, 100%);
  background: linear-gradient(165deg, #1c1408 0%, #0a0604 100%);
  border: 2px solid rgba(240, 160, 32, .65);
  border-radius: 16px;
  padding: 28px 22px 22px;
  box-shadow: 0 0 36px rgba(240, 160, 32, .28);
  text-align: center;
}

.balance-modal-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #ffd56a;
  margin: 0 0 20px;
  letter-spacing: .04em;
}

.balance-input-row {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 8px;
  background: rgba(0, 0, 0, .45);
  margin-bottom: 18px;
  overflow: hidden;
}

.balance-input-row input {
  flex: 1;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 12px;
  text-align: right;
  outline: none;
  font-family: 'Be Vietnam Pro', sans-serif;
}

.balance-currency {
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, .55);
  border-left: 1px solid rgba(255, 255, 255, .12);
}

.balance-start-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #f0a020 0%, #d47800 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .03em;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(212, 120, 0, .45);
}

.balance-start-btn:hover { filter: brightness(1.06); }

.balance-close-btn {
  margin-top: 14px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, .45);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

/* --- Màn hack full-screen --- */
.hack-screen {
  position: fixed;
  inset: 0;
  z-index: 9400;
  overflow: hidden;
}

.hack-screen[hidden] { display: none !important; }

.hack-screen-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(180, 100, 20, .45) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(200, 50, 30, .25) 0%, transparent 50%),
    linear-gradient(180deg, #1a0e06 0%, #0d0604 35%, #120804 70%, #1a1008 100%);
}

.hack-screen-coins {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 200, 50, .35) 2px, transparent 2px),
    radial-gradient(circle, rgba(255, 180, 30, .2) 1px, transparent 1px);
  background-size: 80px 80px, 40px 40px;
  background-position: 0 0, 20px 20px;
  opacity: .35;
  animation: coinFloat 20s linear infinite;
}

@keyframes coinFloat {
  from { background-position: 0 0, 20px 20px; }
  to { background-position: 0 200px, 20px 220px; }
}

.hack-screen-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 14px 20px;
}

.hack-screen-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.hack-back-btn {
  font-size: 11px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 200, 80, .35);
  background: rgba(0, 0, 0, .45);
  color: #ffd56a;
  cursor: pointer;
  white-space: nowrap;
}

.hack-screen-status {
  text-align: center;
  flex: 1;
}

.hack-screen-status .badge-member {
  display: inline-block;
  font-size: 9px;
  margin-bottom: 4px;
}

.hack-clock {
  display: flex;
  flex-direction: column;
  font-size: 10px;
  color: rgba(255, 220, 150, .75);
  line-height: 1.35;
}

.hack-screen-user {
  text-align: right;
}

.hack-token {
  font-size: 11px;
  font-weight: 800;
  color: #ff8c32;
  margin-bottom: 4px;
}

.hack-balance {
  font-size: 11px;
  font-weight: 700;
  color: #ffd56a;
  margin-bottom: 4px;
  white-space: nowrap;
}

body.hack-locked .game-grid,
body.hack-locked .filter-row,
body.hack-locked .search-box,
body.hack-locked [data-back] {
  pointer-events: none;
}

.game-grid.games-locked .game-card {
  cursor: not-allowed;
  opacity: .45;
}

.hack-logout-btn {
  font-size: 10px;
  font-weight: 700;
  padding: 6px 12px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #ff8c32, #e65c00);
  color: #fff;
  cursor: pointer;
}

.hack-screen-panel {
  flex: 1;
  overflow-y: auto;
  background: rgba(0, 0, 0, .55);
  border: 2px solid rgba(212, 160, 48, .5);
  border-radius: 18px;
  padding: 16px 14px 18px;
  box-shadow: 0 0 30px rgba(212, 160, 48, .2), inset 0 1px 0 rgba(255, 220, 120, .1);
}

.hack-screen-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.hack-title-block {
  flex: 1;
  min-width: 0;
}

.hack-capital-line {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 213, 106, .75);
}

.hack-screen-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 800;
  color: #ffd56a;
  margin: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hack-btn-robot {
  font-size: 10px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 210, 80, .5);
  background: rgba(255, 180, 40, .15);
  color: #ffd56a;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.hack-screen-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hack-ring-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}

.hack-ring-purple .hack-ring-fill {
  stroke: #c084fc;
  filter: drop-shadow(0 0 8px rgba(192, 132, 252, .6));
}

.hack-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.hack-ring-bg {
  fill: none;
  stroke: rgba(192, 132, 252, .15);
  stroke-width: 8;
}

.hack-ring-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}

.hack-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #e9d5ff;
  text-shadow: 0 0 12px rgba(192, 132, 252, .8);
}

.hack-mascot {
  font-size: 42px;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(255, 200, 80, .5));
}

.hack-mini-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f0a020, #d47800);
  color: #1a1000;
  white-space: nowrap;
}

.hack-mini-badge.tag-jackpot { background: linear-gradient(135deg, #00d4ff, #0099cc); color: #021018; }
.hack-mini-badge.tag-win {
  background: linear-gradient(135deg, #27ae60, #1e8449);
  color: #fff;
  animation: badgePulse 2s ease-in-out infinite;
}
.hack-mini-badge.tag-super {
  background: linear-gradient(135deg, #9b59b6, #6c3483);
  color: #fff;
  animation: badgePulse 2s ease-in-out infinite;
}
.hack-mini-badge.tag-draw {
  background: linear-gradient(135deg, #f39c12, #d68910);
  color: #1a1000;
  animation: badgePulse 2.4s ease-in-out infinite;
}
.hack-mini-badge.tag-lose {
  background: linear-gradient(135deg, #7f8c8d, #566573);
  color: #fff;
}
.hack-mini-badge.tag-wait { background: #7f8c8d; color: #fff; }

@keyframes badgePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(0, 212, 255, 0); }
  50% { transform: scale(1.04); box-shadow: 0 0 12px rgba(0, 212, 255, .35); }
}

.hack-scan-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.hack-game-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(212, 160, 48, .45);
  background: linear-gradient(145deg, #2a1a08, #120804);
}

.hack-game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hack-game-thumb.no-icon::before {
  content: attr(data-name);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  padding: 6px;
  color: rgba(255, 213, 106, .7);
}

.hack-scan-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 2px solid rgba(212, 160, 48, .35);
  background: rgba(0, 0, 0, .5);
  min-height: 80px;
  padding: 8px;
}

.hack-scan-box.analyzing {
  border-color: rgba(192, 132, 252, .45);
  box-shadow: inset 0 0 20px rgba(192, 132, 252, .08);
}

.hack-tech-stats {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 9px;
}

.hack-tech-stats div {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.hack-tech-stats span { color: rgba(255, 213, 106, .55); }
.hack-tech-stats strong { color: #7dffb0; font-size: 10px; }

.hack-done-banner {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  padding: 9px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid rgba(212, 160, 48, .45);
  background: rgba(255, 180, 40, .1);
  color: #ffd56a;
  letter-spacing: .04em;
}

.hack-progress-wrap {
  margin-bottom: 12px;
  text-align: center;
}

.hack-progress-label {
  display: block;
  font-size: 10px;
  color: rgba(255, 213, 106, .7);
  margin-bottom: 6px;
}

.hack-progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, .08);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 4px;
}

.hack-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f0a020, #ffd56a);
  border-radius: 8px;
  transition: width .12s linear;
}

.hack-progress-pct {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: #ffd56a;
}

.hack-vip-full {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid rgba(212, 160, 48, .4);
  background: rgba(212, 160, 48, .1);
  color: rgba(255, 213, 106, .85);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: .03em;
}

.hack-vip-full.active {
  border-color: rgba(255, 200, 80, .65);
  background: rgba(255, 180, 40, .18);
  box-shadow: 0 0 12px rgba(255, 180, 40, .15);
}

.hack-countdown-wrap {
  text-align: center;
  margin-bottom: 12px;
}

.hack-countdown {
  font-family: 'Orbitron', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: #ff8c32;
  text-shadow: 0 0 24px rgba(255, 140, 50, .55);
  letter-spacing: .06em;
  padding: 12px;
  border-radius: 12px;
  border: 2px solid rgba(255, 140, 50, .35);
  background: rgba(0, 0, 0, .35);
}

.hack-stop-btn {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 12px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
}

.hack-stop-btn:hover {
  background: rgba(30, 30, 30, .75);
}

/* --- Notify / VIP modals --- */
.notify-modal {
  position: fixed;
  inset: 0;
  z-index: 9600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.notify-modal[hidden] { display: none !important; }

.notify-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  backdrop-filter: blur(4px);
}

.notify-modal-box {
  position: relative;
  width: min(320px, 100%);
  background: linear-gradient(165deg, #1c1408 0%, #0a0604 100%);
  border: 2px solid rgba(240, 160, 32, .55);
  border-radius: 16px;
  padding: 24px 20px 20px;
  text-align: center;
  box-shadow: 0 0 36px rgba(240, 160, 32, .25);
}

.notify-icon {
  font-size: 32px;
  color: #ffd56a;
  margin-bottom: 8px;
}

.notify-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #ffd56a;
  margin: 0 0 14px;
}

.notify-text {
  font-size: 13px;
  color: rgba(255, 255, 255, .75);
  line-height: 1.55;
  margin: 0 0 18px;
}

.notify-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #f0a020, #d47800);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.notify-close-x {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, .45);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.vip-rate-box { padding-top: 28px; }

.vip-rate-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
  margin: -6px 0 16px;
}

.vip-rate-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vip-rate-item {
  padding: 14px;
  border-radius: 10px;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vip-rate-item.rate-big { border-color: #27ae60; background: rgba(39, 174, 96, .08); }
.vip-rate-item.rate-super { border-color: #9b59b6; background: rgba(155, 89, 182, .08); }
.vip-rate-item.rate-mega { border-color: #f0a020; background: rgba(240, 160, 32, .08); }

.vip-rate-label {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, .75);
}

.vip-rate-val {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.vip-rate-item.rate-big .vip-rate-val { color: #7dffb0; }
.vip-rate-item.rate-super .vip-rate-val { color: #d8a8ff; }
.vip-rate-item.rate-mega .vip-rate-val { color: #ffd56a; }

/* --- Capital tier / token modals --- */
.notify-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
  margin: 0 0 16px;
  line-height: 1.5;
}

.token-activate-box .notify-icon { color: #ff8c32; }

.balance-tier-hint {
  margin: -6px 0 14px;
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .25);
}

.balance-tier-hint .tier-warn { color: #ffb366; }
.balance-tier-hint .tier-ok { color: #7dffb0; }

.hack-capital-banner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 140, 50, .4);
  background: rgba(255, 140, 50, .08);
  font-size: 11px;
  line-height: 1.45;
  color: rgba(255, 220, 180, .92);
}

.hack-capital-upgrade-btn {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 140, 50, .5);
  background: rgba(255, 140, 50, .15);
  color: #ffb366;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  cursor: pointer;
  font-family: Orbitron, sans-serif;
}

.hack-vip-full.hack-vip-locked {
  opacity: .75;
  border-style: dashed;
}

.hack-btn-robot.is-disabled,
.hack-btn-robot:disabled {
  opacity: .45;
  pointer-events: none;
}

.notify-btn-secondary {
  background: rgba(255, 255, 255, .08) !important;
  color: rgba(255, 255, 255, .75) !important;
  border: 1px solid rgba(255, 255, 255, .15);
}

.hack-scan-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #ffd56a;
  letter-spacing: .08em;
  animation: scanBlink 1s ease-in-out infinite;
}

@keyframes scanBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

.hack-data-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.hack-data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(212, 160, 48, .35);
  background: rgba(0, 0, 0, .35);
}

.hack-data-label {
  font-size: 11px;
  font-weight: 800;
  color: #ffd56a;
  letter-spacing: .04em;
}

.hack-data-val {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, .55);
  text-align: right;
}

.hack-data-row .hack-data-val.has-data {
  color: #7dffb0;
}

.hack-main-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #ff8c32 0%, #e65c00 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .05em;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(230, 92, 0, .45);
}

.hack-main-btn:hover { filter: brightness(1.06); }

@media (min-width: 768px) {
  .hack-screen-inner { max-width: 420px; }
}

