/* Number Current: a river and its bank. The board stays light in both themes,
   so colors here are fixed rather than themed. */
.nc-wrap { width: 100%; display: grid; gap: 12px; justify-items: center; }
.nc-river { width: 100%; height: auto; display: block; border-radius: 18px; touch-action: pan-y; cursor: pointer; background: #EDE3C8; box-shadow: inset 0 0 0 2px rgba(23, 58, 74, .2); }
.nc-river:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.nc-sand { fill: #EDE3C8; }
.nc-wet { fill: #C9B88E; opacity: .75; }
.nc-peb { fill: #DACDA9; }
.nc-reed path { fill: none; stroke: #4F8A3C; stroke-width: 3; stroke-linecap: round; }
.nc-reed path.leaf { stroke: #6FA855; }
.nc-reed .tail { fill: #7A5232; }
.nc-pad path { fill: #6FB35A; stroke: #3F7F33; stroke-width: 1.5; opacity: .9; }
.nc-ghost ellipse { fill: #A7ADB2; stroke: #173A4A; stroke-width: 2.5; stroke-dasharray: 4 3; opacity: .55; }
.nc-ghost path { fill: none; stroke: #173A4A; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: .5; }
.nc-ghost { animation: ncbob 2.4s ease-in-out infinite; }
@keyframes ncbob { 50% { transform: translateY(-4px); } }
.nc-ripple { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 3; stroke-dasharray: 40 30; animation: ncflow 7s linear infinite; }
.nc-ripple.r2 { stroke-width: 2; stroke-dasharray: 24 36; animation-duration: 10s; }
@keyframes ncflow { to { stroke-dashoffset: -280; } }
.flow { animation: ncflow 8s linear infinite; }

/* the line */
.nc-axis { stroke: #173A4A; stroke-width: 4; stroke-linecap: round; }
.nc-tick { stroke: #173A4A; stroke-width: 2; }
.nc-tick.big { stroke-width: 3.5; }
.nc-tick.five { stroke-width: 2.4; }
.nc-tick.unit { stroke: #4E6878; stroke-width: 1.6; }
.nc-tick.ten { stroke-width: 3; }
.nc-tick.mid { stroke: #5F7586; stroke-width: 3; }
.nc-tick.hintmark { stroke: #6A44C9; stroke-width: 3; }
.nc-tick.hintmark.thin { stroke-width: 2; }
.nc-tick.gapmark { stroke: #0E6A8A; stroke-width: 4; }
.nc-lab { font: 800 19px var(--f-math); fill: #173A4A; text-anchor: middle; }
.is-narrow .nc-lab { font-size: 16px; }
.nc-lab.soft { fill: #4E6878; }
.nc-lab.minor { font-size: 13px; font-weight: 700; fill: #3A5262; }
.nc-lab.hintlab { fill: #5A35B8; }
.nc-lab.gaplab { fill: #0B5A75; }
.nc-lab.truelab { fill: #9E2F1D; }
.nc-bar { stroke: #173A4A; stroke-width: 2; }
.nc-bar.hintlab { stroke: #5A35B8; }
.nc-bar.truelab { stroke: #9E2F1D; }
.nc-gap { fill: rgba(31, 143, 179, .28); stroke: #1F8FB3; stroke-width: 2; }

/* how close counts, and where it really lives */
.nc-zone { fill: rgba(255, 201, 77, .5); stroke: #C99312; stroke-width: 1.5; stroke-dasharray: 5 4; }
.nc-bull { fill: rgba(255, 166, 0, .8); }
.nc-zone.wide { fill: rgba(255, 201, 77, .28); }
.nc-zone.expert { fill: rgba(255, 186, 30, .72); stroke: #8A5A00; stroke-width: 2; stroke-dasharray: none; }
.nc-expert-edge { fill: none; stroke: #8A5A00; stroke-width: 2.5; stroke-dasharray: 5 3; }
.nc-key .bg { fill: rgba(255, 255, 255, .9); stroke: #8A5A00; stroke-width: 1.5; }
.nc-key text { font: 800 12px var(--f-ui); fill: #5C3D00; }
.nc-true line { stroke: #C2402F; stroke-width: 3; }
.nc-true path { fill: #E0523F; }
.nc-pill { fill: #fff; stroke: #C2402F; stroke-width: 2; }
.nc-gapline line { stroke: #C2402F; stroke-width: 2.5; stroke-dasharray: 5 4; }
.nc-gapline line.cap { stroke-dasharray: none; }

/* stones, arcs, the readout */
.nc-arc { fill: none; stroke: #1B6680; stroke-width: 2.6; stroke-dasharray: 6 5; }
.nc-arc.mine { stroke: #B07800; }
.nc-jumplab { font: 800 15px var(--f-math); fill: #3A2378; text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.nc-dropped { fill: #9AA3A8; stroke: #173A4A; stroke-width: 2.2; }
.nc-dropped.mine { fill: #FFC94D; }
.nc-dropped.shown-answer { fill: #FFE7A3; stroke-dasharray: 3 2; }
.nc-stone ellipse { fill: #A7ADB2; stroke: #173A4A; stroke-width: 3; }
.nc-stone .nc-shine { fill: #fff; stroke: none; opacity: .55; }
.nc-stone.sat ellipse { fill: #8E979D; stroke-width: 2.5; }
.nc-stem { stroke: #173A4A; stroke-width: 2.5; stroke-dasharray: 3 3; }
.nc-tip { fill: #173A4A; }
.nc-stone.down { animation: ncdrop .3s cubic-bezier(.5, 0, .7, 1.4) both; }
@keyframes ncdrop { from { transform: translateY(-32px); } to { transform: none; } }
.nc-read rect { fill: #fff; stroke: #173A4A; stroke-width: 2; }
.nc-read path { fill: #173A4A; }
.nc-read text { font: 800 20px var(--f-math); fill: #173A4A; text-anchor: middle; }

/* water effects */
.nc-splash ellipse { fill: none; stroke: #fff; stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: ncring 1s ease-out both; }
.nc-splash .r2 { animation-delay: .12s; }
.nc-splash .r3 { animation-delay: .24s; }
.nc-splash.good ellipse { stroke: #FFC94D; stroke-width: 3.5; }
@keyframes ncring { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.nc-drop { fill: #D7F1FA; stroke: #fff; stroke-width: 1; }
.nc-zoomtag { font: 800 22px var(--f-display); fill: #fff; text-anchor: middle; paint-order: stroke; stroke: #1B6680; stroke-width: 5px; stroke-linejoin: round; animation: nczoomtag 1.9s ease both; }
@keyframes nczoomtag { 0% { opacity: 0; } 20%, 75% { opacity: 1; } 100% { opacity: 0; } }
.nc-skipper { fill: #FFC94D; stroke: #173A4A; stroke-width: 2; }
.nc-swim { opacity: .92; }
.nc-count rect { fill: rgba(255, 255, 255, .88); stroke: #173A4A; stroke-width: 1.5; }
.nc-count text { font: 800 13px var(--f-math); fill: #173A4A; text-anchor: end; }

/* the target number in the coach line and feedback */
.nc-big { font-size: 1.25em; }
.nc-num { display: inline-flex; align-items: center; gap: .12em; white-space: nowrap; vertical-align: middle; }
.nc-frac { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.05; font-family: var(--f-math); font-size: .9em; margin: 0 .08em; }
.nc-frac > span:first-child { border-bottom: 2px solid currentColor; padding: 0 .15em; }

/* skip stones: the pattern so far */
.nc-seq { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px clamp(8px, 2.4vw, 14px); }
.nc-seq.jumps { padding-top: 20px; }
.nc-seq li { position: relative; display: flex; }
.nc-chip { min-width: clamp(36px, 9vw, 46px); height: 38px; padding: 0 8px; border-radius: 12px; display: inline-grid; place-items: center; font: 800 1.12rem var(--f-math); background: #E4E7EA; color: #173A4A; border: 2px solid #173A4A; box-shadow: 0 2px 0 #173A4A; }
.nc-seq li.mine .nc-chip { background: #FFC94D; }
.nc-seq li.answer .nc-chip { background: #FFE7A3; border-style: dashed; }
.nc-seq li.next .nc-chip { background: #fff; border: 2px dashed #1B6680; color: #1B6680; box-shadow: none; }
.nc-seq li.later .nc-chip { background: #fff; border: 2px dashed #6B767D; color: #4E5A61; box-shadow: none; }
.nc-jl { position: absolute; bottom: calc(100% + 3px); left: calc(-1 * clamp(4px, 1.2vw, 7px)); transform: translateX(-50%); white-space: nowrap; font: 800 .82rem var(--f-math); color: #3A2378; }

/* nudge buttons */
.nc-tools { width: 100%; display: grid; justify-items: center; }
.nc-nudge { display: flex; align-items: center; justify-content: center; gap: clamp(6px, 2.5vw, 12px); max-width: 100%; }
.nc-nb { min-width: 58px; min-height: 48px; border-radius: 14px; border: 2px solid #173A4A; background: #fff; color: #173A4A; font: 800 1.2rem var(--f-math); box-shadow: 0 3px 0 #173A4A; touch-action: manipulation; }
.nc-nb:active { transform: translateY(2px); box-shadow: 0 1px 0 #173A4A; }
.nc-readout { flex: 0 1 9.6em; min-width: 0; text-align: center; color: #464B57; font-weight: 600; font-size: .95rem; line-height: 1.25; }
.nc-move { display: block; font-size: .8rem; font-weight: 700; color: #8A3B12; }
.nc-readout b { font: 800 1.3rem var(--f-math); color: #173A4A; }

/* engraving the rule */
.nc-engrave { width: min(100%, 760px); display: grid; gap: 8px; }
.nc-eh { margin: 0; text-align: center; font-weight: 700; color: #464B57; }
.nc-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .nc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.nc-tile { min-height: 62px; display: grid; place-items: center; align-content: center; gap: 1px; padding: 8px 6px; border-radius: 16px; border: 2px solid #6B767D; background: linear-gradient(#F6F4EE, #E4E0D5); color: #1C1F26; box-shadow: 0 3px 0 #6B767D; touch-action: manipulation; }
.nc-tile b { font: 800 clamp(.98rem, 3.9vw, 1.12rem) var(--f-math); line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.nc-tile small { font-size: .8rem; color: #464B57; font-weight: 600; }
.nc-tile[aria-pressed="true"] { border-color: #173A4A; background: #FFE7A3; box-shadow: 0 0 0 3px rgba(255, 201, 77, .7), 0 3px 0 #173A4A; }
.nc-tile.nope { opacity: .5; box-shadow: none; border-style: dashed; cursor: not-allowed; }
.nc-tile.nope b { text-decoration: line-through; }
.nc-tablet { display: grid; justify-items: center; gap: 2px; min-width: 200px; padding: 12px 30px 14px; border-radius: 46% 46% 22px 22px / 34% 34% 22px 22px; background: radial-gradient(circle at 30% 25%, #D6DBDE, #B3BABF 70%); border: 3px solid #173A4A; box-shadow: 0 5px 0 #173A4A, inset 0 -6px 0 rgba(23, 58, 74, .15); color: #1B2A33; }
.nc-tab-k { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #1B2A33; }
.nc-tab-big { font: 800 1.9rem var(--f-math); color: #1B2A33; text-shadow: 0 1px 0 rgba(255, 255, 255, .6), 0 -1px 0 rgba(0, 0, 0, .3); }
.nc-tab-small { font-weight: 700; color: #1B2A33; }
.nc-tablet.carve { animation: nctab .45s cubic-bezier(.3, 1.4, .5, 1) both; }
.nc-tablet.carve .nc-tab-big { animation: nccarve .8s steps(8) .2s both; }
@keyframes nctab { from { transform: scale(.6) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 640px) {
  .nc-tablet { grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: center; column-gap: 14px; row-gap: 0; min-width: 0; padding: 8px 22px 9px; border-radius: 22px; }
  .nc-tab-k { grid-column: 1 / -1; justify-self: center; }
  .nc-tab-big { font-size: 1.55rem; }
}
@keyframes nccarve { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
/* the first stone of an estimate that gets a second try: a faint mark where it landed */
.nc-tried ellipse { fill: none; stroke: #173A4A; stroke-width: 2.5; stroke-dasharray: 4 3; opacity: .6; }
.nc-tried text { font: 700 13px var(--f-ui, system-ui); fill: #173A4A; text-anchor: middle; opacity: .75; }
