/* ============================================================
   style.css — Puttin Party v5
   Apple-style: clean, spacious, smooth, light.
   ============================================================
   BRAND COLORS (from logo):
     --brand-dark    #1B4D1E   dark green
     --brand-mid     #2D6E32   mid green
     --brand-turf    #4A8C2A   bright turf
     --brand-bright  #6DB33F   lime accent
     --brand-pale    #EBF5E1   light tint
     --brand-red     #E8232A   flag red
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --brand-dark:   #1B4D1E;
  --brand-mid:    #2D6E32;
  --brand-turf:   #4A8C2A;
  --brand-bright: #6DB33F;
  --brand-pale:   #EBF5E1;
  --brand-red:    #E8232A;
  --brand-red-dk: #C01C22;
  --brand-red-pl: #FDECEA;

  --white:        #FFFFFF;
  --off-white:    #F5F5F7;   /* Apple's exact off-white */
  --gray-50:      #F2F2F2;
  --gray-100:     #E8E8ED;
  --gray-200:     #D2D2D7;
  --gray-400:     #86868B;   /* Apple secondary text */
  --gray-600:     #424245;
  --gray-900:     #1D1D1F;   /* Apple primary text */

  --score-ace:    #9B59B6;
  --score-eagle:  #1E90FF;
  --score-birdie: #27AE60;
  --score-par:    #3D3D3D;
  --score-bogey:  #E07B2A;
  --score-over:   #D93B3B;

  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --header-h:     60px;
  --nav-h:        62px;
  --r-sm:         8px;
  --r-md:         14px;
  --r-lg:         20px;
  --r-xl:         28px;
  --r-2xl:        40px;
  --page-max:     900px;
  --page-pad:     clamp(1rem, 4vw, 2rem);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--gray-900);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
a { color: var(--brand-turf); text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font); }
code { font-family: 'SF Mono', 'Fira Code', monospace; background: var(--gray-100); padding: 2px 6px; border-radius: 4px; font-size: .85em; }
.hidden { display: none !important; }

/* ── Page transitions ─────────────────────────────────────── */
.page { min-height: calc(100vh - var(--header-h)); padding-bottom: calc(var(--nav-h) + 2rem); }
.page-inner { max-width: var(--page-max); margin: 0 auto; padding: 1.5rem var(--page-pad); }
.page-enter { animation: pageIn .3s ease forwards; }
@keyframes pageIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

/* ── Scroll animations ────────────────────────────────────── */
/* Animations disabled until content confirmed working */
.scroll-animate { opacity: 1; transform: none; }
.scroll-animate.is-visible { opacity: 1; transform: none; }

/* ── Toast ────────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: calc(var(--nav-h) + 12px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(29,29,31,.92); color: #fff; backdrop-filter: blur(12px);
  padding: .55rem 1.25rem; border-radius: 99px;
  font-size: .85rem; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity .22s, transform .22s;
  z-index: 999; white-space: nowrap;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ═══════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════ */
.app-header {
  position: sticky; top: 0; z-index: 200;
  height: var(--header-h);
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--page-pad);
  max-width: 100%;
  transition: border-color .25s, box-shadow .25s;
}
.app-header.header-scrolled {
  border-bottom-color: var(--gray-100);
  box-shadow: 0 1px 0 var(--gray-100);
}
.app-logo {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--gray-900);
}
.header-logo-img  { width: 32px; height: 32px; object-fit: contain; }
.header-logo-text { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; color: var(--brand-dark); }
.header-nav       { display: flex; align-items: center; gap: .25rem; }
.header-nav-link  { padding: .45rem .8rem; border-radius: var(--r-sm); font-size: .88rem; font-weight: 500; color: var(--gray-600); transition: color .2s, background .2s; }
.header-nav-link:hover { color: var(--brand-turf); background: var(--brand-pale); }
.header-book-btn  { margin-left: .5rem; }
.hamburger        { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span   { display: block; width: 22px; height: 2px; background: var(--gray-900); border-radius: 2px; transition: transform .25s, opacity .25s; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 190;
  background: rgba(255,255,255,.96); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-100);
  padding: .75rem var(--page-pad) 1rem;
  display: flex; flex-direction: column; gap: .25rem;
  animation: menuSlide .22s ease;
}
@keyframes menuSlide { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }
.mm-link { padding: .75rem 1rem; border-radius: var(--r-md); font-size: 1rem; font-weight: 500; color: var(--gray-900); transition: background .15s; }
.mm-link:hover { background: var(--gray-50); }

/* ═══════════════════════════════════════════════════════════
   BOTTOM NAV
═══════════════════════════════════════════════════════════ */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 200;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--gray-100);
  display: flex;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  border: none; background: none; cursor: pointer;
  color: var(--gray-400); font-size: .62rem; font-weight: 500; padding: 6px 2px;
  transition: color .18s;
  font-family: var(--font);
}
.nav-icon { width: 22px; height: 22px; transition: transform .18s; }
.nav-item.nav-active { color: var(--brand-turf); }
.nav-item.nav-active .nav-icon { transform: scale(1.1); }
.nav-item:hover { color: var(--brand-turf); }

/* ═══════════════════════════════════════════════════════════
   HOME — HERO
═══════════════════════════════════════════════════════════ */
#page-home { background: var(--white); }

.home-hero {
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  padding: 4rem var(--page-pad) 3rem;
  max-width: 1100px; margin: 0 auto;
}
.hero-content { flex: 1; min-width: 280px; max-width: 540px; }
.hero-eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand-turf);
  margin-bottom: .875rem;
}
.hero-heading {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 700; line-height: 1.05;
  color: var(--gray-900);
  margin-bottom: 1.25rem;
}
.hero-heading-accent { color: var(--brand-turf); }
.hero-body {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--gray-400); line-height: 1.7;
  max-width: 420px; margin-bottom: 2rem;
}
.hero-ctas { display: flex; gap: .75rem; flex-wrap: wrap; }

.hero-visual { flex: 1; min-width: 220px; max-width: 380px; display: flex; align-items: center; justify-content: center; }
.hero-logo-card {
  width: min(320px, 80vw); aspect-ratio: 1;
  background: var(--off-white);
  border-radius: var(--r-2xl);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  transition: transform .3s ease;
}
.hero-logo-card:hover { transform: scale(1.025) rotate(1deg); }
.hero-logo-img { width: 100%; height: 100%; object-fit: contain; }
.hero-logo-fallback { font-size: 6rem; }

/* ── Stats strip ─────────────────────────────────────────── */
.home-stats-strip {
  background: var(--off-white);
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 0; padding: 2rem var(--page-pad);
}
.hss-item { text-align: center; padding: .75rem 2rem; }
.hss-num  { font-size: 1.75rem; font-weight: 700; color: var(--brand-dark); letter-spacing: -.03em; }
.hss-lbl  { font-size: .78rem; color: var(--gray-400); margin-top: 2px; text-transform: uppercase; letter-spacing: .06em; }
.hss-divider { width: 1px; height: 36px; background: var(--gray-200); flex-shrink: 0; }

/* ── Feature cards ───────────────────────────────────────── */
.home-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem; padding-top: 3rem; padding-bottom: 3rem;
}
.feature-card {
  background: var(--off-white); border-radius: var(--r-xl);
  padding: 1.75rem 1.5rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,.08); }
.fc-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--brand-pale);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-turf); margin-bottom: 1rem;
}
.fc-icon svg { width: 22px; height: 22px; }
.fc-title { font-size: 1rem; font-weight: 600; color: var(--gray-900); margin-bottom: .4rem; }
.fc-body  { font-size: .875rem; color: var(--gray-400); line-height: 1.6; }

/* ── Action grid ─────────────────────────────────────────── */
.home-actions { padding-top: 0; padding-bottom: 4rem; }
.section-heading { font-size: 1.75rem; font-weight: 700; color: var(--gray-900); margin-bottom: 1.25rem; }
.action-grid { display: flex; flex-direction: column; gap: .6rem; }
.action-tile {
  display: flex; align-items: center; gap: 1rem;
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--r-lg); padding: 1rem 1.25rem;
  cursor: pointer; text-align: left;
  transition: background .18s, transform .18s, box-shadow .18s;
  font-family: var(--font);
}
.action-tile:hover { background: var(--off-white); transform: translateX(3px); box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.at-icon { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--brand-pale); display: flex; align-items: center; justify-content: center; color: var(--brand-turf); flex-shrink: 0; }
.at-icon svg { width: 20px; height: 20px; }
.at-body  { flex: 1; }
.at-title { font-size: .95rem; font-weight: 600; color: var(--gray-900); }
.at-sub   { font-size: .78rem; color: var(--gray-400); margin-top: 1px; }
.at-arrow { color: var(--gray-200); width: 16px; height: 16px; flex-shrink: 0; }

/* ── Resume banner ───────────────────────────────────────── */
.resume-banner {
  width: 100%; display: flex; align-items: center; gap: .875rem;
  background: var(--brand-pale); border: 1.5px solid var(--brand-bright);
  border-radius: var(--r-lg); padding: .875rem 1.25rem;
  cursor: pointer; font-family: var(--font); margin-bottom: 1.25rem;
  transition: background .2s;
}
.resume-banner:hover { background: var(--brand-bright); color: white; }
.resume-banner:hover .resume-icon, .resume-banner:hover svg { stroke: white; }
.resume-icon { width: 18px; height: 18px; color: var(--brand-turf); flex-shrink: 0; }
.resume-text { flex: 1; font-size: .93rem; font-weight: 600; color: var(--brand-dark); }
.resume-banner:hover .resume-text { color: white; }

/* ── Footer ──────────────────────────────────────────────── */
.home-footer {
  background: var(--off-white); border-top: 1px solid var(--gray-100);
  padding: 3rem var(--page-pad) calc(3rem + env(safe-area-inset-bottom)); text-align: center;
  position: relative;
}
.footer-logo    { width: 56px; height: 56px; object-fit: contain; margin: 0 auto .75rem; }
.footer-tagline { font-size: .9rem; font-weight: 500; color: var(--gray-600); }
.footer-location { font-size: .8rem; color: var(--gray-400); margin-top: .35rem; }
.staff-ghost-link {
  position: absolute; bottom: 1.25rem; right: 1.5rem;
  background: none; border: none; cursor: pointer;
  color: var(--gray-200); padding: .5rem;
  transition: color .2s;
}
.staff-ghost-link:hover { color: var(--gray-400); }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .7rem 1.4rem; border-radius: var(--r-md);
  font-size: .93rem; font-family: var(--font); font-weight: 600;
  cursor: pointer; border: none;
  transition: transform .15s, box-shadow .15s, background .18s, opacity .18s;
  letter-spacing: -.01em;
}
.btn:hover  { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.btn:active { transform: none; box-shadow: none; opacity: .85; }
.btn-primary   { background: var(--brand-turf); color: white; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: var(--brand-pale); color: var(--brand-dark); }
.btn-secondary:hover { background: var(--brand-bright); color: white; }
.btn-ghost     { background: transparent; color: var(--gray-600); border: 1px solid var(--gray-200); }
.btn-ghost:hover { background: var(--gray-50); color: var(--gray-900); }
.btn-ghost-dark { background: transparent; color: var(--gray-900); border: 1.5px solid var(--gray-200); }
.btn-ghost-dark:hover { background: var(--gray-50); }
.btn-red       { background: var(--brand-red); color: white; }
.btn-red:hover { background: var(--brand-red-dk); }
.btn-danger    { background: var(--brand-red-pl); color: var(--brand-red); border: 1px solid #f5c6c6; }
.btn-danger:hover { background: var(--brand-red); color: white; }
.btn-full  { width: 100%; }
.btn-sm    { padding: .4rem .875rem; font-size: .82rem; border-radius: var(--r-sm); }
.btn-lg    { padding: .875rem 1.75rem; font-size: 1rem; border-radius: var(--r-lg); }
.back-btn  { margin-bottom: 1rem; }

/* ═══════════════════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-size: .78rem; font-weight: 600;
  color: var(--gray-600); margin-bottom: .35rem;
  text-transform: uppercase; letter-spacing: .05em;
}
.field-hint  { font-size:.72rem; font-weight:400; color:var(--gray-400); text-transform:none; letter-spacing:0; display:block; margin-top:2px; }
.req         { color: var(--brand-red); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid var(--gray-200); border-radius: var(--r-md);
  font-size: 1rem; font-family: var(--font);
  background: var(--white); color: var(--gray-900);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--brand-turf);
  box-shadow: 0 0 0 3px rgba(74,140,42,.12);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .875rem; }
.form-error { font-size: .83rem; color: var(--brand-red); min-height: 1.2em; margin: .4rem 0; }
.password-toggle {
  position: absolute; right: .875rem; bottom: .85rem;
  background: none; border: none; font-size: .78rem; font-weight: 600;
  color: var(--brand-turf); cursor: pointer; font-family: var(--font);
}
@keyframes shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-5px)} 40%,80%{transform:translateX(5px)} }
.shake { animation: shake .4s ease; }

/* ═══════════════════════════════════════════════════════════
   MODAL (staff login)
═══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 500; padding: 1rem;
}
.modal-box {
  background: var(--white); border-radius: var(--r-xl);
  padding: 2.25rem 1.875rem;
  width: 100%; max-width: 360px;
  box-shadow: 0 24px 80px rgba(0,0,0,.2);
  animation: modalIn .25s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modalIn { from{opacity:0;transform:scale(.92) translateY(12px)} to{opacity:1;transform:none} }
.modal-logo { width: 64px; height: 64px; margin: 0 auto 1rem; }
.modal-logo img { width: 100%; height: 100%; object-fit: contain; }
.modal-title { font-size: 1.4rem; text-align: center; color: var(--brand-dark); margin-bottom: .35rem; }
.modal-desc  { font-size: .85rem; color: var(--gray-400); text-align: center; margin-bottom: 1.25rem; }
.modal-actions { display: flex; gap: .6rem; margin-top: 1rem; }

/* ═══════════════════════════════════════════════════════════
   NEW ROUND PAGE
═══════════════════════════════════════════════════════════ */
.nr-card { background: var(--white); }
.nr-title { font-size: 1.6rem; font-weight: 700; color: var(--gray-900); margin-bottom: 1.5rem; }
.nr-step  { margin-bottom: 1.75rem; }
.nr-step-label { display: flex; align-items: center; gap: .6rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-400); margin-bottom: .875rem; }
.nr-step-num { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-turf); color: white; font-size: .7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nr-input { width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--gray-200); border-radius: var(--r-md); font-size: 1rem; font-family: var(--font); background: var(--white); outline: none; transition: border-color .2s, box-shadow .2s; }
.nr-input:focus { border-color: var(--brand-turf); box-shadow: 0 0 0 3px rgba(74,140,42,.12); }
.nr-error { font-size: .83rem; color: var(--brand-red); min-height: 1.2em; margin-bottom: .75rem; }
.nr-empty { text-align: center; padding: 3rem 1rem; color: var(--gray-400); }
.nr-empty-icon { width: 48px; height: 48px; margin: 0 auto .875rem; color: var(--gray-200); }
.nr-empty-sub { font-size: .82rem; margin-top: .5rem; line-height: 1.6; }

/* Event select cards */
.event-select-grid { display: flex; flex-direction: column; gap: .5rem; }
.event-select-card {
  display: flex; align-items: center; gap: .875rem;
  padding: .875rem 1rem; border-radius: var(--r-md);
  border: 1.5px solid var(--gray-200); background: var(--white);
  cursor: pointer; transition: border-color .18s, background .18s;
}
.event-select-card input[type=radio] { display: none; }
.event-select-card:hover { border-color: var(--brand-bright); background: var(--brand-pale); }
.event-select-card.esc-selected { border-color: var(--brand-turf); background: var(--brand-pale); }
.esc-body  { flex: 1; }
.esc-name  { font-size: .95rem; font-weight: 600; color: var(--gray-900); }
.esc-meta  { font-size: .78rem; color: var(--gray-400); margin-top: 2px; }
.esc-status { font-size: .72rem; font-weight: 600; margin-top: 3px; }
.es-active   .esc-status { color: var(--brand-turf); }
.es-upcoming .esc-status { color: var(--gray-400); }
.esc-check { width: 20px; height: 20px; color: transparent; flex-shrink: 0; }
.event-select-card.esc-selected .esc-check { color: var(--brand-turf); }
.esc-check svg { width: 20px; height: 20px; }

/* Anonymous toggle */
.anon-notice { display: flex; gap: .75rem; align-items: flex-start; background: #FFF9E6; border: 1px solid #F4D978; border-radius: var(--r-md); padding: .875rem 1rem; margin-bottom: 1rem; }
.anon-notice-icon { color: #B8860B; flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; }
.anon-notice-text { font-size: .82rem; color: var(--gray-700); line-height: 1.6; }
.player-row { background: var(--off-white); border-radius: var(--r-md); padding: .875rem 1rem; margin-bottom: .6rem; }
.player-row-top { display: flex; gap: .5rem; align-items: center; margin-bottom: .6rem; }
.player-row-top .nr-input { margin: 0; }
.btn-remove-player { width: 32px; height: 32px; border: none; background: var(--gray-100); color: var(--gray-400); border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .18s; }
.btn-remove-player svg { width: 14px; height: 14px; }
.btn-remove-player:hover { background: var(--brand-red); color: white; }
.anon-toggle { display: flex; align-items: center; gap: .6rem; cursor: pointer; user-select: none; }
.anon-checkbox { display: none; }
.anon-toggle-track { width: 36px; height: 20px; border-radius: 99px; background: var(--gray-200); position: relative; transition: background .2s; flex-shrink: 0; }
.anon-toggle-track::after { content: ''; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: white; transition: transform .2s; }
.anon-checkbox:checked + .anon-toggle-track { background: var(--brand-turf); }
.anon-checkbox:checked + .anon-toggle-track::after { transform: translateX(16px); }
.anon-toggle-label { font-size: .8rem; color: var(--gray-600); }
.anon-toggle-label small { color: var(--gray-400); }
.btn-add-player { display: flex; align-items: center; gap: .4rem; margin-top: .25rem; }
.btn-add-player svg { width: 14px; height: 14px; }

/* ═══════════════════════════════════════════════════════════
   SCORECARD
═══════════════════════════════════════════════════════════ */
.sc-header { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.sc-title  { font-size: 1.3rem; font-weight: 700; color: var(--gray-900); }
.sc-meta   { font-size: .78rem; color: var(--gray-400); display: block; margin-top: 3px; }
.sc-header-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.qr-panel  { background: var(--off-white); border-radius: var(--r-lg); border: 1.5px solid var(--gray-100); padding: 1.25rem; text-align: center; margin-bottom: 1rem; }
.qr-label  { font-size: .82rem; color: var(--gray-400); margin-bottom: .75rem; }
.qr-box    { display: flex; justify-content: center; margin-bottom: .75rem; }
.qr-url    { font-size: .68rem; color: var(--gray-300); word-break: break-all; margin-bottom: .6rem; font-family: monospace; }
.sc-wrap   { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--gray-100); background: var(--white); margin-bottom: 1rem; }
.sc-table  { width: 100%; border-collapse: collapse; min-width: 400px; }
.sc-table th { background: var(--brand-dark); color: white; padding: .6rem .75rem; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; text-align: center; white-space: nowrap; }
.th-hole   { text-align: left; min-width: 140px; }
.th-par    { min-width: 44px; }
.th-player { min-width: 80px; }
.sc-table td { padding: .45rem .75rem; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.hole-row:hover { background: var(--off-white); }
.td-hole   { text-align: left; }
.hole-num  { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-turf); color: white; font-size: .68rem; font-weight: 700; margin-right: 6px; }
.hole-name { font-size: .85rem; font-weight: 500; }
.td-par    { text-align: center; font-weight: 700; color: var(--brand-dark); }
.td-score  { text-align: center; padding: .3rem .35rem; }
.score-input { width: 52px; height: 38px; text-align: center; border: 2px solid var(--gray-200); border-radius: var(--r-sm); font-size: 1rem; font-family: var(--font); font-weight: 600; background: var(--off-white); outline: none; transition: border-color .18s, background .18s; -moz-appearance: textfield; }
.score-input::-webkit-inner-spin-button, .score-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.score-input:focus { border-color: var(--brand-turf); background: white; box-shadow: 0 0 0 3px rgba(74,140,42,.12); }
.score-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 28px; border-radius: 6px; font-size: .88rem; font-weight: 600; padding: 0 .4rem; background: var(--gray-100); color: var(--gray-600); }
.score-ace    { background:#F5E6FF !important; color:var(--score-ace) !important; border-color:var(--score-ace) !important; }
.score-eagle  { background:#E8F4FF !important; color:var(--score-eagle) !important; border-color:var(--score-eagle) !important; }
.score-birdie { background:#E8F8EE !important; color:var(--score-birdie) !important; border-color:var(--score-birdie) !important; }
.score-par    { background:#F0F4F8 !important; color:var(--score-par) !important; border-color:var(--gray-200) !important; }
.score-bogey  { background:#FFF4E8 !important; color:var(--score-bogey) !important; border-color:var(--score-bogey) !important; }
.score-over   { background:#FFE8E8 !important; color:var(--score-over) !important; border-color:var(--score-over) !important; }
.totals-row   { background: var(--brand-pale); }
.td-total-label { font-weight: 700; font-size: .78rem; color: var(--brand-dark); text-transform: uppercase; padding-left: .75rem; }
.td-total     { text-align: center; padding: .6rem .5rem; }
.total-num    { display: block; font-size: 1.2rem; font-weight: 700; color: var(--brand-dark); }
.total-vs     { display: block; font-size: .7rem; color: var(--gray-400); }
.sc-actions   { display: flex; gap: .75rem; flex-wrap: wrap; padding-top: .5rem; }
.anon-note    { font-size: .75rem; color: var(--gray-400); margin: .5rem 0 1rem; font-style: italic; }

/* ═══════════════════════════════════════════════════════════
   EVENT SCORES
═══════════════════════════════════════════════════════════ */
.page-title  { font-size: 1.6rem; font-weight: 700; color: var(--gray-900); margin-bottom: 1.25rem; letter-spacing: -.02em; }
.event-list  { display: flex; flex-direction: column; gap: .6rem; }
.event-list-card { display: flex; align-items: center; gap: .875rem; padding: 1rem 1.1rem; background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--r-lg); cursor: pointer; font-family: var(--font); text-align: left; transition: background .15s, transform .15s; }
.event-list-card:hover { background: var(--off-white); transform: translateX(3px); }
.elc-body  { flex: 1; }
.elc-name  { font-size: .98rem; font-weight: 600; color: var(--gray-900); }
.elc-meta  { font-size: .78rem; color: var(--gray-400); margin-top: 3px; }
.elc-right { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.elc-status { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; letter-spacing: .03em; }
.evs-active   .elc-status, .elc-status.evs-active   { background: #E8F8EE; color: var(--score-birdie); }
.evs-upcoming .elc-status, .elc-status.evs-upcoming { background: var(--gray-100); color: var(--gray-400); }
.evs-locked   .elc-status, .elc-status.evs-locked   { background: var(--off-white); color: var(--gray-400); }
.elc-arrow { color: var(--gray-200); }
.ed-header { margin-bottom: 1.25rem; }
.ed-title-row { display: flex; align-items: center; gap: .75rem; margin: .5rem 0 .35rem; flex-wrap: wrap; }
.ed-meta   { font-size: .8rem; color: var(--gray-400); }
.ed-back   { margin-bottom: .75rem; display: inline-flex; align-items: center; gap: .35rem; }
.ed-section { margin-bottom: 1.75rem; }
.ed-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .875rem; }
.ed-section-title  { font-size: 1.05rem; font-weight: 700; color: var(--gray-900); }
.ed-empty  { font-size: .85rem; color: var(--gray-400); padding: 1.25rem 0; }
.event-locked-notice { display: flex; align-items: center; gap: .6rem; background: var(--off-white); border: 1px solid var(--gray-100); border-radius: var(--r-md); padding: .75rem 1rem; font-size: .85rem; color: var(--gray-600); margin-bottom: 1rem; }
.round-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--r-md); padding: .875rem 1rem; cursor: pointer; transition: background .15s; margin-bottom: .5rem; }
.round-card:hover { background: var(--off-white); }
.rc-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: .5rem; }
.rc-name   { font-size: .93rem; font-weight: 600; }
.rc-meta   { font-size: .72rem; color: var(--gray-400); margin-top: 2px; }
.rc-players { display: flex; flex-wrap: wrap; gap: .4rem; }
.rc-player  { font-size: .78rem; color: var(--gray-600); background: var(--gray-100); border-radius: 99px; padding: 2px 9px; }
.par-lb     { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--r-lg); overflow: hidden; }
.par-lb-row { display: flex; align-items: center; gap: .875rem; padding: .875rem 1.1rem; border-bottom: 1px solid var(--gray-100); }
.par-lb-row:last-child { border-bottom: none; }
.par-lb-winner { background: linear-gradient(90deg, #FFFBEA, white); }
.par-lb-pos  { font-size: 1.35rem; min-width: 32px; }
.par-lb-name { flex: 1; font-weight: 600; font-size: .93rem; }
.par-lb-score { font-size: 1.35rem; font-weight: 700; color: var(--brand-dark); font-variant-numeric: tabular-nums; }
.par-lb-vs   { font-size: .78rem; font-weight: 600; min-width: 36px; text-align: right; }
.text-under  { color: var(--score-birdie); }
.text-even   { color: var(--score-par); }
.text-over   { color: var(--score-bogey); }
.es-empty    { text-align: center; padding: 3rem 1rem; color: var(--gray-400); }
.es-empty-icon { width: 48px; height: 48px; margin: 0 auto .875rem; color: var(--gray-200); }
.es-empty-sub  { font-size: .82rem; margin-top: .5rem; }

/* ═══════════════════════════════════════════════════════════
   GLOBAL SCORES
═══════════════════════════════════════════════════════════ */
.global-subtitle { font-size: .9rem; color: var(--gray-400); margin-top: -.5rem; margin-bottom: 1.5rem; }
.global-course-section { margin-bottom: 2rem; }
.gcs-title  { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); margin-bottom: .875rem; display: flex; align-items: center; }
.gcs-count  { font-size: .75rem; font-weight: 500; color: var(--gray-400); margin-left: .5rem; }
.glb-list   { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--r-lg); overflow: hidden; }
.glb-row    { display: flex; align-items: center; gap: .875rem; padding: .875rem 1.1rem; border-bottom: 1px solid var(--gray-100); }
.glb-row:last-child { border-bottom: none; }
.glb-winner { background: linear-gradient(90deg, #FFFBEA, white); }
.glb-pos    { font-size: 1.35rem; min-width: 32px; }
.glb-info   { flex: 1; }
.glb-name   { font-size: .93rem; font-weight: 600; display: block; }
.glb-event  { font-size: .72rem; color: var(--gray-400); margin-top: 2px; }
.glb-right  { text-align: right; }
.glb-score  { display: block; font-size: 1.4rem; font-weight: 700; color: var(--brand-dark); }
.glb-vs     { display: block; font-size: .75rem; font-weight: 600; }
.global-empty { font-size: .85rem; color: var(--gray-400); padding: 1.5rem 0; }
.global-anon-note { display: flex; gap: .75rem; background: var(--off-white); border-radius: var(--r-md); padding: .875rem 1rem; margin-top: 1.5rem; font-size: .82rem; color: var(--gray-600); line-height: 1.6; }
.gan-icon { color: var(--gray-300); flex-shrink: 0; margin-top: 1px; }

/* ═══════════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════════ */
.about-hero { text-align: center; padding: 2.5rem 0 2rem; margin-bottom: 1.5rem; }
.about-logo { width: 90px; height: 90px; object-fit: contain; margin: 0 auto .875rem; }
.about-hero h1 { font-size: 2rem; color: var(--brand-dark); }
.about-hero p  { font-size: .9rem; color: var(--gray-400); margin-top: .4rem; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .875rem; margin-bottom: 1rem; }
.about-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--r-lg); padding: 1.25rem 1.35rem; }
.about-card h3 { font-size: 1rem; font-weight: 700; color: var(--brand-dark); margin-bottom: .6rem; }
.about-card p, .about-card li { font-size: .88rem; color: var(--gray-600); line-height: 1.65; }
.about-card ul { padding-left: 1.1rem; }
.about-card li { margin-bottom: .25rem; }
.pricing-card  { background: linear-gradient(135deg, var(--brand-dark), var(--brand-mid)); border-radius: var(--r-lg); padding: 1.5rem; color: white; margin-bottom: 1rem; }
.pricing-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.pricing-row   { display: flex; justify-content: space-between; align-items: center; padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.pricing-row:last-of-type { border-bottom: none; }
.pricing-val   { font-size: 1.2rem; font-weight: 700; color: var(--brand-bright); }
.pricing-note  { font-size: .75rem; opacity: .65; margin-top: .75rem; line-height: 1.5; }
.section-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-400); margin-bottom: .75rem; }
.team-row  { display: flex; gap: .875rem; margin-bottom: 1rem; }
.team-card { flex: 1; background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--r-lg); padding: 1.25rem; text-align: center; }
.team-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-turf), var(--brand-bright)); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto .75rem; }
.team-name { font-size: .93rem; font-weight: 700; color: var(--brand-dark); }
.team-role { font-size: .75rem; color: var(--gray-400); margin-top: 3px; }
.contact-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--r-lg); padding: 1.25rem 1.35rem; margin-bottom: 1rem; }
.contact-card h3 { font-size: 1rem; font-weight: 700; color: var(--brand-dark); margin-bottom: .875rem; }
.contact-row { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--gray-100); font-size: .88rem; color: var(--gray-600); }
.contact-row:last-child { border-bottom: none; }
.contact-icon { color: var(--brand-turf); flex-shrink: 0; }
.contact-row a { color: var(--brand-turf); font-weight: 500; }
.coming-soon { color: var(--gray-300); font-style: italic; }

/* ═══════════════════════════════════════════════════════════
   BOOKING
═══════════════════════════════════════════════════════════ */
.booking-hero { background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dk)); border-radius: var(--r-xl); padding: 1.75rem 1.5rem; color: white; text-align: center; margin-bottom: 1.25rem; }
.booking-hero-title { font-size: 1.6rem; font-weight: 700; }
.booking-hero-sub   { font-size: .88rem; opacity: .85; margin-top: .35rem; }
.booking-pricing-row { display: flex; gap: .6rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.bpr-card  { flex: 1; min-width: 100px; background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--r-md); padding: .875rem; text-align: center; }
.bpr-amount { font-size: 1.5rem; font-weight: 700; color: var(--brand-turf); letter-spacing: -.03em; }
.bpr-unit   { font-size: .85rem; font-weight: 500; }
.bpr-label  { font-size: .72rem; color: var(--gray-400); margin-top: 2px; }
.booking-form-wrap { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--r-xl); padding: 1.5rem; }
.bf-section-title  { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gray-400); margin: 1.25rem 0 .875rem; padding-top: .875rem; border-top: 1px solid var(--gray-100); }
.bf-section-title:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.bf-price-preview  { display: flex; align-items: center; justify-content: space-between; background: var(--brand-pale); border: 1.5px solid var(--brand-bright); border-radius: var(--r-md); padding: .75rem 1rem; margin-bottom: .875rem; }
.bfp-label { font-size: .82rem; color: var(--brand-dark); font-weight: 600; }
.bfp-price { font-size: 1.3rem; font-weight: 700; color: var(--brand-turf); }
.booking-sms-note  { font-size: .75rem; color: var(--gray-400); text-align: center; margin-top: .75rem; line-height: 1.5; }
.booking-success   { background: linear-gradient(135deg, var(--brand-dark), var(--brand-turf)); border-radius: var(--r-xl); padding: 2.5rem 1.75rem; color: white; text-align: center; }
.bs-icon   { display: flex; justify-content: center; margin-bottom: .875rem; }
.bs-icon svg { stroke: white; }
.bs-title  { font-size: 1.6rem; font-weight: 700; margin-bottom: .6rem; }
.bs-body   { font-size: .9rem; opacity: .88; line-height: 1.7; margin-bottom: 1.5rem; }
.bs-price  { color: var(--brand-bright); }

/* ═══════════════════════════════════════════════════════════
   STAFF PANEL
═══════════════════════════════════════════════════════════ */
.welcome-screen { text-align: center; padding: 4rem 1rem; animation: pageIn .4s ease; }
.welcome-avatar { font-size: 3.5rem; margin-bottom: .875rem; }
.welcome-name   { font-size: 2rem; font-weight: 700; color: var(--brand-dark); }
.welcome-role   { font-size: .9rem; color: var(--gray-400); margin-top: .35rem; }
.welcome-msg    { font-size: .95rem; color: var(--gray-600); margin: 1rem 0 2rem; line-height: 1.6; }
.sp-topbar      { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--gray-100); }
.sp-user        { display: flex; align-items: center; gap: .75rem; }
.sp-user-emoji  { font-size: 1.6rem; }
.sp-user-name   { font-size: .95rem; font-weight: 700; }
.sp-user-role   { font-size: .75rem; color: var(--gray-400); }
.sp-stats       { display: grid; grid-template-columns: repeat(4,1fr); gap: .6rem; margin-bottom: 1.25rem; }
.sp-stat        { background: var(--off-white); border-radius: var(--r-md); padding: .875rem .5rem; text-align: center; }
.sp-stat-num    { font-size: 1.6rem; font-weight: 700; color: var(--brand-turf); }
.sp-stat-alert  { color: var(--brand-red) !important; }
.sp-stat-lbl    { font-size: .68rem; color: var(--gray-400); margin-top: 2px; }
.sp-tabs        { display: flex; gap: .4rem; margin-bottom: 1rem; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.sp-tab         { flex-shrink: 0; padding: .5rem 1rem; border-radius: var(--r-md); border: 1px solid var(--gray-200); background: var(--white); font-family: var(--font); font-size: .82rem; font-weight: 600; cursor: pointer; color: var(--gray-500); transition: background .15s, color .15s; display: flex; align-items: center; gap: .4rem; }
.sp-tab:hover   { background: var(--off-white); }
.sp-tab-active  { background: var(--brand-turf); color: white; border-color: var(--brand-turf); }
.sp-badge       { background: var(--brand-red); color: white; font-size: .65rem; padding: 1px 6px; border-radius: 99px; font-weight: 700; }
.sp-empty       { text-align: center; padding: 2.5rem 1rem; color: var(--gray-400); font-size: .9rem; }

/* Request cards */
.request-card   { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--r-lg); margin-bottom: .75rem; overflow: hidden; }
.rc-top         { display: flex; align-items: flex-start; justify-content: space-between; padding: 1rem 1.1rem .75rem; gap: .75rem; }
.rc-main-info   { flex: 1; }
.rc-event-name  { font-size: 1rem; font-weight: 700; color: var(--gray-900); }
.rc-client      { font-size: .78rem; color: var(--gray-400); margin-top: 3px; }
.request-status { font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; letter-spacing: .03em; flex-shrink: 0; }
.status-pending  { background: #FFF9E6; color: #9A6E00; }
.status-accepted { background: #E8F8EE; color: var(--score-birdie); }
.status-declined { background: var(--brand-red-pl); color: var(--brand-red); }
.rc-details     { padding: 0 1.1rem .75rem; display: flex; flex-direction: column; gap: .3rem; }
.rc-detail      { display: flex; align-items: flex-start; gap: .6rem; font-size: .83rem; }
.rcd-label      { font-weight: 600; color: var(--gray-400); min-width: 64px; flex-shrink: 0; }
.rc-detail a    { color: var(--brand-turf); }
.rc-actions     { display: flex; gap: .5rem; padding: .75rem 1.1rem; border-top: 1px solid var(--gray-100); background: var(--off-white); flex-wrap: wrap; }
.rc-accepted-note { padding: .6rem 1.1rem; font-size: .78rem; color: var(--score-birdie); background: #E8F8EE; }

/* Staff event/score cards */
.sp-event-card  { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--r-md); padding: .875rem 1.1rem; margin-bottom: .6rem; }
.sp-ec-name     { font-size: .95rem; font-weight: 700; }
.sp-ec-meta     { font-size: .75rem; color: var(--gray-400); margin-top: 3px; }
.sp-scores-list { display: flex; flex-direction: column; gap: .5rem; }
.sp-score-row   { display: flex; align-items: center; gap: .75rem; padding: .75rem .875rem; background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--r-md); }
.sp-score-pos   { font-size: .75rem; color: var(--gray-400); min-width: 28px; }
.sp-score-info  { flex: 1; }
.sp-score-name  { font-size: .9rem; font-weight: 600; display: block; }
.sp-score-meta  { font-size: .72rem; color: var(--gray-400); }
.sp-score-val   { font-size: 1.1rem; font-weight: 700; color: var(--brand-dark); }
.sp-settings-section { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--r-lg); padding: 1.25rem; margin-bottom: .875rem; }
.sp-settings-title { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; }
.sp-settings-desc  { font-size: .83rem; color: var(--gray-400); line-height: 1.6; margin-bottom: .875rem; }
.sp-danger-zone    { border-color: #f5c6c6; background: var(--brand-red-pl); }
.sp-danger-zone .sp-settings-title { color: var(--brand-red); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 680px) {
  .header-nav { display: none; }
  .hamburger  { display: flex; }
  .home-hero  { flex-direction: column; align-items: flex-start; min-height: auto; padding: 3rem var(--page-pad) 2rem; }
  .hero-visual { display: none; }
  .hero-heading { font-size: 2.6rem; }
  .hss-divider  { display: none; }
  .home-stats-strip { gap: .5rem; justify-content: flex-start; padding: 1.5rem var(--page-pad); }
  .about-grid   { grid-template-columns: 1fr; }
  .form-row-2   { grid-template-columns: 1fr; }
  .sp-stats     { grid-template-columns: repeat(2,1fr); }
  .hero-ctas    { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 681px) {
  .bottom-nav { display: none; }
  .page       { padding-bottom: 2rem; }
  #toast      { bottom: 1.5rem; }
}
@media print {
  .app-header, .bottom-nav, .sc-header-actions, .sc-actions, #toast { display: none !important; }
  body { background: white; }
}