/* --- Color system --- */

/* Light mode (default) */
:root {
  --bg: #f9f9f9;
  --text: #212121;
  --button-bg: #C15F3C;
  --button-text: #FFFFFF;
  --subtext: rgba(38, 38, 36, 0.5);
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #212121;
    --text: #C9C8C3;
    --button-bg: #D97757;
    --button-text: #FFFFFF;
    --subtext: rgba(193, 191, 181, 0.5);
  }
}


/* --- Reset / sanity --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  font-optical-sizing: auto;
  color: var(--text);
}


/* --- App frame --- */
#app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-user-select: none;
  user-select: none;
}

/* --- Text area (top ~2/3) --- */
#text-area {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  padding: 32px;
}

#phrase {
  max-width: 600px;
  text-align: center;
  font-size: 1.8rem;
  line-height: 1.3;
}

/* --- Controls (bottom ~1/3) --- */
#controls {
  flex: 1;
  padding: 24px;
  padding-bottom: 50px; 
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  position: relative;
}


#controls::before {
  content: "";
  height: 32px; /* space for subtext */
  flex-shrink: 0;
}


/* --- Buttons --- */
button {
  font-size: 1.4rem;
  padding: 18px 24px;
  border-radius: 18px;
  border: none;
  font-weight: 500;
  background: var(--button-bg);
  color: var(--button-text);
  cursor: pointer;

  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
button:focus,
button:focus-visible {
  outline: none;
}


button:active {
  transform: scale(0.98);
}

#button-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

#main-button {
  flex: 3; 
  min-height: 72px;
}

#confetti-button {
  flex: 1;
  background: transparent;
  color: var(--button-bg);
  border: 2px solid var(--button-bg);
}



/* Subtext */
#subtext {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--subtext);
  pointer-events: none;
  margin-bottom: 12px;
}









