:root {
  --bg: #f3f6f1; --card: #fff; --ink: #1f2a1f; --muted: #66756a; --line: #dfe6dc;
  --green: #2f7d4a; --green-2: #e3f1e6; --red: #d64532; --red-2: #fde8e5; --amber: #e09a1a; --amber-2: #fdf2dc;
  --wood: #7a4a24; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); }
a { color: var(--green); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
.muted { color: var(--muted); font-size: .9rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 16px; }

/* Đầu trang */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px 20px;
  background: #23412c; color: #fff; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; white-space: nowrap; }
.logo { font-size: 1.4rem; }
.tabs { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.tabs a { color: #d6e6da; text-decoration: none; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.tabs a:hover { background: rgba(255,255,255,.08); }
.tabs a.on { background: #fff; color: #23412c; font-weight: 600; }
main { max-width: 1200px; margin: 0 auto; padding: 20px; }
.tab { display: none; }
.tab.on { display: block; }
body:not(.admin) .admin-only, body:not(.owner) .owner-only { display: none !important; }

/* Nút */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--green);
  background: var(--green); color: #fff; border-radius: 8px; padding: 8px 14px; font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--green); }
.top .btn.ghost, .btn.ghost.light { color: #fff; border-color: rgba(255,255,255,.6); }
.btn.sm { padding: 4px 10px; font-size: .85rem; }
.btn.red { background: var(--red); border-color: var(--red); }
.btn.amber { background: var(--amber); border-color: var(--amber); }
.btn.icon { padding: 4px 8px; background: transparent; color: var(--muted); border-color: var(--line); font-weight: 500; }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gap { gap: 10px; margin-top: 10px; }
.end { justify-content: flex-end; }

/* Giờ câu */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.bar h2 { margin: 0; }
.bar-right { display: flex; gap: 8px; flex-wrap: wrap; }
input, select, textarea { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.summary { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.summary span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .9rem; }
.table-wrap { padding: 0; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; min-width: 860px; }
.tbl th { text-align: left; font-size: .8rem; color: var(--muted); font-weight: 600; background: #f8faf7; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.done td { color: var(--muted); }
.spotno { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; }
.done .spotno { background: #9aa59c; }
.who b { display: block; }
.who small { color: var(--muted); font-variant-numeric: tabular-nums; }
.dur { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.05rem; color: var(--green); }
.done .dur { color: var(--muted); }
.time { font-variant-numeric: tabular-nums; }
.rate { min-width: 170px; }
.rate-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: #eceff0; margin: 4px 0; }
.rate-bar i { background: var(--green); }
.rate-bar u { background: var(--red); }
.rate-txt { font-size: .85rem; }
.rate-txt .ok { color: var(--green); font-weight: 700; }
.rate-txt .no { color: var(--red); font-weight: 700; }
.rate-btns { display: flex; gap: 4px; margin-top: 4px; }
.acts { display: flex; gap: 4px; justify-content: flex-end; }
.empty { text-align: center; color: var(--muted); padding: 24px; margin: 0; }
.tag { display: inline-block; font-size: .8rem; padding: 2px 8px; border-radius: 99px; background: var(--amber-2); color: #8a5a00; }

/* Sơ đồ */
.legend { display: flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--muted); flex-wrap: wrap; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-left: 8px; }
.dot.free { background: #fff; border: 2px solid var(--green); }
.dot.busy { background: var(--red); }
.dot.wait { background: var(--amber); }
.map-layout { display: grid; grid-template-columns: minmax(0, 560px) 1fr; gap: 16px; align-items: start; }
.map { position: relative; padding: 0; overflow: hidden; user-select: none; }
.map img { display: block; width: 100%; height: auto; }
.pins { position: absolute; inset: 0; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff;
  background: #fff; color: var(--green); font-weight: 800; font-size: .95rem; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.35); outline: 2px solid var(--green); padding: 0; font-family: inherit; }
.pin.busy { background: var(--red); color: #fff; outline-color: #fff; }
.pin.wait { background: var(--amber); color: #fff; outline-color: #fff; }
.pin.sel { box-shadow: 0 0 0 5px rgba(255,255,255,.75), 0 2px 8px rgba(0,0,0,.5); z-index: 2; }
.pin .lbl { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 4px; background: rgba(20,30,20,.85); color: #fff;
  font-size: .72rem; font-weight: 600; padding: 1px 6px; border-radius: 6px; white-space: nowrap; max-width: 110px; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.edit .pin { cursor: grab; touch-action: none; }
.edit .pin.drag { cursor: grabbing; z-index: 3; }
.side { display: grid; gap: 16px; }
.spot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.spot-item { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; background: #fff; text-align: left; font: inherit; color: inherit; }
.spot-item b { display: block; }
.spot-item small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spot-item.busy { border-color: var(--red); background: var(--red-2); }
.spot-item.wait { border-color: var(--amber); background: var(--amber-2); }
.spot-item.sel { box-shadow: 0 0 0 2px var(--green); }
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

/* Cài đặt */
.settings { display: grid; gap: 16px; max-width: 640px; }
.settings .map { max-width: 420px; margin-top: 10px; }
.form { display: grid; gap: 10px; }
.form label { display: grid; gap: 4px; font-size: .9rem; color: var(--muted); }
.form label.check { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.form .row label { flex: 1; }
.file { cursor: pointer; }
#guestForm { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
#guestForm h4 { margin: 0; font-size: .9rem; }
/* Nút Quản trị + menu */
.acct { position: relative; margin-left: auto; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.2); min-width: 170px; padding: 6px; z-index: 40; }
.menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 8px; font: inherit; color: var(--ink); cursor: pointer; }
.menu button:hover { background: var(--green-2); }
/* Chân trang */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; }
.foot { background: #23412c; color: #d6e6da; text-align: center; padding: 16px; font-size: .9rem; line-height: 1.7; }
.foot a { color: #fff; }
.err { color: var(--red); margin: 0; min-height: 1.2em; font-size: .9rem; }

dialog { border: 0; border-radius: 14px; padding: 20px; width: min(420px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(10,20,10,.45); }
dialog.new .edit-only, dialog.edit .new-only { display: none; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: #1f2a1f; color: #fff; padding: 10px 16px;
  border-radius: 10px; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.bad { background: var(--red); }

@media (max-width: 820px) {
  .top { flex-wrap: wrap; padding: 8px 16px; gap: 8px; }
  .tabs { order: 3; flex-basis: 100%; }
  .brand { flex: 1; }
  main { padding: 16px; }
  .map-layout { grid-template-columns: 1fr; }
  .pin { width: 28px; height: 28px; font-size: .8rem; }
  .pin .lbl { font-size: .65rem; max-width: 80px; }
}
.form p { margin: 0; }

/* ===== Bản 3: trạng thái 1 nút, tỉ lệ chọn 1 trong 2, giao diện máy tính + điện thoại ===== */
.summary span b { margin-left: 4px; }
.summary span.ok b { color: var(--green); }
.summary span.no b { color: var(--red); }
.tbl { min-width: 900px; }
.tbl td { padding: 12px; }
.tbl tr.run .spotno { background: var(--red); }
.tbl tr.wait .spotno { background: var(--amber); }
.tbl tr:hover td { background: #fafcf9; }
.c-dur { white-space: nowrap; }
.status-btn { min-width: 116px; }
.pill { display: inline-block; font-size: .82rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill.wait { background: var(--amber-2); color: #8a5a00; }
.pill.run { background: var(--red-2); color: var(--red); }
.pill.end { background: #eceff0; color: var(--muted); }
.pill.duoc { background: var(--green-2); color: var(--green); }
.pill.say { background: var(--red-2); color: var(--red); }
.seg { display: inline-flex; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.seg-btn { border: 0; background: #fff; color: var(--muted); font: inherit; font-size: .85rem; font-weight: 600; padding: 8px 12px; cursor: pointer; white-space: nowrap; }
.seg-btn + .seg-btn { border-left: 1px solid var(--line); }
.seg-btn.duoc:hover { color: var(--green); }
.seg-btn.say:hover { color: var(--red); }
.seg-btn.duoc.on { background: var(--green); color: #fff; }
.seg-btn.say.on { background: var(--red); color: #fff; }
.panel-row { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.bar-right input, .bar-right select { height: 40px; }

/* Điện thoại: mỗi lượt câu là một thẻ */
@media (max-width: 760px) {
  .bar { gap: 10px; }
  .bar-right { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .bar-right #btnAdd { grid-column: 1 / -1; height: 44px; }
  .summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .summary span { text-align: center; border-radius: 10px; }
  .table-wrap { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .tbl { min-width: 0; display: block; }
  .tbl thead { display: none; }
  .tbl tbody { display: grid; gap: 12px; }
  .tbl tr { display: grid; grid-template-columns: 40px 1fr 1fr 1fr auto; grid-template-areas:
      "spot who who who acts" "in in out dur dur" "status status status status status" "rate rate rate rate rate";
    gap: 10px 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
  .tbl tr:hover td { background: none; }
  .tbl td { display: block; padding: 0; border: 0; }
  .tbl td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
  .c-spot { grid-area: spot; } .c-who { grid-area: who; align-self: center; } .c-acts { grid-area: acts; }
  .c-in { grid-area: in; } .c-out { grid-area: out; } .c-dur { grid-area: dur; }
  .c-status { grid-area: status; } .c-rate { grid-area: rate; }
  .c-status .btn, .c-status .pill { width: 100%; text-align: center; padding: 10px; font-size: .95rem; }
  .c-rate .seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .c-rate .seg-btn { padding: 10px 6px; white-space: normal; }
  .c-acts .acts { flex-wrap: wrap; justify-content: flex-end; max-width: 150px; }
  .c-spot { align-self: center; }
  .c-in, .c-out, .c-dur { padding-top: 8px !important; border-top: 1px dashed var(--line) !important; }
  .dur { font-size: 1.15rem; }
  .empty { background: #fff; border-radius: 14px; border: 1px solid var(--line); }
  .top .btn.ghost { padding: 6px 10px; }
}

/* ===== Bản 4 ===== */
html, body { overflow-x: hidden; }
.bar .summary { margin: 0; }
.panel-head h3 { margin: 0; flex: 1; }
.panel-head .acts { margin-left: auto; }
.panel-row { align-items: center; }
.panel-row .status-btn, .panel-row .pill { min-width: 0; }
dialog.fixed .spot-field { display: none; }

@media (max-width: 760px) {
  main { padding: 12px; }
  .bar { flex-direction: column; align-items: stretch; }
  .bar-right { order: 1; grid-template-columns: 1fr 1fr; gap: 8px; }
  .bar .summary { order: 2; }
  /* Ô ngày cao bằng ô chọn */
  .bar-right input, .bar-right select { height: 40px; min-height: 40px; padding: 0 10px; font-size: 16px;
    -webkit-appearance: none; appearance: none; background-color: #fff; line-height: 38px; width: 100%; }
  .bar-right input::-webkit-date-and-time-value { text-align: left; }
  .bar-right select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 16px) 17px, calc(100% - 11px) 17px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 26px; }
  /* 4 ô thống kê nhỏ trên 1 dòng */
  .summary { display: flex; flex-wrap: nowrap; gap: 6px; }
  .summary span { flex: 1; padding: 4px 2px; font-size: .72rem; text-align: center; white-space: nowrap; border-radius: 8px; }
  .summary span b { margin-left: 2px; }
  input, select, textarea { font-size: 16px; }
  /* Thẻ lượt câu: nút Trạng thái + 2 nút tỉ lệ trên 1 dòng */
  .tbl tr { grid-template-columns: repeat(6, 1fr); grid-template-areas:
      "spot who who who acts acts" "in in out out dur dur" "status status rate rate rate rate"; padding: 12px; }
  .c-acts .acts { flex-wrap: nowrap; max-width: none; }
  .c-status .btn, .c-status .pill { padding: 10px 4px; font-size: .85rem; height: 100%; display: flex; align-items: center; justify-content: center; }
  .c-rate .seg-btn { padding: 8px 4px; font-size: .78rem; line-height: 1.25; }
  .c-status .pill, .panel-row .pill { border-radius: 10px; }
  .panel-row { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
  .panel-row .seg { display: grid; grid-template-columns: 1fr 1fr; }
  .panel-row .seg-btn { white-space: normal; padding: 8px 4px; font-size: .8rem; }
  .panel-row .btn, .panel-row .pill { padding: 8px 4px; font-size: .85rem; justify-content: center; text-align: center; }
}

/* ===== Bản 5: khách tự đăng ký ===== */
:root { --purple: #7b4bc4; --purple-2: #efe7fb; }
.dot.pend { background: var(--purple); }
.pin.pend { background: var(--purple); color: #fff; outline-color: #fff; }
.pin.own { box-shadow: 0 0 0 4px #ffd84d, 0 2px 8px rgba(0,0,0,.5); z-index: 2; }
.pill.pend { background: var(--purple-2); color: var(--purple); }
.btn.purple { background: var(--purple); border-color: var(--purple); }
.btn.red-txt { color: var(--red); border-color: var(--red); }
.tbl tr.pend .spotno { background: var(--purple); }
.regtag { display: inline-block; color: var(--purple) !important; font-size: .75rem; }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px;
  border-radius: 99px; background: var(--purple); color: #fff; font-size: .72rem; font-weight: 700; }
.mine { border: 2px solid #ffd84d; }
.mine > h3 { margin: 0 0 8px; }
.mine-item + .mine-item { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 10px; }
.mine-item.done { opacity: .75; }
.mine .panel-head .pill { margin-left: auto; }
#spotPanel [data-act="register"] { width: 100%; padding: 12px; font-size: 1rem; }
.who .regtag { display: block; }
.mine-item.pend .spotno { background: var(--purple); }
.mine-item.wait .spotno { background: var(--amber); }
.mine-item.done .spotno { background: #9aa5a0; }
@media (max-width: 760px) {
  .legend { font-size: .8rem; gap: 4px; flex-wrap: nowrap; white-space: nowrap; }
  .legend .dot { margin-left: 4px; width: 10px; height: 10px; }
}

/* ===== Bản 6: tải app, thông báo ===== */
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.title-row h2 { margin: 0; }
.title-btns { display: flex; gap: 8px; flex-wrap: wrap; }
#btnNotify.on { background: var(--green-2); }
#installHelp ol, #installHelp ul { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 6px; color: var(--ink); }
@media (max-width: 760px) {
  .title-btns { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .title-btns .btn { padding: 10px 6px; font-size: .9rem; }
}
.badge[hidden] { display: none; }

/* ===== Bản 7: mã QR ===== */
.qr-card { display: flex; gap: 18px; align-items: center; }
.qr-card img { width: 180px; height: auto; border-radius: 10px; border: 1px solid var(--line); flex: none; }
.qr-card h3 { margin-top: 0; }
@media (max-width: 760px) {
  .qr-card { flex-direction: column; align-items: stretch; text-align: center; }
  .qr-card img { width: 70%; margin: 0 auto; }
  .qr-card .row { justify-content: center; }
}

/* ===== Bản 8: popup xác nhận ===== */
#dlgConfirm { max-width: 380px; }
#cfmMsg { margin: 0; color: var(--ink); }

/* ===== Bản 9: khách báo cá ăn ===== */
.rate { min-width: 0; }
.rate-txt { white-space: nowrap; }
.rate small { display: block; font-size: .75rem; }
.rate-none { font-size: .85rem; }
.kv-sep { color: var(--muted); margin: 0 8px 0 18px; }
.mine .bite-btn { width: 100%; padding: 14px; font-size: 1.1rem; margin-top: 12px; }
.mine .bite-ask { margin: 12px 0 8px; font-weight: 700; text-align: center; }
.mine .bite-res { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mine .bite-res .btn { padding: 14px 6px; font-size: 1rem; }
.mine .bite-res { margin-top: 12px; }
.mine .bite-ask { margin: 8px 0 0; font-weight: 600; color: var(--muted); }
.mine .bite-wait { margin: 12px 0 0; text-align: center; font-size: .85rem; }
.bite-cnt { color: var(--muted); font-weight: 600; }
.bite-cnt b { color: var(--ink, inherit); }
.bite-cnt .ok { color: var(--green); } .bite-cnt .no { color: var(--red); }
.rate .rate-none { display: block; }
#tab-caidat .title-row { justify-content: flex-end; }
#biteMin { width: 80px; }
.rate-bar i { transition: width .3s; }
.mine .rate { max-width: 260px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.card-head h3 { margin: 0; white-space: nowrap; }
.card-head .title-btns { display: flex; gap: 6px; width: auto; flex-wrap: nowrap; }
.card-head .title-btns .btn { padding: 6px 10px; font-size: .82rem; white-space: nowrap; }
@media (max-width: 380px) { .card-head .title-btns .btn { padding: 6px 7px; font-size: .76rem; } }
/* Bản 20: logo mới, cá nhảy giữa hồ */
.logo { width: 34px; height: 34px; border-radius: 50%; background: #fff; padding: 2px; object-fit: contain; flex: none; }
.map .fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.jump { position: absolute; width: calc(17% * var(--s, 1)); aspect-ratio: 2 / 1.3; transform: translate(-50%, -100%); }
.jump.flip { transform: translate(-50%, -100%) scaleX(-1); }
.jump .fish { position: absolute; left: 0; bottom: 4%; width: 48%; height: auto; overflow: visible; opacity: 0;
  transform-origin: 50% 50%; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); animation: fishArc 1.25s cubic-bezier(.3,.6,.6,1) .12s forwards; }
@keyframes fishArc {
  0% { transform: translate(0, 60%) rotate(-58deg); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(55%, -95%) rotate(4deg); }
  90% { opacity: 1; }
  100% { transform: translate(108%, 70%) rotate(66deg); opacity: 0; }
}
.jump .ripple { position: absolute; bottom: 0; width: 46%; aspect-ratio: 3 / 1; margin-bottom: -6%; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.75); box-shadow: 0 0 0 3px rgba(255,255,255,.18); opacity: 0; transform: scale(.2); }
.jump .ripple.a { left: 2%; animation: ripple 1.3s ease-out forwards; }
.jump .ripple.b { right: -4%; animation: ripple 1.5s ease-out 1.2s forwards; }
@keyframes ripple { 0% { opacity: .9; transform: scale(.2); } 100% { opacity: 0; transform: scale(1.7); } }
.jump .drops { position: absolute; left: 18%; bottom: 6%; width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.9);
  box-shadow: -7px -4px 0 -1px rgba(255,255,255,.85), 6px -6px 0 0 rgba(255,255,255,.8), 2px -11px 0 -1px rgba(255,255,255,.7);
  opacity: 0; animation: drops .7s ease-out .05s forwards; }
@keyframes drops { 0% { opacity: 1; transform: translateY(4px) scale(.6); } 100% { opacity: 0; transform: translateY(-14px) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .map .fx { display: none; } }
/* Bản 22: bảng gỗ cuối sơ đồ */
.map .board { position: absolute; left: 48.5%; bottom: 1.2%; transform: translateX(-50%); width: 46%; min-width: 170px; z-index: 3;
  padding: 5px 10px 6px; border-radius: 8px; text-align: center; color: #fff6dc; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.07) 0 2px, transparent 2px 7px), linear-gradient(180deg, #a8693a, #7a4520 55%, #5e3315);
  border: 2px solid #4a2810; box-shadow: inset 0 1px 0 rgba(255,220,170,.45), 0 3px 6px rgba(0,0,0,.35);
  text-shadow: 0 1px 1px rgba(0,0,0,.6); line-height: 1.25; }
.map .board::before, .map .board::after { content: ""; position: absolute; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: #d9b27a; box-shadow: inset 0 -1px 1px rgba(0,0,0,.5); }
.map .board::before { left: 5px; } .map .board::after { right: 5px; }
.map .board .b1 { font-weight: 700; font-size: clamp(.72rem, 2.6vw, .95rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map .board .b2 { font-size: clamp(.68rem, 2.4vw, .88rem); color: #ffe08a; font-variant-numeric: tabular-nums; white-space: nowrap; }
.map .board .dur { font: inherit; color: inherit; letter-spacing: 0; display: inline; padding: 0; background: none; }
/* Bản 23: bảng gỗ to hơn, nền nhạt hơn */
.map .board { width: 56%; min-width: 210px; min-height: 3.6em; padding: 7px 14px 8px; bottom: 1%; display: flex; flex-direction: column; justify-content: center;
  background: repeating-linear-gradient(0deg, rgba(90,50,20,.08) 0 2px, transparent 2px 8px), linear-gradient(180deg, #d9a56d, #b67a45 55%, #9a6233);
  border-color: #6e4220; color: #fffaf0; }
.map .board .b1 { font-size: clamp(.9rem, 3.4vw, 1.2rem); }
.map .board .b2 { font-size: clamp(.84rem, 3.1vw, 1.1rem); color: #fff1b8; }
.map .board::before { left: 7px; } .map .board::after { right: 7px; }
/* Bản 24: chữ bảng gỗ dòng 1 đen, dòng 2 xanh đậm */
.map .board { text-shadow: 0 1px 0 rgba(255,235,200,.45); }
.map .board .b1 { color: #111; }
.map .board .b2 { color: #0b4d2a; font-weight: 700; }
.map .board .b2 { font-weight: 800; font-size: clamp(.95rem, 3.5vw, 1.25rem); }
.map .board .b2 { color: #0b3d91; }
.map .board { text-shadow: 0 1px 2px rgba(0,0,0,.65); }
.map .board .b1 { color: #fff; font-weight: 800; }
.map .board .b2 { color: #fff; }
.map .board { text-shadow: 0 1px 0 rgba(255,235,200,.45); }
.map .board .b1 { color: #111; }
.map .board .b2 { color: #0b4d2a; }
