.completion-sheet {
  position: fixed; inset: auto 0 0; width: min(100%, 420px); max-width: 100%;
  max-height: calc(100dvh - 12px); margin: 0 auto; padding: 0;
  border: 0; border-radius: 28px 28px 0 0; background: var(--go-surface);
  color: var(--go-ink); box-shadow: 0 12px 60px #101a3033; overscroll-behavior: contain;
}
.completion-sheet::backdrop { background: rgb(15 24 42 / 42%); }
.completion-content { padding: 26px 22px max(22px, env(safe-area-inset-bottom)); }
.completion-worker { display: flex; align-items: center; gap: 11px; }
.completion-avatar {
  display: grid; flex: 0 0 40px; height: 40px; place-items: center; border-radius: 14px;
  color: #244cb6; background: #e9eeff; font: 650 14px/1 var(--go-font-family);
}
.completion-avatar.is-mascot { background: #204ce8 url('/media/snowman-tile.png') center/cover; }
.completion-worker p { margin: 0; color: var(--go-muted); font: var(--go-font-label); }
.completion-name { display: block; margin-top: 2px; font-size: 16px; line-height: 19px; font-weight: 600; overflow-wrap: anywhere; }
.completion-sheet h2 { margin: 23px 0 7px; font: 650 clamp(25px,7vw,30px)/1.12 var(--go-font-family); letter-spacing: -.04em; }
.completion-sheet h2:focus { outline: none; }
.completion-stars { display: flex; justify-content: center; gap: 2px; padding: 0; margin: 0; border: 0; min-width: 0; }
.completion-stars label { position: relative; display: grid; place-items: center; width: min(18%,58px); min-height: 52px; }
.completion-stars svg { width: min(82%,43px); height: auto; aspect-ratio: 1; fill: #e3e5eb; stroke: #737986; stroke-width: .9; pointer-events: none; }
.completion-stars input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.completion-stars .filled svg { fill: #ffbd42; stroke: #a86d10; }
.completion-stars input:focus-visible + svg { outline: 2px solid var(--go-focus); outline-offset: 2px; border-radius: 7px; }
.completion-score { margin: 2px 0 20px; text-align: center; font-size: 14px; line-height: 19px; color: var(--go-muted); }
.completion-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.completion-label span { color: var(--go-muted); font: var(--go-font-label); }
.completion-sheet textarea {
  box-sizing: border-box; display: block; width: 100%; min-height: 70px; max-height: 20dvh; resize: vertical;
  margin: 0; padding: 12px 14px; border: 1px solid transparent; border-radius: 14px;
  background: var(--go-surface-secondary); color: var(--go-ink); font: 400 16px/21px var(--go-font-family);
}
.completion-sheet textarea::placeholder { color: var(--go-hint); }
.completion-sheet textarea:focus-visible { outline: 2px solid var(--go-focus); outline-offset: 1px; }
.completion-actions { display: flex; gap: 8px; margin-top: 18px; }
.completion-sheet .completion-actions button { min-height: 50px; padding: 8px 14px; border: 0; border-radius: 14px; font-size: 16px; line-height: 19px; font-weight: 600; }
.completion-actions .completion-later { flex: 1; background: var(--go-surface-secondary); color: var(--go-ink); }
.completion-actions #submit-review { flex: 2.2; background: var(--go-control-primary); color: #fff; }
.completion-actions #submit-review:disabled { opacity: 1; background: #eaecf1; color: #727681; cursor: default; }
.completion-error:not(:empty) { margin: 8px 0 0; color: var(--go-danger); font-size: 14px; line-height: 19px; }
.completion-fireworks { position: fixed; inset: 0; z-index: 10000; overflow: hidden; pointer-events: none; }
.completion-burst { position: absolute; left: 26%; top: 33%; --burst-delay: 0ms; }
.completion-burst:nth-child(2) { left: 74%; top: 27%; --burst-delay: 150ms; }
.completion-burst:nth-child(3) { left: 54%; top: 43%; --burst-delay: 280ms; }
.completion-burst i { position: absolute; display: block; transform: rotate(var(--angle)); }
.completion-burst i::after {
  content: ''; position: absolute; left: -2px; top: -5px; width: 4px; height: 11px;
  border-radius: 3px; background: var(--spark); box-shadow: 0 0 3px #ffffffb0;
  opacity: 0; animation: completion-spark 890ms cubic-bezier(.16,.65,.28,1) var(--burst-delay) both;
}
.completion-burst::after {
  content: ''; position: absolute; width: 3px; height: 20px; left: -1px; top: -2px; border-radius: 50%;
  background: linear-gradient(#fff0b3,transparent);
  animation: completion-lift 280ms ease-out var(--burst-delay) both;
}
@keyframes completion-lift { from { opacity: 0; transform: translateY(64px); } 35% { opacity: 1; } to { opacity: 0; transform: translateY(0); } }
@keyframes completion-spark {
  0%, 16% { opacity: 0; transform: translateY(0) scale(.35); }
  30% { opacity: 1; } 72% { opacity: .92; }
  100% { opacity: 0; transform: translateY(var(--reach)) scale(.32); }
}
@media (min-width: 600px) {
  .completion-sheet { inset: 0; margin: auto; border-radius: 28px; }
  .completion-content { padding: 30px; }
}
@media (hover: hover) {
  .completion-actions #submit-review:hover:enabled { background: var(--go-control-primary-hover); }
  .completion-actions .completion-later:hover:enabled { background: var(--go-surface-selected); }
}
@media (prefers-reduced-motion: no-preference) {
  .completion-sheet[open] { animation: completion-enter 310ms cubic-bezier(.2,.78,.2,1) both; }
  .completion-sheet[open]::backdrop { animation: completion-dim 230ms ease-out; }
  .completion-stars svg { transition: fill 120ms ease-out, transform 140ms ease-out; }
  .completion-stars label:active svg { transform: scale(.9); }
}
@keyframes completion-enter { from { opacity: 0; transform: translateY(38px); } to { opacity: 1; transform: none; } }
@keyframes completion-dim { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .completion-fireworks { display: none; } }
