/* Reset & base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: #20201F;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100dvh;
}

.app {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  background: #20201F;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* Header */
.header {
  padding: 48px 24px 0 24px;
  flex-shrink: 0;
}

.date {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #ffffff;
  opacity: 0.95;
  margin-bottom: 6px;
  line-height: 1.2;
}

.title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #ffffff;
}

/* Content area – empty for now */
.content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 24px;
}

/* Bottom bar */
.bottom-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom, 0px));
  background: transparent;
  flex-shrink: 0;
  pointer-events: none; /* allow clicks only on buttons */
}

.bottom-bar > * {
  pointer-events: auto;
}

/* Select button */
.btn-select {
  height: 48px;
  min-width: 116px;
  padding: 0 28px;
  border: none;
  border-radius: 24px;
  background: #272727;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-select:active {
  background: #333333;
  transform: scale(0.97);
}

/* Plus button */
.btn-plus {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #272727;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  flex-shrink: 0;
}

.btn-plus:active {
  background: #333333;
  transform: scale(0.94);
}

.btn-plus svg {
  display: block;
}

/* Focus styles for accessibility */
.btn-select:focus-visible,
.btn-plus:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* Desktop / larger screens – keep phone-like frame */
@media (min-width: 480px) {
  body {
    background: #111111;
    align-items: center;
    padding: 24px 0;
  }

  .app {
    min-height: min(852px, 100dvh - 48px);
    height: min(852px, 100dvh - 48px);
    border-radius: 32px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 25px 50px -12px rgba(0,0,0,0.6);
    overflow: hidden;
  }
}
