/* PostUp web UI: design tokens. One set of names, two themes.
 *
 *   light  the default: Augusta green on ivory (the league app)
 *   dark   <html data-pu-theme="dark">: the night skin (tournaments, Plan your
 *          round, Play a round and the pages built on tournament-app/tour.css)
 *
 * A page maps its own variable names onto these, e.g. :root{--bg:var(--pu-bg)},
 * so a colour is decided here once. Values are the ones those surfaces already
 * used, unchanged. Moves to web/ui/ in roadmap step 6.
 */
:root{
  --pu-bg:#fbf8ef;              /* the page */
  --pu-panel:#ffffff;           /* cards and sheets */
  --pu-raised:#f7f2e6;          /* a panel on a panel */
  --pu-inset:#f3eddc;           /* wells, inputs */
  --pu-line:rgba(4,106,56,.17);
  --pu-line-strong:rgba(4,106,56,.30);
  --pu-hair:rgba(4,106,56,.10);   /* a divider between items in a list: thin, inset, never a box (2026-10-20) */
  --pu-ink:#122318;
  --pu-muted:#3c5145;
  --pu-muted-2:#48604f;
  --pu-accent:#7a5a12;          /* gold, as ink */
  --pu-on-accent:#fbf8ef;
  --pu-green:#046a38;
  --pu-red:#b3352a;
  --pu-blue:#2f5f8a;
  --pu-win:#2e7d44; --pu-halve:#a97f22; --pu-bad:#b3352a;
  --pu-shadow:0 12px 34px rgba(3,58,31,.12);
  --pu-font-sans:'Inter',system-ui,-apple-system,sans-serif;
  --pu-font-mono:'Roboto Mono',ui-monospace,Menlo,monospace;
  --pu-font-display:'Playfair Display',Georgia,'Times New Roman',serif;
  --pu-font-label:'EB Garamond',Georgia,serif;
}
/* GENERATED from design/tokens.json by tools/build/make-app-tokens.mjs: the night theme. Do not edit by hand. */
:root[data-pu-theme="dark"], .pu-theme-dark{
  --pu-bg:#07130d;
  --pu-panel:rgba(255,255,255,0.065);
  --pu-raised:rgba(255,255,255,0.11);
  --pu-inset:#07130d;
  --pu-line:rgba(255,255,255,0.07);
  --pu-line-strong:rgba(255,255,255,0.14);
  --pu-hair:rgba(255,255,255,0.07);
  --pu-ink:#ffffff;
  --pu-muted:#a3b8ab;
  --pu-muted-2:#a3b8ab;
  --pu-accent:#E8C877;
  --pu-on-accent:#13241a;
  --pu-green:#7fc79a;
  --pu-red:#ff9c8f;
  --pu-blue:#8fbce8;
  --pu-win:#7fc79a;
  --pu-halve:#E8C877;
  --pu-bad:#ff9c8f;
  --pu-shadow:none;
  --pu-soft:#cfdbd3;
  --pu-surface-1:rgba(255,255,255,0.065);
  --pu-surface-2:rgba(255,255,255,0.11);
  --pu-selected:rgba(255,255,255,0.14);
  --pu-sheet:#0f2118;
  --pu-dialog:#14271d;
  --pu-toast:#1d3528;
  --pu-bar:rgba(4,10,7,0.9);
  --pu-scrim:rgba(2,7,4,0.62);
  --pu-scrim-dialog:rgba(2,7,4,0.74);
  --pu-coral:#ff9c8f;
  --pu-pink:#e8a4b4;
  --pu-tab-active:#8fd3a6;
  --pu-gold-grad:linear-gradient(180deg,#F3DC9C,#E2BE66);
  --pu-app-bg:linear-gradient(180deg,#123024 0%,#0a1b13 34%,#050c08 72%,#030705 100%);
  --pu-image-scrim:linear-gradient(180deg,rgba(5,12,8,.5) 0%,rgba(5,12,8,0) 34%,rgba(5,12,8,.1) 52%,rgba(5,12,8,.92) 100%);
  --pu-chip-on-image:rgba(0,0,0,0.38);
}
/* end GENERATED */

/* Lists without boxes (2026-10-20, Matt: "looks that aren't as defined 'cards' to break each section … more subtle
   dividers that aren't full width, similar to how X does it … this is the styling I want across the site over the
   containers with borders"). Items sit on the page; a hairline between them starts where the text starts
   (--pu-sep-left) and stops short of the edge (--pu-sep-right). Use on any stack of items:
     <div class="pu-sep" style="--pu-sep-left:64px"> <div>…</div> <div>…</div> </div> */
.pu-sep>*{position:relative}
.pu-sep>*+*::before{content:'';position:absolute;top:0;left:var(--pu-sep-left,18px);right:var(--pu-sep-right,18px);height:1px;background:var(--pu-hair);pointer-events:none}

/* The Back button at the top left of every page (2026-10-30, Matt picked design 5b "Labeled pill", the same as the
   app's src/ui/BackPill.js): a 44px frosted-glass pill, a gold chevron, and the name of the page it goes back to, cut
   short with … past about 14 characters. Add the class to the page's own back link and drop its "‹ ":
     <a class="back pu-back" href="/start/">Home</a>
   It wins over the page's own .back/.bk styling (hence !important) and takes the theme's ink and gold, so it reads on
   the light skin and the night skin alike; a dark page without data-pu-theme sets --pu-back-ink and --pu-back-gold.
   Empty, it is a round 44px button with only the chevron. */
.pu-back{display:inline-block!important;vertical-align:middle;height:44px!important;box-sizing:border-box!important;max-width:170px!important;
  margin:0;padding:0 16px 0 10px!important;border-radius:999px!important;flex:none!important;cursor:pointer;
  font:700 15px/42px var(--pu-font-sans)!important;text-overflow:ellipsis!important;letter-spacing:0!important;text-transform:none!important;text-decoration:none!important;white-space:nowrap!important;overflow:hidden!important;
  color:var(--pu-back-ink,var(--pu-ink,#fff))!important;background:color-mix(in srgb,currentColor 10%,transparent)!important;border:1px solid color-mix(in srgb,currentColor 16%,transparent)!important;
  box-shadow:inset 0 1px 0 color-mix(in srgb,currentColor 18%,transparent)!important;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);
  transition:transform .12s;-webkit-tap-highlight-color:transparent}
.pu-back:active{transform:scale(.95)}
.pu-back::before{content:'';display:inline-block;vertical-align:-4px;margin-right:4px;width:20px;height:20px;background:var(--pu-back-gold,var(--pu-accent,#e8c877));
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E") center/contain no-repeat}
.pu-back:empty{width:44px;padding:0!important;text-align:center}
.pu-back:empty::before{margin-right:0}
