/* ---------- lobby ---------- */
.hub-top .hub-brand { flex: none; line-height: 0; }
@media (min-width: 900px) and (orientation: landscape) { .hub-top .hub-brand { display: none; } }
.hub-grid { display: grid; gap: 12px; padding: 4px max(14px, var(--sr)) 22px max(14px, var(--sl)); max-width: 1240px; margin: 0 auto; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; min-height: 32px; }
.sec-head .label { flex: 1; }
.sec-head .btn-ghost { min-height: 36px; padding: 0 6px 0 10px; }
.sec-head .btn-ghost .ic { width: 16px; height: 16px; }

/* player card */
.hub-player { padding: 14px; overflow: hidden; }
.hub-player::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); }
.hp-top { display: grid; grid-template-columns: 80px 1fr auto; gap: 14px; align-items: center; }
.hp-portrait { width: 80px; height: 88px; box-shadow: 0 10px 20px -10px #000; }
.hp-portrait .hero-img { object-fit: cover; object-position: 50% 40%; }
.hp-portrait.ready .hero-img { opacity: 1; }
.hp-portrait > svg { transition: opacity .3s; }
.hp-portrait.ready > svg { opacity: 0; }
.hp-id { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.hp-pos { font: 600 13px/1 var(--f-cond); letter-spacing: .12em; color: var(--mute); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hp-pos b { color: #fff; background: var(--red); padding: 3px 6px 2px; border-radius: 2px; font: 800 13px/1 var(--f-display); letter-spacing: .06em; }
.hp-pos .chip { height: 20px; font-size: 11px; padding: 0 6px; }
.hp-name { font-size: 20px; line-height: 1.02; word-break: break-word; }
.hp-meta { font: 600 13px/1.2 var(--f-cond); letter-spacing: .05em; color: var(--chalk-2); }
.hp-meters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 12px; }
.hp-meters .hp-form { grid-column: 1 / -1; grid-template-columns: auto 1fr; }
.hp-meters .meterline .k { min-width: 48px; }
.hp-attrs { display: none; }
.hp-pts { appearance: none; margin-left: auto; height: 30px; padding: 0 10px 0 8px; border-radius: 3px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid rgba(242, 194, 92, .5); background: rgba(242, 194, 92, .14); color: var(--gold); font: 700 12px/1 var(--f-cond); letter-spacing: .12em; text-transform: uppercase; }
.hp-pts b { font: 900 18px/1 var(--f-display); letter-spacing: 0; }
.hp-pts .ic { width: 16px; height: 16px; }
.hp-pts:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.hp-meters .hp-form { display: flex; align-items: center; gap: 10px; }
.hp-points { appearance: none; margin-top: 12px; width: 100%; min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 4px; cursor: pointer;
  border: 1px solid rgba(242, 194, 92, .45); background: linear-gradient(90deg, rgba(242, 194, 92, .2), rgba(242, 194, 92, .04)); color: var(--chalk); font: 600 15px/1 var(--f-cond); letter-spacing: .04em; text-transform: uppercase; }
.hp-points b { font: 900 20px/1 var(--f-display); color: var(--gold); margin-right: 2px; }
.hp-points span { flex: 1; text-align: left; }
.hp-points .ic { color: var(--gold); width: 20px; height: 20px; }
.hp-points:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* trophy case: walnut cabinet, lit glass shelves */
.case-btn { appearance: none; border: 0; padding: 0; background: none; width: 100%; display: block; cursor: pointer; text-align: inherit; border-radius: 10px; }
.case-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.case { position: relative; border-radius: 8px; padding: 9px; background: linear-gradient(180deg, #6a4428 0%, #47301c 18%, #2e1d10 100%);
  box-shadow: inset 0 1px 0 rgba(255, 222, 170, .35), inset 0 0 0 1px rgba(255, 220, 170, .12), 0 22px 40px -22px #000; }
.case::before { content: ''; position: absolute; inset: 0; border-radius: 8px; background: repeating-linear-gradient(92deg, rgba(0, 0, 0, .09) 0 2px, transparent 2px 7px, rgba(255, 210, 160, .04) 7px 9px, transparent 9px 15px); pointer-events: none; }
.case-glass { position: relative; border-radius: 3px; overflow: hidden; padding: 12px 6px 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 226, 160, .22), transparent 70%), linear-gradient(180deg, #1e2a44, #0f1628 70%, #0b1120);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .45), inset 0 14px 30px rgba(0, 0, 0, .35); }
.case-light { position: absolute; top: 0; height: 100%; width: 34%; pointer-events: none; background: linear-gradient(180deg, rgba(255, 236, 190, .2), rgba(255, 236, 190, 0) 75%); clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%); }
.case-light.l { left: 0; } .case-light.c { left: 33%; } .case-light.r { left: 66%; }
.case-light::before { content: ''; position: absolute; top: 0; left: 44%; width: 12%; height: 4px; background: #fff2cc; border-radius: 0 0 4px 4px; box-shadow: 0 0 12px 4px rgba(255, 236, 180, .55); }
.shelf { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: 4px; padding: 0 2px; margin-bottom: 12px; }
.shelf::after { content: ''; position: absolute; left: -6px; right: -6px; bottom: -7px; height: 6px; background: linear-gradient(180deg, rgba(220, 236, 255, .55), rgba(160, 190, 230, .18)); box-shadow: 0 6px 10px rgba(0, 0, 0, .45); }
.tro { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 0; position: relative; z-index: 1; }
.tro .trophy-svg { height: 60px; width: auto; display: block; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .45)); }
.tro.ind .trophy-svg { height: 56px; }
.tro.empty { color: rgba(214, 224, 244, .16); }
.tro.empty .trophy-svg { height: 50px; }
.plaque { display: block; max-width: 100%; margin: 2px 0 1px; padding: 2px 5px; border-radius: 1px; background: linear-gradient(90deg, #8a6a2c, #e3c77f, #8a6a2c); color: #2a1d06; font: 700 8.5px/1.05 var(--f-cond); letter-spacing: .03em; text-transform: uppercase; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plaque em { font-style: normal; margin-left: 3px; opacity: .75; }
.plaque.ghost { background: rgba(255, 255, 255, .05); color: rgba(214, 224, 244, .3); }
.case-reflect { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, .06) 21%, rgba(255, 255, 255, .02) 30%, transparent 31%, transparent 60%, rgba(255, 255, 255, .045) 61%, transparent 66%); }

/* today */
.hub-today { padding: 14px; }
.today-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.today-head .label { flex: 1; min-width: 0; }
.board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; padding: 12px 8px 10px; border-radius: 4px; position: relative; overflow: hidden;
  background: #05080f; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 0 40px rgba(0, 0, 0, .9); }
.board::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .25) 0 1px, transparent 1px 3px); pointer-events: none; }
.b-team { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.b-team b { font: 900 21px/1 var(--f-display); letter-spacing: .05em; color: #fff; text-transform: uppercase; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-team em { font: 700 10px/1 var(--f-cond); letter-spacing: .32em; color: var(--amber); font-style: normal; text-transform: uppercase; padding-left: .32em; }
.b-mid { display: flex; flex-direction: column; align-items: center; padding: 0 6px; }
.b-time { font: 800 42px/.9 var(--f-display); color: var(--amber); text-shadow: 0 0 14px rgba(255, 177, 68, .55); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.b-ampm { font: 700 11px/1 var(--f-cond); letter-spacing: .3em; color: rgba(255, 177, 68, .7); margin-top: 4px; }
.today-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 10px 0 2px; font: 600 14px/1.2 var(--f-cond); letter-spacing: .04em; color: var(--chalk-2); }
.today-meta span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.today-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-top: 12px; }
.today-actions.three { grid-template-columns: 1.3fr 1fr auto; }
.today-actions:has(> :only-child) { grid-template-columns: 1fr; }
.today-actions .btn { padding: 0 12px; }
.today-actions small { font: 600 12px/1 var(--f-cond); letter-spacing: .04em; opacity: .75; text-transform: none; }
.today.final .board { box-shadow: inset 0 0 0 1px rgba(242, 194, 92, .5), inset 0 0 40px rgba(0, 0, 0, .9); }
.prac-row { display: flex; gap: 14px; align-items: center; }
.prac-row b { display: block; font: 800 22px/1.05 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.prac-row span { display: block; margin-top: 4px; color: var(--chalk-2); font: 500 14px/1.3 var(--f-body); }
.prac-ico { width: 54px; height: 54px; flex: none; border-radius: 4px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); color: var(--chalk); }
.prac-ico .ic { width: 28px; height: 28px; }
.prac-ico.red { background: rgba(224, 56, 62, .15); border-color: rgba(224, 56, 62, .4); color: var(--red-ink); }
.today-note { margin: 10px 0 0; color: var(--mute); font-size: 14px; }
.dec-title { font: 900 28px/1 var(--f-display); text-transform: uppercase; margin: 0; }
.today.decision { position: relative; }
.hub-ff { width: 100%; margin-top: 6px; justify-content: center; color: var(--mute); }

/* week + paper */
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 0 7px; border-radius: 3px; background: var(--panel); border: 1px solid var(--line); color: var(--mute); }
.wd span { font: 700 11px/1 var(--f-cond); letter-spacing: .12em; }
.wd .ic { width: 18px; height: 18px; }
.wd em { font: 800 13px/1 var(--f-display); font-style: normal; color: var(--chalk-2); }
.wd.game { background: rgba(224, 56, 62, .16); border-color: rgba(224, 56, 62, .35); color: #ffb3b5; }
.wd.practice { color: var(--chalk-2); }
.wd.pt { color: var(--red-ink); border-color: rgba(224, 56, 62, .35); }
.wd.decision { color: var(--gold); border-color: rgba(242, 194, 92, .4); }
.wd.rest { opacity: .7; }
.wd.past { opacity: .45; }
.wd.today { outline: 2px solid var(--chalk); outline-offset: -1px; opacity: 1; background: var(--panel-3); }
.paper { margin-top: 14px; background: #efe8d6; color: #1c2230; border-radius: 3px; padding: 12px 14px 6px; box-shadow: 0 16px 30px -20px #000; background-image: radial-gradient(rgba(0, 0, 0, .04) 1px, transparent 1.2px); background-size: 3px 3px; }
.paper-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 3px double #1c2230; padding-bottom: 6px; margin-bottom: 4px; }
.paper-head span { font: 400 17px/1 var(--f-varsity); }
.paper-head em { font: 700 11px/1 var(--f-cond); letter-spacing: .2em; text-transform: uppercase; font-style: normal; color: #6b6f78; }
.paper p { margin: 0; padding: 8px 0; border-bottom: 1px solid rgba(28, 34, 48, .15); font: 500 14px/1.32 Georgia, 'Times New Roman', serif; }
.paper p:last-child { border-bottom: 0; }
.paper p.lead { font: 700 17px/1.22 Georgia, 'Times New Roman', serif; }
.paper time { display: block; font: 700 10px/1 var(--f-cond); letter-spacing: .16em; text-transform: uppercase; color: #a3262c; margin-bottom: 3px; }

@media (min-width: 900px) and (orientation: landscape) {
  .hub-grid { grid-template-columns: 330px minmax(0, 1fr) 300px; grid-template-areas: "player case case" "player today week"; padding: 6px 28px 28px; gap: 18px; align-items: start; }
  .hub-player { grid-area: player; padding: 18px; }
  .hub-case { grid-area: case; }
  .hub-today { grid-area: today; }
  .hub-week { grid-area: week; }
  .hp-top { grid-template-columns: 1fr auto; }
  .hp-portrait { grid-column: 1 / -1; width: 100%; height: 230px; }
  .hp-name { font-size: 24px; }
  .hp-meters { grid-template-columns: 1fr; }
  .hp-attrs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
  .hp-attrs > div { display: grid; grid-template-columns: 1fr auto; gap: 4px; align-items: center; }
  .hp-attrs span { font: 700 12px/1 var(--f-cond); letter-spacing: .14em; color: var(--mute); }
  .hp-attrs b { font: 800 18px/1 var(--f-display); }
  .hp-attrs .meter { grid-column: 1 / -1; height: 4px; }
  .shelf { grid-template-columns: repeat(4, 1fr); }
  .case.big .shelf { grid-template-columns: repeat(6, 1fr); }
  .tro .trophy-svg { height: 104px; }
  .tro.ind .trophy-svg { height: 90px; }
  .tro.empty .trophy-svg { height: 84px; }
  .plaque { font-size: 10px; padding: 3px 7px; }
  .case-glass { padding: 18px 14px 2px; }
  .shelf { margin-bottom: 16px; gap: 10px; }
  .paper { margin-top: 12px; }
  .paper p:nth-child(n+5) { display: none; }
}
@media (min-width: 900px) and (orientation: landscape) and (max-height: 820px) {
  .hp-portrait { height: 200px; }
  .tro .trophy-svg { height: 92px; }
}

.case-v6 { display: none; }
@media (min-width: 900px) and (orientation: landscape) { .case-v4 { display: none; } .case-v6 { display: block; } }

.hub-top h1.long { font-size: 22px; line-height: 1.02; }
@media (max-width: 420px) { .hub-top h1.long { font-size: 21px; } }

/* phone: keep today's primary action reachable above the tab bar on every screen height */
@media (max-width: 899px), (orientation: portrait) {
  .hub-grid { gap: 10px; }
  .hub-player { padding: 12px; }
  .hp-meters { margin-top: 10px; gap: 8px 16px; }
  .case { padding: 7px; }
  .case-glass { padding: 10px 4px 0; }
  .shelf { margin-bottom: 11px; }
  .tro .trophy-svg { height: 54px; }
  .tro.ind .trophy-svg { height: 50px; }
  .tro.empty .trophy-svg { height: 46px; }
  .hub-today { padding: 12px; }
  .today-head { margin-bottom: 10px; }
  .board { padding: 10px 8px 8px; }
  .b-time { font-size: 38px; }
  .today-meta { margin-top: 8px; }
  .today-actions { margin-top: 10px; }
  .hub-today .today-actions { position: sticky; bottom: 6px; z-index: 4; border-radius: 6px; }
  .hub-today .today-actions::before { content: ''; position: absolute; inset: -6px -6px -6px; z-index: -1; border-radius: 8px; background: linear-gradient(180deg, rgba(22, 35, 60, .0), rgba(17, 27, 48, .96) 30%); }
}

/* trophy case v2: one grid of shelves, pride-of-place award, '+N more' */
.shelves { position: relative; display: grid; grid-template-columns: repeat(var(--per), 1fr); align-items: end; gap: 11px 4px; padding: 0 2px 11px;
  background: repeating-linear-gradient(180deg, transparent 0 calc(var(--row, 86px) - 6px), rgba(220, 236, 255, .4) calc(var(--row, 86px) - 6px) calc(var(--row, 86px) - 1px), transparent calc(var(--row, 86px) - 1px) var(--row, 86px)); grid-auto-rows: calc(var(--row, 86px) - 11px); --row: 86px; }
.tro { height: 100%; }
.tro .plaque { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.08; font-size: 8px; padding: 2px 4px; }
.tro.pride { grid-column: span 2; }
.tro.pride .trophy-svg { height: 72px; filter: drop-shadow(0 0 14px rgba(255, 214, 120, .55)) drop-shadow(0 6px 6px rgba(0, 0, 0, .45)); }
.tro.pride .plaque { background: linear-gradient(90deg, #b8862a, #ffe9a6, #b8862a); font-size: 9.5px; }
.tro.more { justify-content: center; gap: 4px; color: var(--gold); text-align: center; }
.tro.more b { font: 900 26px/1 var(--f-display); }
.tro.more span { font: 700 9px/1.1 var(--f-cond); letter-spacing: .1em; text-transform: uppercase; color: var(--chalk-2); }
@media (min-width: 900px) and (orientation: landscape) {
  .shelves { --row: 128px; gap: 16px 10px; padding-bottom: 16px; }
  .tro .plaque { font-size: 9.5px; padding: 3px 6px; }
  .tro.pride .trophy-svg { height: 112px; }
}
/* lobby tap targets */
.hp-pts { min-height: 44px; }
.sec-head .btn-ghost { min-height: 44px; }
@media (max-width: 899px), (orientation: portrait) {
  .shelves { --row: 78px; gap: 9px 4px; padding-bottom: 9px; }
  .tro .trophy-svg { height: 48px; }
  .tro.ind .trophy-svg { height: 44px; }
  .tro.empty .trophy-svg { height: 40px; }
  .tro.pride .trophy-svg { height: 60px; }
  .tro .plaque { font-size: 7.6px; }
  /* docked action bar: fully opaque so card text never shows through */
  .hub-today .today-actions::before { inset: -8px -13px -7px; border-radius: 0 0 6px 6px; background: rgba(17, 27, 48, .98); box-shadow: 0 -10px 16px -8px rgba(0, 0, 0, .6); }
}

/* lobby: one compact shelf with readable plaques; the match card gets the room */
.case.row .shelves { --row: 92px; padding-bottom: 8px; }
.case.row .tro .plaque { font-size: 9.5px; padding: 3px 5px; line-height: 1.1; }
.case.row .tro .trophy-svg { height: 52px; }
.case.row .tro.pride .trophy-svg { height: 60px; }
.case.row .tro.empty .trophy-svg { height: 42px; }
.case.row .case-glass { padding-top: 10px; }
.case.row .tro.more b { font-size: 24px; }
@media (max-width: 899px), (orientation: portrait) {
  .hub-today .board { padding: 14px 8px 12px; }
  .hub-today .board .kit { width: 50px; height: 50px; }
  .hub-today .b-team b { font-size: 23px; }
  .hub-today .b-time { font-size: 46px; }
  .hub-today .today-actions .btn { min-height: 58px; font-size: 20px; }
}
@media (min-width: 900px) and (orientation: landscape) {
  .case.row .shelves { --row: 150px; }
  .case.row .tro .trophy-svg { height: 100px; }
  .case.row .tro.pride .trophy-svg { height: 112px; }
  .case.row .tro .plaque { font-size: 10.5px; }
  .hub-today .board { padding: 20px 12px 16px; }
  .hub-today .b-time { font-size: 54px; }
}
@media (max-width: 899px), (orientation: portrait) { .hub-today .today-actions { bottom: 12px; } }
@media (max-width: 899px), (orientation: portrait) { .hub-today .today-actions::before { background: #111b30; } }
@media (max-width: 899px), (orientation: portrait) { .hub-today .today-actions::before { inset: -30px -13px -7px; background: linear-gradient(180deg, rgba(17, 27, 48, 0), #111b30 24px); box-shadow: none; } }
