:root {
  color-scheme: dark;
  --bg: #070707;
  --fg: #efe8db;
  --panel: rgba(0, 0, 0, 0.55);
  --line: rgba(255, 255, 255, 0.14);
  --alert: rgba(167, 43, 43, 0.34);
}

html,
body,
#app {
  margin: 0;
  width: 100%;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.08), transparent 22%),
    radial-gradient(circle at 85% 20%, rgba(200, 120, 120, 0.08), transparent 20%),
    linear-gradient(180deg, #111 0%, var(--bg) 100%);
  color: var(--fg);
  font-family: "IBM Plex Sans KR", "Noto Sans KR", sans-serif;
}

.mosaic-shell {
  position: relative;
  min-height: 100vh;
}

.mosaic-viewport {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: #000;
}

.mosaic-status {
  position: sticky;
  left: 16px;
  bottom: 16px;
  z-index: 10;
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 16px 16px;
  width: fit-content;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(8px);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #91b86a;
  box-shadow: 0 0 12px rgba(145, 184, 106, 0.55);
}

.mosaic-date-badge {
  position: fixed;
  left: 50%;
  top: 12px;
  z-index: 12;
  transform: translateX(-50%);
  width: fit-content;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-align: center;
  pointer-events: none;
}

.tile {
  position: absolute;
  overflow: hidden;
  background: #111;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tile--tone-alert::after {
  background: var(--alert);
  opacity: 1;
}

.tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-img--base {
  filter: grayscale(100%);
}

.tile-img--color {
  opacity: 0;
  transition: opacity 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tile:hover .tile-img--color,
.tile--colored .tile-img--color,
.tile--selected .tile-img--color {
  opacity: 1;
}

.tile--selected {
  box-shadow: inset 0 0 0 3px rgba(255, 239, 133, 0.92);
}
