/* English Status: чёрный фон и моноширинный шрифт как на emptyoverlord.com, ярко-зелёный акцент */
:root {
  color-scheme: dark;
  --bg: #000;
  --fg: #f1f5f2;
  --mut: rgba(241, 245, 242, 0.62);
  --dim: rgba(241, 245, 242, 0.36);
  --line: rgba(255, 255, 255, 0.11);
  --card: rgba(255, 255, 255, 0.045);
  --card2: rgba(255, 255, 255, 0.08);
  --ac: #4effa0;
  --warn: #ffcf4e;
  --bad: #ff6b6b;
  /* навыки: всегда с подписью, цвет только помогает */
  --s: #ff7aa8;
  --l: #4eb0ff;
  --w: #ffcf4e;
  --r: #b98bff;
  --mono: 'JetBrains Mono', 'Courier New', ui-monospace, monospace;
  --rad: 18px;
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.45 var(--mono);
  overflow-x: hidden;
}
button { font: inherit; color: inherit; }
.nojs { padding: 24px; }

/* ---- рыбки на фоне ---- */
#sea { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#sea i {
  position: absolute;
  left: 0;
  font: 800 var(--fs, 22px)/1 var(--mono);
  font-style: normal;
  color: var(--c);
  opacity: var(--o, 0.25);
  white-space: pre;
  animation: swim var(--t, 90s) linear infinite;
  animation-delay: var(--dl, 0s);
  will-change: transform;
}
#sea i.back { animation-name: swimBack; }
@keyframes swim { from { transform: translate3d(-12vw, 0, 0); } to { transform: translate3d(112vw, 0, 0); } }
@keyframes swimBack { from { transform: translate3d(112vw, 0, 0); } to { transform: translate3d(-12vw, 0, 0); } }

/* ---- шапка ---- */
.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px 4px;
  max-width: 1880px;
  margin: 0 auto;
}
.brand { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex-wrap: wrap; }
.brand b { font-size: 18px; font-weight: 800; letter-spacing: 0.04em; }
.logo { color: var(--ac); font-weight: 800; }
.who { color: var(--dim); font-size: 12px; }
.top-r { display: flex; align-items: center; gap: 10px; flex: none; }
.fresh { color: var(--dim); font-size: 11px; text-align: right; }
.fresh.bad { color: var(--bad); }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.langs button {
  appearance: none; border: 0; background: none; cursor: pointer;
  padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; color: var(--mut);
}
.langs button[aria-pressed='true'] { background: var(--ac); color: #00140a; }
.gear { appearance: none; border: 1px solid var(--line); background: var(--card); border-radius: 50%; width: 32px; height: 32px; cursor: pointer; font-size: 16px; }

/* ---- сетка ---- */
.wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 12px 22px 18px;
  max-width: 1880px;
  margin: 0 auto;
}
.col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 1180px) {
  .wrap { grid-template-columns: minmax(0, 1.6fr) minmax(400px, 1fr); align-items: start; }
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 18px 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.cap { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mut); }

/* ---- обратный отсчёт ---- */
.hero { padding: 18px 22px 20px; }
.hero-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hero-date { color: var(--mut); font-size: 12px; }
.clock { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 12px 0 10px; }
.clock div {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 4px 8px; border-radius: 14px; background: rgba(78, 255, 160, 0.06); border: 1px solid rgba(78, 255, 160, 0.18);
}
.clock b {
  font-size: clamp(30px, 5.2vw, 76px); font-weight: 800; line-height: 1; color: var(--ac);
  font-variant-numeric: tabular-nums; text-shadow: 0 0 28px rgba(78, 255, 160, 0.35);
}
.clock span { font-size: 12px; color: var(--mut); }
.clock div.sec b { color: var(--fg); text-shadow: none; opacity: 0.85; }
.goal-line { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--mut); }
.goal-line b { color: var(--fg); }
.passed { font-size: 28px; font-weight: 800; color: var(--warn); padding: 14px 0; }

/* ---- линейки ---- */
.rulers { display: flex; flex-direction: column; gap: 24px; padding-bottom: 14px; }
.ruler-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.ruler-val { font-size: 13px; color: var(--mut); text-align: right; }
.ruler-val b { font-size: 22px; color: var(--fg); margin-right: 4px; }
.ruler-val em { font-style: normal; font-weight: 800; color: var(--ac); }
.track { position: relative; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); }
.band {
  position: absolute; top: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; letter-spacing: 0.05em; color: rgba(255, 255, 255, 0.78);
  border-right: 1px solid rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.band:first-child { border-radius: 8px 0 0 8px; }
.band:last-child { border-radius: 0 8px 8px 0; border-right: 0; }
.band.approx { background-image: repeating-linear-gradient(135deg, rgba(0,0,0,0.18) 0 4px, transparent 4px 8px); }
.ticks { position: relative; height: 16px; margin-top: 4px; font-size: 10px; color: var(--dim); }
.ticks span { position: absolute; transform: translateX(-50%); }
.mk { position: absolute; top: 0; bottom: 0; width: 0; }
.mk.owl > .o {
  position: absolute; bottom: calc(100% + 1px); left: 0; transform: translateX(-50%);
  font-size: 26px; line-height: 1; filter: drop-shadow(0 0 10px rgba(78, 255, 160, 0.55));
  transition: left 0.6s;
}
.mk.owl::after {
  content: ''; position: absolute; top: -3px; bottom: -3px; left: -1.5px; width: 3px; border-radius: 2px; background: var(--ac);
  box-shadow: 0 0 10px rgba(78, 255, 160, 0.9);
}
.mk.goal::after { content: ''; position: absolute; top: -6px; bottom: -6px; left: -1px; width: 2px; background: #fff; }
.mk.goal > .o { position: absolute; bottom: calc(100% + 4px); left: -3px; font-size: 16px; line-height: 1; }
.mk.min::after { content: ''; position: absolute; top: -4px; bottom: -4px; left: -1px; border-left: 2px dashed rgba(255, 255, 255, 0.7); }
.mk .lab { position: absolute; top: calc(100% + 18px); left: 0; transform: translateX(-50%); font-size: 10px; color: var(--mut); white-space: nowrap; }
.mk.min .lab { top: calc(100% + 30px); }
.mk.plan::after {
  content: ''; position: absolute; top: 50%; left: -6px; width: 12px; height: 12px; margin-top: -6px;
  border-radius: 50%; border: 2px dashed rgba(255, 255, 255, 0.85);
}
.mk.plan .lab { top: calc(100% + 42px); color: var(--fg); }
.mk.past::after { content: ''; position: absolute; top: 50%; left: -3px; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: rgba(255,255,255,0.55); }
.ruler-foot { margin-top: 46px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--mut); }
.ruler-foot .pos { color: var(--ac); }
.ruler-foot .neg { color: var(--warn); }
.empty-note { font-size: 12px; color: var(--dim); margin: 46px 0 0; }

/* ---- навыки ---- */
.skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 820px) { .skills { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sk {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 6px;
  min-height: 250px; padding: 16px 16px 14px; border-radius: var(--rad);
  background: var(--card); border: 1px solid var(--line);
}
.sk::before { /* цвет навыка тонкой полосой сверху */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c);
}
.sk .fill { /* «вода» поднимается до уровня навыка */
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -1;
  height: var(--h, 0%);
  background: linear-gradient(to top, rgba(var(--rgb), 0.28), rgba(var(--rgb), 0.08));
  transition: height 0.9s;
}
.sk .fill::before { /* волна по краю: гребни бегут вбок */
  content: ''; position: absolute; left: 0; right: 0; top: -9px; height: 10px;
  background: radial-gradient(circle at 12px 16px, rgba(var(--rgb), 0.26) 11px, transparent 12px) 0 0 / 24px 10px repeat-x;
  animation: wave 2.4s linear infinite;
}
@keyframes wave { from { background-position-x: 0; } to { background-position-x: 24px; } }
.sk .tline { position: absolute; left: 0; right: 0; bottom: var(--t, 60%); z-index: -1; border-top: 1px dashed rgba(255, 255, 255, 0.35); }
.sk .tline span { position: absolute; right: 8px; bottom: 2px; font-size: 9px; color: var(--dim); }
.sk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.sk-name { font-size: 14px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c); }
.sk-sub { font-size: 11px; color: var(--dim); }
.cefr { font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.45); border: 1px solid var(--line); }
.sk-score { font-size: clamp(40px, 4.6vw, 64px); font-weight: 800; line-height: 1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.sk-score small { font-size: 12px; font-weight: 400; color: var(--dim); margin-left: 4px; }
.sk-row { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--mut); }
.sk-row b { color: var(--fg); font-weight: 600; }
.chip { align-self: flex-start; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.45); }
.chip.low { color: var(--warn); border-color: rgba(255, 207, 78, 0.5); }
.chip.high { color: var(--s); border-color: rgba(255, 122, 168, 0.5); }
.chip.ok { color: var(--ac); border-color: rgba(78, 255, 160, 0.45); }
.chip.none { color: var(--dim); }
.spark { display: block; width: 100%; height: 34px; margin-top: auto; }
.advice { margin: 0; padding: 0 4px; font-size: 14px; color: var(--mut); }
.advice b { color: var(--fg); }

/* ---- календарь ---- */
.cal { position: relative; overflow: hidden; isolation: isolate; padding: 16px 16px 14px; }
.cal::before { /* цвет месяца */
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(120% 70% at 100% 0%, rgba(var(--mrgb), 0.22), transparent 60%), radial-gradient(80% 50% at 0% 100%, rgba(var(--mrgb), 0.10), transparent 70%);
}
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cal-title { flex: 1; min-width: 0; font-size: 20px; font-weight: 800; color: rgb(var(--mrgb)); }
.cal-title small { font-size: 13px; font-weight: 400; color: var(--mut); margin-left: 6px; }
.cal-head button {
  appearance: none; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.4); border-radius: 10px;
  min-width: 34px; height: 34px; padding: 0 10px; cursor: pointer; font-size: 13px;
}
.cal-head button:disabled { opacity: 0.3; cursor: default; }
.wd, .grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wd span { text-align: center; font-size: 11px; color: var(--dim); text-transform: uppercase; padding-bottom: 4px; }
.wd span.we { color: rgba(var(--mrgb), 0.85); }
.day {
  appearance: none; position: relative; aspect-ratio: 1 / 1; min-height: 40px;
  border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.35);
  cursor: pointer; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  transition: transform 0.15s, border-color 0.15s;
}
.day:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.35); }
.day .n { font-size: 14px; font-weight: 600; }
.day .dots { display: flex; gap: 3px; height: 5px; }
.day .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--c); }
.day.pad { visibility: hidden; }
.day.fut { opacity: 0.45; cursor: default; }
.day.fut:hover { transform: none; border-color: var(--line); }
.day.none .n { color: var(--dim); }
.day.miss::after { content: '✕'; position: absolute; top: 3px; right: 6px; font-size: 10px; color: rgba(255, 107, 107, 0.8); }
.day.today { border: 2px solid rgb(var(--mrgb)); box-shadow: 0 0 16px rgba(var(--mrgb), 0.45); }
.day.sel { outline: 2px solid #fff; outline-offset: 1px; }
.day.little .n::after { content: '~'; color: var(--dim); margin-left: 1px; }
.cal-detail { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.45); border: 1px solid var(--line); min-height: 86px; }
.cal-detail h3 { margin: 0 0 6px; font-size: 13px; font-weight: 800; }
.cal-detail p { margin: 2px 0; font-size: 12px; color: var(--mut); }
.cal-detail .big { font-size: 15px; color: var(--fg); font-weight: 600; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.pills span { font-size: 11px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg); }
.pills span::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c); margin-right: 6px; vertical-align: 1px; }
.cal-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--mut); }
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 11px; color: var(--dim); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; border: 1px solid var(--line); display: inline-block; }

/* сезоны: снег, трава, солнце, листья. Слой за сеткой, мыши не мешает */
.season { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.season i { position: absolute; font-style: normal; line-height: 1; will-change: transform; }
.season.winter i, .season.autumn i { top: -30px; left: var(--x); font-size: var(--fs); opacity: var(--o); animation: fall var(--t) linear infinite; animation-delay: var(--dl); }
.season.winter i { color: #e8f4ff; }
@keyframes fall {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(var(--dx), calc(var(--H) * 0.5), 0) rotate(calc(var(--rot) * 0.5)); }
  100% { transform: translate3d(0, var(--H), 0) rotate(var(--rot)); }
}
.season.spring i.blade {
  bottom: -4px; left: var(--x); width: 3px; height: var(--bh); border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, #2e9e4f, #8be36b); transform-origin: bottom center; opacity: 0.55;
  animation: sway var(--t) ease-in-out infinite alternate; animation-delay: var(--dl);
}
.season.spring i.fl { bottom: var(--y); left: var(--x); font-size: var(--fs); opacity: 0.75; animation: bob var(--t) ease-in-out infinite alternate; animation-delay: var(--dl); }
@keyframes sway { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-5px); } }
.season.summer .sun { position: absolute; top: -70px; right: -70px; width: 220px; height: 220px; }
.season.summer .sun::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 216, 78, 0.22) 0 8deg, transparent 8deg 22deg);
  animation: spin 60s linear infinite;
}
.season.summer .sun::after {
  content: ''; position: absolute; inset: 62px; border-radius: 50%;
  background: radial-gradient(circle, #ffe680, #ffb347 70%); box-shadow: 0 0 60px rgba(255, 200, 80, 0.7);
  animation: glow 4s ease-in-out infinite alternate;
}
.season.summer i.sp { left: var(--x); top: var(--y); font-size: 10px; color: #ffe680; opacity: 0; animation: twinkle var(--t) ease-in-out infinite; animation-delay: var(--dl); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes glow { from { opacity: 0.85; } to { opacity: 1; transform: scale(1.04); } }
@keyframes twinkle { 0%, 100% { opacity: 0; } 50% { opacity: 0.7; } }

/* ---- подвал ---- */
.foot { position: relative; z-index: 1; max-width: 1880px; margin: 0 auto; padding: 0 22px 26px; font-size: 12px; color: var(--dim); }
.foot details { max-width: 980px; }
.foot summary { cursor: pointer; color: var(--mut); }
.foot ol { padding-left: 18px; margin: 8px 0 0; }
.foot li { margin: 4px 0; }
.src { margin-top: 8px; }

/* ---- настройки (только по ключу) ---- */
.admin {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto;
  background: #0b0d10; color: var(--fg); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 22px;
}
.admin::backdrop { background: rgba(0, 0, 0, 0.6); }
.admin h2 { margin: 0 0 12px; font-size: 16px; display: flex; justify-content: space-between; align-items: center; }
.admin h3 { margin: 18px 0 8px; font-size: 13px; color: var(--ac); }
.admin label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--mut); }
.admin .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.admin .row > * { flex: 1 1 110px; }
.admin .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.admin input, .admin select {
  width: 100%; font: inherit; font-size: 14px; color: var(--fg); background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
}
.admin .btn {
  appearance: none; cursor: pointer; border: 0; border-radius: 10px; padding: 9px 14px; font-weight: 800;
  background: var(--ac); color: #00140a; flex: 0 0 auto;
}
.admin .btn.ghost { background: rgba(255, 255, 255, 0.08); color: var(--fg); border: 1px solid var(--line); }
.admin .list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; font-size: 12px; }
.admin .list div { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); }
.admin .x { appearance: none; border: 0; background: none; color: var(--bad); cursor: pointer; font-size: 14px; }
.admin .msg { min-height: 18px; font-size: 12px; color: var(--ac); margin-top: 8px; }
.admin .msg.bad { color: var(--bad); }
.admin .close { appearance: none; border: 0; background: none; cursor: pointer; font-size: 20px; color: var(--mut); }

/* ---- телефон ---- */
@media (max-width: 640px) {
  .top { padding: 12px 16px 2px; }
  .who, .fresh { display: none; }
  .wrap { padding: 10px 16px 16px; gap: 12px; }
  .col { gap: 12px; }
  .card { padding: 14px 14px; }
  .clock { gap: 6px; }
  .clock div { padding: 8px 2px 6px; border-radius: 10px; }
  .clock span { font-size: 10px; }
  .sk { min-height: 210px; padding: 14px 12px 12px; }
  .sk-row { flex-direction: column; gap: 0; }
  .day { border-radius: 9px; min-height: 0; }
  .day .n { font-size: 12px; }
  .day .dots i { width: 4px; height: 4px; }
  .wd, .grid { gap: 4px; }
  .foot { padding: 0 16px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  #sea i, .season i, .season .sun::before, .season .sun::after, .sk .fill::before { animation: none !important; }
  #sea { display: none; }
}
