@charset "UTF-8";

/* =========================================================
   GOLFSTAR BOOKING MATCH
   final layout / left filter / right result / clean lobby UI
========================================================= */

:root{
  --bm-bg:#f5f8f5;
  --bm-bg-soft:#eef4ef;
  --bm-white:#ffffff;
  --bm-card:#ffffff;
  --bm-card-2:#fbfdfb;
  --bm-line:#dce6de;
  --bm-line-soft:#e9f0ea;
  --bm-text:#1c241f;
  --bm-text-2:#4e5e54;
  --bm-text-3:#7c8d82;

  --bm-green:#1f7a45;
  --bm-green-2:#2e9c5a;
  --bm-green-soft:#ecf8f0;

  --bm-blue:#2563eb;
  --bm-blue-2:#1d4ed8;
  --bm-blue-soft:#eef4ff;

  --bm-red:#dc2626;
  --bm-red-soft:#fff3f3;

  --bm-orange:#f59e0b;
  --bm-orange-soft:#fff7ed;

  --bm-navy:#0f172a;

  --bm-shadow-xs:0 8px 16px rgba(15,26,17,.04);
  --bm-shadow-sm:0 14px 28px rgba(15,26,17,.06);
  --bm-shadow:0 18px 40px rgba(15,26,17,.08);
  --bm-shadow-lg:0 28px 70px rgba(15,26,17,.14);

  --bm-radius-xs:10px;
  --bm-radius-sm:14px;
  --bm-radius-md:18px;
  --bm-radius-lg:22px;
  --bm-radius-xl:28px;

  --bm-max:1440px;
  --bm-sidebar:320px;
  --bm-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",sans-serif;
}

html,
body{
  background:
    radial-gradient(circle at top left, rgba(31,122,69,.05), transparent 22%),
    linear-gradient(180deg, #f7faf7 0%, #eef4ef 100%);
  color:var(--bm-text);
  font-family:var(--bm-font);
  letter-spacing:-.22px;
}

body.bm-ig,
body .bm-shell{
  background:
    radial-gradient(circle at top left, rgba(31,122,69,.05), transparent 22%),
    linear-gradient(180deg, #f7faf7 0%, #eef4ef 100%);
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:none; }

#booking-wrap{
  width:100%;
  max-width:var(--bm-max);
  margin:0 auto;
  padding:22px 20px 40px;
  box-sizing:border-box;
}

/* =========================================================
   DESKTOP LAYOUT : LEFT FILTER / RIGHT RESULT
========================================================= */
.bm-page-grid,
.bm-grid{
  display:grid;
  grid-template-columns:var(--bm-sidebar) minmax(0, 1fr);
  gap:24px;
  align-items:start;
}

.bm-side{
  min-width:0;
  width:100%;
}

.bm-main{
  min-width:0;
  width:100%;
}

.bm-side-head{
  position:sticky;
  top:86px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

@media (max-width: 1100px){
  :root{
    --bm-sidebar:300px;
  }
}

@media (max-width: 860px){
  #booking-wrap{
    padding:14px 12px 26px;
  }

  .bm-page-grid,
  .bm-grid{
    grid-template-columns:1fr;
    gap:16px;
  }

  .bm-side-head{
    position:static;
    top:auto;
  }
}

/* =========================================================
   COMMON PANEL
========================================================= */
.bm-panel,
.region-bar,
.bottom-filter-inner{
  background:var(--bm-white);
  border:1px solid var(--bm-line);
  border-radius:var(--bm-radius-lg);
  box-shadow:var(--bm-shadow-sm);
}

.bm-panel{
  padding:16px;
}

.bm-panel h2,
.bm-panel h3,
.bm-panel .section-title{
  margin:0 0 10px;
  font-size:13px;
  line-height:1.2;
  font-weight:1000;
  color:var(--bm-text);
}

/* =========================================================
   FORM
========================================================= */
.field{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.label{
  font-size:12px;
  color:var(--bm-text-2);
  font-weight:1000;
  letter-spacing:.04em;
}

.bm-side-search{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.bm-inline-actions{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}

.bm-inline-actions > *{
  flex:0 0 auto;
}

.bm-inline-actions .btn{
  min-width:46px;
}

.bm-search-note{
  font-size:12px;
  color:var(--bm-text-3);
  line-height:1.7;
  font-weight:900;
}

.region-bar{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:16px;
  margin:0;
}

.region-bar .label,
.bottom-filter-inner .label{
  font-size:12px;
  color:var(--bm-text-2);
  font-weight:1000;
  letter-spacing:.04em;
}

.region-bar select,
.bottom-filter-inner select,
.bottom-filter-inner .input,
.input,
input[type="text"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea{
  width:100%;
  border:1px solid var(--bm-line);
  background:#fff;
  color:var(--bm-text);
  border-radius:14px;
  padding:11px 13px;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
  box-sizing:border-box;
}

textarea{
  min-height:88px;
  resize:vertical;
}

input::placeholder,
textarea::placeholder{
  color:#a2b0a6;
}

input:focus,
select:focus,
textarea:focus{
  border-color:rgba(31,122,69,.42);
  box-shadow:0 0 0 4px rgba(31,122,69,.10);
}

.region-bar .help,
.help{
  font-size:12px;
  line-height:1.7;
  color:var(--bm-text-3);
  font-weight:900;
}

.bottom-filter-bar{
  display:none !important;
}

.bottom-filter-inner{
  max-width:1160px;
  margin:0 auto;
  padding:12px;
}

.bottom-filter-inner .searchbar{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:flex-end;
}

.bottom-filter-inner .field{
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1 1 180px;
}

.bottom-filter-inner .field:last-child{
  flex:0 0 auto;
  display:flex;
  flex-direction:row;
  gap:8px;
  align-items:center;
}

/* =========================================================
   PAGE HERO
========================================================= */
.bm-page-hero{
  background:var(--bm-white);
  border:1px solid var(--bm-line);
  border-radius:var(--bm-radius-xl);
  box-shadow:var(--bm-shadow);
  padding:20px;
  margin-bottom:14px;
  display:grid;
  grid-template-columns:minmax(0, 1fr) 240px;
  gap:16px;
}

.bm-page-kicker{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 12px;
  border-radius:999px;
  background:var(--bm-green-soft);
  color:var(--bm-green);
  border:1px solid #dbeee1;
  font-size:11px;
  font-weight:1000;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.bm-page-title{
  margin:12px 0 0;
  font-size:34px;
  line-height:1.08;
  font-weight:1000;
  letter-spacing:-.06em;
  color:var(--bm-text);
}

.bm-page-desc{
  margin:10px 0 0;
  font-size:13px;
  line-height:1.8;
  color:var(--bm-text-2);
  font-weight:900;
  max-width:760px;
}

.bm-page-stats{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}

.bm-page-stat{
  padding:16px 14px;
  border-radius:18px;
  border:1px solid var(--bm-line-soft);
  background:#fcfefd;
  box-shadow:var(--bm-shadow-xs);
}

.bm-page-stat b{
  display:block;
  font-size:18px;
  line-height:1.2;
  color:var(--bm-text);
  font-weight:1000;
  letter-spacing:-.04em;
}

.bm-page-stat span{
  display:block;
  margin-top:7px;
  font-size:11px;
  color:var(--bm-text-3);
  font-weight:1000;
  letter-spacing:.05em;
  text-transform:uppercase;
}

@media (max-width: 860px){
  .bm-page-hero{
    grid-template-columns:1fr;
    padding:16px;
  }

  .bm-page-title{
    font-size:28px;
  }

  .bm-page-stats{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .bm-page-stat:last-child{
    grid-column:1 / -1;
  }
}

/* =========================================================
   TOP TABS
========================================================= */
.top-tabs{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  margin:0 0 14px;
}

.top-tabs a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid var(--bm-line);
  background:#fff;
  color:var(--bm-text-2);
  font-size:13px;
  font-weight:1000;
  white-space:nowrap;
  box-shadow:0 8px 16px rgba(15,26,17,.03);
  transition:.16s ease;
}

.top-tabs a:hover{
  background:#fcfefd;
  color:var(--bm-text);
  border-color:#d1dfd5;
}

.top-tabs a.active{
  background:linear-gradient(135deg, var(--bm-green-soft) 0%, #f8fcf9 100%);
  color:var(--bm-green);
  border-color:#d8eadf;
}

@media (max-width: 560px){
  .top-tabs{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .top-tabs a{
    width:100%;
    min-width:0;
    padding:0 10px;
    font-size:12px;
  }
}

/* =========================================================
   MAIN SECTION
========================================================= */
.section{
  background:var(--bm-white);
  border:1px solid var(--bm-line);
  border-radius:var(--bm-radius-xl);
  box-shadow:var(--bm-shadow);
  padding:18px;
  overflow:hidden;
}

.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:16px;
}

.section-head h2{
  margin:0;
  font-size:32px;
  line-height:1.08;
  font-weight:1000;
  letter-spacing:-.05em;
  color:var(--bm-text);
}

.icon-btn{
  display:none;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:14px;
  border:1px solid var(--bm-line);
  background:#fff;
  box-shadow:var(--bm-shadow-xs);
  cursor:pointer;
}

.icon-btn:hover{
  background:#f8fbf8;
}

@media (max-width: 768px){
  .icon-btn.filter-trigger{ display:inline-flex; }
}

@media (max-width: 640px){
  .section{
    padding:14px;
    border-radius:22px;
  }

  .section-head h2{
    font-size:24px;
  }
}

/* =========================================================
   CREATE BUTTON
========================================================= */
.bm-create-panel{
  padding:0;
  background:transparent;
  border:0;
  box-shadow:none;
  overflow:visible;
}

.create-fab{
  position:relative;
  width:100%;
  min-height:62px;
  border:0;
  border-radius:20px;
  background:
    radial-gradient(circle at 24% 22%, rgba(255,255,255,.28), rgba(255,255,255,0) 28%),
    linear-gradient(135deg, #5c98ff 0%, #3374ff 40%, #1f5deb 100%);
  color:#fff;
  font-weight:1000;
  box-shadow:0 18px 30px rgba(37,99,235,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  overflow:hidden;
  isolation:isolate;
}

.create-fab::after{
  content:"";
  position:absolute;
  right:-20px;
  bottom:-20px;
  width:68px;
  height:68px;
  border-radius:50%;
  background:rgba(255,255,255,.12);
}

.create-fab span{
  position:relative;
  z-index:1;
  font-size:15px;
  line-height:1;
  letter-spacing:-.03em;
}

.create-fab .pulse{
  display:none;
}

.create-fab:active{
  transform:scale(.99);
}

@media (max-width: 860px){
  .create-fab{
    min-height:56px;
    border-radius:18px;
  }
}

/* =========================================================
   BUTTONS
========================================================= */
.btn,
button.btn,
input.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:40px;
  border-radius:14px;
  border:1px solid var(--bm-line);
  background:#fff;
  color:var(--bm-text);
  padding:0 14px;
  font-size:13px;
  font-weight:1000;
  cursor:pointer;
  transition:transform .12s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
  box-shadow:0 8px 16px rgba(15,26,17,.04);
}

.btn:hover{
  transform:translateY(-1px);
  box-shadow:var(--bm-shadow-xs);
  border-color:#cfe0d3;
  background:#fcfefd;
}

.btn:disabled,
.btn.disabled{
  background:#eef2ef !important;
  color:#9aa9a0 !important;
  border-color:#d8e0db !important;
  cursor:not-allowed !important;
  box-shadow:none !important;
  transform:none !important;
}

.btn-primary{
  background:linear-gradient(135deg, var(--bm-green) 0%, var(--bm-green-2) 100%);
  border-color:transparent;
  color:#fff;
  box-shadow:0 12px 22px rgba(31,122,69,.18);
}

.btn-primary:hover{
  background:linear-gradient(135deg, #166534 0%, #1f7a45 100%);
  color:#fff;
}

.btn-danger{
  background:linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color:transparent;
  color:#fff;
  box-shadow:0 12px 22px rgba(239,68,68,.18);
}

.btn-icon{
  width:34px;
  min-width:34px;
  padding:0;
}

.btn-reset{
  background:#fff;
  border:1px solid var(--bm-line);
}

.btn-move-blue{
  background:#dbeafe;
  border-color:#93c5fd;
  color:#1d4ed8;
}

.btn-move-red{
  background:#fee2e2;
  border-color:#fca5a5;
  color:#b91c1c;
}

.btn-power{
  color:#9ca3af;
}

.btn-power.on{
  color:#16a34a;
  border-color:rgba(22,163,74,.20);
  background:#f0fdf4;
}

/* =========================================================
   LIST / CARD
========================================================= */
.bm-list-headline{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-bottom:4px;
}

.bm-list-sub{
  font-size:13px;
  color:var(--bm-text-2);
  line-height:1.7;
  font-weight:900;
}

.bm-list-meta{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.bm-count-chip{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid var(--bm-line);
  background:#fff;
  color:var(--bm-text-2);
  font-size:12px;
  font-weight:1000;
  box-shadow:0 6px 12px rgba(15,26,17,.03);
}

.list{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.card{
  position:relative;
  background:var(--bm-card);
  border:1px solid var(--bm-line);
  border-radius:24px;
  box-shadow:var(--bm-shadow-sm);
  padding:18px;
  transition:transform .14s ease, box-shadow .18s ease, border-color .18s ease;
  overflow:hidden;
}

.card:hover{
  transform:translateY(-2px);
  box-shadow:var(--bm-shadow);
  border-color:#d5e3da;
}

.card::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background:linear-gradient(90deg, rgba(31,122,69,.10), rgba(31,122,69,0));
}

.bm-card-host{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}

.bm-card-avatar{
  width:46px;
  height:46px;
  border-radius:50%;
  object-fit:cover;
  border:1px solid #dbe6de;
  background:#f3f6f4;
  box-shadow:0 8px 16px rgba(15,26,17,.06);
  flex:0 0 46px;
}

.bm-card-host-meta{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.bm-card-host-meta strong{
  font-size:14px;
  line-height:1.2;
  color:var(--bm-text);
  font-weight:1000;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.bm-card-host-meta span{
  font-size:12px;
  line-height:1.2;
  color:var(--bm-text-3);
  font-weight:900;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.bm-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}

.bm-card-copy{
  min-width:0;
  flex:1;
}

.bm-card-kicker{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 9px;
  border-radius:999px;
  background:var(--bm-green-soft);
  color:var(--bm-green);
  border:1px solid #d9ece0;
  font-size:10px;
  font-weight:1000;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.card h3{
  margin:8px 0 0;
  font-size:21px;
  line-height:1.25;
  font-weight:1000;
  letter-spacing:-.04em;
  color:var(--bm-text);
  word-break:keep-all;
}

.bm-card-summary{
  margin:10px 0 0;
  font-size:13px;
  line-height:1.8;
  color:var(--bm-text-2);
  font-weight:900;
}

.bm-card-chipset{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
  flex:0 0 auto;
}

.meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  color:var(--bm-text-2);
  font-size:12px;
  margin-top:10px;
}

.badge,
.bm-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:34px;
  border:1px solid var(--bm-line);
  background:#fff;
  border-radius:999px;
  padding:0 12px;
  font-size:12px;
  color:#475569;
  font-weight:1000;
  box-shadow:0 6px 12px rgba(15,26,17,.03);
}

.bm-chip.is-open{
  background:#f0fdf4;
  color:#166534;
  border-color:#bbf7d0;
}

.bm-chip.is-full{
  background:#fff7ed;
  color:#9a3412;
  border-color:#fed7aa;
}

.bm-chip.is-closed{
  background:#0f172a;
  color:#fff;
  border-color:#0f172a;
}

.badge.timeleft{
  background:var(--bm-orange-soft);
  border-color:#fdba74;
  color:#9a3412;
}

.badge.match_done{
  background:#eef2ef;
  border-color:#dfe8e3;
  color:#64748b;
}

.bm-card-statgrid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:8px;
  margin-top:12px;
}

.bm-card-stat{
  padding:12px 12px 10px;
  border:1px solid var(--bm-line-soft);
  border-radius:16px;
  background:#fcfefd;
}

.bm-card-stat .k{
  display:block;
  font-size:11px;
  color:var(--bm-text-3);
  font-weight:900;
}

.bm-card-stat .v{
  display:block;
  margin-top:6px;
  font-size:16px;
  color:var(--bm-text);
  font-weight:1000;
  letter-spacing:-.03em;
}

.bm-card-statusline{
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  padding:13px 14px;
  border:1px dashed rgba(15,23,42,.10);
  border-radius:18px;
  background:#fcfefd;
}

.bm-card-queue{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  color:#475569;
  font-size:13px;
  font-weight:900;
}

.bm-card-queue strong{
  color:var(--bm-text);
  font-weight:1000;
}

.bm-card-queue .sep{
  width:1px;
  height:14px;
  background:var(--bm-line);
}

.bm-card-rightstat{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}

.status{
  font-size:15px;
  font-weight:1000;
  letter-spacing:-.02em;
}

.status.open{ color:#16a34a; }
.status.full{ color:#c2410c; }
.status.closed{ color:#ef4444; }

.bm-card-actionrow{
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.card-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

.bm-card-guide{
  font-size:12px;
  color:var(--bm-text-3);
  line-height:1.7;
  font-weight:900;
}

.empty_list{
  background:#fff;
  border:1px dashed #d7e2db;
  border-radius:20px;
  color:var(--bm-text-2);
  text-align:center;
  font-weight:900;
}

@media (max-width: 980px){
  .bm-card-statgrid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  .card{
    padding:14px;
    border-radius:20px;
  }

  .bm-list-headline{
    flex-direction:column;
    align-items:flex-start;
  }

  .bm-card-head{
    flex-direction:column;
  }

  .bm-card-chipset{
    justify-content:flex-start;
  }

  .card h3{
    font-size:18px;
  }

  .bm-card-statusline{
    padding:12px;
  }

  .status{
    width:100%;
    font-size:14px;
  }

  .bm-card-avatar{
    width:42px;
    height:42px;
    flex-basis:42px;
  }

  .bm-card-statgrid{
    grid-template-columns:1fr 1fr;
  }
}

/* =========================================================
   PAGING
========================================================= */
.paging{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:center;
  margin-top:16px;
}

.paging a,
.paging span{
  min-width:42px;
  height:42px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--bm-line);
  background:#fff;
  border-radius:14px;
  color:#334155;
  font-weight:1000;
  box-shadow:0 8px 16px rgba(15,26,17,.03);
}

.paging a:hover{
  border-color:#cfe0d3;
  background:#fcfefd;
}

.paging a.active{
  background:linear-gradient(135deg, var(--bm-green) 0%, var(--bm-green-2) 100%);
  color:#fff;
  border-color:transparent;
}

/* =========================================================
   LAYER / MODAL
========================================================= */
.layer-backdrop{
  position:fixed;
  inset:0;
  background:rgba(2,6,23,.42);
  opacity:0;
  pointer-events:none;
  transition:.18s ease;
  z-index:4000;
  backdrop-filter:blur(4px);
}

.layer-panel{
  position:fixed;
  left:50%;
  top:50%;
  transform:translate(-50%,-46%) scale(.98);
  width:min(92vw, 560px);
  max-height:84vh;
  overflow:auto;
  background:#fff;
  border-radius:24px;
  box-shadow:0 24px 70px rgba(0,0,0,.24);
  opacity:0;
  pointer-events:none;
  transition:.18s ease;
  z-index:4001;
  border:1px solid var(--bm-line);
}

.layer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid var(--bm-line-soft);
}

.layer-body{
  padding:16px;
}

.layer-active .layer-panel{
  opacity:1;
  pointer-events:auto;
  transform:translate(-50%, -50%) scale(1);
}

.layer-active .layer-backdrop{
  opacity:1;
  pointer-events:auto;
}

.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(2,6,23,.46);
  opacity:0;
  pointer-events:none;
  transition:.18s ease;
  z-index:3500;
  backdrop-filter:blur(5px);
}

.modal-backdrop.active{
  opacity:1;
  pointer-events:auto;
}

.modal-sheet{
  position:fixed;
  left:50%;
  bottom:0;
  transform:translate(-50%,110%);
  transition:.26s cubic-bezier(.2,.8,.2,1);
  width:min(1160px,95vw);
  max-height:90vh;
  background:#fff;
  border-radius:28px 28px 0 0;
  box-shadow:0 -26px 60px rgba(2,6,23,.22);
  z-index:3600;
  display:flex;
  flex-direction:column;
  border:1px solid var(--bm-line);
  overflow:hidden;
}

.modal-sheet.active{
  transform:translate(-50%,0%);
}

.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:16px 18px;
  border-bottom:1px solid var(--bm-line-soft);
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(10px);
}

.modal-head h3{
  margin:0;
  font-size:17px;
  line-height:1.2;
  font-weight:1000;
  letter-spacing:-.03em;
}

.modal-body{
  padding:18px;
  overflow:auto;
}

.modal-foot{
  padding:14px 18px;
  border-top:1px solid var(--bm-line-soft);
  background:rgba(255,255,255,.94);
}

@media (max-width: 640px){
  .modal-sheet{
    width:100%;
    max-width:100%;
    height:92vh;
    max-height:92vh;
    border-radius:22px 22px 0 0;
  }

  .modal-body{
    padding:14px;
  }
}

/* =========================================================
   ROOM / MAP
========================================================= */
.room-panel{
  background:#fff;
  border:1px solid var(--bm-line);
  border-radius:22px;
  padding:16px;
  box-shadow:var(--bm-shadow-xs);
}

.room-panel + .room-panel{
  margin-top:12px;
}

.mapbox{
  border:1px solid var(--bm-line);
  border-radius:22px;
  background:linear-gradient(180deg, #f5faf6 0%, #eef5ef 100%);
  padding:14px;
  box-shadow:var(--bm-shadow-xs);
  overflow:hidden;
}

#bkMap,
#detailMap{
  width:100%;
  height:420px;
  border-radius:16px;
  overflow:hidden;
  background:#fff;
}

.map-ctrls{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:10px;
}

/* =========================================================
   TEAM LOBBY
========================================================= */
.bm-lobby-hero{
  position:relative;
  overflow:hidden;
}

.bm-lobby-hero::before{
  content:"";
  position:absolute;
  inset:0 auto auto 0;
  width:100%;
  height:3px;
  background:linear-gradient(90deg, #60a5fa 0%, #22c55e 46%, #f59e0b 100%);
  opacity:.9;
}

.bm-lobby-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.bm-lobby-copy{
  min-width:0;
  flex:1;
}

.bm-lobby-kicker{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 12px;
  border-radius:999px;
  background:linear-gradient(135deg, rgba(37,99,235,.12) 0%, rgba(29,78,216,.08) 100%);
  color:#1d4ed8;
  border:1px solid rgba(37,99,235,.16);
  font-size:11px;
  font-weight:1000;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.bm-lobby-title{
  margin:12px 0 0;
  font-size:24px;
  line-height:1.1;
  font-weight:1000;
  letter-spacing:-.04em;
  color:var(--bm-text);
}

.bm-lobby-sub{
  margin:8px 0 0;
  font-size:13px;
  line-height:1.7;
  color:var(--bm-text-2);
  font-weight:900;
}

.bm-lobby-badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}

.bm-lobby-splitinfo{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}

.bm-lobby-stats{
  display:grid;
  grid-template-columns:repeat(2, minmax(132px,1fr));
  gap:10px;
  min-width:300px;
  flex:0 0 auto;
}

.bm-lobby-stat{
  padding:14px;
  border-radius:18px;
  border:1px solid var(--bm-line-soft);
  background:#fff;
  box-shadow:0 10px 18px rgba(15,26,17,.04);
}

.bm-lobby-stat .n{
  display:block;
  font-size:24px;
  line-height:1;
  font-weight:1000;
  color:var(--bm-text);
}

.bm-lobby-stat .t{
  display:block;
  margin-top:7px;
  font-size:11px;
  line-height:1.4;
  color:var(--bm-text-3);
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.bm-lobby-note{
  margin-top:12px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid var(--bm-line-soft);
  background:#fff;
  font-size:12px;
  color:var(--bm-text-2);
  line-height:1.8;
  font-weight:900;
}

.team-wrap{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-top:12px;
}

.team-col{
  position:relative;
  border-radius:24px;
  padding:16px;
  box-shadow:var(--bm-shadow-sm);
  overflow:hidden;
}

.team-col.blue{
  border:1px solid rgba(59,130,246,.22);
  background:linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(244,248,255,.98) 100%);
}

.team-col.red{
  border:1px solid rgba(239,68,68,.22);
  background:linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,247,247,.98) 100%);
}

.team-col::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  right:0;
  height:4px;
}

.team-col.blue::before{
  background:linear-gradient(90deg, #60a5fa 0%, #2563eb 100%);
}

.team-col.red::before{
  background:linear-gradient(90deg, #f87171 0%, #dc2626 100%);
}

.team-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px;
  padding-bottom:10px;
  border-bottom:1px dashed rgba(15,23,42,.10);
}

.team-head .title{
  font-weight:1000;
  font-size:24px;
  letter-spacing:-.04em;
}

.team-col.blue .team-head .title{ color:#1d4ed8; }
.team-col.red .team-head .title{ color:#b91c1c; }

.team-cap{
  font-size:13px;
  color:var(--bm-text-2);
  font-weight:1000;
}

.team-full{
  margin-top:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  border-radius:14px;
  background:#f8fafc;
  border:1px dashed rgba(15,23,42,.14);
  color:#334155;
  font-size:13px;
  font-weight:1000;
}

.member-row{
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  padding:14px;
  margin:10px 0;
  background:#fff;
}

.member-row + .member-row{
  margin-top:12px;
}

.member-main{
  display:flex;
  flex-direction:column;
  gap:10px;
  font-size:14px;
  line-height:1.6;
  color:#314338;
  font-weight:900;
}

.member-main .member-top,
.member-main .member-meta,
.member-main .member-extra{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.member-main .member-name,
.member-main strong{
  font-size:18px;
  line-height:1.2;
  color:var(--bm-text);
  font-weight:1000;
  letter-spacing:-.03em;
}

.member-main .member-id{
  color:#64748b;
  font-weight:900;
}

.member-main .member-meta{
  font-size:13px;
  color:var(--bm-text-2);
}

.member-main .member-extra{
  font-size:12px;
  color:var(--bm-text-3);
}

.member-main .member-chip{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 8px;
  border-radius:999px;
  border:1px solid var(--bm-line);
  background:#fff;
  color:#475569;
  font-size:11px;
  font-weight:1000;
}

.member-main > br{
  display:none;
}

.tag-leader{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:0 8px;
  font-size:11px;
  font-weight:1000;
  background:#dbeafe;
  color:#1d4ed8;
  border:1px solid #bfdbfe;
  border-radius:999px;
}

.member-ops{
  margin-top:12px;
  display:flex;
  gap:8px;
  align-items:flex-start;
  justify-content:flex-start;
  flex-wrap:wrap;
}

.gs-eval{
  display:flex;
  gap:6px;
  align-items:center;
  flex-wrap:wrap;
  padding:8px 10px;
  border:1px dashed rgba(15,23,42,.10);
  border-radius:14px;
  background:#fff;
  width:auto;
  max-width:100%;
}

.gs-eval .sel{
  width:64px;
  min-width:64px;
  height:34px;
  padding:0 8px;
  border:1px solid var(--bm-line);
  border-radius:10px;
  font-size:12px;
}

.gs-eval .save{
  height:34px;
  padding:0 11px;
  border:1px solid var(--bm-line);
  border-radius:10px;
  background:#fff;
  cursor:pointer;
  font-size:12px;
  font-weight:1000;
}

.status-help{
  margin-top:10px;
  padding:12px 14px;
  border-radius:14px;
  background:#f9fcfa;
  border:1px solid var(--bm-line-soft);
  font-size:12px;
  color:#314338;
}

.status-help-title{
  font-weight:1000;
  margin-bottom:5px;
}

.status-help ul{
  margin:0;
  padding-left:16px;
}

.status-help li{
  margin:2px 0;
  list-style:disc;
}

@media (max-width: 860px){
  .team-wrap{
    grid-template-columns:1fr;
  }
}

@media (max-width: 640px){
  .team-col{
    padding:14px;
    border-radius:20px;
  }

  .team-head .title{
    font-size:20px;
  }

  .member-row{
    padding:12px;
  }

  .member-main .member-name,
  .member-main strong{
    font-size:16px;
  }

  .member-ops{
    flex-direction:column;
    align-items:stretch;
  }

  .gs-eval{
    width:100%;
  }
}

/* =========================================================
   MARKER
========================================================= */
.mk-wrap{ position:relative; }

.k-dot-blue,
.k-dot-red{
  width:12px;
  height:12px;
  border-radius:50%;
  border:2px solid #fff;
  box-shadow:0 0 0 1px rgba(15,23,42,.16);
  margin:0 auto;
}

.k-dot-blue{ background:#2563eb; }
.k-dot-red{ background:#ef4444; }

.blink{
  animation:kBlink 1s infinite;
}

@keyframes kBlink{
  0%,100%{ opacity:1; transform:scale(1); }
  50%{ opacity:.42; transform:scale(1.15); }
}

.mk-label{
  position:absolute;
  white-space:nowrap;
  font-size:12px;
  line-height:1;
  padding:7px 10px;
  border-radius:10px;
  background:#111827;
  color:#fff;
  box-shadow:0 10px 18px rgba(0,0,0,.18);
  font-weight:1000;
}

.mk-top{ top:-10px; left:50%; transform:translate(-50%, -100%); }
.mk-right{ top:50%; left:18px; transform:translate(0, -50%); }
.mk-left{ top:50%; left:-18px; transform:translate(-100%, -50%); }
.mk-bottom{ top:20px; left:50%; transform:translate(-50%, 0); }

.mk-danger{ background:#dc2626; color:#fff; }
.mk-dark{ background:#111827; color:#fff; }

/* =========================================================
   REVIEW
========================================================= */
.bm-review-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.bm-review-stars{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}

.bm-review-stars label{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:36px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid var(--bm-line);
  background:#fff;
  color:#334155;
  font-size:12px;
  font-weight:1000;
  cursor:pointer;
}

.k-mini-pop{
  min-width:220px;
  padding:12px;
  border-radius:16px;
  background:rgba(255,255,255,.98);
  border:1px solid var(--bm-line);
  box-shadow:0 18px 36px rgba(15,23,42,.20);
  color:var(--bm-text);
  font-size:13px;
  line-height:1.6;
  font-weight:900;
}

.k-mini-pop .btns{
  display:flex;
  gap:8px;
  margin-top:10px;
}

.k-mini-pop .btns .btn{
  min-height:34px;
  padding:0 12px;
}