.brand-mark {
  color: var(--forest);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
}

.eyebrow {
  color: var(--terracotta);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
}

.button {
  min-height: var(--tap);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 11px 16px;
  font-weight: 750;
  letter-spacing: .005em;
  transition: transform .16s var(--ease-out), box-shadow .16s, background-color .16s, border-color .16s, opacity .16s;
  -webkit-tap-highlight-color: transparent;
}

.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(1px) scale(.992); }
.button:disabled { opacity: .42; }

.button-primary {
  color: var(--white);
  background: linear-gradient(150deg, #285a50, var(--forest-deep));
  box-shadow: 0 10px 22px rgba(23,58,52,.2);
}

.button-secondary {
  color: var(--forest);
  border-color: rgba(33,75,67,.22);
  background: rgba(255,255,255,.7);
}

.button-small {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface-raised);
  font-size: 13px;
}

.utility-button {
  position: relative;
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  padding: 7px 12px 7px 31px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  transition: color .16s, background-color .16s, transform .16s var(--ease-out);
}

.utility-button::before,
.utility-button::after {
  content: "";
  position: absolute;
  left: 12px;
  pointer-events: none;
}

.utility-button::before {
  top: 10px;
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.utility-save::after {
  top: 13px;
  left: 15px;
  width: 6px;
  height: 3px;
  border-bottom: 1.5px solid currentColor;
}

.utility-share::before {
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px currentColor, 9px -4px 0 -1px var(--surface), 9px -4px 0 .5px currentColor, 9px 6px 0 -1px var(--surface), 9px 6px 0 .5px currentColor;
}

.utility-share::after {
  top: 13px;
  left: 17px;
  width: 9px;
  height: 8px;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-24deg);
}

.utility-button:hover:not(:disabled) { color: var(--forest); background: rgba(33,75,67,.06); }
.utility-button:active:not(:disabled) { transform: scale(.97); }
.utility-button:focus-visible { outline: 3px solid rgba(169,94,72,.28); outline-offset: 1px; }

.button:focus-visible,
.filter-chip:focus-visible,
.icon-button:focus-visible,
.text-button:focus-visible {
  outline: 3px solid rgba(169,94,72,.28);
  outline-offset: 2px;
}

.icon-button,
.text-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--ink-soft);
  background: rgba(255,255,255,.55);
  font-size: 12px;
  font-weight: 700;
}

.filter-chip {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 9px;
  color: #46504b;
  background: rgba(255,255,255,.68);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.25;
  transition: color .18s, background-color .18s, border-color .18s, transform .18s var(--ease-out), box-shadow .18s;
}

.filter-chip:hover:not(:disabled) { border-color: rgba(33,75,67,.34); }
.filter-chip:active:not(:disabled) { transform: scale(.98); }

.filter-chip.is-selected {
  color: var(--white);
  border-color: var(--forest);
  background: var(--forest);
  box-shadow: 0 7px 16px rgba(33,75,67,.17);
}

.progress {
  width: min(260px, 74%);
  height: 4px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(32,40,36,.1);
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--forest), var(--terracotta));
  transition: width .2s var(--ease-out);
}

.loading-title {
  font-size: 22px;
  letter-spacing: -.01em;
}

.loading-fish {
  position: relative;
  width: 76px;
  height: 76px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.58);
  box-shadow: 0 12px 32px rgba(32,40,36,.08);
}

.loading-fish::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid transparent;
  border-top-color: var(--forest);
  border-right-color: var(--terracotta);
  border-radius: 50%;
  animation: loadingOrbit 1.25s linear infinite;
}

.loading-fish::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 12px;
  border-radius: 55% 45% 45% 55%;
  background: var(--forest);
  transform: translate(-55%, -50%);
  box-shadow: 9px 0 0 -3px var(--forest);
}

.shuffle-name {
  min-width: min(330px, 88vw);
  min-height: 50px;
  padding: 13px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--forest);
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 30px rgba(32,40,36,.07);
  font-weight: 750;
}

.thinking-status {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 390px;
  line-height: 1.35;
  overflow: hidden;
}

.thinking-status::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--terracotta);
  opacity: .7;
}

.thinking-locks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 14px;
}

.thinking-locks span {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(33,75,67,.24);
  border-radius: 50%;
  background: rgba(255,255,255,.66);
  transition: width .24s var(--ease-out), background-color .24s, border-color .24s, box-shadow .24s;
}

.thinking-locks span.is-locked {
  width: 22px;
  border-color: var(--forest);
  border-radius: 99px;
  background: var(--forest);
  box-shadow: 0 4px 12px rgba(33,75,67,.2);
}

.food-art {
  position: relative;
  z-index: 2;
  display: block;
  width: min(100%, 266px);
  aspect-ratio: 1;
  border-radius: 23px;
  object-fit: cover;
  box-shadow: 0 16px 32px rgba(32,40,36,.19);
}

.food-art.is-missing { display: none; }

.food-fallback {
  display: none;
  width: 220px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--food-color, var(--terracotta));
  box-shadow: inset 0 -18px rgba(0,0,0,.08), var(--shadow-card);
}

.food-art.is-missing + .food-fallback { display: block; }

.category-label {
  justify-self: start;
  width: fit-content;
  margin-top: 2px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--forest);
  background: var(--sage-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

.result-meta {
  display: flex;
  align-items: center;
  gap: 5px;
}

.result-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255,255,255,.72);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.result-meta span::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--terracotta);
}

.screen-result h2 {
  font-size: clamp(27px, 7.5vw, 38px);
  line-height: 1.18;
  letter-spacing: -.02em;
}

.plakai-comment {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 9px 16px 9px 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: #3f4944;
  background: rgba(255,255,255,.72);
  text-align: left;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.45;
}

.result-plakai-lock {
  position: relative;
  display: grid;
  flex: 0 0 72px;
  place-items: end center;
  min-height: 78px;
}
.result-choice-card {
  position: absolute;
  z-index: 0;
  left: 4px;
  bottom: 2px;
  width: 31px;
  height: 40px;
  overflow: hidden;
  border: 2px solid var(--white);
  border-radius: 7px;
  box-shadow: 0 4px 10px rgba(32,40,36,.18);
  opacity: 0;
  transform: translate(12px, 7px) rotate(-7deg) scale(.7);
  transition: opacity .28s, transform .42s var(--ease-out);
}
.result-choice-card img { width: 100%; height: 100%; object-fit: cover; }
.result-plakai-lock .mini-plakai { position: relative; z-index: 1; }
.result-plakai-lock.is-guarding .result-choice-card { opacity: 1; transform: translate(0,0) rotate(-7deg) scale(1); }
.result-plakai-lock.is-guarding .mini-plakai { transform: translateX(7px); }

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  width: max-content;
  max-width: min(90%, 420px);
  padding: 11px 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: var(--white);
  background: rgba(25,34,30,.94);
  box-shadow: 0 12px 34px rgba(0,0,0,.2);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: .22s var(--ease-out);
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.decision-celebration {
  position: fixed;
  z-index: 30;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: min(310px, calc(100% - 52px));
  min-height: 132px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 28px;
  padding: 26px 20px 20px;
  color: var(--white);
  background: linear-gradient(150deg, rgba(40,90,80,.98), rgba(23,58,52,.98));
  box-shadow: 0 24px 70px rgba(23,58,52,.32);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -44%) scale(.86);
}

.decision-celebration strong { font-size: 22px; line-height: 1.2; }
.decision-celebration > span:last-child { margin-top: 6px; color: #e7eee8; font-size: 15px; font-weight: 700; }

.decision-burst {
  position: absolute;
  inset: -18px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 38px;
}

.game-shell.is-deciding .decision-celebration { animation: decisionPop 1.35s var(--ease-out) both; }
.game-shell.is-deciding .result-card-view { animation: decisionCard 1.05s var(--ease-out); }
.game-shell.is-deciding .result-plakai-lock { animation: decisionPlakai .72s var(--ease-out) 2; }
.game-shell.is-decided #acceptButton { background: var(--sage-soft); color: var(--forest); box-shadow: none; }

dialog {
  width: min(90%, 430px);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  color: var(--ink);
  background: var(--surface-raised);
  box-shadow: 0 30px 80px rgba(0,0,0,.22);
  text-align: center;
}

dialog::backdrop { background: rgba(20,28,24,.62); backdrop-filter: blur(5px); }
dialog img { display: block; width: 100%; margin: 14px auto 12px; border-radius: 16px; box-shadow: 0 12px 30px rgba(32,40,36,.12); }
.dialog-header { display: grid; grid-template-columns: 54px 1fr 54px; align-items: center; }
.dialog-header h2 { font-size: 21px; line-height: 1.3; }
.dialog-close { justify-self: end; min-width: 48px; min-height: 38px; border: 0; color: var(--ink-soft); background: transparent; font-weight: 700; }
.dialog-note { color: var(--ink-soft); font-size: 12.5px; line-height: 1.55; }

@keyframes loadingOrbit { to { transform: rotate(360deg); } }
