.paper {
  position: relative;
  background: var(--paper) var(--grain);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
}
.paper.pinned::before, .paper.pinned::after {
  content: '';
  position: absolute;
  inset: 5px;
  pointer-events: none;
  background-size: 14px 14px;
  background-repeat: no-repeat;
}
.paper.pinned::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 14V2H14' fill='none' stroke='%23D8A03A' stroke-width='1.6' stroke-linecap='round' stroke-dasharray='3.2 2.4'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 2H14V14' fill='none' stroke='%23D8A03A' stroke-width='1.6' stroke-linecap='round' stroke-dasharray='3.2 2.4'/%3E%3C/svg%3E"); background-position: left top, right top; }
.paper.pinned::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 2V14H14' fill='none' stroke='%23D8A03A' stroke-width='1.6' stroke-linecap='round' stroke-dasharray='3.2 2.4'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 14H14V2' fill='none' stroke='%23D8A03A' stroke-width='1.6' stroke-linecap='round' stroke-dasharray='3.2 2.4'/%3E%3C/svg%3E"); background-position: left bottom, right bottom; }

.cloth-button {
  border: 0;
  padding: 12px 22px;
  min-height: 44px;
  background: var(--verdigris) var(--grain);
  color: var(--paper-light);
  font-family: var(--font-title);
  font-size: 18px;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 4px var(--verdigris), inset 0 0 0 5px rgba(216, 160, 58, .9), var(--shadow-paper);
  outline-offset: 4px;
  cursor: pointer;
  background-image: var(--grain);
  position: relative;
}
.cloth-button::after {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1.5px dashed var(--thread);
  border-radius: 2px;
  pointer-events: none;
}
.cloth-button:hover { background-color: #347a6c; }
.cloth-button:active { transform: translateY(1px); }
.cloth-button--lead { box-shadow: inset 0 0 0 4px var(--verdigris), inset 0 0 0 5px rgba(216, 160, 58, .9), 0 0 0 3px var(--thread), var(--shadow-paper); }
.cloth-button--quiet { background-color: var(--paper-light); color: var(--verdigris-deep);
  box-shadow: inset 0 0 0 1.5px var(--verdigris), var(--shadow-paper); }
.cloth-button--quiet::after { border-color: rgba(46, 107, 95, .45); }
.cloth-button--quiet:hover { background-color: #fffaf0; }

.stamp { font-family: var(--font-stamp); letter-spacing: 0; font-size: .92em; }
.hand { font-family: var(--font-hand); font-size: max(18px, 1.08em); line-height: 1.15; }

.res { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; line-height: 1; }
.res__icon { width: 22px; height: 22px; flex: none; }
.res__token { width: var(--tok, 22px); height: var(--tok, 22px); flex: none; }
.res__value { font-family: var(--font-title); font-size: 22px; font-weight: 400; color: var(--ink); font-variant-numeric: tabular-nums; }
.res__label { font-size: 15px; color: var(--ink-soft); }
.res--memory .res__value { color: var(--verdigris); }
.res--thread .res__value { color: var(--thread-ink); }
.res--knowledge .res__value { color: #6b4a2b; }
.res--sparks .res__value, .res--strain .res__value, .res--rift .res__value { color: var(--rift-ink); }
.res--draws .res__value { color: var(--verdigris); }
.res--charges { flex-direction: column; gap: 3px; font-size: 12px; }
.res--charges .res__label { font-size: 12px; }

@media (max-width: 700px) {
  
  .res__value { font-size: 19px; }
  .res__label { font-size: 13px; }
}

.counting { -webkit-text-fill-color: transparent; position: relative; }
.counting::after { content: attr(data-show); position: absolute; right: 0; top: 0; -webkit-text-fill-color: currentColor; white-space: nowrap; }
.task.ready { background: rgba(46, 107, 95, .10); border-radius: 4px; }
.task.ready .task__text { color: var(--verdigris, #2E6B5F); }
.task__ready { display: block; flex-basis: 100%; font-size: 12px; color: var(--verdigris, #2E6B5F); font-weight: 600; margin-top: 2px; }
.rewards { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.reward { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-soft); }
.reward canvas, .reward svg, .reward img { width: 22px; height: 22px; flex: none; }
.task { position: relative; }
.task__corner, .qmap__corner { margin-left: auto; font-size: 11px; text-align: right; }
.hall__soon { margin: 12px 0 4px; font-size: 13px; color: var(--ink-soft); font-weight: 400; border-top: 1px dotted rgba(42, 35, 32, .3); padding-top: 8px; }
.tasks__list--soon .task { opacity: .8; }
.reward--tip { position: relative; cursor: help; border-bottom: 1px dotted rgba(42, 35, 32, .35); }
.task__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 2px 0 0 24px; }
.task__foot small { font-size: 12px; color: var(--ink-soft); }
.task__foot .task__state { margin: 0; }
.report__questlist.tasks__list { margin: 10px 0 0; padding: 0; font-size: inherit; color: inherit; line-height: inherit; }
.report__questlist .task.done .task__text { color: var(--verdigris-deep); }
.float-tip { position: fixed; z-index: 2000; max-width: min(260px, calc(100vw - 16px)); padding: 7px 10px; font-size: 13px; line-height: 1.35;
  color: var(--ink); background: var(--paper, #F3EBDA); border-radius: 3px; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); pointer-events: none; }
.float-tip[hidden] { display: none; }
.board-list { display: grid; gap: 6px; }
.board-list h4 { margin: 0; font-family: var(--font-title); font-weight: 400; font-size: 16px; }
.board-list__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.board-list__row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; align-items: baseline; gap: 8px; padding: 3px 8px;
  font-size: 13.5px; border-radius: 3px; }
.board-list__row:nth-child(odd) { background: rgba(42, 35, 32, .04); }
.board-list__row.me { background: rgba(216, 160, 58, .22); box-shadow: inset 2px 0 0 var(--thread); }
.board-list__place { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.board-list__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-list__memory { font-family: var(--font-title); font-weight: 400; font-size: 15px; color: var(--verdigris-deep); font-variant-numeric: tabular-nums; }
.board-list__pieces { font-size: 12px; color: var(--ink-soft); min-width: 62px; text-align: right; }
.board-list__note, .board-list__me { margin: 0; font-size: 13px; color: var(--ink-soft); }
.report__shelf { margin-top: 10px; padding: 8px 10px; background: rgba(255, 251, 242, .5); border-radius: 4px; }
.board-list__mine { margin: 4px 0 0; font-size: 12.5px; line-height: 1.35; color: var(--ink-soft); }
.board-list__mine.best { color: var(--verdigris-deep); font-weight: 600; }
