/* ===========================
   Nook Inc. Corporate — Mint & White
   Academic / AI / CLI hybrid
   =========================== */
:root {
  /* Nook Inc. inspired palette — mint + white */
  --mint:        #7fc5b3;
  --mint-deep:   #4ea893;
  --mint-shadow: #2d8b73;
  --mint-soft:   #d8efe8;
  --mint-pale:   #ecf7f3;
  --mint-tint:   #f4faf8;

  /* Academic neutrals */
  --paper:       #ffffff;
  --paper-warm:  #fcfaf5;
  --ink:         #1f2d2a;
  --ink-soft:    #5b6b67;
  --ink-mute:    #8a9994;
  --line:        #d6e3df;
  --line-soft:   #e9efed;

  /* Accents */
  --accent:      #f4a261;   /* warm corporate orange */
  --accent-deep: #e08540;
  --gold:        #e6b84a;
  --berry:       #d96a8a;
  --sky:         #b8d8e3;

  /* AI / tech */
  --terminal-bg: #1a2421;
  --terminal-fg: #b8e6d6;
  --terminal-accent: #7fc5b3;
  --terminal-prompt: #f4a261;
  --terminal-comment:#5b7a72;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 6px rgba(45, 80, 70, 0.06);
  --shadow-md: 0 8px 24px rgba(45, 80, 70, 0.08);
  --shadow-lg: 0 18px 48px rgba(45, 80, 70, 0.12);

  --font-display: 'Quicksand', 'Noto Sans TC', system-ui, sans-serif;
  --font-body:    'Quicksand', 'Noto Sans TC', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv01";
}
body {
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.005em;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ===========================
   Buttons
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  transition: all 0.18s ease;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--mint-deep);
  color: white;
  box-shadow: 0 4px 14px rgba(78, 168, 147, 0.32);
}
.btn-primary:hover {
  background: var(--mint-shadow);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(78, 168, 147, 0.38);
}
.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--mint-deep);
  color: var(--mint-deep);
}
.btn-accent {
  background: var(--accent);
  color: white;
}
.btn-accent:hover { background: var(--accent-deep); transform: translateY(-2px); }


/* ===========================
   Reward / Settlement Preview Card
   =========================== */
.reward-card {
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--mint-soft);
  overflow: hidden;
}
.reward-card__main {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--mint-tint) 0%, var(--mint-pale) 100%);
  border-bottom: 1px solid var(--mint-soft);
}
.reward-card__amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.reward-card__currency {
  font-size: 16px;
  font-weight: 600;
  color: var(--mint-shadow);
}
.reward-card__big {
  font-size: 56px;
  font-weight: 800;
  color: var(--mint-shadow);
  font-family: 'Quicksand', sans-serif;
  line-height: 1;
}
.reward-card__detail {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.reward-card__detail strong { color: var(--ink); }
.reward-card__cap { font-size: 12px; color: var(--ink-mute); }
.reward-card__status {
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 600;
}
.reward-card__status small {
  display: block;
  font-weight: 400;
  margin-top: 4px;
  font-size: 13px;
  opacity: 0.85;
}
.reward-card__status--ok {
  background: #d1fae5;
  color: #065f46;
}
.reward-card__status--pending {
  background: #fef3c7;
  color: #92400e;
}
.reward-card__how {
  padding: 22px 32px 24px;
}
.reward-card__how h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--ink);
}
.reward-card__redeem-note {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--mint-soft);
  border-radius: 10px;
  background: var(--mint-tint);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}
.reward-card__how ol {
  margin: 0;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.reward-card__how ol li { padding-left: 4px; }
.reward-card__note { color: var(--ink-mute); font-style: italic; }
.reward-card__cta {
  display: block;
  width: calc(100% - 64px);
  margin: 0 32px 28px;
  padding: 14px;
  font-size: 15px;
}
.reward-card__settled {
  background: #d1fae5;
  color: #065f46;
  text-align: center;
  padding: 14px;
  margin: 0 32px 28px;
  border-radius: 10px;
  font-weight: 600;
}
@media (max-width: 600px) {
  .reward-card__main { flex-direction: column; align-items: flex-start; padding: 22px 24px; }
  .reward-card__big { font-size: 44px; }
  .reward-card__how { padding: 18px 24px 20px; }
  .reward-card__cta, .reward-card__settled { margin: 0 24px 24px; width: calc(100% - 48px); }
}

/* ===========================
   Card Claim Gate (modal)
   =========================== */
.gate__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 1000;
  padding: 20px;
  animation: gate-fade-in 0.18s ease-out;
}
@keyframes gate-fade-in { from { opacity: 0; } to { opacity: 1; } }
.gate__modal {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 32px 24px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: gate-pop-in 0.22s cubic-bezier(0.2, 1.2, 0.4, 1);
}
@keyframes gate-pop-in { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.gate__icon {
  font-size: 48px;
  margin-bottom: 8px;
}
.gate__title {
  font-size: 22px;
  font-weight: 800;
  color: #065f46;
  margin: 4px 0 12px;
}
.gate__body {
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
  margin: 0 0 16px;
}
.gate__body strong { color: #065f46; }
.gate__error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  margin: 0 0 16px;
}
.gate__actions {
  display: flex;
  gap: 10px;
  margin: 8px 0 12px;
}
.gate__btn-cancel,
.gate__btn-primary {
  flex: 1;
  padding: 12px 16px;
  font-size: 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}
.gate__btn-cancel {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.gate__btn-cancel:hover:not(:disabled) { background: #e2e8f0; }
.gate__btn-primary[disabled] { opacity: 0.6; cursor: wait; }
.gate__hint {
  font-size: 12px;
  color: #94a3b8;
  margin: 8px 0 0;
}

/* ===========================
   Task Map (冒險島地圖)
   =========================== */
.task-map__progress {
  position: relative;
  max-width: 720px;
  margin: 0 auto 36px;
  height: 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  overflow: hidden;
}
.task-map__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
  transition: width 0.6s ease;
  border-radius: 999px;
}
.task-map__progress-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-weight: 700;
  color: #064e3b;
  letter-spacing: 0.04em;
}
.task-map__trail {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  min-height: 620px;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  /* Ghost-Peek + Pulse handoff tokens (scoped) */
  --tm-green: #16a06a;
  --tm-green-deep: #0e7a52;
  --tm-green-ring: #7ad6ab;
  --tm-amber-line: #f0b27a;
}
.task-map__orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.task-map__orbit-ring {
  position: absolute;
  inset: 13%;
  border: 3px dashed rgba(217, 119, 6, 0.46);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.18);
  transform-origin: center;
}
.task-map__trail.is-spread .task-map__orbit-ring {
  animation: task-map-ring-spread 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes task-map-ring-spread {
  0% {
    opacity: 0;
    transform: scale(0.18);
  }
  55% {
    opacity: 1;
    transform: scale(1.04);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
/* ---- idle pulse rings (radar) — three nested rings emanate from the hub ---- */
.task-map__pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180px;
  height: 180px;
  margin: -90px 0 0 -90px;
  pointer-events: none;
  z-index: 1;
}
.task-map__pulse i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--tm-green-ring);
  opacity: 0;
}
/* run only while collapsed & at rest */
.task-map__trail:not(.is-spread):not(.is-sucking):not(.is-collapsing) .task-map__pulse i {
  animation: task-map-ping 2.8s cubic-bezier(0.1, 0.6, 0.3, 1) infinite;
}
.task-map__pulse i:nth-child(2) { animation-delay: 0.9s; }
.task-map__pulse i:nth-child(3) { animation-delay: 1.8s; }
@keyframes task-map-ping {
  0%   { transform: scale(1);   opacity: 0.55; border-color: var(--tm-green-ring); }
  70%  { opacity: 0.12; }
  100% { transform: scale(2);   opacity: 0;    border-color: var(--tm-amber-line); }
}

/* ---- the hub / 自由闖關 button ---- */
.task-map__orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  /* independent translate so idle breath / inhale (scale) compose cleanly */
  translate: -50% -50%;
  width: 180px;
  height: 180px;
  display: grid;
  place-content: center;
  gap: 6px;
  text-align: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #ffffff 60%, #f4fbf7 100%);
  border: 2px solid var(--tm-green-ring);
  color: var(--tm-green-deep);
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(22, 160, 106, 0.1);
  z-index: 3;
  isolation: isolate;
  overflow: visible;
  transition: box-shadow 0.35s ease, border-color 0.3s ease,
    scale 0.42s cubic-bezier(0.2, 0.9, 0.25, 1);
}
/* gentle idle "breath" — only while collapsed & at rest */
.task-map__trail:not(.is-spread):not(.is-sucking):not(.is-collapsing) .task-map__orbit-core {
  animation: task-map-hub-breath 2.8s ease-in-out infinite;
}
@keyframes task-map-hub-breath {
  0%, 100% { scale: 1; }
  50%      { scale: 1.04; }
}
.task-map__orbit-core:hover {
  border-color: var(--tm-green);
  box-shadow: 0 14px 34px rgba(22, 160, 106, 0.18);
}
/* gather: hub inhales as the ghosts are sucked in, rings retract */
.task-map__trail.is-sucking .task-map__orbit-core {
  scale: 0.9;
  box-shadow: 0 4px 16px rgba(22, 160, 106, 0.2);
}
.task-map__trail.is-sucking .task-map__orbit-core small { opacity: 0; }
/* bloom: hub pops (overshoot back to rest) as the cards burst out */
.task-map__trail.is-spread .task-map__orbit-core {
  animation: task-map-hub-bloom 0.66s cubic-bezier(0.2, 0.85, 0.25, 1);
}
@keyframes task-map-hub-bloom {
  0%   { scale: 0.9; }
  42%  { scale: 1.07; }
  100% { scale: 1; }
}
.task-map__orbit-core strong {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--tm-green-deep);
}
.task-map__orbit-core small {
  color: var(--tm-green);
  font-weight: 800;
  letter-spacing: 1px;
  transition: opacity 0.25s ease;
}

/* ---- ghost-peek cards: faint previews that twinkle at the final ring
   positions, then get sucked into the hub on click ---- */
.task-map__ghosts {
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.task-map__ghost {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 142px;
  min-height: 128px;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 10px 10px;
  background: #ffffff;
  border: 2px solid #d6f0e0;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(15, 118, 110, 0.1);
  filter: saturate(0.55);
  opacity: 0;
  scale: 0.82;
}
/* idle: each ghost fully appears then fully disappears, staggered */
.task-map__trail:not(.is-spread):not(.is-sucking):not(.is-collapsing) .task-map__ghost {
  animation: task-map-ghost-twinkle 3.6s ease-in-out infinite;
  animation-delay: var(--gdelay, 0s);
}
@keyframes task-map-ghost-twinkle {
  0%, 100% { opacity: 0;    scale: 0.78; }
  50%      { opacity: 0.46; scale: 0.95; }
}
/* hover the map: hold the peek steady & a touch brighter */
.task-map__trail:not(.is-spread):not(.is-sucking):not(.is-collapsing):hover .task-map__ghost {
  animation-play-state: paused;
  opacity: 0.6;
  scale: 0.97;
}
/* gather: ghosts rush inward and vanish into the hub (outer leave first) */
.task-map__trail.is-sucking .task-map__ghost {
  animation: task-map-ghost-suck 0.46s cubic-bezier(0.6, 0, 0.35, 1) both;
  animation-delay: var(--sdelay, 0ms);
}
@keyframes task-map-ghost-suck {
  0%   { left: var(--x); top: var(--y); scale: 0.92; opacity: 0.5; }
  35%  { opacity: 0.62; }
  100% { left: 50%;      top: 50%;      scale: 0.04; opacity: 0; }
}
/* keep ghosts out of the way once the real cards are showing */
.task-map__trail.is-spread .task-map__ghost,
.task-map__trail.is-collapsing .task-map__ghost { opacity: 0; }
.task-map__nodes {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.task-map__node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 142px;
  min-height: 128px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.52);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 10px 10px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #d1fae5;
  border-radius: 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 4px 10px rgba(15, 118, 110, 0.18), 0 2px 0 #a7f3d0;
  backdrop-filter: blur(2px);
}
/* Keep every node hidden until 「點擊展開」adds .is-spread. The plain
   .task-map__node { opacity:0 } above is specificity (0,1,0); the
   .task-map__node.is-pending { opacity:.7 } rule below is (0,2,0) and would
   otherwise win and leak pending nodes into view pre-spread — most visibly at
   ≤900px where nodes lay out in a grid. This :not() guard is (0,3,0), so it
   beats both and the reveal stays gated on the button. */
.task-map__trail:not(.is-spread) .task-map__node { opacity: 0; }
/* bloom: real cards burst out from the hub's centre to their ring positions.
   The 460ms suck phase already elapsed (separate state), so no base delay. */
.task-map__trail.is-spread .task-map__node {
  left: var(--x);
  top: var(--y);
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
  animation: task-map-spread 0.64s cubic-bezier(0.18, 0.72, 0.28, 1) both;
  animation-delay: var(--delay, 0ms);
}
@keyframes task-map-spread {
  0% {
    left: 50%;
    top: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.12);
  }
  45% {
    opacity: 1;
  }
  100% {
    left: var(--x);
    top: var(--y);
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
/* collapse: real cards implode back toward the hub.
   (.is-collapsing) has no .is-spread, so the :not(.is-spread) hide-guard would
   blank the nodes — this same-specificity rule comes later in source and wins. */
.task-map__trail.is-collapsing .task-map__node {
  opacity: 1;
  pointer-events: none;
  animation: task-map-implode 0.36s cubic-bezier(0.5, 0, 0.7, 0.4) both;
  animation-delay: var(--delay, 0ms);
}
@keyframes task-map-implode {
  0% {
    left: var(--x);
    top: var(--y);
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    left: 50%;
    top: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.08);
  }
}
.task-map__node.is-clickable    { cursor: pointer; }
.task-map__trail.is-spread .task-map__node.is-clickable:hover {
  border-color: #10b981;
  box-shadow: 0 6px 0 #a7f3d0, 0 10px 24px rgba(16, 185, 129, 0.18);
  transform: translate(-50%, -54%);
}
.task-map__node.is-done {
  background: linear-gradient(160deg, #d1fae5 0%, #a7f3d0 100%);
  border-color: #10b981;
  box-shadow: 0 2px 0 #10b981;
}
.task-map__node.is-card {
  border-color: #f59e0b;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.2), 0 2px 0 #fcd34d;
}
.task-map__node.is-pending {
  background: #f9fafb;
  border-color: #e5e7eb;
  box-shadow: 0 2px 0 #e5e7eb;
  opacity: 0.9;
}
.task-map__kind {
  min-width: 46px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #0f766e;
  font-weight: 800;
  margin-bottom: 6px;
}
.task-map__icon {
  font-size: 30px;
  line-height: 1;
  margin: 2px 0;
}
.task-map__label {
  font-size: 11px;
  font-weight: 600;
  color: #065f46;
  line-height: 1.3;
  margin-top: 4px;
  min-height: 28px;
  display: flex;
  align-items: center;
}
.task-map__pts {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #d97706;
  margin-top: 4px;
}
.task-map__check {
  position: absolute;
  top: -10px; right: -10px;
  width: 26px; height: 26px;
  background: #10b981;
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: bold;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
@media (max-width: 900px) {
  .task-map__trail {
    max-width: 100%;
    min-height: 0;
    aspect-ratio: auto;
    border-radius: 24px;
    padding: 24px 12px;
    background: #ecfeff;
  }
  .task-map__orbit { display: none; }
  /* radial-only affordances don't map onto the stacked grid layout */
  .task-map__pulse,
  .task-map__ghosts { display: none; }
  .task-map__orbit-core {
    position: relative;
    left: auto;
    top: auto;
    width: 150px;
    height: 150px;
    margin: 0 auto 18px;
    translate: none;
    transform: none;
  }
  .task-map__orbit-core:hover { transform: translateY(-3px); }
  .task-map__nodes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    height: auto;
  }
  .task-map__node {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    min-height: 122px;
    opacity: 0;
    transform: none;
  }
  .task-map__trail.is-spread .task-map__node {
    left: auto;
    top: auto;
    opacity: 1;
    transform: none;
    animation: task-map-grid-pop 520ms ease-out both;
    animation-delay: var(--delay, 0ms);
  }
  @keyframes task-map-grid-pop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
  }
  /* collapse in grid mode: simple fade (the radial implode geometry is N/A here) */
  .task-map__trail.is-collapsing .task-map__node {
    left: auto;
    top: auto;
    animation: task-map-grid-fade 360ms ease-in both;
    animation-delay: var(--delay, 0ms);
  }
  @keyframes task-map-grid-fade {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.92); }
  }
  .task-map__trail.is-spread .task-map__node.is-clickable:hover { transform: translateY(-4px); }
}
@media (max-width: 480px) {
  .task-map__nodes { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  /* gate every looping idle affordance + the suck/bloom choreography */
  .task-map__pulse i,
  .task-map__ghost,
  .task-map__orbit-core {
    animation: none !important;
  }
  .task-map__ghost { opacity: 0 !important; }
  /* skip straight to the placed cards — no fly-in */
  .task-map__trail.is-spread .task-map__node {
    animation: none;
    opacity: 1;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%) scale(1);
  }
  .task-map__trail.is-collapsing .task-map__node {
    animation: none;
    opacity: 0;
  }
}

/* ===========================
   Announcement Ribbon (below Nav)
   Sits flush under the fixed Nav. Nav height = 14px*2 + ~34px content ≈ 62px.
   Hero already has padding-top: 130px, well clear of Nav (62) + ribbon (~36).
   =========================== */
.annc-ribbon {
  position: fixed;
  /* 64px = Nav padding 14*2 + logo 34 + border 1 + 1px buffer */
  top: 64px; left: 0; right: 0;
  z-index: 99;  /* below Nav (100) — Nav's translucent backdrop sits on top */
  display: flex;
  align-items: stretch;
  background: rgba(254, 252, 232, 0.95);  /* soft cream, not neon */
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(217, 119, 6, 0.25);
  font-size: 13px;
  color: #78350f;
  min-height: 44px;
}
.annc-ribbon__body {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px 11px;  /* extra top breathing room */
  background: transparent;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.annc-ribbon__body:hover { background: rgba(217, 119, 6, 0.06); }
.annc-ribbon__icon { font-size: 14px; flex-shrink: 0; opacity: 0.8; }
.annc-ribbon__title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.annc-ribbon__sep { opacity: 0.4; flex-shrink: 0; }
.annc-ribbon__date { opacity: 0.7; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.annc-ribbon__count {
  opacity: 0.55;
  flex-shrink: 0;
  font-size: 11px;
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
}
.annc-ribbon__dismiss {
  background: transparent;
  border: none;
  color: #78350f;
  font-size: 18px;
  line-height: 1;
  padding: 0 16px;
  cursor: pointer;
  opacity: 0.45;
}
.annc-ribbon__dismiss:hover { opacity: 1; }
@media (max-width: 720px) {
  .annc-ribbon { top: 58px; font-size: 12px; }
  .annc-ribbon__body { padding: 6px 16px; }
  .annc-ribbon__count { display: none; }
}

/* ===========================
   Nav
   =========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.005em;
}
.nav__logo-mark {
  width: 34px; height: 34px;
  background: var(--mint-deep);
  border-radius: 50%;
  display: grid; place-items: center;
  color: white;
  font-weight: 900;
  font-size: 14px;
  position: relative;
}
.nav__logo-mark::after {
  content: '';
  position: absolute; inset: 4px;
  border: 1.5px dashed rgba(255,255,255,0.6);
  border-radius: 50%;
}
.nav__logo small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: -1px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 600;
  margin: 0 auto;
}
.nav__links a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 0.15s;
}
.nav__links a:hover {
  background: var(--mint-pale);
  color: var(--mint-shadow);
}

.lang-toggle {
  display: inline-flex;
  background: var(--mint-pale);
  border-radius: 999px;
  padding: 3px;
  font-size: 12px;
  font-weight: 700;
}
.lang-toggle button {
  background: transparent;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 12px;
}
.lang-toggle button.active {
  background: var(--mint-deep);
  color: white;
}

.nav__cta {
  padding: 9px 18px;
  font-size: 13px;
}

/* ---------------------------
   Mobile nav scaffolding — inert on desktop.
   .nav__menu is `display:contents`, so its children lay out as direct flex
   items of .nav exactly as before: zero visual change above 768px.
   --------------------------- */
.nav__burger   { display: none; }
.nav__backdrop { display: none; }
.nav__menu     { display: contents; }

@media (max-width: 768px) {
  /* Keep vertical padding at 14px so nav height stays ~62px — the fixed
     .annc-ribbon (top:64px, 58px at ≤720px) is tuned to this height. */
  .nav { padding: 14px 16px; gap: 12px; justify-content: space-between; }
  .nav__logo { margin-right: auto; }

  /* Hamburger — z-index 102 keeps the close-"X" tappable above the open drawer (101). */
  .nav__burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    padding: 11px;
    border: none;
    border-radius: 12px;
    background: var(--mint-pale);
    cursor: pointer;
    position: relative;
    z-index: 102;
  }
  .nav__burger span {
    display: block;
    width: 100%; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Tap-to-close backdrop */
  .nav__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(15, 30, 25, 0.35);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .nav__backdrop.is-open { opacity: 1; pointer-events: auto; }

  /* Off-canvas drawer (slides in from the right) */
  .nav__menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    position: fixed;
    top: 0; right: 0;
    z-index: 101;
    width: min(82vw, 320px);
    height: 100dvh;
    margin: 0;
    padding: 78px 22px 28px;   /* top padding clears the ~62px bar */
    background: var(--paper);
    border-left: 1px solid var(--line-soft);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
  }
  .nav__menu.is-open { transform: none; }

  /* Stack the drawer's contents */
  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    font-size: 15px;
  }
  .nav__links a { padding: 12px 14px; }
  .lang-toggle  { align-self: flex-start; }
  .nav__visitor { align-self: flex-start; }
  .nav__cta {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    margin-right: 0 !important;  /* override inline marginRight on DEV-login button */
  }
}

/* ===========================
   Hero
   =========================== */
.hero {
  position: relative;
  padding: 130px 28px 110px;
  background:
    radial-gradient(circle at 80% 0%, var(--mint-pale) 0%, transparent 45%),
    radial-gradient(circle at 0% 50%, var(--mint-tint) 0%, transparent 40%),
    var(--paper);
  overflow: hidden;
}
.hero__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mint-pale);
  color: var(--mint-shadow);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 22px;
  border: 1px solid var(--mint-soft);
}
.hero__badge .dot {
  width: 7px; height: 7px;
  background: var(--mint-deep);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(78,168,147,0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(78,168,147,0); }
}

.hero__title {
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--ink);
}
.hero__title .accent {
  color: var(--mint-deep);
  position: relative;
  white-space: nowrap;
}
.hero__title .accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 8px;
  background: var(--mint-soft);
  border-radius: 999px;
  z-index: -1;
}

.hero__sub {
  font-size: 16.5px;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 0 28px;
  line-height: 1.7;
}
@media (max-width: 880px) { .hero__sub { margin-left: auto; margin-right: auto; } }

.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 880px) { .hero__ctas { justify-content: center; } }

.hero__stats {
  display: flex;
  gap: 36px;
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
@media (max-width: 880px) { .hero__stats { justify-content: center; flex-wrap: wrap; gap: 24px; } }
.hero__stat {
  display: flex; flex-direction: column;
}
.hero__stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--mint-deep);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.hero__stat-label {
  font-size: 12px;
  color: var(--ink-mute);
  font-weight: 600;
  margin-top: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* hero visual — robot card */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.robot-card {
  width: 100%;
  max-width: 460px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.robot-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.robot-card__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
}
.robot-card__dot.g { background: var(--mint-deep); }
.robot-card__dot.b { background: var(--sky); }
.robot-card__file {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-mute);
}
.robot-card__stage {
  background: linear-gradient(180deg, var(--mint-tint), var(--mint-pale));
  border-radius: var(--radius-lg);
  height: 280px;
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.robot-card__stage::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(0deg, rgba(127,197,179,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127,197,179,0.18) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: radial-gradient(circle at center, black 50%, transparent 100%);
}
.robot-card__caption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-mute);
  display: flex; gap: 8px;
}

@keyframes robotSwap {
  0%   { opacity: 0; transform: scale(0.92) translateY(8px); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.random-robot { transition: transform 0.2s ease; }
.random-robot:hover { transform: translateY(-3px); }

.robot-card__caption .ok { color: var(--mint-deep); }

/* ===========================
   Section general
   =========================== */
section { position: relative; }
.section {
  padding: 100px 28px;
}
.section--alt { background: var(--mint-tint); }
.section--paper { background: var(--paper); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head__title {
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 800;
  margin: 6px 0 14px;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.section-head__sub {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.7;
}

/* ===========================
   Features (corporate cards)
   =========================== */
.features__grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.features__grid > .reveal {
  display: flex;
  height: 100%;
}
.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: all 0.22s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--mint-soft);
}
.feature-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--mint-deep);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.feature-card:hover::after { transform: scaleX(1); }

.feature-card__index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.feature-card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--mint-pale);
  color: var(--mint-shadow);
  display: grid; place-items: center;
  margin-bottom: 18px;
  font-size: 26px;
  border: 1px solid var(--mint-soft);
}
.feature-card__title {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
.feature-card__body {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.feature-card__date-list {
  margin-top: 12px;
  padding: 0;
  list-style: none;
  font-size: 13px;
}
.feature-card__date-list li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-family: var(--font-mono);
  color: var(--ink);
  white-space: nowrap;
}
.feature-card__date-list li:last-child { border-bottom: none; }

/* ===========================
   Badges
   =========================== */
.badges__rail {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 800px) { .badges__rail { grid-template-columns: 1fr; } }

.badge-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 22px 22px;
  text-align: center;
  position: relative;
  transition: all 0.22s;
  box-shadow: var(--shadow-sm);
}
.badge-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.badge-card__medal {
  width: 100px; height: 100px;
  margin: 0 auto 16px;
  animation: float 4s ease-in-out infinite;
}
.badge-card:nth-child(2) .badge-card__medal { animation-delay: 0.5s; }
.badge-card:nth-child(3) .badge-card__medal { animation-delay: 1s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.badge-card__rank {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.badge-card__name {
  font-size: 22px;
  font-weight: 800;
  margin: 6px 0 4px;
  letter-spacing: -0.01em;
}
.badge-card__pts {
  display: inline-block;
  padding: 4px 12px;
  background: var(--mint-pale);
  color: var(--mint-shadow);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
}
.badge-card__bar {
  margin-top: 18px;
  height: 8px;
  background: var(--mint-pale);
  border-radius: 999px;
  overflow: hidden;
}
.badge-card__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--mint), var(--mint-deep));
  border-radius: 999px;
  width: 0;
  transition: width 1.2s cubic-bezier(.2,.7,.3,1);
}

/* ===========================
   How to (split cards)
   =========================== */
.howto__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 800px) { .howto__grid { grid-template-columns: 1fr; } }

.howto-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.22s;
}
.howto-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.howto-card--essential { border-top: 4px solid var(--mint-deep); }
.howto-card--challenge { border-top: 4px solid var(--accent); }
.howto-card__tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.howto-card--essential .howto-card__tag { background: var(--mint-pale); color: var(--mint-shadow); }
.howto-card--challenge .howto-card__tag { background: #fcefdf; color: var(--accent-deep); }

.howto-card__title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.howto-card__body {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 18px;
}
.howto-card__slogan {
  background: var(--mint-tint);
  border-left: 3px solid var(--mint-deep);
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 0 8px 8px 0;
}
.howto-card--challenge .howto-card__slogan {
  background: #fcf3e7;
  border-left-color: var(--accent);
}

/* ===========================
   Tasks
   =========================== */
.tasks__filter {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
  background: var(--paper);
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.tasks__filter button {
  background: transparent;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: all 0.15s;
}
.tasks__filter button.active {
  background: var(--mint-deep);
  color: white;
}
.tasks__filter button:hover:not(.active) { background: var(--mint-pale); }

.tasks__grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.tasks__grid > .reveal {
  display: flex;
  height: 100%;
}
/* On the narrowest phones the 280px track exceeds available width and forces
   horizontal scroll — drop to a single column. */
@media (max-width: 360px) {
  .tasks__grid { grid-template-columns: 1fr; }
}
.task-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  transition: all 0.22s;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 110px;
}
.task-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--mint-soft);
}
.task-card.is-highlighted {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18), var(--shadow-lg);
  animation: task-card-target-pulse 1.1s ease-out 2;
}
@keyframes task-card-target-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.34), var(--shadow-md);
  }
  65% {
    box-shadow: 0 0 0 12px rgba(245, 158, 11, 0), var(--shadow-lg);
  }
  100% {
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18), var(--shadow-lg);
  }
}
.task-card__banner {
  height: 110px;
  position: relative;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.task-card--essential .task-card__banner { background: linear-gradient(135deg, var(--mint-pale), var(--mint-soft)); }
.task-card--challenge .task-card__banner { background: linear-gradient(135deg, #fdf3e3, #fbe5c8); }
.task-card__banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(0deg, rgba(255,255,255,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 16px 16px;
}
.task-card__banner-icon {
  width: 60px; height: 60px;
  background: var(--paper);
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 28px;
  box-shadow: var(--shadow-sm);
  position: relative; z-index: 2;
  border: 1px solid var(--line-soft);
}
.task-card__id {
  position: absolute; top: 12px; right: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  background: rgba(255,255,255,0.7);
  padding: 3px 8px;
  border-radius: 999px;
  z-index: 2;
}
.task-card__body {
  padding: 20px 22px 22px;
  display: flex; flex-direction: column;
  flex: 1;
}
.task-card__type {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 10px;
}
.task-card--essential .task-card__type { background: var(--mint-pale); color: var(--mint-shadow); }
.task-card--challenge .task-card__type { background: #fdf3e3; color: var(--accent-deep); }
.task-card__title {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.task-card__date {
  font-size: 12px;
  color: var(--accent-deep);
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: 8px;
}
.task-card__desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}
.task-card__details-wrap {
  margin: 0 0 16px;
}
.task-card__detail-link {
  background: transparent;
  border: none;
  color: var(--accent-deep);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font-family: inherit;
  text-align: left;
}
.task-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.task-card__points {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 14px;
  color: var(--mint-shadow);
}
.task-card__points-coin {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--mint-pale);
  color: var(--mint-shadow);
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 900;
  border: 1px solid var(--mint-soft);
}
.task-card__action {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  transition: color 0.15s;
  /* Reset UA <button> styles — this class is now used on <button>, not <a>. */
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.task-card:hover .task-card__action { color: var(--mint-deep); }

/* ===========================
   Timeline
   =========================== */
.timeline__board {
  max-width: 920px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.timeline__rows {
  padding: 24px;
}
.timeline-row {
  display: grid;
  grid-template-columns: minmax(220px, max-content) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-row:last-child { border-bottom: none; }
.timeline-row__date {
  font-family: var(--font-mono);
}
.timeline-row__date .month { font-size: 11px; color: var(--ink-mute); letter-spacing: 0.08em; text-transform: uppercase; }
.timeline-row__date .range { font-size: 15px; font-weight: 700; margin-top: 2px; color: var(--ink); white-space: nowrap; }
.timeline-row__title {
  font-size: 17px;
  font-weight: 800;
}
.timeline-row__desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.timeline-row__chip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 999px;
}
.chip--green { background: var(--mint-pale); color: var(--mint-shadow); border: 1px solid var(--mint-soft); }
.chip--peach { background: #fdf3e3; color: var(--accent-deep); border: 1px solid #fadcb8; }
.chip--sky   { background: #e6eef3; color: #496877; border: 1px solid #c8d6df; }
@media (max-width: 720px) {
  .timeline-row { grid-template-columns: 1fr; }
  .timeline-row__chip { justify-self: start; }
}


/* ===========================
   FAQ — chat dialogue style
   =========================== */
.faq__list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s;
}
.faq-item.open {
  border-color: var(--mint-deep);
  box-shadow: var(--shadow-sm);
}
.faq-item__q {
  width: 100%;
  background: transparent;
  text-align: left;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 14px;
}
.faq-item__avatar {
  width: 38px; height: 38px;
  background: var(--mint-pale);
  border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
  position: relative;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--mint-shadow);
  border: 1px solid var(--mint-soft);
}
.faq-item__chevron {
  margin-left: auto;
  width: 26px; height: 26px;
  background: var(--mint-pale);
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 900;
  font-size: 13px;
  color: var(--mint-shadow);
  transition: transform 0.25s;
  flex-shrink: 0;
}
.faq-item.open .faq-item__chevron { transform: rotate(45deg); background: var(--mint-deep); color: white; }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item__a-inner {
  padding: 4px 22px 20px 76px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
  position: relative;
}
.faq-item__a-inner::before {
  content: 'A.';
  position: absolute;
  left: 36px; top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mint-deep);
  font-weight: 800;
}

/* ===========================
   Footer
   =========================== */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  padding: 70px 28px 28px;
}
.footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 740px) { .footer__inner { grid-template-columns: 1fr; } }
.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
  color: white;
}
.footer__brand-mark {
  width: 38px; height: 38px;
  background: var(--mint-deep);
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 900;
  font-size: 14px;
  color: white;
}
.footer h4 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: var(--mint);
  font-family: var(--font-mono);
  font-weight: 700;
}
.footer p {
  font-size: 13px;
  line-height: 1.75;
  margin: 4px 0;
  color: rgba(255,255,255,0.72);
}
.footer__cta { margin-top: 20px; }
.footer__bottom {
  margin-top: 50px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-mono);
}


/* ===========================
   Reveal
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.3,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===========================
   AI ambient particles
   =========================== */
.ai-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(0deg, rgba(127,197,179,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127,197,179,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* circuit dot */
.circuit-dot {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--mint-deep);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(127,197,179,0.18);
  animation: pulseSm 3s ease-in-out infinite;
}
@keyframes pulseSm {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.3); opacity: 0.6; }
}

/* themes */
body.theme-mint  { /* default */ }
body.theme-sky {
  --mint:        #7aafce;
  --mint-deep:   #4d8bb0;
  --mint-shadow: #2e6c91;
  --mint-soft:   #d3e6f0;
  --mint-pale:   #e9f2f8;
  --mint-tint:   #f3f8fc;
}
body.theme-rose {
  --mint:        #e0a3b2;
  --mint-deep:   #c47b8d;
  --mint-shadow: #a05a6e;
  --mint-soft:   #f1d6dd;
  --mint-pale:   #fbeef1;
  --mint-tint:   #fdf6f8;
}
/* 2026: 承載卡 navy + gold — 5/22 meeting (莊老師 "2-3 版讓他們選").
   Evokes 數位皮夾 / 承載卡 official identity (deep navy bordered with gold). */
body.theme-deepblue {
  --mint:        #5b7eb9;
  --mint-deep:   #2e4b85;
  --mint-shadow: #1a2e5c;
  --mint-soft:   #dbe4f2;
  --mint-pale:   #ebf0f8;
  --mint-tint:   #f4f7fc;
  --accent:      #d4a015;
  --accent-deep: #b8860b;
  --gold:        #d4a015;
}


/* ============================================================
   2026 cycle additions (per 5/8 meeting):
   - 領卡片 hero card (CardClaim)
   - 線上/線下任務按鈕狀態 (Tasks)
   - 瀏覽人數 (Nav)
   - 公告區 (Announcements)
   - 學生進度頁 (StudentPortal)
   ============================================================ */

/* CardClaim — pinned task above the regular grid */
.card-claim {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 20px;
  padding: 28px 32px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.15);
}
.card-claim--done { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); border-color: #10b981; }
.card-claim__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.card-claim__tag { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: #92400e; letter-spacing: 0.05em; }
.card-claim__status { font-size: 0.85rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: #fff; color: #92400e; }
.card-claim__title { font-size: 1.6rem; margin: 0 0 4px 0; color: #78350f; }
.card-claim__subtitle { font-size: 0.95rem; color: #9a3412; margin: 0 0 12px 0; }
.card-claim__intro { line-height: 1.7; color: #451a03; margin: 0 0 12px 0; }
.card-claim__detail-link { background: transparent; border: none; color: #b45309; font-size: 0.9rem; cursor: pointer; padding: 0; text-decoration: underline; }
.card-claim__detail { background: rgba(255,255,255,0.6); padding: 14px 16px; border-radius: 10px; margin-top: 10px; font-size: 0.9rem; line-height: 1.7; color: #451a03; }
.card-claim__detail p { margin: 0; }
.card-claim__highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.card-claim__highlight { display: grid; gap: 5px; padding: 12px; background: rgba(255,255,255,0.72); border: 1px solid rgba(217,119,6,0.16); border-radius: 9px; }
.card-claim__highlight-icon { width: 30px; height: 30px; display: grid; place-items: center; background: #fff7ed; border-radius: 8px; font-size: 1rem; }
.card-claim__highlight strong { color: #7c2d12; font-size: 0.88rem; }
.card-claim__highlight span:last-child { color: #78350f; font-size: 0.82rem; line-height: 1.55; }
@media (max-width: 760px) { .card-claim__highlights { grid-template-columns: 1fr; } }
.card-claim__footer { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.card-claim__points { font-weight: 800; font-size: 1.1rem; color: #b45309; }
.card-claim__cta { background: #f59e0b; border: none; color: #fff; padding: 10px 24px; border-radius: 10px; font-weight: 700; cursor: pointer; }
.card-claim__cta:hover { background: #d97706; }
.card-claim-form-modal { max-width: 620px; text-align: left; }
.card-claim-form { display: grid; gap: 14px; margin-top: 12px; text-align: left; }
.card-claim-form__note { margin: 0; padding: 10px 12px; border: 1px solid #fed7aa; border-radius: 8px; background: #fff7ed; color: #9a3412; font-size: 0.88rem; line-height: 1.6; }
.card-claim-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card-claim-form__field { display: grid; gap: 6px; color: #7c2d12; font-size: 0.86rem; font-weight: 800; }
.card-claim-form__field--full { grid-column: 1 / -1; }
.card-claim-form__field em { margin-left: 2px; color: #b91c1c; font-style: normal; }
.card-claim-form__field input { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #fdba74; border-radius: 8px; background: #fff; color: #431407; font-size: 0.95rem; font-weight: 700; }
.card-claim-form__field input:focus { outline: 3px solid rgba(251, 146, 60, 0.24); border-color: #f97316; }
.card-claim-form__field input:disabled { background: #fff7ed; color: #9a3412; cursor: not-allowed; }
@media (max-width: 640px) { .card-claim-form__grid { grid-template-columns: 1fr; } }

/* Task card status badges (replace "我要挑戰" for offline tasks per 摘要 p.1) */
.task-card__status { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; }
.task-card__status--done { background: #d1fae5; color: #065f46; }
.task-card__status--pending { background: #f3f4f6; color: #6b7280; }
.task-card__action--register { background: #dbeafe; color: #1e40af; padding: 4px 10px; border-radius: 6px; text-decoration: none; }
.task-detail-modal { max-width: 680px; text-align: left; max-height: min(760px, calc(100vh - 40px)); overflow: auto; }
.task-detail-modal__top { display: flex; justify-content: space-between; align-items: flex-start; }
.task-detail-modal__icon { margin: 0 0 12px; background: #fff7ed; color: #c2410c; }
.task-detail-modal__close { width: 34px; height: 34px; border: 1px solid #e5e7eb; border-radius: 999px; background: #fff; color: #6b7280; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.task-detail-modal__close:hover { color: #111827; border-color: #d1d5db; }
.task-detail-modal__title { color: #7c2d12; text-align: left; }
.task-detail-modal__content { display: grid; gap: 14px; margin-top: 16px; }
.task-detail-modal__section { padding: 16px; border: 1px solid #fed7aa; background: #fff7ed; border-radius: 12px; }
.task-detail-modal__section h4 { margin: 0 0 8px; color: #7c2d12; font-size: 1rem; }
.task-detail-modal__section p { margin: 0; color: #9a3412; font-size: 0.92rem; line-height: 1.7; }
.task-detail-modal__section ol { margin: 0; padding-left: 1.25em; color: #9a3412; font-size: 0.92rem; line-height: 1.7; }
.task-detail-modal__section li + li { margin-top: 8px; }
.task-detail-modal__more { display: inline-flex; margin-top: 8px; color: #0f766e; font-weight: 800; }
.dahutou-modal { max-width: 640px; text-align: left; }
.dahutou-modal__top { display: flex; justify-content: space-between; align-items: flex-start; }
.dahutou-modal__icon { margin: 0 0 16px; background: #fff7ed; color: #c2410c; }
.dahutou-modal__close { width: 34px; height: 34px; border: 1px solid #e5e7eb; border-radius: 999px; background: #fff; color: #6b7280; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.dahutou-modal__close:hover { color: #111827; border-color: #d1d5db; }
.dahutou-modal__steps { display: grid; gap: 14px; margin-top: 18px; }
.dahutou-modal__step { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 16px; border: 1px solid #fed7aa; background: #fff7ed; border-radius: 12px; }
.dahutou-modal__step-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: #c2410c; color: #fff; font: 800 0.95rem 'JetBrains Mono', monospace; }
.dahutou-modal__step h4 { margin: 0 0 6px; color: #7c2d12; font-size: 1rem; }
.dahutou-modal__step p { margin: 0 0 12px; color: #9a3412; font-size: 0.9rem; line-height: 1.6; }
.dahutou-modal__primary, .dahutou-modal__submit { width: 100%; justify-content: center; border-radius: 8px; }
.dahutou-modal__field { display: block; margin-bottom: 10px; }
.dahutou-modal__field span { display: block; margin-bottom: 6px; color: #7c2d12; font-size: 0.86rem; font-weight: 800; }
.dahutou-modal__field input { width: 100%; padding: 11px 12px; border: 1px solid #fdba74; border-radius: 8px; background: #fff; color: #431407; font: 700 1rem 'JetBrains Mono', monospace; }
.dahutou-modal__field input:focus { outline: 3px solid rgba(251, 146, 60, 0.25); border-color: #f97316; }
.dahutou-modal__submit { border: 0; background: #c2410c; color: #fff; font-weight: 800; cursor: pointer; }
.dahutou-modal__submit:disabled { opacity: 0.55; cursor: not-allowed; }
.dahutou-modal__error, .dahutou-modal__ok { margin: 8px 0 10px; padding: 9px 10px; border-radius: 8px; font-size: 0.86rem; line-height: 1.45; }
.dahutou-modal__error { color: #991b1b; background: #fee2e2; border: 1px solid #fecaca; }
.dahutou-modal__ok { color: #166534; background: #dcfce7; border: 1px solid #bbf7d0; }

/* Nav visitor counter */
.nav__visitor { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; background: rgba(0,0,0,0.04); border-radius: 999px; font-size: 0.85rem; color: var(--text-secondary, #475467); }
.nav__visitor-label { font-size: 0.95rem; }
.nav__visitor-count { font-weight: 700; font-family: 'JetBrains Mono', monospace; }

/* Announcements section */
.announcements {
  max-width: 920px;
  margin: 0 auto;
  padding: 0;
  background:
    linear-gradient(180deg, rgba(236, 253, 245, 0.82), rgba(255, 255, 255, 0.98) 140px),
    #ffffff;
  border: 1px solid #cfe9df;
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(45, 80, 70, 0.1), 0 2px 0 rgba(167, 243, 208, 0.45) inset;
  overflow: hidden;
}
.announcements__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid rgba(16, 185, 129, 0.16);
}
.announcements__mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: #0f766e;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.18);
  font-size: 22px;
}
.announcements__eyebrow {
  display: block;
  margin-bottom: 2px;
  font: 800 11px/1 var(--font-mono);
  letter-spacing: 0.12em;
  color: #0f766e;
}
.announcements__title {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.2;
  margin: 0;
  color: #163b33;
  letter-spacing: 0;
}
.announcements__list {
  list-style: none;
  padding: 10px 18px 18px;
  margin: 0;
}
.announcements__item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px 10px;
  border-bottom: 1px solid #e5f3ee;
}
.announcements__item:last-child { border-bottom: none; }
.announcements__date {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 10px 8px;
  border: 1px solid #b7ead9;
  border-radius: 12px;
  background: #f0fdf4;
  color: #047857;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.announcements__date-day {
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}
.announcements__date-year {
  font-size: 0.68rem;
  font-weight: 800;
  color: #10b981;
  letter-spacing: 0.04em;
}
.announcements__content {
  min-width: 0;
  padding-top: 2px;
}
.announcements__heading {
  display: block;
  margin: 0 0 6px;
  color: #173f36;
  font-size: 1.05rem;
  line-height: 1.35;
}
.announcements__body {
  margin: 0;
  color: #475467;
  font-size: 0.94rem;
  line-height: 1.75;
  white-space: pre-wrap;
}
.announcements__body a {
  color: #0f766e;
  font-weight: 800;
  text-underline-offset: 3px;
}
@media (max-width: 640px) {
  .announcements { border-radius: 16px; }
  .announcements__header {
    gap: 12px;
    padding: 20px 18px 16px;
  }
  .announcements__mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 20px;
  }
  .announcements__list { padding: 6px 14px 14px; }
  .announcements__item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px 4px;
  }
  .announcements__date {
    width: max-content;
    grid-auto-flow: column;
    align-items: baseline;
    padding: 7px 10px;
  }
}

/* Student portal — logged-in view */
.student-portal { max-width: 900px; margin: 0 auto; padding: 28px 32px; background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); border-radius: 20px; }
.student-portal__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.student-portal__points { text-align: right; }
.student-portal__points-num { display: block; font-size: 2.4rem; font-weight: 900; color: #065f46; line-height: 1; }
.student-portal__points-label { font-size: 0.8rem; color: #047857; }
.student-portal__tasks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin-bottom: 16px; }
.portal-task { display: flex; justify-content: space-between; padding: 10px 14px; background: #fff; border-radius: 8px; font-size: 0.9rem; }
.portal-task.done { background: #d1fae5; color: #065f46; font-weight: 600; }
.student-portal__settle { width: 100%; padding: 14px; font-size: 1.05rem; }
.student-portal__settled { text-align: center; color: #065f46; font-weight: 600; margin: 8px 0 0 0; }

/* DEV task completion drawer */
.dev-task-panel {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 1200;
  transform: translate(320px, -50%);
  transition: transform 0.2s ease;
}
.dev-task-panel.is-open {
  transform: translate(0, -50%);
}
.dev-task-panel__tab {
  position: absolute;
  left: -44px;
  top: 24px;
  width: 44px;
  min-height: 68px;
  border-radius: 10px 0 0 10px;
  background: #111827;
  color: #ffffff;
  font: 900 12px/1 var(--font-mono);
  letter-spacing: 0.08em;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.22);
  writing-mode: vertical-rl;
}
.dev-task-panel__body {
  width: 320px;
  max-height: min(620px, calc(100vh - 32px));
  overflow: auto;
  background: #111827;
  color: #f9fafb;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 0;
  border-radius: 14px 0 0 14px;
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.28);
}
.dev-task-panel__head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 900;
}
.dev-task-panel__head button {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f9fafb;
  font-size: 18px;
  line-height: 1;
}
.dev-task-panel__empty {
  padding: 16px;
  color: #d1d5db;
  font-size: 13px;
}
.dev-task-panel__login {
  display: inline-flex;
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #34d399;
  color: #052e2b;
  font-weight: 900;
  text-decoration: none;
}
.dev-task-panel__student {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  color: #d1fae5;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.dev-task-panel__student small {
  color: #34d399;
  font: 800 12px/1 var(--font-mono);
}
.dev-task-panel__list {
  display: grid;
  gap: 6px;
  padding: 10px;
}
.dev-task-panel__task {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: #f9fafb;
  text-align: left;
}
.dev-task-panel__task:not(:disabled):hover {
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(52, 211, 153, 0.12);
}
.dev-task-panel__task.is-done {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.16);
}
.dev-task-panel__task.is-done:not(:disabled):hover {
  border-color: rgba(251, 191, 36, 0.7);
  background: rgba(251, 191, 36, 0.12);
}
.dev-task-panel__task.is-done .dev-task-panel__state {
  color: #fbbf24;
}
.dev-task-panel__task:disabled {
  cursor: default;
}
.dev-task-panel__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}
.dev-task-panel__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}
.dev-task-panel__state {
  color: #34d399;
  font: 800 11px/1 var(--font-mono);
}
.dev-task-panel__msg {
  margin: 0;
  padding: 10px 14px 14px;
  color: #fef3c7;
  font-size: 12px;
  line-height: 1.5;
}

/* Settlement form */
.settlement { max-width: 700px; margin: 0 auto; padding: 28px 32px; background: #fff; border: 2px solid var(--border, #eaecf0); border-radius: 20px; }
.settlement h2 { margin: 0 0 16px 0; }
.settlement__warning { background: #fef3c7; border-left: 4px solid #f59e0b; padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.settlement__foreign { background: #dbeafe; border-left: 4px solid #3b82f6; padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.settlement__field { display: block; margin-bottom: 14px; }
.settlement__field > span { display: block; font-weight: 600; margin-bottom: 4px; font-size: 0.9rem; }
.settlement__field input, .settlement__field select { width: 100%; padding: 10px 12px; border: 1px solid var(--border, #eaecf0); border-radius: 8px; font-size: 1rem; }
.settlement__field small { display: block; margin-top: 4px; color: #6b7280; font-size: 0.8rem; }
.settlement__error { color: #b91c1c; padding: 8px; background: #fee2e2; border-radius: 6px; margin-bottom: 12px; }
.settlement__submit { width: 100%; padding: 14px; font-size: 1.05rem; font-weight: 700; }
