.round {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--gap);
  height: 100dvh;
  max-width: 1180px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}

.hud {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  min-height: 56px;
}
.hud__field { font-family: var(--font-title); font-size: 22px; white-space: nowrap; }
.hud__sep { width: 1px; flex: none; align-self: stretch; background: rgba(42, 35, 32, .25); }
.hud .res { flex: none; }
.hud .res__label { font-size: 14px; }
.hud__stat { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.hud__stat b { font-family: var(--font-title); font-size: 22px; font-weight: 400; }

.sheet-wrap { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 6px; min-height: 0; }
.sheet { padding: 6px; touch-action: none; min-height: 0; overflow: hidden; }
.sheet > canvas:first-child { display: block; cursor: crosshair; touch-action: none; }
.sheet > canvas.panning { cursor: grabbing; }
.sheet canvas:focus-visible { outline: 1.5px dashed var(--ink-soft); outline-offset: 8px; }

.tray {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 22px;
  min-height: 120px;
}
.tray__label { font-family: var(--font-title); font-size: 18px; white-space: nowrap; }
.tray__offers { display: flex; gap: 14px; flex: 1; justify-content: space-around; align-items: center; }
.offer--coach { animation: coach-pulse 1.6s ease-in-out infinite; border-radius: 6px; }
@keyframes coach-pulse { 50% { box-shadow: 0 0 0 3px var(--thread), 0 0 18px rgba(216, 160, 58, .55); } }
@media (prefers-reduced-motion: reduce) { .offer--coach { animation: none; box-shadow: 0 0 0 3px var(--thread); } }
.offer {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px 12px 6px;
  min-width: 96px;
  min-height: 96px;
  border: 0;
  background: transparent;
  border-radius: 46% 54% 50% 48% / 52% 46% 54% 48%;
  cursor: pointer;
}
.offer canvas { display: block; }
.offer__price { font-size: 13px; color: var(--ink-soft); }
.offer__price.free { font-family: var(--font-hand); font-size: 18px; color: var(--verdigris); }
.offer[aria-pressed='true'] { box-shadow: 0 0 0 2px var(--ink-soft); }
.offer[aria-pressed='true']::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid var(--ink);
  border-radius: 50% 46% 52% 48% / 46% 54% 46% 54%;
  transform: rotate(-2deg);
  pointer-events: none;
}
.offer[aria-disabled='true'] { opacity: .45; cursor: not-allowed; }
.offer[aria-disabled='true'] .offer__price { color: var(--rift-ink); }
.tray__turn { flex: none; }

.hint {
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--ink);
  text-align: center;
  margin: 0 auto;
  background: var(--paper-light) var(--grain);
  padding: 4px 16px;
  box-shadow: var(--shadow-paper);
  transform: rotate(-.6deg);
  width: fit-content;
  max-width: 92%;
}

.report-veil {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(23, 19, 15, .72);
  animation: veil .3s ease-out;
}
.report {
  width: min(440px, 100%);
  padding: 30px 32px 26px;
  transform: rotate(-.6deg);
  animation: drop .45s cubic-bezier(.2, .9, .3, 1.2);
}
.report h2 { font-family: var(--font-title); font-weight: 400; font-size: 30px; margin: 0; }

.report__lines { width: 100%; border-collapse: collapse; font-size: 17px; }
.report__lines td { padding: 6px 0; border-bottom: 1px dotted rgba(42, 35, 32, .35); }
.report__lines td:last-child { text-align: right; font-family: var(--font-title); }
.report__lines tr.total td { border-bottom: 0; padding-top: 12px; font-size: 24px; }

.report .cloth-button { width: 100%; }
@keyframes veil { from { opacity: 0; } }
@keyframes drop { from { transform: translateY(30px) rotate(-3deg); opacity: 0; } }

@media (max-width: 700px) {
  .round { gap: 10px; padding-left: 10px; padding-right: 10px; }
  .hud { flex-wrap: wrap; gap: 8px 14px; padding: 8px 14px; }
  .hud__field { font-size: 18px; }
  .hud__sep { display: none; }
  .sheet { padding: 4px; }
  .tray { flex-wrap: wrap; gap: 8px; padding: 10px 12px; min-height: 0; }
  .tray__label { font-size: 16px; }
  .tray__offers { order: 3; flex-basis: 100%; gap: 6px; }
  .tray__turn { margin-left: auto; padding: 8px 16px; font-size: 16px; }
  .offer { min-width: 0; padding: 6px; flex: 1 1 0; }
  .offer__slot { width: 100% !important; min-width: 0; }
  .tray__offers { max-width: 100%; }
  .hint { font-size: 20px; }
}

.refuse-note {
  position: absolute;
  left: 50%;
  bottom: 10px;
  margin: 0;
  padding: 4px 14px;
  background: var(--paper-light);
  color: var(--rift-ink);
  box-shadow: var(--shadow-paper);
  transform: translate(-50%, 8px) rotate(-1.5deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, transform .15s;
  white-space: nowrap;
}
.refuse-note.show { opacity: 1; transform: translate(-50%, 0) rotate(-1.5deg); }
@media (max-width: 700px) { .refuse-note { white-space: normal; width: max-content; max-width: 88%; text-align: center; } }

.offer__slot { display: grid; place-items: center; }
.offer__slot canvas { transition: transform .18s cubic-bezier(.3, 1.3, .5, 1); }

@keyframes bump { 40% { transform: scale(1.45); color: var(--thread); } }
.hud__sound {
  margin-left: auto;
  border: 0;
  background: none;
  padding: 6px 4px;
  min-height: 44px;
  font-family: var(--font-hand);
  font-size: 19px;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
}
.hud__sound[aria-pressed='false'] { text-decoration: line-through; }

.cam { position: absolute; right: 12px; top: 12px; display: grid; gap: 6px; }
.cam[hidden] { display: none; }
.cam__btn {
  width: 40px; height: 40px;
  border: 1px solid rgba(42, 35, 32, .35);
  border-radius: var(--radius);
  background: var(--paper-light) var(--grain);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .25);
  font-family: var(--font-title);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.cam__btn:hover { background-color: #fff8ea; }
.cam__fit::before {
  content: '';
  display: block;
  width: 16px; height: 16px;
  margin: auto;
  border: 2px dashed var(--ink);
  border-radius: 2px;
}
.minimap {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 120px;
  height: 120px;
  padding: 0;
  image-rendering: pixelated;
  cursor: pointer;
  touch-action: none;
}
.minimap[hidden] { display: none; }
@media (max-width: 700px) {
  .cam { right: 8px; top: 8px; }
  .cam__btn { width: 44px; height: 44px; font-size: 20px; }
  .minimap { width: 84px; height: 84px; right: 8px; bottom: 8px; }
}

.hud__field small { display: block; font-family: var(--font-body); font-size: 12px; color: var(--ink-soft); letter-spacing: .04em; }
.hud__stat--memory b { color: var(--verdigris); }

.hud__charges { display: grid; justify-items: center; gap: 2px; font-size: 12px; color: var(--ink-soft); }
.knots { display: flex; gap: 3px; }
.knots i {
  width: 8px; height: 22px; display: block;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 22'%3E%3Cpath d='M4 21.5L2.6 6.5Q2.6 1 4 1Q5.4 1 5.4 6.5Z' fill='none' stroke='%23b9ad96' stroke-width='1'/%3E%3C/svg%3E");
}
.knots i.on {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 22'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23f4f1ea'/%3E%3Cstop offset='.5' stop-color='%23a9adb3'/%3E%3Cstop offset='1' stop-color='%235f646b'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M4 21.5L2.6 6.5Q2.6 1 4 1Q5.4 1 5.4 6.5Z' fill='url(%23s)' stroke='%234a4e54' stroke-width='.5'/%3E%3Cellipse cx='4' cy='3.6' rx='.55' ry='1.4' fill='%23F3EBDA'/%3E%3Cpath d='M4 3Q7.5 5 5 8.5Q3 11 6.5 13' fill='none' stroke='%23D8A03A' stroke-width='.9' stroke-linecap='round'/%3E%3C/svg%3E");
}

.round.with-side { grid-template-columns: 230px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
.round.with-side > .hud, .round.with-side > .tray { grid-column: 1 / -1; }
.round.with-side > .goals { grid-column: 1; grid-row: 2; align-self: start; }
.round.with-side > .sheet-wrap { grid-column: 2; grid-row: 2; }
.goals { padding: 18px 18px 14px; transform: rotate(-1deg); }
.goals[hidden] { display: none; }
.goals h3 { font-family: var(--font-title); font-weight: 400; font-size: 22px; margin: 0 0 10px; }
.goals ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.goals li { display: grid; grid-template-columns: 20px 1fr; align-items: center; gap: 4px 8px; }
.goals li small { grid-column: 2; font-size: 12px; color: var(--ink-soft); }
.goals .box {
  width: 18px; height: 18px;
  border: 1.5px solid var(--ink);
  display: grid; place-items: center;
  font-size: 13px; line-height: 1;
  color: var(--verdigris);
}
.goals li.done .hand { text-decoration: line-through; text-decoration-color: rgba(42, 35, 32, .5); }

.tray__extra { display: flex; gap: 10px; align-items: center; }
.tray__extra:empty { display: none; }

.offer--hold .offer__slot { outline: 2px dashed rgba(42, 35, 32, .45); outline-offset: -4px; border-radius: 3px; }
.offer--hold.empty .offer__slot { background: rgba(42, 35, 32, .04); }
.tray__empty { margin: 0; font-size: 24px; color: var(--ink-soft); }
.text-button {
  display: block;
  margin: 10px auto 0;
  border: 0;
  background: none;
  font-family: var(--font-hand);
  font-size: 19px;
  color: var(--ink-soft);
  text-decoration: underline;
  cursor: pointer;
  min-height: 44px;
}

.report__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rank {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border: 3px solid #C2273B;
  border-radius: 50%;
  color: #C2273B;
  font-family: var(--font-title);
  font-size: 36px;
  transform: rotate(-12deg);
  opacity: .9;
  box-shadow: inset 0 0 0 3px rgba(194, 39, 59, .25);
  animation: stamp .5s cubic-bezier(.2, 1.6, .4, 1) var(--rank-at, .3s) both;
}
.report.seq > *, .report.seq .report__lines tr { animation: seq-in .32s ease-out both; animation-delay: calc(var(--i, 0) * 110ms); }
.report.seq .report__lines { animation: none; }
@keyframes seq-in { from { opacity: 0; transform: translateX(8px); } }
.report.seq-done > *, .report.seq-done .report__lines tr, .report.seq-done .rank { animation-delay: 0s !important; animation-duration: .01ms !important; }
.rank--S { border-color: var(--thread); color: var(--thread-ink); box-shadow: inset 0 0 0 3px rgba(216, 160, 58, .35); }
@keyframes stamp { from { transform: rotate(-30deg) scale(2.2); opacity: 0; } }

.report__intro { font-size: 22px; margin: 8px 0 14px; color: var(--verdigris-deep); }
@media (min-width: 1000px) {
  .report-veil { place-items: start end; padding-top: var(--top, 16px); padding-right: max(24px, calc((100vw - 1180px) / 2 + 16px)); background: rgba(23, 19, 15, .35); }
  .report { max-height: calc(100dvh - var(--top, 16px) - 16px); overflow: auto; }
}
@media (max-width: 999px) {
  .round.with-side { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; }
  .round.with-side > .goals { grid-column: 1; grid-row: 2; transform: none; padding: 8px 14px; }
  .round.with-side > .sheet-wrap { grid-column: 1; grid-row: 3; }
  .goals h3 { display: none; }
  .goals ul { display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .report { max-height: calc(100dvh - 32px); overflow: auto; }
}
@media (max-width: 700px) {
  .goals ul { gap: 2px 14px; }
  .goals li { display: flex; align-items: baseline; gap: 6px; }
  .goals li .box { align-self: center; flex: none; }
  .goals li .hand { font-size: 18px; }
  .goals li small { font-size: 12px; white-space: nowrap; }
}
@media (min-width: 1000px) {
  body.reporting .sheet-wrap { padding-right: 470px; transition: padding .3s; }
}
.offer--hold[aria-disabled='true'] .offer__price { color: var(--ink-soft); }
.offer--hold[aria-disabled='true'] { opacity: .7; }
.offer__price.stuck { color: var(--rift-ink); }
.offer--hold[aria-disabled='true'] .offer__price.stuck { color: var(--rift-ink); }

.board-caption {
  position: absolute; left: 50%; top: 18px;
  padding: 6px 18px;
  background: var(--paper-light);
  box-shadow: var(--shadow-paper);
  font-size: 28px;
  white-space: nowrap;
  transform: translate(-50%, -8px) rotate(-1deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s, transform .35s;
}
.board-caption.show { opacity: 1; transform: translate(-50%, 0) rotate(-1deg); }
@media (max-width: 700px) { .board-caption { font-size: 20px; white-space: normal; text-align: center; width: 86%; } }

.tray__head { display: grid; gap: 6px; }
.draws-meter { display: grid; gap: 6px; justify-items: start; }
.draws-meter[hidden] { display: none; }
.tray__earn { white-space: nowrap; }
.offer__price.short { color: var(--rift-ink); }
.hud__trials { font-family: var(--hand, 'Patrick Hand', cursive); color: var(--rift-ink); font-size: 15px; }
.needle-progress { display: block; height: 3px; background: rgba(42, 35, 32, .15); border-radius: 2px; margin-top: 2px; overflow: hidden; }
.needle-progress i { display: block; height: 100%; background: var(--thread); }

.hud__reset { margin-left: 0; color: var(--rift-ink); opacity: .75; }
.hud__sound + .hud__reset { margin-left: 4px; }
.report-veil--centre { z-index: 60; place-items: center !important; padding-right: 16px !important; background: rgba(23, 19, 15, .6) !important; }
.confirm { width: min(420px, 100%); }
.confirm__text { margin: 10px 0 20px; line-height: 1.5; }
.confirm__buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.confirm__buttons .cloth-button { flex: 1 1 160px; }
.cloth-button--danger { background-color: #9E2B4E; box-shadow: inset 0 0 0 4px #9E2B4E, inset 0 0 0 5px rgba(216, 160, 58, .9), var(--shadow-paper); }
.cloth-button--danger:hover { background-color: #b23459; }

.offer.hinted { animation: hinted 1.1s ease-in-out 3; }
@keyframes hinted { 50% { box-shadow: 0 0 0 3px var(--thread), 0 0 18px rgba(216, 160, 58, .8); } }
.hint-button[aria-disabled='true'] { opacity: .5; cursor: not-allowed; }

.action-button {
  display: grid; justify-items: center; align-content: center; gap: 1px;
  width: 112px; min-height: 56px; padding: 6px 10px;
}
.action-button__name { font-family: var(--font-title); font-size: 17px; line-height: 1.1; }
.action-button__cost { font-family: var(--font-body); font-size: 12px; opacity: .85; letter-spacing: .02em; }
.action-button[aria-disabled='true'] { opacity: .45; cursor: not-allowed; }
@media (max-width: 700px) { .action-button { width: 92px; min-height: 48px; } .action-button__name { font-size: 15px; } }

.hud__stat--knowledge b { color: #6b4a2b; }
.purify-button.on { background-color: #9E2B4E; box-shadow: inset 0 0 0 4px #9E2B4E, inset 0 0 0 5px rgba(216,160,58,.9), var(--shadow-paper); }
.report__questlist { list-style: none; margin: 10px 0 0; padding: 0; font-size: 21px; color: var(--verdigris-deep); }
.report__questlist small { font-family: var(--font-body); font-size: 12px; color: var(--ink-soft); }

.hud__items { display: flex; gap: 4px; }
.hud__item { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--paper-light);
  border: 1.5px dashed var(--thread); font-family: var(--font-title); font-size: 12px; color: var(--ink); }

.action-button.on { outline: 2px solid var(--thread); }

.slips { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 40; width: min(420px, calc(100vw - 32px)); display: grid; gap: 12px; }
.slip { transform: rotate(-1deg); width: auto;
  padding: 14px 18px; display: grid; gap: 10px; font-size: 20px; line-height: 1.2; }
.slip p { margin: 0; }

.report { padding: 18px 22px 16px; width: min(420px, 100%); }
.report h2 { font-size: 24px; }
.report .rank { width: 46px; height: 46px; font-size: 26px; border-width: 2px; }

.report__lines { font-size: 15px; }
.report__lines td { padding: 3px 0; }
.report__lines tr.total td { padding-top: 5px; font-size: 20px; }

.report__questlist { margin: 6px 0 0; font-size: 18px; line-height: 1.15; }
.report__questlist li + li { margin-top: 2px; }
.report__intro { font-size: 18px; margin: 4px 0 8px; line-height: 1.15; }

.report .cloth-button { margin-top: 8px; min-height: 0; padding-top: 10px; padding-bottom: 10px; font-size: 18px; }
.report .text-button { margin-top: 6px; }
@media (min-width: 1000px) { body.reporting .sheet-wrap { padding-right: 450px; } }

@media (max-width: 1199px) {
  .hud .res__label { display: none; }
}

.hud { flex-wrap: wrap; row-gap: 8px; min-width: 0; }
.hud__end { margin-left: auto; display: flex; align-items: center; gap: 2px; flex: none; position: relative; }
.hud__end .hud__menu { margin-left: 0; }
.hud__speaker { width: 44px; height: 44px; padding: 0; -webkit-appearance: none; appearance: none; line-height: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-soft); cursor: pointer; display: grid; place-items: center; }
.hud__speaker svg { width: 22px; height: 22px; }
.hud__speaker:hover { background: rgba(42, 35, 32, .08); color: var(--ink); }
.hud__speaker.off { color: var(--rift-ink); }
.hud__menu { margin-left: auto; position: relative; flex: none; }
.hud__menubtn { width: 44px; height: 44px; padding: 0; -webkit-appearance: none; appearance: none; line-height: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-soft); cursor: pointer; display: grid; place-items: center; }
.hud__menubtn svg { width: 22px; height: 22px; fill: currentColor; }
.hud__menubtn:hover, .hud__menubtn[aria-expanded='true'] { background: rgba(42, 35, 32, .08); color: var(--ink); }
.hud__pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; display: grid; padding: 6px 12px; min-width: 150px; box-shadow: var(--shadow-paper); }
.hud__pop[hidden] { display: none; }
.hud__pop .hud__sound, .hud__pop .hud__reset { margin: 0; text-align: left; }
@media (max-width: 700px) {
  .hud { position: relative; padding-right: 92px; }
  .hud__end { position: absolute; top: 4px; right: 4px; }
}
.hud__items { display: flex; gap: 4px; flex: none; }
.hud__item { width: 26px; height: 26px; display: block; padding: 0; border: 0; background: none; border-radius: 50%; }
.hud__item .itoken { width: 26px !important; height: 26px !important; display: block; }

.action-button__icon { display: none; }
.tray .tray__extra.compact { display: grid; grid-template-columns: repeat(var(--cols, 5), 54px); gap: 6px; flex: none; order: 0; align-content: center; }
.tray__extra.compact .action-button { width: 54px; min-height: 52px; padding: 5px 2px 4px; gap: 2px; }
.tray__extra.compact .action-button__icon { display: block; width: 24px; height: 24px; color: var(--paper-light); }
.tray__extra.compact .action-button__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tray__extra.compact .action-button__cost { font-size: 9.5px; line-height: 1.05; text-align: center; letter-spacing: 0; white-space: normal; }

.tray .tray__extra.compact .action-button[aria-disabled='true'] { opacity: .4; }
@media (max-width: 700px) {
  .tray .tray__extra.compact { grid-template-columns: repeat(auto-fill, 46px); width: 100%; justify-content: center; }
  .tray__extra.compact .action-button { width: 46px; min-height: 46px; }
}
.action-button__short { display: none; }
.tray__extra.compact .action-button__cost { display: none; }
.tray__extra.compact .action-button__short { display: flex; align-items: center; justify-content: center; gap: 2px; font-family: var(--font-body);
  font-size: 12px; line-height: 1.05; text-align: center; max-width: 50px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.action-button__short .res__icon { width: 12px; height: 12px; }
.action-button.tip::before { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) rotate(-1deg);
  z-index: 5; padding: 4px 10px; background: var(--paper-light); color: var(--ink); font-family: var(--font-body); font-size: 14px;
  white-space: nowrap; box-shadow: var(--shadow-paper); pointer-events: none; }
@media (max-width: 700px) { .tray .tray__extra.compact { order: 4; } }
.tray .tray__turn { width: 54px; min-height: 52px; padding: 5px 2px 4px; display: grid; justify-items: center; align-content: center; gap: 2px; font-size: inherit; }
.tray .tray__turn .action-button__icon { display: block; width: 24px; height: 24px; color: var(--paper-light); }
.tray .tray__turn .action-button__short { display: block; font-family: var(--font-body); font-size: 10px; line-height: 1.05; opacity: .9; }
@media (max-width: 700px) { .tray .tray__turn { width: 46px; min-height: 46px; margin-left: auto; padding: 4px 2px; } }

.tasks { margin-top: 12px; }
.tasks h4 { margin: 0 0 6px; font-family: var(--font-title); font-weight: 500; font-size: 16px; }
.tasks__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.task__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; line-height: 1.25; }
.task__mark { flex: none; display: grid; place-items: center; width: 18px; height: 18px; }
.task__mark canvas { display: block; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.task__mark .res__icon { width: 16px; height: 16px; }
.task__parts { list-style: none; margin: 3px 0 0 24px; padding: 0; display: grid; gap: 1px; }
.task__part { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-size: 13px; color: var(--ink-soft); }
.task__part small { font-size: 12px; opacity: .85; }
.task__tick { width: 12px; text-align: center; color: var(--ink-soft); }
.task__part.ok { color: var(--verdigris-deep); }
.task__part.ok .task__tick { color: var(--verdigris); font-weight: 700; }
.task__part.later .task__tick { color: var(--thread); }
.report .tasks { padding: 8px 10px; background: rgba(255, 251, 242, .5); border-radius: 4px; }
@media (max-width: 999px) {
  .goals .tasks__list > li:nth-child(n + 3) { display: none; }
  .goals .task__parts { display: flex; flex-wrap: wrap; gap: 0 10px; margin-left: 24px; }
  .goals .tasks { margin-top: 6px; }
}
.goals .tasks li.task { display: block; }
.goals .tasks li.task__part { display: flex; grid-template-columns: none; }
.goals .tasks { border-top: 1px dashed rgba(42, 35, 32, .25); padding-top: 8px; }
@media (max-width: 999px) {
  .goals .tasks .tasks__list > li.task:nth-child(n + 3) { display: none; }
}
.hud__pop .hud__fx { text-align: left; }
.hud__volume { display: grid; gap: 2px; padding: 6px 4px; font-size: 13px; color: var(--ink-soft); }
.hud__volume input { width: 140px; min-height: 28px; accent-color: var(--verdigris); }
.fly-needle { position: fixed; left: -4px; top: -11px; width: 8px; height: 22px; z-index: 50; pointer-events: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 22'%3E%3Cpath d='M4 21.5L2.6 6.5Q2.6 1 4 1Q5.4 1 5.4 6.5Z' fill='%23c7ccd2' stroke='%234a4e54' stroke-width='.5'/%3E%3Cpath d='M4 3Q7.5 5 5 8.5Q3 11 6.5 13' fill='none' stroke='%23D8A03A' stroke-width='.9'/%3E%3C/svg%3E");
  filter: drop-shadow(0 0 4px rgba(216, 160, 58, .8)); }
.knots i.tie { animation: knot-tie .32s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes knot-tie { 40% { transform: scale(1.5) rotate(-8deg); filter: drop-shadow(0 0 4px rgba(216, 160, 58, .9)); } }
.knots i.unravel { animation: knot-unravel .26s ease-in; }
@keyframes knot-unravel { from { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 22'%3E%3Cpath d='M4 21.5L2.6 6.5Q2.6 1 4 1Q5.4 1 5.4 6.5Z' fill='%23c7ccd2'/%3E%3C/svg%3E"); transform: scale(1.2) rotate(0); } to { transform: scale(.4) rotate(40deg); opacity: .3; } }
.hud__stat.went-up .res__value, .hud__stat.went-down .res__value { animation: went .6s ease-out forwards; }
.hud__stat.went-up .res__value { box-shadow: inset 0 -2px 0 var(--thread); }
.hud__stat.went-down .res__value { box-shadow: inset 0 -2px 0 var(--rift); }
@keyframes went { to { box-shadow: inset 0 -2px 0 transparent; } }
.offer.flip { animation: card-flip .26s ease-in-out both; }
@keyframes card-flip { 50% { transform: perspective(400px) rotateY(90deg); } }
.offer--hold.tuck { animation: tuck .3s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes tuck { 40% { transform: translateY(4px) scale(.94); } }

@media (min-width: 701px) and (max-width: 960px) {
  .tray { flex-wrap: wrap; gap: 10px 16px; }
  .tray__offers { order: 3; flex-basis: 100%; }
  .tray .tray__extra.compact { order: 4; }
}

.report--compact { padding: 22px 26px 20px; }
.report--compact h2 { font-size: 26px; }
.report--compact .report__lines { margin-top: 10px; font-size: 16px; }
.report--compact .report__lines td { padding: 4px 0; }
.report--compact .report__lines tr.total td { padding-top: 8px; font-size: 22px; }
.report__facts { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); }
.report--compact .report__questlist { margin: 10px 0 0; }
.report--compact .report__intro { margin: 8px 0 0; }
.report__got { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; }
.report__missed { margin-top: 10px; font-size: 14px; }
.report__missed summary { cursor: pointer; color: var(--ink-soft); font-family: var(--font-body); }
.report__missed .tasks { margin-top: 6px; }
.report__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.report__buttons .cloth-button { width: 100%; margin: 0; }
@media (max-width: 420px) { .report__buttons { grid-template-columns: 1fr; } }

.trialwin__card { width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
.trialwin__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.trialwin__scars { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; color: var(--rift-ink); }
.trialwin__scars .res__icon { width: 26px; height: 26px; }
.trialwin__scars b { font-family: var(--font-title); font-size: 24px; font-weight: 400; }
.trialwin__intro { margin: 6px 0 14px; color: var(--ink-soft); font-size: 15px; }
.trialwin__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.trialwin__tile {
  display: grid; gap: 6px; align-content: start; text-align: left; padding: 12px 12px 10px; min-height: 120px;
  font: inherit; color: var(--ink); background: var(--paper-light); border: 1.5px dashed rgba(42, 35, 32, .4); border-radius: 4px; cursor: pointer;
}
.trialwin__tile:hover { border-color: var(--ink); }
.trialwin__tile[aria-pressed='true'] { border: 2px solid var(--rift-ink); background: #f6e3ec; box-shadow: 0 2px 0 rgba(163, 23, 94, .25); }
.trialwin__tile[aria-disabled='true'] { opacity: .45; cursor: not-allowed; }
.trialwin__name { font-family: var(--font-title); font-weight: 400; font-size: 19px; }
.trialwin__rule { font-size: 14px; line-height: 1.3; }
.trialwin__meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; font-size: 14px; }
.trialwin__gain { color: var(--verdigris, #2E6B5F); font-weight: 600; }
.trialwin__price { display: inline-flex; align-items: center; gap: 3px; color: var(--rift-ink); font-weight: 600; }
.trialwin__price .res__icon { width: 18px; height: 18px; }
.trialwin__why { color: var(--rift-ink); font-size: 12px; min-height: 0; }
.trialwin__why:empty { display: none; }
.trialwin__later { margin: 10px 0 0; font-size: 13px; color: var(--ink-soft); }
.trialwin__sum { margin: 14px 0 0; font-size: 15px; }
.trialwin__foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.trialwin__foot .cloth-button { margin: 0; }
.report__buttons .cloth-button { font-size: 16px; padding-left: 8px; padding-right: 8px; white-space: nowrap; }
.trialwin__foot .cloth-button { width: auto; flex: 1 1 200px; }

.hud__archive { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 10px; border: 0; border-radius: 22px; background: none;
  color: var(--ink-soft); cursor: pointer; font: inherit; font-size: 15px; }
.hud__archive svg { width: 22px; height: 22px; }
.hud__archive:hover { color: var(--ink); background: rgba(42, 35, 32, .08); }
@media (max-width: 700px) { .hud__archive-label { display: none; } .hud__archive { padding: 0 8px; } }
.trialwin__back { margin-right: auto; align-self: center; }

.tileinfo { position: fixed; z-index: 30; max-width: 280px; padding: 10px 12px; font-size: 14px; line-height: 1.3; pointer-events: none;
  box-shadow: 0 6px 18px rgba(23, 19, 15, .35); transform: rotate(-.5deg); }
.tileinfo[hidden] { display: none; }
.tileinfo__biomes { display: block; font-family: var(--font-title); font-weight: 400; font-size: 16px; }
.tileinfo__marker { margin: 8px 0 2px; display: flex; gap: 6px; align-items: baseline; }
.tileinfo__kind { font-size: 11px; color: var(--ink-soft); text-transform: lowercase; }
.tileinfo__rule { margin: 0; }
.tileinfo__state { margin: 4px 0 0; font-size: 12px; color: var(--ink-soft); }
.tileinfo__state.on { color: var(--verdigris, #2E6B5F); font-weight: 600; }
.task__text { flex: 1 1 0; min-width: 0; }
.tileinfo__note { margin: 4px 0 0; font-size: 12px; color: var(--ink-soft); }
.tileinfo__marker canvas { flex: none; align-self: center; }
.tasks__list > li.task { padding: 6px 8px 7px; background: rgba(255, 251, 242, .55); border: 1px solid rgba(42, 35, 32, .14);
  border-left: 3px solid var(--thread); border-radius: 4px; }
.tasks__list > li.task.ready { border-left-color: var(--verdigris); }
@media (min-width: 1000px) {
  .tray { flex-wrap: wrap; justify-content: center; gap: 10px 22px;
    padding: 12px 28px 16px; min-height: 0; }
  .tray > .tray__label, .tray > .tray__head { flex-basis: 100%; text-align: center; justify-items: center; }
  .tray .draws-meter { justify-items: center; }
  .tray__offers { flex: 0 1 auto; justify-content: center; gap: 18px; }
  .tray .offer { min-width: 112px; min-height: 112px; align-content: space-between; border-radius: 6px;
    background: rgba(255, 251, 242, .55); box-shadow: inset 0 0 0 1px rgba(42, 35, 32, .12); }
  .tray .offer:not([aria-disabled='true']):hover { background: rgba(255, 251, 242, .85); }
  .tray .offer[aria-pressed='true'] { background: rgba(255, 251, 242, .95); box-shadow: inset 0 0 0 2px var(--ink); }
  .tray .offer[aria-pressed='true']::after { inset: -5px; border: 1.5px dashed var(--thread); border-radius: 9px; transform: none; }
}
.tray.tray--done { visibility: hidden; }
.round.laying .sheet canvas, .round.laying .tray { pointer-events: none; }
.round.laying .tray { opacity: .5; }

.tray .tray__extra.compact { display: grid; grid-template-columns: repeat(var(--cols, 2), 148px); gap: 8px; align-content: center; order: 0; }
.tray .tray__extra.compact .action-button { width: 148px; min-height: 60px; padding: 8px 12px 8px 14px; display: grid;
  grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; row-gap: 1px; align-items: center;
  justify-items: start; text-align: left; font-size: inherit; margin: 0; }
.tray .tray__extra.compact .action-button__icon { display: block; grid-row: 1 / 3; width: 30px; height: 30px; padding: 5px; border-radius: 50%;
  background: rgba(255, 251, 242, .14); box-shadow: inset 0 0 0 1px rgba(216, 160, 58, .55); color: var(--paper-light); }
.tray .tray__extra.compact .action-button__name { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal;
  font-family: var(--font-title); font-size: 16px; line-height: 1.05; align-self: end; max-width: 100%; }
.tray .tray__extra.compact .action-button__cost { display: block; font-family: var(--font-body); font-size: 11.5px; line-height: 1.2; letter-spacing: 0;
  opacity: .9; white-space: normal; align-self: start; }
.tray .tray__extra.compact .action-button__short { display: none; }
.tray .tray__extra.compact .action-button:not([aria-disabled='true']):hover { transform: translateY(-1px); filter: brightness(1.06); }
.tray .tray__extra.compact .action-button[aria-disabled='true'] { opacity: .42; }
.tray .tray__extra .tray__turn { margin: 0; }
@media (max-width: 999px) and (min-width: 701px) {
  .tray .tray__extra.compact { grid-template-columns: repeat(var(--cols, 2), 132px); }
  .tray .tray__extra.compact .action-button { width: 132px; padding-left: 12px; }
}
@media (max-width: 700px) {
  .tray .tray__extra.compact { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); width: 100%; order: 4; }
  .tray .tray__extra.compact .action-button { width: auto; min-height: 54px; padding: 7px 10px 7px 12px; grid-template-columns: 26px minmax(0, 1fr); }
  .tray .tray__extra.compact .action-button__icon { width: 26px; height: 26px; padding: 4px; }
  .tray .tray__extra.compact .action-button__name { font-size: 14px; }
  .tray .tray__extra.compact .action-button__cost { font-size: 11px; }
}

.round.with-side > .hud { grid-row: 1; }
.round.with-side > .tray { grid-row: 3; }
@media (max-width: 999px) { .round.with-side > .tray { grid-row: 4; } }
.round .hud__readout { display: contents; }

.round.round--mobile { display: flex; flex-direction: column; align-items: stretch; gap: 8px; height: auto; min-height: 100vh; min-height: 100svh;
  max-width: none; padding: max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); }
.round--mobile > * { flex: none; min-width: 0; }

.round.round--mobile .hud { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; min-height: 52px; padding: 4px 4px 4px 12px; position: static; }
.round--mobile .hud__readout { display: flex; flex: 1 1 0; min-width: 0; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.round--mobile .hud__end { position: static; flex: 0 0 auto; margin: 0; gap: 0; }
.round--mobile .hud__sep, .round--mobile .hud .res__label, .round--mobile .hud__word, .round--mobile .hud__items, .round--mobile .hud__stat--price { display: none; }
.round--mobile .hud__field { display: grid; font-size: 17px; line-height: 1.1; }
.round--mobile .hud__field small { font-size: 10px; letter-spacing: 0; }
.round--mobile .hud__stat { gap: 3px; }
.round--mobile .hud__stat b { font-size: 17px; }
.round--mobile .hud .res__icon { width: 18px; height: 18px; }
.round--mobile .hud__trials { flex: 0 1 auto; min-width: 0; max-width: 100%; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.round--mobile .hud__speaker, .round--mobile .hud__menubtn, .round--mobile .hud__archive { display: grid; place-items: center; flex: 0 0 40px;
  width: 40px; height: 44px; min-height: 44px; margin: 0; padding: 0; line-height: 1; -webkit-appearance: none; appearance: none; }
.round--mobile .hud__end svg { display: block; width: 22px; height: 22px; margin: 0; }
.round--mobile .hud__archive-label { display: none; }

.round--mobile .sheet-wrap { display: grid; grid-template-rows: auto auto; justify-items: center; gap: 6px; }
.round--mobile .sheet { width: min(100%, var(--board-side, 100%)); aspect-ratio: 1; min-height: 0; padding: 6px; }
.round--mobile .cam__btn { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; }

.round--mobile .goals { transform: none; padding: 12px; }
.round--mobile .goals h3 { display: block; margin: 0 0 6px; font-size: 16px; }
.round--mobile .goals .tasks { margin: 0; padding: 0; border: 0; }
.round--mobile .goals .tasks__list { display: grid; gap: 8px; }
.round--mobile .goals .tasks .tasks__list > li.task:nth-child(n) { display: block; }
.round--mobile .goals .task__parts { display: grid; margin-left: 24px; }

.round.round--mobile .tray { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-height: 0; padding: 8px; }
.round--mobile .tray > .tray__head { text-align: left; justify-items: start; }
.round--mobile .tray__head { gap: 4px; }
.round--mobile .tray__label { font-size: 14px; line-height: 18px; }
.round--mobile .tray__offers { display: grid; grid-template-columns: repeat(var(--offer-count, 4), minmax(0, 1fr)); gap: 6px; order: 0; min-width: 0; }
.round--mobile .tray .offer { min-width: 0; min-height: 84px; padding: 4px; gap: 2px; align-content: center; }
.round--mobile .offer__slot { width: auto !important; }
.round--mobile .offer__price { font-size: 12px; line-height: 1.15; overflow-wrap: anywhere; }
.round--mobile .tray .offer[aria-pressed='true']::after { inset: -2px; }
.round--mobile .tray .tray__extra.compact { display: flex; flex-wrap: nowrap; gap: 6px; order: 0; width: 100%; min-width: 0; overflow-x: auto;
  padding: 2px 2px 4px; scroll-padding-inline: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.round--mobile .tray .tray__extra.compact::-webkit-scrollbar { display: none; }
.round--mobile .tray .tray__extra.compact .action-button { flex: 0 0 108px; width: 108px; min-height: 52px; padding: 6px 8px 6px 10px;
  grid-template-columns: 22px minmax(0, 1fr); column-gap: 6px; }
.round--mobile .tray .tray__extra.compact .action-button__icon { width: 22px; height: 22px; padding: 0; background: none; box-shadow: none; }
.round--mobile .tray .tray__extra.compact .action-button__name { font-size: 13.5px; line-height: 1.1; }
.round--mobile .tray .tray__extra.compact .action-button__cost { font-size: 11px; line-height: 1.15; }
.round--mobile .tray .tray__extra.compact .tray__turn { order: -1; }
.round--mobile .action-button.tip::before { display: none; }

.round--mobile .board-caption { top: 8px; left: 50%; width: max-content; max-width: calc(100% - 64px); padding: 4px 10px; font-size: 15px;
  line-height: 1.2; white-space: normal; text-align: center; pointer-events: none; }
.round--mobile .refuse-note { bottom: 8px; width: max-content; max-width: calc(100% - 64px); padding: 3px 10px; font-size: 15px; line-height: 1.2; }
.round--mobile .hint { margin: 0; padding: 4px 8px; max-width: 100%; font-size: 15px; line-height: 1.2; transform: none; }

@media (orientation: landscape) and (min-width: 560px) and (max-height: 500px) and (pointer: coarse) {
  .round.round--mobile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 42%); grid-template-rows: auto auto auto; align-content: start; }
  .round.round--mobile > .hud { grid-column: 1 / -1; grid-row: 1; }
  .round.round--mobile > .sheet-wrap { grid-column: 1; grid-row: 2; }
  .round.round--mobile > .tray { grid-column: 2; grid-row: 2; align-self: start; }
  .round.round--mobile > .goals { grid-column: 1 / -1; grid-row: 3; }
}
.round--mobile .tray .tray__extra.compact { justify-content: flex-start; }
.round--mobile .tray .offer { border-radius: 6px; background: rgba(255, 251, 242, .55); box-shadow: inset 0 0 0 1px rgba(42, 35, 32, .12); }
.round--mobile .tray .offer[aria-pressed='true'] { background: rgba(255, 251, 242, .95); box-shadow: inset 0 0 0 2px var(--ink); }
.round--mobile .tray .offer[aria-pressed='true']::after { inset: -3px; border: 1.5px dashed var(--thread); border-radius: 8px; transform: none; }
.round--mobile .offer--hold .offer__slot { width: 52px !important; height: 52px; }
