:root {
  --bg: #12100e;
  --panel: #1a1714;
  --panel2: #201c18;
  --text: #f0ede8;
  --muted: #bdb4a8;
  --accent: #d9a86c;
  --border: rgba(255,255,255,0.10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background:
    radial-gradient(1000px 600px at 20% 0%, rgba(217,168,108,0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 20%, rgba(217,168,108,0.10), transparent 60%),
    linear-gradient(180deg, #0f0d0b, #15110e);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent);
}

.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}


.brand__title {
  font-weight: 800;
  letter-spacing: 0.4px;
  font-size: 20px;
}

.brand__subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.header__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.main {
  padding: 22px 0 36px;
  display: grid;
  gap: 14px;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.h1 { margin: 0; font-size: 22px; }
.h2 { margin: 0 0 10px; font-size: 16px; color: var(--text); }

.muted { color: var(--muted); font-size: 13px; }

.big {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-top: 10px;
}

.big__label { color: var(--muted); }
.big__value { font-size: 22px; font-weight: 800; }

.note {
  white-space: pre-wrap;
  line-height: 1.45;
}

.list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
}

.list li {
  line-height: 1.55;
}

.birthday-note {
  margin-top: 16px;
  line-height: 1.6;
}

.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(217,168,108,0.10);
  color: var(--accent);
  font-size: 12px;
  margin-right: 6px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
}

.table th,
.table td {
  text-align: left;
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
}

.table th { color: var(--muted); font-weight: 700; font-size: 12px; }

.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(217,168,108,0.12);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}

.btn:hover {
  background: rgba(217,168,108,0.18);
}

.btn--small {
  padding: 8px 12px;
  border-radius: 10px;
}

.btn--active {
  border-color: rgba(217,168,108,0.55);
  background: rgba(217,168,108,0.22);
}

.lang-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.lang-switch__form {
  display: flex;
  gap: 8px;
}

.wheel__selected {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.wheel__selectedLabel {
  color: var(--muted);
  font-size: 13px;
}

.wheel__selectedValue {
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wheel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0,0,0,0.18);
  overflow: hidden;
  --wheel-item-h: 46px;
}

.wheel__cursor {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  height: var(--wheel-item-h);
  border-radius: 12px;
  border: 1px solid rgba(217,168,108,0.45);
  background: rgba(217,168,108,0.06);
  pointer-events: none;
  z-index: 6;
}

.wheel__items {
  max-height: 280px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
}

.wheel__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 10px;
  min-height: var(--wheel-item-h);
  border-radius: 12px;
  border: 1px solid transparent;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.wheel__name {
  font-weight: 850;
  flex: 1;
  min-width: 0;
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
}


.wheel__date {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  flex: none;
}



.wheel__item--next {
  border-color: transparent;
  background: transparent;
}

.wheel__item--next .wheel__name {
  color: var(--accent);
}

.wheel__fade {
  position: absolute;
  left: 0;
  right: 0;
  height: 70px;
  pointer-events: none;
  z-index: 10;
}

.wheel__fade--top {
  top: 0;
  background: linear-gradient(180deg, rgba(18,16,14,1), rgba(18,16,14,0));
}

.wheel__fade--bottom {
  bottom: 0;
  background: linear-gradient(0deg, rgba(18,16,14,1), rgba(18,16,14,0));
}

@media (max-width: 520px) {
  .header__row {
    align-items: flex-start;
    padding: 14px 0;
  }

  .brand__title { font-size: 18px; }
  .brand__subtitle { font-size: 12px; }

  .header__right {
    width: 100%;
    justify-content: space-between;
  }

  .nav { gap: 10px; }

  .h1 { font-size: 18px; }
  .big { flex-direction: column; align-items: flex-start; gap: 4px; }
  .big__value { font-size: 20px; }

  .card { padding: 14px; }

  .btn--small {
    padding: 8px 10px;
  }

  .wheel__items {
    max-height: 240px;
    padding: 12px 10px;
  }

  .wheel__item {
    padding: 10px 8px;
    align-items: center;
  }

  .wheel__item--active .wheel__name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .wheel__item--active .wheel__date {
    align-self: center;
  }

  .wheel__fade {
    height: 56px;
  }

  .wheel__fade--top {
    background: linear-gradient(180deg, rgba(18,16,14,0.92), rgba(18,16,14,0));
  }

  .wheel__fade--bottom {
    background: linear-gradient(0deg, rgba(18,16,14,0.92), rgba(18,16,14,0));
  }
}

.footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer__row {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.footer__hint { font-size: 12px; }
