/* FAIRWAY's look, the clubhouse at dusk: dark forest green panels with a fresh green rim and a hard shadow under them, pale block
   buttons that press in within their own outline (a row of them always lines up), green for what you choose, yellow for what matters. Rubik throughout (bold italic for the big words).
   One type scale: 14, 17, 24, 52 px. */
@font-face { font-family: 'Rubik'; src: url(rubik.woff2) format('woff2'); font-weight: 300 900; font-style: normal; font-display: block; }
@font-face { font-family: 'Rubik'; src: url(rubik-italic.woff2) format('woff2'); font-weight: 300 900; font-style: italic; font-display: block; }
:root {
  --ink: #07100b; --deep0: #2b4a37; --deep1: #1c3427; --deep2: #13251b; --deep3: #0b1610;
  --lime0: #dcf8c4; --lime1: #b4e78f; --lime2: #8fd36b; --lime3: #5a9e38;
  --gold0: #fff1a6; --gold1: #ffd21f; --gold2: #e5a90e; --gold3: #8a5a00;
  --sky0: #e6f5ff; --sky1: #b3dcf6; --sky2: #72b9e6; --sky3: #3a85ba; --sky4: #23618d;   /* (g18: Free Look's button only) */
  --sal: env(safe-area-inset-left, 0px);
  --ivory0: #fbfdf7; --ivory1: #ebf1e3; --ivory2: #d3dccb; --warm: #4c5a4a;
  --mint: #b9e6a0; --mint2: #79c457; --coral: #ffb3a1; --coral2: #f0705a; --red1: #d4483f; --red2: #a7302b;
  --cream: #f1f3ef; --dim: #a9b8ab;
  --fs: 14px; --f: 17px; --fl: 24px; --fx: 52px;
  --font: 'Rubik', system-ui, sans-serif;
  --o15: 1.5px 0 0 var(--ink), -1.5px 0 0 var(--ink), 0 1.5px 0 var(--ink), 0 -1.5px 0 var(--ink), 1px 1px 0 var(--ink), -1px 1px 0 var(--ink), 1px -1px 0 var(--ink), -1px -1px 0 var(--ink);
  --o25: 2.5px 0 0 var(--ink), -2.5px 0 0 var(--ink), 0 2.5px 0 var(--ink), 0 -2.5px 0 var(--ink), 1.8px 1.8px 0 var(--ink), -1.8px 1.8px 0 var(--ink), 1.8px -1.8px 0 var(--ink), -1.8px -1.8px 0 var(--ink);
}
* { box-sizing: border-box; }
.fw { font: 400 var(--f)/1.3 var(--font); color: var(--cream); -webkit-font-smoothing: antialiased; }
.fw .hide { display: none !important; }

/* ---- panels: rounded, deep teal with a fine weave, a gold rim inside the dark outline, a hard shadow under; they rise in */
.fw .panel { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: max-content; min-width: 360px; max-width: min(92vw, 580px); max-height: 92vh;
  display: flex; flex-direction: column; overflow: hidden; padding: 4px; border-radius: 20px; border: 3px solid var(--ink);
  background: radial-gradient(120% 70% at 20% -10%, rgba(255, 255, 255, .12), transparent 60%), repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 7px),
    linear-gradient(170deg, var(--deep0), var(--deep1) 35%, var(--deep2) 75%, var(--deep3));
  box-shadow: inset 0 0 0 2px rgba(143, 211, 107, .7), inset 0 0 0 4px rgba(7, 16, 11, .6), inset 0 -8px 0 rgba(0, 0, 0, .18), 0 7px 0 var(--ink), 0 22px 40px rgba(0, 0, 0, .4);
  animation: fwRise .38s cubic-bezier(.2, 1.35, .4, 1) both; }
/* (what a panel holds scrolls inside its rim, which nothing covers; its closing row stays below, fading what scrolls above it -
   main.js panel) */
.fw .panel > .pb { flex: 0 1 auto; min-height: 0; overflow: auto; padding: 20px 22px 16px; border-radius: 13px; scrollbar-width: none; }
.fw .panel > .pb.ft { padding-bottom: 10px; mask-image: linear-gradient(#000 calc(100% - 10px), transparent); }
@keyframes fwRise { 0% { transform: translate(-50%, -46%) scale(.92); opacity: 0; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.fw .panel h2 { font: 700 var(--fl)/1.1 var(--font); margin: 0 0 14px; color: var(--cream); text-shadow: var(--o15), 0 3px 0 var(--ink); }
.fw .panel h2::after { content: ''; display: block; width: 46px; height: 4px; margin-top: 9px; background: var(--gold1); box-shadow: 0 2px 0 var(--ink); }
.fw .panel p { margin: 0 0 12px; color: var(--dim); }
.fw .sub { margin: 6px 0 16px; color: var(--dim); text-align: center; }
.fw .note { font-size: var(--fs); color: var(--dim); }

/* the name: bold italic, gold, a thin dark outline, a warm drop */
.fw .logo { display: flex; align-items: center; justify-content: center; gap: 12px; }
.fw .logo svg { width: 46px; height: 46px; filter: drop-shadow(0 3px 0 var(--ink)); }
.fw .logo h1 { margin: 0; font: italic 900 var(--fx)/1 var(--font); letter-spacing: .04em; color: var(--gold1); text-shadow: var(--o25), 0 4px 0 var(--gold3), 0 6px 0 var(--ink), 0 12px 18px rgba(0, 0, 0, .35); }

/* ---- buttons: square ivory blocks with a bevel and a dark base. Under the pointer they brighten and take a green ring; pressed (or
   chosen) the base thins and the face sinks into it, the label dropping as much: the outline never moves, so a row stays level */
.fw .btn { display: flex; align-items: center; gap: 14px; width: 100%; margin: 9px 0; padding: 10px 14px 9px; border-radius: 0; border: 2px solid var(--ink); border-bottom-width: 6px;
  background: linear-gradient(var(--ivory0), var(--ivory1) 60%, var(--ivory2)); color: var(--ink); font: 600 var(--f)/1.15 var(--font); text-align: left; cursor: pointer;
  box-shadow: inset 0 2px 0 #fff, 0 3px 0 rgba(0, 0, 0, .22); transition: filter .14s, box-shadow .14s; }
.fw .btn:hover, .fw .btn:focus-visible { filter: brightness(1.04); outline: none; box-shadow: inset 0 2px 0 #fff, 0 0 0 3px rgba(143, 211, 107, .6), 0 3px 0 rgba(0, 0, 0, .22); }
.fw .btn:active, .fw .btn.press { padding-top: 14px; border-bottom-width: 2px; box-shadow: inset 0 4px 0 rgba(10, 26, 36, .2), 0 0 0 3px rgba(143, 211, 107, .6); }
.fw .btn.pri { background: linear-gradient(var(--lime0), var(--lime1) 45%, var(--lime2) 80%, var(--lime3)); }
.fw .btn.go { background: linear-gradient(var(--lime0), var(--lime1) 45%, var(--lime2) 80%, var(--lime3)); }
.fw .btn small { display: block; font: 400 var(--fs)/1.2 var(--font); color: var(--warm); margin-top: 2px; }
.fw .btn .ic { flex: 0 0 36px; height: 36px; display: grid; place-items: center; border: 2px solid var(--ink); background: linear-gradient(var(--deep0), var(--deep3)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2); }
.fw .btn .ic svg { width: 22px; height: 22px; }
/* (two buttons side by side, each half the row. g31, Stephen 30 Nov 20:08, "why does the sign out button text wrap on two lines?": a
   label is never broken over two lines; each button is at least as wide as its label on one line (its second line may still wrap),
   and where two will not fit side by side they stand one over the other, each the row's width, spaced as single buttons are) */
.fw .btns2 { display: flex; flex-wrap: wrap; gap: 9px 10px; margin: 9px 0; }
.fw .btns2 > .btn { flex: 1 1 0; min-width: min-content; margin: 0; }
.fw .btns2 > .btn > span:last-child { white-space: nowrap; }
.fw .btns2 > .btn small { white-space: normal; }
.fw .panel > .foot { flex: none; padding: 0 22px 16px; }
.fw .panel > .foot > .btn:last-child, .fw .panel > .foot > .btns2 { margin-bottom: 0; }

/* ---- settings rows, choices, fields (a chosen button is pressed in inside its own outline: the label drops, its base thins, a shade
   along its top; the outline never moves, so every button in a row keeps the same top and bottom, chosen or not) */
.fw .row { display: flex; gap: 10px; align-items: center; margin: 9px 0; }
.fw .row > label { flex: 0 0 140px; font-weight: 500; color: var(--cream); }
.fw .seg { display: flex; flex-wrap: wrap; gap: 5px; flex: 1; }
/* (g19, Stephen 24 Nov 11:48: Invert Horizontal and Invert Vertical on one line) an Off / On pair as a compact toggle at the row's end:
   the label takes the rest of the row */
.fw .row.tg > label { flex: 1 1 auto; }
.fw .row.tg > .seg { flex: 0 0 auto; flex-wrap: nowrap; }
.fw .row.tg > .seg button { flex: 0 0 auto; min-width: 64px; }
.fw .seg button { flex: 1 1 0; padding: 7px 10px 6px; border-radius: 0; border: 2px solid var(--ink); border-bottom-width: 5px; background: linear-gradient(var(--ivory0), var(--ivory2)); color: var(--ink);
  font: 600 var(--fs) var(--font); cursor: pointer; white-space: nowrap; transition: filter .12s, box-shadow .12s; }
.fw .seg button:hover, .fw .seg button:focus-visible { filter: brightness(1.05); outline: none; box-shadow: 0 0 0 2px rgba(143, 211, 107, .7); }
.fw .seg button:active { padding-top: 10px; border-bottom-width: 2px; box-shadow: inset 0 3px 0 rgba(10, 26, 36, .22); }
.fw .seg button.on { background: linear-gradient(var(--lime0), var(--lime2) 60%, var(--lime3)); padding-top: 10px; border-bottom-width: 2px; box-shadow: inset 0 3px 0 rgba(10, 26, 36, .22); }
.fw .seg button.on:hover, .fw .seg button.on:focus-visible { box-shadow: inset 0 3px 0 rgba(10, 26, 36, .22), 0 0 0 2px rgba(143, 211, 107, .7); }
/* Controls: two keys an action in two equal columns, the one waiting for a key in gold; what just changed, in gold under them */
.fw .seg.two { display: grid; grid-template-columns: 1fr 1fr; }
.fw .seg.one { display: grid; grid-template-columns: 1fr; }
/* (g19, Stephen 24 Nov 14:13) the Gamepad tab, one button for each action: a grid of two columns, the buttons as wide as the longest
   name among them (Left Stick Click) and lined up, each action's name on one line beside its button, on a phone too */
.fw .ctl.pad { display: grid; grid-template-columns: minmax(0, 1fr) max-content; column-gap: 10px; row-gap: 6px; align-items: center; }
.fw .ctl.pad .row { display: contents; }
.fw .ctl.pad .seg.one button { white-space: nowrap; overflow: visible; }
@media (max-width: 389px) { .fw .ctl.pad { column-gap: 8px; } .fw .ctl.pad .seg.one button { padding-left: 7px; padding-right: 7px; } }   /* (375 px: every name on one line) */
/* the courses: a row of cards to scroll through, each a block button (its picture over its name, a line about it, holes and par);
   the one being played green, pressed in (its edge thinner and a shadow inside its top, in the same place as the others: choosing a
   card moves nothing) */
/* (the course row: cards side by side that scroll sideways; the row's own width never widens the panel. Arrows at its ends and a fade
   where there is more that way. It scrolls freely and holds still: no snapping to a card, no rubber-band at its ends, and a card
   pressed while the row is swiped does not move) */
.fw .cwrap { position: relative; margin: 0 0 8px; }
.fw .cwrap.fl .cards { mask-image: linear-gradient(to right, transparent 0, #000 28px); }
.fw .cwrap.fr .cards { mask-image: linear-gradient(to left, transparent 0, #000 28px); }
.fw .cwrap.fl.fr .cards { mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); }
.fw .cwrap .arr { position: absolute; z-index: 2; top: calc((100% - 14px) * .3); width: 40px; height: 40px; padding: 0; display: grid; place-items: center;
  border: 2px solid var(--ink); border-radius: 0; background: linear-gradient(var(--deep0), var(--deep3)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2), 0 3px 0 var(--ink); cursor: pointer; }
.fw .cwrap .arr .ic { display: grid; place-items: center; }
.fw .cwrap .arr svg { width: 24px; height: 24px; }
.fw .cwrap .arr.l { left: -8px; } .fw .cwrap .arr.r { right: -8px; }
.fw .cwrap .arr.hide { display: none; }
.fw .cwrap .arr:hover { filter: brightness(1.15); }
.fw .cwrap .arr:active { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2), 0 1px 0 var(--ink); }
.fw .cards { display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; padding: 2px 2px 12px; margin: 0;
  contain: inline-size; width: 100%; box-sizing: border-box; overscroll-behavior-x: none; scrollbar-width: thin; scrollbar-color: var(--lime3) var(--deep3); outline: none; }
.fw .cards.drag { cursor: grabbing; }
.fw .cards.drag .card { pointer-events: none; }
.fw .cards:focus-visible { box-shadow: 0 0 0 2px rgba(143, 211, 107, .7); }
.fw .cards .card { flex: 1 0 236px; max-width: 300px; display: flex; flex-direction: column; align-items: stretch; gap: 2px; text-align: left; padding: 0 0 9px;
  border: 2px solid var(--ink); border-bottom-width: 5px; border-radius: 0; background: linear-gradient(var(--ivory0), var(--ivory2)); color: var(--ink);
  font: 400 var(--fs)/1.3 var(--font); cursor: pointer; }
.fw .cards .card .pic { position: relative; aspect-ratio: 16 / 9; background: var(--deep2); border-bottom: 2px solid var(--ink); margin-bottom: 6px; overflow: hidden; }
/* (a course not yet played on this device: a small gold tag in the picture's corner) */
.fw .cards .card .pic .new { position: absolute; top: 7px; left: 7px; margin: 0; padding: 3px 7px 2px; font: 700 var(--fs)/1.2 var(--font); color: var(--ink);
  background: linear-gradient(var(--gold0), var(--gold1) 55%, var(--gold2)); border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--ink); }
.fw .cards .card .pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fw .cards .card b { font: 700 var(--f)/1.2 var(--font); margin: 0 10px; }
.fw .cards .card span { margin: 0 10px; color: var(--warm); }
.fw .cards .card .hp { color: var(--ink); font-weight: 500; margin-top: auto; padding-top: 2px; }
.fw .cards .card:hover, .fw .cards .card:focus-visible { filter: brightness(1.05); outline: none; box-shadow: 0 0 0 2px rgba(143, 211, 107, .7); }
.fw .cards .card:active { filter: brightness(.96); }
.fw .cards .card.on { background: linear-gradient(var(--lime0), var(--lime2) 60%, var(--lime3)); border-bottom-width: 2px; padding-bottom: 12px; box-shadow: inset 0 3px 0 rgba(10, 26, 36, .22); }
.fw .cards .card.on span { color: var(--ink); }
.fw .ctl { margin-top: 10px; width: 100%; }   /* (g19: the panel's whole width, so the keys line up with the toggles and tabs above) */
.fw .ctl .row { margin: 4px 0; }
.fw .ctl .row > label { flex-basis: 224px; }   /* (g19: every action on one line, Screenshot (Photo Mode) the longest) */
.fw .seg.two button { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fw .seg button.wait { background: linear-gradient(var(--gold0), var(--gold1)); }
.fw .panel .note.msg { color: var(--gold1); }
.fw input[type=text] { flex: 1; min-width: 0; padding: 9px 12px 8px; border-radius: 0; border: 2px solid var(--ink); background: var(--ivory0); color: var(--ink); font: 500 var(--f) var(--font);
  box-shadow: inset 0 3px 0 rgba(10, 26, 36, .1); }
.fw .pl { display: flex; gap: 10px; align-items: stretch; margin: 7px 0; }
/* (g27) the age question's month and year, drawn as the name field is: square, ivory, the ink border; and a picked name (a player under
   13), shown as a name field shows a name but not editable, with New Name beside it */
.fw .selw { flex: 1 1 0; min-width: 0; position: relative; display: flex; }
.fw .selw::after { content: ''; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }
.fw select.pick { flex: 1; min-width: 0; padding: 9px 32px 8px 12px; border-radius: 0; border: 2px solid var(--ink); background: var(--ivory0); color: var(--ink); font: 500 var(--f) var(--font);
  -webkit-appearance: none; appearance: none; box-shadow: inset 0 3px 0 rgba(10, 26, 36, .1); cursor: pointer; }
.fw select.pick:invalid { color: rgba(10, 26, 36, .55); }
.fw select.pick option { color: var(--ink); background: var(--ivory0); }
.fw .name.picked { flex: 1; min-width: 0; display: flex; align-items: center; padding: 9px 12px 8px; border: 2px solid var(--ink); background: var(--ivory1, var(--ivory0)); color: var(--ink); font: 500 var(--f) var(--font); }
.fw .name.picked .nm { flex: 1; }
.fw .x.nn { color: var(--ink); }
/* (g29) the main menu's account entry, signed in: the player's name on its own row over Your Tule Account and Sign Out */
.fw .acct { display: flex; justify-content: center; margin: 2px 0 8px; color: var(--cream); font: 500 var(--f) var(--font); }
.fw .acct .nm { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; height: 1.3em; line-height: 1.3em; }
/* (g23: the putters as a grid of cards each wide enough for its line to read in two or three lines, two to a row where there is room,
   one on a phone held upright; they had stood in one row, every line squeezed to a word or two at every screen size) */
.fw .putl { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 212px), 1fr)); column-gap: 10px; margin: 4px 0; }
.fw .putl > .btn { margin: 5px 0; }
/* (g23: with a panel open over a round (paused, the scorecard, the final scores) the round's controls wait behind it, hidden, so none
   shows round the panel's edge or cut off by it; the hole's card and the players' list stay where the panel leaves them whole, and
   wait hidden where it would cover them (main.js hudUnder) */
.fw #hud .under { visibility: hidden; }
.fw:has(#panels > .panel) #hud :is(#shotBtn, #pad, #bar, #gbar, #bMove, #meter, #meterL, #skip, #lookBtn, #keys, #toast) { visibility: hidden; }
/* (g29, Stephen 30 Nov 04:22: Menu stays over the scorecard, the hole's scores between holes and the one held up in play, so the round
   can be paused from it; over every other panel it waits hidden as before, and where the card stands over it, main.js hudUnder) */
.fw:has(#panels > .panel:not(.p-card)) #hud #menuBtn { visibility: hidden; }
.fw .pl > .dot, .fw .pl > span { align-self: center; }
.fw .dot { width: 24px; height: 24px; border-radius: 50%; flex: 0 0 24px; border: 2px solid var(--ink); cursor: pointer;
  box-shadow: inset -3px -4px 0 rgba(0, 0, 0, .18), inset 2px 2px 0 rgba(255, 255, 255, .55), 0 2px 0 var(--ink); }
.fw .x { flex: 0 0 auto; padding: 7px 10px 6px; border-radius: 0; border: 2px solid var(--ink); border-bottom-width: 5px; background: linear-gradient(var(--ivory0), var(--ivory2)); color: var(--red2); font: 600 var(--fs) var(--font); cursor: pointer; }
.fw .x:hover, .fw .x:focus-visible { filter: brightness(1.05); outline: none; box-shadow: 0 0 0 2px rgba(143, 211, 107, .7); }
.fw .x:active { padding-top: 10px; border-bottom-width: 2px; box-shadow: inset 0 3px 0 rgba(10, 26, 36, .22); }
.fw .code-big { display: inline-block; font: italic 900 var(--fx)/1 var(--font); letter-spacing: .16em; color: var(--gold1); text-shadow: var(--o25), 0 5px 0 var(--ink); margin: 6px 0 10px; }

/* ---- the scorecard: score tiles, mint under par, ivory at par, coral over; the hole in play outlined in gold */
.fw table.card { border-collapse: separate; border-spacing: 4px; width: 100%; font: 600 var(--fs) var(--font); font-variant-numeric: tabular-nums; margin: -4px 0 6px; }
.fw table.card th { color: var(--gold1); font-weight: 600; font-size: var(--fs); padding: 2px 0 2px; }
.fw table.card th:first-child, .fw table.card td:first-child { text-align: left; white-space: nowrap; padding-right: 8px; }
.fw table.card td { text-align: center; height: 28px; min-width: 29px; color: var(--ink); background: rgba(255, 255, 255, .07); border: 2px solid transparent; }
.fw table.card td:first-child { background: none; color: var(--cream); font-size: var(--f); font-weight: 500; }
.fw table.card tr.par td { background: none; color: var(--dim); height: 20px; font-weight: 500; }
.fw table.card td.s { background: var(--ivory0); border-color: var(--ink); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .1); }
.fw table.card td.u { background: var(--mint); }
.fw table.card td.o { background: var(--coral); }
.fw table.card td.ace { background: linear-gradient(var(--gold0), var(--gold1)); }
.fw table.card td.cur { border-color: var(--gold1); box-shadow: 0 0 0 2px var(--ink); }
.fw table.card td.ip { color: var(--dim); background: rgba(255, 255, 255, .12); font-style: italic; }
.fw table.card td.t { background: linear-gradient(var(--gold0), var(--gold1)); border-color: var(--ink); white-space: nowrap; padding: 0 8px; font-size: var(--f); font-weight: 700; }
.fw table.card td .dot { display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -2px; cursor: default; box-shadow: inset -2px -3px 0 rgba(0, 0, 0, .18); }
.fw .next { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--dim); }
.fw .next b { color: var(--gold1); font-weight: 600; }

/* ---- final scores: a ribbon for the winner, places on struck medals */
.fw .ribbon { position: relative; margin: 0 -6px 14px; padding: 9px 20px 8px; text-align: center; background: linear-gradient(var(--red1), var(--red2)); border: 2px solid var(--ink);
  font: italic 800 var(--fl) var(--font); color: var(--cream); text-shadow: var(--o15), 0 3px 0 var(--ink); box-shadow: inset 0 0 0 2px var(--gold2), 0 5px 0 var(--ink); transform: rotate(-1deg); }
.fw .place { display: flex; align-items: center; gap: 12px; margin: 6px 0; padding: 4px 14px 4px 6px; background: rgba(0, 0, 0, .18); border: 2px solid rgba(255, 255, 255, .1); border-radius: 12px; font-weight: 500; }
.fw .place .medal { flex: 0 0 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--ink); font: 700 var(--fs) var(--font); color: var(--ink);
  box-shadow: inset -3px -4px 0 rgba(0, 0, 0, .18), inset 2px 2px 0 rgba(255, 255, 255, .6), 0 2px 0 var(--ink); background: #c7d3d9; }
.fw .place.m1 .medal { background: radial-gradient(circle at 35% 30%, var(--gold0), var(--gold1) 50%, var(--gold2)); }
.fw .place.m2 .medal { background: radial-gradient(circle at 35% 30%, #ffffff, #c9d2da 55%, #93a1ad); }
.fw .place.m3 .medal { background: radial-gradient(circle at 35% 30%, #ffd2a8, #d9894a 55%, #a35b26); }
.fw .place b { margin-left: auto; font: 700 var(--fl) var(--font); color: var(--cream); }
.fw .place b small { font: 400 var(--fs) var(--font); margin-left: 8px; color: var(--gold1); }

/* ---- in play: the hole's badge, the players, the turn, the shot */
.fw .hudp { border-radius: 16px; border: 2px solid var(--ink); background: linear-gradient(170deg, rgba(43, 74, 55, .94), rgba(19, 37, 27, .95));
  box-shadow: inset 0 0 0 2px rgba(143, 211, 107, .7), 0 5px 0 var(--ink), 0 12px 24px rgba(0, 0, 0, .25); }
.fw #hole { position: fixed; left: 16px; top: 14px; display: flex; align-items: center; gap: 12px; padding: 7px 16px 7px 7px; max-width: calc(100vw - 16px - var(--trw, 194px)); }   /* (clear of the Menu button and the Full Screen button, top right) */
.fw #hole .num { flex: 0 0 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--ink); background: radial-gradient(circle at 35% 30%, var(--gold0), var(--gold1) 50%, var(--gold2));
  font: italic 800 var(--fl) var(--font); color: var(--ink); box-shadow: inset 0 -4px 0 var(--gold3), 0 3px 0 var(--ink); }
.fw #hole .hn { font: italic 700 var(--fl)/1.05 var(--font); color: var(--cream); text-shadow: var(--o15), 0 2px 0 var(--ink); }
.fw #hole .chips { display: flex; gap: 6px; margin-top: 5px; }
.fw #hole .chip { padding: 1px 8px; border-radius: 8px; border: 2px solid var(--ink); background: var(--ivory1); color: var(--ink); font: 600 var(--fs) var(--font); }
.fw #hole .chip.st { background: var(--gold1); }
.fw #plist { position: fixed; right: 14px; top: 64px; min-width: 200px; padding: 7px; font: 500 var(--f) var(--font); }   /* (under the Menu button) */
.fw:has(#netst:not(.hide)) #plist { top: 98px; }   /* (Reconnecting above it) */
.fw #plist .p { display: flex; align-items: center; gap: 10px; padding: 3px 8px; border-radius: 10px; color: var(--cream); }
.fw #plist .p .dot { width: 18px; height: 18px; flex-basis: 18px; cursor: default; box-shadow: inset -2px -3px 0 rgba(0, 0, 0, .18); }
.fw #plist .p b { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.fw #plist .p.act { background: var(--gold1); color: var(--ink); border: 2px solid var(--ink); padding: 1px 6px; }
.fw #plist .p.fin { opacity: .65; }
.fw #plist .p.away { opacity: .5; }
/* the line under the Menu button while the connection is being got back (netcore's reconnect): over the game and the menus alike */
.fw #netst { position: fixed; right: 14px; top: 64px; z-index: 8; padding: 5px 14px 4px; border: 2px solid var(--ink);
  border-radius: 0; background: var(--coral); color: var(--ink); font: 700 var(--fs) var(--font); pointer-events: none; animation: fwPulse 1.4s ease-in-out infinite; }
@keyframes fwPulse { 50% { filter: brightness(1.12); } }
.fw:has(#hud.hide) #netst { top: 14px; }   /* (in the menus there is no Menu button above it) */
.fw .pl.away { opacity: .55; }
/* (Choose Music: the pieces one under another) */
.fw .mlist { display: block; }
.fw #menuBtn { position: fixed; right: 14px; top: 14px; padding: 7px 16px 6px; border-radius: 0; border: 2px solid var(--ink); border-bottom-width: 5px;
  background: linear-gradient(var(--ivory0), var(--ivory2)); color: var(--ink); font: 600 var(--f) var(--font); cursor: pointer; box-shadow: inset 0 2px 0 #fff, 0 3px 0 rgba(0, 0, 0, .22); }
.fw #menuBtn:hover, .fw #menuBtn:focus-visible { filter: brightness(1.05); outline: none; box-shadow: inset 0 2px 0 #fff, 0 0 0 3px rgba(143, 211, 107, .6), 0 3px 0 rgba(0, 0, 0, .22); }
.fw #menuBtn:active { padding-top: 10px; border-bottom-width: 2px; }
/* the messages over the play (main.js toast, which sets how far down each sits: just below whatever of the display is above it).
   A result to celebrate (.big: the score on a hole) in the big gold words, high in the middle; anything else (.info: a penalty, whose
   turn it is, who joined) on a small card at the top, its words in two sizes, never over the middle of the view */
.fw #toast { position: fixed; left: 50%; top: 26%; transform: translateX(-50%); text-align: center; width: max-content; max-width: min(92vw, 640px); text-wrap: balance;
  overflow-wrap: anywhere; pointer-events: none; opacity: 0; }
.fw #toast.on { opacity: 1; }
.fw #toast.big { font: italic 800 var(--fx)/1 var(--font); color: var(--gold1); text-shadow: var(--o25), 0 4px 0 var(--gold3), 0 6px 0 var(--ink), 0 14px 24px rgba(0, 0, 0, .35); }
.fw #toast.big small { display: block; margin-top: 10px; font: 600 var(--fl) var(--font); font-style: normal; color: var(--cream); text-shadow: var(--o15), 0 3px 0 var(--ink); }
.fw #toast.big.on { animation: fwToast .45s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes fwToast { 0% { transform: translateX(-50%) scale(.6); opacity: 0; } 100% { transform: translateX(-50%) scale(1); opacity: 1; } }
.fw #toast.info { max-width: min(92vw, 460px); padding: 8px 18px 9px; border-radius: 14px; border: 2px solid var(--ink);
  background: linear-gradient(170deg, rgba(43, 74, 55, .96), rgba(19, 37, 27, .96)); box-shadow: inset 0 0 0 2px rgba(143, 211, 107, .7), 0 5px 0 var(--ink), 0 12px 24px rgba(0, 0, 0, .25);
  font: italic 700 var(--fl)/1.15 var(--font); color: var(--gold1); text-shadow: var(--o15), 0 2px 0 var(--ink); }
.fw #toast.info small { display: block; margin-top: 3px; font: 500 var(--f)/1.3 var(--font); font-style: normal; color: var(--cream); text-shadow: 0 1px 0 var(--ink); }
.fw #toast.info.on { animation: fwNote .3s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes fwNote { 0% { transform: translate(-50%, -10px); opacity: 0; } 100% { transform: translate(-50%, 0); opacity: 1; } }
.fw #bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: stretch; width: max-content; max-width: calc(100vw - 20px); }
.fw #bar button { padding: 9px 20px 7px; border-radius: 0; border: 2px solid var(--ink); border-bottom-width: 6px; background: linear-gradient(var(--ivory0), var(--ivory2)); color: var(--ink); font: 600 var(--f) var(--font); cursor: pointer; }
.fw #bar button + button { border-left-width: 0; }
.fw #bar button:hover, .fw #bar button:focus-visible { filter: brightness(1.05); outline: none; }
.fw #bar button.on, .fw #bar button:active { padding-top: 13px; border-bottom-width: 2px; box-shadow: inset 0 3px 0 rgba(10, 26, 36, .22); }
.fw #bar button.on { background: linear-gradient(var(--lime0), var(--lime2) 60%, var(--lime3)); }
/* the keys' hint (main.js showKeys): only while a player seems to be hunting for keys */
.fw #keys { position: fixed; left: 16px; bottom: 18px; display: grid; grid-template-columns: auto auto; gap: 5px 14px; align-items: center; padding: 10px 14px 12px;
  font: 500 var(--fs) var(--font); color: var(--cream); pointer-events: none; }
.fw #keys h3 { grid-column: 1 / -1; margin: 0 0 3px; font: 600 var(--f) var(--font); color: var(--gold1); }
.fw #keys b { justify-self: start; padding: 1px 7px; border-radius: 6px; border: 2px solid var(--ink); background: var(--ivory1); color: var(--ink); font-weight: 600; }
.fw #keys p { grid-column: 1 / -1; margin: 5px 0 0; color: var(--dim); }
.fw #bar .key { align-self: center; margin-left: 10px; padding: 1px 7px; border-radius: 6px; border: 2px solid var(--ink); background: var(--ivory1); color: var(--ink); font: 600 var(--fs) var(--font); }
/* (g17) Move Ball Out: over Putt and Chip, centred on them (Stephen 23 Nov 16:36: "above put and chip instead of moving everything to the
   left"), only while the ball can't be played some way from where it lies (main.js nrsNow), warm so it is seen; the same on the No Room
   to Swing message's card. Hidden while a swing is pulled, when the meter takes that place */
.fw #bMove { position: fixed; left: 50%; bottom: calc(var(--bart, 58px) + 10px); transform: translateX(-50%); padding: 9px 20px 7px; border-radius: 0; border: 2px solid var(--ink);
  border-bottom-width: 6px; background: linear-gradient(var(--gold0), var(--gold1) 55%, var(--gold2)); color: var(--ink); font: 600 var(--f) var(--font); cursor: pointer; white-space: nowrap; }
.fw #bMove:hover, .fw #bMove:focus-visible { filter: brightness(1.05); outline: none; }
.fw #bMove:active { padding-top: 13px; border-bottom-width: 2px; box-shadow: inset 0 3px 0 rgba(10, 26, 36, .22); }
.fw #toast.acts { pointer-events: none; }
.fw #toast .act { display: block; margin: 8px auto 1px; padding: 7px 16px 5px; border-radius: 0; border: 2px solid var(--ink); border-bottom-width: 5px; pointer-events: auto; cursor: pointer;
  background: linear-gradient(var(--gold0), var(--gold1) 55%, var(--gold2)); color: var(--ink); font: 600 var(--f) var(--font); font-style: normal; text-shadow: none; white-space: nowrap; }
.fw #toast .act:hover, .fw #toast .act:focus-visible { filter: brightness(1.05); outline: none; }
.fw #toast .act:active { padding-top: 10px; border-bottom-width: 2px; }
.fw #meter { position: fixed; left: 50%; bottom: 82px; transform: translateX(-50%); width: min(60vw, 440px); height: 24px; border-radius: 12px; border: 2px solid var(--ink); background: linear-gradient(var(--deep3), var(--deep2));
  box-shadow: inset 0 0 0 2px rgba(143, 211, 107, .7), 0 4px 0 var(--ink); overflow: hidden; }
.fw #meter i { position: absolute; left: 3px; top: 3px; bottom: 3px; border-radius: 9px 0 0 9px; background: linear-gradient(90deg, var(--mint2), var(--gold1) 60%, var(--gold2) 80%, var(--coral2));
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .4); }
.fw #meter::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), rgba(10, 26, 36, .5) calc(10% - 2px) 10%); }
.fw #meterL { position: fixed; left: 50%; bottom: 114px; transform: translateX(-50%); font: italic 700 var(--fl) var(--font); color: var(--cream); text-shadow: var(--o15), 0 3px 0 var(--ink); }
.fw .flagtag { position: fixed; transform: translate(-50%, -100%); display: flex; align-items: center; gap: 6px; padding: 2px 9px 2px 6px; border-radius: 10px; border: 2px solid var(--ink); background: var(--ivory0); color: var(--ink);
  font: 600 var(--fs) var(--font); box-shadow: 0 3px 0 var(--ink); }
.fw .flagtag::before { content: ''; width: 11px; height: 11px; background: var(--red1); clip-path: polygon(0 0, 100% 35%, 0 70%); }

/* ---- loading */
.fw #load { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: radial-gradient(90% 70% at 50% 35%, var(--deep0), var(--deep2) 60%, #050c08); }
.fw #load::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .02) 0 2px, transparent 2px 7px); }
.fw #load .b { position: relative; width: 300px; height: 18px; border-radius: 10px; border: 2px solid var(--ink); background: var(--deep3); box-shadow: inset 0 0 0 2px rgba(143, 211, 107, .7), 0 4px 0 var(--ink); overflow: hidden; }
.fw #load .b i { position: absolute; left: 3px; top: 3px; bottom: 3px; border-radius: 6px; background: linear-gradient(var(--gold0), var(--gold2)); }
.fw #load .s { position: relative; color: var(--dim); max-width: min(88vw, 34em); text-align: center; line-height: 1.4; }
/* (another course loading in place, main.js loadCourse: over the last picture, at the foot of the screen, its name and a bar) */
.fw #swl { position: fixed; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 9; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 12px 18px 14px; border: 2px solid var(--ink); border-radius: 14px; background: linear-gradient(var(--deep0), var(--deep3)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .12), 0 5px 0 var(--ink);
  font: 600 var(--f) var(--font); color: var(--cream); animation: fwSwl .25s ease-out both; transition: opacity .3s; }
@keyframes fwSwl { 0% { transform: translate(-50%, 10px); opacity: 0; } 100% { transform: translate(-50%, 0); opacity: 1; } }
.fw #swl.done { opacity: 0; }
.fw #swl .b { position: relative; width: min(260px, 70vw); height: 14px; border-radius: 8px; border: 2px solid var(--ink); background: var(--deep3); overflow: hidden; }
.fw #swl .b i { position: absolute; left: 2px; top: 2px; bottom: 2px; width: 0; border-radius: 5px; background: linear-gradient(var(--gold0), var(--gold2)); transition: width .25s; }

/* the page */
html, body { margin: 0; height: 100%; background: #0b1610; overflow: hidden; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: none; }
canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#ov { pointer-events: none; }
#hud { position: fixed; inset: 0; pointer-events: none; }
#hud button, #hud #pad { pointer-events: auto; }
#panels .panel { z-index: 5; }
.fw .err { color: var(--coral); font-size: var(--fs); min-height: 1.2em; margin: 4px 0; }
/* (g29, netcore n027: a name the Tule name rule r3 would not allow, while it is in the field) */
.fw input.name.bad { box-shadow: 0 0 0 2px var(--coral2) inset; }
.fw input.code { flex: 0 0 140px; text-transform: uppercase; letter-spacing: .3em; font-weight: 700; text-align: center; }
.fw .join { display: flex; gap: 10px; align-items: stretch; margin: 10px 0 4px; }
.fw .join .btn { margin: 0; width: auto; flex: 1; }
/* (g23: on a narrow phone the code box gives the button the room for "Join with a Code" on one line; it had wrapped a word to a line) */
@media (max-width: 420px) { .fw input.code { flex-basis: 100px; letter-spacing: .2em; padding-left: 6px; padding-right: 6px; } .fw .join .btn { gap: 8px; padding-left: 8px; padding-right: 8px; } }
.fw .lob { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.fw .lob .code-big { margin: 0; }
.fw .count { font: italic 700 var(--fl) var(--font); color: var(--gold1); text-shadow: var(--o15), 0 3px 0 var(--ink); margin: 6px 0 2px; }
.fw .pl .nm { flex: 1; font-weight: 500; }
.fw .pl .tag { font-size: var(--fs); color: var(--dim); }
.fw .panel h2.sm { font-size: var(--f); margin: 16px 0 10px; }
.fw .panel h2.sm::after { width: 30px; height: 3px; margin-top: 6px; }
.fw #hole .chip.who { display: flex; align-items: center; gap: 6px; }
.fw #hole .chip.who .dot { width: 12px; height: 12px; flex-basis: 12px; border-width: 1.5px; box-shadow: none; cursor: default; }
.fw #hole .chip.low { background: var(--coral); }
.fw #skip { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 9px 20px 7px; border-radius: 0; border: 2px solid var(--ink); border-bottom-width: 6px;
  background: linear-gradient(var(--ivory0), var(--ivory2)); color: var(--ink); font: 600 var(--f) var(--font); cursor: pointer; box-shadow: inset 0 2px 0 #fff, 0 3px 0 rgba(0, 0, 0, .22); }
.fw #skip:hover, .fw #skip:focus-visible { filter: brightness(1.05); outline: none; box-shadow: inset 0 2px 0 #fff, 0 0 0 3px rgba(143, 211, 107, .6), 0 3px 0 rgba(0, 0, 0, .22); }
.fw #skip:active { padding-top: 13px; border-bottom-width: 2px; }
/* the swing pad (touch): a ball pulled down a track, the track filling gold behind it with the power, the ball springing back up when it
   is let go (main.js sets --pw, 0 to 1, as the meter); dimmed while a swing cannot be made. Its box 96 wide, as the bars' room left of
   it is reckoned; the track its travel (--tv) shorter on a short screen */
/* (g12e, Stephen 22 Nov 00:27: nearer the right edge) its track and words as wide as the wider of them and in line with the Menu button's
   right edge, at the same margin from the screen's edge on every shape of screen (tools/fitcheck.cjs checks it); the margin itself is
   part of the pad, so a thumb there still pulls it */
.fw #pad { position: fixed; right: 0; padding-right: max(14px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); width: max-content; display: flex; flex-direction: column; align-items: center; gap: 7px;
  --pw: 0; --tv: 80px; --kn: 44px; touch-action: none; user-select: none; -webkit-user-select: none; transition: opacity .2s; }
.fw #pad.wait { opacity: .5; }
.fw #pad .trk { position: relative; width: calc(var(--kn) + 12px); height: calc(var(--tv) + var(--kn) + 12px); border-radius: 999px; border: 2px solid var(--ink); overflow: hidden;
  background: linear-gradient(90deg, var(--deep3), var(--deep2) 50%, var(--deep3)); box-shadow: 0 4px 0 var(--ink), inset 0 0 0 2px rgba(143, 211, 107, .45); }
.fw #pad .trk i { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--pw) * var(--tv) + 4px + var(--kn) / 2); opacity: min(1, calc(var(--pw) * 40));
  background: linear-gradient(var(--lime2), var(--gold1) 75%, var(--gold2)); }
.fw #pad .trk b { position: absolute; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-right: 3px solid rgba(220, 248, 196, .55); border-bottom: 3px solid rgba(220, 248, 196, .55); transform: rotate(45deg);
  top: calc(var(--kn) + 10px); }
.fw #pad .trk b + b { top: calc(var(--kn) + 10px + var(--tv) / 4); opacity: .7; }
.fw #pad .trk b + b + b { top: calc(var(--kn) + 10px + var(--tv) / 2); opacity: .45; }
.fw #pad .knob { position: absolute; left: 50%; top: calc(4px + var(--pw) * var(--tv)); width: var(--kn); height: var(--kn); margin-left: calc(var(--kn) / -2); border-radius: 50%; border: 2px solid var(--ink);
  background: radial-gradient(circle at 34% 30%, #fff, #e9ebe4 45%, #c9ccc2); box-shadow: 0 3px 0 rgba(0, 0, 0, .35), inset -3px -4px 0 rgba(0, 0, 0, .08); }
.fw #pad .knob::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 0, 0, .12) 1.2px, transparent 1.6px) 0 0 / 7px 7px; opacity: .8; }
.fw #pad:not(.pull) .knob { transition: top .2s cubic-bezier(.3, 1.6, .5, 1); }
.fw #pad:not(.pull) .trk i { transition: height .2s cubic-bezier(.3, 1.6, .5, 1), opacity .2s; }
.fw #pad .cap { color: var(--cream); font: 600 var(--fs)/1.15 var(--font); text-align: center; white-space: nowrap; text-shadow: var(--o15), 0 2px 0 var(--ink); }
.fw .panel.still { animation: none; }
.fw #load .logo h1 { font-size: var(--fx); }
.fw .logo { margin-bottom: 2px; }
.fw .panel > .pb > .logo { margin: 4px 0 20px; }   /* (the main menu: the logo alone over its buttons) */
/* (a short screen, a laptop's: the course cards a little smaller) */
@media (max-height: 820px) { .fw .cards .card { flex-basis: 208px; } }
@media (max-width: 640px) { .fw .cards .card { flex: 0 0 74%; max-width: none; } }   /* (a phone: the next card shows at the edge) */
/* (a phone upright: the closing row's buttons without their second line (Eighteen holes, par 72 is on the course's card), each as
   wide as its words and the room left shared between them, so each is one line; neither ever narrower than its longest word, so no
   label is cut short; a choice of four in two rows of two, never three and one, and five in three and two. A scorecard wider than the phone scrolls sideways
   inside its panel with the players' names held in view at the left) */
@media (max-width: 640px) { .fw .btns2 > .btn { flex: 1 1 auto; }
  .fw table.card th:first-child, .fw table.card td:first-child { position: sticky; left: 0; z-index: 1; background: var(--deep2); box-shadow: 4px 0 0 var(--deep2); }
  .fw table.card td .nm { max-width: 5.5em; }
  .fw .panel > .foot .btn small { display: none; }
  .fw .panel > .foot .btn { gap: 8px; padding-left: 8px; padding-right: 8px; }
  .fw .panel > .foot .btn .ic { flex: 0 0 30px; height: 30px; } .fw .panel > .foot { padding: 0 12px 12px; } .fw .seg:has(> button:nth-child(4):last-child) { display: grid; grid-template-columns: 1fr 1fr; }
  .fw .seg:has(> button:nth-child(5):last-child) { display: grid; grid-template-columns: repeat(6, 1fr); }   /* (five: three and two) */
  .fw .seg:has(> button:nth-child(5):last-child) > button { grid-column: span 2; }
  .fw .seg:has(> button:nth-child(5):last-child) > button:nth-child(n + 4) { grid-column: span 3; } }
@media (max-width: 640px) { :root { --fs: 13px; --f: 15px; --fl: 20px; --fx: 38px; } .fw .panel { min-width: 0; width: 94vw; } .fw .panel > .pb { padding: 14px 12px 12px; } .fw .panel > .pb.ft { padding-bottom: 10px; } .fw .row > label { flex-basis: 104px; } .fw .ctl .row > label { flex-basis: 190px; } .fw .ctl .seg.two button { padding-left: 3px; padding-right: 3px; }
  .fw #plist { display: none; } .fw #meter { bottom: calc(var(--bart, 60px) + 17px); } .fw #meterL { bottom: calc(var(--bart, 60px) + 47px); } .fw #hole .num { flex-basis: 40px; height: 40px; } .fw table.card td { min-width: 22px; height: 24px; } }
/* (g19) phones held upright (and any window up to 560 px): in Controls each action's name on a line of its own, its two keys or
   buttons under it across the whole row, so no key's or button's name is cut short however narrow the phone (Left Stick Click, Down
   Arrow the longest); held sideways, the name (one line, Screenshot (Photo Mode) the longest) beside its keys, as on a desktop */
@media (max-width: 560px) {
  .fw .ctl .row { flex-wrap: wrap; row-gap: 3px; margin: 6px 0 10px; }
  .fw .ctl .row > label, .fw .ctl .row > .seg.two { flex: 1 1 100%; } }
/* (g19) the narrowest phones (320 to 374 px): the Off and On toggles a little slimmer, so Invert Horizontal stays on one line */
@media (max-width: 374px) {
  .fw .row.tg { gap: 8px; }
  .fw .row.tg > .seg button { min-width: 46px; padding-left: 6px; padding-right: 6px; } }
/* (the page's policy allows no style attributes: these replace the ones the menus once set inline) */
.fw .note.narrow { max-width: 240px; margin: 0; }
.fw .gap { margin-top: 12px; }
/* golf (main.js golfHud): the club between Longer Club and Shorter Club in place of Putt and Chip; the lie, the wind and the slope */
.fw #bar.golf { display: none; }
.fw #bar.nochip #bChip { display: none; }   /* (g19: the round's rules turned chipping off) */
.fw #gbar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: stretch; width: max-content; max-width: calc(100vw - 20px); }   /* (as wide as its words, not half the screen) */
.fw #gbar.hide { display: none; }
.fw #gbar button { padding: 9px 20px 7px; border-radius: 0; border: 2px solid var(--ink); border-bottom-width: 6px; background: linear-gradient(var(--ivory0), var(--ivory2)); color: var(--ink); font: 600 var(--f) var(--font); cursor: pointer; }
.fw #gbar button:hover, .fw #gbar button:focus-visible { filter: brightness(1.05); outline: none; }
.fw #gbar button:active { padding-top: 13px; border-bottom-width: 2px; box-shadow: inset 0 3px 0 rgba(10, 26, 36, .22); }
.fw #gClub { display: flex; align-items: center; padding: 0 18px; border: 2px solid var(--ink); border-left-width: 0; border-right-width: 0; border-bottom-width: 6px;
  background: linear-gradient(var(--lime0), var(--lime2) 60%, var(--lime3)); color: var(--ink); font: 600 var(--f) var(--font); white-space: nowrap; }
/* (the hole's card: its chips wrap rather than squeeze; a phone or a small window: the Menu button in the top right corner, clear of the
   hole's card, which runs on toward it; Reconnecting and the players' list under the Menu button) */
.fw #hole .chips { flex-wrap: wrap; row-gap: 5px; }
.fw #hole .chip { white-space: nowrap; }
@media (max-width: 1023px), (max-height: 500px) {
  .fw #menuBtn { right: max(10px, env(safe-area-inset-right)); top: 10px; }
  .fw #pad { padding-right: max(10px, env(safe-area-inset-right)); }
  .fw #hole { left: max(10px, env(safe-area-inset-left)); top: 10px; max-width: calc(100vw - max(10px, env(safe-area-inset-left)) - var(--trw, 140px)); }
  .fw #netst, .fw:has(#hud.hide) #netst { right: max(10px, env(safe-area-inset-right)); top: 58px; }
  .fw:has(#hud.hide) #netst { top: 14px; }
  .fw #plist { top: 62px; }
  .fw:has(#netst:not(.hide)) #plist { top: 96px; }   /* (Reconnecting above it) */
}
/* (a tablet upright, or a window as narrow: the hole's card clear of the players' list beside it; with the touch pad at the right, the
   bars and the meter centred in the room left of it) */
@media (min-width: 641px) and (max-width: 1023px) and (min-height: 501px) { .fw #hud:has(#plist:not(.hide)) #hole { max-width: min(calc(100vw - 330px), calc(100vw - 10px - var(--trw, 140px))); }
  .fw #hud:has(#pad:not(.hide)) #bar, .fw #hud:has(#pad:not(.hide)) #gbar, .fw #hud:has(#pad:not(.hide)) #meter, .fw #hud:has(#pad:not(.hide)) #meterL, .fw #hud:has(#pad:not(.hide)) #bMove { left: calc((100vw - var(--padx, 104px) + env(safe-area-inset-left)) / 2); } }
/* (g12e, Stephen 22 Nov 00:42: on a phone, upright or on its side, the power meter the same height (24 px; it was 18 on its side) and
   the same 17 px over whichever bar is showing, Putt and Chip or golf's club bar (one row or two), its words 6 px over it: --bart, the
   bar's top from the screen's bottom, set by main.js as the bar shows and changes) */
/* (a phone: golf's club bar in two rows, the club and its carry over Longer and Shorter; with the touch pad at the right, golf's bar
   and mini golf's Putt and Chip move to the left, clear of it; the meter's words wrap rather than run off) */
.fw #meterL { width: max-content; max-width: 92vw; text-align: center; }
@media (max-width: 640px) {
  .fw #gbar { flex-wrap: wrap; width: min(92vw, 340px); }
  .fw #gbar .lw { display: none; }
  .fw #gClub { order: -1; flex: 1 0 100%; justify-content: center; white-space: normal; text-align: center; padding: 6px 12px 5px; border-width: 2px 2px 0; border-bottom-width: 0; }
  .fw #gbar button { flex: 1 1 0; padding-left: 8px; padding-right: 8px; }
  .fw #gbar #gDn { border-left-width: 0; }
  /* (g12e, Stephen 22 Nov 00:39: centred in the room between the screen's left edge and the swing pad, as on a tablet and a phone on its
     side; --padx, how far the pad's left edge is from the screen's right, set by main.js as the pad is shown and the screen turns) */
  .fw #hud:has(#pad:not(.hide)) #gbar { left: calc((100vw - var(--padx, 104px) + env(safe-area-inset-left)) / 2); width: min(calc(100vw - 140px), 340px); }
  .fw #hud:has(#pad:not(.hide)) #bar, .fw #hud:has(#pad:not(.hide)) #bMove { left: calc((100vw - var(--padx, 104px) + env(safe-area-inset-left)) / 2); }
  /* (and the meter and its words with them, as wide as golf's bar, clear of the swing pad's track beside them) */
  .fw #hud:has(#pad:not(.hide)) #meter, .fw #hud:has(#pad:not(.hide)) #meterL { left: calc((100vw - var(--padx, 104px) + env(safe-area-inset-left)) / 2); width: min(calc(100vw - 140px - env(safe-area-inset-left)), 340px); }
  .fw #hud:has(#pad:not(.hide)) #meterL { width: max-content; max-width: calc(100vw - var(--padx, 104px) - 20px - env(safe-area-inset-left)); white-space: normal; }   /* (its words as wide as the room left of the pad, wrapping only after a comma: main.js keep) */
}
.fw #gArrow { display: inline-block; width: 13px; height: 13px; vertical-align: -2px; margin-right: 2px; }
.fw #gArrow svg { display: block; fill: currentColor; }

.fw .card2 table.card + table.card { margin-top: 10px; }
.fw .card2 table.card { border-spacing: 3px; }
.fw .card2 table.card td { min-width: 24px; }
.fw .card2 table.card td.t { padding: 0 6px; }

/* ---- full screen (main.js fsShow: on a computer with a wide screen): a dark square with a gold sign in the top right corner, as the
   course row's arrows, over the menus and the play alike, the Menu button just left of it. In full screen it fades away after a
   moment and comes back when the pointer nears the corner (.away; main.js); nothing moves when it does. Not on a narrower screen
   (narrower than 1024 or 500 tall or less), where the Menu button has the corner: there Settings, Full Screen does it */
.fw #fsBtn { position: fixed; z-index: 9; right: 14px; top: 14px; width: 40px; height: 40px; padding: 0;
  display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 0; background: linear-gradient(var(--deep0), var(--deep3));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2), 0 3px 0 var(--ink); cursor: pointer; transition: opacity .25s, transform .25s; }
.fw #fsBtn svg { width: 24px; height: 24px; }
.fw #fsBtn:hover, .fw #fsBtn:focus-visible { filter: brightness(1.15); outline: none; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2), 0 0 0 3px rgba(143, 211, 107, .6), 0 3px 0 var(--ink); }
.fw #fsBtn:active { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2), 0 1px 0 var(--ink); }
.fw #fsBtn.hide { display: none; }
.fw #fsBtn.away, .fw #menuBtn.away, .fw #shotBtn.away { opacity: 0; pointer-events: none; }
.fw #menuBtn, .fw #shotBtn { transition: opacity .25s, transform .25s; }
/* (in a round on a wide screen the Menu button keeps the corner and the Full Screen button stands just left of it, so when it fades in
   full screen no gap is left in the corner; in the menus, where there is no Menu button, the Full Screen button has the corner) */
.fw.fsok #menuBtn { width: 84px; padding-left: 0; padding-right: 0; text-align: center; }
.fw.fsok:has(#hud:not(.hide)) #fsBtn { right: 106px; }
.fw.fsok:has(#hud.hide) #netst { right: 62px; }   /* (in the menus, Reconnecting beside it) */
@media (max-width: 1023px), (max-height: 500px) { .fw #fsBtn { display: none; } }
/* ---- Photo Mode (Settings, Photo Mode: main.js snap): a square Screenshot button, dark with the gold sign as the Full Screen button,
   just left of the Menu button (and of the Full Screen button where that stands in the round), as tall as the Menu button (main.js
   placeShot sets where and how tall, from the Menu button's own box at every size). On a phone or tablet the picture taken comes up on
   a card at the top, to save (Save: the device's own sharing, where Save Image puts it in the photos) or put away */
.fw #shotBtn { position: fixed; display: none; top: 14px; right: 106px; width: 44px; height: 40px; padding: 0; place-items: center;
  border: 2px solid var(--ink); border-radius: 0; background: linear-gradient(var(--deep0), var(--deep3)); cursor: pointer;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2), 0 3px 0 var(--ink); }
.fw.photo #shotBtn { display: grid; }
.fw #shotBtn svg { width: 24px; height: 24px; }
.fw #shotBtn:hover, .fw #shotBtn:focus-visible { filter: brightness(1.15); outline: none; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2), 0 0 0 3px rgba(143, 211, 107, .6), 0 3px 0 var(--ink); }
.fw #shotBtn:active, .fw #shotBtn.busy { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2), 0 1px 0 var(--ink); }
.fw #snapc { position: fixed; left: 50%; top: 80px; transform: translateX(-50%); z-index: 8; display: grid; grid-template-columns: auto auto; gap: 10px; align-items: center;
  padding: 8px; border: 2px solid var(--ink); border-radius: 14px; background: linear-gradient(var(--deep0), var(--deep3)); box-shadow: 0 4px 0 var(--ink), 0 12px 26px rgba(0, 0, 0, .35); }
.fw #snapc.hide { display: none; }
.fw #snapc canvas { display: block; width: auto; height: 84px; border: 2px solid var(--ink); border-radius: 8px; }
.fw #snapc .b2 { display: grid; gap: 8px; }
.fw #snapc button { padding: 7px 16px 6px; border-radius: 0; border: 2px solid var(--ink); border-bottom-width: 5px; background: linear-gradient(var(--ivory0), var(--ivory2));
  color: var(--ink); font: 600 var(--f) var(--font); cursor: pointer; box-shadow: inset 0 2px 0 #fff, 0 3px 0 rgba(0, 0, 0, .22); }
.fw #snapc button.pri { background: linear-gradient(var(--lime0), var(--lime1) 45%, var(--lime2) 80%, var(--lime3)); }
.fw #snapc button:active { padding-top: 10px; border-bottom-width: 2px; }

/* ---- names: a long or wide one never widens its box; it ends in an ellipsis instead (main.js cleanName, the Tule name rule r2: 16
   characters of any language, marks included; the widest letters still need this). And each on its own row: a fixed height, what
   stands above or below it clipped there (three marks stacked on a letter are taller than a plain letter), so no name draws over the
   row above or below it, nor makes its row taller than the others */
.fw #plist .p { white-space: nowrap; }
.fw #plist .p .nm, .fw #hole .chip.who .nm, .fw .pl .nm, .fw .place .nm, .fw table.card td .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw #plist .p .nm, .fw #hole .chip.who .nm, .fw .pl .nm, .fw .place .nm, .fw table.card td .nm, .fw .ribbon .nm { display: inline-block; height: 1.3em; line-height: 1.3em; overflow: hidden; align-self: center; vertical-align: middle; }
/* (in a toast the same, set into its line without changing the line's height or where its words sit: the 1.3em box's margins take it back
   to the line's own 1.15em, and a little room each side for the words' outline) */
.fw #toast .nm { display: inline-block; height: 1.3em; line-height: 1.3em; overflow: hidden; white-space: nowrap; vertical-align: top; margin: -.075em -.12em; padding: 0 .12em; }
.fw #toast small .nm { margin: 0 -.12em; }
.fw #toast.big small { line-height: 1.185; }   /* (Rubik's own normal line height, written out so a name's box can be set to it) */
.fw #toast.big small .nm { margin: -.0575em -.12em; }
.fw #plist { max-width: 280px; }
.fw #plist .p .nm { flex: 0 1 auto; max-width: 11em; }
.fw #hole .chip.who .nm { max-width: 9em; }
.fw .place { min-width: 0; }
.fw .place .nm { flex: 0 1 auto; }
.fw .place b { flex: none; white-space: nowrap; }
.fw table.card td .nm { display: inline-block; max-width: 8em; vertical-align: top; }
.fw .ribbon { display: flex; justify-content: center; gap: .28em; white-space: nowrap; }
.fw .ribbon .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* (more than nine holes: the two tables; the one-row card only where it fits, below) */
.fw .sc18 > .sc1 { display: none; }

/* ---- the screen's shape. Four layouts:
   wide (a computer, a tablet on its side): as drawn above.
   narrower than 1024 or 500 tall or less (a tablet upright, a small window, any phone): the Menu button in the top right corner.
   a phone upright (640 wide or less): the compact type (13, 15, 20, 38 px), the panels the screen's width, golf's club bar in two rows.
   a phone on its side (500 tall or less): the compact type; the panels as tall as the screen allows and only as wide as they need, a
   list of choices in two columns, the course cards with their picture beside their words, eighteen holes on one row of the scorecard;
   the display packed into the top corners and along the bottom edge, compact, the middle of the screen left to the view.
   The same compact hole card on a phone either way up. */
@media (max-width: 640px), (max-height: 500px) {
  .fw #hole { gap: 9px; padding: 5px 12px 5px 5px; border-radius: 14px; max-width: calc(100vw - max(10px, env(safe-area-inset-left)) - var(--trw, 126px)); }
  .fw #hole .num { flex: 0 0 36px; height: 36px; font-size: var(--f); box-shadow: inset 0 -3px 0 var(--gold3), 0 2px 0 var(--ink); }
  .fw #hole .hn { font-size: var(--f); }
  .fw #hole .chips { margin-top: 3px; gap: 4px; row-gap: 3px; }
  .fw #hole .chip { padding: 0 6px; border-radius: 7px; }
  .fw #hole .chip.who .nm { max-width: 7em; }
  .fw #menuBtn { padding: 6px 13px 4px; border-bottom-width: 4px; }
  .fw #menuBtn:active { padding-top: 8px; border-bottom-width: 2px; }
  .fw #netst, .fw:has(#hud.hide) #netst { top: 52px; padding: 5px 9px 4px; }
  .fw:has(#hud.hide) #netst { top: 10px; }
}
@media (max-height: 500px) {
  :root { --fs: 13px; --f: 15px; --fl: 20px; --fx: 38px; }
  /* the panels: as tall as the screen allows, tighter inside */
  .fw .panel { min-width: 0; width: max-content; max-width: min(calc(100vw - 16px - env(safe-area-inset-left) - env(safe-area-inset-right)), 620px); max-height: calc(100vh - 12px); max-height: calc(100dvh - 12px); border-radius: 16px; }
  .fw .panel > .pb { padding: 12px 16px 10px; }
  .fw .panel > .pb.ft { padding-bottom: 8px; }
  .fw .panel > .foot { padding: 0 16px 10px; }
  .fw .panel h2 { margin-bottom: 8px; }
  .fw .panel h2::after { margin-top: 6px; height: 3px; }
  .fw .panel h2.sm { margin: 10px 0 6px; }
  .fw .panel p { margin-bottom: 8px; }
  .fw .sub { margin: 4px 0 10px; }
  .fw .btn { margin: 5px 0; padding: 6px 12px 5px; gap: 10px; border-bottom-width: 5px; }
  .fw .btns2 { margin: 5px 0; row-gap: 5px; }
  .fw .btn:active, .fw .btn.press { padding-top: 9px; border-bottom-width: 2px; }
  .fw .btn .ic { flex: 0 0 30px; height: 30px; }
  .fw .btn .ic svg { width: 18px; height: 18px; }
  .fw .row { margin: 5px 0; }
  .fw .row > label { flex-basis: 118px; }
  .fw .seg button { padding: 5px 8px 4px; }
  .fw .seg button:active, .fw .seg button.on { padding-top: 7px; }
  .fw input[type=text] { padding: 6px 10px 5px; }
  .fw select.pick { padding: 6px 28px 5px 10px; } .fw .name.picked { padding: 6px 10px 5px; }
  .fw .pl { margin: 5px 0; }
  .fw .logo svg { width: 36px; height: 36px; }
  .fw .panel > .pb > .logo { margin: 0 0 8px; }
  .fw .code-big { margin: 2px 0 4px; }
  .fw .count { margin: 2px 0; }
  .fw .ribbon { margin: 0 -4px 8px; padding: 5px 16px 4px; }
  .fw .place { margin: 4px 0; padding: 2px 12px 2px 4px; }
  .fw .place .medal { flex-basis: 26px; height: 26px; }
  .fw .next { margin-top: 6px; }
  .fw table.card { border-spacing: 3px; margin: -3px 0 4px; }
  .fw table.card td { min-width: 20px; height: 22px; }
  .fw table.card tr.par td { height: 16px; }
  .fw table.card th { padding: 0; }
  .fw table.card td:first-child { font-size: var(--fs); }
  .fw table.card td .dot { width: 14px; height: 14px; margin-right: 6px; }
  .fw table.card td.t { padding: 0 5px; font-size: var(--fs); }
  .fw table.card td .nm { max-width: 6.5em; }
  /* the course cards: the picture beside the words, so a card is short */
  .fw .cards .card { flex: 0 0 min(300px, 70vw); max-width: none; display: grid; grid-template-columns: 112px 1fr; grid-template-rows: auto auto 1fr; align-items: start; gap: 1px 0; padding: 0; }
  .fw .cards .card .pic { grid-row: 1 / 4; align-self: stretch; aspect-ratio: auto; min-height: 74px; margin: 0 9px 0 0; border-bottom: 0; border-right: 2px solid var(--ink); }
  .fw .cards .card b { margin: 5px 8px 0 0; }
  .fw .cards .card span { margin: 0 8px 0 0; }
  .fw .cards .card .hp { padding: 2px 0 6px; }
  .fw .cards { padding-bottom: 8px; }
  .fw .cwrap .arr { top: calc(50% - 24px); width: 34px; height: 34px; }
  /* the display: the hole's card and the Menu button in the top corners, the bars along the bottom edge; no players' list (whose turn
     it is is on the hole's card, the scores on the scorecard) */
  .fw #hole { top: max(8px, env(safe-area-inset-top)); left: max(8px, env(safe-area-inset-left)); }
  .fw #menuBtn { top: max(8px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right)); }
  .fw #netst { top: 48px; right: max(8px, env(safe-area-inset-right)); }
  .fw #plist { display: none; }
  .fw #hud #hole { max-width: calc(100vw - max(8px, env(safe-area-inset-left)) - var(--trw, 126px)); }
  .fw #hole .chip.who .nm { max-width: 5.5em; }
  .fw #toast.info small { font-size: var(--fs); }   /* (the second line in the small size: usually one line, the card short) */
  .fw #bar, .fw #gbar { bottom: max(8px, env(safe-area-inset-bottom)); }
  .fw #bar button, .fw #gbar button { padding: 6px 14px 4px; border-bottom-width: 5px; }
  .fw #bar button.on, .fw #bar button:active, .fw #gbar button:active { padding-top: 9px; border-bottom-width: 2px; }
  .fw #bMove { bottom: calc(var(--bart, 43px) + 8px); padding: 6px 14px 4px; border-bottom-width: 5px; }
  .fw #bMove:active { padding-top: 9px; border-bottom-width: 2px; }
  .fw #gbar { flex-wrap: nowrap; width: max-content; }
  .fw #gbar .lw { display: none; }
  .fw #gClub { order: 0; flex: none; white-space: nowrap; padding: 0 12px; border-width: 2px 0 5px; }
  .fw #gbar button { flex: none; }
  .fw #gbar #gDn { border-left-width: 2px; }
  .fw #meter { bottom: calc(var(--bart, 43px) + 17px); width: min(44vw, 340px); }
  .fw #meterL { bottom: calc(var(--bart, 43px) + 47px); }
  .fw #pad { gap: 5px; --tv: 56px; --kn: 38px; padding-right: max(8px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); }
  .fw #skip { bottom: max(8px, env(safe-area-inset-bottom)); padding: 6px 16px 4px; border-bottom-width: 5px; }
  .fw #keys { left: max(8px, env(safe-area-inset-left)); bottom: 8px; padding: 6px 10px 8px; }
  /* (the touch pad at the right: the bars and the meter centred in the room left of it) */
  .fw #hud:has(#pad:not(.hide)) #bar, .fw #hud:has(#pad:not(.hide)) #gbar, .fw #hud:has(#pad:not(.hide)) #meter, .fw #hud:has(#pad:not(.hide)) #meterL, .fw #hud:has(#pad:not(.hide)) #bMove {
    left: calc((100vw - var(--padx, 104px) + env(safe-area-inset-left)) / 2); transform: translateX(-50%); width: max-content; }
  .fw #hud:has(#pad:not(.hide)) #meter { width: min(44vw, 340px); }
  .fw #hud:has(#pad:not(.hide)) #meterL { width: max-content; max-width: calc(100vw - 124px); }
  /* (a message's card kept out of the swing pad's column, which reaches half way up a phone on its side) */
  .fw:has(#pad:not(.hide)) #toast.info { max-width: calc(100vw - 2 * (104px + env(safe-area-inset-right))); }
}
/* (a phone on its side, wide enough: a list of choices in two columns; the final places two to a row; eighteen holes in one row) */
@media (max-height: 500px) and (min-width: 540px) {
  .fw .panel.list { width: min(calc(100vw - 16px - env(safe-area-inset-left) - env(safe-area-inset-right)), 640px); max-width: none; }
  .fw .p-setup, .fw .p-lobby { width: min(calc(100vw - 16px - env(safe-area-inset-left) - env(safe-area-inset-right)), 620px); }   /* (room for the course cards) */
  .fw .panel.list > .pb { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10px; align-content: start; }
  .fw .panel.list > .pb > * { grid-column: 1 / -1; }
  .fw .panel.list > .pb > .btn { grid-column: auto; }
  .fw .places { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 8px; }
  .fw .p-results, .fw .p-card { max-width: min(calc(100vw - 16px - env(safe-area-inset-left) - env(safe-area-inset-right)), 820px); }
}
@media (max-height: 500px) and (min-width: 736px) { .fw .sc18 > .card2 { display: none; } .fw .sc18 > .sc1 { display: block; } }

/* ---- the statistics panel (main.js statsFill; Shift + I, two fingers held in the top left corner, Select and Right Stick Click, or
   ?stats): technical, so its own plain look, not the menus': small monospaced words on a light shade, the game seen through it (no
   blur behind it, which costs the GPU every frame); each word shadowed so it reads over snow and sky. Under the hole's card at the top
   left (main.js sets its top); clicks and touches pass through it. A phone on its side: two columns, so it fits above the Free Look
   button; upright: one column the screen's width */
#stats { position: fixed; left: max(16px, env(safe-area-inset-left)); top: 92px; z-index: 20; width: max-content; max-width: min(520px, calc(100vw - 32px));
  padding: 7px 10px 8px; border-radius: 8px; background: rgba(4, 10, 7, .42); color: #fff; pointer-events: none; user-select: none; -webkit-user-select: none;
  font: 500 12px/1.4 ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Roboto Mono', 'Liberation Mono', monospace; font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .9), 0 0 3px rgba(0, 0, 0, .6); }
#stats.hide { display: none; }
#stats .sh { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 4px; padding-bottom: 3px; border-bottom: 1px solid rgba(255, 255, 255, .22); }
#stats .sh b { font-weight: 700; letter-spacing: .02em; }
#stats .sh i { font-style: normal; color: rgba(255, 255, 255, .62); }
#stats .sg > div { display: grid; grid-template-columns: 12ch 1fr; gap: 0 10px; break-inside: avoid; }
#stats .sg b { font-weight: 500; color: rgba(255, 255, 255, .66); white-space: nowrap; }
#stats .sg span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 1023px), (max-height: 500px) { #stats { left: max(10px, env(safe-area-inset-left)); max-width: calc(100vw - 20px - env(safe-area-inset-left) - env(safe-area-inset-right)); font-size: 11px; padding: 6px 9px 7px; } }
@media (max-height: 500px) { #stats { width: min(720px, calc(100vw - var(--padx, 104px) - 26px - env(safe-area-inset-left))); line-height: 1.3; }
  #stats .sg { column-count: 2; column-gap: 18px; } }
/* ---- Free Look (main.js freeLook): g23b (Stephen, 25 Nov 2026 16:13: "can we move the free look button to the top right and the same
   colour scheme as the full screen button like it used to be, that way all the controls are together"): a square button in the top right
   with the round's other buttons, just left of them (the Menu button, Full Screen where it shows, Photo Mode's Screenshot where it is on),
   as tall as the Menu button (main.js placeCorner sets where and how tall); dark with the gold eye, as the Full Screen button. Pressed in,
   a gold ring inside it, while the view is free; along its foot, in a round with others, a gold bar of the time left. In full screen it
   fades and comes back with the corner's other buttons. (g18 had moved it to the bottom row, left of Putt and Chip, sky blue) */
.fw #hud #lookBtn { position: fixed; z-index: 6; top: 14px; right: 160px; width: 40px; height: 40px; padding: 0; box-sizing: border-box;
  display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 0; background: linear-gradient(var(--deep0), var(--deep3));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2), 0 3px 0 var(--ink); cursor: pointer; --left: 1; transition: opacity .25s, transform .25s; }
.fw #hud #lookBtn.hide { display: none; }
.fw #hud #lookBtn svg { width: 24px; height: 24px; }
.fw #hud #lookBtn:hover, .fw #hud #lookBtn:focus-visible { filter: brightness(1.15); outline: none; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2), 0 0 0 3px rgba(143, 211, 107, .6), 0 3px 0 var(--ink); }
.fw #hud #lookBtn:active { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2), 0 1px 0 var(--ink); }
.fw #hud #lookBtn.on { transform: translateY(2px); background: linear-gradient(var(--deep3), var(--deep1)); box-shadow: inset 0 0 0 2px var(--gold1), 0 1px 0 var(--ink); }
.fw #hud #lookBtn.timed::after { content: ''; position: absolute; left: 4px; bottom: 4px; height: 3px; width: calc((100% - 8px) * var(--left)); background: var(--gold1); box-shadow: 0 0 0 1px var(--ink); }
.fw #hud #lookBtn.away { opacity: 0; pointer-events: none; }


/* ======== (bluebird skin A) Blend A: the Vintage Poster wordmark on the Topographic interface (docs/SKIN-A.md). Slate panels, the survey
   grid, safety orange accents, mono labels, corner brackets. The tokens first: change a colour here and it changes everywhere in the skin */
@font-face { font-family: 'Barlow Condensed'; src: url(skin/barlow-condensed-500.woff2) format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url(skin/barlow-condensed-600.woff2) format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url(skin/barlow-condensed-700.woff2) format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url(skin/ibm-plex-mono-400.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url(skin/ibm-plex-mono-500.woff2) format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url(skin/ibm-plex-mono-600.woff2) format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
:root {
  --s-pg: #26323c; --s-pnl: #33424e; --s-bd: #4a5b68; --s-grid: #5d7080; --s-tx: #eef2f0; --s-tx2: #c9d6de; --s-mu: #9fb0bc;
  --s-ac: #ff5a1f; --s-ac2: #d9440f; --s-ac3: #ff7a45; --s-ice: #9fc8d8; --s-hud: rgba(38, 50, 60, .92); --s-map: #1f2a33; --s-gl: #eef2f0; --s-band: #1b242c;
  --s-bar: 'Barlow Condensed', 'Liberation Sans Narrow', 'Arial Narrow', sans-serif; --s-mono: 'IBM Plex Mono', 'DejaVu Sans Mono', ui-monospace, monospace;
}
/* ---- the loading screen (direct entry, ?drop=1): slate, the wordmark */
.fw #load { background: var(--s-pg); }
.fw #load::before { background: linear-gradient(rgba(93, 112, 128, .18) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, rgba(93, 112, 128, .18) 1px, transparent 1px) 0 0 / 40px 40px; }
.fw #load .logo { position: relative; width: min(420px, 80vw); height: min(125px, 24vw); background: url(skin/wordmark-dark.svg) center / contain no-repeat; }
.fw #load .logo > * { display: none; }
.fw #load .b { width: 300px; height: 14px; border-radius: 0; border: 1px solid var(--s-bd); background: var(--s-pnl); box-shadow: none; }
.fw #load .b i { left: 0; top: 0; bottom: 0; border-radius: 0; background: var(--s-ac); }
.fw #load .s { color: var(--s-mu); font: 500 12px/1.5 var(--s-mono); letter-spacing: 2px; text-transform: uppercase; }

/* ---- the front end (frontend.js): the title and the menu on a 1280 x 720 stage (720 x 1280 on a tall screen) scaled by --k */
.bs { position: fixed; inset: 0; z-index: 60; overflow: hidden; color: var(--s-tx); font-family: var(--s-mono); -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.bs.hide, .bs .hide { display: none !important; }
:where(.bs) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; }
:where(.bs) button:focus-visible { outline: 2px solid var(--s-ice); outline-offset: 2px; }
.bs svg { display: block; }
.bs-stage { position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px; transform-origin: 50% 50%; }
.bs.narrow .bs-stage { width: 720px; height: 1280px; }
/* the title's static scene (the board's own), and over everything the survey grid with its numbers */
.bs-scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1.2s; }
.bs.live .bs-scene { opacity: 0; }
.bs-grid, .bs-gridl { position: absolute; inset: 0; pointer-events: none; }
.bs-grid { background: linear-gradient(rgba(38, 50, 60, .12) 1px, transparent 1px) var(--gx, 0) var(--gy, 0) / var(--gs, 80px) var(--gs, 80px), linear-gradient(90deg, rgba(38, 50, 60, .12) 1px, transparent 1px) var(--gx, 0) var(--gy, 0) / var(--gs, 80px) var(--gs, 80px); }
.bs-gridl span { position: absolute; font: 400 calc(10px * var(--k, 1)) / 1 var(--s-mono); color: rgba(38, 50, 60, .36); }
.bs.live .bs-gridl span { color: rgba(38, 50, 60, .5); }
.bs.onmenu { background: var(--s-pg); }
.bs.onmenu .bs-scene { display: none; }
.bs.onmenu .bs-grid { background: linear-gradient(rgba(93, 112, 128, .18) 1px, transparent 1px) var(--gx, 0) var(--gy, 0) / calc(var(--gs, 80px) / 2) calc(var(--gs, 80px) / 2), linear-gradient(90deg, rgba(93, 112, 128, .18) 1px, transparent 1px) var(--gx, 0) var(--gy, 0) / calc(var(--gs, 80px) / 2) calc(var(--gs, 80px) / 2); }
.bs.onmenu .bs-gridl { display: none; }
/* -- the title (BlendA-Title) */
.bs-title { position: absolute; inset: 0; cursor: pointer; }
.bs-wm { position: absolute; left: 52px; top: 56px; width: 640px; height: auto; }
.bs-tag { position: absolute; left: 60px; top: 300px; padding: 6px 12px; border-left: 5px solid var(--s-ac); background: var(--s-gl); color: var(--s-pg); font: 600 26px/1.15 var(--s-bar); letter-spacing: 3px; text-transform: uppercase; white-space: nowrap; }
.bs-press { position: absolute; left: 60px; top: 624px; display: flex; align-items: center; gap: 14px; padding: 9px 14px; background: var(--s-gl) !important; color: var(--s-pg) !important; overflow: hidden; }
.bs-press i { width: 12px; height: 12px; background: var(--s-mu); flex: none; }
.bs-press.ok i { background: var(--s-ac); animation: bsBlink 1.6s steps(1) infinite; }
.bs-press.bad i { background: var(--s-ac2); animation: none; }
.bs-press span { position: relative; font: 600 15px/1 var(--s-mono); letter-spacing: 4px; }
.bs-press.ok b { display: none; }
.bs-press b { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--s-ac); transition: width .3s; }
@keyframes bsBlink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.bs-comp { position: absolute; left: 1180px; top: 20px; fill: var(--s-pg); stroke: var(--s-pg); }
.bs-comp text { stroke: none; font: 700 16px var(--s-bar); }
.bs-foot { position: absolute; left: 0; right: 0; bottom: 0; height: calc(30px * var(--k)); padding: 0 calc(24px * var(--k)); display: flex; align-items: center; justify-content: space-between; background: var(--s-pg);
  color: var(--s-mu); font: 500 calc(11px * var(--k)) / 1 var(--s-mono); letter-spacing: 2px; white-space: pre; padding-bottom: env(safe-area-inset-bottom); }
.bs.narrow .bs-wm { left: 40px; top: 150px; }
.bs.narrow .bs-tag { left: 40px; top: 400px; font-size: 24px; }
.bs.narrow .bs-press { left: 40px; top: 1130px; }
.bs.narrow .bs-comp { left: 630px; top: 40px; }
.bs.narrow .bs-foot span:nth-child(3) { display: none; }
/* -- the menu (BlendA-Menu) */
.bs-menu { position: absolute; inset: 0; }
.bs-mwm { position: absolute; left: 40px; top: 30px; width: 300px; height: auto; }
.bs-list { position: absolute; left: 40px; top: 180px; width: 330px; margin: 0; padding: 0; list-style: none; }
.bs-item { display: flex !important; align-items: center; gap: 14px; width: 100%; height: 56px; padding: 0 14px !important; box-sizing: border-box; margin-bottom: 4px !important; border-bottom: 1px solid var(--s-bd) !important; color: var(--s-tx) !important; }
.bs-item .bs-n { font: 500 12px/1 var(--s-mono); opacity: .8; width: 18px; }
.bs-ic { fill: none; stroke: var(--s-ice); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.bs-item .bs-l { flex: 1; font: 600 27px/1 var(--s-bar); letter-spacing: 2.5px; text-transform: uppercase; }
.bs-item em { font: 600 12px/1 var(--s-mono); font-style: normal; display: none; }
.bs-item.soon em { display: block; color: var(--s-mu); opacity: .7; letter-spacing: 1px; }
.bs-item.on { background: var(--s-ac) !important; color: var(--s-pg) !important; border-bottom-color: var(--s-ac) !important; }
.bs-item.on .bs-ic { stroke: var(--s-pg); }
.bs-item.on em { display: block; color: var(--s-pg); opacity: 1; }
.bs-item.soon .bs-l { opacity: .78; }
.bs-item.on.soon .bs-l { opacity: 1; }
.bs-card { position: absolute; top: 40px; background: var(--s-pnl); border: 1px solid var(--s-bd); box-sizing: border-box; }
.bs-chead { display: flex; justify-content: space-between; align-items: center; font: 500 11px/1 var(--s-mono); letter-spacing: 2px; color: var(--s-mu); margin-bottom: 10px; }
.bs-course { left: 416px; width: 474px; padding: 16px; }
.bs-mapbox { display: block !important; width: 100%; border: 1px solid var(--s-bd) !important; cursor: pointer; }
.bs-map { width: 100%; height: auto; }
.bs-mapbg { fill: var(--s-map); }
.bs-mapg { stroke: var(--s-grid); stroke-width: 1; opacity: .3; fill: none; }
.bs-mapc { fill: none; stroke: var(--s-ice); stroke-width: 1; opacity: .55; stroke-linejoin: round; }
.bs-mapi { fill: none; stroke: var(--s-ac); stroke-width: 1.6; opacity: .9; stroke-linejoin: round; }
.bs-mapr { fill: none; stroke: var(--s-ac); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.bs-maps { fill: var(--s-ac); }
.bs-mapf { fill: var(--s-tx); }
.bs-mapt { font: 600 11px var(--s-mono); fill: var(--s-tx); paint-order: stroke; stroke: var(--s-map); stroke-width: 3px; }
.bs-prof { width: 100%; height: 56px; margin-top: 6px; }
.bs-pfill { fill: var(--s-ac); opacity: .18; }
.bs-pline { fill: none; stroke: var(--s-ac); stroke-width: 2; vector-effect: non-scaling-stroke; }
.bs-pdash { stroke: var(--s-bd); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.bs-crow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; }
.bs-cname { font: 700 44px/1 var(--s-bar); letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-grade { font: 600 12px/1 var(--s-mono); color: var(--s-ac2); letter-spacing: 2px; white-space: nowrap; }
.bs-csub { font: 400 15px/1.5 var(--s-mono); color: var(--s-tx2); margin-top: 6px; }
.bs-stats { display: flex; gap: 16px; margin-top: 14px; }
.bs-stat { flex: 1; border-top: 2px solid var(--s-ac); padding-top: 8px; }
.bs-sk { font: 500 11px/1 var(--s-mono); letter-spacing: 2px; color: var(--s-mu); }
.bs-sv { font: 600 32px/1.05 var(--s-bar); margin-top: 4px; }
.bs-sv span { font-size: 18px; color: var(--s-ice); }
.bs-drop { margin-top: 16px !important; width: 100%; height: 54px; background: var(--s-ac) !important; color: var(--s-pg) !important; display: flex !important; align-items: center; justify-content: space-between; padding: 0 20px !important; box-sizing: border-box; font: 700 26px/1 var(--s-bar) !important; letter-spacing: 5px; }
.bs-drop .bs-ic { stroke: var(--s-pg); stroke-width: 2.6; }
.bs-drop:disabled { background: var(--s-bd) !important; color: var(--s-tx2) !important; cursor: default; }
.bs-drop:disabled .bs-ic { stroke: var(--s-tx2); }
.bs-drop:not(:disabled):hover { background: var(--s-ac3) !important; }
.bs-rider { left: 904px; width: 340px; padding: 14px; }
.bs-rnav { display: flex; gap: 2px; }
.bs-rnav button { padding: 2px 6px !important; color: var(--s-mu) !important; font: 500 13px/1 var(--s-mono) !important; }
.bs-rnav button:hover { color: var(--s-ac) !important; }
.bs-pic { position: relative; width: 310px; height: 250px; background: var(--s-gl); overflow: hidden; }
.bs-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bs-picg { position: absolute; inset: 0; background: linear-gradient(rgba(38, 50, 60, .12) 1px, transparent 1px) 0 0 / 10% 12.4%, linear-gradient(90deg, rgba(38, 50, 60, .12) 1px, transparent 1px) 0 0 / 10% 12.4%; mix-blend-mode: multiply; }
.bs-picf { position: absolute; inset: 0; width: 100%; height: 100%; }
.bs-brk { fill: none; stroke: var(--s-ac); stroke-width: 3; }
.bs-meas { fill: none; stroke: var(--s-pg); stroke-width: 1.2; }
.bs-meast { font: 400 10px var(--s-mono); fill: var(--s-pg); }
.bs-rname { font: 700 32px/1.05 var(--s-bar); letter-spacing: 1.5px; margin-top: 12px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-rbio { font: 400 13px/1.45 var(--s-mono); color: var(--s-tx2); margin-top: 4px; min-height: 38px; }
.bs-bar { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.bs-bk { width: 60px; font: 500 11px/1 var(--s-mono); letter-spacing: 1.5px; color: var(--s-mu); }
.bs-bt { flex: 1; height: 8px; background: var(--s-pg); position: relative; }
.bs-bt b { position: absolute; top: -3px; width: 1px; height: 14px; background: var(--s-bd); z-index: 1; }
.bs-bt b:nth-child(1) { left: 25%; } .bs-bt b:nth-child(2) { left: 50%; } .bs-bt b:nth-child(3) { left: 75%; }
.bs-bt i { display: block; height: 100%; width: 0; background: var(--s-ac); transition: width .25s; }
.bs-bn { width: 24px; font: 500 11px/1 var(--s-mono); text-align: right; }
.bs-specs { display: grid; grid-template-columns: 1fr 1fr 1fr; margin-top: 14px; border-top: 1px solid var(--s-bd); }
.bs-specs > div { padding-top: 8px; }
.bs-speck { font: 500 10px/1 var(--s-mono); letter-spacing: 1.5px; color: var(--s-mu); }
.bs-specv { font: 600 19px/1.2 var(--s-bar); margin-top: 3px; white-space: nowrap; }
.bs-mfoot { position: absolute; left: 0; right: 0; bottom: 0; height: calc(34px * var(--k)); padding: 0 calc(40px * var(--k)); display: flex; align-items: center; gap: calc(30px * var(--k));
  border-top: 1px solid var(--s-bd); color: var(--s-mu); font: 500 calc(11px * var(--k)) / 1 var(--s-mono); letter-spacing: 2px; white-space: pre; padding-bottom: env(safe-area-inset-bottom); }
.bs-mfoot b { color: var(--s-ac); font-weight: 600; }
.bs-cond { margin-left: auto; }
.bs-toast { color: var(--s-tx); opacity: 0; transition: opacity .3s; }
.bs-toast.on { opacity: 1; }
/* the tall screen: the list over the course card; the rider card in the course card's place while Riders is highlighted */
.bs.narrow .bs-mwm { top: 40px; }
.bs.narrow .bs-list { top: 150px; width: 640px; }
.bs.narrow .bs-card { left: 40px; top: 600px; width: 640px; }
.bs.narrow .bs-csub { display: none; }
.bs.narrow .bs-rider { display: none; }
.bs.narrow.showrider .bs-rider { display: block; }
.bs.narrow.showrider .bs-course { display: none; }
.bs.narrow .bs-pic { width: 400px; height: 322px; margin: 0 auto; }
.bs.narrow .bs-cond { display: none; }

/* ---- the ride's HUD (play.js PLAY.page; BlendA-Hud): time and score top right, the gauge and boost bottom right (b002's layout), the
   combination over the middle, the tricks landed at the left, Restart and Menu top left, the finish card, touch controls, the debug line.
   Drawn at the board's sizes and scaled by --hk (play.js: the screen against 1280 x 720) */
#bbhud { position: fixed; inset: 0; pointer-events: none; z-index: 5; --hk: 1; }
#bbhud.hide { display: none; }
#bbhud button { pointer-events: auto; cursor: pointer; }
.fw #bbhud .hide { display: none; }
.fw .bbp { background: var(--s-hud); border: 1px solid var(--s-bd); color: var(--s-tx); box-sizing: border-box; }
.fw .bbk { font: 500 11px/1 var(--s-mono); letter-spacing: 2px; color: var(--s-mu); }
.fw .bbh { display: flex; justify-content: space-between; font: 500 11px/1 var(--s-mono); letter-spacing: 2px; color: var(--s-mu); }
.fw .bbh.bbor { color: var(--s-ac2); margin-top: 6px; }
.fw .bbrec { color: var(--s-ac2); visibility: hidden; }
.fw .bbrec.on { visibility: visible; animation: bsBlink 1.6s steps(1) infinite; }
.fw .bbtl { position: fixed; right: calc(28px * var(--hk) + env(safe-area-inset-right)); top: calc(26px * var(--hk) + env(safe-area-inset-top)); width: 272px; transform: scale(var(--hk)); transform-origin: 100% 0; }   /* (bluebird b002: time and score on the right, Stephen 1 Dec) */
.fw .bbtl > .bbh { padding: 10px 16px 0; }
.fw .bbbig { padding: 4px 16px 8px; font: 600 56px/1 var(--s-mono); letter-spacing: -1px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fw .bbrow { display: flex; justify-content: space-between; align-items: baseline; }
.fw .bbtl .bbrow { padding: 10px 16px; border-top: 1px solid var(--s-bd); }
.fw .bbrow b { font: 700 30px/1 var(--s-bar); letter-spacing: 1px; color: var(--s-ac2); font-variant-numeric: tabular-nums; }
.fw .bbbl { position: fixed; right: calc(28px * var(--hk) + env(safe-area-inset-right)); bottom: calc(26px * var(--hk) + env(safe-area-inset-bottom)); width: 272px; padding: 12px 16px 14px; transform: scale(var(--hk)); transform-origin: 100% 100%; }   /* (b002: speed and boost on the right) */
.fw #bbhud.touch .bbbl { bottom: calc(150px + env(safe-area-inset-bottom)); }   /* (b002: above the jump and boost buttons on a touch screen) */
.fw .bbgrow { display: flex; align-items: center; gap: 12px; }
.fw .bbgauge { flex: none; }
.fw .bbgt { fill: none; stroke: var(--s-bd); stroke-width: 8; }
.fw .bbgv { fill: none; stroke: var(--s-ice); stroke-width: 8; transition: stroke-dasharray .12s linear; }
.fw .bbgk { stroke: var(--s-mu); stroke-width: 1.5; }
.fw .bbgn { font: 600 34px var(--s-mono); fill: var(--s-tx); text-anchor: middle; }
.fw .bbgu { font: 400 11px var(--s-mono); fill: var(--s-mu); text-anchor: middle; }
.fw .bbside { flex: 1; }
.fw .bbside .bbk2 { margin-top: 8px; }
.fw .bbv { font: 600 22px/1.1 var(--s-bar); color: var(--s-tx); white-space: nowrap; }
.fw .bbseg { display: flex; gap: 3px; margin-top: 6px; }
.fw .bbseg i { flex: 1; height: 14px; background: var(--s-bd); }
.fw .bbseg i.on { background: var(--s-ac); }
.fw .bbseg.full i.on { background: var(--s-ac3); }
.fw .bbseg.boosting i.on { background: var(--s-ice); }
.fw .bbcombo { position: fixed; left: 50%; top: calc(28px * var(--hk) + env(safe-area-inset-top)); display: flex; align-items: stretch; max-width: calc((100vw - 340px * var(--hk) - 140px) / var(--hk)); transform: translateX(-50%) scale(var(--hk)); transform-origin: 50% 0; }
.fw .bbcl { padding: 12px 22px; min-width: 0; }
.fw .bbcn { font: 700 32px/1.05 var(--s-bar); letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.fw .bbcm { background: var(--s-ac); color: var(--s-pg); display: flex; align-items: center; padding: 0 18px; font: 600 32px/1 var(--s-mono); }
.fw .bblines { position: fixed; left: calc(96px * var(--hk) + env(safe-area-inset-left)); top: 37.5%; display: flex; flex-direction: column; gap: 8px; transform: scale(var(--hk)); transform-origin: 0 0; }
.fw .bbline { width: 220px; padding: 10px 18px 12px; border-left: 6px solid var(--s-ac); transition: opacity .7s; animation: bbIn .3s cubic-bezier(.2, 1.3, .4, 1) backwards; }
@keyframes bbIn { 0% { transform: translateX(-14px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.fw .bbln { font: 700 28px/1.1 var(--s-bar); letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; }
.fw .bblp { font: 600 30px/1 var(--s-mono); color: var(--s-ac2); margin-top: 4px; }
.fw .bbline.sk { border-left-color: var(--s-ice); }
.fw .bbline.lost { border-left-color: var(--s-mu); }
.fw .bbline.lost .bbln { color: var(--s-tx2); }
.fw .bbline.bank .bblp { color: var(--s-ice); }
.fw .bbline.out { opacity: 0; }
.fw .bbfin { position: fixed; left: 50%; top: 50%; width: 340px; padding: 18px 22px 20px; transform: translate(-50%, -50%) scale(var(--hk)); pointer-events: auto; border-top: 6px solid var(--s-ac); }
.fw .bbfin .bbbig { padding: 6px 0 10px; font-size: 60px; }
.fw .bbfinb .bbrow { padding: 8px 0; border-top: 1px solid var(--s-bd); }
.fw .bbfinb .bbrow b { font-size: 24px; color: var(--s-tx); }
.fw .bbfinb .bbrow:first-child b { color: var(--s-ac2); font-size: 30px; }
.fw .bbbtn { display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; margin-top: 12px; border: 0; background: var(--s-ac); color: var(--s-pg); font: 700 24px/1 var(--s-bar); letter-spacing: 5px; }
.fw .bbbtn:hover { background: var(--s-ac3); }
.fw .bbbtn2 { height: 40px; margin-top: 8px; background: transparent; color: var(--s-tx); border: 1px solid var(--s-bd); font-size: 18px; letter-spacing: 4px; }
.fw .bbbtn2:hover { background: var(--s-pnl); }
.fw .bbhint { position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 10px 18px; max-width: min(46vw, 560px); text-align: center; transition: opacity 1.2s; border-top: 3px solid var(--s-ac); }
.fw .bbhint.gone { opacity: 0; transition-delay: 3s; }
.fw .bbhh { font: 600 20px/1.2 var(--s-bar); letter-spacing: 3px; text-transform: uppercase; color: var(--s-tx); }
.fw .bbhk { margin-top: 5px; font: 400 11px/1.45 var(--s-mono); color: var(--s-mu); }
.fw .bbtlb { position: fixed; left: calc(16px + env(safe-area-inset-left)); top: calc(14px + env(safe-area-inset-top)); display: flex; gap: 6px; transform: scale(var(--hk)); transform-origin: 0 0; }   /* (b002: Restart top left) */
.fw .bbrst { padding: 8px 12px; border: 1px solid var(--s-bd); background: var(--s-hud); color: var(--s-tx); font: 600 12px/1 var(--s-mono); letter-spacing: 2px; }
.fw .bbrst:hover { border-color: var(--s-ac); color: var(--s-ac); }
.fw .bbdbg { position: fixed; left: 0; right: 0; bottom: 0; padding: 3px 8px; font: 12px/1.3 var(--s-mono); color: #fff; background: rgba(0, 0, 0, .55); white-space: nowrap; overflow: hidden; }
.fw .bbtsteer { position: fixed; left: 0; bottom: 0; width: 45vw; height: 55vh; pointer-events: auto; touch-action: none; }
.fw .bbtsteer i { position: absolute; left: 50%; top: 60%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; border: 2px solid var(--s-ice); background: rgba(38, 50, 60, .45); box-shadow: 0 0 0 6px rgba(159, 200, 216, .18); }
.fw .bbtbtn { position: fixed; width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--s-pg); background: var(--s-ac); color: var(--s-pg); font: 700 18px/1 var(--s-bar); letter-spacing: 2px; touch-action: none; text-align: center; }
.fw .bbtbtn:active { background: var(--s-ac3); }
.fw .bbtjump { right: calc(24px + env(safe-area-inset-right)); bottom: calc(30px + env(safe-area-inset-bottom)); }
.fw .bbtboost { right: calc(124px + env(safe-area-inset-right)); bottom: calc(60px + env(safe-area-inset-bottom)); width: 68px; height: 68px; background: var(--s-hud); color: var(--s-ice); border-color: var(--s-ice); font-size: 15px; }
@media (max-width: 760px), (max-height: 500px) { .fw .bbhint { max-width: min(60vw, 420px); padding: 8px 12px; } .fw .bbhint .bbhk { display: none; } }
.fw #bbhud.touch .bbhk { display: none; }
