@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-display: swap;
  src: url(fonts/notosans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-display: swap;
  src: url(fonts/notosans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family: "Fairplayer"; src: url("fonts/fairplayer.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Nemesis"; src: url("fonts/nemesis.ttf") format("truetype"); font-display: swap; }
/* NEXTBALL first draft: layout like shirtdoku.fun (fixed narrow column, black, Inter). Style pass comes later. */
html, body { margin: 0; padding: 0; background: #000; color: #c5c6c7; max-width: 100%; }
body, button { font-family: "Noto Sans", -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 21px; touch-action: manipulation; }
#nb { width: 400px; max-width: 100%; margin: 0 auto; padding-bottom: 60px; }
#board { position: -webkit-sticky; position: sticky; top: 0; z-index: 5; background: #000; border-bottom: 1px solid #364043; padding: 6px 8px 8px; }
#total { text-align: center; color: #919191; } #mine { color: #3ddc5f; font-size: 22px; }
#teams { display: flex; gap: 8px; } .team { width: 50%; } .tname { font-weight: 600; color: #fff; } .tscore { color: #ff3b30; font-size: 26px; font-weight: 700; }
.lineup { list-style: none; margin: 2px 0 0; padding: 0; font-size: 12px; line-height: 15px; color: #919191; } .lineup li { display: flex; justify-content: space-between; gap: 4px; } .lineup .pn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lineup .ps { font-variant-numeric: tabular-nums; } .lineup b { color: #efefef; font-weight: 500; }
#period { text-align: center; color: #919191; font-size: 13px; }
#feed { padding: 6px 8px; } .play { padding: 3px 0; border-bottom: 1px solid #151616; } .play .who { color: #919191; font-size: 13px; } .play.sub { color: #636363; font-style: italic; } .play.hit { color: #3ddc5f; }
#question { padding: 8px; } #clue { color: #919191; margin-bottom: 6px; } .choice { display: block; width: 100%; box-sizing: border-box; text-align: left; margin: 0 0 6px; padding: 8px; background: #151616; color: #efefef; border: 1px solid #364043; border-radius: 5px; }
.choice.correct { border-color: #3ddc5f; color: #3ddc5f; } .choice.shown { border-color: #ff3b30; color: #ff3b30; } .play.miss .txt { color: #ff3b30; } .play.hit .txt { color: #3ddc5f; } #end { padding: 12px 8px; text-align: center; } #again { padding: 10px 18px; background: #364043; color: #fff; border: 0; border-radius: 5px; }

#legend { text-align: center; color: #636363; font-size: 11px; }
.choice:disabled { opacity: 1; }

/* 11-21 tweaks */
#stamp { text-align: center; color: #919191; font-size: 13px; margin-bottom: 2px; }
.team { width: auto; margin-top: 4px; } .thead { display: flex; justify-content: space-between; align-items: baseline; }
table.lineup { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 15px; color: #919191; table-layout: fixed; }
table.lineup th { font-weight: 500; color: #636363; text-align: right; width: 26px; } table.lineup th.nm { text-align: left; width: auto; } table.lineup th.ps { text-align: left; width: 26px; }
table.lineup td { padding: 0; text-align: right; color: #efefef; font-variant-numeric: tabular-nums; } table.lineup td.nm { text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } table.lineup td.ps { text-align: left; color: #919191; }
.play { display: block; font-size: 14px; line-height: 19px; } .play .who { color: #919191; font-size: 12px; font-style: normal; }
.play .line { display: flex; gap: 8px; align-items: flex-start; } .play .txt { flex: 1; }
.tag { flex: 0 0 44px; width: 44px; box-sizing: border-box; background: #2b2d2e; color: #efefef; text-align: center; font-size: 12px; line-height: 19px; border-radius: 3px; }
.play.sub { font-style: normal; } .play.sub .txt { color: #636363; } .play.sub .who { font-style: normal; color: #919191; }
.choice { display: flex; gap: 8px; align-items: flex-start; font-size: 17px; line-height: 22px; } .choice .tag { line-height: 22px; background: #2b2d2e; }
#clue { font-size: 14px; }

#total { text-align: center; } #mine { font-size: 26px; }
#teams { display: flex; gap: 8px; } #teams .team { flex: 1 1 0; min-width: 0; margin-top: 2px; }
#stamp { margin: 4px 0 0; font-size: 16px; color: #c5c6c7; }
table.lineup th, table.lineup td { font-size: 12px; } table.lineup th.ps { width: 18px; } table.lineup th { width: 22px; }

/* 11-21 round 3 */
#teams { gap: 20px; } #teams .team { text-align: center; }
.tname { font-size: 17px; line-height: 21px; } .tscore { font-size: 40px; line-height: 44px; }
#stamp { text-align: center; font-size: 18px; margin: 4px 0 6px; }
#tables { display: flex; gap: 20px; } table.lineup { flex: 1 1 0; min-width: 0; width: 50%; }
table.lineup th, table.lineup td { font-size: 14px; line-height: 19px; } table.lineup th { width: 26px; }
table.lineup td.nm { color: #efefef; } table.lineup .pos { color: #919191; font-size: 11px; }
.play { font-size: 16px; line-height: 21px; } .play .who { font-size: 14px; } .tag { font-size: 13px; flex-basis: 46px; width: 46px; }
.choice { font-size: 16px; line-height: 21px; } .choice .tag { line-height: 21px; } #clue { font-size: 16px; }
#question { background: #2f3233; border-radius: 6px; margin: 6px 8px; } #question.answered { background: transparent; }

#pts { text-align: right; color: #3ddc5f; font-size: 16px; padding: 6px 8px 0; } #pts b { font-size: 20px; }
#question { padding: 0 0 8px; } #clue { padding: 0 8px; } #choices { padding: 0 8px; }

/* 11-21 round 5 */
#qhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 8px 8px 6px; font-size: 16px; line-height: 21px; }
#qhead #clue { padding: 0; margin: 0; font-size: 16px; color: #c5c6c7; } #qhead #pts { padding: 0; white-space: nowrap; font-size: 16px; } #pts b { font-size: inherit; }
.nmi { display: flex; gap: 4px; min-width: 0; } .nmi .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } .nmi .pos { flex: none; font-size: 12px; color: #919191; }
table.lineup td.nm { overflow: visible; }

/* 11-21 fonts: Noto Sans (condensed player board), Nemesis team names, Fairplayer score numerals */
.tname { font-family: "Nemesis", "Noto Sans", sans-serif; font-weight: 400; font-size: 22px; line-height: 26px; letter-spacing: 1px; text-transform: uppercase; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tscore { font-family: "Fairplayer", monospace; font-weight: 400; font-size: 46px; line-height: 52px; letter-spacing: 2px; }
table.lineup { font-stretch: 75%; font-variation-settings: "wdth" 75; }
table.lineup th, table.lineup td { font-size: 15px; }

/* 11-21 round 7 */
table.lineup th, table.lineup td { font-size: 17px; line-height: 22px; } table.lineup .pos { font-size: 13px; } table.lineup th { width: 28px; }
.tscore { font-size: 50px; line-height: 56px; }
#gamehead { font-family: "Nemesis", "Noto Sans", sans-serif; font-size: 20px; letter-spacing: 1px; text-transform: uppercase; color: #fff; padding: 8px 8px 0; }
#stamp { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 6px 0 8px; font-size: 24px; }
#stamp .clk, #stamp .ot { font-family: "Nemesis", "Noto Sans", sans-serif; color: #fff; font-size: 26px; line-height: 28px; letter-spacing: 1px; }
.dots { display: inline-flex; gap: 7px; } .dots i { width: 13px; height: 13px; border-radius: 50%; background: #3a3d3e; display: block; } .dots i.on { background: #ff3b30; }

/* 11-21 round 8 */
.tscore { font-size: 56px; line-height: 62px; }
.dots { gap: 9px; } .dots i { width: 18px; height: 18px; }
#gamehead { text-align: center; font-size: 17px; line-height: 22px; padding: 4px 0 0; letter-spacing: 1px; }
#board { border-bottom: 0; position: sticky; } #board::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 26px; background: linear-gradient(#000, rgba(0,0,0,0)); pointer-events: none; }
.play .time { flex: none; margin-left: 8px; font-family: "Nemesis", "Noto Sans", sans-serif; font-size: 17px; line-height: 21px; letter-spacing: 1px; color: #b9bbbc; white-space: nowrap; }
.play.sub .time { color: #b9bbbc; }

/* 11-21 round 9 */
.tscore { font-size: 64px; line-height: 58px; }
#stamp { margin: 0 0 6px; gap: 12px; } .dots { gap: 8px; } .dots i { width: 16px; height: 16px; } #stamp .clk, #stamp .ot { font-size: 24px; line-height: 26px; }
#gamehead { padding-top: 8px; font-size: 15px; color: #aaaaaa; }
#feed { padding-top: 22px; }
#qhead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; }
#qhead #num { font-family: "Nemesis", "Noto Sans", sans-serif; font-size: 18px; letter-spacing: 1px; color: #c5c6c7; }
#qhead #clue { text-align: center; white-space: nowrap; } #clue .at { font-family: "Nemesis", "Noto Sans", sans-serif; color: #fff; font-size: 18px; letter-spacing: 1px; } #clue .in { color: #8a8d8e; font-size: 14px; }
#qhead #pts { text-align: right; }
.choice { cursor: pointer; } .choice:disabled { cursor: default; }

/* 11-21 round 10 */
.tname { padding-bottom: 3px; } #stamp { margin-bottom: 3px; } #gamehead { color: #999999; }
#pts b { font-family: "Nemesis", "Noto Sans", sans-serif; font-weight: 400; font-size: 20px; letter-spacing: 1px; color: #3ddc5f; } #pts .u { color: #8a8d8e; font-size: 14px; }

.tname { padding-bottom: 7px; }

.tname { padding-bottom: 10px; }

/* 11-21 round 12: start screen, fonts, wrong */
#stamp .clk, #stamp .ot { font-family: "Fairplayer", monospace; color: #ff3b30; font-size: 28px; letter-spacing: 2px; }
.play.miss .txt { color: #b3261e; } .choice.shown, .choice.shown .txt { border-color: #b3261e; color: #b3261e; }
#start { width: 400px; max-width: 100%; min-height: 100vh; margin: 0 auto; box-sizing: border-box; padding: 24px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
#start h1 { font-family: "Fairplayer", monospace; font-weight: 400; color: #ff3b30; font-size: 54px; line-height: 60px; letter-spacing: 3px; margin: 0; }
#start h2 { font-family: "Nemesis", "Noto Sans", sans-serif; font-weight: 400; color: #fff; font-size: 17px; letter-spacing: 1px; text-transform: uppercase; margin: 6px 0 26px; }
#start .how { font-size: 15px; line-height: 22px; color: #c5c6c7; margin: 0 0 28px; text-align: left; } #start .how b { color: #fff; font-weight: 600; }
#start .levels { display: flex; flex-direction: column; gap: 10px; width: 100%; }
#start .levels button { font-family: "Nemesis", "Noto Sans", sans-serif; font-size: 20px; letter-spacing: 2px; text-transform: uppercase; padding: 12px; background: #2b2d2e; color: #fff; border: 1px solid #364043; border-radius: 6px; cursor: pointer; }
#start .levels button:hover { border-color: #ff3b30; }
#start .tmm { margin-top: 30px; font-size: 12px; color: #636363; text-decoration: none; } #start .tmm:hover { color: #919191; }
#qlinks { display: flex; justify-content: space-between; padding: 6px 8px 0; font-size: 14px; } #qlinks a, #qlinks button { color: #8a8d8e; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
#end .quit { padding: 10px 18px; background: transparent; color: #8a8d8e; border: 1px solid #364043; border-radius: 5px; cursor: pointer; margin-left: 8px; }

/* 11-21 round 13 */
#stamp .clk, #stamp .ot { font-size: 25px; }
.play .time { font-family: "Fairplayer", monospace; color: #fff; font-size: 16px; letter-spacing: 1px; } .play.sub .time { color: #fff; }
#start .levels button small { font-family: "Noto Sans", sans-serif; font-size: 12px; letter-spacing: 0; text-transform: none; color: #919191; }
#qlinks { align-items: baseline; } #qlinks .l { display: flex; gap: 16px; }
#qlinks a, #qlinks button { font-family: "Nemesis", "Noto Sans", sans-serif; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; color: #8a8d8e; }

[hidden] { display: none !important; }

/* 11-21 round 14 */
#stamp .clk, #stamp .ot { font-size: 22px; line-height: 24px; }
.play .time, .play.sub .time { color: #ff3b30; padding-top: 2px; }
#clue .at { font-family: "Fairplayer", monospace; font-size: 17px; letter-spacing: 1px; }

/* 11-21 round 15 */
#clue .at { color: #ff3b30; } #gamehead { color: #8c8c8c; } #stamp .clk, #stamp .ot { position: relative; top: 3px; }

/* 11-21 round 16: end screen */
#end { padding: 22px 0 40px; text-align: center; }
#msg { font-family: "Nemesis", "Noto Sans", sans-serif; color: #fff; font-size: 24px; line-height: 30px; letter-spacing: 1px; text-transform: uppercase; padding: 0 8px; }
#qlinks2 { display: flex; justify-content: space-between; align-items: baseline; padding: 22px 8px 0; } #qlinks2 .l { display: flex; gap: 16px; }
#qlinks2 button { font-family: "Nemesis", "Noto Sans", sans-serif; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; color: #8a8d8e; background: none; border: 0; padding: 0; cursor: pointer; }

/* 11-21 round 17: mobile 100vh includes the hidden address bar, so use the dynamic viewport */
#start { min-height: 100vh; min-height: 100dvh; padding-top: 12px; padding-bottom: 28px; }

#start .tmm { font-size: 14px; margin-top: 14px; }

/* 11-21 round 18 */
#question.answered { margin-left: 0; margin-right: 0; }
#qlinks { padding-left: 14px; padding-right: 14px; }
#clue .in { position: relative; top: -3px; } #pts .u { position: relative; top: -2px; }

#qhead { padding-left: 14px; padding-right: 14px; }

#board { padding-top: 10px; }
