:root {
  color-scheme: light;
  --ink: #182022;
  --muted: #617073;
  --paper: #fbfaf6;
  --line: #d7d3c7;
  --accent: #286f6c;
  --accent-2: #b44638;
  --warn: #cc8a20;
  --panel: #ffffff;
  --shadow: 0 18px 45px rgba(24, 32, 34, .12);
  --cell: 68px;
}

@property --pie-progress {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes pie-fill {
  from { --pie-progress: 0deg; }
  to { --pie-progress: 360deg; }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(40,111,108,.08), transparent 34%),
    linear-gradient(180deg, #f8f4ec 0%, #eef4ee 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
.file-button {
  border: 1px solid transparent;
  background: var(--accent);
  color: white;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

button:hover,
.file-button:hover {
  filter: brightness(.96);
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(40,111,108,.26);
  outline-offset: 2px;
}

button.ghost,
.file-button {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

button.danger {
  background: #fff5f2;
  border-color: #efc4bb;
  color: #8e2b1e;
}

.app-shell {
  min-height: 100vh;
  padding: 20px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}


.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto 16px;
  max-width: 1440px;
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
}

h2 {
  margin: 20px 0 10px;
  font-size: 15px;
}

.top-actions,
.tool-row,
.board-toolbar,
.tabs,
.mode-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.top-actions select {
  min-width: 220px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 6px 10px;
}

.icon-button {
  width: 38px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(310px, 360px) minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.sidebar,
.board-stage {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(215,211,199,.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 0;
}

.sidebar {
  align-self: stretch;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.tabs {
  padding: 10px;
  background: #f4f1e9;
  border-bottom: 1px solid var(--line);
}

.tab {
  flex: 1;
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.tab.active,
.editor-mode.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.panel {
  display: none;
  padding: 16px;
}

.panel.active {
  display: block;
  overflow: auto;
  scrollbar-gutter: stable;
}

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

.stat-row > div {
  background: #f6f6f1;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
}

.label,
.field span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.field {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.field-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.field-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 9px 10px;
}

.field textarea {
  resize: vertical;
}

.texture-select-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.texture-preview {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.texture-select-row select {
  flex: 1;
}

.texture-dropdown-wrap {
  position: relative;
  flex: 1;
}

.texture-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 36px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}

.texture-dropdown-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.texture-dropdown-trigger-swatch {
  flex: 0 0 auto;
  width: 28px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid rgba(24,32,34,.16);
  background-size: cover;
  background-repeat: no-repeat;
}

.dropdown-arrow {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
}

.texture-dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  margin-top: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.texture-dropdown-panel.open {
  display: block;
}

.texture-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 5px 8px;
  border: none;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}

.texture-option.active,
.texture-option:hover {
  background: var(--hover-bg, #eef8f6);
}

.texture-option-swatch {
  flex: 0 0 auto;
  width: 28px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid rgba(24,32,34,.16);
  background-size: cover;
  background-repeat: no-repeat;
}

.texture-preview img,
.texture-option-swatch img,
.texture-dropdown-trigger-swatch img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.suspect-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
}

.suspect-card {
  display: flex;
  flex-direction: column;
  background: #faf6ed;
  border: 1px solid #d4c9b8;
  border-radius: 2px;
  padding: 4px 4px 8px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-align: center;
}

.suspect-card:hover {
  transform: translateY(-2px);
  box-shadow: 3px 4px 10px rgba(0,0,0,0.12);
}

.suspect-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), 2px 2px 6px rgba(0,0,0,0.08);
}

.card-photo {
  width: 100%;
  aspect-ratio: 1;
  background: #e8e0d0;
  display: grid;
  place-items: center;
  border: 1px solid #d4c9b8;
  color: #b8a898;
  overflow: hidden;
  margin-bottom: 5px;
}

.card-photo svg {
  width: 65%;
  height: 65%;
}

.suspect-card[data-victim-piece] {
  background: #fdf6f4;
  border-color: #e0b0a8;
}

.suspect-card[data-victim-piece] .card-photo {
  background: #f0e0dc;
  color: #c87868;
  border-color: #dbb0a8;
}

.card-name {
  font-weight: 700;
  font-size: 9px;
  color: #2c1810;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-clue {
  font-size: 9px;
  color: #5a4a3a;
  line-height: 1.3;
  font-style: italic;
  border-top: 1px dashed #ccc0b0;
  padding-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.general-clues {
  margin-top: 16px;
}

.clue-list {
  display: grid;
  gap: 6px;
}

.clue-item {
  margin: 0;
  padding: 8px 10px;
  background: #faf6ed;
  border: 1px solid #d4c9b8;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: #2c1810;
}

.zone-legend,
.object-legend {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
  gap: 7px;
}

.zone-texture {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.texture-swatch {
  width: 28px;
  height: 22px;
  background-size: 28px 28px;
  background-repeat: repeat;
  background-color: var(--region-color, #f9f8ef);
}

.object-key {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 4px 7px;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 7px 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.object-key > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legend-object-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: rgba(24,32,34,.7);
}

.legend-object-icon img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.legend-object-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.empty-legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.status-box {
  min-height: 42px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 10px;
  color: var(--muted);
}

.status-top {
  margin: 10px 0 12px;
}

.status-box.success {
  border-color: #8dbf8c;
  color: #23632c;
  background: #f1fbef;
  font-weight: 800;
}

.status-box.warning {
  border-color: #e1bc6b;
  color: #81560d;
  background: #fff8e8;
}

.status-box.error {
  border-color: #e5a196;
  color: #8e2b1e;
  background: #fff5f2;
}

.board-stage {
  min-width: 0;
  padding: 14px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
}

.board-toolbar {
  justify-content: space-between;
}

.board-zoom {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.board-zoom input {
  flex: 1;
  max-width: 200px;
}

.selected-label {
  min-height: 38px;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
}

.board-scroll {
  overflow: auto;
  min-height: 0;
  max-height: none;
  padding: 4px;
}

.board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--cols), var(--cell));
  grid-auto-rows: var(--cell);
  width: max-content;
  margin: 0 auto;
  border: 4px solid #111719;
  background: #8d9794;
  gap: 1px;
}

.cell {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  border: 0;
  border-radius: 0;
  touch-action: manipulation;
  color: var(--ink);
  background: var(--region-color, #f9f8ef);
  background-size: var(--cell) var(--cell);
  background-repeat: repeat;
  background-color: var(--region-color, #f9f8ef);
  outline: 1px solid rgba(17,23,25,.16);
  outline-offset: -1px;
  padding: 4px;
  min-height: 0;
  max-height: var(--cell);
}

.press-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--cell) * 0.6);
  height: calc(var(--cell) * 0.6);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(var(--ring-color, var(--accent)) var(--pie-progress), transparent var(--pie-progress));
  -webkit-mask: radial-gradient(circle, transparent 35%, #fff 38%);
  mask: radial-gradient(circle, transparent 35%, #fff 38%);
  animation: pie-fill 600ms linear forwards;
  pointer-events: none;
  z-index: 10;
}

.cell::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.cell.zone-top::before {
  border-top: 5px solid #172023;
}

.cell.zone-right::before {
  border-right: 5px solid #172023;
}

.cell.zone-bottom::before {
  border-bottom: 5px solid #172023;
}

.cell.zone-left::before {
  border-left: 5px solid #172023;
}

.cell.edge-top::before {
  border-top: 5px solid #050708;
}

.cell.edge-right::before {
  border-right: 5px solid #050708;
}

.cell.edge-bottom::before {
  border-bottom: 5px solid #050708;
}

.cell.edge-left::before {
  border-left: 5px solid #050708;
}

.zone-focus-bar {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  border-top: var(--focus-top, 0) solid rgba(0, 110, 255, 0.9);
  border-right: var(--focus-right, 0) solid rgba(0, 110, 255, 0.9);
  border-bottom: var(--focus-bottom, 0) solid rgba(0, 110, 255, 0.9);
  border-left: var(--focus-left, 0) solid rgba(0, 110, 255, 0.9);
}

.zone-label {
  position: absolute;
  top: 3px;
  left: 3px;
  font-size: clamp(9px, calc(var(--cell) * .16), 14px);
  font-weight: 700;
  color: white;
  -webkit-text-stroke: 2px black;
  paint-order: stroke fill;
  line-height: 1;
  pointer-events: none;
  z-index: 5;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.cell.texture-plain {
  background-blend-mode: normal;
}

.cell:not(.texture-plain) {
  box-shadow: inset 0 0 0 999px rgba(255,255,255,0.15);
}



.cell:hover {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  filter: none;
}

.cell.blocked {
  box-shadow: inset 0 0 0 999px rgba(180,70,56,.08);
}

.cell.conflict {
  box-shadow: inset 0 0 0 4px rgba(180,70,56,.72);
}

.cell.unavailable {
  box-shadow: inset 0 0 0 999px rgba(20, 24, 24, .20);
}

.cell.unavailable::after {
  content: "X";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(120, 24, 18, .72);
  font-size: clamp(20px, calc(var(--cell) * .52), 40px);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  z-index: 3;
}

.cell.correct {
  box-shadow: inset 0 0 0 4px rgba(55,137,69,.72);
}

.cell.wrong {
  box-shadow: inset 0 0 0 4px rgba(180,70,56,.72);
}

.cell-victim {
  position: absolute;
  inset: 5px;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(142,43,30,.72);
  color: #8e2b1e;
  font-weight: 900;
  background: rgba(255,255,255,.42);
  z-index: 3;
}

.occupiable-object {
  background: rgba(249,248,239,.6);
}

.blocked-object {
  background: rgba(220,80,60,.35);
}

.board-object {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.cell-object {
  position: absolute;
  inset: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111719;
  pointer-events: none;
  z-index: 1;
  transform: rotate(var(--obj-rotation, 0deg));
  border-radius: 6px;
  box-shadow:
    0 0 0 3px rgba(0,0,0,.15),
    0 1px 4px rgba(0,0,0,.3);
}

.cell-object img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.cell-object > svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.2;
}

.cell-object.blocked-object {
  color: #8e2b1e;
}

.obj-color-wrap {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.obj-color-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  grid-area: 1 / 1;
}

.obj-color-overlay {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  mix-blend-mode: color;
  pointer-events: none;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.cell-person {
  display: grid;
  place-items: center;
  gap: 3px;
  width: 100%;
  min-width: 0;
  pointer-events: none;
  position: relative;
  z-index: 4;
}

.avatar {
  width: clamp(22px, calc(var(--cell) * .44), 38px);
  height: clamp(22px, calc(var(--cell) * .44), 38px);
  border-radius: 50%;
  border: 2px solid rgba(24,32,34,.34);
  background: var(--avatar);
}

.person-name {
  width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(9px, calc(var(--cell) * .16), 13px);
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mode-group {
  margin: 12px 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.editor-mode {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.editor-tools {
  display: grid;
  gap: 10px;
}

#suspectClueFields {
  margin-top: 16px;
}

.editor-region-bar:not(:empty) {
  margin-bottom: 8px;
}

.region-palette {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.region-button {
  min-height: 44px;
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
}

.region-texture-swatch {
  flex: 0 0 auto;
  width: 36px;
  height: 24px;
  border: 1px solid rgba(24,32,34,.16);
  border-radius: 4px;
  background-size: 36px 36px;
  background-repeat: repeat;
}

.region-button-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
  min-width: 0;
}

.region-button.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 2px rgba(40,111,108,.22);
}

.solution-help {
  border: 1px solid #b7d5d2;
  border-radius: 7px;
  background: #eef8f6;
  padding: 10px;
}

.solution-help strong {
  display: block;
  margin-bottom: 4px;
}

.solution-help p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.solution-list {
  display: grid;
  gap: 6px;
}

.gender-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.gender-toggle > span {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.gender-buttons {
  display: flex;
  gap: 6px;
}

.gender-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: 2px solid var(--line);
  border-radius: 7px;
  background: var(--bg);
  cursor: pointer;
  color: var(--text);
  height: 60px;
}

.gender-btn.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
}

.gender-btn svg {
  width: 40px;
  height: 50px;
}

.solution-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 7px 8px;
  font-size: 13px;
}

.solution-row span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.solution-row strong {
  color: var(--muted);
  font-size: 12px;
}

.suspect-palette{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-start;
    flex-direction: row;
    align-items: center;
}

.mini-victim {
  position: static;
  inset: auto;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-size: 13px;
  background: #fff5f2;
}

.file-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.cell-draft .person-name {
  opacity: .45;
}

.cell-draft .avatar {
  opacity: .45;
  border-style: dashed;
}

@media (max-width: 920px) {
  body {
    overflow: auto;
  }

  .app-shell {
    padding: 12px;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .topbar,
  .workspace {
    display: grid;
    grid-template-columns: 1fr;
  }

  .top-actions {
    align-items: stretch;
  }

  .top-actions select {
    flex: 1;
    min-width: 0;
  }

  .board-scroll {
    max-height: 72vh;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 24px;
  }

  .stat-row,
  .editor-grid {
    grid-template-columns: 1fr;
  }

  .tool-row > button,
  .tool-row > .file-button {
    flex: 1 1 130px;
  }

  .app-footer {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    text-align: center;
  }
}

.rotation-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}

.rotation-controls button {
  width: 32px;
  height: 32px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  background: #fff;
  color: var(--ink);
}

.rotation-controls button:hover {
  background: #eaeeef;
}

.size-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}

.size-controls select {
  width: 56px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.25rem 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.footer-logo {
  display: grid;
  place-items: center;
}

.footer-logo img {
  height: 28px;
  width: auto;
  opacity: 0.6;
  transition: opacity 0.25s ease;
}

.footer-logo:hover img {
  opacity: 1;
}

.app-footer p {
  font-size: 0.85em;
  color: var(--muted);
  margin: 0;
}

.footer-attribution {
  width: 100%;
  text-align: center;
  font-size: 0.75em !important;
}

.footer-attribution a {
  color: var(--accent);
  text-decoration: none;
}

.footer-attribution a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--muted);
  background: var(--paper);
  transition: all 0.25s ease;
}

.footer-links a:hover {
  color: var(--accent);
  background: var(--line);
  transform: translateY(-2px);
}
