:root {
  color-scheme: dark;
  --bg: #101112;
  --surface: #191a1d;
  --surface-2: #232428;
  --surface-3: #303136;
  --line: #383a3f;
  --text: #f4f4f2;
  --muted: #a5a6aa;
  --green: #59aa55;
  --green-dark: #367c43;
  --yellow: #d4bd56;
  --orange: #e18338;
  --gray: #67696d;
  --red: #d95158;
  --blue: #65a7f6;
  --radius: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

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

button,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.brand {
  position: relative;
  display: inline-flex;
  gap: 4px;
  padding: 18px 22px;
  isolation: isolate;
}

.brand-letter {
  position: relative;
  display: grid;
  width: 42px;
  height: 48px;
  place-items: center;
  border-radius: 7px;
  color: #151515;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2), 0 5px 12px rgba(0, 0, 0, .18);
}

.brand-letter.yellow {
  background: var(--yellow);
}

.brand-letter.green {
  background: var(--green);
}

.brand-letter small {
  position: absolute;
  right: 4px;
  bottom: 3px;
  font-size: 9px;
  font-weight: 800;
}

.brand-number {
  position: absolute;
  z-index: -1;
  font-size: 15px;
  font-weight: 900;
  opacity: .9;
}

.brand-number.n1 { top: 0; left: 11%; color: var(--gray); transform: rotate(-13deg); }
.brand-number.n2 { top: 2px; right: 28%; color: var(--green); transform: rotate(10deg); }
.brand-number.n3 { top: 38%; right: 1px; color: var(--orange); transform: rotate(13deg); }
.brand-number.n4 { bottom: 0; right: 18%; color: var(--gray); transform: rotate(-8deg); }
.brand-number.n5 { bottom: 2px; left: 21%; color: var(--green); transform: rotate(12deg); }
.brand-number.n6 { top: 46%; left: 1px; color: var(--orange); transform: rotate(-11deg); }

.brand-compact {
  gap: 2px;
  padding: 7px 10px;
}

.brand-compact .brand-letter {
  width: 23px;
  height: 27px;
  border-radius: 4px;
  font-size: 15px;
}

.brand-compact .brand-letter small {
  right: 2px;
  bottom: 1px;
  font-size: 5px;
}

.brand-compact .brand-number {
  font-size: 8px;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
}

.icon-button:hover {
  background: var(--surface-3);
}

.icon-button:disabled {
  cursor: default;
  opacity: .35;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

dialog {
  width: min(440px, calc(100% - 28px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
}

dialog::backdrop {
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(3px);
}

.dialog-content {
  padding: 26px;
}

.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dialog-top h2 {
  margin: 0;
  font-size: 24px;
}

.dialog-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-3);
  cursor: pointer;
}

.dialog-content p,
.dialog-content li {
  color: #d2d3d5;
  line-height: 1.6;
}

.dialog-content ul {
  padding-left: 20px;
}

.primary-button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.primary-button:hover {
  filter: brightness(1.08);
}

@media (max-width: 560px) {
  .brand-letter {
    width: 34px;
    height: 40px;
    font-size: 23px;
  }
}
