/* Daily / Weekend Cup sheet (public/js/tournament.mjs) — design canvas 941×1672 portrait, 1672×941 landscape (#stage.land) */
.panel-tour .tr-sheet { width: 880px; max-height: 92%; padding: 36px 34px 36px; display: flex; flex-direction: column; gap: 18px; }
.panel-tour .tr-sheet h2 { margin: 0; }
.tr-title { display: flex; align-items: center; justify-content: center; gap: 14px; }
.tr-title .tr-cup { display: flex; color: var(--secondary); }
.tr-prize { align-self: center; height: 58px; font-size: 26px; letter-spacing: .02em; }
.tr-status { align-self: center; padding: 10px 26px; font: 900 28px/1.15 var(--f-slab); text-transform: uppercase; text-align: center; color: var(--light-text); background: var(--primary); box-shadow: 0 0 0 3px var(--accent); }
.tr-status.is-champ { background: linear-gradient(180deg, #f6d48f, var(--gold) 55%, #c98d3c); color: var(--text); }
.tr-status.is-out { background: var(--text-muted); }

/* waiting: 8 seats */
.tr-slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tr-slot { display: flex; align-items: center; gap: 12px; height: 72px; padding: 0 18px; background: var(--cream-alt); box-shadow: inset 0 0 0 3px var(--border); font: 800 28px/1 var(--f-sans); color: var(--text); min-width: 0; }
.tr-slot .flag { font-size: 34px; flex: none; }
.tr-slot.is-me { background: var(--primary); color: var(--light-text); box-shadow: inset 0 0 0 3px var(--accent); }
.tr-slot.is-empty { color: var(--text-muted); background: rgba(253, 242, 232, .45); box-shadow: inset 0 0 0 3px rgba(91, 57, 40, .35); }
.tr-sn { flex: none; width: 34px; font: 700 30px/1 var(--f-num); opacity: .7; }
.tr-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-rt { flex: none; font: 700 26px/1 var(--f-num); opacity: .75; }

/* running / done: three columns QF → SF → F */
.tr-bracket { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 14px; min-height: 0; }
.tr-col { display: flex; flex-direction: column; min-width: 0; }
.tr-rh { margin: 0 0 10px; padding: 8px 6px; font: 900 20px/1.1 var(--f-slab); text-transform: uppercase; text-align: center; color: var(--light-text); background: var(--frame-dark); }
.tr-col.is-current .tr-rh { background: var(--secondary); box-shadow: 0 0 0 3px var(--accent); }
.tr-duels { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 12px; }
.tr-duel { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 8px; background: var(--bronze-dark); }
.tr-duel.is-live { background: var(--secondary); }
.tr-p { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 10px; background: var(--cream-alt); color: var(--text); font: 800 21px/1 var(--f-sans); min-width: 0; }
.tr-p .flag { font-size: 26px; flex: none; }
.tr-p .tr-rt { font-size: 20px; }
.tr-col1 .tr-p .tr-rt, .tr-col2 .tr-p .tr-rt { display: none; }
.tr-p.is-win { background: linear-gradient(180deg, #f6d48f, var(--gold) 60%, #c98d3c); }
.tr-p.is-me { background: var(--primary); color: var(--light-text); box-shadow: inset 0 0 0 3px var(--accent); }
.tr-p.is-me.is-win { background: linear-gradient(180deg, #3a64b0, var(--primary)); box-shadow: inset 0 0 0 3px var(--gold); }
.tr-p.is-out { filter: grayscale(1); opacity: .5; }
.tr-p.is-out .tr-nm { text-decoration: line-through; text-decoration-thickness: 2px; }
.tr-p.is-tbd { justify-content: center; color: var(--text-muted); background: rgba(253, 242, 232, .55); }
.tr-p.is-champ { box-shadow: inset 0 0 0 3px var(--secondary); }
.tr-live { position: absolute; top: -10px; inset-inline-end: -6px; padding: 3px 8px; font: 900 15px/1 var(--f-sans); color: var(--light-text); background: var(--danger); box-shadow: 0 0 0 2px var(--accent); text-transform: uppercase; animation: tr-blink 1s steps(2) infinite; }
@keyframes tr-blink { 50% { opacity: .55; } }

/* entry + buttons */
.tr-foot { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tr-entry { display: flex; align-items: center; justify-content: center; gap: 26px; font: 800 26px/1 var(--f-sans); color: var(--text-muted); }
.tr-tickets { display: inline-flex; align-items: center; gap: 8px; color: var(--secondary); }
.tr-tickets .ico { display: flex; }
.tr-btns { display: flex; gap: 18px; width: 100%; }
.tr-btns .btn, .tr-foot > .btn { flex: 1; height: 96px; font-size: 30px; }
.tr-foot > .btn { flex: none; width: 60%; }

/* landscape 1672×941: wider sheet, bracket gets room, seats in 4 columns */
#stage.land .panel-tour .tr-sheet { width: 1380px; max-height: 94%; padding: 26px 40px 28px; gap: 12px; }
#stage.land .panel-tour .tr-sheet h2 { font-size: 46px; }
#stage.land .tr-slots { grid-template-columns: repeat(4, 1fr); }
#stage.land .tr-slot { height: 64px; font-size: 24px; }
#stage.land .tr-bracket { gap: 26px; }
#stage.land .tr-col1 .tr-p .tr-rt, #stage.land .tr-col2 .tr-p .tr-rt { display: inline; }
#stage.land .tr-p { height: 40px; font-size: 20px; }
#stage.land .tr-duels { gap: 8px; }
#stage.land .tr-btns { width: 70%; }
#stage.land .tr-btns .btn, #stage.land .tr-foot > .btn { height: 80px; font-size: 28px; }
#stage.land .tr-foot > .btn { width: 40%; }
