:root {
  --bg: #0f1410;
  --panel: #1a221c;
  --panel-2: #243028;
  --text: #e8f0e9;
  --muted: #9aaf9e;
  --accent: #c4a35a;
  --accent-2: #6dbf7a;
  --danger: #e06c75;
  --border: #2f3f34;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, #1d2a1f, transparent 40%),
    radial-gradient(circle at bottom right, #2a2214, transparent 35%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

body.menu-open {
  overflow: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.1rem 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1 0 auto;
  padding-bottom: 1.5rem;
}

header.app-header {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.header-brand {
  min-width: 0;
  flex: 1 1 auto;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.brand-link:hover {
  text-decoration: none;
  color: var(--accent);
}

header h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

header .tag {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-user {
  display: none;
}

@media (min-width: 520px) {
  .header-user {
    display: inline;
    font-size: 0.85rem;
  }
}

.nav-user {
  font-size: 0.9rem;
  padding: 0.35rem 0.5rem;
  align-self: center;
}

/* Hamburger */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  font: inherit;
}

.menu-toggle:hover {
  border-color: var(--accent);
}

.menu-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
}

.menu-toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 1px;
}

.menu-toggle-label {
  font-size: 0.9rem;
  font-weight: 600;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 40;
}

.site-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  z-index: 50;
  background: var(--panel);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.45);
  padding: 1rem 0.85rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow-y: auto;
}

.site-menu[hidden],
.menu-backdrop[hidden] {
  display: none !important;
}

.site-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.menu-close {
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
}

.menu-link {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 500;
}

.menu-link:hover {
  background: var(--panel-2);
  border-color: var(--border);
  text-decoration: none;
  color: var(--accent);
}

.menu-link-primary {
  background: linear-gradient(135deg, #8b6b2e, #c4a35a);
  color: #1a1408;
  font-weight: 700;
  border-color: transparent;
}

.menu-link-primary:hover {
  color: #1a1408;
  filter: brightness(1.05);
}

.menu-divider {
  margin: 0.65rem 0.35rem 0.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.menu-logout {
  margin: 0.5rem 0 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.menu-link-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

/* Footer */
.site-footer {
  flex-shrink: 0;
  margin-top: 1.5rem;
  padding: 1.25rem 0 1.75rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-copy {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-btc-label {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
}

.footer-btc {
  margin: 0 auto 0.65rem;
  max-width: 100%;
  word-break: break-all;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.85rem;
  color: var(--accent);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  display: inline-block;
}

.footer-copy-btn {
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
}

.footer-nav {
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.footer-nav a {
  color: var(--muted);
  margin: 0 0.15rem;
}

.footer-nav a:hover {
  color: var(--accent);
}

.hero-seo-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  color: var(--text);
  line-height: 1.25;
}

.seo-feature-list {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  line-height: 1.55;
  color: var(--muted);
}

.seo-feature-list strong {
  color: var(--text);
}

.seo-feature-list li {
  margin-bottom: 0.5rem;
}

.privacy-toc {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
}

/* Cookie disclaimer banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  background: rgba(15, 20, 16, 0.96);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.4);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner-text {
  flex: 1 1 16rem;
  min-width: 0;
}

.cookie-banner-text strong {
  display: block;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.cookie-banner-text p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

body.cookie-banner-visible .wrap {
  padding-bottom: 7rem;
}

/* Public site walkthrough */
.walkthrough-toc-title {
  display: block;
  color: var(--accent);
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}
.walkthrough-toc-list {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.7;
  color: var(--muted);
}
.walkthrough-toc-list a {
  color: var(--text);
}
.walkthrough-toc-list a:hover {
  color: var(--accent);
}
.walkthrough-step {
  position: relative;
  padding-left: 1.1rem;
}
.walkthrough-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #8b6b2e, #c4a35a);
  color: #1a1408;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.65rem;
}
.walkthrough-callout {
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
/* First-login welcome */
.welcome-hero .hero-seo-title {
  margin-bottom: 0.5rem;
}

.walkthrough-callout strong {
  color: var(--accent);
}

/* Searchable user / member lists */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.user-search-form {
  flex: 1 1 18rem;
  max-width: 100%;
}
.user-pick-list {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0c100d;
  margin-top: 0.4rem;
  margin-bottom: 0.75rem;
}
.user-pick-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  width: 100%;
  text-align: left;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  font: inherit;
}
.user-pick-option:last-child {
  border-bottom: none;
}
.user-pick-option:hover,
.user-pick-option.is-selected {
  background: var(--panel-2);
}
.user-pick-option.is-selected {
  box-shadow: inset 3px 0 0 var(--accent);
}

/* Account profile: bows + trophies */
.bow-sheet-wrap {
  margin-bottom: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-2);
}
.bow-sheet {
  margin: 0;
  font-size: 0.88rem;
}
.bow-sheet th,
.bow-sheet td {
  white-space: nowrap;
  padding: 0.55rem 0.5rem;
  vertical-align: middle;
}
.bow-sheet th {
  position: sticky;
  top: 0;
  background: #1a221c;
  z-index: 1;
}
.bow-notes-cell {
  max-width: 10rem;
  white-space: normal !important;
  font-size: 0.82rem;
}
.bow-actions-cell {
  white-space: nowrap;
}
.bow-actions-cell .btn {
  margin: 0.1rem 0.1rem 0.1rem 0;
}
.trophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.85rem;
}
.trophy-card {
  margin: 0;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.trophy-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #0c100d;
}
.trophy-card figcaption {
  padding: 0.65rem 0.75rem 0.75rem;
  font-size: 0.9rem;
}

/* Multi-club partner pick on create shoot */
.partner-club-pick {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-2);
  padding: 0.5rem 0.65rem;
  margin-bottom: 1rem;
}
.partner-club-opt {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.4rem 0.15rem;
  color: var(--text);
  cursor: pointer;
  font-size: 0.95rem;
}
.partner-club-opt input {
  width: auto;
  margin: 0.2rem 0 0;
  flex-shrink: 0;
}

.login-panel {
  max-width: 420px;
  margin: 2rem auto 1rem;
}

.login-form label {
  display: block;
  margin-top: 0.75rem;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
}

.btn {
  display: inline-block;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.btn:hover { border-color: var(--accent); text-decoration: none; }

.btn-primary {
  background: linear-gradient(135deg, #8b6b2e, #c4a35a);
  border-color: transparent;
  color: #1a1408;
  font-weight: 600;
}

.btn-danger {
  background: rgba(224, 108, 117, 0.15);
  border-color: rgba(224, 108, 117, 0.4);
  color: #ffb4b9;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.panel h2 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  color: var(--accent);
}

.grid {
  display: grid;
  gap: 0.85rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat {
  background: var(--panel-2);
  border-radius: 12px;
  padding: 0.85rem;
}

.stat .label {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat .value {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 0.2rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th, .table td {
  text-align: left;
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(196, 163, 90, 0.18);
  color: var(--accent);
}

/* Tournament create: radio cards */
.disc-card-radio {
  cursor: pointer;
  position: relative;
  display: block;
}
.disc-card-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.disc-card-radio:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.add-member-form {
  background: var(--panel-2);
  border-radius: 12px;
  padding: 0.85rem;
  margin-bottom: 0.5rem;
}
.small-note {
  font-size: 0.85rem;
}

/* Club hub page */
.club-hero-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}
.club-title {
  margin: 0.4rem 0 0.25rem;
  color: var(--text);
  font-size: 1.45rem;
}
.club-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}
.club-jump a {
  color: var(--muted);
  text-decoration: none;
}
.club-jump a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.club-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 760px) {
  .club-about-grid {
    grid-template-columns: 1fr;
  }
}
.club-about-text {
  white-space: pre-wrap;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.club-subhead {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: var(--accent);
}
.club-loc-line {
  margin: 0 0 0.25rem;
}
.club-address {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.club-addr-line {
  color: var(--text);
}
.club-map-wrap {
  min-height: 220px;
}
.club-map {
  width: 100%;
  height: 280px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-2);
}
.club-map-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}
.club-member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.club-member-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
}
.club-member-name {
  font-weight: 600;
  font-size: 0.95rem;
}
.lb-top td {
  background: rgba(196, 163, 90, 0.08);
}
.lb-shoot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}
.lb-shoot-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem;
}
.lb-shoot-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.lb-mini {
  margin: 0;
  padding-left: 1.2rem;
  list-style: decimal;
}
.lb-mini li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.lb-mini li:last-child {
  border-bottom: none;
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.flash.ok {
  background: rgba(109, 191, 122, 0.15);
  border: 1px solid rgba(109, 191, 122, 0.35);
  color: #b8f0c0;
}

.flash.error {
  background: rgba(224, 108, 117, 0.15);
  border: 1px solid rgba(224, 108, 117, 0.35);
  color: #ffb4b9;
}

label {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

input[type="text"],
input[type="date"],
input[type="number"],
input[type="file"],
select,
textarea {
  width: 100%;
  background: #0c100d;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  margin-bottom: 0.75rem;
}

textarea { min-height: 90px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.end-card {
  background: var(--panel-2);
  border-radius: 12px;
  padding: 0.75rem;
  margin-bottom: 0.65rem;
}

.end-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.arrows {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: end;
}

.arrow-cell {
  width: 72px;
}

.arrow-cell input[type="number"] {
  margin-bottom: 0.25rem;
  text-align: center;
}

.arrow-cell .x-label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0;
}

.score-big {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
}

.photo-card {
  background: #0c100d;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.photo-card img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: #111;
}

.photo-card .meta {
  padding: 0.55rem 0.7rem 0.7rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.photo-card .meta strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.muted { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }

.disc-pick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.disc-pick-lg {
  gap: 1rem;
}

.disc-card {
  display: block;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: inherit;
}

.disc-card-lg {
  padding: 1.15rem 1.2rem 1.25rem;
  min-height: 11rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.disc-card:hover {
  border-color: var(--accent);
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(196, 163, 90, 0.35);
}

.disc-card h3 {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 1.05rem;
}

.disc-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
  flex: 1;
}

.disc-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  font-weight: 600;
}

/* Public pricing (guest home) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 1.1rem;
}
.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  box-shadow: var(--shadow);
}
.pricing-card-free {
  border-color: rgba(109, 191, 122, 0.45);
  background: linear-gradient(165deg, rgba(109, 191, 122, 0.12), var(--panel-2) 55%);
}
.pricing-card h3 {
  margin: 0.2rem 0 0.55rem;
  color: var(--text);
  font-size: 1.15rem;
}
.pricing-amount {
  margin: 0 0 0.15rem;
  line-height: 1.1;
}
.pricing-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.pricing-unit {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
  margin-left: 0.2rem;
}
.pricing-note {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.pricing-features {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  flex: 1;
}
.pricing-features li {
  margin-bottom: 0.35rem;
}
.pricing-features li::marker {
  color: var(--accent-2);
}
.pricing-pay-box {
  margin-top: 0.25rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: rgba(0, 0, 0, 0.18);
}
.pricing-btc {
  margin: 0;
  word-break: break-all;
  font-size: 0.95rem;
  color: var(--accent);
}

.disc-cta {
  margin-top: 0.75rem;
  align-self: flex-start;
  pointer-events: none;
}

.format-hint {
  margin: -0.35rem 0 1rem;
  font-size: 0.9rem;
}

.shoot-hero h2 { font-size: 1.35rem; }

.progress-bar {
  height: 10px;
  background: #0c100d;
  border-radius: 999px;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-top: 0.65rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6dbf7a, #c4a35a);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.shoot-step {
  border: 2px solid rgba(196, 163, 90, 0.45);
}

.shoot-form .score-input-lg {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  padding: 0.75rem;
  max-width: 200px;
}

.shoot-submit {
  margin-top: 0.75rem;
  width: 100%;
  max-width: 420px;
  padding: 0.85rem 1rem !important;
  font-size: 1.05rem !important;
}

.x-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.5rem 0 0.85rem;
  color: var(--text);
  font-size: 1rem;
}

.end-arrow-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1rem 0;
}

.end-arrow-row {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: #0c100d;
}

.end-arrow-row.is-locked {
  opacity: 0.75;
  border-color: rgba(109, 191, 122, 0.35);
}

.end-arrow-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.photo-hint {
  margin: 0.35rem 0 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.camera-open-btn {
  width: 100%;
  margin: 0.25rem 0 0.5rem;
  padding: 0.75rem 0.5rem !important;
  font-size: 1rem !important;
}

.camera-fallback {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.camera-fallback summary {
  cursor: pointer;
  color: var(--muted);
}

.file-input-fallback {
  margin-top: 0.4rem !important;
}

.camera-preview {
  display: block;
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 0.45rem;
  border: 1px solid var(--border);
}

body.camera-open {
  overflow: hidden;
}

.camera-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}

.camera-overlay.hidden {
  display: none !important;
}

.camera-sheet {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #0a0e0b;
  min-height: 100%;
}

.camera-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.camera-title {
  font-weight: 700;
  color: var(--accent);
}

.camera-video,
.camera-canvas {
  width: 100%;
  flex: 1;
  min-height: 50vh;
  max-height: 70vh;
  object-fit: cover;
  background: #000;
}

.camera-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.85rem;
}

.camera-shutter {
  width: 100%;
  padding: 1rem !important;
  font-size: 1.15rem !important;
  border-radius: 999px !important;
}

.camera-error {
  padding: 0 0.85rem 0.85rem;
  font-size: 0.85rem;
}

.hidden {
  display: none !important;
}

.arrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  min-width: 2rem;
  justify-content: center;
  margin: 0 0.15rem 0.15rem 0;
  padding: 0.2rem 0.35rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.arrow-pill.counted {
  background: rgba(109, 191, 122, 0.2);
  color: #b8f0c0;
  border: 1px solid rgba(109, 191, 122, 0.35);
}

.arrow-pill.uncounted {
  background: rgba(120, 120, 120, 0.15);
  color: #8a958c;
  border: 1px solid var(--border);
  text-decoration: line-through;
  opacity: 0.85;
}

.arrow-pill .cam { font-size: 0.7rem; text-decoration: none; }
.arrow-pill .cam-miss { color: var(--danger); font-weight: 700; }

.row-uncounted td { opacity: 0.75; }

.howto {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(196, 163, 90, 0.1);
  border: 1px solid rgba(196, 163, 90, 0.35);
  font-size: 0.92rem;
}

.howto ol {
  margin: 0.45rem 0 0 1.1rem;
  padding: 0;
  color: var(--muted);
}

.howto li { margin: 0.25rem 0; }

.end-block {
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.end-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.end-block-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem;
  align-items: baseline;
  margin-bottom: 0.65rem;
}

.end-block-head h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--accent);
}

.arrow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}

.targets-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.arrow-tile {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0c100d;
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.arrow-tile.is-counted {
  border-color: rgba(109, 191, 122, 0.45);
  background: rgba(109, 191, 122, 0.08);
}

.arrow-tile.needs-photo {
  border-color: rgba(224, 108, 117, 0.4);
  background: rgba(224, 108, 117, 0.06);
}

.arrow-tile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
}

.arrow-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.arrow-score {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
}

.arrow-status {
  font-size: 0.78rem;
  font-weight: 600;
}

.arrow-status.ok { color: #b8f0c0; }
.arrow-status.bad { color: #ffb4b9; }

.photo-attach {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.arrow-upload {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.file-label {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.file-input-visible {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0.35rem !important;
  font-size: 0.8rem !important;
  color: var(--text) !important;
  background: #151c16 !important;
  border: 1px dashed var(--accent) !important;
  border-radius: 8px !important;
}

.attach-btn {
  width: 100%;
  text-align: center;
  margin: 0;
  padding: 0.55rem 0.4rem !important;
  font-size: 0.9rem !important;
}

.small-note {
  font-size: 0.8rem;
  margin: 0;
}

.thumb-link { display: block; }
.thumb {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: #111;
}

@media (max-width: 640px) {
  header h1 { font-size: 1.15rem; }
  .arrow-cell { width: 62px; }
  .arrow-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.delete-request-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
  width: 100%;
}
.delete-request-form label { width: 100%; margin-bottom: 0; }
.delete-request-form input[type="text"] {
  flex: 1;
  min-width: 160px;
  margin-bottom: 0;
}

.donation-panel {
  border-color: rgba(196, 163, 90, 0.45);
  background: linear-gradient(160deg, rgba(196, 163, 90, 0.08), var(--panel));
}

.btc-address {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  word-break: break-all;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: #0c100d;
  border: 1px solid var(--border);
  color: var(--accent);
  margin: 0.35rem 0 0;
}
