html, body {
  margin: 0;
  min-height: 100%;
  background: var(--mud-palette-background, #1c1517);
  color: var(--mud-palette-text-primary, #f5e9e4);
}

.page {
  padding-top: 1rem;
  padding-bottom: calc(5.8rem + env(safe-area-inset-bottom));
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  display: flex;
  justify-content: space-around;
  background: var(--mud-palette-background, #1c1517);
  border-top: 1px solid var(--mud-palette-lines-default, #3a2d30);
  padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom));
}

.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  text-align: center;
  text-decoration: none;
  color: var(--mud-palette-text-secondary, #b9a59f);
  padding: 0.3rem 0;
}

.bottom-nav a.active {
  color: var(--mud-palette-primary, #e07a8a);
  font-weight: 700;
}

.hero {
  background: linear-gradient(160deg, #c45c6a, #e07a8a);
  color: white;
  border-radius: 24px;
  padding: 1.4rem;
}

.hero .count {
  font-size: 3rem;
  line-height: 1;
  font-weight: 700;
}

.doodle-color input[type="color"] {
  height: 3rem;
  padding: 0.35rem 0.4rem;
  box-sizing: border-box;
  cursor: pointer;
}

.doodle-color input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.doodle-color input[type="color"]::-webkit-color-swatch,
.doodle-color input[type="color"]::-moz-color-swatch {
  border: 0;
  border-radius: 10px;
}

.doodle-canvas {
  width: 100%;
  height: 360px;
  touch-action: none;
  border-radius: 18px;
  background: #000000;
  border: 1px solid var(--mud-palette-lines-default, #3a2d30);
}

.doodle-preview {
  position: relative;
  margin-top: 0.6rem;
  min-height: 4.5rem;
}

.doodle-preview img {
  width: 100%;
  border-radius: 16px;
  display: block;
}

.doodle-preview .doodle-add {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 3rem;
  height: 3rem;
}

.done {
  text-decoration: line-through;
}

.card-open {
  width: 3rem;
  height: 3rem;
  flex: 0 0 3rem;
}
