/* ── CASTCO'S LEGACY STYLES ──────────────────────────────────── */

/* ── Panel body ── */
.cc-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: 20px 24px;
  gap: 14px;
}

/* ── Dialogue ── */
.cc-dialogue {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: rgba(242,232,208,0.65);
  line-height: 1.7;
  border-left: 2px solid rgba(200,144,58,0.3);
  padding-left: 14px;
  margin-bottom: 4px;
}

/* ── Progress ── */
.cc-progress {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(242,232,208,0.35);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Workbench layout ── */
.cc-workbench {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* ── Left: jar + rack ── */
.cc-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ── Jar ── */
.cc-jar-wrap {
  display: flex;
  justify-content: center;
}
.cc-jar {
  cursor: default;
  transition: filter 0.2s;
}
.cc-jar:hover {
  filter: brightness(1.1);
}
.cc-jar-svg {
  width: 140px;
  height: 210px;
  overflow: visible;
}
.cc-liquid {
  transition: fill 0.4s ease, opacity 0.4s ease;
}
.cc-reacting {
  animation: cc-react 0.5s ease;
}
@keyframes cc-react {
  0%   { opacity: 0; }
  40%  { opacity: 0.8; }
  100% { opacity: 0.45; }
}

/* ── Dropper rack ── */
.cc-rack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 280px;
}

/* ── Individual dropper ── */
.cc-dropper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  cursor: pointer;
  transition: transform 0.15s;
}
.cc-dropper:hover {
  transform: translateY(-3px);
}
.cc-dropper--held {
  transform: translateY(-8px);
  filter: drop-shadow(0 4px 12px rgba(200,144,58,0.5));
}
.cc-dropper-body {
  width: 28px;
  height: 52px;
  border-radius: 4px 4px 2px 2px;
  border: 1.5px solid rgba(255,255,255,0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.cc-dropper-fill {
  flex: 1;
  opacity: 0.85;
}
.cc-dropper-fill--top {
  flex: 1;
}
.cc-dropper-fill--bot {
  flex: 1;
}
.cc-dropper-tip {
  width: 8px;
  height: 10px;
  background: rgba(200,144,58,0.4);
  border-radius: 0 0 4px 4px;
  margin: 0 auto;
}
.cc-dropper-label {
  font-family: var(--display);
  font-size: 13px;
  color: var(--amber2);
  margin-top: 4px;
}

/* ── Right: checklist ── */
.cc-right {
  display: flex;
  flex-direction: column;
}

.cc-checklist {
  background: rgba(245,230,180,0.04);
  border: 1px solid rgba(200,144,58,0.25);
  border-radius: 4px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cc-checklist-hdr {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--amber2);
  font-style: italic;
  border-bottom: 1px solid rgba(200,144,58,0.2);
  padding-bottom: 8px;
  margin-bottom: 2px;
}
.cc-checklist-sub {
  font-size: 11px;
  color: rgba(242,232,208,0.4);
  margin-bottom: 4px;
}

.cc-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 3px;
  transition: background 0.15s;
  font-size: 13px;
  color: var(--parch2);
}
.cc-check-row:hover {
  background: rgba(200,144,58,0.08);
}
.cc-check-row--checked {
  color: var(--parch);
}
.cc-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--amber);
  cursor: pointer;
  flex-shrink: 0;
}
.cc-swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.cc-swatch--split {
  /* gradient set inline */
}
.cc-check-label {
  font-family: var(--mono);
  font-size: 12px;
}

/* ── Pawprint ── */
.cc-pawprint-area {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  min-height: 48px;
}
.cc-pawprint-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  opacity: 0.85;
  animation: cc-paw-stamp 0.3s cubic-bezier(0.2,0.8,0.3,1);
}
@keyframes cc-paw-stamp {
  0%   { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1);   opacity: 0.85; }
}
.cc-pawprint-miss {
  font-size: 12px;
  color: rgba(242,232,208,0.45);
  font-style: italic;
  text-align: right;
  max-width: 180px;
  line-height: 1.5;
}

/* ── Footer ── */
.cc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid rgba(200,144,58,0.15);
}
.cc-jar-instruction {
  font-size: 12px;
  color: rgba(242,232,208,0.45);
  font-style: italic;
}
.cc-submit-btn {
  background: var(--amber);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  padding: 9px 24px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
}
.cc-submit-btn:hover {
  background: var(--amber2);
}

/* ── Tier complete / final screen ── */
.cc-tier-complete {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 60px 40px;
  text-align: center;
}
.cc-tc-icon {
  font-size: 48px;
  color: var(--amber);
}
.cc-tc-title {
  font-family: var(--display);
  font-size: 22px;
  color: var(--parch);
}
.cc-tc-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: rgba(242,232,208,0.65);
  max-width: 420px;
  line-height: 1.7;
}

/* ── GRIMOIRE — Castco field notes format ── */
.cc-grimoire-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
}
.cc-grim-pages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  flex: 1;
  overflow: hidden;
}
.cc-grim-left {
  border-right: 2px solid rgba(200,144,58,0.2);
  padding: 24px 20px;
  overflow-y: auto;
  background: rgba(245,222,155,0.02);
}
.cc-grim-right {
  padding: 24px 20px;
  overflow-y: auto;
}
.cc-grim-page-title {
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  color: rgba(242,232,208,0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.cc-grim-entry {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(200,144,58,0.1);
}
.cc-grim-entry:last-child {
  border-bottom: none;
}
.cc-grim-swatch {
  width: 20px;
  height: 36px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
  margin-top: 2px;
}
.cc-grim-swatch--split {
  /* gradient inline */
}
.cc-grim-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cc-grim-dropper {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber2);
}
.cc-grim-effect {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: rgba(242,232,208,0.6);
  line-height: 1.5;
}
.cc-grim-rule {
  font-size: 13px;
  color: var(--parch);
  line-height: 1.6;
  font-family: var(--mono);
}
.cc-grim-divider {
  font-size: 11px;
  color: rgba(242,232,208,0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 12px 0 8px;
}
.cc-grim-note {
  font-size: 12px;
  color: rgba(242,232,208,0.55);
  line-height: 1.6;
  font-style: italic;
  margin-top: 12px;
  border-left: 2px solid rgba(200,144,58,0.3);
  padding-left: 10px;
}
