/* Head to head: the inbox and set-up screens (inside the menu sheet) and the live match overlay (match panel + chat). */

/* ---- the screens */
#menu .h2hCard { display: grid; gap: .5rem; padding: .7rem .85rem; margin: .4rem 0; border-radius: 1rem; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
#menu .h2hCard b { font-weight: 700; } #menu .h2hCard small { display: block; margin-top: .15rem; color: var(--muted); font: 500 .8rem var(--font-ui); }
#menu .h2hBtns { display: flex; gap: .5rem; } #menu .h2hBtns button { margin: 0; flex: 1; padding: .55rem .8rem; font-size: .95rem; }
#menu .h2hMsg2 { margin: .5rem 0; padding: .6rem .8rem; border-radius: .8rem; background: #d9f2de; color: #1d6b2f; font-weight: 600; font-size: .9rem; }
#menu .h2hFmt { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: .3rem 0 .6rem; }
#menu .h2hFmt button { margin: 0; text-align: left; display: grid; gap: .2rem; padding: .7rem .8rem; border-radius: 1rem; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
#menu .h2hFmt button.on { box-shadow: inset 0 0 0 2.5px var(--gold), 0 .3rem .8rem rgba(15,26,51,.12); background: #fffaf0; }
#menu .h2hFmt button small { font: 500 .74rem/1.3 var(--font-ui); color: var(--muted); }
#menu input.find { width: 100%; margin: .3rem 0 .6rem; padding: .7rem .9rem; border-radius: .9rem; border: 1.5px solid var(--line); font: 600 1rem var(--font-ui); background: #fff; color: var(--navy); }

/* ---- the hubs: what needs you first, then start something, then the rest */
#menu .hubv2 > h2 { margin-bottom: .2rem; }
#menu .hubv2 > .meta { margin: 0 0 .5rem; }
#menu .hubNeed { margin: .5rem 0 .2rem; padding: .2rem .7rem .5rem; border-radius: 1.2rem; background: #fff3cf; box-shadow: inset 0 0 0 2px #f1d36a; }
#menu .hubNeed h3 { display: flex; align-items: center; gap: .5rem; margin: .6rem 0 .1rem; color: #6b4b00; }
#menu .h2hCard.need { background: #fff; box-shadow: 0 .2rem .6rem rgba(107,75,0,.15); }
#menu .hubStart { display: grid; gap: .5rem; margin: .9rem 0 .3rem; }
#menu .hubStart > button { margin: 0; display: grid; gap: .1rem; }
#menu .hubTwo { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
#menu .hubTwo button { margin: 0; display: grid; gap: .1rem; align-content: start; text-align: left; padding: .7rem .85rem; font-size: 1rem; }
#menu .hubStart small, #menu .hubTwo small { display: block; font: 500 .74rem/1.25 var(--font-ui); color: var(--muted); }
#menu .hubStart > button.primary small { color: #5a4300; }
#menu .hubv2 h3 { margin: 1.2rem 0 .3rem; }
#menu .hubv2 button.link { display: block; margin: .7rem auto 0; }
#menu .h2hCard.min { grid-template-columns: 1fr auto; align-items: center; padding: .5rem .75rem; margin: .25rem 0; box-shadow: none; background: rgba(255,255,255,.6); }
#menu .h2hCard.min .h2hBtns button { flex: none; padding: .4rem .8rem; font-size: .85rem; }
#menu .h2hCard.min b { font-size: .95rem; }

/* ---- an invite arriving while you are anywhere in the app */
#invBar { position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + .6rem); transform: translate(-50%, -150%); z-index: 90; width: min(30rem, calc(100vw - 1.2rem)); display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .5rem; padding: .65rem .7rem .65rem .9rem; border-radius: 1.1rem; background: #0f1a33; color: #fff; box-shadow: 0 .6rem 1.6rem rgba(0,0,0,.4), 0 0 0 2px var(--gold); transition: transform .35s cubic-bezier(.2,.9,.3,1.2); }
#invBar.show { transform: translate(-50%, 0); }
#invBar .invTxt { min-width: 0; } #invBar b { display: block; font: 800 .98rem var(--font-ui); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#invBar small { display: block; font: 500 .78rem var(--font-ui); color: #c8d2ea; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#invBar button { border: 0; cursor: pointer; font: 800 .9rem var(--font-ui); }
#invBar .invGo { padding: .55rem 1rem; border-radius: 99px; background: var(--gold); color: #1b1400; }
#invBar .invX { width: 2rem; height: 2rem; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; }

/* ---- the card after a hole and the final result */
.sheet .h2hLine { margin: .1rem 0 .7rem; font: 700 1.15rem var(--font-ui); color: var(--navy); }
.sheet .h2hTrophy { margin: .2rem 0 .8rem; padding: .7rem .9rem; border-radius: .9rem; background: #fff6d6; color: #6b4b00; font-weight: 600; box-shadow: inset 0 0 0 1.5px #f1d36a; }
.sheet table.h2hT { width: 100%; margin: 0 0 1rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sheet table.h2hT th { font: 700 .72rem var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; padding: .25rem; }
.sheet table.h2hT td { text-align: center; padding: .3rem; border-top: 1px solid var(--line); font: 700 1.15rem var(--font-num); }
.sheet table.h2hT tr.won td:nth-child(3), .sheet table.h2hT tr.lost td:nth-child(4) { color: #1f8a4c; }
.sheet table.h2hT tr.lost td:nth-child(3), .sheet table.h2hT tr.won td:nth-child(4) { color: #b3261e; }

/* ---- the match panel */
#h2hHud { position: fixed; left: 50%; top: 4.6rem; transform: translateX(-50%); z-index: 4; min-width: 15rem; max-width: calc(100vw - 2rem); padding: .5rem .9rem .55rem; text-align: center; pointer-events: none; }
body.fly #h2hHud, body.inMenu #h2hHud { opacity: 0; }
#h2hHud.mine { box-shadow: 0 0 0 2px var(--gold), var(--lift); }
#h2hHud .h2hTop { display: flex; align-items: center; justify-content: space-between; gap: .8rem; font: 800 1.1rem var(--font-num); letter-spacing: .04em; }
#h2hHud .h2hTop b { font-weight: 800; color: #fff; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 7.5rem; } #h2hHud .h2hTop b:last-child { color: #ffa066; }
#h2hHud #h2hScore { font: 800 1.5rem var(--font-num); color: var(--gold-2); white-space: nowrap; }
#h2hHud .h2hMid { font: 600 .74rem var(--font-ui); color: var(--dim); letter-spacing: .04em; }
#h2hHud .h2hBot { display: flex; justify-content: space-between; gap: 1rem; font: 700 .85rem var(--font-ui); color: #fff; }
#h2hHud #h2hClock { font: 800 1rem var(--font-num); color: var(--gold-2); } #h2hHud #h2hClock.low { color: var(--bad); }
#h2hClaim { pointer-events: auto; margin-top: .4rem; padding: .35rem .9rem; border: 0; border-radius: 99px; background: var(--gold); color: #1b1400; font: 800 .85rem var(--font-ui); cursor: pointer; }
#h2hClaim[hidden] { display: none; }
body.carting #h2hHud { display: none; }

/* ---- the chat */
#h2hChatBtn { position: fixed; right: 1rem; bottom: 4.2rem; z-index: 31; width: 3rem; height: 3rem; border-radius: 50%; border: var(--edge); background: var(--glass); color: #fff; box-shadow: var(--lift); cursor: pointer; display: grid; place-items: center; }
#h2hChatBtn .i { width: 1.4rem; height: 1.4rem; }
#h2hChatBtn #h2hBadge { position: absolute; top: -.25rem; right: -.25rem; min-width: 1.2rem; height: 1.2rem; padding: 0 .25rem; border-radius: 99px; background: var(--coral); color: #fff; font: 800 .72rem/1.2rem var(--font-ui); font-style: normal; text-align: center; }
#h2hChatBtn #h2hBadge[hidden], #h2hChat[hidden] { display: none; }
#h2hChat { position: fixed; right: 1rem; bottom: 7.6rem; z-index: 31; width: min(21rem, calc(100vw - 2rem)); max-height: min(26rem, 60vh); display: flex; flex-direction: column; gap: .45rem; padding: .7rem .8rem; pointer-events: auto; }
#h2hChat .h2hHead { display: flex; align-items: center; gap: .6rem; font: 700 .95rem var(--font-ui); color: #fff; }
#h2hChat .h2hHead label { margin-left: auto; font: 600 .75rem var(--font-ui); color: var(--dim); display: flex; gap: .3rem; align-items: center; }
#h2hChat .h2hHead button { border: 0; background: none; color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
#h2hMsgs { flex: 1; min-height: 5rem; overflow-y: auto; display: flex; flex-direction: column; gap: .3rem; padding-right: .2rem; user-select: text; -webkit-user-select: text; }
.h2hMsg { max-width: 85%; padding: .3rem .6rem; border-radius: .8rem; font: 500 .9rem/1.3 var(--font-ui); overflow-wrap: anywhere; }
.h2hMsg.me { align-self: flex-end; background: var(--gold); color: #1b1400; border-bottom-right-radius: .2rem; }
.h2hMsg.opp { align-self: flex-start; background: rgba(255,255,255,.14); color: #fff; border-bottom-left-radius: .2rem; }
.h2hMsg.sys { align-self: center; background: transparent; color: var(--bad); font-size: .78rem; }
.h2hMsg[hidden] { display: none; }
#h2hQuick { display: flex; flex-wrap: wrap; gap: .3rem; }
#h2hQuick button { padding: .25rem .6rem; border: 0; border-radius: 99px; background: rgba(255,255,255,.14); color: #fff; font: 600 .8rem var(--font-ui); cursor: pointer; }
#h2hQuick button:hover { background: rgba(255,255,255,.26); }
#h2hForm { display: flex; gap: .4rem; }
#h2hForm input { flex: 1; min-width: 0; padding: .45rem .7rem; border-radius: .7rem; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fff; font: 500 .95rem var(--font-ui); user-select: text; -webkit-user-select: text; }
#h2hForm input::placeholder { color: var(--dim); }
#h2hForm button { padding: .45rem .9rem; border: 0; border-radius: .7rem; background: var(--gold); color: #1b1400; font: 800 .9rem var(--font-ui); cursor: pointer; }
@media (max-width: 640px) {                                                   /* a phone: the top is full of panels, so the match panel sits just above the swing meter, in one tight block */
  #h2hHud { top: auto; bottom: 10.6rem; min-width: 11rem; padding: .35rem .8rem .4rem; }
  #h2hHud .h2hMid { display: none; }
  #h2hHud .h2hTop { font-size: 1rem; } #h2hHud #h2hScore { font-size: 1.25rem; }
  #h2hChatBtn { right: auto; bottom: auto; left: .6rem; top: 38%; }                      /* (the chat button sits at the left edge, out of the way of the swing meter along the bottom) */
  body.compact #h2hChatBtn { left: auto; right: .5rem; top: 45%; width: 2.6rem; height: 2.6rem; }          /* (compact layout: right edge, clear of the thumb dock) */
  #h2hChat { right: auto; bottom: auto; left: .6rem; top: calc(38% + 3.5rem); max-height: 42vh; width: min(21rem, calc(100vw - 1.2rem)); }
  body.compact #h2hChat { left: auto; right: .5rem; top: calc(45% + 3rem); max-height: 40vh; }
}
@media (max-height: 520px) and (orientation: landscape) {
  #h2hChatBtn { right: auto; bottom: auto; left: .6rem; top: 42%; } #h2hChat { right: auto; bottom: .6rem; left: 4.4rem; top: auto; max-height: 80vh; }
}
#menu .nbadge { display: inline-block; margin-left: .45rem; min-width: 1.35rem; padding: 0 .4rem; border-radius: 99px; background: var(--coral); color: #fff; font: 800 .8rem/1.35rem var(--font-ui); font-style: normal; text-align: center; vertical-align: middle; }
#menu .sheet.careers.narrow { width: min(34rem, calc(100vw - 2rem)); max-width: none; }

/* the match room (a scheduled match before it starts) */
.sheet .h2hRoomWho { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .3rem 0 .8rem; }
.sheet .h2hRoomWho > div { padding: .7rem .8rem; border-radius: .9rem; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font: 700 1.1rem var(--font-ui); color: var(--muted); }
.sheet .h2hRoomWho > div.here { color: #1f8a4c; box-shadow: inset 0 0 0 2px #7fcf9a; background: #f1fbf4; }

/* ---- the home screen on a tablet or a computer (js/menu.js homeWideHtml; WIDE in menu.js decides which home is drawn, so these rules need no media query of their own).
   One grid: the welcome pill, the logo and the tools (Updates, Settings, Feedback, Organise) share the top row; Happening now is one row of equal cards; then Play / Practise / You as three columns (a computer) or one under another with two cards a row (a tablet). */
#menu .home.wide { width: min(84rem, 100%); text-align: left; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: 'wel logo tools' 'wel sub tools' 'ban ban ban' 'live live live' 'on on on' 'secs secs secs'; column-gap: 1.6rem; align-items: center; }
#menu .home.wide .topbar { display: contents; }
#menu .home.wide .event.big { grid-area: logo; display: flex; width: max-content; margin: 0 auto; }
#menu .home.wide .sub { grid-area: sub; margin-top: .75rem; text-align: center; }
#menu .home.wide .unlockBanner { grid-area: ban; margin-top: 1rem; }
#menu .home.wide .live { grid-area: live; width: 100%; margin-top: 1.1rem; }
#menu .home.wide .online { grid-area: on; margin-top: .25rem; }
#menu .home.wide .secs { grid-area: secs; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin-top: 1.1rem; align-items: start; }
#menu .home.wide .me { grid-area: wel; justify-self: start; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; min-width: 0; }
#menu .home.wide .welcome { display: flex; align-items: center; gap: .7rem; max-width: 100%; padding: .35rem 1rem .35rem .35rem; border-radius: 99px; background: rgba(15,26,51,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); color: #fff; }
#menu .home.wide .welcome .av { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--navy); color: var(--gold-2); font: 800 .95rem var(--font-ui); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
#menu .home.wide .welcome .wl { display: grid; min-width: 0; line-height: 1.15; } #menu .home.wide .welcome .wl small { font: 500 .72rem var(--font-ui); opacity: .8; } #menu .home.wide .welcome .wl b { font: 700 1rem var(--font-ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#menu .home.wide .welcome .so { flex: none; margin-left: .3rem; padding: .55rem .4rem; font: 600 .8rem var(--font-ui); color: var(--gold); text-decoration: none; opacity: .85; } #menu .home.wide .welcome .so:hover { opacity: 1; text-decoration: underline; }
/* the tools: small pills in the top right, so they no longer take a row of their own under the cards */
#menu .home.wide .tools { grid-area: tools; justify-self: end; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; }
#menu .home.wide .tool { display: flex; align-items: center; gap: .45rem; min-height: 2.6rem; padding: .3rem .85rem .3rem .3rem; border: 0; border-radius: 99px; background: rgba(15,26,51,.62); color: #fff; font: 700 .85rem var(--font-ui); text-shadow: none; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); transition: background .15s, transform .12s; }
#menu .home.wide .tool:hover { background: rgba(15,26,51,.85); transform: translateY(-1px); }
#menu .home.wide .tool .ic { width: 1.9rem; height: 1.9rem; border-radius: 50%; } #menu .home.wide .tool .ic svg { width: 1.05rem; height: 1.05rem; }
#menu .home.wide .tool .t b { font: inherit; white-space: nowrap; }
/* Happening now: one row, every card the same width (two a row on a tablet) */
#menu .home.wide .liveHead { margin-left: .3rem; }
#menu .home.wide .liveRow { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .7rem; overflow: visible; padding: .1rem 0 .5rem; }
#menu .home.wide .liveCard { min-width: 0; max-width: none; width: 100%; box-sizing: border-box; }
/* the cards */
#menu .home.wide .sec h3 { margin: 0 0 .55rem .3rem; font: 800 .74rem var(--font-ui); letter-spacing: .26em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.65); }
#menu .home.wide .sec .stack { display: grid; gap: .75rem; }
#menu .home.wide .ic { flex: none; display: grid; place-items: center; color: #fff; background: var(--c, var(--turf)); box-shadow: inset 0 -2px 0 rgba(0,0,0,.14); }
#menu .home.wide .hcard { position: relative; display: flex; align-items: center; gap: .9rem; width: 100%; height: 5.2rem; padding: .6rem 3.4rem .6rem 1rem; border: 0; border-radius: 1.3rem; cursor: pointer; text-align: left; text-shadow: none; background: rgba(255,255,255,.96); color: var(--navy); box-shadow: 0 .5rem 1.3rem rgba(5,10,28,.28), inset 0 -2px 0 rgba(0,0,0,.05); transition: transform .12s, box-shadow .15s, background .15s; }
#menu .home.wide .hcard:hover { transform: translateY(-3px); background: #fff; box-shadow: 0 .8rem 1.7rem rgba(5,10,28,.34); }
#menu .home.wide .hcard.primary { background: linear-gradient(180deg, var(--gold-2), var(--gold) 65%, #eaa90d); box-shadow: 0 .3rem 0 var(--gold-3), 0 .9rem 1.6rem rgba(5,10,28,.32), inset 0 1px 0 rgba(255,255,255,.55); }
#menu .home.wide .hcard .ic { width: 3.1rem; height: 3.1rem; border-radius: 50%; } #menu .home.wide .hcard .ic svg { width: 1.55rem; height: 1.55rem; }
#menu .home.wide .hcard.primary .ic { background: var(--navy); color: var(--gold); }
#menu .home.wide .hcard .t { display: grid; gap: .12rem; min-width: 0; } #menu .home.wide .hcard .t b { font: 700 1.2rem/1.15 var(--font-ui); }
#menu .home.wide .hcard .t small { font: 500 .86rem/1.3 var(--font-ui); color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } #menu .home.wide .hcard.primary .t small { color: #5b4300; }
#menu .home.wide .chev { position: absolute; right: .9rem; top: 50%; width: 2rem; height: 2rem; margin-top: -1rem; border-radius: 50%; background: rgba(15,26,51,.08); }
#menu .home.wide .chev::after { content: ''; position: absolute; left: 50%; top: 50%; width: .45rem; height: .45rem; margin: -.28rem 0 0 -.36rem; border: solid currentColor; border-width: 2.5px 2.5px 0 0; transform: rotate(45deg); }
#menu .home.wide .hcard.primary .chev { background: rgba(15,26,51,.78); color: var(--gold-2); }
/* a computer window that is not very tall (a laptop, 1440 x 900): a smaller logo and slimmer cards, so the whole home still fits without scrolling */
@media (max-height: 940px) {
  #menu .home.wide .event.big { gap: .9rem; padding: .6rem 1.3rem .6rem 1rem; } #menu .home.wide .event.big img.pma { height: 3.9rem; } #menu .home.wide .event.big img.wm { height: 3.15rem; }
  #menu .home.wide .sub { margin-top: .5rem; } #menu .home.wide .live { margin-top: .7rem; } #menu .home.wide .secs { margin-top: .8rem; }
  #menu .home.wide .hcard { height: 4.5rem; } #menu .home.wide .hcard .ic { width: 2.7rem; height: 2.7rem; } #menu .home.wide .hcard .t b { font-size: 1.1rem; } #menu .home.wide .sec .stack { gap: .6rem; }
}
/* a tablet (or a narrow computer window): the logo on top, the welcome and the tools under it, each section across the whole width with two cards a row */
@media (max-width: 1099px) {
  #menu .home.wide { width: min(46rem, 100%); grid-template-columns: minmax(0, auto) minmax(0, 1fr); grid-template-areas: 'logo logo' 'sub sub' 'wel tools' 'ban ban' 'live live' 'on on' 'secs secs'; row-gap: 0; }
  #menu .home.wide .me, #menu .home.wide .tools { margin-top: 1rem; }
  #menu .home.wide .liveRow { grid-template-columns: 1fr 1fr; } #menu .home.wide .liveCard:last-child:nth-child(odd) { grid-column: 1 / -1; }
  #menu .home.wide .secs { grid-template-columns: 1fr; gap: 1rem; }
  #menu .home.wide .sec .stack { grid-template-columns: 1fr 1fr; gap: .6rem; }
  #menu .home.wide .hcard { height: 4.6rem; padding-right: 2.9rem; } #menu .home.wide .hcard .ic { width: 2.6rem; height: 2.6rem; } #menu .home.wide .hcard .t b { font-size: 1.05rem; } #menu .home.wide .hcard .t small { font-size: .8rem; }
  #menu .home.wide .chev { right: .6rem; width: 1.8rem; height: 1.8rem; margin-top: -.9rem; }
}

#menu .h2hQuote { margin-top: .45rem; padding: .5rem .7rem; border-radius: .7rem; background: #fff6d6; color: #5b4300; font: 600 .95rem/1.35 var(--font-ui); box-shadow: inset 0 0 0 1px #f1d36a; overflow-wrap: anywhere; }
#menu .sheet textarea#hMsg { width: 100%; margin-top: .3rem; padding: .6rem .8rem; border-radius: .9rem; border: 1.5px solid var(--line); font: 500 1rem var(--font-ui); background: #fff; color: var(--navy); resize: none; }
#menu .sheet .opt { font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; }

/* the head to head record on the stats page */
#menu .h2hOpp { display: grid; gap: .25rem; margin-top: .7rem; } #menu .h2hOpp div { display: flex; justify-content: space-between; padding: .3rem .1rem; border-top: 1px solid var(--line); font: 600 .9rem var(--font-ui); }
#menu .h2hOpp span { font: 700 1rem var(--font-num); color: var(--navy); } #menu .h2hOpp small, #menu .h2hRecent small { font: 500 .7rem var(--font-ui); color: #98a08c; }
#menu .h2hRecent { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .6rem; }
#menu .h2hRecent .rs { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; font: 800 .8rem var(--font-ui); color: #fff; }
#menu .h2hRecent .rsW { background: #1f8a4c; } #menu .h2hRecent .rsD { background: #8a93a3; } #menu .h2hRecent .rsL { background: #d4572f; }

/* Live Match / Anytime Match: the two ways to start, your record against one player, and the Anytime Match cards in the game */
#menu .hubTwo button.primary small { color: #5a4300; }
#menu .h2hAsk { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: .5rem 0; }
#menu .h2hAsk button { margin: 0; display: grid; gap: .1rem; align-content: start; text-align: left; padding: .7rem .85rem; font-size: 1rem; }
#menu .h2hAsk small { display: block; font: 500 .74rem/1.25 var(--font-ui); color: var(--muted); } #menu .h2hAsk button.primary small { color: #5a4300; }
#menu .pVs { grid-column: 1 / -1; margin: .5rem 0; }
#menu .vsScore { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; text-align: center; }
#menu .vsScore div { padding: .55rem .3rem; border-radius: .9rem; background: #f3f5ee; box-shadow: inset 0 0 0 1.5px var(--line); }
#menu .vsScore b { display: block; font: 800 1.9rem/1 var(--font-num); color: var(--navy); } #menu .vsScore span { display: block; margin-top: .2rem; font: 600 .74rem var(--font-ui); color: var(--muted); }
#menu .vsScore .vsW { background: #e8f5ec; box-shadow: inset 0 0 0 1.5px #1f8a4c; } #menu .vsScore .vsL { background: #fbece6; box-shadow: inset 0 0 0 1.5px #d4572f; }
#menu .vsLine { margin-top: .6rem; font: 700 .95rem var(--font-ui); color: var(--navy); }
#anySkip { position: fixed; left: 50%; bottom: 5.2rem; transform: translateX(-50%); z-index: 6; padding: .5rem 1.1rem; border: 0; border-radius: 999px; background: rgba(15,26,51,.78); color: #fff; font: 700 .9rem var(--font-ui); box-shadow: 0 .2rem .8rem rgba(0,0,0,.3); cursor: pointer; }
#anySkip[hidden] { display: none; }
.anyReact { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .8rem 0 .6rem; justify-content: center; }
.anyReact span { flex: 0 0 100%; font: 600 .75rem var(--font-ui); color: var(--muted); text-align: center; }
.anyReact button { flex: none; width: auto; min-width: 2.6rem; padding: .4rem .8rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: 600 1rem var(--font-ui); cursor: pointer; }

/* ---- the golfer customiser: locked items, costumes */
#menu .sheet.outfitSheet { width: min(40rem, calc(100vw - 2rem)); } #menu .sheet.outfitSheet.small-sheet { width: min(31rem, calc(100vw - 2rem)); }
#menu .outfit .figbox { flex: 0 0 7.2rem; } #menu .outfit .figbox .fig { width: 100%; height: auto; }
#menu .sheet .seg button { flex: 1 1 4.6rem; width: auto; padding-left: .5rem; padding-right: .5rem; }
#menu .sheet .seg button.locked { opacity: .55; cursor: not-allowed; background: repeating-linear-gradient(135deg, var(--sand), var(--sand) 6px, #e4dec6 6px, #e4dec6 12px); }
#menu i.lk { display: inline-block; width: .8rem; height: .8rem; margin-right: .3rem; vertical-align: -.1rem; background: no-repeat center / contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a7560' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='11' width='14' height='9' rx='2'/><path d='M8 11V8a4 4 0 0 1 8 0v3'/></svg>"); }
#menu .costumes { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.2rem, 1fr)); gap: .55rem; margin: .5rem 0; }
#menu .sheet button.costume { position: relative; display: grid; justify-items: center; gap: .1rem; padding: .5rem .4rem .55rem; margin: 0; border-radius: 1rem; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); text-align: center; }
#menu .sheet button.costume img { width: 100%; max-width: 5.6rem; height: auto; }
#menu .sheet button.costume b { font: 700 .95rem var(--font-ui); } #menu .sheet button.costume small { font: 600 .72rem/1.25 var(--font-ui); color: var(--muted); }
#menu .sheet button.costume.on { box-shadow: inset 0 0 0 2.5px var(--gold), 0 .3rem .8rem rgba(15,26,51,.14); background: #fffaf0; }
#menu .sheet button.costume.locked { opacity: .62; cursor: not-allowed; } #menu .sheet button.costume.locked img { filter: grayscale(1) brightness(.5) contrast(1.1); opacity: .75; }
#menu .sheet button.costume i.lk { position: absolute; top: .5rem; right: .5rem; margin: 0; width: 1.1rem; height: 1.1rem; }
#menu .unlockBanner { display: flex; align-items: center; gap: .8rem; margin: .8rem 0 0; padding: .7rem .9rem; border-radius: 1rem; background: linear-gradient(180deg, #fff3bd, #ffe27a); color: #3d2e00; text-shadow: none; text-align: left; box-shadow: 0 .4rem 1rem rgba(5,10,28,.3), inset 0 0 0 1.5px rgba(168,118,7,.4); }
#menu .unlockBanner b { display: block; font: 800 1rem var(--font-ui); } #menu .unlockBanner small { font: 600 .82rem/1.3 var(--font-ui); }
#menu .unlockBanner button { flex: none; margin: 0; padding: .45rem .8rem; border: 0; border-radius: .7rem; background: var(--navy); color: var(--gold-2); font: 700 .88rem var(--font-ui); cursor: pointer; }
#menu .unlockBanner .x { background: none; color: #3d2e00; padding: .2rem .4rem; font-size: 1.2rem; }

/* ---- Texas scramble: the room and the leaderboard (js/scramble.js) */
#menu .scSeat { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .6rem .85rem; margin: .3rem 0; border-radius: .9rem; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font: 600 .95rem var(--font-ui); }
#menu .scSeat small { font: 700 .66rem var(--font-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-left: .3rem; }
#menu .scSeat.free { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); border-style: dashed; color: var(--muted); }
#menu .scSeat.wait { background: #fffaf0; }
#menu .scSeat button { margin: 0; padding: .35rem .8rem; font-size: .85rem; }
#menu .scBtns { flex-wrap: wrap; margin: .6rem 0; } #menu .scBtns button { min-width: 9rem; }
#menu .scChat { margin: .8rem 0 .4rem; border-radius: 1rem; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); overflow: hidden; }
#menu #scMsgs { height: 9rem; overflow-y: auto; padding: .6rem .8rem; display: flex; flex-direction: column; gap: .3rem; }
#menu .scMsg { align-self: flex-start; max-width: 85%; padding: .3rem .65rem; border-radius: .8rem; background: #eef1f6; font: 500 .9rem var(--font-ui); overflow-wrap: anywhere; }
#menu .scMsg.me { align-self: flex-end; background: #d9f2de; }
#menu #scForm { display: flex; gap: .4rem; padding: .4rem; border-top: 1px solid var(--line); }
#menu .sheet #scForm input { flex: 1 1 auto; width: auto; min-width: 0; margin: 0; padding: .55rem .7rem; border-radius: .7rem; font: 600 .95rem var(--font-ui); }
#menu #scForm button { margin: 0; padding: .55rem 1rem; flex: 0 0 auto; width: auto; }
#menu .sheet label.sOpen { display: flex; align-items: center; gap: .6rem; font: 600 .9rem var(--font-ui); letter-spacing: 0; text-transform: none; color: var(--navy); } #menu .sheet label.sOpen input { width: 1.2rem; height: 1.2rem; margin: 0; padding: 0; flex: 0 0 auto; }
#menu .h2hCard.mineRow { box-shadow: inset 0 0 0 2px var(--gold); background: #fffaf0; }
#menu .scScore { text-align: right; } #menu .scScore b { font: 800 1.3rem var(--font-num); } #menu .scScore small { display: block; }

/* ---- Texas scramble: the captain's pick (after you have played, the team's tries are listed; the captain chooses) */
#scPick { position: fixed; left: 50%; bottom: 6.2rem; transform: translateX(-50%); z-index: 5; width: min(22rem, calc(100vw - 1.6rem)); padding: .6rem .7rem .7rem; display: grid; gap: .4rem; color: #fff; }
#scPick[hidden] { display: none; }
#scPick > b { font: 800 .85rem var(--font-ui); letter-spacing: .04em; text-align: center; }
#scPick .scRow { display: grid; grid-template-columns: 1fr auto; gap: 0 .6rem; align-items: baseline; text-align: left; padding: .45rem .7rem; border: 0; border-radius: .8rem; background: rgba(255,255,255,.1); color: #fff; font: 700 .95rem var(--font-ui); cursor: pointer; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18); }
#scPick .scRow small { grid-column: 1 / -1; font: 500 .72rem var(--font-ui); color: var(--dim); }
#scPick .scRow.on { background: rgba(246,189,28,.22); box-shadow: inset 0 0 0 2px var(--gold); }
#scPick #scPickGo { margin-top: .2rem; padding: .6rem; border: 0; border-radius: 99px; background: var(--gold); color: #1b1400; font: 800 .95rem var(--font-ui); cursor: pointer; }
#scPick #scPickGo:disabled { opacity: .55; cursor: default; }
body.carting #scPick { display: none; }
@media (max-width: 760px) { #scPick { bottom: 3.4rem; } }

/* "Start now": the big countdown in the match room, and the banner that follows you to the range while you warm up */
.sheet .h2hCount { font: 900 4.5rem/1 var(--font-ui); text-align: center; color: #1f8a4c; min-height: 0; margin: .2rem 0; }
.sheet .h2hCount:empty { display: none; }
.warmBanner { position: fixed; top: max(.6rem, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 60; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 1.2rem);
  padding: .5rem .7rem; border-radius: 999px; background: rgba(15, 40, 25, .92); color: #fff; font: 700 .95rem var(--font-ui); box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.warmBanner button { font: 800 .85rem var(--font-ui); padding: .4rem .8rem; border-radius: 999px; border: 0; background: #fff; color: #14502c; cursor: pointer; }

/* the winner's emote picker on the result card */
.sheet .h2hEmotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin: .4rem 0 .6rem; }
.sheet .h2hEmotes button { font: 700 .8rem var(--font-ui); padding: .5rem .3rem; border-radius: .8rem; border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink, #1c2b21); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.sheet .h2hEmotes button span { font-size: 1.4rem; }
.sheet .h2hEmotes button.on { box-shadow: inset 0 0 0 2px #1f8a4c; background: #f1fbf4; color: #1f8a4c; }

/* ---- the daily nearest-the-pin screen (js/daily.js) */
#menu .dHole { padding: .7rem .9rem; margin: .5rem 0; border-radius: 1rem; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); } #menu .dHole b { display: block; font-weight: 800; font-size: 1.05rem; } #menu .dHole small { display: block; margin-top: .15rem; color: var(--muted); font: 600 .8rem var(--font-ui); }
#menu .dDots { display: flex; gap: .5rem; margin: .6rem 0; } #menu .dDot { flex: 1; text-align: center; padding: .7rem .3rem; border-radius: 1rem; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font: 800 1.05rem var(--font-num); color: var(--muted); }
#menu .dDot.used { background: #f1fbf4; box-shadow: inset 0 0 0 2px #7fcf9a; color: #1f8a4c; } #menu .dDot.wet { background: #eef4fb; box-shadow: inset 0 0 0 2px #9ab9e0; color: #3b6aa8; font-size: .85rem; }
#menu ol.dBoard, #menu ul.dPast { list-style: none; margin: .3rem 0 .6rem; padding: 0; }
#menu ol.dBoard li { display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; gap: .4rem; padding: .5rem .7rem; margin: .25rem 0; border-radius: .8rem; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font: 600 .95rem var(--font-ui); }
#menu ol.dBoard li.mine { background: #fffaf0; box-shadow: inset 0 0 0 2px var(--gold); } #menu ol.dBoard li.none { display: block; color: var(--muted); } #menu ol.dBoard .rk { font: 800 1rem var(--font-num); color: var(--muted); } #menu ol.dBoard .d { font: 800 1rem var(--font-num); }
#menu .dYest { margin: .4rem 0; font: 600 .9rem var(--font-ui); color: var(--muted); }
#menu ul.dPast li { display: flex; justify-content: space-between; gap: .6rem; padding: .35rem .2rem; border-top: 1px solid var(--line); font: 600 .88rem var(--font-ui); } #menu ul.dPast li span:first-child { color: var(--muted); }

/* ---- home sections and the "happening now" strip */
#menu .home .live { margin: 1rem auto 0; text-align: left; text-shadow: none; }
#menu .home .liveHead { display: flex; align-items: center; gap: .45rem; margin: 0 0 .4rem .2rem; font: 800 .66rem var(--font-ui); letter-spacing: .22em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
#menu .home .liveDot { width: .55rem; height: .55rem; border-radius: 50%; background: #3ddc6a; box-shadow: 0 0 0 0 rgba(61,220,106,.6); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,106,.55); } 70% { box-shadow: 0 0 0 .5rem rgba(61,220,106,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,106,0); } }
#menu .home .liveRow { display: flex; gap: .55rem; overflow-x: auto; padding: .1rem .1rem .5rem; scrollbar-width: none; } #menu .home .liveRow::-webkit-scrollbar { display: none; }
#menu .home .liveCard { flex: 0 0 auto; min-width: 9.5rem; max-width: 15rem; display: grid; gap: .1rem; text-align: left; padding: .55rem .85rem; border: 0; border-radius: .95rem; background: rgba(15,26,51,.78); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 .3rem .8rem rgba(5,10,28,.3); cursor: pointer; text-shadow: none; transition: transform .12s, background .12s; }
#menu .home .liveCard:hover { transform: translateY(-2px); background: rgba(15,26,51,.92); }
#menu .home .liveCard b { font: 800 .92rem/1.2 var(--font-ui); } #menu .home .liveCard small { font: 600 .74rem/1.25 var(--font-ui); color: #aebed2; }
#menu .home .liveCard.turn { background: linear-gradient(180deg, #2a6b3a, #1d5a2e); box-shadow: inset 0 0 0 1.5px #5fdc84, 0 .3rem .8rem rgba(5,10,28,.3); } #menu .home .liveCard.turn small { color: #cdeed6; }
#menu .home .liveCard.ask { box-shadow: inset 0 0 0 1.5px var(--gold), 0 .3rem .8rem rgba(5,10,28,.3); }
#menu .home .liveCard.daily b::before { content: '🎯 '; }
#menu .home .secLabel { margin: .5rem 0 -.1rem .15rem; text-align: left; font: 800 .64rem var(--font-ui); letter-spacing: .24em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }

/* ---- the tournaments screen: the list and the team scramble beside the selected tournament on a wide screen */
#menu .teamBanner { position: relative; display: block; width: 100%; margin: .2rem 0 .8rem; padding: .75rem 2.8rem .75rem 1rem; border: 0; border-radius: 1rem; text-align: left; background: linear-gradient(180deg, #1f6b3a, #17542d); color: #fff; box-shadow: 0 .25rem .8rem rgba(8,40,20,.3), inset 0 0 0 1px rgba(255,255,255,.16); }
#menu .teamBanner b { display: block; font: 800 1.02rem var(--font-ui); } #menu .teamBanner small { display: block; margin-top: .1rem; font: 600 .78rem/1.3 var(--font-ui); color: #cdeed6; } #menu .teamBanner em { font-style: normal; color: var(--gold-2); }
#menu .teamBanner .chev { position: absolute; right: .8rem; top: 50%; width: 1.8rem; height: 1.8rem; margin-top: -.9rem; border-radius: 50%; background: rgba(255,255,255,.16); }
#menu .teamBanner .chev::after { content: ''; position: absolute; left: 50%; top: 50%; width: .45rem; height: .45rem; margin: -.28rem 0 0 -.38rem; border: solid #fff; border-width: 2.5px 2.5px 0 0; transform: rotate(45deg); }
@media (min-width: 1000px) {
  #menu .sheet.lobby2 { width: min(66rem, calc(100vw - 4rem)); display: grid; grid-template-columns: 21rem 1fr; column-gap: 2rem; align-items: start; }
  #menu .sheet.lobby2 > .homebar, #menu .sheet.lobby2 > .top { grid-column: 1 / -1; }
  #menu .sheet.lobby2 .lobSide { position: sticky; top: 0; } #menu .sheet.lobby2 .lobSide .tlistwrap { margin-top: 0; }
  #menu .sheet.lobby2 .lobMain h2 { margin-top: 0; }
}
@media (max-width: 600px) {                                                      /* a phone: the paired buttons sit icon-left like the rest, so the whole home fits one screen */
  #menu .menuBtns .pair button { flex-direction: row; justify-content: flex-start; text-align: left; gap: .5rem; padding: .5rem .6rem; font-size: .95rem; }
  #menu .menuBtns .ic { width: 2.1rem; height: 2.1rem; }
  #menu .menuBtns { gap: .45rem; margin-top: .6rem; }
}

/* ---- hubs and the daily screen: two columns on a wide screen */
#menu .hubGrid { display: block; }
@media (min-width: 1000px) {
  #menu .sheet.careers.narrow.wide2, #menu .sheet.careers.narrow.wide2c { width: min(62rem, calc(100vw - 4rem)); }
  #menu .hubGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.2rem; align-items: start; }
  #menu .hubGrid > div > :first-child { margin-top: 0; }
}
/* the phone home: the "Happening now" cards sit in the same two-wide grid as the buttons below, flush to both edges (an odd one out spans the row) */
#menu .home:not(.wide) .live { margin-top: .8rem; }
#menu .home:not(.wide) .liveRow { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; overflow: visible; padding: 0 0 .2rem; }
#menu .home:not(.wide) .liveCard { min-width: 0; max-width: none; width: 100%; box-sizing: border-box; }
#menu .home:not(.wide) .liveCard:last-child:nth-child(odd) { grid-column: 1 / -1; }
#menu .home:not(.wide) .liveHead { margin-left: .1rem; }


/* ---- bigger screens: the golfer customiser shows a bigger golfer beside the controls; tool pills are a full finger high on a touch screen */
@media (min-width: 1000px) and (min-height: 600px) {
  #menu .sheet.outfitSheet.small-sheet { width: min(50rem, calc(100vw - 4rem)); }
  #menu .sheet.outfitSheet .figbox { flex-basis: 12rem; padding: 1rem .6rem; }
}
@media (pointer: coarse) { #menu .home.wide .tool { min-height: 44px; } }

/* ---- a phone on its side: the logo on the left, the buttons beside it (half the scrolling, and no empty sides) */
@media (orientation: landscape) and (max-height: 500px) {
  #menu .home:not(.wide) { width: min(46rem, 100%); }
  #menu .home:not(.wide) > .event.big { float: left; clear: left; width: 15rem; max-width: none; justify-content: center; margin-top: .4rem; }
  #menu .home:not(.wide) > .sub { float: left; clear: left; width: 15rem; letter-spacing: .22em; }
  #menu .home:not(.wide) > :not(.event):not(.sub) { margin-left: 16.4rem; }
  #menu .home:not(.wide) > .live { margin-top: 0; }
  #menu .home:not(.wide) > .online, #menu .home:not(.wide) > .live { width: auto; }
}
@media (pointer: coarse) { #menu .who a { display: inline-block; padding: .65rem .35rem; } }
