:root {
  color-scheme: dark;
  --bg: #0e0c09;
  --gold: #e4d2ae;
  --deep: #b08958;
  --dim: #8d7b62;
  --line: rgba(228, 210, 174, 0.32);
  --glow: 0 0 14px rgba(212, 184, 130, 0.2);
  --name-glow: 0 0 18px rgba(228, 210, 174, 0.28);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

html.fit {
  height: var(--app-h, 100svh);
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(176, 137, 88, 0.08), transparent 42%),
    var(--bg);
  color: var(--gold);
  font-family: Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  text-shadow: var(--glow);
}

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

button, input, select {
  font: inherit;
  color: var(--gold);
  text-shadow: none;
}

.sheet {
  position: fixed;
  top: var(--app-top, 0px);
  left: 0;
  width: 100%;
  height: var(--app-h, 100svh);
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
  padding: max(1.6rem, env(safe-area-inset-top)) 1.4rem max(1.8rem, env(safe-area-inset-bottom));
  container-type: inline-size;
}

.word {
  margin: 0;
  color: var(--dim);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
  text-shadow: none;
}

h1 {
  font-weight: normal;
  letter-spacing: 0.01em;
  text-shadow: var(--name-glow);
  margin: 0.35rem 0 0;
}

h1 span { display: block; }

.tagline {
  color: var(--dim);
  margin: 0.8rem 0 0;
  max-width: 28rem;
  line-height: 1.45;
  text-shadow: none;
}

.links { margin-top: 1.2rem; }

.links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
  min-height: 2.35rem;
}

.icon {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 1.35rem;
  display: block;
  color: var(--gold);
  text-shadow: none;
}

.icon svg { display: block; width: 1.35rem; height: 1.35rem; }

.links a span { min-width: 0; flex: 1; overflow-wrap: anywhere; text-align: left; }

.links a span.icon { flex: 0 0 1.35rem; min-width: 1.35rem; overflow: visible; }

.links small { flex-shrink: 0; }

.links a:last-child { border-bottom: 1px solid var(--line); }

.links small {
  color: var(--dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
  text-shadow: none;
}

.kamilya { display: flex; flex-direction: column; }
.kamilya .word { margin-top: auto; }
.kamilya h1 { font-size: clamp(2.2rem, 13cqi, 6.5rem); line-height: 0.9; }
.kamilya h1 span { font-size: 0.42em; letter-spacing: 0.18em; text-transform: uppercase; color: var(--deep); text-shadow: none; }

.karina { display: grid; place-items: center; align-content: safe center; text-align: center; gap: 0.85rem; }
.karina .mark {
  width: 4.25rem; height: 4.25rem; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; letter-spacing: 0.12em; color: var(--deep); text-shadow: none;
}
.karina h1 { font-size: clamp(1.7rem, 7.5vw, 3.6rem); line-height: 1.05; }
.karina .links { width: min(22rem, 100%); margin-top: 0.2rem; }

.arman { display: flex; flex-direction: column; justify-content: safe center; }
.arman h1 { font-size: clamp(2.8rem, 12vw, 5.5rem); line-height: 0.92; max-width: 16ch; }
.arman .links { max-width: 28rem; }

.zulfiya { display: flex; flex-direction: column; justify-content: safe center; }
.zulfiya h1 { font-size: clamp(2.2rem, 8vw, 4rem); letter-spacing: 0.08em; text-transform: uppercase; font-weight: normal; }
.zulfiya h1 span { letter-spacing: 0.42em; font-size: 0.55em; color: var(--deep); text-shadow: none; }

.assiya h1 { font-size: clamp(2rem, 12cqi, 6rem); line-height: 0.88; }
.assiya h1 span { font-size: 0.34em; letter-spacing: 0.22em; text-transform: uppercase; color: var(--deep); text-shadow: none; }
.assiya .links { max-width: 24rem; margin-left: auto; }

.roman .word { letter-spacing: 0.46em; }
.roman h1 { font-size: clamp(3rem, 12vw, 5.8rem); line-height: 0.9; }
.roman h1 span { font-size: 0.38em; letter-spacing: 0.2em; text-transform: uppercase; }

.plain { display: flex; flex-direction: column; justify-content: safe center; }
.plain h1 { font-size: clamp(2.2rem, 11vw, 3.1rem); line-height: 1.02; }

@media (min-width: 760px) {
  .plain { align-items: center; }
  .plain .word,
  .plain h1,
  .plain .tagline,
  .plain .links { width: min(24rem, 100%); }
  .plain h1 { font-size: 2.75rem; }
}

.panel {
  width: min(46rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3.2rem 0 4rem;
}

.panel h1 { font-size: 2.4rem; }

.panel p, .muted { color: var(--dim); text-shadow: none; line-height: 1.5; }

.pulse {
  width: 7rem; height: 7rem; margin: 2.2rem auto;
  border: 1px solid var(--line); border-radius: 50%;
  box-shadow: 0 0 24px rgba(212, 184, 130, 0.16);
  animation: breathe 4.8s ease-in-out infinite;
}

.qr {
  width: 15rem;
  margin: 1.2rem 0 0.4rem;
  padding: 0.65rem;
  background: #f4efe4;
}

.qr svg { display: block; width: 100%; height: auto; }

.check {
  margin: 0.8rem 0 0;
  color: var(--gold);
  letter-spacing: 0.32em;
  font-size: 1.15rem;
  text-shadow: var(--glow);
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.04); opacity: 1; }
}

form { margin-top: 1.4rem; }

label { display: grid; gap: 0.3rem; margin: 0.8rem 0; color: var(--dim); text-shadow: none; }

input, select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.45rem 0;
  width: 100%;
  border-radius: 0;
}

button, .textbutton {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--gold);
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  text-shadow: none;
}

.row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }

table { width: 100%; border-collapse: collapse; margin-top: 1.2rem; }

th, td {
  text-align: left;
  padding: 0.55rem 0.4rem 0.55rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
  text-shadow: none;
}

th { color: var(--dim); font-weight: normal; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.72rem; }

.num { font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92rem; }

.bars { display: flex; align-items: flex-end; gap: 0.35rem; height: 4.2rem; margin: 0.8rem 0 0.3rem; }
.bars i { display: block; width: 0.55rem; background: var(--deep); box-shadow: var(--glow); }
.bars .b0 { height: 2px; opacity: 0.4; }
.bars .b1 { height: 12%; } .bars .b2 { height: 24%; } .bars .b3 { height: 36%; }
.bars .b4 { height: 48%; } .bars .b5 { height: 62%; } .bars .b6 { height: 74%; }
.bars .b7 { height: 86%; } .bars .b8 { height: 100%; }

.days { display: flex; gap: 0.35rem; color: var(--dim); font-size: 0.68rem; letter-spacing: 0.04em; text-shadow: none; }
.days span { width: 0.55rem; text-align: center; }

.linkrow { display: grid; grid-template-columns: 1.1fr 0.8fr 1.4fr; gap: 0.6rem; }

.admin { width: min(68rem, calc(100% - 2rem)); }
.admin h2 { font-weight: normal; font-size: 1.02rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--deep); text-shadow: none; }
.admin form.inline { margin-top: 0.7rem; }
.tablewrap { overflow-x: auto; }
tr[hidden] { display: none; }
.checkline { display: flex; flex-direction: row; align-items: center; gap: 0.6rem; }
.checkline input { width: auto; }

.note { border-top: 1px solid var(--line); margin-top: 1.4rem; padding-top: 0.8rem; }

code, .url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  word-break: break-all;
  text-shadow: none;
  color: var(--gold);
}
