:root{
  --black:#05090c;--gun:#111b22;--gun2:#17262f;--gun3:#213039;--edge:#31424c;
  --white:#f4f7f8;--muted:#aab7bf;--green:#38f14b;--blue:#2f80ff;--red:#e44b50;--gold:#d5a05a
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--black);color:var(--white);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body{
  background-image:linear-gradient(rgba(0,0,0,.45),rgba(0,0,0,.45)),url('/assets/img/bg-diamond-plate.png');
  background-size:cover;background-position:center;background-attachment:fixed;background-repeat:no-repeat
}
body.range-mode{
  background-image:linear-gradient(rgba(0,0,0,.62),rgba(0,0,0,.62)),url('/assets/img/bg-range.png')
}
.app-shell{min-height:100dvh;padding:max(12px,env(safe-area-inset-top)) 14px max(18px,env(safe-area-inset-bottom));max-width:980px;margin:auto}
.boot-screen{min-height:80dvh;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:16px;text-align:center}
.boot-screen img{width:min(560px,92vw)}
.loader{width:38px;height:38px;border:4px solid #33434d;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}

.app-header{display:flex;align-items:flex-start;gap:10px;margin-bottom:14px}
.app-header .brand{width:min(640px,82%);display:block}
.header-actions{margin-left:auto;display:flex;gap:8px;align-items:flex-start}
.icon-button,.back-button{border:1px solid var(--edge);background:#0c151b;color:#fff;border-radius:12px;padding:9px 11px;font-weight:800;cursor:pointer;text-decoration:none}
.profile-nav-button{display:flex;flex-direction:column;align-items:center;gap:3px;padding:5px 8px;min-width:72px}
.profile-nav-button img{width:34px;height:34px;border-radius:10px;display:block}
.profile-nav-button span{font-size:8px;font-weight:900;white-space:nowrap}

.screen-title{background:rgba(17,27,34,.96);border:1px solid var(--edge);border-radius:15px;padding:12px 14px;margin-bottom:14px;display:flex;align-items:center;gap:10px}
.screen-title h1{font-size:20px;margin:0}.screen-title p{margin:3px 0 0;color:var(--muted);font-size:12px}
.home-grid{display:grid;gap:14px}
.feature-card,.tactical-card,.panel{background:linear-gradient(135deg,rgba(17,27,34,.98),rgba(23,38,47,.98));border:1px solid var(--edge);border-radius:22px;box-shadow:0 10px 25px rgba(0,0,0,.25)}
.feature-card{display:grid;grid-template-columns:1fr 112px;gap:12px;padding:14px;cursor:pointer}.feature-card h2{font-size:19px;letter-spacing:.7px;margin:0 0 7px}.feature-card p{color:var(--muted);font-size:13px;line-height:1.45;margin:0 0 18px;white-space:pre-line}.feature-card img{width:108px;height:108px;object-fit:contain;background:rgba(0,0,0,.25);border:1px solid var(--edge);border-radius:20px;padding:6px}
.outline-action,.primary-button{width:100%;display:flex;justify-content:center;align-items:center;border-radius:13px;padding:11px 14px;font-size:12px;font-weight:900;letter-spacing:.8px;cursor:pointer;text-decoration:none}.outline-action{border:2px solid var(--blue);color:#fff;background:transparent}.primary-button{border:1px solid rgba(56,241,75,.65);background:var(--blue);color:#fff;font-size:14px;min-height:54px}.secondary-button{border:1px solid var(--edge);background:#0c151b;color:#fff;border-radius:11px;padding:10px 13px;font-weight:800;cursor:pointer;min-height:50px}
.tactical-card{padding:16px;margin-bottom:14px}.assessment-card{display:grid;grid-template-columns:1fr 92px;gap:12px;align-items:center}.assessment-card img{width:90px;height:90px;object-fit:contain;border-radius:17px;background:#0b1217;border:1px solid var(--edge);padding:5px}.assessment-card h2{margin:0;font-size:21px}.neon{color:var(--green);font-weight:900}.muted{color:var(--muted)}.panel{padding:16px}

/* Profiles */
.profile-section-title{font-size:19px;font-weight:900;letter-spacing:1.3px;margin:0 0 10px}
.profile-row{display:grid;grid-template-columns:86px 1fr;gap:14px;align-items:center;padding:5px 0 12px;border-bottom:1px solid #2b3941}.profile-row:last-child{border-bottom:0}
.avatar{width:86px;height:86px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#20313b;border:1px solid var(--edge);font-weight:900;overflow:hidden;font-size:22px}.avatar img{width:100%;height:100%;object-fit:cover;display:block}
.profile-role{color:var(--blue);font-size:10px;font-weight:900;margin-top:2px}.profile-email{color:var(--muted);font-size:12px;margin-top:3px}.profile-counts{color:var(--green);font-size:12px;font-weight:800;margin-top:4px}
.gear-list{display:grid;gap:10px;margin-top:12px}.gear-item{display:grid;grid-template-columns:72px 1fr;gap:10px;align-items:center;padding:10px;background:#0b1217;border:1px solid #2b3941;border-radius:13px}.gear-thumb{width:72px;height:54px;object-fit:cover;border-radius:9px;background:#05090c}.gear-type{font-size:11px;color:var(--green);font-weight:900;letter-spacing:.7px}.gear-desc{font-size:13px;color:var(--muted);margin-top:3px}

.history-row{padding:12px 0;border-bottom:1px solid #2b3941}.history-row:last-child{border-bottom:0}.history-row b{display:block}.history-meta{display:flex;gap:10px;flex-wrap:wrap;color:var(--muted);font-size:12px;margin-top:5px}
.setup-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:grid;gap:6px}.field label{color:var(--muted);font-size:12px;font-weight:700}.field input,.field select,.field textarea{width:100%;border:1px solid var(--edge);border-radius:11px;background:#071016;color:#fff;padding:11px;font-size:16px}.field textarea{min-height:90px}.participant-pick{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #2b3941;border-radius:12px;margin-top:8px;background:#0b1217}.participant-pick input{width:20px;height:20px}

/* Android-style drill runner */
.runner-wrap{display:grid;gap:14px}.drill-progress{display:flex;gap:6px;width:100%}.drill-progress button{flex:1;height:34px;border:0;border-radius:10px;background:var(--edge);color:var(--muted);font-weight:900;cursor:pointer}.drill-progress button.current{background:var(--green);color:#05090c}.drill-progress button.complete{background:var(--blue);color:#fff}.drill-progress button.skipped{background:var(--red);color:#05090c}
.runner-kicker{color:var(--green);font-size:14px;font-weight:900;letter-spacing:2px}.runner-card{padding:16px;background:linear-gradient(135deg,rgba(17,27,34,.98),rgba(23,38,47,.98));border:1px solid var(--edge);border-radius:22px}.runner-label{color:var(--muted);font-size:12px;font-weight:800;letter-spacing:2px}.runner-distance{font-size:26px;font-weight:900;margin-top:5px}.runner-divider{height:1px;background:var(--edge);margin:12px 0}.runner-instructions{font-size:17px;line-height:1.5;font-weight:500}.time-display{color:var(--green);font:900 52px/1 ui-monospace,SFMono-Regular,Menlo,monospace;margin:8px 0 5px}.time-seconds{color:var(--muted);font-size:12px;font-weight:800}.number-pad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.number-pad button{height:58px;border-radius:13px;border:1px solid var(--edge);background:var(--gun2);color:#fff;font-size:22px;font-weight:900;cursor:pointer}.number-pad button.clear{color:var(--red);font-size:15px}.runner-actions{display:grid;grid-template-columns:1fr 1.25fr;gap:10px}.runner-actions button{width:100%}

/* Android-style score screens */
.target-info{padding:14px;background:linear-gradient(135deg,rgba(17,27,34,.98),rgba(23,38,47,.98));border:1px solid var(--edge);border-radius:18px}.target-info .rounds{color:var(--green);font-size:14px;font-weight:900;letter-spacing:2px}.target-info .target-title{font-size:20px;font-weight:900;margin-top:4px}.score-label{color:var(--muted);font-size:12px;font-weight:800;letter-spacing:2px}.hit-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.hit-square{aspect-ratio:1.35;border-radius:16px;background:var(--gun);border:1px solid var(--edge);display:flex;align-items:center;justify-content:center;cursor:pointer}.hit-square.selected{border:3px solid var(--green)}.hit-square.static{cursor:default}.hit-square .letter{font-size:44px;font-weight:900;line-height:1}.hit-square .value{font:900 32px/1 ui-monospace,SFMono-Regular,Menlo,monospace;margin-top:4px}.hit-square.selected .letter,.hit-square.selected .value{color:var(--green)}

.score-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.stat{padding:13px;text-align:center;border:1px solid var(--edge);border-radius:13px;background:#0b1217}.stat b{display:block;font-size:22px;color:var(--green)}.leaderboard-row{display:grid;grid-template-columns:42px 1fr auto;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid #2b3941}
.app-alert{padding:11px 13px;border-radius:11px;margin-bottom:12px;background:#14222a;border:1px solid #31424c}.app-alert.error{border-color:#8f3438;background:#2d1417}.app-alert.success{border-color:#2d7040;background:#11291a}.sync-chip{font-size:11px;font-weight:900;padding:5px 8px;border-radius:999px;background:#24313a;color:var(--muted)}.sync-chip.synced{background:#12341b;color:#6cf77b}.sync-chip.pending{background:#3a2b13;color:#ffcb6b}
.auth-body{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:20px}.auth-card{width:min(440px,100%);background:#101a21;border:1px solid var(--edge);border-radius:22px;padding:24px}.auth-brand{width:100%;margin-bottom:15px}.auth-form{display:grid;gap:14px}.auth-form label{display:grid;gap:6px;color:var(--muted);font-weight:700}.auth-form input{padding:12px;border-radius:11px;border:1px solid var(--edge);background:#071016;color:#fff;font-size:16px}.text-link{display:block;color:#a9cfff;margin-top:16px;text-align:center}

@media(max-width:680px){
  .app-shell{padding-left:10px;padding-right:10px}.feature-card{grid-template-columns:1fr 94px}.feature-card img{width:90px;height:90px}.setup-grid{grid-template-columns:1fr}.score-summary{grid-template-columns:1fr 1fr}.app-header .brand{width:78%}.header-actions{gap:5px}.icon-button{padding:7px 8px}.profile-nav-button{min-width:62px}.profile-nav-button img{width:30px;height:30px}.profile-nav-button span{font-size:7px}.runner-distance{font-size:22px}.runner-instructions{font-size:16px}.time-display{font-size:48px}.hit-square .letter{font-size:38px}.hit-square .value{font-size:28px}.profile-row{grid-template-columns:72px 1fr}.avatar{width:72px;height:72px}
}

/* =========================================================
   v0.3 Android parity — session setup / course / result
   ========================================================= */
.section-label{color:var(--muted);font-size:11px;font-weight:900;letter-spacing:2px;margin:3px 0 8px}
.setup-page,.course-page,.review-page{display:grid;gap:14px}
.standard-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.standard-pill{min-height:58px;border-radius:14px;border:1px solid var(--edge);background:var(--gun);color:var(--muted);font-size:16px;font-weight:900;cursor:pointer}
.standard-pill.selected{background:#204aa8;color:#fff;border:2px solid var(--green)}
.shooter-count-card{display:grid;grid-template-columns:80px 1fr 80px;align-items:center;min-height:112px;background:linear-gradient(135deg,rgba(17,27,34,.98),rgba(23,38,47,.98));border:1px solid var(--edge);border-radius:20px;overflow:hidden}
.count-control{height:100%;border:0;background:rgba(0,0,0,.06);color:#fff;font-size:34px;font-weight:900;cursor:pointer}.count-control:disabled{color:#71808a}.count-value{text-align:center;color:var(--green);font:900 42px/1 ui-monospace,SFMono-Regular,Menlo,monospace}
.setup-shooter-list{display:grid;gap:10px}.setup-shooter-card{background:linear-gradient(135deg,rgba(17,27,34,.98),rgba(23,38,47,.98));border:1px solid var(--edge);border-radius:20px;padding:14px}.setup-shooter-main{display:flex;align-items:center;gap:12px}.setup-avatar,.chooser-avatar{width:64px;height:64px;flex:0 0 auto;border-radius:18px;overflow:hidden;background:#20313b;border:1px solid var(--edge);display:flex;align-items:center;justify-content:center;font-weight:900}.setup-avatar img,.chooser-avatar img{width:100%;height:100%;object-fit:cover}.setup-avatar-fallback{color:#fff}.setup-shooter-copy{min-width:0;flex:1}.setup-shooter-kicker{font-size:10px;color:var(--muted);font-weight:900;letter-spacing:1.4px}.setup-shooter-name{font-size:19px;font-weight:900;margin-top:3px}.setup-shooter-gear{font-size:13px;line-height:1.4;color:var(--green);margin-top:5px}.setup-shooter-missing{font-size:12px;color:var(--red);margin-top:5px}.setup-chevron{color:var(--blue);font-size:22px;font-weight:900}.setup-change{margin-top:12px}.setup-temp{width:100%;padding:16px;border-radius:15px;border:1px solid var(--edge);background:var(--gun);color:#fff;font-size:18px}.setup-continue{margin-top:2px}
.setup-modal{position:fixed;inset:0;z-index:1000;background:rgba(0,0,0,.78);display:flex;align-items:center;justify-content:center;padding:18px}.setup-modal-card{width:min(840px,100%);max-height:88dvh;overflow:auto;background:#111b22;border:1px solid var(--edge);border-radius:22px;padding:18px;box-shadow:0 30px 80px rgba(0,0,0,.55)}.setup-modal-head{display:flex;gap:10px;align-items:flex-start;justify-content:space-between}.setup-modal-head h2{margin:3px 0 14px}.modal-close{width:40px;height:40px;border-radius:12px;border:1px solid var(--edge);background:#081116;color:#fff;font-size:24px}.chooser-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.chooser-list{display:grid;gap:8px}.chooser-profile,.chooser-gear{width:100%;display:flex;align-items:center;gap:10px;text-align:left;border:1px solid var(--edge);background:#0b1217;color:#fff;border-radius:14px;padding:10px;cursor:pointer}.chooser-profile.selected,.chooser-gear.selected{border:2px solid var(--green)}.chooser-profile:disabled{opacity:.38;cursor:not-allowed}.chooser-profile span,.chooser-gear span:last-child{display:grid;gap:3px}.chooser-profile small,.chooser-gear small{color:var(--muted);font-size:11px}.chooser-avatar{width:46px;height:46px;border-radius:12px}.radio-dot{width:18px;height:18px;border-radius:50%;border:2px solid var(--muted);flex:0 0 auto}.chooser-gear.selected .radio-dot{border-color:var(--green);box-shadow:inset 0 0 0 4px #0b1217;background:var(--green)}.modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}

.course-main-card{background:linear-gradient(135deg,rgba(17,27,34,.98),rgba(23,38,47,.98));border:1px solid var(--edge);border-radius:22px;padding:18px}.course-kicker{color:var(--green);font-size:14px;font-weight:900;letter-spacing:2px}.course-title-line{font-size:23px;font-weight:900;margin-top:4px}.course-card-image{display:block;width:100%;height:auto;border-radius:20px;margin-top:14px}.course-target-detail-grid,.course-summary-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.mini-info{white-space:pre-line;background:var(--gun2);border:1px solid var(--edge);border-radius:14px;padding:13px}.mini-info small{display:block;color:var(--muted);font-size:10px;font-weight:900;letter-spacing:1.2px;margin-bottom:5px}.mini-info b{display:block;font-size:14px;line-height:1.4}.course-diagram{margin-top:16px}.course-target-row{display:grid;grid-template-columns:1fr 90px 1fr;gap:12px;align-items:center}.rifle-target-row{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;align-items:end}.silhouette{min-height:150px;position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;border:2px solid #f1f4f6;background:rgba(0,0,0,.08);clip-path:polygon(34% 0,66% 0,66% 22%,78% 22%,92% 38%,92% 75%,75% 100%,25% 100%,8% 75%,8% 38%,22% 22%,34% 22%);padding:24px 12px 18px;text-align:center}.silhouette.compact{min-height:118px;padding:22px 6px 14px}.silhouette span{font-weight:900}.silhouette small{font-size:11px;color:var(--muted)}.silhouette small b{color:var(--green)}.target-spacing{text-align:center;color:var(--muted);display:grid;gap:4px}.target-spacing b{font-size:12px}.target-spacing small,.sticks-label{font-size:9px;font-weight:900;letter-spacing:1.5px}.sticks-label{text-align:center;color:var(--muted);margin:12px 0 4px}.stick-field{height:250px;position:relative}.dash-line{position:absolute;left:50%;top:0;bottom:0;border-left:2px dashed rgba(170,183,191,.23)}.stick-row{position:absolute;left:0;right:0;height:24px}.stick-row.r0{top:5%}.stick-row.r1{top:25%}.stick-row.r2{top:45%}.stick-row.r3{top:66%}.stick-row.r4{top:87%}.stick-row span{position:absolute;right:3%;top:2px;color:var(--muted);font-size:11px;font-weight:800}.stick{position:absolute;top:9px;width:14%;height:4px;background:#fff}.stick.center{left:43%}.stick.left{left:17%}.stick.right{left:69%}.rifle-sticks{height:260px}

.classification-banner{padding:16px;text-align:center;color:#05090c;border:2px solid #05090c;border-radius:14px;font-size:25px;font-weight:1000;letter-spacing:.3px}.class-minuteman{background:#37ef4b}.class-militiaman{background:#3d82ff}.class-prepared{background:#d5a05a}.class-training{background:#ff2929}.review-stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.stat-card{text-align:center;background:var(--gun2);border:1px solid var(--edge);border-radius:14px;padding:15px}.stat-card small{display:block;color:var(--muted);font-size:10px;font-weight:900;letter-spacing:1px}.stat-card b{display:block;font-size:24px;margin-top:6px}.stat-card.highlight{border:2px solid var(--green)}.stat-card.highlight b{color:var(--green)}.review-card{background:linear-gradient(135deg,rgba(17,27,34,.98),rgba(23,38,47,.98));border:1px solid var(--edge);border-radius:20px;padding:15px}.review-card h3{margin:0 0 12px;font-size:15px;letter-spacing:.8px}.review-label{color:var(--muted);font-size:10px;font-weight:900;margin-bottom:5px}.review-gear{color:var(--green);font-size:13px;font-weight:800;line-height:1.45}.score-table-row{display:grid;grid-template-columns:1.5fr repeat(4,1fr);gap:6px;align-items:center;padding:8px 0}.score-table-row span{text-align:center}.score-table-row.header{color:var(--muted);font-size:11px;font-weight:900}.score-table-row.total{border-top:1px solid var(--edge);font-weight:900}.drill-time-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.review-notes{width:100%;min-height:150px;border:1px solid var(--edge);border-radius:15px;background:var(--gun);color:#fff;padding:12px;font:inherit}.review-edit{width:100%}

@media(max-width:680px){
  .standard-grid{grid-template-columns:1fr 1fr}.standard-pill{font-size:15px}.shooter-count-card{grid-template-columns:62px 1fr 62px;min-height:100px}.count-value{font-size:38px}.setup-avatar{width:58px;height:58px;border-radius:16px}.setup-shooter-name{font-size:17px}.chooser-columns{grid-template-columns:1fr}.course-title-line{font-size:20px}.course-target-row{grid-template-columns:1fr 66px 1fr;gap:6px}.silhouette{min-height:130px}.rifle-target-row{grid-template-columns:repeat(2,1fr)}.silhouette.compact{min-height:115px}.review-stat-grid{grid-template-columns:1fr 1fr}.classification-banner{font-size:22px}.course-target-detail-grid{grid-template-columns:1fr 1fr}
}


/* =========================================================
   v0.4 Course layout geometry parity
   Fixes target outline rendering and prevents the course
   geometry from stretching across wide desktop screens.
   ========================================================= */
.android-course-diagram{
  width:min(100%,560px);
  margin:16px auto 0;
}
.course-target-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 86px minmax(0,1fr);
  gap:8px;
  align-items:center;
}
.course-target-slot{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
}
.course-silhouette{
  width:118px;
  height:145px;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}
.course-silhouette.compact{
  width:84px;
  height:108px;
}
.course-silhouette-outline{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:visible;
}
.course-silhouette-outline path{
  fill:none;
  stroke:#f4f7f8;
  stroke-width:2.35;
  vector-effect:non-scaling-stroke;
  stroke-linejoin:miter;
}
.course-silhouette-copy{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  line-height:1.25;
  font-size:11px;
  font-weight:800;
  color:var(--muted);
}
.course-silhouette-copy strong{
  color:var(--white);
  font-size:15px;
  font-weight:1000;
  margin-bottom:6px;
}
.course-silhouette-copy .head-count{
  color:var(--green);
  font-weight:900;
  margin-bottom:4px;
}
.course-silhouette.compact .course-silhouette-copy{
  font-size:7px;
}
.course-silhouette.compact .course-silhouette-copy strong{
  font-size:8px;
  line-height:1.1;
  max-width:66px;
  margin-bottom:4px;
}
.target-spacing{
  text-align:center;
  color:var(--muted);
  display:grid;
  gap:4px;
  align-content:center;
}
.target-spacing b{font-size:12px}
.target-spacing small,.sticks-label{
  font-size:9px;
  font-weight:900;
  letter-spacing:1.5px;
}
.sticks-label{
  text-align:center;
  color:var(--muted);
  margin:8px 0 4px;
}
.carry-stick-field{
  width:min(100%,430px);
  height:230px;
  margin:0 auto;
}
.rifle-sticks{
  width:min(100%,500px);
  height:250px;
  margin:0 auto;
}
.stick-field{position:relative}
.dash-line{
  position:absolute;
  left:50%;
  top:0;
  bottom:0;
  border-left:2px dashed rgba(170,183,191,.23);
}
.stick-row{
  position:absolute;
  left:0;
  right:0;
  height:28px;
}
.stick-row.r0{top:4%}
.stick-row.r1{top:24%}
.stick-row.r2{top:44%}
.stick-row.r3{top:64%}
.stick-row.r4{top:84%}
.stick-row span{
  position:absolute;
  right:0;
  top:5px;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}
.stick{
  position:absolute;
  top:10px;
  width:14%;
  height:4px;
  background:#fff;
}
.stick.center{left:43%}
.stick.left{left:17%}
.stick.right{left:69%}
.rifle-target-row{
  width:min(100%,560px);
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:4px;
  align-items:end;
}
.rifle-spacing-row{
  width:min(100%,470px);
  margin:4px auto 0;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:8px;
  text-align:center;
  color:var(--muted);
  font-size:9px;
  font-weight:900;
}
.rifle-spacing-row small{
  font-size:9px;
  letter-spacing:1px;
}

@media(max-width:680px){
  .android-course-diagram{width:100%;margin-top:14px}
  .course-target-row{grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr);gap:4px}
  .course-silhouette{width:104px;height:132px}
  .course-silhouette-copy strong{font-size:14px}
  .course-silhouette-copy{font-size:10px}
  .course-silhouette.compact{width:76px;height:100px}
  .rifle-target-row{grid-template-columns:repeat(4,1fr);gap:2px}
  .carry-stick-field{height:230px}
  .stick-row span{font-size:11px}
}

@media(max-width:430px){
  .course-silhouette{width:92px;height:122px}
  .course-silhouette.compact{width:68px;height:92px}
  .course-silhouette-copy strong{font-size:13px}
  .course-silhouette-copy{font-size:9px}
  .course-target-row{grid-template-columns:minmax(0,1fr) 58px minmax(0,1fr)}
  .target-spacing b{font-size:11px}
  .target-spacing small{font-size:7px}
  .rifle-target-row{gap:0}
}

/* =========================================================
   v0.5 Course layout cleanup
   - Image-based Android course cards render as the card itself,
     without a duplicated web heading/card around them.
   - Carry Pistol / Close Quarters Rifle targets use one SVG
     for both outline and labels so the silhouette cannot break.
   ========================================================= */
.course-main-card-image-only{
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  overflow:hidden;
}
.course-main-card-image-only .standalone-course-image{
  display:block;
  width:min(100%,760px);
  height:auto;
  margin:0 auto;
  border-radius:22px;
}
.course-target-svg{
  display:block;
  width:118px;
  height:145px;
  overflow:visible;
  flex:0 0 auto;
}
.course-target-svg.compact{
  width:76px;
  height:105px;
}
.course-target-svg .target-outline{
  fill:rgba(0,0,0,.04);
  stroke:#f4f7f8;
  stroke-width:2.2;
  vector-effect:non-scaling-stroke;
  stroke-linejoin:miter;
}
.course-target-svg text{
  font-family:inherit;
  font-weight:900;
  dominant-baseline:middle;
}
.course-target-svg .target-label{
  fill:#f4f7f8;
  font-size:11px;
  font-weight:1000;
}
.course-target-svg .target-head{
  fill:var(--green);
  font-size:8px;
}
.course-target-svg .target-torso{
  fill:var(--muted);
  font-size:8px;
}
.course-target-svg.compact .target-label{font-size:8px}
.course-target-svg.compact .target-head,
.course-target-svg.compact .target-torso{font-size:7px}

.rifle-spacing-measure{
  width:min(100%,560px);
  height:31px;
  margin:2px auto 0;
  position:relative;
}
.rifle-spacing-measure .measure-segment{
  position:absolute;
  top:7px;
  height:2px;
  background:var(--muted);
}
.rifle-spacing-measure .measure-segment.left{left:12.5%;right:50%}
.rifle-spacing-measure .measure-segment.right{left:50%;right:12.5%}
.rifle-spacing-measure .measure-tick{
  position:absolute;
  top:1px;
  width:2px;
  height:14px;
  background:var(--muted);
}
.rifle-spacing-measure .measure-tick.far-left{left:12.5%}
.rifle-spacing-measure .measure-tick.center{left:50%}
.rifle-spacing-measure .measure-tick.far-right{left:87.5%}
.rifle-spacing-measure .measure-label{
  position:absolute;
  top:16px;
  color:var(--muted);
  font-size:9px;
  font-weight:900;
  transform:translateX(-50%);
}
.rifle-spacing-measure .measure-label.left{left:31.25%}
.rifle-spacing-measure .measure-label.right{left:68.75%}
.rifle-spacing-caption{
  color:var(--muted);
  text-align:center;
  font-size:9px;
  font-weight:900;
  letter-spacing:1px;
  margin-top:0;
}
.rifle-course .sticks-label{margin-top:6px}
.rifle-sticks .stick{width:11%}
.rifle-sticks .stick.left{left:7%}
.rifle-sticks .stick.center{left:44.5%}
.rifle-sticks .stick.right{left:82%}
.rifle-sticks .stick-row.r0{top:8%}
.rifle-sticks .stick-row.r1{top:29%}
.rifle-sticks .stick-row.r2{top:50%}
.rifle-sticks .stick-row.r3{top:71%}
.rifle-sticks .stick-row.r4{top:92%}

/* v0.6: On Close Quarters Rifle, the 10 yd and 25 yd outside sticks
   align directly beneath the FAR LEFT and FAR RIGHT target centers.
   Their yard labels sit in the open space between the center and right sticks. */
.rifle-sticks .stick-row.outside-aligned span{
  right:auto;
  left:68.75%;
  transform:translateX(-50%);
  white-space:nowrap;
}

@media(max-width:680px){
  .course-main-card-image-only .standalone-course-image{
    width:100%;
    border-radius:18px;
  }
  .course-target-svg{width:104px;height:132px}
  .course-target-svg.compact{width:68px;height:94px}
  .course-target-svg .target-label{font-size:10px}
  .course-target-svg .target-head,
  .course-target-svg .target-torso{font-size:7.5px}
  .course-target-svg.compact .target-label{font-size:7px}
  .course-target-svg.compact .target-head,
  .course-target-svg.compact .target-torso{font-size:6px}
}

@media(max-width:430px){
  .course-target-svg{width:92px;height:122px}
  .course-target-svg.compact{width:62px;height:86px}
}
