/* phone.css — Phone-optimized overrides for pools.royalarts.org v1.01
   Layered on top of app.css. Phone-first: big tap targets, no hover cruft. */

/* ── Body ───────────────────────────────────────────────────────────────────── */
body {
  padding: 12px 0 48px;  /* no horizontal padding — seed cards run edge-to-edge */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ── Content padding — screens that need horizontal breathing room ───────────
   Apply to h1 / section headers / other non-card content on the seed screen   */
.content-pad { padding-left: 16px; padding-right: 16px; }

/* ── Landing page ───────────────────────────────────────────────────────────── */
.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
  gap: 14px;
}

.land-btn {
  width: 280px;
  font-size: 22px;
  padding: 16px 20px;
  text-align: center;
  border-radius: 12px;
}

/* ── Buttons — fat fingers ──────────────────────────────────────────────────── */
.btn {
  min-height: 52px;
  font-size: 18px;
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  border: none;
  font-weight: 600;
  -webkit-user-select: none;
  user-select: none;
}

.btn:active {
  opacity: 0.75;
  transform: scale(0.97);
}

.btn-blue  { background: var(--blue2); color: #fff; }
.btn-red   { background: var(--imperial-red); color: #fff; }
.btn-green { background: var(--darkgreen); color: #fff; }
.btn-gray  { background: var(--ogray); color: var(--owhite); }

.btn[disabled] {
  opacity: 0.35;
  pointer-events: none;
}

/* ── Sidebar ────────────────────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 0;
  overflow: hidden;
  background: var(--opurplecardlo);
  border-left: 2px solid var(--level3);
  transition: width 0.25s ease;
  z-index: 100;
  padding: 0;
}

.sidebar.open {
  width: min(360px, 100vw);
  padding: 16px;
  overflow-y: auto;
}

/* Narrow mode for the hidden nav menu (icon strip) */
.sidebar.open.narrow {
  width: 90px;
  padding: 12px 8px;
  overflow-y: auto;
}

/* .closebtn styled in app.css — see .sidebar .closebtn */

#sidebarBody {
  color: var(--owhite);
}

/* ── Bout boxes ─────────────────────────────────────────────────────────────── */
.seeding-box {
  display: flex;
  align-items: center;
  min-height: 72px;
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 8px 10px;
  cursor: pointer;
  background: var(--opurplecardlo);
  border: 1px solid var(--level3);
}

.seeding-box:active {
  background: var(--level3);
}

.boutbox {
  flex: 1;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  padding: 8px;
  color: var(--owhite);
}

/* ── Score input ────────────────────────────────────────────────────────────── */
.scorebox {
  width: 64px;
  height: 64px;
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  background: var(--level2);
  color: var(--owhite);
  border: 2px solid var(--level3);
  border-radius: 8px;
  -moz-appearance: textfield;
}

.scorebox::-webkit-outer-spin-button,
.scorebox::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.boutfencer {
  font-size: 20px;
  padding: 8px 4px;
  color: var(--owhite);
}

/* ── Timer bar ──────────────────────────────────────────────────────────────── */
#timer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  text-align: center;
  font-size: 20px;
  color: goldenrod;
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
  background: rgba(0,0,0,0.4);
  pointer-events: none;
}

/* ── Pools locked: disable weapon check-in once pools have started ───────────
   Targets the epee/foil tap zones on the seed screen (new .act-e / .act-f).
   No PHP changes — pure CSS. ─────────────────────────────────────────────── */
body.pools-locked .act-e,
body.pools-locked .act-f {
  pointer-events: none;
  opacity: 0.25;
  cursor: not-allowed;
}

/* ── Responsive narrow screens ──────────────────────────────────────────────── */
@media (max-width: 440px) {
  body { padding: 8px; }
  .list-block { width: 100%; }
  .seeding-box { min-height: 64px; }
  .boutbox { font-size: 18px; }
  h3 { font-size: 18px; }
}

/* ── Ranking / Season standings — phone layout ──────────────────────────────
   Desktop uses a two-column split with fixed 800px cards.
   On phone: single column, fluid cards, stat boxes wrap naturally. ────────── */
.season-block {
  flex-direction: column;
}
.season-left,
.season-right {
  width: 100%;
}
.season-list {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 8px;
  padding: 10px 10px 10px 14px;
  border-left: 4px solid #92bcf7;
  border-radius: 10px;
}
/* Rank 1–3 podium accent */
.season-list:nth-child(1) { border-left-color: #c9a227; } /* gold */
.season-list:nth-child(2) { border-left-color: #9e9e9e; } /* silver */
.season-list:nth-child(3) { border-left-color: #a0522d; } /* bronze */

/* Rank + name on one line — both inline so they flow together naturally */
.season-namerow {
  display: block;
  margin-bottom: 8px;
}
.season-rank {
  display: inline;
  font-size: 17px;
  font-weight: bold;
  width: auto;
  color: #555;
}
.season-name {
  display: inline;
  width: auto;
  padding-left: 4px;
  padding-bottom: 0;
  font-size: 17px;
}
/* Force a line break after the name, before the stat boxes */
.season-name::after {
  content: '\A';
  white-space: pre;
}

/* Stat boxes — smaller on phone */
.season-list .numbox-blue-sm {
  font-size: 16px;
  padding: 0.1rem 0.4rem;
  margin-right: 4px;
  margin-bottom: 4px;
}
.season-list .numbox-blue-sm .btn-text {
  font-size: 9px;
}
