:root {
  color-scheme: dark;
  --bg: #20263a;
  --surface: #343c5c;
  --surface-raised: #46507a;
  --surface-active: #576499;
  --surface-light: #7983ad;
  --text: #eef3f4;
  --text-muted: #c9d0dc;
  --accent: #efd995;
  --accent-dark: #bfae77;
  --purple: #995284;
  --purple-dark: #663658;
  --danger: #b34e4a;
  --success: #5b9c54;
  --orange: #e77f00;
  --shadow: 0 10px 28px rgb(0 0 0 / 22%);
  --radius: 14px;
  --main-font: "Baloo 2", system-ui, sans-serif;
  --fancy-font: "Short Stack", "Comic Sans MS", cursive;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--main-font);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: var(--accent);
}

a:hover {
  color: #fff1bb;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

dialog {
  border: 0;
  color: var(--text);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgb(10 13 22 / 72%);
  backdrop-filter: blur(3px);
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.dialog-header h2 {
  margin: 0;
  font-family: var(--fancy-font);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
}

.icon-button {
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 10%);
  color: white;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.icon-button:hover {
  background: rgb(255 255 255 / 20%);
}

.secondary-button {
  padding: 0.55rem 0.9rem;
  border: 0;
  border-radius: 9px;
  background: rgb(255 255 255 / 12%);
  color: white;
  cursor: pointer;
}

.secondary-button:hover {
  background: rgb(255 255 255 / 22%);
}
