/* =====================================================================
   CHỐNG MACRO · MINI GAME · CHỖ CÂU CÁ · ADMIN GIÁM SÁT
   ===================================================================== */

/* ---------- Bảng xác minh người thật ---------- */
.guard-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 18, 30, .72);
  backdrop-filter: blur(3px);
  animation: gd-fade .2s ease both;
}
@keyframes gd-fade { from { opacity: 0; } to { opacity: 1; } }
.guard-card {
  width: min(420px, 92vw);
  background: #fff; border: 3px solid var(--outline, #2b2b3a); border-radius: 18px;
  box-shadow: 0 6px 0 var(--outline, #2b2b3a);
  padding: 16px 18px 14px; text-align: center;
  animation: gd-pop .35s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes gd-pop { from { transform: scale(.85); } to { transform: scale(1); } }
.guard-shield { font-size: 40px; line-height: 1; }
.guard-card h3 { margin: 6px 0 4px; font-size: 18px; }
.guard-why { font-size: 12px; color: #868e96; margin: 0 0 8px; }
.guard-why span { color: #e03131; font-weight: 700; }
.guard-ask { font-size: 15px; margin: 4px 0 10px; }
.guard-ask b { color: #d6336c; font-size: 17px; }
.guard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.guard-opt {
  font-size: 34px; padding: 10px 0; cursor: pointer;
  border: 2px solid #dee2e6; border-radius: 14px; background: #f8f9fa;
  transform: rotate(var(--d, 0deg)); transition: transform .12s, border-color .12s;
}
.guard-opt:hover { transform: rotate(0) scale(1.08); border-color: #f76707; background: #fff4e6; }
.guard-foot { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: #495057; font-weight: 700; }

/* ---------- Sân Chơi Mini Game ---------- */
.c-lime { --c1: #c0eb75; --c2: #5c940d; }
.mg-root { min-height: 320px; }
.mg-hero {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; margin-bottom: 12px;
  border: 2.5px solid var(--outline); border-radius: 14px;
  color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
  background: linear-gradient(90deg, #5c940d, #2b8a3e 60%, #1098ad);
}
.mg-hero-ico { font-size: 34px; text-shadow: none; }
.mg-hero > div > b:first-child { display: block; font-size: 17px; }
.mg-hero span { font-size: 12.5px; }
.mg-energy { margin-left: auto; background: rgba(255, 255, 255, .2); padding: 4px 10px; border-radius: 99px; white-space: nowrap; font-weight: 800; }
.mg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.mg-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border: 2px solid var(--outline); border-radius: 14px;
  background: #fffdf6; box-shadow: 0 3px 0 rgba(0, 0, 0, .15);
}
.mg-card.locked { opacity: .6; filter: grayscale(.5); }
.mg-ico {
  width: 54px; height: 54px; flex: none; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  border: 2px solid var(--outline); background: #fff3bf;
}
.mg-tra_da .mg-ico { background: #e3fafc; }
.mg-nem_lon .mg-ico { background: #ffe3e3; }
.mg-duoi_ruoi .mg-ico { background: #ebfbee; }
.mg-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mg-info b { font-size: 15px; }
.mg-info small { color: #666; font-size: 11.5px; line-height: 1.35; }
.mg-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 11.5px; font-weight: 700; margin-top: 3px; }
.mg-meta span { background: #f1f3f5; border-radius: 99px; padding: 1px 8px; }
.mg-play { flex: none; }
.mg-note { font-size: 11px; color: #868e96; margin: 10px 0 0; }

.mg-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.mg-top > b { font-size: 16px; }
.mg-score { margin-left: auto; font-weight: 800; background: #fff3bf; border: 2px solid var(--outline); border-radius: 99px; padding: 2px 12px; }
.mg-score.bump { animation: mg-bump .3s ease; }
@keyframes mg-bump { 50% { transform: scale(1.18); } }
.mg-energy-sm { font-weight: 800; }
.mg-stage {
  position: relative; min-height: 300px;
  border: 2.5px solid var(--outline); border-radius: 16px;
  background: linear-gradient(180deg, #fff9db, #fff);
  padding: 14px; overflow: hidden;
}
.mg-flash {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%);
  font-size: 22px; font-weight: 900; padding: 6px 16px; border-radius: 99px;
  border: 2px solid var(--outline); pointer-events: none;
  animation: mg-flash .9s ease both;
}
.mg-flash.ok { background: #d3f9d8; color: #2b8a3e; }
.mg-flash.bad { background: #ffe3e3; color: #c92a2a; }
@keyframes mg-flash { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.7); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -80%); } }

.mg-result { text-align: center; padding: 18px 10px; }
.mg-res-ico { font-size: 60px; animation: gd-pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.mg-result h3 { margin: 4px 0; }
.mg-stars { font-size: 28px; color: #fab005; letter-spacing: 4px; }
.mg-res-score { font-size: 40px; font-weight: 900; color: #f76707; -webkit-text-stroke: 1px var(--outline); }
.mg-res-score small { font-size: 14px; color: #868e96; -webkit-text-stroke: 0; }
.mg-best { display: inline-block; margin: 4px 0; padding: 2px 12px; border-radius: 99px; background: #fff3bf; font-weight: 900; color: #e67700; animation: mg-bump .6s ease 2; }
.mg-best.bad { background: #ffe3e3; color: #c92a2a; animation: none; }
.mg-reward { font-weight: 800; font-size: 15px; margin: 8px 0 2px; }
.mg-left { color: #868e96; }
.mg-res-act { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }

/* Thối Tiền */
.tt-wrap { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.tt-round { display: flex; justify-content: space-between; width: 100%; font-weight: 800; color: #495057; }
.tt-timer { width: 100%; height: 10px; border-radius: 99px; background: #e9ecef; overflow: hidden; border: 1.5px solid var(--outline); }
.tt-timer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #40c057, #94d82d); transition: width .1s linear; }
.tt-timer i.low { background: linear-gradient(90deg, #fa5252, #ff922b); }
.tt-customer { display: flex; align-items: center; gap: 12px; }
.tt-face { font-size: 54px; animation: tt-bob 1.6s ease-in-out infinite; }
@keyframes tt-bob { 50% { transform: translateY(-4px); } }
.tt-bubble { background: #fff; border: 2px solid var(--outline); border-radius: 14px; padding: 8px 14px; font-size: 15px; position: relative; }
.tt-bubble::before { content: ''; position: absolute; left: -10px; top: 50%; border: 8px solid transparent; border-right-color: var(--outline); transform: translateY(-50%); }
.tt-pay b { color: #2b8a3e; font-size: 18px; }
.tt-q { font-weight: 900; font-size: 16px; }
.tt-opts { display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)); gap: 10px; width: min(420px, 100%); }
.tt-opt {
  font: inherit; font-size: 18px; font-weight: 900; padding: 12px 6px; cursor: pointer;
  border: 2.5px solid var(--outline); border-radius: 14px; background: #fff;
  box-shadow: 0 3px 0 var(--outline); transition: transform .08s;
}
.tt-opt:hover:not(:disabled) { background: #fff4e6; }
.tt-opt:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--outline); }
.tt-opt.ok { background: #d3f9d8; border-color: #2b8a3e; }
.tt-opt.bad { background: #ffe3e3; border-color: #c92a2a; animation: mg-shake .3s; }
.tt-opt.reveal { background: #ebfbee; border-style: dashed; }
@keyframes mg-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* Pha Trà Đá */
.td-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.td-status { font-weight: 800; min-height: 22px; }
.td-cup { display: flex; align-items: center; gap: 10px; }
.td-glass { font-size: 44px; }
.td-order { display: flex; gap: 4px; flex-wrap: wrap; max-width: 420px; }
.td-order i { font-style: normal; font-size: 22px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: #fff; border: 2px solid #dee2e6; border-radius: 10px; }
.td-pad { display: grid; grid-template-columns: repeat(3, 96px); gap: 10px; }
.td-btn {
  font: inherit; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; cursor: pointer;
  border: 2.5px solid var(--outline); border-radius: 16px; background: #fff; box-shadow: 0 3px 0 var(--outline);
  transition: transform .1s, background .1s;
}
.td-btn span { font-size: 32px; }
.td-btn small { font-weight: 800; font-size: 11px; }
.td-btn:disabled { cursor: default; }
.td-btn.lit { background: #fff3bf; transform: scale(1.12); box-shadow: 0 0 0 5px rgba(250, 176, 5, .45), 0 3px 0 var(--outline); }
.td-btn.press { transform: translateY(2px) scale(.96); background: #e3fafc; }
.td-btn.bad { background: #ffe3e3; animation: mg-shake .3s; }

/* Ném Lon */
.nl-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.nl-status { font-weight: 800; text-align: center; min-height: 22px; }
.nl-field {
  position: relative; width: min(460px, 100%); height: 150px; border-radius: 14px;
  background: linear-gradient(180deg, #ffe8cc 0 62%, #c98b55 62%); border: 2px solid var(--outline);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 54px;
}
.nl-tower { display: flex; flex-direction: column; align-items: center; }
.nl-row { display: flex; gap: 0; }
.nl-row span { font-size: 28px; line-height: 1; display: inline-block; }
.nl-row span.fall { animation: nl-fall .8s cubic-bezier(.3, .7, .5, 1) forwards; }
@keyframes nl-fall { to { transform: translate(var(--x, 30px), 70px) rotate(var(--r, 120deg)); opacity: .6; } }
.nl-ball { position: absolute; left: 50%; bottom: 8px; font-size: 26px; transform: translateX(-50%); }
.nl-ball.hit { animation: nl-throw .4s ease-in forwards; }
.nl-ball.miss { animation: nl-throw-miss .4s ease-in forwards; }
@keyframes nl-throw { to { bottom: 70px; transform: translateX(-50%) scale(.6) rotate(540deg); } }
@keyframes nl-throw-miss { to { bottom: 120px; left: 88%; transform: translateX(-50%) scale(.5) rotate(540deg); } }
.nl-meter { position: relative; width: min(460px, 100%); height: 26px; border-radius: 99px; background: linear-gradient(90deg, #ffc9c9, #fff3bf, #ffc9c9); border: 2.5px solid var(--outline); overflow: hidden; }
.nl-zone { position: absolute; top: 0; bottom: 0; background: #8ce99a; border-left: 2px solid #2b8a3e; border-right: 2px solid #2b8a3e; }
.nl-bull { position: absolute; left: 50%; top: 0; bottom: 0; width: 28%; transform: translateX(-50%); background: #fa5252; opacity: .85; }
.nl-needle { position: absolute; top: -4px; bottom: -4px; width: 4px; margin-left: -2px; background: #212529; border-radius: 2px; box-shadow: 0 0 0 2px #fff; }
.nl-throw { font-size: 18px; padding: 10px 26px; }
.nl-throw small { font-size: 11px; opacity: .8; }

/* Đuổi Ruồi */
.dr-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dr-head { display: flex; gap: 14px; font-weight: 800; }
.dr-head .low { color: #e03131; animation: mg-bump .5s infinite; }
.dr-tip { color: #868e96; }
.dr-grid { display: grid; grid-template-columns: repeat(3, 92px); gap: 10px; touch-action: manipulation; }
.dr-cell {
  position: relative; height: 84px; cursor: pointer; user-select: none;
  border: 2.5px solid var(--outline); border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff, #f1f3f5);
  box-shadow: 0 4px 0 var(--outline);
}
.dr-food { font-size: 34px; }
.dr-bug { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(0); font-size: 30px; transition: transform .12s; pointer-events: none; }
.dr-cell.fly .dr-bug, .dr-cell.bee .dr-bug { transform: translate(-50%, -50%) scale(1); animation: dr-buzz .18s linear infinite alternate; }
@keyframes dr-buzz { from { margin-left: -2px; } to { margin-left: 2px; } }
.dr-cell.hit .dr-bug { transform: translate(-50%, -50%) scale(1.3) rotate(40deg); opacity: .3; animation: none; }
.dr-cell.whack { animation: dr-whack .18s ease; }
@keyframes dr-whack { 50% { transform: scale(.92); } }
.dr-cell.stung { background: #ffe3e3; }

/* ---------- Chỗ câu cá ---------- */
.spot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.spot-card { display: flex; align-items: center; gap: 12px; padding: 10px; border: 2px solid var(--outline); border-radius: 14px; background: #fff; }
.spot-card.here { border-color: #2b8a3e; background: #ebfbee; box-shadow: 0 0 0 3px rgba(64, 192, 87, .25); }
.spot-card.locked { background: #f8f9fa; }
.spot-art { width: 58px; height: 58px; flex: none; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 30px; border: 2px solid var(--outline); }
.spot-ao_lang .spot-art { background: linear-gradient(180deg, #94d82d 0 40%, #3d8bbd 40%); }
.spot-song_que .spot-art { background: linear-gradient(180deg, #86b56b 0 40%, #5b8c7a 40%); }
.spot-cang_bien .spot-art { background: linear-gradient(180deg, #74c0fc 0 40%, #1098ad 40%); }
.spot-dam_sen .spot-art { background: linear-gradient(180deg, #1a2c4c 0 40%, #22385e 40%); }
.spot-card.locked .spot-art { filter: grayscale(.7); }
.spot-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.spot-info small { color: #666; font-size: 11.5px; line-height: 1.35; }
.spot-info .ok { color: #2b8a3e; font-weight: 800; }
.spot-info .no { color: #e03131; font-weight: 800; }
.spot-fish { display: flex; flex-wrap: wrap; gap: 2px; font-size: 18px; }
.spot-fish i { font-style: normal; }
.spot-fish i.unk { filter: grayscale(1) brightness(.4); opacity: .5; }
.book-card { position: relative; }
.book-spot { position: absolute; top: 4px; right: 6px; font-size: 11px; letter-spacing: -1px; }

/* ---------- Admin giám sát ---------- */
.admin-stats [data-goto] { cursor: pointer; }
.adm-stat-live b { color: #2b8a3e; }
.adm-stat-warn { background: #fff5f5 !important; border-color: #fa5252 !important; }
.adm-stat-warn b { color: #e03131; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #40c057; margin-right: 6px; box-shadow: 0 0 0 3px rgba(64, 192, 87, .25); animation: badge-pulse 1.4s ease-in-out infinite; }
.adm-row.flagged { border-left: 4px solid #fa5252; }
.adm-auto { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; white-space: nowrap; }
.admin-filter .adm-auto input, .adm-auto input { flex: none; width: auto; min-width: 0; margin: 0; padding: 0; }
.role.flag { background: #fa5252; color: #fff; cursor: pointer; }
.role.flag.sev1 { background: #fab005; }
.role.flag.sev2 { background: #fd7e14; }
.sev { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 900; background: #adb5bd; margin-right: 4px; }
.sev.sev1, .sev1 { background: #fab005; }
.sev.sev2, .sev2 { background: #fd7e14; }
.sev.sev3, .sev3 { background: #e03131; }
b.sev3 { background: none; color: #e03131; }
.flag-row.reviewed { opacity: .55; }
.flag-row .adm-user small { display: block; }
.adm-suspects { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.adm-suspect { font: inherit; font-size: 12.5px; cursor: pointer; border: 2px solid var(--outline); border-radius: 99px; padding: 3px 10px; background: #fff; }
.adm-suspect b { margin-left: 4px; color: #fff; border-radius: 99px; padding: 0 6px; background: #868e96; }
.adm-suspect.sev3 { background: #fff5f5; }
.adm-suspect.sev3 b { background: #e03131; }
.adm-suspect.sev2 b { background: #fd7e14; }
.adm-suspect.sev1 b { background: #fab005; }

@media (max-width: 760px) {
  .mg-grid, .spot-grid { grid-template-columns: 1fr; }
  .mg-card { flex-wrap: wrap; }
  .mg-play { width: 100%; }
  .td-pad { grid-template-columns: repeat(3, 82px); }
  .dr-grid { grid-template-columns: repeat(3, 80px); }
  .dr-cell { height: 74px; }
}
@media (prefers-reduced-motion: reduce) {
  .tt-face, .live-dot, .dr-cell.fly .dr-bug, .dr-cell.bee .dr-bug { animation: none; }
}
