:root {
  --gc-green: #1a3a2a;
  --gc-green-mid: #2d5c3f;
  --gc-green-light: #4a8c5c;
  --gc-gold: #c9a84c;
  --gc-gold-light: #e8c97a;
  --gc-cream: #f5f0e8;
  --gc-cream-dark: #ede6d6;
  --gc-text: #1a1a18;
  --gc-text-muted: #6b6b5e;
  --gc-white: #ffffff;
  --gc-surface: #fdfaf4;
  --gc-border: rgba(26,58,42,0.12);
  --gc-shadow: 0 2px 16px rgba(26,58,42,0.10);
  --radius: 16px;
  --radius-sm: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--gc-text);
  background: var(--gc-white);
  min-height: 100vh;
}
.text-center {
  text-align: center;
}
.mb-4 {
  margin-bottom: 20px;
}
.select-event {
  height: 50vh;
  overflow: scroll;
}
/* -- LOGIN -- */
.login-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.login-hero {
  background: var(--gc-green);
  position: relative;
  overflow: hidden;
  padding: 40px 24px 32px;
  flex-shrink: 0;
  text-align: center;
}
.login-hero::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(201,168,76,0.08);
}
.login-hero::after {
  content: '';
  position: absolute; bottom: -70px; left: -50px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.logo-mark-lg {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--gc-gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.logo-mark-lg i { color: var(--gc-green); font-size: 26px; }
.hero-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 700;
  color: var(--gc-cream); letter-spacing: 0.02em; line-height: 1.1;
}
.hero-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 700;
  color: var(--gc-cream); letter-spacing: 0.02em; line-height: 1.1;
}
.hero-tag {
  font-size: 10px; font-weight: 500; color: var(--gc-gold);
  letter-spacing: 0.16em; text-transform: uppercase; margin-top: 6px;
}
.hero-role-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; padding: 6px 14px; border-radius: 20px;
  background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.35);
  font-size: 11px; font-weight: 600; color: var(--gc-gold);
  letter-spacing: 0.05em; text-transform: uppercase;
}
.hero-role-badge i { font-size: 12px; }
.hero-quote {
  margin-top: 32px; font-family: 'Cormorant Garamond', serif;
  font-size: 18px; color: rgba(245,240,232,0.75); line-height: 1.5;
  font-style: italic; max-width: 320px;
}
.hero-quote-attr { margin-top: 10px; font-size: 11px; color: var(--gc-gold); letter-spacing: 0.08em; text-transform: uppercase; font-style: normal; }
.login-panel {
  display: flex; flex-direction: column; justify-content: center;
  overflow-y: auto;
  background: var(--gc-surface);
  flex: 1;
  border-radius: 28px 28px 0 0;
  padding: 32px 24px 40px;
  margin-top: -18px;
  position: relative; z-index: 2;

}
.login-title { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 700; color: var(--gc-text); }
.login-sub { font-size: 12px; color: var(--gc-text-muted); margin-top: 4px; margin-bottom: 26px; line-height: 1.5; }
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gc-text-muted); margin-bottom: 8px;
}
.input-wrap {
  display: flex; align-items: center; gap: 10px;
  background: var(--gc-white); border: 1.5px solid var(--gc-border);
  border-radius: var(--radius-sm); padding: 0 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input-wrap:focus-within { border-color: var(--gc-gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.15); }
.input-wrap.error { border-color: #c84040; }
.input-wrap i { color: var(--gc-text-muted); font-size: 14px; flex-shrink: 0; }
.input-wrap input {
  flex: 1; border: none; outline: none; background: transparent;
  padding: 13px 0; font-size: 14px; color: var(--gc-text); font-family: inherit;
  min-width: 0;
}
.input-wrap input::placeholder { color: rgba(107,107,94,0.55); }
.toggle-pass {
  background: none; border: none; color: var(--gc-text-muted);
  cursor: pointer; font-size: 14px; padding: 4px; flex-shrink: 0;
}
.field-error { font-size: 11px; color: #c84040; margin-top: 6px; display: none; }
.field-error.show { display: block; }
.form-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 22px; }
.remember { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.remember span { font-size: 12px; color: var(--gc-text-muted); }
.checkbox {
  width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--gc-border);
  display: flex; align-items: center; justify-content: center;
  background: var(--gc-white); cursor: pointer; transition: all 0.15s; flex-shrink: 0;
}
.checkbox.checked { background: var(--gc-green); border-color: var(--gc-green); }
.checkbox i { font-size: 10px; color: var(--gc-cream); opacity: 0; }
.checkbox.checked i { opacity: 1; }
.login-error {
  color: #9a2020;
  font-size: 13px; font-weight: 500; z-index: 1000;
}
.primary-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gc-green); color: var(--gc-cream);
  border-radius: var(--radius-sm); padding: 14px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; width: calc(100% - 36px); margin: 4px 18px 20px;
  letter-spacing: 0.02em;
  transition: opacity 0.15s;
}
.primary-btn:active { opacity: 0.85; }
.primary-btn:disabled { opacity: 0.4; cursor: default; }
.primary-btn .spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(245,240,232,0.35); border-top-color: var(--gc-cream);
  animation: spin 0.7s linear infinite; display: none;
}
.primary-btn.loading .spinner { display: inline-block; }
.primary-btn.loading .btn-label { display: none; }
.divider-row { display: flex; align-items: center; gap: 12px; margin: 26px 0 20px; }
.divider-row .line { flex: 1; height: 1px; background: var(--gc-border); }
.divider-row span { font-size: 10px; color: var(--gc-text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.help-text { text-align: center; font-size: 12px; color: var(--gc-text-muted); }
.help-text a { color: var(--gc-green-light); font-weight: 600; text-decoration: none; cursor: pointer; }
.footer-note {
  text-align: center; font-size: 10px; color: var(--gc-text-muted);
  margin-top: 28px; letter-spacing: 0.02em;
}
/* -- END OF LOGIN --*/

/* -- APP -- */
.mobileapp {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  border: 1px solid var(--gc-border);
}
.app-header {
  height: 60px;
  background: var(--gc-green);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  flex-shrink: 0;
  z-index: 99;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}
.header-logo { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--gc-gold);
  display: flex; align-items: center; justify-content: center;
}
.logo-mark i { color: var(--gc-green); font-size: 16px; }
.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px; font-weight: 700;
  color: var(--gc-cream); letter-spacing: 0.02em;
  line-height: 1;
}
.brand-tag { font-size: 9px; font-weight: 400; color: var(--gc-gold); letter-spacing: 0.12em; text-transform: uppercase; }
.desktop-nav { display: none; }
.header-right { display: flex; gap: 12px; align-items: center; }
.hdr-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--gc-cream); font-size: 16px;
  position: relative;
}
.notif-dot {
  position: absolute; top: 4px; right: 4px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gc-gold); border: 1.5px solid var(--gc-green);
}

.event-card.is-today{
    border-color: var(--gc-green-light);
  }

  .event-selected {
    background-color: var(--gc-cream-dark) !important
  }

  .player-choice {
    background: transparent;
    border: none;
    outline: none;
  }

  .player-error {
    color: #c84040;
    font-size: 10px;
    display: none;
  }

  .player-error.active {
    display: block !important;
  }

.mobileapp {
  border-radius: 0 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}



.app-body {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding-bottom: var(--nav-h);
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.app-body::-webkit-scrollbar { display: none; }
  /* HEADER */
.app-header {
  height: 60px;
  background: var(--gc-green);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  flex-shrink: 0;
  z-index: 99;
  border-bottom: 1px solid rgba(201,168,76,0.15);
}

.layout-grid {
  display: flex;
  flex-direction: column-reverse;
  gap: 30px;
  padding: 28px 4px 32px;
}

#player-setup {
  flex-direction: column !important;
}


.panel-scan { position: sticky; top: 28px; }
.panel-scan .setup-intro,
.panel-scan .scanner-wrap,
.panel-scan .scan-status,
.panel-scan .scanner-actions { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
.scanner-wrap { max-height: 340px; }
.panel-events .section-label,
.panel-events .event-card,
.panel-events .or-divider { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
.or-divider { display: none; }

.setup-intro { padding: 18px 18px 4px; }
.setup-title { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 700; color: var(--gc-text); }
.setup-sub { font-size: 12px; color: var(--gc-text-muted); margin-top: 4px; line-height: 1.5; }

.scanner-wrap {
  background: var(--gc-green);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  max-height: 380px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto !important
}
#reader {
  width: 100% !important; height: 100% !important;
}
#reader video { object-fit: cover; width: 100% !important; height: 100% !important; }
#reader img { display: none !important; }
.scan-frame {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 5;
}
.scan-box {
  width: 62%; aspect-ratio: 1/1; position: relative;
}
.scan-corner {
  position: absolute; width: 26px; height: 26px;
  border: 3px solid var(--gc-gold);
}
.scan-corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; border-radius: 8px 0 0 0; }
.scan-corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; border-radius: 0 8px 0 0; }
.scan-corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; border-radius: 0 0 0 8px; }
.scan-corner.br { bottom: 0; right: 0; border-left: none; border-top: none; border-radius: 0 0 8px 0; }
.scan-line {
  position: absolute; left: 4%; right: 4%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gc-gold-light), transparent);
  box-shadow: 0 0 8px rgba(232,201,122,0.8);
  animation: scanMove 2.2s ease-in-out infinite;
}
@keyframes scanMove {
  0% { top: 4%; opacity: 0.2; }
  50% { top: 96%; opacity: 1; }
  100% { top: 4%; opacity: 0.2; }
}
.scanner-placeholder {
  position: absolute; inset: 0; z-index: 6;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 20px; text-align: center;
  background: var(--gc-green);
}
.scanner-placeholder.hidden { display: none; }
.placeholder-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.35);
  display: flex; align-items: center; justify-content: center;
  color: var(--gc-gold); font-size: 26px;
}
.placeholder-title { font-size: 14px; font-weight: 600; color: var(--gc-cream); }
.placeholder-sub { font-size: 11px; color: rgba(245,240,232,0.6); max-width: 220px; line-height: 1.5; }
.placeholder-btn {
  margin-top: 4px; padding: 10px 20px; border-radius: 20px;
  background: var(--gc-gold); color: var(--gc-green); border: none;
  font-size: 12px; font-weight: 700; letter-spacing: 0.03em; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
}
.scan-status {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 12px 18px 6px; padding: 10px; font-size: 12px; font-weight: 500;
  color: var(--gc-text-muted);
}
.scan-status .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gc-text-muted);
}
.scan-status.live .dot { background: #2d7a3a; animation: pulseDot 1.4s ease-in-out infinite; }
.scan-status.live { color: var(--gc-green); }
@keyframes pulseDot { 0%,100%{ opacity:1; } 50%{ opacity:0.3; } }
.scanner-actions { display: flex; justify-content: center; gap: 10px; margin: 4px 18px 4px; }
.icon-btn-sm {
  display: flex; align-items: center; gap: 6px;
  background: var(--gc-white); border: 1px solid var(--gc-border);
  border-radius: 20px; padding: 7px 14px; font-size: 11px; font-weight: 600;
  color: var(--gc-text-muted); cursor: pointer;
}
.icon-btn-sm i { font-size: 12px; }
.scanner-actions { display: flex; justify-content: center; gap: 10px; margin: 4px 18px 4px; }


.event-toolbar{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  margin-bottom:18px;
}

.search-box{
  flex:1;
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:8px;
  background:var(--gc-border);
  border:1px solid transparent;
  transition:border-color .15s ease, background .15s ease;
}

.search-box:focus-within{
  border-color:var(--gc-green-light);
}

.search-box svg{
  flex-shrink:0;
  color:var(--muted);
}

.search-box input{
  flex:1;
  min-width:0;
  border:none;
  outline:none;
  background:transparent;
  font-size:14px;
}

.search-box input::placeholder{
  color:var(--muted);
}


  .empty-state{
  text-align:center;
  color:var(--muted);
  font-size:14px;
  padding:24px 0;
  display:none;
}

.btn-today{
  flex-shrink:0;
  display:flex;
  align-items:center;
  gap:6px;
  padding:9px 16px;
  border-radius:8px;
  background:var(--gc-green);
  color:var(--gc-white);
  border: 1px solid var(--gc-green);
  font-size:14px;
  font-weight:600;
  cursor:pointer;
}

.btn-today:hover{
  background:var(--gc-green-mid);
  color:var(--gc-white);
}

.btn-clr {
  flex-shrink:0;
  display:flex;
  align-items:center;
  gap:6px;
  padding:9px 16px;
  border-radius:8px;
  border:1px solid var(--gc-gold);
  background:var(--gc-gold-light);
  color:var(--gc-text);
  font-size:14px;
  font-weight:600;
  cursor:pointer;
}

.btn-clr:hover{
  background:var(--gc-gold);
  color:var(--gc-white);
}

.btn {
  background: var(--gc-green);
  color: var(--gc-cream);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.event-card {
  margin: 0 18px 12px;
  background: var(--gc-white); border: 1px solid var(--gc-border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: stretch; gap: 0;
  cursor: pointer; transition: box-shadow 0.15s, border-color 0.15s, transform 0.1s;
}
.event-card:active { transform: scale(0.99); }
.event-card:hover { box-shadow: 0 6px 20px rgba(26,58,42,0.12); border-color: rgba(201,168,76,0.4); }
.event-thumb {
  width: 96px; flex-shrink: 0; background: var(--gc-cream);
  background-size: cover; background-position: center;
  position: relative;
}
.event-thumb-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(26,58,42,0.85); color: var(--gc-gold);
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 10px;
}
.event-body { padding: 14px 14px; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.event-title { font-size: 14px; font-weight: 700; color: var(--gc-text); line-height: 1.25; }
.event-desc { font-size: 11px; color: var(--gc-text-muted); margin-top: 4px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.event-meta { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.event-meta-item { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--gc-text-muted); font-weight: 500; }
.event-meta-item i { color: var(--gc-gold); font-size: 10px; }
.event-arrow { display: flex; align-items: center; padding: 0 14px; color: var(--gc-border); font-size: 16px; flex-shrink: 0; }


.select-field {
  margin: 0 18px 12px;
  background: var(--gc-white); border: 1px solid var(--gc-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.select-field.filled { border-color: rgba(201,168,76,0.5); }
.select-field.open { box-shadow: 0 4px 16px rgba(26,58,42,0.10); }
.select-field.disabled { opacity: 0.5; }
.select-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; cursor: pointer;
}
.select-field.disabled .select-header { cursor: default; }
.select-head-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; width: 100%; }
.select-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gc-text-muted);
}
.select-value {
  font-size: 15px; font-weight: 600; color: var(--gc-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.select-value.placeholder { font-weight: 400; color: var(--gc-text-muted); }
.select-chevron {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--gc-cream); display: flex; align-items: center; justify-content: center;
  color: var(--gc-green); font-size: 12px;
  transition: transform 0.2s;
}
.select-field.open .select-chevron { transform: rotate(180deg); background: var(--gc-gold); color: var(--gc-green); }

.select-options {
  max-height: 0; overflow: hidden;
  transition: max-height 0.25s ease;
  border-top: 1px solid transparent;
}
.select-field.open .select-options { max-height: 400px; border-top: 1px solid var(--gc-border); }
.select-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; font-size: 13px; color: var(--gc-text);
  cursor: pointer; border-bottom: 1px solid var(--gc-border);
}
.select-option:last-child { border-bottom: none; }
.select-option:active, .select-option:hover { background: var(--gc-cream); }
.select-option.selected { background: rgba(201,168,76,0.10); color: var(--gc-green); font-weight: 600; }
.select-option i { color: var(--gc-gold); font-size: 13px; opacity: 0; }
.select-option.selected i { opacity: 1; }
.option-meta { font-size: 11px; color: var(--gc-text-muted); font-weight: 400; margin-top: 2px; }

/* Summary card */
.summary-card {
  margin: 4px 18px 16px; padding: 18px;
  background: var(--gc-green); border-radius: var(--radius);
  position: relative; overflow: hidden;
}
.summary-card::after {
  content: '⛳'; position: absolute; right: -6px; bottom: -14px;
  font-size: 70px; opacity: 0.08;
}
.summary-title { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gc-gold); margin-bottom: 12px; }
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 12px; }
.summary-row:last-child { border-bottom: none; }
.summary-row span:first-child { color: rgba(245,240,232,0.55); }
.summary-row span:last-child { color: var(--gc-cream); font-weight: 600; text-align: right; max-width: 60%; }
.panel-form .select-field,
.panel-form .setup-intro,
.panel-form .section-label { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
.panel-summary {
  background: transparent; position: sticky; top: 28px;
}
.panel-summary {
  background: transparent; position: sticky; top: 28px;
}
.panel-summary .summary-card,
.panel-summary .primary-btn { margin-left: 0; margin-right: 0; width: 100%; }

.panel-scorecard .section-label,
.panel-scorecard .scorecard-wrap { padding-left: 0; padding-right: 0; margin-left: 0; margin-right: 0; }

.panel-scorecard { padding: 4px; }

.scorecard-wrap { margin: 0 18px 14px; overflow-x: auto; }
.scorecard-table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 13px; }
.scorecard-table thead tr { background: var(--gc-green); height: 48px; }
.scorecard-table thead th { color: var(--gc-white); padding: 8px 4px; text-align: center; font-weight: 500; font-size: 12px; letter-spacing: 0.05em; }
.scorecard-table thead th:first-child { text-align: left; padding-left: 10px; }
.scorecard-table tbody tr { border-bottom: 1px solid var(--gc-border); height: 48px;}
.scorecard-table tbody tr:nth-child(even) { background: var(--gc-cream); }
.scorecard-table tbody td { padding: 7px 4px; text-align: center; color: var(--gc-text); font-weight: 400; font-size: 12px; }
.scorecard-table tbody td:first-child { text-align: left; padding-left: 10px; font-weight: 500; }
.score-under { color: #c00; font-weight: 700; }
.score-over { color: #2d7a3a; font-weight: 700; }
.score-par { color: var(--gc-text-muted); }
.scorecard-total { background: var(--gc-green) !important; }
.scorecard-total td { color: var(--gc-cream) !important; font-weight: 600 !important; }
.col-active { background: rgba(201,168,76,0.18) !important; box-shadow: inset 0 0 0 1px var(--gc-gold); }
.col-active td { color: var(--gc-green) !important; font-weight: 700 !important; }

.score-bogey {
  color: #5eaef0 !important;
  font-weight: 700 !important;
}

.score-par {
  color: #37be5c !important;
  font-weight: 700 !important;
}

.score-birdie {
  color: #c00 !important;
  font-weight: 700 !important;
}

.score-eagle {
  color: #979797 !important;
  font-weight: 700 !important;
}

  .hole-info-bar {
    margin: 0 18px 14px; padding: 14px 16px;
    background: var(--gc-green); border-radius: var(--radius-sm);
    display: flex; justify-content: space-between;
  }
  .hi-item { text-align: center; flex: 1; }
  .hi-val { font-size: 20px; font-weight: 700; color: var(--gc-gold); font-family: 'Cormorant Garamond', serif; }
  .hi-lbl { font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(245,240,232,0.55); margin-top: 2px; }
  .hi-sep { width: 1px; background: rgba(255,255,255,0.1); }

  /* Hole navigation */
  .hole-nav { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 14px; gap: 10px; }
  .hole-nav.border-bottom { border-bottom: 0.5pt solid var(--gc-border); }
  .hn-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--gc-white); border: 1.5px solid var(--gc-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: var(--gc-green); cursor: pointer;
    flex-shrink: 0;
  }
  .hn-btn:disabled { opacity: 0.35; cursor: default; }
  .hn-holes { display: flex; gap: 6px; flex: 1; justify-content: center; flex-wrap: wrap; padding: 0 4px; }
  .hn-hole {
    width: 26px; height: 26px; border-radius: 50%; font-size: 10px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    background: var(--gc-cream); color: var(--gc-text-muted); cursor: pointer;
    border: 0.5pt solid var(--gc-border);
  }
  .hn-hole.active { background: var(--gc-green); color: var(--gc-cream); }
  .hn-hole.done { background: var(--gc-gold); color: var(--gc-green); }

  /* Score entry card */
  .entry-card-title { font-size: 15px; font-weight: 600; color: var(--gc-text); padding: 0 18px; margin-bottom: 4px; }
  .entry-card-sub { font-size: 11px; color: var(--gc-text-muted); padding: 0 18px; margin-bottom: 14px; }
  .score-card { padding: 10px 22px 4px; }
  .counter-group { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
  .counter-label { font-size: 14px; font-weight: 600; }
  .counter-controls { display: flex; align-items: center; gap: 15px; }
  .btn-step { width: 42px; height: 42px; border-radius: 12px; border: none; background: var(--light); font-size: 18px; font-weight: bold; color: var(--primary); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .btn-step:active { background: var(--gc-gold-light); }
  .counter-value { font-size: 16px; font-weight: bold; min-width: 30px; text-align: center; }

  
  .summary-bar {
    margin: 4px 18px 14px; padding: 6px 10px;
    background: var(--gc-cream); border: 0.5pt solid var(--gc-gold);
    border-radius: var(--radius-sm);
    display: flex; justify-content: space-around; align-items: center;
  }
  .summary-item { text-align: center; }
  .summary-val { font-size: 18px; font-weight: 700; color: var(--gc-green); font-family: 'Cormorant Garamond', serif; }
  .summary-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gc-text-muted); margin-top: 2px; }
  .summary-sep { width: 1px; height: 28px; background: var(--gc-border); }

  .modal-overlay {
    position: fixed; inset: 0; background: rgba(26,26,24,0.55);
    display: none; align-items: center; justify-content: center;
    z-index: 999; padding: 20px; backdrop-filter: blur(2px);
  }
  .modal-overlay.active { display: flex; }
  .modal-box {
    background: var(--gc-white); border-radius: var(--radius);
    max-width: 360px; width: 100%; padding: 24px 22px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    animation: modalPop 0.2s ease;
  }
  @keyframes modalPop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
  .modal-title { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 700; color: var(--gc-text); margin-bottom: 14px; }
  .modal-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--gc-text); padding: 6px 0; border-bottom: 1px solid var(--gc-border); }
  .modal-row span:first-child { color: var(--gc-text-muted); }
  .modal-row span:last-child { font-weight: 600; }
  .modal-note { font-size: 11px; color: var(--gc-text-muted); margin-top: 14px; line-height: 1.5; }
  .modal-warn { font-size: 11px; color: #9a2020; margin-top: 6px; line-height: 1.5; font-weight: 500; }
  .modal-actions { display: flex; gap: 10px; margin-top: 20px; }
  .modal-btn { flex: 1; padding: 12px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; cursor: pointer; border: none; text-align: center; }
  .modal-btn.cancel { background: var(--gc-cream); color: var(--gc-text); }
  .modal-btn.finish { background: var(--gc-green); color: var(--gc-cream); }

.input-none { width: 100%; border: none; font-size: 15px; font-weight: 600; color: var(--gc-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.input-none:focus { border: none; outline: none; box-shadow: none;}


.bottom-nav {
  height: var(--nav-h);
  background: var(--gc-green);
  border-top: 1px solid rgba(201,168,76,0.2);
  display: flex; align-items: center; justify-content: space-around;
  padding: 0 4px 4px;
  flex-shrink: 0; z-index: 100;
  position: relative;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  cursor: pointer; padding: 8px 10px; border-radius: 12px;
  transition: background 0.2s; flex: 1; max-width: 68px;
  text-decoration: none;
}
.nav-item:hover { background: rgba(255,255,255,0.06); }
.nav-item i { font-size: 20px; color: rgba(245,240,232,0.45); transition: color 0.2s; }
.nav-item span { font-size: 9px; font-weight: 500; color: rgba(245,240,232,0.40); letter-spacing: 0.04em; text-transform: uppercase; transition: color 0.2s; }
.nav-item.active i { color: var(--gc-gold); }
.nav-item.active span { color: var(--gc-gold); }
.toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: #9a2020; color: #fff; padding: 12px 20px;
  border-radius: 20px; font-size: 13px; font-weight: 500; z-index: 1000;
  opacity: 0; transition: opacity 0.25s, transform 0.25s; pointer-events: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25); max-width: 90%; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
/* -- END APP -- */

@media (min-width: 769px) {
  /* RESPONSIVE */
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    height: 100vh;
  }
  .login-shell {
    flex-direction: row;
    overflow: hidden;
  }
  .login-hero {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 44px 24px 40px; text-align: left;
  }
  .hero-content { text-align: left; }

  .logo-mark-lg { margin: 0 0 20px; }
  .hero-brand { font-size: 34px; }
  .hero-quote {
    margin-top: 32px; font-family: 'Cormorant Garamond', serif;
    font-size: 18px; color: rgba(245,240,232,0.75); line-height: 1.5;
    font-style: italic; max-width: 320px;
  }
  .hero-quote-attr { margin-top: 10px; font-size: 11px; color: var(--gc-gold); letter-spacing: 0.08em; text-transform: uppercase; font-style: normal; }

  .desktop-nav { display: flex; gap: 4px; align-items: center; }
  .desktop-nav a {
    display: flex; align-items: center; gap: 7px; padding: 8px 14px;
    border-radius: 20px; text-decoration: none; cursor: pointer;
    color: rgba(245,240,232,0.55); font-size: 12px; font-weight: 500;
    letter-spacing: 0.03em; text-transform: uppercase;
  }
  .desktop-nav a i { font-size: 14px; }
  .desktop-nav a.active { background: rgba(201,168,76,0.18); color: var(--gc-gold); }
  .bottom-nav { display: none; }

  .layout-grid {
    display: grid; grid-template-columns: 0.9fr 1.1fr;
    gap: 30px; padding: 28px 32px 32px; align-items: start;
  }
  .select-event {
    height: 60vh;
  }

}

@media (min-width: 769px) and (max-width: 1200px) {
  /* RESPONSIVE: TABLET */
  .login-shell {
    width: 100%;
    height: 100vh;
  }
  .login-hero {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 44px 24px 40px; text-align: left;
  }
  .hero-content { text-align: left; }
  .mobileapp {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    max-height: none;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
}

@media (min-width: 1201px) {
  /* RESPONSIVE: DESKTOP */
  .login-shell {
    width: 1100px;
    min-height: 640px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.35);
    border-radius: 24px;
  }
  .mobileapp {
    width: 1180px; height: 90vh; max-height: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(26,58,42,0.25);
    border: 1px solid var(--gc-border);
    overflow: hidden;
  }
}
