@font-face {
  font-family: "Kerwe Nickson";
  src:
    local("SS Nickson One"),
    url("./assets/fonts/SS-Nickson-One.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Kerwe Bahnschrift";
  src: local("Bahnschrift");
  font-display: swap;
  font-stretch: 75% 100%;
  font-style: normal;
  font-weight: 300 700;
}

:root {
  --red: #ee241c;
  --red-dark: #b91510;
  --gold: #ffd12f;
  --gold-soft: #fff1bd;
  --orange: #f47c1f;
  --paper: #fffaf0;
  --paper-warm: #fff1cd;
  --ink: #111111;
  --muted: #514a43;
  --line: rgba(35, 28, 24, 0.13);
  --surface: rgba(255, 253, 247, 0.97);
  --surface-2: #ffcf31;
  --ok: #197a3b;
  --ok-soft: #e8f6ed;
  --warn: #a26300;
  --warn-soft: #fff5db;
  --bad: #bf1d2d;
  --bad-soft: #fde9eb;
  --info: #235f9c;
  --info-soft: #e7f1fb;
  --shadow: 0 22px 60px rgba(76, 27, 4, 0.17);
  --shadow-sm: 0 9px 28px rgba(76, 27, 4, 0.12);
  --font-display: "Kerwe Nickson", "Arial Black", "Arial Narrow", sans-serif;
  --font-ui: "Kerwe Bahnschrift", "Bahnschrift", "DIN Alternate", "Arial Narrow", Arial, sans-serif;
  --font-copy: "Kerwe Bahnschrift", "Bahnschrift", "DIN Alternate", "Arial Narrow", Arial, sans-serif;
  --radius: 8px;
  --nav-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #ef2a20;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 13% 8%, rgba(255, 218, 60, 0.95), transparent 28%),
    radial-gradient(circle at 78% 2%, rgba(255, 193, 39, 0.82), transparent 34%),
    linear-gradient(145deg, #ffd429 0%, #f78a1c 42%, #e92729 100%);
  font-family: var(--font-copy);
  font-synthesis: none;
  font-weight: 400;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  content: "";
  mix-blend-mode: multiply;
  opacity: 0.18;
  pointer-events: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 16px 16px calc(var(--nav-h) + 18px);
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto 16px;
  padding: 9px 10px;
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.92);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.brand__logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand__kicker,
.eyebrow {
  color: var(--red);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 650;
  font-stretch: semi-condensed;
  letter-spacing: 0;
}

.brand__title {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1.08rem;
  font-weight: 700;
  font-stretch: semi-condensed;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.user-chip {
  display: none;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.avatar {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  font-family: var(--font-ui);
  font-weight: 700;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid--2 {
  grid-template-columns: 1fr;
}

.grid--3 {
  grid-template-columns: 1fr;
}

.panel,
.task-card,
.leader-card,
.feed-card,
.admin-row,
.auth-panel {
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.panel {
  padding: 16px;
}

.setup-panel {
  max-width: 720px;
  border-color: rgba(230, 0, 18, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 243, 199, 0.72), rgba(255, 255, 255, 0.92)),
    var(--surface);
}

.setup-panel h2 {
  margin-top: 4px;
}

.panel--flush {
  overflow: hidden;
  padding: 0;
}

.hero-strip {
  position: relative;
  overflow: hidden;
  padding: 26px 20px 22px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 240, 0.96));
  box-shadow: var(--shadow);
}

.hero-strip > * {
  position: relative;
  z-index: 1;
}

.hero-strip::after {
  position: absolute;
  right: -34px;
  bottom: -52px;
  width: 190px;
  height: 150px;
  background: url("./assets/wildsau-mark.png") center / contain no-repeat;
  content: "";
  filter: drop-shadow(0 10px 0 rgba(17, 17, 17, 0.08));
  opacity: 0.11;
  pointer-events: none;
}

.hero-strip--start::after {
  content: none;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-strip--start h1 {
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  line-height: 1.02;
}

.hero-strip--start .copy {
  max-width: 760px;
  color: #282018;
  font-size: clamp(1.02rem, 1.55vw, 1.16rem);
  font-weight: 450;
  line-height: 1.55;
}

.hero-strip h1 + .copy {
  margin-top: 18px !important;
}

.hero-strip.hero-strip--dashboard {
  padding: 18px 20px;
}

.hero-strip--centered {
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero-strip--dashboard .eyebrow {
  display: block;
  margin-bottom: 12px;
}

.hero-strip--dashboard .eyebrow + h1 {
  margin-top: 0;
  font-size: clamp(1.9rem, 5vw, 3rem);
}

.hero-strip--dashboard h1 + .copy {
  margin-top: 12px !important;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 760px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.9rem);
  font-weight: 400;
  line-height: 1.01;
  letter-spacing: 0;
}

h2 {
  font-family: var(--font-ui);
  font-size: 1.5rem;
  font-weight: 700;
  font-stretch: semi-condensed;
  line-height: 1.15;
}

h3 {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 650;
  font-stretch: semi-condensed;
  line-height: 1.25;
}

.eyebrow + h1,
.eyebrow + h2,
.eyebrow + h3 {
  margin-top: 5px;
}

.copy {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.auth-grid {
  display: grid;
  gap: 14px;
}

.auth-panel {
  padding: 16px;
}

.auth-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.auth-accordion {
  overflow: hidden;
  padding: 0;
}

.auth-accordion > summary {
  list-style: none;
}

.auth-accordion > summary::-webkit-details-marker {
  display: none;
}

.auth-accordion > .auth-panel__head {
  align-items: center;
  margin: 0;
  padding: 16px;
  cursor: pointer;
}

.auth-accordion__body {
  padding: 16px;
  border-top: 1px solid var(--line);
}

.auth-accordion__chevron {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  transition: transform 0.18s ease;
}

.auth-accordion__chevron svg {
  width: 17px;
  height: 17px;
}

.auth-accordion[open] .auth-accordion__chevron {
  transform: rotate(180deg);
}

.mark-box {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.mark-box img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.form {
  display: grid;
  gap: 11px;
}

.forgot-box {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.forgot-box summary {
  width: fit-content;
  color: var(--red);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 650;
  list-style: none;
}

.forgot-box summary::-webkit-details-marker {
  display: none;
}

.forgot-box[open] summary {
  margin-bottom: 12px;
}

.auth-grid--reset {
  align-items: stretch;
}

.reset-hero,
.reset-card {
  display: grid;
  align-content: center;
  text-align: center;
}

.reset-hero .copy {
  max-width: 560px;
  margin: 12px auto 0;
}

.reset-card {
  justify-items: center;
  gap: 16px;
  padding: clamp(22px, 5vw, 38px);
}

.reset-card__icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(20, 20, 20, 0.08);
}

.reset-card__icon svg {
  width: 24px;
  height: 24px;
}

.reset-card__head {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.reset-card__head .copy {
  max-width: 440px;
}

.reset-form {
  width: min(100%, 420px);
  text-align: left;
}

.security-note {
  max-width: 440px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field span {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.8rem;
  font-family: var(--font-ui);
  font-weight: 650;
  font-stretch: semi-condensed;
  line-height: 1.2;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(17, 17, 17, 0.15);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.pin-fields {
  display: grid;
  gap: 11px;
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(238, 36, 28, 0.66);
  box-shadow: 0 0 0 4px rgba(255, 209, 47, 0.32);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(17, 17, 17, 0.15);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 0.86rem;
  font-family: var(--font-ui);
  font-weight: 600;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.94rem;
  font-weight: 650;
  font-stretch: semi-condensed;
  line-height: 1.15;
  text-decoration: none;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(76, 27, 4, 0.16);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn--primary {
  background: var(--red);
  box-shadow: 0 7px 18px rgba(185, 21, 16, 0.22);
}

.btn--primary:hover {
  background: var(--red-dark);
}

.btn--dark {
  border-color: #323236;
  background: #323236;
  color: #fff;
  box-shadow: 0 7px 18px rgba(17, 17, 17, 0.2);
}

.btn--dark:hover {
  border-color: #232326;
  background: #232326;
}

.btn--gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 7px 18px rgba(201, 136, 0, 0.18);
}

.btn--ghost {
  border-color: rgba(17, 17, 17, 0.18);
  background: #fff;
  color: var(--ink);
}

.btn--danger {
  background: var(--bad);
}

.btn--small {
  min-height: 34px;
  padding: 8px 10px;
  font-size: 0.82rem;
}

.icon-btn {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 1.1rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stats.stats--player-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats--player-summary .stat {
  padding-right: 8px;
  padding-left: 8px;
}

.stats--player-summary .stat span {
  overflow-wrap: anywhere;
}

.stats--player-summary .stat--veto {
  grid-column: 1 / -1;
  gap: 10px;
  border-color: rgba(191, 29, 45, 0.2);
  background: var(--bad-soft);
}

.stat--veto__value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.stat--veto__value > span {
  margin-top: 0;
}

.stats--player-summary .stat--veto b,
.stats--player-summary .stat--veto span {
  color: var(--bad);
}

.stat {
  display: grid;
  min-height: 76px;
  place-items: center;
  align-content: center;
  padding: 13px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.stat b {
  display: block;
  font-family: var(--font-ui);
  font-size: 1.55rem;
  font-weight: 700;
  font-stretch: condensed;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-family: var(--font-ui);
  font-weight: 600;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
}

.section-head .copy {
  font-size: 0.84rem;
}

.section-head--centered {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.section-head--centered > div {
  width: min(100%, 760px);
}

.section-head--centered .copy {
  margin: 6px auto 0;
}

.rules-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 450;
  line-height: 1.45;
}

.rules-list li::marker {
  color: var(--red);
  font-weight: 700;
}

.start-accordion {
  padding: 0;
}

.start-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}

.start-accordion summary::-webkit-details-marker {
  display: none;
}

.start-accordion summary::after {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  content: "+";
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
}

.start-accordion[open] summary::after {
  content: "−";
}

.start-accordion .rules-list {
  padding: 0 18px 18px 38px;
}

.task-list,
.feed-list,
.admin-list {
  display: grid;
  gap: 10px;
}

.task-card {
  position: relative;
  display: grid;
  width: 100%;
  overflow: hidden;
  color: inherit;
  text-align: left;
}

.task-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: rgba(17, 17, 17, 0.18);
  content: "";
}

.task-card--approved::before,
.task-card--pending::before {
  background: var(--ok);
}

.task-card--available::before {
  background: var(--info);
}

.task-card--rejected::before {
  background: var(--bad);
}

.task-card--locked::before {
  background: #b8b8bd;
}

.task-card__summary {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 72px;
  padding: 12px 12px 12px 16px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.task-card__summary:focus-visible {
  outline: 3px solid rgba(230, 0, 18, 0.28);
  outline-offset: -3px;
}

.task-card__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--radius);
  border: 1px solid rgba(238, 36, 28, 0.14);
  background: rgba(238, 36, 28, 0.08);
  color: var(--red-dark);
  font-family: var(--font-ui);
  font-size: 1.18rem;
  font-weight: 700;
}

.task-card__summary-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.task-card__summary-main h3 {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-card__summary-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.task-card__veto-preview {
  overflow: hidden;
  min-width: 0;
  color: var(--bad);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-card__chevron {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--muted);
  transition: transform 0.16s ease;
}

.task-card.is-expanded .task-card__chevron {
  transform: rotate(180deg);
}

.task-card__details {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px 16px;
}

.task-card__desc {
  display: -webkit-box;
  overflow: hidden;
  color: #4d4237;
  font-size: 0.9rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.task-card__status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius);
  background: #fff8df;
}

.task-card__status-copy {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  font-family: var(--font-ui);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-card__completed {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.veto-reason {
  padding: 10px 12px;
  border: 1px solid rgba(191, 29, 45, 0.2);
  border-left: 3px solid var(--bad);
  border-radius: var(--radius);
  background: var(--bad-soft);
}

.veto-reason > span {
  display: block;
  margin-bottom: 4px;
  color: var(--bad);
  font-size: 0.76rem;
  font-weight: 650;
}

.veto-reason p {
  overflow-wrap: anywhere;
  color: #6f1722;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-wrap;
}

.veto-reason--detail {
  margin-bottom: 14px;
}

.task-card__facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
}

.task-card__fact {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

.task-card__fact svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: #8b8b92;
}

.task-card__fact span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.badge,
.pill,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 25px;
  padding: 5px 8px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 650;
  font-stretch: semi-condensed;
  line-height: 1;
  white-space: nowrap;
}

.badge {
  flex: 0 0 auto;
  background: var(--gold);
  color: var(--ink);
}

.pill--ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.pill--warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.pill--bad {
  background: var(--bad-soft);
  color: var(--bad);
}

.pill--info {
  background: var(--info-soft);
  color: var(--info);
}

.pill--muted {
  background: #fff1bd;
  color: var(--muted);
}

.pill--gold {
  background: var(--gold);
  color: var(--ink);
}

.status-badge--approved,
.status-badge--pending {
  background: var(--ok);
  color: #fff;
}

.status-badge--available {
  background: var(--info);
  color: #fff;
}

.status-badge--rejected {
  background: var(--bad);
  color: #fff;
}

.status-badge--locked {
  background: #77777f;
  color: #fff;
}

.status-badge {
  flex: 0 0 auto;
}

.activity-toggle {
  margin-top: 10px;
  width: fit-content;
  min-height: 34px;
  padding: 9px 11px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.84rem;
  font-family: var(--font-ui);
  font-weight: 650;
}

.task-filters {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.task-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.task-filters__head > span {
  display: grid;
  gap: 2px;
}

.task-filters__head strong {
  font-size: 0.9rem;
  font-weight: 650;
}

.task-filters__result {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 450;
}

.task-filters__reset {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--red-dark);
  font-size: 0.82rem;
  font-weight: 650;
}

.task-filters__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.task-filter {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-ui);
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.task-filter:hover {
  border-color: rgba(17, 17, 17, 0.24);
}

.task-filter:focus-within {
  outline: 3px solid rgba(238, 36, 28, 0.16);
  outline-offset: 2px;
}

.task-filter__status {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.task-filter__status > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.task-filter__status strong {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.15;
}

.task-filter__status small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.15;
}

.task-filter__dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--filter-accent);
}

.task-filter__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.task-filter__switch {
  position: relative;
  width: 34px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #d9d9dd;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.09);
  transition: background 0.16s ease;
}

.task-filter__switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(17, 17, 17, 0.22);
  content: "";
  transition: transform 0.16s ease;
}

.task-filter__input:checked + .task-filter__switch {
  background: var(--filter-accent);
}

.task-filter__input:checked + .task-filter__switch::after {
  transform: translateX(14px);
}

.task-filter.is-active {
  border-color: var(--filter-accent);
  box-shadow: inset 3px 0 0 var(--filter-accent);
}

.task-filter--available {
  --filter-accent: var(--info);
}

.task-filter--available.is-active {
  background: var(--info-soft);
  color: var(--info);
}

.task-filter--valid {
  --filter-accent: var(--ok);
}

.task-filter--valid.is-active {
  background: var(--ok-soft);
  color: var(--ok);
}

.task-filter--rejected {
  --filter-accent: var(--bad);
}

.task-filter--rejected.is-active {
  background: var(--bad-soft);
  color: var(--bad);
}

.task-filter--locked {
  --filter-accent: #66666d;
}

.task-filter--locked.is-active {
  background: #f0f0f2;
  color: #66666d;
}

.task-filter-empty strong {
  display: block;
  margin-bottom: 5px;
}

.task-filter-empty .btn {
  margin-top: 12px;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

.notice svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--red);
}

.submission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.detail-grid {
  display: grid;
  gap: 14px;
}

.upload-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px dashed #d6d6d8;
  border-radius: var(--radius);
  background: #fbfbfb;
}

.upload-box--ready {
  border-color: rgba(25, 122, 59, 0.32);
  background: #fbfffc;
}

.upload-state {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 8px;
}

.preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.preview img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
}

.leader-grid {
  display: grid;
  gap: 10px;
}

.prize-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.prize-card {
  display: grid;
  gap: 4px;
  min-height: 72px;
  align-content: center;
  justify-items: center;
  padding: 12px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 7px 20px rgba(76, 27, 4, 0.08);
  text-align: center;
}

.prize-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-family: var(--font-ui);
  font-weight: 600;
}

.prize-card strong {
  font-family: var(--font-ui);
  font-size: 1.85rem;
  font-weight: 700;
  font-stretch: condensed;
  line-height: 1;
}

.prize-card--1 {
  border-color: rgba(17, 17, 17, 0.1);
  background: linear-gradient(180deg, #fff6ce, var(--gold-soft));
}

.prize-card--2 {
  background: #f7f4ed;
}

.prize-card--3 {
  background: #fff2e0;
}

.leader-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background:
    linear-gradient(90deg, rgba(238, 36, 28, 0.06), transparent 40%),
    var(--surface);
}

.leader-card__player {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 4px;
  margin: -4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.leader-card__player:focus-visible {
  outline: 3px solid rgba(230, 0, 18, 0.28);
  outline-offset: 2px;
}

.leader-card__score {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.badge--prize {
  background: var(--ink);
  color: #fff;
}

.leader-card--me {
  border-color: rgba(230, 0, 18, 0.35);
  box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.08);
}

.rank {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--surface-2);
  font-family: var(--font-ui);
  font-weight: 700;
  font-stretch: condensed;
}

.rank--1 {
  background: #ffe7a1;
}

.rank--2 {
  background: #e7e8ec;
}

.rank--3 {
  background: #efd1b4;
}

.feed-card {
  overflow: hidden;
}

.feed-card__image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #fff3c4;
  color: inherit;
}

.feed-card__image-button:focus-visible {
  outline: 3px solid rgba(230, 0, 18, 0.45);
  outline-offset: -3px;
}

.feed-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #fff3c4;
}

.censored-frame {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  background: #050505;
  color: #fff;
  font-size: 1.05rem;
  font-family: var(--font-ui);
  font-weight: 650;
  letter-spacing: 0;
}

.feed-card__body {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.feed-card__status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.feed-card__meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.feed-card__meta-row .copy {
  min-width: 0;
}

.like-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 56px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.84rem;
  font-family: var(--font-ui);
  font-weight: 650;
  line-height: 1;
}

.like-button svg {
  width: 17px;
  height: 17px;
}

.like-button.is-liked {
  border-color: rgba(230, 0, 18, 0.22);
  background: var(--bad-soft);
  color: var(--red);
}

.like-button.is-liked svg {
  fill: currentColor;
}

.like-button--modal {
  min-width: 68px;
  min-height: 40px;
}

.like-names {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 550;
  line-height: 1.35;
}

.like-names--modal {
  min-width: 0;
  color: rgba(255, 255, 255, 0.76);
}

.image-modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.image-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.78);
}

.image-modal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(980px, 100%);
  max-height: calc(100vh - 36px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: #101010;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.image-modal__head,
.image-modal__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  color: #fff;
}

.image-modal__head .copy {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
}

.image-modal__head .icon-btn {
  flex: 0 0 auto;
}

.image-modal__image {
  width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  background: #050505;
}

.image-modal__foot {
  justify-content: space-between;
}

.staeh-demo-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 209, 47, 0.96), rgba(255, 239, 177, 0.96));
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.staeh-demo-banner > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.staeh-demo-banner strong,
.staeh-demo-banner p {
  display: block;
}

.staeh-demo-banner p {
  margin-top: 2px;
  color: rgba(17, 17, 17, 0.7);
  font-size: 0.8rem;
  font-weight: 600;
}

@media (max-width: 560px) {
  .staeh-demo-banner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .staeh-demo-banner .btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.staeh-layout {
  display: grid;
  gap: 14px;
}

.staeh-coaster {
  position: relative;
  isolation: isolate;
  width: min(100%, 560px);
  aspect-ratio: 1;
  min-height: 300px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(49, 37, 24, 0.28);
  border-radius: clamp(30px, 7vw, 54px);
  background:
    radial-gradient(circle at 38% 34%, rgba(255, 246, 210, 0.8), transparent 22%),
    radial-gradient(circle at 84% 12%, rgba(119, 68, 24, 0.16), transparent 28%),
    radial-gradient(circle at 16% 88%, rgba(78, 45, 19, 0.18), transparent 24%),
    repeating-radial-gradient(circle at 49% 50%, rgba(75, 45, 20, 0.035) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(33deg, rgba(87, 55, 24, 0.055) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(117deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 15px),
    linear-gradient(139deg, #d7ad72 0%, #f4d9a4 31%, #ffe7b5 53%, #d7a466 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.62),
    inset 0 0 0 10px rgba(255, 246, 212, 0.22),
    inset 0 0 0 20px rgba(120, 87, 42, 0.16),
    inset 0 -34px 58px rgba(72, 43, 16, calc(0.22 + var(--dirt) * 0.28)),
    inset 0 22px 46px rgba(255, 249, 222, 0.34),
    0 26px 54px rgba(58, 34, 12, 0.24);
  --dirt: 0;
  filter:
    sepia(calc(var(--dirt) * 0.18))
    saturate(calc(1 - var(--dirt) * 0.1))
    brightness(calc(1 - var(--dirt) * 0.05));
}

.staeh-coaster::before,
.staeh-coaster::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
}

.staeh-coaster::before {
  background:
    radial-gradient(ellipse at 18% 16%, rgba(92, 55, 25, 0.52) 0 5%, transparent 13%),
    radial-gradient(ellipse at 79% 16%, rgba(112, 66, 27, 0.48) 0 7%, transparent 17%),
    radial-gradient(ellipse at 31% 77%, rgba(79, 45, 18, 0.56) 0 10%, transparent 20%),
    radial-gradient(ellipse at 83% 76%, rgba(133, 41, 22, 0.38) 0 7%, transparent 16%),
    radial-gradient(ellipse at 55% 54%, rgba(69, 42, 19, 0.35) 0 14%, transparent 28%),
    linear-gradient(18deg, transparent 0 35%, rgba(179, 91, 20, 0.17) 36% 39%, transparent 43%),
    linear-gradient(166deg, transparent 0 69%, rgba(32, 88, 48, 0.14) 70% 75%, transparent 78%);
  mix-blend-mode: multiply;
  opacity: calc(0.12 + var(--dirt) * 0.82);
}

.staeh-coaster::after {
  inset: 12px;
  border-radius: clamp(22px, 5.5vw, 42px);
  background:
    radial-gradient(ellipse at 50% 48%, transparent 0 27%, rgba(82, 48, 20, 0.16) 28% 29%, transparent 31%),
    radial-gradient(ellipse at 52% 50%, transparent 0 42%, rgba(82, 48, 20, 0.12) 43% 44%, transparent 46%),
    radial-gradient(ellipse at 50% 50%, transparent 0 53%, rgba(79, 45, 18, 0.14) 75%, rgba(54, 31, 12, 0.34) 100%),
    repeating-linear-gradient(18deg, transparent 0 17px, rgba(83, 47, 20, 0.085) 18px 19px);
  box-shadow:
    inset 0 0 0 1px rgba(92, 61, 30, 0.12),
    inset 0 -18px 26px rgba(71, 42, 17, calc(0.12 + var(--dirt) * 0.18));
  opacity: calc(0.14 + var(--dirt) * 0.62);
}

.tally-field {
  position: absolute;
  z-index: 8;
  inset: 0;
}

.tally-placeholder {
  position: absolute;
  top: 7%;
  left: 8%;
  color: rgba(77, 48, 25, 0.56);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-7deg);
}

.tally-group {
  position: absolute;
  top: var(--y);
  left: var(--x);
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transform: translate(-50%, -50%) rotate(var(--mark-rotation));
  transform-origin: center;
}

.tally-group span,
.tally-group i {
  display: block;
  border-radius: 999px;
  background: rgba(52, 39, 29, 0.92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.26);
}

.tally-group span {
  width: 2px;
  height: 15px;
}

.tally-group i {
  position: absolute;
  width: 19px;
  height: 2px;
  transform: rotate(-34deg);
}

.coaster-brand {
  position: absolute;
  z-index: 5;
  top: 15%;
  left: 50%;
  display: grid;
  grid-template-rows: auto auto auto minmax(34px, 1fr);
  width: min(38%, 212px);
  aspect-ratio: 0.72;
  align-items: center;
  justify-items: center;
  gap: 5px;
  padding: 18px 14px 13px;
  border: clamp(7px, 1.7vw, 10px) solid rgba(32, 108, 59, 0.92);
  outline: 2px solid rgba(188, 132, 42, 0.72);
  outline-offset: -16px;
  border-radius: 50% / 44%;
  background:
    radial-gradient(ellipse at 50% 24%, rgba(255, 245, 214, 0.96), rgba(235, 199, 130, 0.9) 72%, rgba(213, 166, 82, 0.86)),
    repeating-linear-gradient(36deg, rgba(86, 53, 24, 0.045) 0 1px, transparent 1px 8px);
  box-shadow:
    0 9px 18px rgba(62, 36, 12, 0.18),
    inset 0 0 0 2px rgba(246, 225, 177, 0.62),
    inset 0 0 0 5px rgba(184, 132, 48, 0.28);
  text-align: center;
  transform: translateX(-50%) rotate(-1.3deg);
}

.coaster-crest {
  display: grid;
  width: clamp(22px, 5vw, 34px);
  height: clamp(28px, 6vw, 42px);
  place-items: center;
  border: 2px solid #d9ad4f;
  border-radius: 6px 6px 10px 10px;
  background: #c7332c;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-weight: 900;
}

.coaster-brand strong {
  color: #2c2c2c;
  font-size: clamp(1.54rem, 5.2vw, 2.54rem);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.coaster-brand em {
  color: #392819;
  font-family: Georgia, serif;
  font-size: clamp(0.68rem, 1.9vw, 0.9rem);
  font-weight: 700;
  line-height: 0.96;
}

.coaster-landscape {
  position: relative;
  display: block;
  align-self: end;
  width: 100%;
  height: clamp(28px, 7.5vw, 48px);
  margin-top: 2px;
  overflow: hidden;
  border-radius: 0 0 999px 999px;
  background:
    radial-gradient(circle at 18% 56%, #f3e1b2 0 9%, transparent 10%),
    linear-gradient(160deg, transparent 0 41%, #2a7a45 42% 46%, transparent 47%),
    linear-gradient(22deg, #466f2f 0 24%, #97af4a 25% 47%, #2e7a45 48% 68%, #d33f30 69% 72%, #55822e 73% 100%);
}

.coaster-landscape i {
  position: absolute;
  bottom: 6%;
  display: block;
  border-radius: 2px 2px 0 0;
  background: #333021;
}

.coaster-landscape i:nth-child(1) {
  left: 18%;
  width: 8%;
  height: 34%;
}

.coaster-landscape i:nth-child(2) {
  left: 28%;
  width: 12%;
  height: 45%;
}

.coaster-landscape i:nth-child(3) {
  right: 25%;
  width: 4%;
  height: 54%;
  background: #b7322b;
}

.coaster-landscape i:nth-child(4) {
  right: 18%;
  width: 6%;
  height: 72%;
  background: #b7322b;
}

.coaster-mascot {
  position: absolute;
  z-index: 4;
  right: 8.5%;
  bottom: 10.5%;
  width: min(36%, 210px);
  height: auto;
  aspect-ratio: 336 / 345;
  mix-blend-mode: multiply;
  opacity: calc(0.94 - var(--dirt) * 0.07);
  filter:
    sepia(calc(var(--dirt) * 0.12))
    saturate(calc(0.98 - var(--dirt) * 0.08))
    contrast(1.02);
  transform: rotate(-1.2deg);
  transform-origin: 50% 100%;
}

.coaster-center {
  position: absolute;
  z-index: 6;
  top: 82%;
  left: 14%;
  display: grid;
  min-width: clamp(102px, 23%, 150px);
  place-items: start;
  align-content: center;
  text-align: left;
  transform: translateY(-50%) rotate(-2.2deg);
  text-shadow: 0 2px 0 rgba(255, 235, 184, 0.46);
}

.coaster-count {
  color: rgba(31, 31, 30, 0.94);
  font-size: clamp(2.9rem, 9.4vw, 4.9rem);
  font-weight: 950;
  line-height: 0.78;
  letter-spacing: 0;
}

.coaster-label {
  margin-top: 6px;
  color: var(--red);
  font-size: clamp(0.7rem, 1.7vw, 0.9rem);
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.coaster-updated {
  margin-top: 3px;
  color: rgba(24, 24, 24, 0.64);
  font-size: clamp(0.62rem, 1.5vw, 0.75rem);
  font-weight: 780;
}

.staeh-showcase {
  display: grid;
  grid-template-columns: minmax(190px, 0.5fr) minmax(0, 1.5fr);
  width: min(100%, 940px);
  margin: 0 auto;
  align-items: center;
  gap: clamp(14px, 4vw, 34px);
  overflow: hidden;
}

.staeh-counter-card {
  position: relative;
  display: grid;
  container-type: inline-size;
  width: 100%;
  min-width: 0;
  justify-items: center;
  gap: 7px;
  padding: clamp(18px, 4vw, 28px);
  overflow: hidden;
  border: 1px solid rgba(255, 229, 178, 0.2);
  border-radius: 18px;
  background:
    radial-gradient(circle at 28% 16%, rgba(244, 196, 92, 0.22), transparent 28%),
    linear-gradient(145deg, rgba(33, 24, 18, 0.98), rgba(72, 33, 15, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 223, 0.13),
    0 18px 42px rgba(44, 25, 11, 0.18);
  color: #fff6dc;
  text-align: center;
}

.staeh-counter-card::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    repeating-linear-gradient(115deg, transparent 0 8px, rgba(255, 255, 255, 0.035) 9px 10px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 44%);
  mix-blend-mode: screen;
  opacity: 0.72;
}

.staeh-counter-kicker,
.staeh-counter-updated {
  position: relative;
  z-index: 1;
}

.staeh-counter-kicker {
  color: #f5c45b;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.staeh-counter-card strong {
  position: relative;
  z-index: 1;
  color: #fff7df;
  font-family: Arial Black, Arial, Helvetica, sans-serif;
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(2.7rem, 31cqw, 5.6rem);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  line-height: 0.86;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  text-shadow:
    0 2px 0 rgba(126, 52, 16, 0.72),
    0 12px 24px rgba(0, 0, 0, 0.26);
}

.staeh-counter-updated {
  color: rgba(255, 246, 220, 0.78);
  font-size: 0.82rem;
  font-weight: 850;
}

.staeh-coaster-svg {
  position: relative;
  isolation: isolate;
  width: min(100%, 690px);
  margin: 0 0 0 auto;
  border-radius: 20px;
  overflow: hidden;
  transform-origin: 52% 72%;
  filter:
    saturate(calc(1 - var(--dirt) * 0.16))
    sepia(calc(var(--dirt) * 0.13))
    contrast(calc(1 + var(--dirt) * 0.045))
    brightness(calc(1.015 - var(--dirt) * 0.035))
    blur(var(--drunk-blur, 0px));
}

.staeh-coaster-svg.is-tipsy {
  animation: coaster-tipsy var(--drunk-speed, 6s) ease-in-out infinite;
  will-change: transform;
}

.coaster-catastrophe-stage,
.coaster-hiccup-stage {
  width: 100%;
  border-radius: inherit;
  transform-origin: 52% 72%;
}

.coaster-hiccup-stage {
  overflow: hidden;
}

.staeh-coaster-svg.is-hiccuping .coaster-hiccup-stage {
  animation: coaster-hiccup var(--hiccup-speed, 11.2s) cubic-bezier(0.45, 0, 0.25, 1) infinite;
  will-change: transform;
}

.staeh-coaster-svg.is-wasted .coaster-catastrophe-stage {
  animation: coaster-catastrophe var(--catastrophe-speed, 22s) cubic-bezier(0.45, 0, 0.22, 1) infinite;
  will-change: transform;
}

.coaster-art {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  overflow: hidden;
}

.staeh-coaster-svg.is-wasted .coaster-art {
  animation: coaster-doze var(--catastrophe-speed, 22s) cubic-bezier(0.42, 0, 0.24, 1) infinite;
  transform-origin: 54% 78%;
  will-change: transform;
}

.coaster-patina {
  mix-blend-mode: multiply;
}

.coaster-freshness,
.coaster-drunk-ghosts,
.coaster-wet-sheen {
  mix-blend-mode: screen;
}

.coaster-moisture-bloom {
  fill: #75502d;
  filter: url(#coasterMoisture);
}

.coaster-moisture-bloom--small {
  fill: #6f4524;
}

.coaster-beer-spill {
  fill: #86531d;
}

.coaster-beer-tide {
  fill: none;
  stroke: rgba(78, 41, 14, 0.82);
  stroke-width: 8;
  stroke-dasharray: 220 26 94 18 146 34;
  stroke-linecap: round;
}

.coaster-drip-trail {
  fill: none;
  stroke: rgba(62, 34, 17, 0.84);
  stroke-width: 11;
  stroke-dasharray: 112 22 58 18;
  stroke-linecap: round;
}

.coaster-wet-ring {
  fill: none;
  stroke: rgba(77, 44, 22, 0.78);
  stroke-width: 7;
  stroke-dasharray: 154 18 72 34 238 26;
  stroke-linecap: round;
}

.coaster-wet-ring--broken {
  stroke-width: 6;
  stroke-dasharray: 116 26 188 42 62 54;
}

.coaster-edge-wear {
  fill: none;
  stroke: rgba(91, 55, 28, 0.72);
  stroke-width: 17;
  stroke-dasharray: 218 24 88 38 306 18 124 44;
  stroke-linecap: round;
}

.coaster-fingerprints {
  fill: none;
  stroke: rgba(49, 31, 17, 0.76);
  stroke-width: 8;
  stroke-linecap: round;
  filter: blur(1.1px);
}

.coaster-sour-spots {
  fill: rgba(63, 61, 27, 0.72);
  filter: url(#coasterMoisture);
}

.coaster-wet-sheen {
  fill: rgba(255, 244, 207, 0.74);
}

.coaster-rooster-double {
  opacity: 0;
  mix-blend-mode: normal;
  transform-box: view-box;
  transform-origin: 72% 64%;
}

.coaster-rooster-double__copy {
  opacity: 0.78;
  filter: saturate(1.08) contrast(1.04);
}

.staeh-coaster-svg.is-very-tipsy .coaster-rooster-double {
  animation: coaster-rooster-split 7.7s ease-in-out infinite;
  will-change: opacity, transform;
}

.coaster-live-spill {
  mix-blend-mode: multiply;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: coaster-beer-slosh 3.9s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  will-change: transform;
}

.coaster-live-spill__beer {
  fill: url(#coasterLiveBeer);
}

.coaster-live-spill__shine {
  fill: none;
  stroke: rgba(255, 223, 146, 0.52);
  stroke-width: 10;
  stroke-linecap: round;
  filter: blur(1.2px);
  mix-blend-mode: screen;
}

.coaster-beer-bubble {
  fill: rgba(255, 224, 153, 0.32);
  stroke: rgba(116, 62, 13, 0.56);
  stroke-width: 3;
  transform-box: fill-box;
  transform-origin: center;
  animation: coaster-bubble-rise 5.4s cubic-bezier(0.28, 0.02, 0.52, 0.98) infinite;
  animation-delay: var(--bubble-delay, 0s);
  will-change: opacity, transform;
}

.coaster-hicks-bubble {
  position: absolute;
  z-index: 5;
  top: 15%;
  right: 7%;
  padding: 0.48rem 0.72rem;
  border: 1px solid rgba(99, 61, 25, 0.28);
  border-radius: 999px 999px 999px 8px;
  background: rgba(255, 248, 222, 0.94);
  color: #321d0b;
  box-shadow:
    0 9px 20px rgba(37, 20, 7, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  font-size: clamp(0.72rem, 2.6vw, 1rem);
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(8px, 8px, 0) rotate(6deg) scale(0.65);
}

.coaster-hicks-bubble::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: -7px;
  width: 13px;
  height: 13px;
  border-right: 1px solid rgba(99, 61, 25, 0.2);
  border-bottom: 1px solid rgba(99, 61, 25, 0.2);
  background: rgba(255, 248, 222, 0.94);
  transform: rotate(42deg) skew(8deg, 8deg);
}

.staeh-coaster-svg.is-wasted .coaster-hicks-bubble {
  animation: coaster-hicks var(--catastrophe-speed, 22s) cubic-bezier(0.2, 0.9, 0.28, 1.25) infinite;
  will-change: opacity, transform;
}

@keyframes coaster-tipsy {
  0%,
  100% {
    transform: perspective(820px) translate3d(var(--drunk-shift-neg, 0), 0, 0) rotateZ(var(--drunk-tilt-neg, 0)) rotateY(var(--drunk-tilt, 0)) scale(1.01);
  }

  34% {
    transform: perspective(820px) translate3d(var(--drunk-shift, 0), var(--drunk-lift, 0), 14px) rotateZ(var(--drunk-tilt, 0)) rotateX(var(--drunk-tilt-neg, 0)) scale(1.025);
  }

  68% {
    transform: perspective(820px) translate3d(0, 2px, -8px) rotateZ(var(--drunk-tilt-neg, 0)) rotateY(var(--drunk-tilt-neg, 0)) scale(0.995);
  }
}

@keyframes coaster-hiccup {
  0%,
  60%,
  67%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0);
  }

  61.5% {
    transform: translate3d(0, -8px, 0) rotate(0.65deg);
  }

  62.5% {
    transform: translate3d(2px, 4px, 0) rotate(-0.9deg);
  }

  64% {
    transform: translate3d(-1px, -3px, 0) rotate(0.35deg);
  }
}

@keyframes coaster-catastrophe {
  0%,
  67%,
  89%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0) scale(1);
  }

  72% {
    transform: translate3d(-4px, 7px, 0) rotate(-4.6deg) scale(0.988);
  }

  78% {
    transform: translate3d(-8px, 13px, 0) rotate(-8.4deg) scale(0.978);
  }

  80.5% {
    transform: translate3d(7px, -9px, 0) rotate(4.8deg) scale(1.035);
  }

  84% {
    transform: translate3d(-2px, 2px, 0) rotate(-1.4deg) scale(1.008);
  }
}

@keyframes coaster-doze {
  0%,
  64%,
  87%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0);
  }

  71% {
    transform: translate3d(-2px, 5px, 0) rotate(-2.2deg);
  }

  78% {
    transform: translate3d(-5px, 10px, 0) rotate(-4deg);
  }

  80.5% {
    transform: translate3d(4px, -6px, 0) rotate(2.8deg);
  }
}

@keyframes coaster-rooster-split {
  0%,
  42%,
  66%,
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(1);
  }

  48% {
    opacity: var(--rooster-opacity, 0.28);
    transform: translate3d(7px, -1px, 0) scale(1.008);
  }

  54% {
    opacity: calc(var(--rooster-opacity, 0.28) * 0.76);
    transform: translate3d(-5px, 2px, 0) scale(0.997);
  }

  61% {
    opacity: var(--rooster-opacity, 0.28);
    transform: translate3d(4px, 0, 0) scale(1.004);
  }
}

@keyframes coaster-beer-slosh {
  0%,
  100% {
    transform: translate3d(-5px, 2px, 0) rotate(-1.15deg) scaleX(1.02);
  }

  48% {
    transform: translate3d(6px, -5px, 0) rotate(1.35deg) scaleX(1.035);
  }
}

@keyframes coaster-bubble-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.55);
  }

  18% {
    opacity: 0.72;
  }

  76% {
    opacity: 0.42;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--bubble-drift, 12px), -156px, 0) scale(1.18);
  }
}

@keyframes coaster-hicks {
  0%,
  76%,
  90%,
  100% {
    opacity: 0;
    transform: translate3d(8px, 8px, 0) rotate(6deg) scale(0.65);
  }

  79.5% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(-4deg) scale(1.08);
  }

  82% {
    opacity: 1;
    transform: translate3d(-2px, -2px, 0) rotate(2deg) scale(1);
  }

  87% {
    opacity: 0.9;
    transform: translate3d(-4px, -8px, 0) rotate(-1deg) scale(0.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  .staeh-coaster-svg.is-tipsy,
  .coaster-catastrophe-stage,
  .coaster-hiccup-stage,
  .staeh-coaster-svg.is-wasted .coaster-art,
  .coaster-rooster-double,
  .coaster-live-spill,
  .coaster-beer-bubble,
  .coaster-hicks-bubble {
    animation: none;
  }
}

.coaster-wave {
  fill: none;
  stroke-linecap: butt;
  opacity: 0.58;
}

.coaster-wave--cream {
  stroke: #f4d58c;
  stroke-width: 58;
}

.coaster-wave--green {
  stroke: #203f2b;
  stroke-width: 76;
  opacity: 0.72;
}

.coaster-wave--lower {
  stroke-width: 34;
  opacity: 0.48;
}

.svg-tally-line {
  stroke: rgba(42, 31, 22, 0.84);
  stroke-width: 6;
  stroke-linecap: round;
}

.svg-tally-line--slash {
  stroke-width: 7;
}

.svg-tally-placeholder {
  fill: rgba(66, 45, 24, 0.56);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.coaster-svg-label {
  filter: drop-shadow(0 8px 13px rgba(50, 27, 9, 0.2));
}

.coaster-svg-crest,
.coaster-svg-brand,
.coaster-svg-script,
.coaster-svg-count-main,
.coaster-svg-count-label,
.coaster-svg-count-updated {
  paint-order: stroke fill;
  text-anchor: middle;
}

.coaster-svg-crest {
  fill: #fff4cc;
  font-family: Georgia, serif;
  font-size: 40px;
  font-weight: 900;
  stroke: rgba(96, 32, 22, 0.34);
  stroke-width: 2px;
}

.coaster-svg-brand {
  fill: #2b2925;
  font-family: Arial Black, Arial, Helvetica, sans-serif;
  font-size: 70px;
  font-weight: 950;
  letter-spacing: 0;
  stroke: rgba(245, 224, 178, 0.46);
  stroke-width: 2px;
}

.coaster-svg-script {
  fill: #3a2a1c;
  font-family: Georgia, serif;
  font-size: 31px;
  font-style: italic;
  font-weight: 700;
  stroke: rgba(246, 226, 182, 0.28);
  stroke-width: 1px;
}

.coaster-svg-mascot {
  mix-blend-mode: multiply;
  transform-box: fill-box;
  transform-origin: center bottom;
}

.coaster-svg-count {
  filter: drop-shadow(0 2px 0 rgba(255, 229, 167, 0.55));
}

.coaster-svg-count-main {
  fill: rgba(28, 27, 25, 0.94);
  font-family: Arial Black, Arial, Helvetica, sans-serif;
  font-size: 132px;
  font-weight: 950;
  letter-spacing: 0;
  text-anchor: start;
  stroke: rgba(246, 225, 177, 0.32);
  stroke-width: 2px;
}

.coaster-svg-count-label {
  fill: var(--red);
  font-size: 25px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-anchor: start;
}

.coaster-svg-count-updated {
  fill: rgba(35, 28, 22, 0.68);
  font-size: 19px;
  font-weight: 850;
  text-anchor: start;
}

.projection-number {
  margin-bottom: 4px;
  color: var(--red);
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 760;
  line-height: 1;
}

.staeh-page .section-head {
  display: grid;
  grid-template-columns: minmax(34px, 1fr) minmax(0, 760px) minmax(34px, 1fr);
  align-items: center;
  text-align: center;
}

.staeh-page .section-head > div {
  grid-column: 2;
}

.staeh-page .section-head > .pill {
  grid-column: 3;
  justify-self: end;
}

.staeh-page .section-head .copy {
  margin: 6px auto 0;
}

.staeh-page .projection-number,
.staeh-page .projection-number + .copy {
  text-align: center;
}

.staeh-message {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.staeh-message:last-child {
  border-bottom: 0;
}

.staeh-message--admin {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

@media (max-width: 480px) {
  .task-filters__options {
    grid-template-columns: minmax(0, 1fr);
  }

  .staeh-showcase {
    grid-template-columns: 1fr;
  }

  .staeh-counter-card {
    max-width: 360px;
    margin: 0 auto;
  }

  .staeh-coaster-svg {
    width: 100%;
    margin: 0 auto;
  }
}

.route-plan-input {
  min-height: 180px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.route-list {
  display: grid;
  gap: 8px;
}

.route-stop {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.route-stop.is-active {
  border-color: rgba(230, 0, 18, 0.28);
  background: linear-gradient(90deg, rgba(230, 0, 18, 0.09), rgba(244, 180, 0, 0.16));
}

.route-stop__time {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.staeh-admin-grid {
  display: grid;
  gap: 12px;
}

.staeh-admin-form,
.staeh-admin-log {
  min-width: 0;
}

.staeh-admin-log {
  display: grid;
  gap: 8px;
}

.admin-section--staeh.admin-section--priority {
  border-color: rgba(17, 17, 17, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 209, 47, 0.2), rgba(255, 255, 255, 0.78)),
    var(--surface);
  box-shadow: var(--shadow);
}

.staeh-admin-quick-grid {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(220px, 1.2fr);
  gap: 10px;
  align-items: end;
}

.staeh-count-field {
  min-width: 0;
  padding: 0;
  border: 0;
}

.staeh-count-field legend {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 650;
}

.staeh-count-stepper {
  display: grid;
  grid-template-columns: auto minmax(74px, 1fr) auto auto;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.15);
  border-radius: var(--radius);
  background: #fff;
}

.staeh-count-stepper button,
.staeh-count-stepper input {
  min-width: 0;
  min-height: 46px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 700;
}

.staeh-count-stepper button {
  padding: 0 10px;
  border-right: 1px solid var(--line);
  background: var(--surface-2);
  cursor: pointer;
}

.staeh-count-stepper button:last-child {
  border-right: 0;
  border-left: 1px solid var(--line);
}

.staeh-count-stepper input {
  width: 100%;
  padding: 8px;
  font-size: 1.15rem;
  text-align: center;
  outline: 0;
}

.staeh-count-stepper:focus-within {
  border-color: rgba(238, 36, 28, 0.66);
  box-shadow: 0 0 0 4px rgba(255, 209, 47, 0.28);
}

.staeh-message-input {
  min-height: 76px !important;
}

.staeh-admin-save {
  width: 100%;
  min-height: 48px;
}

.staeh-projection-explainer {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 209, 47, 0.16);
}

.staeh-projection-explainer > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.staeh-projection-explainer > span svg {
  width: 15px;
  height: 15px;
}

.staeh-projection-explainer strong {
  font-size: 1.15rem;
}

.staeh-projection-explainer small {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.staeh-admin-advanced {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.staeh-admin-advanced summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 650;
  list-style: none;
}

.staeh-admin-advanced summary::-webkit-details-marker {
  display: none;
}

.staeh-admin-advanced summary svg {
  transition: transform 0.18s ease;
}

.staeh-admin-advanced[open] summary svg {
  transform: rotate(180deg);
}

.staeh-admin-advanced__body {
  display: grid;
  gap: 11px;
  padding: 0 12px 12px;
}

.staeh-optics-control {
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(17, 17, 17, 0.13);
  border-radius: 12px;
  background: rgba(17, 17, 17, 0.035);
}

.staeh-optics-control__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.staeh-optics-control__head output {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.staeh-optics-control input[type="range"] {
  width: 100%;
  accent-color: var(--red);
}

.staeh-optics-control input[type="range"]:disabled {
  opacity: 0.38;
}

.staeh-optics-control small {
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.35;
}

@media (max-width: 620px) {
  .staeh-admin-quick-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.empty--small {
  min-height: 88px;
  padding: 14px;
}

.empty {
  display: grid;
  min-height: 160px;
  place-items: center;
  padding: 20px;
  border: 1px dashed #d7d7d9;
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  text-align: center;
}

.admin-row {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.admin-row--compact {
  box-shadow: none;
}

.admin-row__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.admin-photo {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.admin-photo img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
}

.admin-thumb {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.admin-thumb img,
.admin-thumb .censored-frame {
  width: 100%;
  max-height: 180px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.admin-note {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfbfb;
}

.admin-section,
.moderation-details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.admin-section {
  padding: 12px;
}

.moderation-details {
  padding: 10px;
  box-shadow: none;
}

.admin-section summary,
.moderation-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}

.admin-section summary strong {
  display: block;
  margin-top: 2px;
  font-size: 1.05rem;
}

.admin-section summary::-webkit-details-marker,
.moderation-details summary::-webkit-details-marker {
  display: none;
}

.admin-section[open] summary,
.moderation-details[open] summary {
  margin-bottom: 10px;
}

.table-like {
  display: grid;
  gap: 8px;
}

.inline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.inline-row:last-child {
  border-bottom: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.admin-task-manager {
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.admin-task-manager__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 209, 47, 0.22), rgba(255, 255, 255, 0.6)),
    var(--surface);
  cursor: pointer;
  list-style: none;
}

.admin-task-manager__head::-webkit-details-marker {
  display: none;
}

.admin-task-manager:not([open]) .admin-task-manager__head {
  border-bottom-color: transparent;
}

.admin-task-manager__summary-action {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.admin-task-manager__summary-action svg {
  width: 19px;
  height: 19px;
  transition: transform 0.18s ease;
}

.admin-task-manager[open] .admin-task-manager__summary-action svg {
  transform: rotate(180deg);
}

.admin-task-manager__head h2 {
  margin-top: 3px;
}

.admin-task-manager__head .copy {
  max-width: 620px;
  margin-top: 5px;
}

.admin-task-toolbar {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.admin-task-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(17, 17, 17, 0.15);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
}

.admin-task-search svg {
  width: 17px;
  height: 17px;
}

.admin-task-search input {
  width: 100%;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  outline: 0;
}

.admin-task-search:focus-within {
  border-color: rgba(238, 36, 28, 0.56);
  box-shadow: 0 0 0 4px rgba(255, 209, 47, 0.25);
}

.admin-task-filters {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.admin-task-filter {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border: 0;
  border-radius: calc(var(--radius) - 3px);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 650;
}

.admin-task-filter span {
  display: grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.08);
  font-size: 0.72rem;
}

.admin-task-filter.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(17, 17, 17, 0.1);
}

.admin-task-manager__result {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.admin-task-list {
  display: grid;
  gap: 8px;
  padding: 8px 12px 14px;
}

.admin-task-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.admin-task-item[hidden] {
  display: none;
}

.admin-task-item:hover {
  border-color: rgba(17, 17, 17, 0.22);
}

.admin-task-item.is-inactive {
  background: #f6f6f7;
}

.admin-task-item.is-editing {
  border-color: rgba(17, 17, 17, 0.58);
  background: #fff;
  box-shadow: 0 10px 26px rgba(17, 17, 17, 0.12);
}

.admin-task-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
}

.admin-task-row__select {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.admin-task-order {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.is-editing .admin-task-order {
  background: var(--gold);
  color: var(--ink);
}

.admin-task-row__copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.admin-task-row__copy strong,
.admin-task-row__copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-task-row__copy strong {
  font-size: 0.95rem;
}

.admin-task-row__copy small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.admin-task-row__facts,
.admin-task-actions,
.admin-task-row__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-task-actions {
  justify-content: flex-end;
}

.admin-task-row__meta {
  gap: 8px 15px;
  padding: 0 12px 10px 59px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.admin-task-row__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.admin-task-row__meta svg {
  width: 14px;
  height: 14px;
}

.admin-task-create {
  padding: 12px 12px 0;
  background: #fff;
}

.admin-task-editor {
  padding: 18px;
  border-top: 1px solid rgba(17, 17, 17, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 209, 47, 0.09), rgba(255, 255, 255, 0) 150px),
    #fbfbfc;
}

.admin-task-create .admin-task-editor {
  border: 1px solid rgba(17, 17, 17, 0.2);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.1);
}

.admin-task-editor__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-task-editor__head h3 {
  margin-top: 2px;
  font-size: 1.25rem;
}

.admin-task-editor__head .copy {
  margin-top: 4px;
}

.admin-task-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-task-form__wide {
  grid-column: 1 / -1;
}

.admin-task-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 4px;
}

.admin-task-form__buttons {
  justify-content: flex-end;
}

.admin-task-active-switch {
  flex: 0 0 auto;
  background: #fff;
}

.admin-task-delete-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.admin-task-delete-note svg {
  flex: 0 0 auto;
}

.admin-secondary-grid .admin-leader-preview {
  grid-column: 1 / -1;
}

@media (max-width: 820px) {
  .admin-task-form__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-task-form__buttons .btn {
    flex: 1 1 auto;
  }

  .admin-task-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-task-filters {
    width: 100%;
  }

  .admin-task-filter {
    flex: 1 1 0;
  }

  .admin-task-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-task-actions {
    justify-content: flex-start;
    padding-left: 47px;
  }
}

@media (max-width: 560px) {
  .admin-task-manager__head,
  .admin-task-toolbar {
    padding-right: 14px;
    padding-left: 14px;
  }

  .admin-task-manager__head {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .admin-task-manager__summary-action span {
    display: none;
  }

  .admin-task-row__select {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .admin-task-order {
    width: 30px;
    height: 30px;
  }

  .admin-task-row__facts {
    grid-column: 2;
  }

  .admin-task-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-left: 43px;
  }

  .admin-task-actions .btn {
    min-width: 0;
    padding-right: 7px;
    padding-left: 7px;
    font-size: 0.72rem;
  }

  .admin-task-actions .btn svg {
    display: none;
  }

  .admin-task-row__meta {
    padding-left: 55px;
  }

  .admin-task-editor {
    padding: 15px 12px;
  }

  .admin-task-form__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-task-form__wide {
    grid-column: auto;
  }

  .admin-task-form__buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}

.nav {
  position: fixed;
  z-index: 40;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(255, 253, 247, 0.94);
  box-shadow: 0 -12px 36px rgba(76, 27, 4, 0.14);
  backdrop-filter: blur(18px);
}

.nav__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  gap: 6px;
  max-width: 680px;
  margin: 0 auto;
}

.nav button,
.nav a {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 52px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  font-stretch: semi-condensed;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}

.nav button span,
.nav a span {
  display: block;
  margin-bottom: 4px;
  font-size: 1.08rem;
}

.nav button.is-active,
.nav a.is-active {
  background: var(--red);
  color: #fff;
  box-shadow: 0 7px 18px rgba(185, 21, 16, 0.22);
}

@media (max-width: 1019px) {
  .nav--admin .nav__inner {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2px;
  }
}

.toast {
  position: fixed;
  z-index: 60;
  right: 16px;
  bottom: calc(var(--nav-h) + 18px);
  left: 16px;
  max-width: 520px;
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  font-family: var(--font-ui);
  font-weight: 600;
}

.confetti {
  position: fixed;
  z-index: 90;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti span {
  position: absolute;
  top: 44%;
  left: 50%;
  width: 9px;
  height: 15px;
  border-radius: 2px;
  opacity: 0;
  animation: confetti-pop 1.25s cubic-bezier(0.17, 0.67, 0.2, 1) forwards;
  animation-delay: var(--d);
  transform: translate(-50%, -50%);
}

@keyframes confetti-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4) rotate(0deg);
  }

  12% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1) rotate(var(--r));
  }
}

.hidden {
  display: none !important;
}

@media (min-width: 760px) {
  .app-shell {
    padding: 22px 22px 32px;
  }

  .hero-strip {
    padding: 30px 28px 26px;
  }

  .hero-strip--start {
    min-height: 0;
    padding-right: 28px;
  }

  .user-chip {
    display: inline-flex;
  }

  .grid--2,
  .auth-grid,
  .detail-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  }

  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stats.stats--public {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats.stats--player-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feed-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staeh-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .staeh-layout > .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staeh-admin-grid {
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
    align-items: start;
  }

  .nav {
    right: 22px;
    bottom: 22px;
    left: auto;
    width: 470px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px;
  }

  .toast {
    right: 26px;
    bottom: 112px;
    left: auto;
    margin: 0;
  }
}

@media (min-width: 1020px) {
  .feed-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Layout refresh: mobile action bar, desktop rail and task-focused game views */
:root {
  --red: #d91f18;
  --red-dark: #a9140f;
  --shell-max: 1280px;
  --rail-w: 190px;
}

html {
  scroll-padding-top: 92px;
  scroll-padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}

body:has(.image-modal) {
  overflow: hidden;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.16s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  min-height: 100dvh;
  padding: 12px 12px calc(var(--nav-h) + 18px + env(safe-area-inset-bottom));
}

.topbar {
  max-width: var(--shell-max);
  min-height: 60px;
  margin-bottom: 12px;
}

.app-frame {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
}

.page {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.profile-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 650;
}

.profile-trigger {
  min-width: 42px;
  justify-content: center;
  gap: 8px;
  padding: 5px;
}

.profile-trigger:hover {
  border-color: rgba(17, 17, 17, 0.28);
  background: var(--paper);
}

.profile-trigger__name {
  display: none;
  overflow: hidden;
  max-width: 120px;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar .icon-btn,
.icon-btn {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.btn {
  min-height: 44px;
}

.btn--small,
.activity-toggle,
.like-button {
  min-height: 44px;
}

.task-card.is-expanded .task-card__desc {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.public-task-teaser {
  display: grid;
  gap: 14px;
}

.task-preview-list {
  display: grid;
  gap: 8px;
}

.task-preview-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.task-preview-row > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.task-preview-row strong,
.task-preview-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-preview-row small {
  color: var(--muted);
  font-size: 0.78rem;
}

.player-dashboard,
.dashboard-primary,
.dashboard-support,
.tasks-page,
.tasks-layout,
.tasks-main,
.tasks-support {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.dashboard-intro {
  display: grid;
  align-content: center;
  padding: 20px;
  background: var(--surface);
}

.dashboard-intro h1 {
  max-width: 680px;
  margin-top: 6px;
  font-size: clamp(2.15rem, 10vw, 4.2rem);
}

.dashboard-intro .copy {
  max-width: 640px;
  margin-top: 8px;
  color: #33281f;
}

.dashboard-status {
  display: grid;
  gap: 12px;
}

.dashboard-status .stats {
  gap: 8px;
}

.dashboard-status .stat {
  min-height: 68px;
  padding: 10px 7px;
  box-shadow: none;
}

.dashboard-status > .stat--veto {
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-color: rgba(191, 29, 45, 0.2);
  background: var(--bad-soft);
  box-shadow: none;
  text-align: left;
}

.dashboard-status > .stat--veto .stat--veto__value {
  justify-content: flex-start;
}

.dashboard-status__link {
  width: 100%;
}

.next-task {
  position: relative;
  display: grid;
  gap: 15px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-top: 5px solid var(--info);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 209, 47, 0.2), transparent 40%),
    var(--surface);
  box-shadow: var(--shadow);
}

.next-task--rejected {
  border-top-color: var(--bad);
  background:
    radial-gradient(circle at 100% 0, rgba(191, 29, 45, 0.12), transparent 42%),
    var(--surface);
}

.next-task--locked {
  border-top-color: #77777f;
}

.next-task--complete {
  border-top-color: var(--ok);
  background:
    radial-gradient(circle at 95% 8%, rgba(25, 122, 59, 0.13), transparent 42%),
    var(--surface);
}

.next-task__mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
}

.next-task__mark svg {
  width: 28px;
  height: 28px;
}

.next-task__topline,
.next-task__title-row,
.next-task__facts {
  display: flex;
  align-items: center;
  gap: 10px;
}

.next-task__topline {
  justify-content: space-between;
}

.next-task__title-row {
  align-items: flex-start;
}

.next-task__title-row > span:last-child {
  min-width: 0;
}

.next-task__title-row h2 {
  font-size: clamp(1.55rem, 6vw, 2.35rem);
}

.next-task__title-row strong {
  display: block;
  margin-top: 4px;
  color: var(--red-dark);
  font-family: var(--font-ui);
}

.next-task__icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(217, 31, 24, 0.18);
  border-radius: var(--radius);
  background: rgba(217, 31, 24, 0.08);
  color: var(--red-dark);
  font-family: var(--font-ui);
  font-size: 1.35rem;
  font-weight: 700;
}

.next-task__facts {
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.next-task__facts span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.next-task__facts svg {
  width: 17px;
  height: 17px;
}

.next-task__hint {
  padding: 10px 12px;
  border-left: 3px solid #77777f;
  background: #f0f0f2;
  color: var(--muted);
  line-height: 1.45;
}

.next-task__cta {
  width: 100%;
}

.dashboard-announcement,
.quick-actions,
.tasks-tip {
  display: grid;
  gap: 9px;
}

.dashboard-announcement--live {
  border-color: rgba(217, 31, 24, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 209, 47, 0.25), rgba(255, 255, 255, 0.96)),
    var(--surface);
}

.quick-actions__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.quick-actions__grid button {
  display: grid;
  min-height: 78px;
  place-items: center;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 650;
}

.quick-actions__grid button:hover {
  border-color: rgba(217, 31, 24, 0.35);
  background: var(--paper);
}

.quick-actions__grid svg {
  width: 23px;
  height: 23px;
  color: var(--red-dark);
}

.player-help summary {
  min-height: 58px;
}

.tasks-heading {
  display: grid;
  align-items: end;
  gap: 16px;
  padding: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 209, 47, 0.22), transparent 40%),
    var(--surface);
}

.tasks-heading h1 {
  margin-top: 5px;
}

.tasks-heading .copy {
  max-width: 680px;
  margin-top: 7px;
}

.tasks-heading__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.tasks-heading__summary span {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 9px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.tasks-heading__summary b {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1.1rem;
  line-height: 1;
}

.tasks-main > .panel {
  box-shadow: var(--shadow-sm);
}

.task-overview .task-filters {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.tasks-tip .btn {
  width: 100%;
  margin-top: 4px;
}

.upload-progress {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid rgba(35, 95, 156, 0.2);
  border-radius: var(--radius);
  background: var(--info-soft);
  color: var(--info);
  font-weight: 650;
}

.upload-progress svg {
  width: 20px;
  height: 20px;
  animation: upload-pulse 1.1s ease-in-out infinite alternate;
}

@keyframes upload-pulse {
  to {
    transform: translateY(-3px);
  }
}

.account-actions {
  display: grid;
  gap: 9px;
}

.loading-page {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100dvh;
  align-content: start;
  gap: 16px;
  padding: 12px;
}

.loading-page .topbar {
  width: 100%;
}

.loading-panel {
  display: grid;
  width: min(520px, 100%);
  min-height: 220px;
  place-items: center;
  gap: 14px;
  margin: clamp(48px, 12vh, 130px) auto 0;
  padding: 28px;
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.loading-panel__copy {
  display: grid;
  gap: 6px;
}

.loading-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(217, 31, 24, 0.18);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: loading-spin 0.8s linear infinite;
}

@keyframes loading-spin {
  to {
    transform: rotate(1turn);
  }
}

.image-modal__backdrop {
  cursor: default;
}

.nav a span svg,
.nav button span svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 430px) {
  .app-shell,
  .loading-page {
    padding-right: 9px;
    padding-left: 9px;
  }

  .topbar {
    gap: 6px;
    padding: 7px;
  }

  .brand {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 7px;
  }

  .brand__logo {
    width: 36px;
    height: 36px;
  }

  .brand__kicker {
    display: none;
  }

  .brand__title {
    font-size: 0.92rem;
  }

  .topbar__meta {
    gap: 5px;
  }

  .profile-trigger,
  .topbar .icon-btn {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .profile-trigger .avatar {
    width: 28px;
    height: 28px;
  }

  .nav {
    padding-right: 7px;
    padding-left: 7px;
  }

  .nav__inner {
    gap: 2px;
  }

  .nav a,
  .nav button {
    min-height: 54px;
    padding: 5px 2px;
    font-size: 0.69rem;
  }

  .task-card__summary {
    grid-template-columns: 40px minmax(0, 1fr) auto 24px;
    gap: 7px;
    padding-right: 8px;
  }

  .task-card__summary .status-badge {
    max-width: 82px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dashboard-status > .stat--veto {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-status > .stat--veto .btn {
    width: 100%;
  }

  .next-task__topline {
    align-items: flex-start;
  }

  .image-modal {
    padding: 8px;
  }

  .image-modal__panel {
    max-height: calc(100dvh - 16px);
  }
}

@media (min-width: 760px) {
  .app-shell {
    padding: 20px 20px calc(var(--nav-h) + 22px + env(safe-area-inset-bottom));
  }

  .topbar {
    margin-bottom: 16px;
    padding: 9px 12px;
  }

  .profile-trigger {
    padding-right: 10px;
  }

  .profile-trigger__name {
    display: inline;
  }

  .tasks-heading {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 24px;
  }

  .tasks-heading__summary {
    min-width: 330px;
  }

  .next-task__cta,
  .dashboard-status__link {
    width: fit-content;
  }

  .nav {
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    padding: 8px 20px calc(8px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 0;
  }

  .toast {
    right: 24px;
    bottom: calc(var(--nav-h) + 24px);
    left: auto;
  }
}

@media (min-width: 1020px) {
  html {
    scroll-padding-bottom: 24px;
  }

  .app-shell {
    padding: 20px;
  }

  .app-frame {
    display: grid;
    grid-template-columns: var(--rail-w) minmax(0, 1fr);
    align-items: start;
    gap: 18px;
  }

  .nav {
    position: sticky;
    top: 96px;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 253, 247, 0.92);
    box-shadow: var(--shadow-sm);
  }

  .nav__inner {
    grid-template-columns: 1fr;
    gap: 5px;
    max-width: none;
  }

  .nav a,
  .nav button {
    grid-template-columns: 28px minmax(0, 1fr);
    min-height: 50px;
    place-items: center start;
    gap: 8px;
    padding: 8px 10px;
    font-size: 0.9rem;
    text-align: left;
  }

  .nav a span,
  .nav button span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    margin: 0;
  }

  .player-dashboard {
    grid-template-columns: minmax(0, 1fr) 286px;
    grid-template-areas:
      "intro status"
      "primary support";
    align-items: start;
    gap: 18px;
  }

  .dashboard-intro {
    grid-area: intro;
    align-self: stretch;
    padding: 24px;
  }

  .dashboard-status {
    grid-area: status;
  }

  .dashboard-primary {
    grid-area: primary;
  }

  .dashboard-support {
    position: sticky;
    top: 96px;
    grid-area: support;
  }

  .tasks-layout {
    grid-template-columns: minmax(0, 1fr) 286px;
    align-items: start;
    gap: 18px;
  }

  .tasks-support {
    position: sticky;
    top: 96px;
  }

  .tasks-heading {
    padding: 26px;
  }

  .task-card__details {
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
    align-items: start;
  }

  .task-card__details .task-card__actions {
    grid-column: 2;
  }

  .feed-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toast {
    bottom: 24px;
  }
}

@media (min-width: 1280px) {
  .player-dashboard {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .tasks-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .feed-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .confetti {
    display: none;
  }
}

/* Focused player overview, compact task filters and three-up task tiles */
.player-dashboard--overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.game-summary {
  display: grid;
  gap: 18px;
  padding: 20px;
  background: var(--surface);
}

.game-summary__head h1 {
  margin-top: 5px;
  font-size: clamp(2.15rem, 9vw, 3.8rem);
}

.game-summary__head {
  display: grid;
  justify-items: center;
  text-align: center;
}

.game-summary .stats {
  gap: 8px;
}

.game-summary__tasks-button {
  width: 100%;
}

.start-prizes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 10px;
}

.start-prize {
  display: grid;
  min-width: 0;
  min-height: 58px;
  place-items: center;
  align-content: center;
  gap: 3px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-align: center;
}

.start-prize + .start-prize {
  border-left-width: 1px;
}

.start-prize--1 {
  border-color: rgba(181, 132, 0, 0.2);
  background: #fff4cc;
}

.start-prize--2 {
  border-color: rgba(107, 114, 128, 0.17);
  background: #f0f2f4;
}

.start-prize--3 {
  border-color: rgba(155, 91, 47, 0.18);
  background: #f6e3d5;
}

.start-prize span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.start-prize strong {
  font-family: var(--font-ui);
  font-size: 1.15rem;
}

.player-help {
  overflow: hidden;
}

.player-help summary {
  min-height: 58px;
}

.player-help summary h2 {
  font-size: 1.12rem;
}

.tasks-heading--compact {
  grid-template-columns: minmax(0, 1fr);
  min-height: 72px;
  place-items: center;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--surface);
}

.tasks-heading--compact h1 {
  margin: 0;
  text-align: center;
}

.tasks-layout {
  grid-template-columns: minmax(0, 1fr);
}

.tasks-toolbar {
  position: relative;
  z-index: 5;
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.tasks-toolbar__done {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 12px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1;
  text-align: center;
}

.tasks-toolbar__done strong {
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.98rem;
}

.task-filters {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}

.task-filter-toggle {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.task-filter-toggle:hover,
.task-filter-toggle[aria-expanded="true"] {
  border-color: rgba(217, 31, 24, 0.45);
  background: var(--paper);
  color: var(--red-dark);
}

.task-filter-toggle:focus-visible {
  outline: 3px solid rgba(238, 36, 28, 0.2);
  outline-offset: 2px;
}

.task-filter-toggle svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}

.task-filter-toggle__dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--red);
}

.task-filter-popover {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 20;
  display: grid;
  width: min(320px, calc(100vw - 28px));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 40px rgba(17, 17, 17, 0.16);
}

.task-filter-popover[hidden] {
  display: none;
}

.task-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.task-filters__head > span {
  display: grid;
  gap: 2px;
}

.task-filters__head strong {
  font-size: 0.88rem;
  font-weight: 700;
}

.task-filters__result {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.task-filters__reset {
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--red-dark);
  font-size: 0.75rem;
  font-weight: 700;
}

.task-filters__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.task-filter {
  min-width: 0;
  min-height: 40px;
  justify-content: flex-start;
  gap: 6px;
  padding: 6px 7px;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

.task-filter:hover {
  border-color: var(--filter-accent);
}

.task-filter.is-active {
  border-color: var(--filter-accent);
  box-shadow: none;
}

.task-filter__selection {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--filter-accent);
  border-radius: 50%;
  background: #fff;
  color: #fff;
}

.task-filter.is-active .task-filter__selection {
  background: var(--filter-accent);
}

.task-filter__selection svg {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

.task-filter__label {
  overflow: hidden;
  min-width: 0;
  flex: 1 1 auto;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-filter__count {
  display: grid;
  min-width: 21px;
  height: 21px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.07);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.task-filter__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.task-grid {
  display: grid;
  gap: 12px;
}

.task-grid--tasks {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.task-grid .task-card {
  align-self: start;
}

.task-grid--tasks .task-card {
  --task-card-border: rgba(17, 17, 17, 0.2);
  --task-card-surface: #e1e2e5;
  border-color: var(--task-card-border);
  background: var(--task-card-surface);
}

.task-grid--tasks .task-card::before {
  display: none;
}

.task-grid--tasks .task-card--approved,
.task-grid--tasks .task-card--pending {
  --task-card-border: rgba(25, 122, 59, 0.38);
  --task-card-surface: #cfe9d6;
}

.task-grid--tasks .task-card--available {
  --task-card-border: rgba(35, 95, 156, 0.4);
  --task-card-surface: #cce2f6;
}

.task-grid--tasks .task-card--rejected {
  --task-card-border: rgba(191, 29, 45, 0.36);
  --task-card-surface: #f1d2d6;
}

.task-grid--tasks .task-card--locked {
  --task-card-border: rgba(86, 86, 94, 0.34);
  --task-card-surface: #d9dade;
}

.task-grid--tasks .task-card.is-expanded,
.task-grid--tasks .task-filter-empty {
  grid-column: 1 / -1;
}

.task-grid--tasks .task-card__summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  align-content: start;
  gap: 6px;
  min-height: 0;
  padding: 6px;
}

.task-card__points {
  position: absolute;
  top: 5px;
  right: 5px;
  padding: 4px 6px;
  font-size: 0.68rem;
  line-height: 1;
}

.task-grid--tasks .task-card__summary-main {
  gap: 5px;
  padding: 0 1px 1px;
}

.task-grid--tasks .task-card__summary-main h3 {
  display: flex;
  min-height: 2.45em;
  max-height: 2.45em;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: clamp(0.7rem, 3.2vw, 0.96rem);
  line-height: 1.22;
  text-align: center;
  white-space: normal;
}

.task-grid--tasks .task-card__summary-meta {
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 3px;
}

.task-grid--tasks .status-badge {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 20px;
  gap: 3px;
  overflow: hidden;
  padding: 3px 5px;
  font-size: 0.62rem;
  text-overflow: ellipsis;
}

.task-grid--tasks .status-badge svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.task-grid--tasks .task-card__chevron {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.task-grid--tasks .task-card__chevron svg {
  width: 14px;
  height: 14px;
}

@media (min-width: 480px) {
  .task-grid--tasks {
    gap: 10px;
  }

  .task-grid--tasks .task-card__summary {
    padding: 8px;
  }

  .task-grid--tasks .status-badge {
    font-size: 0.7rem;
  }
}

@media (min-width: 760px) {
  .game-summary {
    padding: 24px;
  }

  .task-grid--tasks {
    gap: 12px;
  }

  .task-grid--tasks .task-card__summary-main h3 {
    font-size: 1rem;
  }

  .tasks-heading--compact {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .tasks-heading--compact h1 {
    grid-column: 2;
  }

  .tasks-heading--compact .btn {
    grid-column: 3;
    justify-self: end;
  }
}

@media (min-width: 1020px) {
  .player-dashboard.player-dashboard--overview,
  .tasks-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: none;
  }
}

@media (min-width: 1280px) {
  .tasks-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Calm, centered detail surface for an opened task card */
.task-grid--tasks > .task-card.is-expanded > .task-card__summary {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-content: center;
  gap: 10px;
  padding: 16px 14px 12px;
  text-align: center;
}

.task-grid--tasks > .task-card.is-expanded .task-card__summary-main {
  width: min(100%, 680px);
  justify-items: center;
  gap: 8px;
  padding: 0;
}

.task-grid--tasks > .task-card.is-expanded .task-card__summary-main h3 {
  min-height: 0;
  max-height: none;
  justify-content: center;
  font-size: clamp(1.12rem, 4vw, 1.42rem);
  line-height: 1.2;
  text-align: center;
}

.task-card__expanded-desc {
  display: block;
  max-width: 62ch;
  color: #493f37;
  font-size: 0.92rem;
  font-weight: 450;
  line-height: 1.5;
  text-align: center;
  white-space: pre-wrap;
}

.task-grid--tasks > .task-card.is-expanded .task-card__summary-meta {
  width: 100%;
  justify-content: center;
  gap: 8px;
}

.task-grid--tasks > .task-card.is-expanded .status-badge {
  flex: 0 1 auto;
  min-height: 26px;
  justify-content: center;
  padding: 5px 9px;
  font-size: 0.74rem;
}

.task-grid--tasks > .task-card.is-expanded .task-card__chevron {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.66);
}

.task-grid--tasks > .task-card.is-expanded > .task-card__details {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  width: 100%;
  gap: 12px;
  padding: 14px 14px 16px;
  border-top: 1px solid var(--task-card-border);
  background: rgba(255, 255, 255, 0.3);
  text-align: center;
}

.task-grid--tasks > .task-card.is-expanded .veto-reason {
  width: min(100%, 680px);
  text-align: left;
}

.task-grid--tasks > .task-card.is-expanded .task-card__meta-row {
  display: flex;
  width: min(100%, 680px);
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.task-grid--tasks > .task-card.is-expanded .task-card__fact {
  min-height: 34px;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  text-align: center;
}

.task-grid--tasks > .task-card.is-expanded .task-card__fact span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.task-grid--tasks > .task-card.is-expanded .task-card__actions {
  grid-column: auto;
  width: 100%;
  justify-content: center;
}

.task-grid--tasks > .task-card.is-expanded .task-card__actions .btn {
  width: min(100%, 280px);
}

.task-grid--tasks > .task-card.is-expanded .task-card__actions > .copy {
  max-width: 62ch;
  text-align: center;
}

/* Standalone task detail */
.task-detail-page {
  display: grid;
  width: min(100%, 860px);
  margin-inline: auto;
  gap: 14px;
}

.task-detail-back {
  justify-self: start;
}

.task-detail-hero {
  display: grid;
  justify-items: center;
  padding: clamp(24px, 6vw, 42px) clamp(16px, 5vw, 36px);
  text-align: center;
}

.task-detail-hero::after {
  content: none;
}

.task-detail-hero__icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, #fff0bd);
  box-shadow: 0 9px 22px rgba(76, 27, 4, 0.12);
  color: var(--red-dark);
  font-family: var(--font-ui);
  font-size: 1.5rem;
  font-weight: 750;
}

.task-detail-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.task-detail-location svg {
  width: 15px;
  height: 15px;
  color: var(--red-dark);
}

.task-detail-hero h1 {
  margin-top: 10px;
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 1.04;
}

.task-detail-hero h1 + .task-detail-description {
  max-width: 62ch;
  margin-top: 10px !important;
  line-height: 1.55;
  text-align: center;
  white-space: pre-wrap;
}

.task-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.task-detail-meta .badge,
.task-detail-meta .pill {
  min-height: 30px;
  padding: 7px 10px;
}

.task-detail-submission,
.task-detail-completions {
  width: 100%;
  padding: 18px;
}

.task-detail-section-head {
  display: grid;
  justify-items: center;
  gap: 3px;
  margin-bottom: 14px;
  text-align: center;
}

.task-detail-form {
  width: min(100%, 680px);
  margin-inline: auto;
}

.task-detail-form > .btn[type="submit"] {
  width: min(100%, 320px);
  justify-self: center;
}

.task-detail-submission .upload-box {
  text-align: left;
}

.task-detail-submission .preview {
  width: min(100%, 520px);
  margin-inline: auto;
}

.task-detail-submission .submission-actions {
  justify-content: center;
}

.task-detail-message {
  max-width: 62ch;
  margin-inline: auto;
  text-align: center;
}

.task-detail-submission .veto-reason {
  width: min(100%, 680px);
  margin-inline: auto;
  text-align: left;
}

.task-detail-completions__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  text-align: center;
}

.task-detail-completions__head h2 {
  font-size: clamp(1.25rem, 5vw, 1.7rem);
}

.task-detail-completions .table-like {
  width: min(100%, 680px);
  margin-inline: auto;
  gap: 8px;
}

.task-detail-completions .inline-row {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.task-detail-completions .inline-row:last-child {
  border-bottom: 1px solid var(--line);
}

.task-detail-completions .empty {
  min-height: 112px;
  text-align: center;
}

@media (max-width: 430px) {
  .task-detail-submission,
  .task-detail-completions {
    padding: 15px;
  }

  .task-detail-completions .inline-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Compact, text-first cards in the three-column task overview */
.task-grid--tasks .task-card {
  min-width: 0;
}

.task-grid--tasks .task-card:not(.is-expanded) .task-card__summary {
  grid-template-columns: minmax(0, 1fr);
  min-height: 108px;
  align-content: stretch;
  padding: 11px 5px 6px;
  text-align: center;
}

.task-grid--tasks .task-card:not(.is-expanded) .task-card__summary-main {
  grid-template-rows: minmax(0, 1fr) auto auto minmax(0, 1fr) auto;
  justify-items: center;
  align-content: stretch;
  width: 100%;
  height: 100%;
  gap: 2px;
  padding: 0;
}

.task-grid--tasks .task-card:not(.is-expanded) .task-card__summary-main h3 {
  display: -webkit-box;
  grid-row: 2;
  align-self: end;
  min-height: 0;
  max-height: 2.44em;
  overflow: hidden;
  padding-inline: 4px 16px;
  font-size: clamp(0.68rem, 3.2vw, 0.96rem);
  line-height: 1.22;
  overflow-wrap: anywhere;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.task-card__short-desc {
  display: -webkit-box;
  min-height: 0;
  max-height: 2.55em;
  overflow: hidden;
  color: #514940;
  font-size: clamp(0.62rem, 2.65vw, 0.8rem);
  font-weight: 650;
  line-height: 1.28;
  text-align: center;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.task-grid--tasks .task-card:not(.is-expanded) .task-card__short-desc {
  grid-row: 3;
  align-self: start;
}

.task-grid--tasks .task-card:not(.is-expanded) .task-card__summary-meta {
  grid-row: 5;
  width: 100%;
  align-self: end;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 3px;
}

.task-grid--tasks .task-card__points {
  position: static;
  flex: 0 0 auto;
  justify-self: center;
  padding: 4px 6px;
  font-size: 0.66rem;
}

.task-grid--tasks .task-card:not(.is-expanded) .task-card__points {
  min-height: 20px;
  padding: 3px 5px;
  font-size: 0.62rem;
}

.task-grid--tasks .task-card:not(.is-expanded) .status-badge {
  flex: 0 1 auto;
  max-width: 100%;
  min-height: 20px;
  justify-content: center;
  overflow: visible;
  padding: 3px 5px;
  font-size: 0.6rem;
  text-overflow: clip;
}

.task-grid--tasks .task-card:not(.is-expanded) .task-card__chevron {
  position: absolute;
  top: 4px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
}

.task-grid--tasks > .task-card.is-expanded .task-card__points {
  justify-self: center;
  padding: 5px 8px;
  font-size: 0.74rem;
}

@media (max-width: 430px) {
  .task-grid--tasks .task-card:not(.is-expanded) .status-badge svg {
    display: none;
  }
}

@media (min-width: 760px) {
  .task-grid--tasks .task-card:not(.is-expanded) .task-card__summary {
    min-height: 114px;
    padding: 12px 9px 7px;
  }

  .task-grid--tasks .task-card:not(.is-expanded) .task-card__summary-meta {
    flex-direction: row;
    justify-content: center;
    gap: 6px;
  }
}
