/* =========================
   HALL TV CLEAN LAYOUT (B)
   Target: 3840x2160
   ========================= */

html, body{
  height: 100%;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #0a0f1a !important; /* visible strip around frame */
}

/* Outer page frame = your sketch */
.pageFrame{
  position: fixed;
  top: 16px;
  right: 16px;
  bottom: 16px;
  left: 16px;
  border-radius: 28px;
  overflow: hidden;
  background: #0b1220;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 55px rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
}

/* Header stays inside frame */
.pageFrame .hallHead{
  flex: 0 0 auto;
}

/* Main grid fills remaining height */
.pageFrame .hallGrid{
  flex: 1 1 auto;
  min-height: 0;
  padding: 12px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 2.35fr 1fr; /* left machines / right bonus */
  gap: 14px;
}

/* Left machines area */
.pageFrame .hallPlans{
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* 4 machine boxes (2x2) ALWAYS */
.pageFrame .machinesGrid{
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
}

/* Machine card styling */
.pageFrame .machineCard{
  border-radius: 24px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
  padding: 16px 16px 14px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  min-height: 0;
}

.pageFrame .machineHead{ flex: 0 0 auto; }
.pageFrame .machineDay{
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 18px !important;
  overflow: hidden !important;
}

/* Lists inside machineDay */
.pageFrame .hall3cols{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.pageFrame .hallCol{ display: flex; flex-direction: column; gap: 6px; }
.pageFrame .miniRow{ padding: 4px 0; }
.pageFrame .miniIdx{
  width: 44px;
  height: 44px;
  font-size: 18px;
}
.pageFrame .miniTxt{
  font-size: 22px;
  line-height: 1.15;
}

/* Machine title typography */
.pageFrame .machineName{ font-size: 34px !important; line-height: 1.05; }
.pageFrame .machineCode{ font-size: 16px !important; opacity: 0.85; }
.pageFrame .dayBadge{ font-size: 15px !important; padding: 6px 10px; }

/* Right bonus panel */
.pageFrame .hallBonus{
  border-radius: 24px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);

  padding: 16px 16px 14px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  min-height: 0;
}

.pageFrame .bonusStats{ flex: 0 0 auto; }
.pageFrame .chipBinWrap{
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Keep space for bottom messages */
.pageFrame .chipContainer{
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 52vh;
}

/* Bottom bonus text always visible */
.pageFrame .bonusFooter,
.pageFrame .bonusStatus,
.pageFrame .bonusNote{
  flex: 0 0 auto;
}

/* Keep % badge visible */
.pageFrame .pctBadge{
  font-size: 18px;
}

/* If browser chrome reduces viewport, this keeps it stable */
@media (max-height: 2100px){
  .pageFrame{ top: 14px; right: 14px; bottom: 14px; left: 14px; }
}
