/* PMA Golf: the shared design layer. Loaded last, so every menu screen, sheet and card is drawn from one small set of tokens and components:
   navy + gold for the club, green for the course and for daily games, gold for the Tour, Outfit for words and Barlow Condensed for titles and numbers (as in app.css).
   Nothing here touches the in-round HUD (the panels, meter and buttons you play with): that is app.css. Every animation stops for people who ask their device for less motion. */

:root {
  /* type: one scale for every screen */
  --fs-cap: .7rem;        /* caps labels over a field or a section */
  --fs-sm: .84rem;        /* secondary lines under a name */
  --fs-md: .95rem;        /* body */
  --fs-lg: 1.06rem;       /* names on cards, buttons */
  --fs-xl: 1.4rem;        /* a number on a tile */
  --fs-h2: 2.3rem;        /* screen titles */
  /* space, corners, depth */
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem; --sp-5: 1.4rem; --sp-6: 2rem;
  --r-sm: .6rem; --r-md: .9rem; --r-lg: 1.15rem; --r-xl: 1.5rem; --r-pill: 999px;
  --paper: var(--cream); --card: #fff; --well: #f1ecd8; --well-2: #e8e1c6; --rule: rgba(15,26,51,.1); --rule-2: rgba(15,26,51,.18);
  --sh-1: 0 1px 2px rgba(15,26,51,.06), 0 .25rem .7rem rgba(15,26,51,.06);
  --sh-2: 0 .35rem 1.1rem rgba(15,26,51,.12);
  --text: var(--navy); --text-2: #556072; --text-3: #8a8f80;
  /* what colours mean */
  --tour: var(--gold); --tour-ink: #6b4d00; --daily: #1f8a4c; --daily-ink: #135c31; --ok: #1f8a4c; --bad: #b3261e; --warn: #a86400;
  /* motion */
  --ease: cubic-bezier(.2,.8,.2,1); --ease-back: cubic-bezier(.3,1.4,.5,1); --t-1: .14s; --t-2: .24s; --t-3: .42s;
  --tap: 44px;
}

/* ================================================================== 1. the sheet: one shell for every screen */
#menu .sheet { --padX: 1.8rem; padding: 1.5rem var(--padX) 1.5rem; border-radius: var(--r-xl); scrollbar-width: thin; scrollbar-color: rgba(15,26,51,.22) transparent; overscroll-behavior: contain; }
#menu .sheet:has(> .homebar) { padding-top: .55rem; }
#menu .sheet::-webkit-scrollbar { width: 8px; } #menu .sheet::-webkit-scrollbar-thumb { background: rgba(15,26,51,.2); border-radius: 8px; border: 2px solid var(--paper); }
@media (max-width: 480px) { #menu .sheet { --padX: 1.1rem; padding: 1.2rem var(--padX) 1.3rem; } #menu .sheet:has(> .homebar) { padding-top: .4rem; } }
/* on a phone every screen starts at the same place, so moving between them never makes the header jump */
@media (max-width: 640px) { #menu > .sheet { margin: 0 auto auto; } }
/* three widths: a short message, a normal screen, a wide list (careers.css, h2h.css and villa.css set the rest) */
#menu .small-sheet { width: min(27rem, calc(100vw - 2rem)); }

/* the bar at the top: Back on the left, Home on the right, held at the top while the screen scrolls (js/menu.js dressBar) */
#menu .sheet > .homebar.sheetBar {
  position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: var(--sp-2); min-height: 3.1rem;
  margin: 0 calc(-1 * var(--padX)) .55rem; padding: .3rem calc(var(--padX) - .55rem);
  background: rgba(250,247,234,.9); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: 0 1px 0 var(--rule);
}
#menu .sheet > .homebar.sheetBar button.link {
  display: inline-flex; align-items: center; gap: .3rem; width: auto; min-height: 2.5rem; margin: 0; padding: .35rem .7rem .35rem .5rem; border-radius: var(--r-pill);
  background: transparent; color: var(--navy); font: 700 var(--fs-sm) var(--font-ui); text-decoration: none; letter-spacing: .01em; transition: background var(--t-1);
}
#menu .sheet > .homebar.sheetBar button.link:hover { background: var(--well); }
#menu .sheet > .homebar.sheetBar button.link:active { background: var(--well-2); transform: none; }
#menu .sheet > .homebar.sheetBar button.link svg.i { width: 1.15rem; height: 1.15rem; stroke-width: 2.4; }
#menu .sheet > .homebar.sheetBar .barBack { max-width: 62%; overflow: hidden; } #menu .sheet > .homebar.sheetBar .barBack span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#menu .sheet > .homebar.sheetBar .barHome { margin-left: auto; }
#menu .sheet > .homebar.sheetBar .barHome:only-child { margin-left: 0; }
#menu .sheet > .homebar.sheetBar .barBack + .barHome { margin-left: auto; }
#menu .sheet button.link.barred { display: none !important; }
@media (pointer: coarse) { #menu .sheet > .homebar.sheetBar button.link { min-height: var(--tap); } }

/* ================================================================== 2. type */
#menu .sheet h2 { font: 800 var(--fs-h2)/1 var(--font-num); letter-spacing: .012em; text-wrap: balance; }
#menu .sheet h2 + .meta, #menu .sheet .pwho + .meta { margin-top: .35rem; }
#menu .sheet .meta { font-size: var(--fs-md); line-height: 1.45; text-wrap: pretty; }
#menu .sheet h3 { margin: 1.4rem 0 .55rem; font: 700 var(--fs-cap) var(--font-ui); letter-spacing: .14em; color: var(--text-3); }
#menu .sheet .hint { font-size: var(--fs-sm); line-height: 1.45; color: var(--text-2); }
@media (max-width: 480px) { #menu .sheet h2 { font-size: 2.05rem; } }

/* ================================================================== 3. buttons: primary (gold), secondary (sand), quiet (a link) */
#menu .sheet button, #card .sheet button, #pause .sheet button { border-radius: var(--r-md); transition: background var(--t-1), transform var(--t-1), box-shadow var(--t-1), filter var(--t-1); }
#menu .sheet button:not(.link):not(.primary):not(.ghost2):not(.titem):not(.hitem):not(.tlevel):not(.sw):not(.oTab):not(.tact):not(.corder),
#card .sheet button.ghostbtn, #pause .sheet button:not(.primary) { box-shadow: inset 0 0 0 1px rgba(15,26,51,.07); }
#menu .sheet button:focus-visible, #card .sheet button:focus-visible, #pause .sheet button:focus-visible { outline: 3px solid rgba(246,189,28,.85); outline-offset: 2px; }
#menu .sheet button.primary, #card .sheet button.primary, #pause .sheet button.primary { font-weight: 800; letter-spacing: .01em; }
#menu .sheet button.primary:active, #card .sheet button.primary:active { filter: brightness(.97); }
#menu .sheet button.ghost2, #menu .sheet .addp button { border-radius: var(--r-md); background: var(--navy); color: #fff; }
#menu .sheet button.ghost2:hover, #menu .sheet .addp button:hover { background: var(--navy-3); }
#menu .sheet button.link { color: var(--navy-3); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
#menu .sheet .row { flex-wrap: wrap; } #menu .sheet .row > button { flex: 1 1 9rem; }

/* ================================================================== 4. tabs: one control everywhere (Leaderboards, Organise, the profile filters, the estate, the wardrobe) */
#menu .sheet .tabs, #menu .gfilter, #menu .villaUI .vuTabs, .oTabs {
  display: flex; flex-wrap: nowrap; gap: .2rem; margin: .7rem 0 .8rem; padding: .22rem; border-radius: var(--r-pill); background: var(--well);
  box-shadow: inset 0 0 0 1px rgba(15,26,51,.05); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
#menu .sheet .tabs::-webkit-scrollbar, #menu .gfilter::-webkit-scrollbar, #menu .villaUI .vuTabs::-webkit-scrollbar { display: none; }
#menu .sheet .tabs button, #menu .gfilter button, #menu .sheet.villaUI .vuTabs button, #menu .sheet .oTabs .oTab {
  flex: 1 0 auto; width: auto; min-height: 2.35rem; margin: 0; padding: .45rem .95rem; border: 0; border-radius: var(--r-pill); scroll-snap-align: center;
  background: transparent; color: var(--navy); box-shadow: none; font: 700 var(--fs-sm) var(--font-ui); white-space: nowrap; transition: background var(--t-2), color var(--t-2), box-shadow var(--t-2);
}
#menu .sheet .tabs button:hover, #menu .gfilter button:hover, #menu .sheet.villaUI .vuTabs button:hover:not(:disabled), #menu .sheet .oTabs .oTab:hover { background: rgba(255,255,255,.7); }
#menu .sheet .tabs button.on, #menu .gfilter button.on, #menu .sheet.villaUI .vuTabs button.on, #menu .sheet .oTabs .oTab.on { background: var(--navy); color: var(--gold-2); box-shadow: 0 .15rem .45rem rgba(15,26,51,.22); }
#menu .ctrl .tabs { margin: 0 0 .3rem; } #menu .gfilter { display: inline-flex; max-width: 100%; margin: 0 0 .6rem; }
@media (pointer: coarse) { #menu .sheet .tabs button, #menu .gfilter button, #menu .sheet.villaUI .vuTabs button, #menu .sheet .oTabs .oTab { min-height: 2.6rem; } }
/* a row that scrolls shows a soft edge where it carries on */
@media (max-width: 640px) { #menu .sheet .tabs, #menu .villaUI .vuTabs { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); } }

/* ================================================================== 5. cards and rows */
#menu .sheet button.titem { box-shadow: inset 0 0 0 1px var(--rule), var(--sh-1); border-radius: var(--r-md); }          /* (no green edge: green means a daily game) */
#menu .sheet button.titem:hover { box-shadow: inset 0 0 0 1.5px var(--gold), var(--sh-2); }
#menu .sheet button.titem b { font-size: var(--fs-lg); }
#menu .sheet button.titem small { font-size: var(--fs-sm); line-height: 1.38; }
#menu .stat, #menu .recgrid div, #menu .gcard, #menu .rrow, #menu button.hitem { box-shadow: inset 0 0 0 1px var(--rule), var(--sh-1); }
#menu button.hitem { border-radius: var(--r-md); }
#menu .big:not(.event) { box-shadow: inset 0 0 0 1px var(--rule), var(--sh-1); }
#menu .pill { letter-spacing: .07em; }

/* the empty state: a quiet panel instead of a stray line of text */
#menu .sheet .empty { display: grid; justify-items: center; gap: .35rem; margin: .7rem 0; padding: 1.3rem 1rem; border-radius: var(--r-lg); background: rgba(255,255,255,.55);
  box-shadow: inset 0 0 0 1.5px var(--rule); border: 0; text-align: center; color: var(--text-2); font: 600 var(--fs-sm)/1.45 var(--font-ui); }
#menu .sheet .empty::before { content: ''; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--well) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8f80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='M12 3l6 2.5-6 2.5'/%3E%3Cellipse cx='12' cy='18.5' rx='6.5' ry='2.2'/%3E%3C/svg%3E") center / 1.3rem no-repeat; }
#menu .sheet .empty b { color: var(--navy); font-size: var(--fs-md); }

/* ================================================================== 6. fields */
#menu .sheet input, #menu .sheet label select, #menu .sheet .oBox > select, #menu .sheet .oBox .dGrid > select { min-height: 2.95rem; border-width: 1.5px; border-color: var(--rule-2); border-radius: var(--r-md); }
#menu .sheet label select, #menu .sheet .oBox > select, #menu .sheet .oBox .dGrid > select, #menu .sheet select.sel {
  -webkit-appearance: none; appearance: none; padding-right: 2.4rem; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1a33' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right .8rem center / 1rem no-repeat;
}
#menu .sheet label { color: var(--text-3); font-size: var(--fs-cap); }
#menu .sheet .err:not(:empty) { padding: .5rem .75rem; border-radius: var(--r-sm); background: #fdecea; color: var(--bad); }
#menu .sheet .err.good:not(:empty) { background: #e7f5ec; color: #1f8a4c; }          /* a message that says something worked is green, not red */

/* ================================================================== 7. tables and leaderboards */
#menu table.lbt { border-collapse: separate; border-spacing: 0; }
#menu table.lbt th { padding-bottom: .45rem; color: var(--text-3); font-size: .64rem; }
#menu table.lbt td { border-top: 1px solid var(--rule); }
#menu table.lbt tr.me td { background: #fff3c4; border-top-color: transparent; }
#menu table.lbt tr.me + tr td { border-top-color: transparent; }
#menu tr.pick:hover td { background: #fffaf0; }

/* ================================================================== 8. loading */
/* a screen on its way: the panel keeps the size and place of the one before, with the new title and a spinner, until it is drawn (js/menu.js render) */
#menu > .sheet.isSkel { display: flex; flex-direction: column; animation: none; max-width: calc(100vw - 2rem); }
#menu .sheet.isSkel h2 { opacity: .35; }
#menu .sheet.isSkel .meta { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; margin: 0; padding: 2rem 0; font-weight: 700; color: var(--text-2); text-align: center; }
#menu .sheet.isSkel .meta::before { content: ''; width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 3px solid var(--well-2); border-top-color: var(--gold-3); animation: cspin .8s linear infinite; }
#menu .sheet.isSkel::before { background: linear-gradient(90deg, var(--gold-3), var(--gold-2), var(--gold-3)); background-size: 50% 100%; animation: loadRun 1s linear infinite; }
@keyframes loadRun { from { background-position: -100% 0; } to { background-position: 200% 0; } }
/* the first screen after the home: a small card with a spinner. Its bar is hidden, but :has(> .homebar) above still matches and would leave it a thin top and a deep bottom, so it sets both (the top also takes the .42rem gold strip, so the spinner and words sit in the middle of the cream below it) */
#menu .sheet.isSpin { width: min(22rem, calc(100vw - 2rem)); display: flex; align-items: center; gap: .9rem; padding-top: calc(1.3rem + .42rem); padding-bottom: 1.3rem; }
#menu .sheet.isSpin > .homebar { display: none; }
#menu .sheet.isSpin h2 { display: none; }
#menu .sheet.isSpin .meta { margin: 0; font-weight: 700; color: var(--navy); }
#menu .sheet.isSpin::after { content: ''; order: -1; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 3px solid var(--well-2); border-top-color: var(--gold-3); animation: cspin .8s linear infinite; }
@media (max-width: 640px) { #menu > .sheet.isSpin { margin: auto; } }

/* ================================================================== 9. moving between screens */
@keyframes sheetIn2 { from { opacity: 0; transform: translateY(.6rem); } }
#menu > .sheet { animation: sheetIn2 var(--t-2) var(--ease) both; }
#menu.still > .sheet { animation: none; }
#card.show > .sheet, #pause.show > .sheet { animation: sheetIn var(--t-3) var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  #menu > *, #menu .sheet, #card .sheet, #pause .sheet, #menu .sheet *, #card .sheet * { animation: none !important; transition: none !important; }
  #menu .sheet.isSkel::before { animation: none; }
  #menu .sheet.isSkel .meta::before { animation: cspin 1.6s linear infinite !important; }
  #menu .sheet.isSpin::after { animation: cspin 1.6s linear infinite !important; }
}

/* ================================================================== 10. real pictures of places (assets/places/, taken in the game) */
/* the Shop's property cards: the picture leads, then the name, a line and Look round; three in a row when there is room (js/money.js) */
#menu .mnyProps { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .8rem; margin: .4rem 0 .7rem; }
#menu .sheet .mnyProps button.mnyProp { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 0; overflow: hidden; border-radius: var(--r-lg);
  background: #fff; box-shadow: inset 0 0 0 1px var(--rule), var(--sh-1); transition: transform var(--t-2) var(--ease), box-shadow var(--t-2); }
#menu .sheet .mnyProps button.mnyProp:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--gold), var(--sh-2); }
#menu .sheet button.mnyProp img.mnyPic { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #b9d6ea; }
#menu .sheet .mnyProps button.mnyProp span { padding: .75rem .95rem .2rem; gap: .25rem; }
#menu .sheet .mnyProps button.mnyProp b { font: 800 var(--fs-lg)/1.2 var(--font-ui); }
#menu .sheet .mnyProps button.mnyProp small { font-size: var(--fs-sm); line-height: 1.38; }
#menu .sheet .mnyProps button.mnyProp i { align-self: flex-start; margin: .55rem .95rem .9rem; padding: .5rem .95rem; border-radius: var(--r-pill); }
/* a place on the home (js/home-hub.js): the picture fills its tile */
#menu .hubPlace .pic.photo { background: #b9d6ea; padding: 0; } #menu .hubPlace .pic.photo img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* ================================================================== 11. the phone's home: the section tabs, the chosen one open underneath (js/menu.js foldHome)
   Alex (24 Nov 2026): the tabs looked like the buttons under them. So they are a dark strip, as tabs are, with the open one in gold and a point down to its buttons; the buttons stay white. */
#menu .home:not(.wide) .menuBtns { gap: .55rem; margin-top: 1rem; }
#menu .home .foldTabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .2rem; padding: .25rem; border-radius: calc(var(--r-md) + .25rem); background: rgba(9,17,40,.86); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 .35rem 1rem rgba(5,10,28,.28); margin-bottom: .15rem; }
#menu .home .foldTabs.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } #menu .home .foldTabs.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#menu .home .menuBtns .foldTabs button.foldTab { position: relative; flex-direction: column; justify-content: center; gap: .22rem; min-height: 3.35rem; padding: .4rem .2rem .38rem; text-align: center;
  font: 800 .68rem/1.1 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; border-radius: var(--r-md); border: 0; transform: none; }
#menu .home .menuBtns .foldTabs .foldTab .ic { width: 1.5rem; height: 1.5rem; border-radius: .48rem; box-shadow: none; }
#menu .home .menuBtns .foldTabs .foldTab .ic svg { width: .95rem; height: .95rem; }
#menu .home .menuBtns .foldTabs button.foldTab.on { background: var(--gold); color: var(--navy); box-shadow: 0 .2rem .55rem rgba(0,0,0,.3); }
#menu .home .menuBtns .foldTabs button.foldTab.on::after { content: ''; position: absolute; left: 50%; bottom: -.5rem; margin-left: -.42rem; border: .42rem solid transparent; border-bottom: 0; border-top-color: var(--gold); }
#menu .home .menuBtns .foldTabs button.foldTab:not(.on) { background: transparent; color: rgba(255,255,255,.8); box-shadow: none; }
#menu .home .menuBtns .foldTabs button.foldTab:not(.on):hover { background: rgba(255,255,255,.08); color: #fff; }
#menu .home .menuBtns .foldTabs button.foldTab:not(.on) .ic { filter: saturate(.8); opacity: .8; }
#menu .home .menuBtns .foldTabs button.foldTab.news::before { content: ''; position: absolute; top: .3rem; right: .4rem; width: .56rem; height: .56rem; border-radius: 50%; background: #e5383b; box-shadow: 0 0 0 2px rgba(9,17,40,.9); }
#menu .home .menuBtns .foldTabs button.foldTab.on.news::before { display: none; }
#menu .home .foldPanels { display: grid; }
#menu .home .foldPanel { display: grid; gap: .55rem; padding: .1rem 0 0;
  animation: foldIn var(--t-2) var(--ease) both; }
#menu .home .foldPanel[hidden] { display: none; }
#menu .home .foldPanel .hubPlaces { margin: 0; }
@keyframes foldIn { from { opacity: 0; transform: translateY(-.4rem); } }
@media (prefers-reduced-motion: reduce) { #menu .home .foldPanel { animation: none; } }
/* the small tools (Updates, Settings, Feedback, Organise) in one row of four under the sections, so the whole home fits on a phone */
#menu .home:not(.wide) .menuBtns .pair.ghosts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .4rem; margin-top: .15rem; }
#menu .home:not(.wide) .menuBtns .pair.ghosts button.ghost { flex-direction: column; justify-content: center; gap: .25rem; min-height: 3.5rem; padding: .45rem .2rem .4rem; text-align: center; font-size: .72rem; line-height: 1.1; }
#menu .home:not(.wide) .menuBtns .pair.ghosts button.ghost .ic { width: 1.6rem; height: 1.6rem; border-radius: .5rem; }
#menu .home:not(.wide) .menuBtns .pair.ghosts button.ghost .ic svg { width: .95rem; height: .95rem; }
#menu .home:not(.wide) .menuBtns .pair.ghosts .nbadge { position: absolute; top: .2rem; right: .25rem; margin: 0; }
#menu .home:not(.wide) .menuBtns .pair.ghosts button.ghost { position: relative; }
#menu .home:not(.wide) .who { margin-top: .6rem; }

/* ================================================================== 12. screens */
/* the wallet: the balance as a navy card (like your place on the Money list), the Shop straight under it, how money is earned folded away (js/money.js) */
#menu .mnyWallet .mnyBal { margin: .5rem 0 .55rem; padding: 1rem 1rem 1.05rem; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--navy-2), var(--navy-3)); box-shadow: inset 0 0 0 1.5px rgba(255,216,77,.45), var(--sh-2); }
#menu .mnyWallet .mnyBal small { color: var(--gold-2); }
#menu .mnyWallet .mnyBal b { color: #fff; font-size: 2.9rem; letter-spacing: .01em; }
#menu .mnyWallet .mnyBal em { color: #c8d4ea; }
#menu .mnyWallet .mnyActs { margin: .2rem 0 .9rem; } #menu .mnyWallet .mnyActs button { margin-top: .4rem; }
#menu .mnyWallet .mnyStreak, #menu .mnyWallet .mnyLoan { border-radius: var(--r-md); }
#menu details.mnyHow { margin: 0 0 .8rem; border-radius: var(--r-md); background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px var(--rule); }
#menu details.mnyHow summary { cursor: pointer; list-style: none; padding: .75rem .95rem; font: 700 var(--fs-md) var(--font-ui); color: var(--navy); display: flex; justify-content: space-between; align-items: center; }
#menu details.mnyHow summary::-webkit-details-marker { display: none; }
#menu details.mnyHow summary::after { content: ''; width: .5rem; height: .5rem; border: solid var(--navy); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translateY(-2px); transition: transform var(--t-2); }
#menu details.mnyHow[open] summary::after { transform: rotate(225deg); }
#menu details.mnyHow .hint { margin: 0; padding: 0 .95rem .85rem; }
#menu .mnyLoanAmts { grid-template-columns: repeat(2, minmax(0, 1fr)); } @media (min-width: 640px) { #menu .mnyLoanAmts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
#menu .mnyLedger li { padding: .6rem .2rem; border-bottom-color: var(--rule); }
/* the profile's three buttons: one row */
#menu .row3 { grid-template-columns: repeat(auto-fit, minmax(6.4rem, 1fr)); }
#menu .row3 button { min-height: 3rem; padding: .55rem .5rem; font-size: var(--fs-sm); line-height: 1.2; }
/* the tournament list: Enter and Play again big enough for a thumb */
#menu .trow .tact { min-height: 2.5rem; padding: .5rem .95rem; border-radius: var(--r-pill); font-weight: 800; }
@media (pointer: coarse) { #menu .trow .tact { min-height: 2.75rem; } }

/* ================================================================== 13. the finish card: the moment a hole or a round ends (js/game.js draws it; js/scorecard.js counts the total up and throws the confetti) */
@keyframes resStamp { 0% { opacity: 0; transform: scale(1.5) rotate(-3deg); } 60% { opacity: 1; transform: scale(.96) rotate(.5deg); } 100% { transform: none; } }
@keyframes tileUp { from { opacity: 0; transform: translateY(.7rem); } }
@keyframes markPop { 0% { opacity: 0; transform: scale(.3); } 70% { opacity: 1; transform: scale(1.18); } 100% { transform: none; } }
@keyframes resGlow { 0% { text-shadow: 0 0 0 rgba(246,189,28,0); } 40% { text-shadow: 0 0 1.4rem rgba(246,189,28,.75); } 100% { text-shadow: 0 0 0 rgba(246,189,28,0); } }
#card.show .sheet h2.res { transform-origin: left center; animation: resStamp .6s var(--ease-back) .05s both; }
#card.show .sheet h2.res.res-eagle, #card.show .sheet h2.res.res-birdie { animation: resStamp .6s var(--ease-back) .05s both, resGlow 1.6s ease-out .5s both; }
#card.show .sheet .score > div { animation: tileUp .4s var(--ease) both; }
#card.show .sheet .score > div:nth-child(1) { animation-delay: .18s; } #card.show .sheet .score > div:nth-child(2) { animation-delay: .24s; } #card.show .sheet .score > div:nth-child(3) { animation-delay: .3s; }
#card.show .sheet .score .notation.under, #card.show .sheet .score .notation.over { animation: markPop .45s var(--ease-back) .42s both; }
#card.show .sheet .pgaCard { animation: tileUp .45s var(--ease) .32s both; }
#card.show .pgaCard .pcScore td .pcM { display: inline-grid; animation: markPop .38s var(--ease-back) both; }
#card.show .pgaCard .pcScore td:nth-child(2) .pcM { animation-delay: 0.50s; }
#card.show .pgaCard .pcScore td:nth-child(3) .pcM { animation-delay: 0.56s; }
#card.show .pgaCard .pcScore td:nth-child(4) .pcM { animation-delay: 0.62s; }
#card.show .pgaCard .pcScore td:nth-child(5) .pcM { animation-delay: 0.68s; }
#card.show .pgaCard .pcScore td:nth-child(6) .pcM { animation-delay: 0.74s; }
#card.show .pgaCard .pcScore td:nth-child(7) .pcM { animation-delay: 0.80s; }
#card.show .pgaCard .pcScore td:nth-child(8) .pcM { animation-delay: 0.86s; }
#card.show .pgaCard .pcScore td:nth-child(9) .pcM { animation-delay: 0.92s; }
#card.show .pgaCard .pcScore td:nth-child(10) .pcM { animation-delay: 0.98s; }
#card.show .pgaCard .pcScore td:nth-child(11) .pcM { animation-delay: 1.04s; }
#card.show .pgaCard .pcBack .pcScore td .pcM { animation-delay: 1.05s; }
#card.show #roundMoney { animation: tileUp .45s var(--ease) .9s both; }
/* the confetti: gold, white, green and navy, thrown up from the middle of the card and falling away (only under par, an eagle or a hole in one) */
#card .fxBurst { position: fixed; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
#card .fxBurst i { position: absolute; left: 50%; top: 42%; width: var(--w); height: calc(var(--w) * .45); border-radius: 1px; background: var(--c); opacity: 0;
  animation: confetti 2.1s cubic-bezier(.15,.7,.35,1) var(--d) forwards; box-shadow: 0 0 1px rgba(0,0,0,.15); }
@keyframes confetti { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.4) rotate(0); } 30% { opacity: 1; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(calc(var(--r) * .4)); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x) * 1.3), calc(-50% + var(--y) + 70vmin)) rotate(var(--r)); } }
@media (prefers-reduced-motion: reduce) { #card .fxBurst { display: none; } #card.show .sheet h2.res, #card.show .sheet .score > div, #card.show .pgaCard, #card.show .pgaCard .pcM, #card.show #roundMoney { animation: none !important; } }
/* inside a section: the buttons as one grid of small tiles (three across, or two by two), so a whole section is one or two short rows */
#menu .home .foldGrid { display: grid; gap: .45rem; } #menu .home .foldGrid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } #menu .home .foldGrid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } #menu .home .foldGrid.c1 { grid-template-columns: 1fr; }
#menu .home .menuBtns .foldGrid.c3 button { flex-direction: column; justify-content: center; gap: .3rem; min-height: 4rem; padding: .45rem .3rem .4rem; text-align: center; font-size: .8rem; line-height: 1.15; border-radius: var(--r-md); }
#menu .home .menuBtns .foldGrid.c3 button .ic { width: 1.9rem; height: 1.9rem; border-radius: .62rem; } #menu .home .menuBtns .foldGrid.c3 button .ic svg { width: 1.1rem; height: 1.1rem; }
#menu .home .menuBtns .foldGrid.c2 button { flex-direction: row; justify-content: flex-start; gap: .55rem; min-height: 3.3rem; padding: .5rem .6rem; text-align: left; font-size: .9rem; border-radius: var(--r-md); }
#menu .home .menuBtns .foldGrid.c2 button .ic { width: 2.1rem; height: 2.1rem; border-radius: .7rem; }
#menu .home .menuBtns .foldGrid button .nbadge { margin-left: .2rem; }
#menu .home .menuBtns .foldPanel > button.primary { padding-top: .7rem; padding-bottom: .7rem; }
/* the logo a little smaller on a phone, so the home fits without a scroll */
@media (max-width: 640px) {
  #menu .home:not(.wide) .event.big { gap: .85rem; padding: .6rem 1.25rem .6rem 1rem; }
  #menu .home:not(.wide) .event.big img.pma { height: min(4.3rem, 14vw); } #menu .home:not(.wide) .event.big img.wm { height: min(3.5rem, 11.3vw); }
  #menu .home:not(.wide) .sub { margin-top: .6rem; }
}
/* Your places in its section: wider, shorter pictures and a slim market line (the tiles are js/home-hub.js's) */
#menu .home:not(.wide) .foldPanel .hubPlace .pic.photo { aspect-ratio: 16 / 9; }
#menu .home:not(.wide) .foldPanel .menuBtns button.hubPlace, #menu .home:not(.wide) .foldPanel button.hubPlace { padding: .35rem .35rem .45rem; gap: .25rem; }
#menu .home:not(.wide) .foldPanel .hubPlaces .hubMarket { padding: .35rem .6rem; font-size: .74rem; line-height: 1.25; }
#menu .home .foldGrid > [hidden] { display: none !important; }
#menu .home .foldPanel > .who { margin: .1rem 0 0; font-size: .8rem; }
/* (the wallet's balance is already in the strip at the top of the home: the tile doesn't repeat it) */
#menu .home:has(.hubStrip:not([hidden])) .foldGrid .mnyChip { display: none; }
#menu .sheet .setWho { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: 1.3rem; padding: .7rem .9rem; border-radius: var(--r-md); background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px var(--rule); font: 600 var(--fs-sm) var(--font-ui); color: var(--text-2); }
#menu .sheet .setWho b { color: var(--navy); } #menu .sheet .setWho button { width: auto; margin: 0; padding: .5rem .9rem; font-size: var(--fs-sm); }
/* the last card of a round: the scorecard, what the round earned, then the buttons; the last hole's shot-by-shot table goes under them */
#card > .sheet:has(> .pgaCard) { display: flex; flex-direction: column; }
#card > .sheet:has(> .pgaCard) > * { flex: none; }
#card > .sheet:has(> .pgaCard) > table { order: 5; margin-top: 1.1rem; opacity: .85; }
/* the phone's home starts at the top, so the logo, the strip, the Tour card, the daily cards and the section buttons never move: only what is under the buttons grows or shrinks (Alex, 24 Nov) */
#menu > .home:not(.wide) { margin: 0 auto auto; }
