
:root {
  --bg-day: linear-gradient(180deg, #564b43 0%, #6b5c53 100%); /* placeholder wood day */
  --bg-night: linear-gradient(180deg, #2f2a26 0%, #423832 100%);
  --accent: #c9a97a;
  --text: #eee;
  --muted: #b9aca4;
  --danger: #d66;
  --ok: #8fd18f;
  --lock: #888;
  --card-bg: rgba(30,27,24,0.75);
  --card-border: rgba(255,255,255,0.08);
  --shadow: 0 8px 24px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg-day);
  background-attachment: fixed;
}

.app {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

.nav {
  background: rgba(0,0,0,0.35);
  border-right: 1px solid var(--card-border);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nav a {
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  transition: transform .12s ease, background .12s ease;
}
.nav a:hover { transform: translateY(-1px); background: rgba(255,255,255,0.06); }

.main {
  padding: 16px 20px 24px 20px;
}

/* Top HUD bar */
.topbar {
  display: grid;
  grid-template-columns: 96px auto 360px;
  gap: 16px;
  align-items: center;
}

.avatar {
  width: 96px; height: 96px;
  border: 3px solid var(--accent);
  background: rgba(255,255,255,0.06);
  border-radius: 8px; /* square frame */
  overflow: hidden;
  box-shadow: var(--shadow);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.player-info {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.player-name { font-size: 20px; font-weight: 700; }
.player-title { font-size: 12px; padding: 4px 8px; border: 1px solid var(--card-border); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,0.04); }

.stats-col {
  display: flex; gap: 12px; justify-content: flex-end;
}
.stat {
  min-width: 100px;
  padding: 8px 10px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  display: flex; align-items: center; gap: 8px;
  position: relative;
}
.stat.locked { opacity: 0.5; }
.stat .label { font-size: 12px; color: var(--muted); }
.stat .value { font-size: 14px; font-weight: 700; }

.center-row {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 20px;
  margin-top: 16px;
}

/* Greeting card */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}

/* Video panel */
.video-panel {
  height: 260px;
  background: rgba(0,0,0,0.35);
  border: 1px dashed var(--card-border);
  border-radius: 14px;
  display: grid; place-items: center;
  position: relative;
}
.video-panel.locked::after {
  content: "🔒 Лучшие моменты (скоро)";
  color: var(--muted); font-size: 14px;
}
.video-panel video { width: 100%; height: 100%; border-radius: 14px; display: block; }

/* Block circles row */
.blocks-row {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.block-circle {
  display: grid; place-items: center; gap: 10px;
}
.block-thumb {
  width: 140px; height: 140px; border-radius: 999px;
  border: 2px solid var(--card-border); background: rgba(255,255,255,0.06);
  position: relative; overflow: hidden;
  display: grid; place-items: center; color: var(--muted);
}
.block-thumb.locked::after {
  content: "🔒";
  position: absolute; font-size: 24px;
}
.block-name { text-align: center; font-weight: 700; color: var(--text); }

footer { margin-top: 28px; opacity: 0.6; font-size: 12px; }

/* Night theme placeholder */
[data-theme="night"] body,
body.night {
  background: var(--bg-night);
}


/* --- lock click feedback --- */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}
.shake { animation: shake 0.28s ease; }
.block-thumb.locked, .video-panel.locked, .stat.locked { cursor: pointer; }

/* === v0.2 NAV with labels and limited height === */
.nav { width: 220px; height: 360px; border-radius: 14px; margin: 12px 8px; padding: 12px 8px; }
.nav a { justify-content: flex-start; gap: 10px; padding: 0 12px; font-weight: 600; }
.nav a .ico { width: 24px; text-align: center; font-size: 18px; }
.nav a .label { font-size: 14px; opacity: .95; }

/* place blocks-row clearly below the sidebar visual area */
.blocks-row { margin-top: 180px; }
