[hidden] { display: none !important; }
/* ===== shared bits (light pages: bid, console, setup, results) ===== */
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #2e9b57; vertical-align: middle; }
.dot.off { background: #c0392b; animation: none; }
.dot.warn { background: #fbc640; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; }
.actions-row { display: flex; flex-wrap: wrap; gap: 8px; }
.rowflex { display: flex; gap: 10px; }
.rowflex input { flex: 1; font-size: 1.2rem; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks .mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-weight: 800; font-size: .8rem; margin-right: 6px; color: #fff; }
.checks .ok .mark { background: #2e9b57; } .checks .warn .mark { background: #fbc640; } .checks .bad .mark { background: #c0392b; }
.cfg .row { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.inline-form label { max-width: 320px; }

.b-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-left: 8px solid; padding: 10px 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; }
.b-head h1 { margin: 0 0 4px; font-size: 1.5rem; }
.b-purse { text-align: right; } .b-purse small { display: block; color: var(--muted); }
.b-purse b { font-size: 1.9rem; color: var(--green-dark); }
.b-flash { min-height: 0; }
.b-flash .alert { margin-bottom: 12px; font-weight: 600; }
.b-lot { text-align: center; }
.lot-player { display: flex; gap: 14px; align-items: center; text-align: left; }
.lot-player img, .lot-player .ph { width: 84px; height: 84px; border-radius: 14px; object-fit: cover; background: var(--green-soft); display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: var(--green-dark); flex: none; }
.lot-player h2 { margin: 0 0 2px; font-size: 1.35rem; }
.tagrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.bidnow { margin: 16px 0 6px; }
.bidnow small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-size: .75rem; }
.bidnow .amt { font-size: 3rem; font-weight: 800; line-height: 1.1; color: var(--ink); }
.bidnow .who { display: inline-block; padding: 3px 12px; border-radius: 99px; color: #fff; font-weight: 700; }
.bidnow.flash .amt { animation: blink .9s ease-in-out 3; }
.cd { font-size: 3.6rem; font-weight: 900; line-height: 1; color: #c0392b; margin: 8px 0 0; }
.cd.pulse { animation: pulse .9s ease-out; }
.cd.sold { color: #1e8449; font-size: 2rem; }
.progress { height: 6px; background: #e3ebe7; border-radius: 99px; overflow: hidden; margin-top: 10px; }
.progress > i { display: block; height: 100%; background: var(--gold); width: 0; }
.bigbtn { display: block; width: 100%; font-size: 1.6rem; font-weight: 800; padding: 18px; border: 0; border-radius: 14px; background: var(--green); color: #fff; cursor: pointer; touch-action: manipulation; }
.bigbtn:hover:not([disabled]) { background: var(--green-dark); }
.bigbtn[disabled] { background: #b9c6c0; cursor: not-allowed; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.quick button { padding: 14px 6px; font-size: 1.1rem; font-weight: 700; border: 2px solid var(--green); background: #fff; color: var(--green-dark); border-radius: 12px; cursor: pointer; touch-action: manipulation; }
.quick button[disabled] { opacity: .35; cursor: not-allowed; }
.custom label { margin-top: 6px; }
.bids .b { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.bids .b:last-child { border-bottom: 0; }
.bids .b.top { font-weight: 800; }
.squad-li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); }

.c-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.c-bar h1 { margin: 0; }
.c-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .c-grid { grid-template-columns: 1fr; } }
.c-status { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.c-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.c-controls .btn { padding: 14px 20px; font-size: 1.05rem; }
.c-team { border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.c-team.lead { border-color: var(--gold); background: #fffaf0; }
.c-team header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.c-team .meta { color: var(--muted); font-size: .85rem; }
.c-team .act { display: flex; gap: 8px; margin-top: 8px; }
.c-team .act input { width: 110px; }
.c-team .act .btn { flex: 1; }
.feed .f { padding: 5px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.feed .f time { color: var(--muted); margin-right: 6px; font-variant-numeric: tabular-nums; }
.bots { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
.bots label { display: flex; gap: 6px; align-items: center; margin: 0; font-weight: 500; }
@keyframes blink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .15; transform: scale(1.06); } }
@keyframes pulse { 0% { transform: scale(1.5); opacity: .2; } 100% { transform: scale(1); opacity: 1; } }

/* ===== the big screen (projector) ===== */
body.screen { margin: 0; background: radial-gradient(1200px 700px at 70% -10%, #0e3a2c 0%, #07151f 60%); color: #f2f6f4; height: 100vh; overflow: hidden; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
body.screen .hidden { display: none !important; }
#auction[data-view=screen] { height: 100vh; display: grid; grid-template-rows: 8vh 1fr 34vh; padding: 1.2vh 1.6vw 1.6vh; gap: 1.4vh; position: relative; }
.s-top { display: flex; align-items: center; justify-content: space-between; gap: 1.5vw; }
.s-brand { display: flex; align-items: center; gap: 1vw; font-size: 2.6vh; }
.s-brand small { display: block; opacity: .7; font-size: 1.8vh; }
.s-logo { background: #fff; width: 6vh; height: 5.8vh; border-radius: 1.2vh; padding: .35vh .5vh; object-fit: contain; }
.s-player img.idle-logo { width: 34vh; height: auto; max-height: 36vh; border-radius: 2.4vh; border: 0; background: #fff; padding: 1.6vh 2vh; object-fit: contain; margin-bottom: 2vh; display: block; }
.s-overlay .ov-logo { display: block; margin: 0 auto 3vh; height: 22vh; width: auto; background: #fff; border-radius: 2.4vh; padding: 1.4vh 2vh; }
.s-phase { font-size: 2.4vh; text-align: center; letter-spacing: .08em; text-transform: uppercase; }
.s-phase b { color: #fbc640; }
.s-phase .pill { display: inline-block; padding: .4vh 1.2vh; border-radius: 99px; background: #fbc640; color: #3b2a00; font-weight: 800; margin-left: 1vh; }
.s-tools { display: flex; gap: .8vw; align-items: center; }
.tool { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 1vh; padding: .8vh 1.2vh; font-size: 1.6vh; cursor: pointer; }
.s-main { display: grid; grid-template-columns: 44% 1fr; gap: 2vw; min-height: 0; }
.s-player { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 2vh; padding: 2.4vh 2vw; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-height: 0; }
.s-player img, .s-player .ph { width: 27vh; height: 27vh; border-radius: 2.4vh; object-fit: cover; background: #14463a; display: grid; place-items: center; font-size: 12vh; font-weight: 800; color: #9ad9c0; border: .5vh solid rgba(255,255,255,.2); }
.s-player h2 { font-size: 5.2vh; margin: 2vh 0 .6vh; line-height: 1.1; }
.s-player .sub { font-size: 2.6vh; opacity: .85; }
.s-player .tags { display: flex; gap: 1vh; flex-wrap: wrap; justify-content: center; margin-top: 1.6vh; }
.tag { padding: .5vh 1.4vh; border-radius: 99px; background: rgba(255,255,255,.14); font-size: 2vh; }
.tag.gold { background: #fbc640; color: #3b2a00; font-weight: 800; }
.s-player .idle { font-size: 4vh; opacity: .7; }
.s-bid { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-height: 0; position: relative; }
.s-bid .lbl { font-size: 2.4vh; letter-spacing: .3em; opacity: .75; text-transform: uppercase; }
.s-bid .val { font-size: 21vh; font-weight: 900; line-height: 1; color: #ffd24d; font-variant-numeric: tabular-nums; text-shadow: 0 0 3vh rgba(255,210,77,.35); }
.s-bid .val.flash { animation: sblink .8s steps(1) 4; }
.s-bid .by { margin-top: 1.4vh; font-size: 5vh; font-weight: 800; padding: .8vh 3vh; border-radius: 99px; color: #fff; }
.s-bid .next { margin-top: 2vh; font-size: 2.6vh; opacity: .8; }
.s-bid .count { position: absolute; right: 2vw; top: 0; font-size: 20vh; font-weight: 900; line-height: 1; color: #ff6b5e; text-shadow: 0 0 4vh rgba(255,107,94,.5); }
.s-bid .count.pulse { animation: pulse .9s ease-out; }
.s-bid .bar { width: 60%; height: 1vh; background: rgba(255,255,255,.14); border-radius: 99px; margin-top: 2.4vh; overflow: hidden; }
.s-bid .bar i { display: block; height: 100%; background: #fbc640; width: 0; }
.s-teams { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2vw; min-height: 0; }
.s-team { background: rgba(255,255,255,.07); border: .3vh solid rgba(255,255,255,.12); border-top: 1vh solid var(--c); border-radius: 1.6vh; padding: 1.2vh 1vw; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.s-team.lead { box-shadow: 0 0 4vh var(--c); border-color: var(--c); }
.s-team.full { opacity: .85; }
.s-team h3 { margin: 0; font-size: 2.8vh; display: flex; justify-content: space-between; gap: .6vw; }
.s-team .icon { font-size: 1.6vh; opacity: .75; margin-bottom: .6vh; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-team .purse { font-size: 5.4vh; font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; }
.s-team .purse small { font-size: 1.6vh; opacity: .7; font-weight: 500; margin-left: .5vw; }
.s-team .slots { font-size: 1.9vh; margin: .4vh 0; opacity: .95; display: flex; gap: 1vw; flex-wrap: wrap; }
.s-team .slots b { color: #ffd24d; }
.s-team ul { list-style: none; margin: .6vh 0 0; padding: 0; overflow: hidden; font-size: 1.7vh; flex: 1; min-height: 0; }
.s-team li { display: flex; justify-content: space-between; gap: .5vw; padding: .25vh 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.s-team li span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-team li.pool span:first-child::before { content: "★ "; color: #ffd24d; }
.s-overlay { position: absolute; inset: 0; display: none; place-items: center; background: rgba(4,12,18,.72); z-index: 5; }
.s-overlay.on { display: grid; animation: fade .25s ease-out; }
.s-overlay .box { text-align: center; padding: 5vh 6vw; border-radius: 3vh; background: var(--c, #0e3a2c); border: .5vh solid rgba(255,255,255,.35); box-shadow: 0 0 8vh rgba(0,0,0,.6); max-width: 88vw; }
.s-overlay .big { font-size: 15vh; font-weight: 900; letter-spacing: .06em; line-height: 1; }
.s-overlay .mid { font-size: 6vh; font-weight: 800; margin-top: 2vh; }
.s-overlay .low { font-size: 3.4vh; margin-top: 1.6vh; opacity: .9; }
.s-overlay .low div { margin: .6vh 0; }
@keyframes sblink { 0%, 100% { opacity: 1; } 50% { opacity: .08; } }
@keyframes fade { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@media (max-aspect-ratio: 4/3) { /* tablets / portrait */
  #auction[data-view=screen] { grid-template-rows: 7vh auto 1fr; overflow-y: auto; }
  .s-main { grid-template-columns: 1fr; } .s-teams { grid-template-columns: repeat(2, 1fr); }
  body.screen { overflow: auto; }
}

/* team logos on the screen and console */
.s-team h3 { align-items: center; justify-content: flex-start; }
.s-team .tl-s { height: 4.6vh; width: 4.6vh; border-radius: .8vh; box-shadow: none; }
.s-overlay .ov-team { height: 20vh; width: 20vh; margin: 0 auto 2.4vh; border-radius: 2.2vh; border: .4vh solid rgba(255,255,255,.6); }
.c-team header strong { display: flex; align-items: center; gap: 8px; }
.c-team .tl-c { width: 30px; height: 30px; border-radius: 6px; box-shadow: none; }
