/* ==========================================================================
   PHONE — host settings panel, performance rounds, and a less bland join.
   Loaded last.
   ========================================================================== */

/* ---- join screen --------------------------------------------------------- */

/* The join screen was flat dark. It is the first thing anyone sees, so it now
   carries a soft glow behind the wordmark and a little life in the logo. */
#p-join {
  background:
    radial-gradient(60% 40% at 50% 12%, rgba(234,88,125,.16), transparent 70%),
    radial-gradient(50% 34% at 50% 82%, rgba(235,201,90,.10), transparent 70%);
}
#p-join .logo {
  font-size: 2.9rem;
  animation: joinFloat 5s ease-in-out infinite;
}
@keyframes joinFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
.join-tag {
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
  letter-spacing: .22em;
  font-weight: 700;
  margin: -18px 0 26px;
}
#p-join .field input {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}
#codeInput { font-size: 1.9rem; }

/* ---- host entry ---------------------------------------------------------- */

/* Deliberately secondary. Almost everyone here is joining; exactly one person
   is hosting, and they should not have to hunt for it either. */
.host-entry { margin-top: 22px; }

.host-entry-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .2em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.host-entry-rule::before,
.host-entry-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.host-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  padding: 14px 16px;
  line-height: 1.25;
  transition: border-color .15s var(--ease), color .15s var(--ease);
}
.host-link:hover { border-color: var(--gold); color: var(--text); }
.host-link-icon { font-size: 1.5rem; }
.host-link b {
  display: block;
  color: var(--text);
  font-size: 1rem;
  letter-spacing: .06em;
}
.host-link small {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
  margin-top: 2px;
}

/* ---- host settings ------------------------------------------------------- */

#p-settings { padding-top: 14px; }

.set-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.set-head h2 { font-size: 1rem; letter-spacing: .2em; color: var(--muted); }
.set-done { padding: 8px 16px; font-size: .85rem; }

.set-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 20px;
}

.set-block {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.set-block h3 {
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.set-note { color: var(--muted); font-size: .78rem; line-height: 1.4; margin-top: 8px; }

/* segmented control */
.seg { display: flex; gap: 6px; }
.seg-btn {
  flex: 1;
  background: transparent;
  border: 2px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-family: inherit;
  font-weight: 800;
  font-size: .9rem;
  padding: 12px 4px;
  cursor: pointer;
  transition: border-color .15s var(--ease), color .15s var(--ease), background-color .15s var(--ease);
}
.seg-btn.on {
  border-color: var(--pink);
  color: var(--text);
  background: rgba(234,88,125,.16);
}

/* minigame on/off + frequency */
.game-list { display: flex; flex-direction: column; gap: 8px; }
.game-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 8px 10px;
}
.game-row.on { border-color: rgba(61,220,151,.45); }
.game-row.locked { opacity: .4; }

.game-toggle {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
  font-size: .95rem;
  text-align: left;
  cursor: pointer;
  padding: 6px 0;
  min-height: 40px;
}
.gt-check {
  width: 24px; height: 24px;
  flex: none;
  display: grid; place-items: center;
  border: 2px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  font-weight: 900;
  font-size: .85rem;
}
.game-row.on .gt-check { border-color: var(--green); }
.gt-name { flex: 1; }
.gt-lock { font-size: .7rem; color: var(--muted); font-weight: 600; }

.game-weight {
  -webkit-appearance: none;
  appearance: none;
  width: 84px;
  flex: none;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--line), var(--pink));
  border: 2px solid var(--line);
}
.game-weight::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--bg);
  cursor: pointer;
}
.game-weight::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--bg);
}
.game-row.off .game-weight { opacity: .3; }

/* ---- leaving -------------------------------------------------------------- */

/* Destructive, so it reads as such - but muted until touched, because it sits
   next to buttons people press constantly. */
.leave-btn {
  border-color: rgba(234,88,125,.35);
  color: var(--pink);
  font-size: .9rem;
  padding: 14px;
  margin-top: 10px;
}
.leave-btn:hover,
.leave-btn:active { border-color: var(--pink); background: rgba(234,88,125,.1); }

.set-block.danger { border-color: rgba(234,88,125,.3); }
.set-block.danger h3 { color: var(--pink); }

/* ---- performance rounds -------------------------------------------------- */

.perf-timer {
  font-size: 4.5rem;
  font-weight: 900;
  color: var(--pink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
