@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/roboto.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/roboto-500.ttf") format("truetype");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/roboto-500.ttf") format("truetype");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/roboto-500.ttf") format("truetype");
}

:root {
  --font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --transition-theme: background-color 0.25s ease, color 0.25s ease;
}

body.dark {
  --bg-surface: #16110f;
  --color-on-surface: #f5e1d4;
  --color-on-surface-variant: #e2cbc0;
  --color-primary: #fa8559;
  --color-secondary-container: #4e352c;
  --color-on-secondary-container: #feca91;
  --card-bg: rgba(245, 225, 212, 0.08);
  --theme-btn-bg: #4e352c;
  --theme-btn-color: #feca91;
}

body.light {
  --bg-surface: #fffaf5;
  --color-on-surface: #231a16;
  --color-on-surface-variant: #57463f;
  --color-primary: #e85b2d;
  --color-secondary-container: #ffe2c7;
  --color-on-secondary-container: #2e150a;
  --card-bg: rgba(35, 26, 22, 0.04);
  --theme-btn-bg: #ffe2c7;
  --theme-btn-color: #2e150a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-surface);
  color: var(--color-on-surface);
  transition: var(--transition-theme);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 32px 16px;
  -webkit-user-select: none;
  user-select: none;
}

.container {
  width: 576px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h1 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.theme-toggle-btn {
  padding: 4px 12px;
  border-radius: 9999px;
  border: none;
  background-color: var(--color-secondary-container);
  color: var(--color-on-secondary-container);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.theme-toggle-btn:hover {
  opacity: 0.9;
}

.theme-toggle-btn:active {
  transform: scale(0.96);
}

.card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slider-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.label-title {
  font-size: 15px;
  font-weight: 500;
}

.label-value {
  font-size: 13px;
  color: var(--color-on-surface-variant);
}

.slider-canvas-container {
  position: relative;
  width: 480px;
  height: 72px;
  cursor: pointer;
  touch-action: none;
}

.slider-canvas-container.disabled {
  opacity: 0.38;
  cursor: default;
}

.slider-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 2px;
}

.step-btn {
  padding: 4px 12px;
  border-radius: 9999px;
  border: none;
  background-color: var(--color-secondary-container);
  color: var(--color-on-secondary-container);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.step-btn:hover {
  opacity: 0.85;
}

.step-btn:active {
  transform: scale(0.94);
}

.switches-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0;
}

.switch-info {
  display: flex;
  flex-direction: column;
}

.switch-title {
  font-size: 14px;
  font-weight: 500;
}

.switch-status {
  font-size: 12px;
  color: var(--color-on-surface-variant);
}

.switch-canvas-container {
  width: 54px;
  height: 32px;
  cursor: pointer;
  touch-action: none;
}

.switch-canvas-container.disabled {
  opacity: 0.38;
  cursor: default;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-top: 8px;
}
