/* Cast & Catch Booking – front-end styles
   Theme colours are injected as --ccb-navy / --ccb-sea / --ccb-buoy from plugin settings. */

.ccb {
	--ccb-navy: #0b3954;
	--ccb-sea: #1b98a6;
	--ccb-buoy: #ff7f50;
	--ccb-paper: #eaf5f3;
	--ccb-shallow: #d3ece8;
	--ccb-deep: #86c3cb;
	--ccb-sand: #ecdcae;
	--ccb-brass: #d9a521;
	--ccb-ink: #12303f;
	--ccb-ink-soft: #4a6577;
	--ccb-line: rgba(11, 57, 84, .16);
	--ccb-white: #ffffff;
	--ccb-display: "Big Shoulders Display", "Oswald", "Arial Narrow", sans-serif;
	--ccb-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
	--ccb-ease: cubic-bezier(.22, .8, .3, 1);

	position: relative;
	box-sizing: border-box;
	max-width: 1080px;
	margin: 0 auto;
	padding: 28px 32px 0;
	border-radius: 24px;
	overflow: hidden;
	color: var(--ccb-ink);
	font-family: var(--ccb-body);
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
	background-color: var(--ccb-paper);
	/* chart graticule */
	background-image:
		linear-gradient(var(--ccb-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--ccb-line) 1px, transparent 1px);
	background-size: 100% 120px, 120px 100%;
	background-position: 0 -1px, -1px 0;
	box-shadow: 0 0 0 1px rgba(11, 57, 84, .22), 0 30px 60px -30px rgba(11, 57, 84, .55);
}
.ccb *, .ccb *::before, .ccb *::after { box-sizing: border-box; }
.ccb button { font: inherit; color: inherit; cursor: pointer; }
.ccb button:disabled { cursor: not-allowed; }
.ccb :focus-visible { outline: 3px solid var(--ccb-buoy); outline-offset: 2px; border-radius: 6px; }
.ccb svg { overflow: visible; }
.ccb-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ccb-loading { height: 420px; }

/* ---------- header ---------- */
.ccb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ccb-title {
	margin: 0;
	font-family: var(--ccb-display);
	font-weight: 800;
	font-size: clamp(2rem, 4.6vw, 3.25rem);
	line-height: .95;
	letter-spacing: .005em;
	color: var(--ccb-navy);
}
.ccb-sub { margin: 8px 0 0; color: var(--ccb-ink-soft); max-width: 46ch; }
.ccb-sound {
	flex: none; display: grid; place-items: center;
	width: 42px; height: 42px; border-radius: 50%;
	border: 1.5px solid var(--ccb-line); background: var(--ccb-white);
}
.ccb-sound svg { width: 22px; height: 22px; fill: var(--ccb-navy); }
.ccb-sound .ccb-sound-waves { fill: none; stroke: var(--ccb-navy); stroke-width: 2; stroke-linecap: round; opacity: .25; }
.ccb-sound[aria-pressed="true"] { background: var(--ccb-navy); border-color: var(--ccb-navy); }
.ccb-sound[aria-pressed="true"] svg { fill: #fff; }
.ccb-sound[aria-pressed="true"] .ccb-sound-waves { stroke: #fff; opacity: 1; }

/* ---------- fishing-line progress ---------- */
.ccb-line { position: relative; margin: 26px 0 10px; padding-top: 12px; --ccb-p: 0%; }
.ccb-line-svg { position: absolute; left: 8px; right: 8px; top: 0; width: calc(100% - 16px); height: 40px; pointer-events: none; }
.ccb-line-slack { fill: none; stroke: var(--ccb-ink-soft); stroke-width: 1.5; stroke-dasharray: 3 6; opacity: .45; vector-effect: non-scaling-stroke; }
.ccb-line-taut {
	fill: none; stroke: var(--ccb-navy); stroke-width: 2.5;
	stroke-dasharray: 100; stroke-dashoffset: 100;
	transition: stroke-dashoffset .9s var(--ccb-ease);
}
.ccb-knots { position: relative; height: 44px; list-style: none; margin: 0; padding: 0; }
.ccb-knots li { position: absolute; top: 0; margin: 0; padding: 0; left: calc(8px + var(--ccb-k) * (100% - 16px) / 4); transform: translateX(-50%); }
.ccb-knots li:first-child { transform: translateX(-8px); }
.ccb-knots li:last-child { transform: translateX(calc(-100% + 8px)); }
.ccb-knot { display: flex; flex-direction: column; align-items: center; gap: 8px; border: 0; background: none; padding: 0; }
.ccb-knots li:first-child .ccb-knot { align-items: flex-start; }
.ccb-knots li:last-child .ccb-knot { align-items: flex-end; }
.ccb-knot:disabled { cursor: default; }
.ccb-knot-dot {
	width: 16px; height: 16px; border-radius: 50%;
	background: var(--ccb-paper); border: 2.5px solid var(--ccb-ink-soft);
	transition: transform .35s var(--ccb-ease), background .35s, border-color .35s;
}
.ccb-knot.is-done .ccb-knot-dot { background: var(--ccb-navy); border-color: var(--ccb-navy); }
.ccb-knot.is-now .ccb-knot-dot { background: var(--ccb-buoy); border-color: var(--ccb-navy); transform: scale(1.35); }
.ccb-knot-label { font-size: 13px; font-weight: 600; color: var(--ccb-ink-soft); white-space: nowrap; }
.ccb-knot.is-now .ccb-knot-label { color: var(--ccb-navy); }
.ccb-knot.is-done:not(:disabled):hover .ccb-knot-label { text-decoration: underline; }

/* ---------- stage + panels ---------- */
.ccb-stage { position: relative; min-height: 420px; margin-top: 18px; }
.ccb-panel { animation: none; }
.ccb-panel.is-entering { animation: ccb-in .55s var(--ccb-ease) both; }
.ccb-panel.is-leaving {
	position: absolute; inset: 0 0 auto 0; pointer-events: none;
	animation: ccb-out .4s ease-in both;
}
@keyframes ccb-in { from { opacity: 0; transform: translateX(calc(var(--ccb-dir, 1) * 60px)); } to { opacity: 1; transform: none; } }
@keyframes ccb-out { to { opacity: 0; transform: translateX(calc(var(--ccb-dir, 1) * -60px)); } }

.ccb-intro { margin-bottom: 16px; }
.ccb-q {
	margin: 0; font-family: var(--ccb-display); font-weight: 700;
	font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.05; color: var(--ccb-navy);
}
.ccb-q:focus { outline: none; }
.ccb-hint { margin: 4px 0 0; color: var(--ccb-ink-soft); font-size: 15px; }
.ccb-label { margin: 0 0 8px; font-weight: 700; font-size: 14px; color: var(--ccb-navy); }

/* ---------- step 1: waters chart ---------- */
.ccb-waters { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.ccb-chart-wrap { border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1.5px var(--ccb-navy); background: var(--ccb-shallow); }
.ccb-chart { display: block; width: 100%; height: auto; }
.ccb-depth-0 { stop-color: #e4f4ef; }
.ccb-depth-1 { stop-color: var(--ccb-shallow); }
.ccb-depth-2 { stop-color: var(--ccb-deep); }
.ccb-ripple-mark { fill: none; stroke: var(--ccb-navy); stroke-width: 1; opacity: .35; stroke-linecap: round; }
.ccb-contour { fill: none; stroke: var(--ccb-navy); stroke-width: 1; stroke-dasharray: 2 5; opacity: .45; }
.ccb-contour-label { font: 600 10px/1 var(--ccb-body); fill: var(--ccb-navy); opacity: .65; }
.ccb-land { fill: var(--ccb-sand); stroke: #b9a46a; stroke-width: 1.5; }
.ccb-jetty { stroke: #7a6a40; stroke-width: 3; stroke-linecap: round; }
.ccb-harbor { fill: var(--ccb-navy); stroke: #fff; stroke-width: 2; }
.ccb-harbor-label { font: 700 12px var(--ccb-body); fill: #5d4f26; }
.ccb-compass-ring { fill: rgba(255, 255, 255, .55); stroke: var(--ccb-navy); stroke-width: 1; }
.ccb-compass-needle { fill: var(--ccb-navy); }
.ccb-compass-ew { opacity: .35; }
.ccb-compass-n { font: 800 12px var(--ccb-display); fill: var(--ccb-navy); text-anchor: middle; }

.ccb-buoy { cursor: pointer; outline: none; }
.ccb-bob { animation: ccb-bob 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.ccb-buoy:nth-of-type(2n) .ccb-bob { animation-duration: 3.1s; animation-delay: -.8s; }
@keyframes ccb-bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-3px) rotate(4deg); } }
.ccb-buoy-ring { fill: rgba(11, 57, 84, .18); }
.ccb-buoy-body { fill: var(--ccb-buoy); stroke: var(--ccb-navy); stroke-width: 1.5; stroke-linejoin: round; }
.ccb-buoy-band { fill: #fff; }
.ccb-buoy-mast { stroke: var(--ccb-navy); stroke-width: 2; }
.ccb-buoy-light { fill: #ffe27a; stroke: var(--ccb-navy); stroke-width: 1; }
.ccb-buoy-label {
	font: 700 12px var(--ccb-body); fill: var(--ccb-navy); text-anchor: middle;
	paint-order: stroke; stroke: rgba(234, 245, 243, .95); stroke-width: 4px; stroke-linejoin: round;
}
.ccb-buoy.is-night .ccb-buoy-body { fill: var(--ccb-navy); }
.ccb-buoy.is-night .ccb-buoy-light { fill: #fff3a8; filter: drop-shadow(0 0 4px #fff3a8); }
.ccb-glow { animation: ccb-glow 3s ease-in-out infinite; }
@keyframes ccb-glow { 50% { opacity: .55; } }
.ccb-ping { fill: none; stroke: var(--ccb-buoy); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.ccb-buoy:hover .ccb-buoy-body, .ccb-buoy:focus-visible .ccb-buoy-body { filter: brightness(1.12); }
.ccb-buoy:focus-visible .ccb-buoy-ring { fill: none; stroke: var(--ccb-buoy); stroke-width: 2.5; }
.ccb-buoy.is-picked .ccb-buoy-label { fill: var(--ccb-buoy); stroke: var(--ccb-navy); }
.ccb-buoy.is-picked .ccb-ping, .ccb-buoy.is-match .ccb-ping { animation: ccb-ping 1.8s ease-out infinite; }
.ccb-buoy.is-match:not(.is-picked) .ccb-ping { stroke: var(--ccb-brass); stroke-width: 3; }
.ccb-buoy .ccb-ping-2 { animation-delay: .9s !important; }
@keyframes ccb-ping { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.4); } }

.ccb-school { pointer-events: none; opacity: 0; transition: opacity .4s; }
.ccb-school.is-on { opacity: 1; }
.ccb-swim path { fill: var(--ccb-navy); opacity: .55; }
.ccb-school.is-on .ccb-swim-0 { animation: ccb-swim0 5s linear infinite; }
.ccb-school.is-on .ccb-swim-1 { animation: ccb-swim1 6.5s linear infinite; }
.ccb-school.is-on .ccb-swim-2 { animation: ccb-swim2 4.4s linear infinite; }
@keyframes ccb-swim0 {
	0% { transform: rotate(0deg) translate(34px) rotate(90deg) scale(.8); }
	100% { transform: rotate(360deg) translate(34px) rotate(90deg) scale(.8); }
}
@keyframes ccb-swim1 {
	0% { transform: rotate(140deg) translate(46px) rotate(90deg) scale(.65); }
	100% { transform: rotate(500deg) translate(46px) rotate(90deg) scale(.65); }
}
@keyframes ccb-swim2 {
	0% { transform: rotate(250deg) translate(26px) rotate(90deg) scale(.55); }
	100% { transform: rotate(610deg) translate(26px) rotate(90deg) scale(.55); }
}

.ccb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.ccb-chip {
	border: 1.5px solid var(--ccb-navy); background: transparent; border-radius: 999px;
	padding: 5px 12px; font-size: 14px; font-weight: 600; color: var(--ccb-navy);
	transition: background .2s, color .2s, transform .2s var(--ccb-ease);
}
.ccb-chip:hover { background: rgba(11, 57, 84, .07); }
.ccb-chip[aria-pressed="true"] { background: var(--ccb-navy); color: #fff; }
.ccb-chip[aria-pressed="true"]::before { content: "✓ "; }
.ccb-chip:active { transform: scale(.95); }

.ccb-tripcard {
	background: var(--ccb-white); border-radius: 16px; padding: 18px 20px;
	box-shadow: 0 0 0 1.5px var(--ccb-navy), 6px 6px 0 var(--ccb-navy);
}
.ccb-tripcard.is-empty { box-shadow: 0 0 0 1.5px var(--ccb-line); background: rgba(255, 255, 255, .5); color: var(--ccb-ink-soft); }
.ccb-tripcard.is-empty p { margin: 0; }
.ccb-tripcard.is-pop { animation: ccb-pop .45s var(--ccb-ease); }
@keyframes ccb-pop { from { transform: translateY(8px) rotate(-1deg); opacity: .3; } }
.ccb-zone { margin: 0; font-size: 13px; font-weight: 700; color: var(--ccb-sea); }
.ccb-tripname { margin: 2px 0 6px; font-family: var(--ccb-display); font-weight: 800; font-size: 1.75rem; line-height: 1; color: var(--ccb-navy); }
.ccb-desc { margin: 0 0 12px; color: var(--ccb-ink-soft); font-size: 15px; }
.ccb-facts { display: flex; gap: 0; margin: 0 0 12px; border-top: 1px dashed var(--ccb-line); border-bottom: 1px dashed var(--ccb-line); }
.ccb-facts div { flex: 1; padding: 8px 0; }
.ccb-facts div + div { border-left: 1px dashed var(--ccb-line); padding-left: 12px; }
.ccb-facts dt { font-family: var(--ccb-display); font-weight: 800; font-size: 1.45rem; line-height: 1; color: var(--ccb-navy); }
.ccb-facts dd { margin: 2px 0 0; font-size: 12px; color: var(--ccb-ink-soft); }
.ccb-species { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.ccb-species li { margin: 0; font-size: 13px; padding: 2px 9px; border-radius: 999px; background: var(--ccb-shallow); }
.ccb-species li.is-wanted { background: var(--ccb-brass); color: var(--ccb-navy); font-weight: 700; }

/* ---------- step 2: calendar + tide ---------- */
.ccb-day { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.ccb-cal { background: var(--ccb-white); border-radius: 18px; padding: 14px; box-shadow: 0 0 0 1.5px var(--ccb-navy); transition: opacity .2s; }
.ccb-cal.is-loading .ccb-cal-grid { opacity: .55; }
.ccb-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ccb-cal-title { font-family: var(--ccb-display); font-weight: 800; font-size: 1.35rem; color: var(--ccb-navy); }
.ccb-cal-nav { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--ccb-line); background: none; font-size: 22px !important; line-height: 1; }
.ccb-cal-nav:disabled { opacity: .3; }
.ccb-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ccb-cal-wd { text-align: center; font-size: 12px; font-weight: 700; color: var(--ccb-ink-soft); padding-bottom: 4px; }
.ccb-cal-day {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px;
	min-height: 74px; padding: 6px 2px 4px; border-radius: 10px;
	border: 1px solid transparent; background: var(--ccb-paper);
	transition: transform .2s var(--ccb-ease), background .2s, border-color .2s;
	animation: ccb-rise .5s var(--ccb-ease) both; animation-delay: calc(var(--ccb-i) * 12ms);
}
@keyframes ccb-rise { from { opacity: 0; transform: translateY(6px); } }
.ccb-cal-day:not(:disabled):hover { border-color: var(--ccb-sea); transform: translateY(-2px); }
.ccb-cal-num { font-weight: 700; font-size: 14px; line-height: 1; }
.ccb-moon { display: block; }
.ccb-moon-dark { fill: #2a4656; }
.ccb-moon-lit { fill: #f6f0d2; }
.ccb-cal-tide { width: 80%; height: 12px; }
.ccb-cal-tide path { fill: none; stroke: var(--ccb-sea); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.ccb-bite { display: inline-flex; gap: 2px; align-items: center; }
.ccb-bite svg { width: 18px; height: 14px; }
.ccb-bite svg.on { fill: var(--ccb-brass); }
.ccb-bite svg.off { fill: var(--ccb-line); }
.ccb-bite-sm { gap: 0; }
.ccb-bite-sm svg { width: 8px; height: 7px; }
.ccb-cal-flag { font-size: 10px; font-weight: 700; color: #a33; line-height: 1; }
.ccb-cal-day.is-closed, .ccb-cal-day.is-full { opacity: .38; background: transparent; }
.ccb-cal-day.is-closed .ccb-bite, .ccb-cal-day.is-closed .ccb-cal-tide { visibility: hidden; }
.ccb-cal-day.is-full { text-decoration: line-through; }
.ccb-cal-day.is-picked { background: var(--ccb-navy); color: #fff; border-color: var(--ccb-navy); transform: translateY(-2px); }
.ccb-cal-day.is-picked .ccb-cal-tide path { stroke: #9fe3ea; }
.ccb-cal-day.is-picked .ccb-bite svg.off { fill: rgba(255, 255, 255, .22); }

.ccb-dayinfo { background: var(--ccb-white); border-radius: 18px; padding: 18px; box-shadow: 0 0 0 1.5px var(--ccb-navy), 6px 6px 0 var(--ccb-navy); }
.ccb-dayinfo.is-empty { box-shadow: 0 0 0 1.5px var(--ccb-line); background: rgba(255, 255, 255, .5); }
.ccb-dayinfo-empty { text-align: center; color: var(--ccb-ink-soft); padding: 40px 10px; }
.ccb-dayinfo-empty svg { width: 70px; fill: none; stroke: var(--ccb-sea); stroke-width: 2.5; stroke-linecap: round; }
.ccb-dayinfo-date { margin: 0 0 10px; font-family: var(--ccb-display); font-weight: 800; font-size: 1.5rem; line-height: 1.05; color: var(--ccb-navy); }
.ccb-tidechart { width: 100%; height: auto; display: block; }
.ccb-sky-n { stop-color: #1d3550; }
.ccb-sky-d { stop-color: #f7b38a; }
.ccb-sky-m { stop-color: #bfe6f2; }
.ccb-sky-k { stop-color: #c597c9; }
.ccb-tide-fill { fill: var(--ccb-sea); opacity: .55; }
.ccb-tide-line { fill: none; stroke: var(--ccb-navy); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ccb-draw 1.1s var(--ccb-ease) forwards; }
@keyframes ccb-draw { to { stroke-dashoffset: 0; } }
.ccb-tide-hi { fill: #fff; stroke: var(--ccb-navy); stroke-width: 2; }
.ccb-tide-lo { fill: var(--ccb-navy); }
.ccb-tide-txt { font: 700 10px var(--ccb-body); fill: var(--ccb-navy); text-anchor: middle; paint-order: stroke; stroke: rgba(255, 255, 255, .8); stroke-width: 3px; }
.ccb-tide-axis { font: 600 10px var(--ccb-body); fill: var(--ccb-ink-soft); text-anchor: middle; }
.ccb-tide-dep { stroke: var(--ccb-buoy); stroke-width: 1.5; stroke-dasharray: 3 3; opacity: .55; }
.ccb-tide-dep.is-on { stroke-width: 3; stroke-dasharray: none; opacity: 1; }
.ccb-moonrow { display: flex; align-items: center; gap: 10px; margin: 12px 0 14px; font-size: 14px; }
.ccb-moonrow > div { display: flex; flex-direction: column; line-height: 1.2; }
.ccb-moonrow span { color: var(--ccb-ink-soft); font-size: 12px; }
.ccb-moonrow-bite { margin-left: auto; align-items: flex-end; }
.ccb-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.ccb-slot {
	display: flex; flex-direction: column; align-items: flex-start; padding: 10px 12px; border-radius: 12px;
	border: 2px solid transparent; text-align: left; color: var(--ccb-navy);
	transition: transform .2s var(--ccb-ease), border-color .2s;
}
.ccb-slot strong { font-family: var(--ccb-display); font-weight: 800; font-size: 1.35rem; line-height: 1; }
.ccb-slot span { font-size: 12px; opacity: .85; }
.ccb-slot.ccb-sky-dawn { background: linear-gradient(160deg, #ffd8b8, #f7a982); }
.ccb-slot.ccb-sky-day { background: linear-gradient(160deg, #e2f6fb, #a9dbe9); }
.ccb-slot.ccb-sky-dusk { background: linear-gradient(160deg, #f4c9d6, #b48ac2); }
.ccb-slot.ccb-sky-night { background: linear-gradient(160deg, #31507a, #0f2236); color: #fff; }
.ccb-slot:not(:disabled):hover { transform: translateY(-2px); }
.ccb-slot.is-picked { border-color: var(--ccb-navy); box-shadow: 4px 4px 0 var(--ccb-navy); }
.ccb-slot.ccb-sky-night.is-picked { border-color: var(--ccb-buoy); box-shadow: 4px 4px 0 var(--ccb-buoy); }
.ccb-slot:disabled { opacity: .4; filter: grayscale(.8); }

/* ---------- step 3: crew boat ---------- */
.ccb-crew { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 12px; }
.ccb-deck-wrap { width: 100%; max-width: 680px; border-radius: 18px; background: linear-gradient(#cfeaf0 0, #e9f6f6 70%); box-shadow: inset 0 0 0 1.5px var(--ccb-navy); overflow: hidden; padding-top: 10px; }
.ccb-deck { display: block; width: 100%; height: auto; }
.ccb-hull-group { transition: transform .7s cubic-bezier(.3, 1.6, .5, 1); }
.ccb-rock { animation: ccb-rock 4.5s ease-in-out infinite; transform-origin: 260px 190px; }
@keyframes ccb-rock { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg) translateY(2px); } }
.ccb-deck.is-nudge .ccb-rock { animation: ccb-nudge .5s ease-in-out; }
@keyframes ccb-nudge { 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
.ccb-hull { fill: #fff; stroke: var(--ccb-navy); stroke-width: 2.5; stroke-linejoin: round; }
.ccb-hull-stripe { stroke: var(--ccb-buoy); stroke-width: 6; }
.ccb-rail { fill: none; stroke: var(--ccb-navy); stroke-width: 2; }
.ccb-house { fill: #f4f8f9; stroke: var(--ccb-navy); stroke-width: 2.5; stroke-linejoin: round; }
.ccb-house-glass { fill: #9fd3de; }
.ccb-mast { stroke: var(--ccb-navy); stroke-width: 2.5; }
.ccb-flag { fill: var(--ccb-buoy); stroke: var(--ccb-navy); stroke-width: 1.5; transform-box: fill-box; transform-origin: 0 50%; transform: translateY(30px) scaleX(.15); opacity: 0; transition: transform .6s var(--ccb-ease), opacity .3s; }
.ccb-flag.is-up { transform: none; opacity: 1; animation: ccb-flap 1.2s ease-in-out infinite .6s; }
@keyframes ccb-flap { 50% { transform: skewY(-6deg) scaleX(.94); } }
.ccb-full-txt { font: 800 18px var(--ccb-display); fill: var(--ccb-navy); }
.ccb-skin { fill: #e8b48a; stroke: var(--ccb-navy); stroke-width: 1.5; }
.ccb-cap { fill: var(--ccb-navy); }
.ccb-shirt-captain { fill: #fff; stroke: var(--ccb-navy); stroke-width: 1.5; }
.ccb-hat, .ccb-shirt { stroke: var(--ccb-navy); stroke-width: 1.5; stroke-linejoin: round; }
.ccb-rodline { stroke: #5b3a1c; stroke-width: 2.4; stroke-linecap: round; }
.ccb-fishline { stroke: var(--ccb-navy); stroke-width: .8; opacity: .55; }
.ccb-angler-inner { animation: ccb-cast 3.4s ease-in-out infinite; animation-delay: var(--ccb-delay, 0s); transform-origin: 0 4px; }
@keyframes ccb-cast { 0%, 100% { transform: rotate(0deg); } 45% { transform: rotate(-3deg); } 55% { transform: rotate(2deg); } }
.ccb-angler.is-new .ccb-angler-inner { animation: ccb-land .6s cubic-bezier(.3, 1.6, .5, 1) both, ccb-cast 3.4s ease-in-out .6s infinite; }
@keyframes ccb-land { from { transform: translateY(-60px) scale(.6); opacity: 0; } }
.ccb-seat rect { fill: rgba(11, 57, 84, .12); stroke: var(--ccb-navy); stroke-width: 1.5; stroke-dasharray: 3 3; }
.ccb-seat:not(.is-locked) { cursor: pointer; }
.ccb-seat:not(.is-locked):hover rect { fill: var(--ccb-buoy); }
.ccb-seat.is-locked rect { opacity: .3; }
.ccb-deck-wave { fill: var(--ccb-sea); }
.ccb-deck-wave-1 { opacity: .55; animation: ccb-slide 5s linear infinite; }
.ccb-deck-wave-2 { animation: ccb-slide2 7s linear infinite; }
@keyframes ccb-slide { to { transform: translateX(60px); } }
@keyframes ccb-slide2 { to { transform: translateX(-70px); } }
.ccb-counter { display: flex; align-items: center; gap: 18px; }
.ccb-round {
	width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--ccb-navy); background: var(--ccb-white);
	font-size: 28px !important; font-weight: 700; line-height: 1; color: var(--ccb-navy);
	box-shadow: 3px 3px 0 var(--ccb-navy); transition: transform .15s;
}
.ccb-round:not(:disabled):active { transform: translate(3px, 3px); box-shadow: none; }
.ccb-round:disabled { opacity: .3; box-shadow: none; }
.ccb-count-box { text-align: center; min-width: 96px; }
.ccb-count { display: block; font-family: var(--ccb-display); font-weight: 800; font-size: 3.6rem; line-height: .9; color: var(--ccb-navy); }
.ccb-count-cap { font-size: 13px; color: var(--ccb-ink-soft); }
.ccb-note { margin: 0; font-size: 14px; color: var(--ccb-ink-soft); }

/* ---------- step 4: tackle box ---------- */
.ccb-tackle { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 22px; align-items: start; }
.ccb-box { perspective: 1200px; }
.ccb-box-lid {
	position: relative; height: 46px; margin: 0 14px;
	background: linear-gradient(#2a7d68, #1d5f4f); border: 2px solid var(--ccb-navy); border-bottom: 0;
	border-radius: 14px 14px 0 0;
	transform-origin: 50% 100%; transform: rotateX(0deg);
	transition: transform .8s cubic-bezier(.3, 1.5, .5, 1);
}
.ccb-box.is-open .ccb-box-lid { transform: rotateX(-72deg); }
.ccb-box-handle { position: absolute; left: 50%; top: -14px; width: 80px; height: 18px; margin-left: -40px; border: 4px solid var(--ccb-navy); border-bottom: 0; border-radius: 12px 12px 0 0; }
.ccb-box-body {
	background: linear-gradient(#2f8c74, #236f5c); border: 2px solid var(--ccb-navy); border-radius: 12px 12px 18px 18px;
	padding: 14px; box-shadow: 6px 6px 0 var(--ccb-navy);
}
.ccb-trays { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ccb-tray {
	position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
	padding: 12px 12px 10px; min-height: 118px; border-radius: 10px;
	background: #e7f2ee; border: 2px solid rgba(11, 57, 84, .35);
	box-shadow: inset 0 -6px 0 rgba(11, 57, 84, .08);
	transition: transform .25s var(--ccb-ease), background .2s, border-color .2s;
	animation: ccb-tray-in .5s var(--ccb-ease) both; animation-delay: calc(.35s + var(--ccb-i) * 60ms);
}
@keyframes ccb-tray-in { from { opacity: 0; transform: translateY(14px); } }
.ccb-tray:hover { transform: translateY(-3px); }
.ccb-tray-icon { font-size: 30px; line-height: 1; }
.ccb-tray-name { font-weight: 700; font-size: 15px; line-height: 1.2; color: var(--ccb-navy); }
.ccb-tray-price { font-size: 12px; color: var(--ccb-ink-soft); margin-top: auto; }
.ccb-tray-check { position: absolute; right: 10px; top: 10px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(11, 57, 84, .35); }
.ccb-tray[aria-pressed="true"] { background: #fff6d9; border-color: var(--ccb-brass); }
.ccb-tray[aria-pressed="true"] .ccb-tray-check { background: var(--ccb-navy); border-color: var(--ccb-navy); }
.ccb-tray[aria-pressed="true"] .ccb-tray-check::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ccb-bag { position: relative; text-align: center; background: rgba(255, 255, 255, .6); border-radius: 18px; padding: 16px; box-shadow: 0 0 0 1.5px var(--ccb-line); }
.ccb-bag-art { width: 120px; height: 90px; }
.ccb-bag-body { fill: var(--ccb-buoy); stroke: var(--ccb-navy); stroke-width: 2.5; }
.ccb-bag-strap { stroke: var(--ccb-navy); stroke-width: 5; stroke-linecap: round; }
.ccb-bag-zip { stroke: var(--ccb-navy); stroke-width: 2; stroke-dasharray: 3 3; }
.ccb-bag.is-gulp .ccb-bag-art { animation: ccb-gulp .45s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes ccb-gulp { 40% { transform: scale(1.12, .9); } }
.ccb-bag-count { position: absolute; top: 14px; right: 30px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: var(--ccb-navy); color: #fff; font-weight: 700; font-size: 14px; line-height: 26px; }
.ccb-bag-list { list-style: none; margin: 0; padding: 0; text-align: left; font-size: 14px; }
.ccb-bag-list li { margin: 0; padding: 4px 0; border-top: 1px dashed var(--ccb-line); }
.ccb-bag-empty { color: var(--ccb-ink-soft); text-align: center; border: 0 !important; }
.ccb-ghost { position: fixed; z-index: 99999; font-size: 30px; line-height: 1; pointer-events: none; }

/* ---------- step 5: reel it in ---------- */
.ccb-reel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.ccb-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin: 0; }
.ccb-field { display: flex; flex-direction: column; gap: 6px; }
.ccb-field-notes, .ccb-field-name { grid-column: 1 / -1; }
.ccb-field label { font-weight: 700; font-size: 14px; color: var(--ccb-navy); }
.ccb-input {
	width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid rgba(11, 57, 84, .4); background: var(--ccb-white);
	font: inherit; color: var(--ccb-ink); transition: border-color .2s, box-shadow .2s;
}
.ccb-input:focus { outline: none; border-color: var(--ccb-navy); box-shadow: 0 0 0 4px rgba(27, 152, 166, .25); }
textarea.ccb-input { resize: vertical; min-height: 88px; }
.ccb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ccb-ticket {
	position: relative; background: var(--ccb-white); border-radius: 16px; padding: 20px 22px 18px;
	box-shadow: 0 0 0 1.5px var(--ccb-navy), 6px 6px 0 var(--ccb-navy);
}
.ccb-ticket::before, .ccb-ticket::after { content: ""; position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--ccb-paper); box-shadow: inset 0 0 0 1.5px var(--ccb-navy); }
.ccb-ticket::before { left: -12px; clip-path: inset(0 0 0 50%); }
.ccb-ticket::after { right: -12px; clip-path: inset(0 50% 0 0); }
.ccb-ticket-trip { margin: 0; font-family: var(--ccb-display); font-weight: 800; font-size: 1.7rem; line-height: 1; color: var(--ccb-navy); }
.ccb-ticket-when { margin: 6px 0 0; font-weight: 600; }
.ccb-ticket-who { margin: 2px 0 0; color: var(--ccb-ink-soft); font-size: 14px; }
.ccb-ticket-bite { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.ccb-lines { list-style: none; margin: 14px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--ccb-line); }
.ccb-lines li { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 3px 0; font-size: 14px; }
.ccb-ticket-total { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 0; padding-top: 10px; border-top: 2px solid var(--ccb-navy); }
.ccb-ticket-total strong { font-family: var(--ccb-display); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--ccb-navy); }
.ccb-paynote { margin: 8px 0 0; font-size: 12px; color: var(--ccb-ink-soft); }

/* ---------- nav + error ---------- */
.ccb-error { min-height: 1.5em; margin: 14px 0 0; color: #b3261e; font-weight: 600; text-align: right; }
.ccb-error.is-shake { animation: ccb-shake .4s; }
@keyframes ccb-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.ccb-nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 0; }
.ccb-nav[hidden] { display: none; }
.ccb-total { margin-left: auto; font-family: var(--ccb-display); font-weight: 800; font-size: 1.35rem; color: var(--ccb-navy); }
.ccb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 26px; border-radius: 999px; font-weight: 700 !important; font-size: 16px; line-height: 1;
	border: 2px solid var(--ccb-navy); transition: transform .15s, box-shadow .15s, background .2s;
}
.ccb-btn-go { background: var(--ccb-buoy); color: var(--ccb-navy) !important; box-shadow: 4px 4px 0 var(--ccb-navy); }
.ccb-btn-go:not(:disabled):hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ccb-navy); }
.ccb-btn-go:not(:disabled):active { transform: translate(4px, 4px); box-shadow: none; }
.ccb-btn-ghost { background: transparent; color: var(--ccb-navy) !important; }
.ccb-btn-ghost:hover { background: rgba(11, 57, 84, .07); }
.ccb-btn.is-busy { opacity: .8; }
.ccb-btn.is-busy::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--ccb-navy); border-right-color: transparent; animation: ccb-spin .7s linear infinite; }
@keyframes ccb-spin { to { transform: rotate(360deg); } }

/* ---------- sea band with travelling boat ---------- */
.ccb-sea { position: relative; height: 84px; margin: 16px -32px 0; overflow: hidden; pointer-events: none; }
.ccb-wave { position: absolute; left: 0; bottom: 0; width: 200%; height: 60px; }
.ccb-wave-back { fill: var(--ccb-sea); opacity: .55; animation: ccb-sea-l 14s linear infinite; bottom: 6px; }
.ccb-wave-front { fill: var(--ccb-navy); animation: ccb-sea-r 9s linear infinite; height: 46px; }
@keyframes ccb-sea-l { to { transform: translateX(-50%); } }
@keyframes ccb-sea-r { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.ccb-boat-wrap { position: absolute; bottom: 22px; left: 4%; width: 80px; transition: left 1.4s cubic-bezier(.45, .05, .3, 1); }
.ccb-boat { width: 80px; height: 44px; animation: ccb-boatbob 2.4s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes ccb-boatbob { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-3px); } }
.ccb-boat-hull { fill: #fff; stroke: var(--ccb-navy); stroke-width: 2; stroke-linejoin: round; }
.ccb-boat-stripe { stroke: var(--ccb-buoy); stroke-width: 3; }
.ccb-boat-cabin { fill: #f4f8f9; stroke: var(--ccb-navy); stroke-width: 2; stroke-linejoin: round; }
.ccb-boat-glass { fill: #9fd3de; }
.ccb-boat-rod { stroke: #5b3a1c; stroke-width: 1.6; stroke-linecap: round; }
.ccb.is-reeling .ccb-boat { animation-duration: .6s; }

/* ---------- catch screen ---------- */
.ccb-jump { position: absolute; left: 0; right: 0; bottom: -40px; height: 100%; pointer-events: none; z-index: 3; }
.ccb-jumper { position: absolute; left: 50%; bottom: 0; width: 150px; height: 75px; margin-left: -75px; animation: ccb-leap 1.3s cubic-bezier(.3, .5, .5, 1) forwards; }
.ccb-jumper-body { fill: var(--ccb-brass); stroke: var(--ccb-navy); stroke-width: 2.5; stroke-linejoin: round; }
.ccb-jumper-fin { fill: var(--ccb-buoy); stroke: var(--ccb-navy); stroke-width: 2; }
.ccb-jumper-eye { fill: var(--ccb-navy); }
.ccb-jumper-gill { stroke: var(--ccb-navy); stroke-width: 2; }
@keyframes ccb-leap {
	0% { transform: translate(-180px, 40px) rotate(-55deg); opacity: 0; }
	12% { opacity: 1; }
	50% { transform: translate(0, -230px) rotate(0deg); }
	100% { transform: translate(180px, 60px) rotate(60deg); opacity: 0; }
}
.ccb-splash { position: absolute; bottom: 10px; width: 14px; height: 14px; border-radius: 50%; background: var(--ccb-sea); opacity: 0; }
.ccb-splash-1 { left: calc(50% - 190px); animation: ccb-drop .9s ease-out .05s; }
.ccb-splash-2 { left: calc(50% - 160px); animation: ccb-drop 1s ease-out .1s; }
.ccb-splash-3 { left: calc(50% + 170px); animation: ccb-drop .9s ease-out 1.1s; }
@keyframes ccb-drop { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(-30px, -120px) scale(.3); } }

.ccb-cert { max-width: 640px; margin: 10px auto 0; opacity: 0; transform: translateY(30px) rotate(-2deg) scale(.96); transition: opacity .6s, transform .8s cubic-bezier(.3, 1.5, .5, 1); outline: none; }
.ccb-cert.is-in { opacity: 1; transform: none; }
.ccb-cert-inner {
	position: relative; padding: 34px 36px 28px; background: #fffdf4; border-radius: 20px; text-align: center;
	border: 2px solid var(--ccb-navy); box-shadow: 0 0 0 7px #fffdf4, 0 0 0 9px var(--ccb-navy), 10px 12px 0 9px rgba(11, 57, 84, .35);
}
.ccb-cert-kicker { margin: 0; font-weight: 700; color: var(--ccb-sea); font-size: 14px; }
.ccb-cert-trip { margin: 4px 0 0; font-family: var(--ccb-display); font-weight: 800; font-size: clamp(2rem, 5vw, 2.9rem); line-height: .95; color: var(--ccb-navy); }
.ccb-cert-name { margin: 8px 0 18px; font-size: 1.15rem; font-style: italic; }
.ccb-cert-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px dashed var(--ccb-line); text-align: left; }
.ccb-cert-facts div { padding: 10px 12px; border-bottom: 1px dashed var(--ccb-line); }
.ccb-cert-facts dt { font-size: 12px; color: var(--ccb-ink-soft); font-weight: 600; }
.ccb-cert-facts dd { margin: 2px 0 0; font-weight: 700; color: var(--ccb-navy); }
.ccb-cert-ref { font-family: var(--ccb-display); font-size: 1.3rem; letter-spacing: .04em; color: var(--ccb-buoy) !important; -webkit-text-stroke: .4px var(--ccb-navy); }
.ccb-cert-msg { margin: 18px auto 0; max-width: 48ch; color: var(--ccb-ink-soft); }
.ccb-cert-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
	.ccb { padding: 22px 18px 0; border-radius: 18px; }
	.ccb-sea { margin: 16px -18px 0; }
	.ccb-waters, .ccb-day, .ccb-reel, .ccb-tackle { grid-template-columns: minmax(0, 1fr); }
	.ccb-tackle .ccb-bag { display: grid; grid-template-columns: 90px 1fr; gap: 0 14px; align-items: center; text-align: left; }
	.ccb-bag-art { width: 90px; height: 68px; grid-row: span 2; }
	.ccb-bag-count { right: auto; left: 80px; top: 10px; }
	.ccb-bag .ccb-label { margin: 0; }
	.ccb-cert-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.ccb-knot-label { visibility: hidden; }
	.ccb-knot.is-now .ccb-knot-label { visibility: visible; }
	.ccb-form { grid-template-columns: 1fr; }
	.ccb-cal { padding: 10px 6px; }
	.ccb-cal-grid { gap: 2px; }
	.ccb-cal-day { min-height: 62px; padding: 5px 0 3px; }
	.ccb-cal-day .ccb-bite-sm svg { width: 6px; height: 5px; }
	.ccb-trays { grid-template-columns: 1fr 1fr; }
	.ccb-tray { min-height: 108px; }
	.ccb-total { font-size: 1.1rem; }
	.ccb-btn { padding: 12px 18px; }
	.ccb-cert-inner { padding: 26px 18px 22px; }
	.ccb-cert-facts { grid-template-columns: 1fr; }
	.ccb-counter { gap: 12px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.ccb *, .ccb *::before, .ccb *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.ccb-jump { display: none; }
}

/* ---------- print the certificate only ---------- */
@media print {
	body.ccb-printing * { visibility: hidden !important; }
	body.ccb-printing .ccb-print-me, body.ccb-printing .ccb-print-me * { visibility: visible !important; }
	body.ccb-printing .ccb-print-me { position: absolute; left: 0; top: 0; width: 100%; }
	body.ccb-printing .ccb-cert-actions { display: none !important; }
}
