:root {
  --sber-green: #21a038;
  --sber-green-deep: #148f2e;
  --sber-green-dark: #0b5c22;
  --sber-green-soft: #e8f7eb;
  --sber-green-mist: #f3faf4;
  --sber-white: #ffffff;
  --ink: #102216;
  --ink-soft: #3d5244;
  --ink-faint: #6d8274;
  --line: #d7e6db;
  --spasibo: #f0a202;
  --shadow: 0 18px 50px rgba(16, 34, 22, 0.14);
  --radius: 18px;
  --phone-w: 340px;
  --phone-h: 720px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Nunito", "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(33, 160, 56, 0.16), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(33, 160, 56, 0.1), transparent 28%),
    linear-gradient(160deg, #f7fcf8 0%, #eef6f0 48%, #f8fbf9 100%);
}

body {
  min-height: 100vh;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.studio {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px;
  min-height: 100vh;
  align-items: start;
}

.studio-panel {
  position: sticky;
  top: 28px;
  display: grid;
  gap: 22px;
}

.studio-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.studio-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 35% 30%, #7dff9a, transparent 40%),
    linear-gradient(145deg, var(--sber-green), var(--sber-green-dark));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sber-green-deep);
  font-weight: 700;
}

.studio-brand h1 {
  font-family: var(--display);
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.studio-lead {
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: 15px;
}

.panel-block h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.concept-list {
  display: grid;
  gap: 8px;
}

.concept-btn {
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.concept-btn:hover {
  transform: translateY(-1px);
  border-color: #b7d9c0;
}

.concept-btn.active {
  background: var(--sber-white);
  border-color: var(--sber-green);
  box-shadow: 0 0 0 3px rgba(33, 160, 56, 0.12);
}

.concept-btn strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.concept-btn span {
  display: block;
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.4;
}

.hint-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
  display: grid;
  gap: 6px;
}

.stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 8px;
  min-height: calc(100vh - 56px);
}

.phone {
  flex-shrink: 0;
  width: var(--phone-w);
  height: var(--phone-h);
  border-radius: 36px;
  background: #101814;
  padding: 9px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(16, 34, 22, 0.2);
  position: relative;
}

@media (min-width: 1100px) {
  .phone {
    zoom: 1.12;
  }
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #101814;
  border-radius: 18px;
  z-index: 5;
}

.app {
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--sber-green-mist);
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  padding: 14px 22px 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: var(--sber-white);
}

.status-icons {
  color: var(--ink-faint);
  font-weight: 600;
}

.app-body {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--sber-green-mist);
  scroll-behavior: smooth;
}

.embedded-game {
  position: absolute;
  inset: 38px 0 0;
  z-index: 10;
  background: #f4f8f2;
}
.embedded-game iframe {
  display: block;
  border: 0;
  width: 100%;
  height: 100%;
}
.game-open .tabbar { visibility: hidden; }

.tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 10px 8px 16px;
  background: var(--sber-white);
  border-top: 1px solid var(--line);
}

.tab {
  display: grid;
  gap: 5px;
  justify-items: center;
  padding: 8px 4px 6px;
  border-radius: 14px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.tab .glyph {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: transparent;
  color: currentColor;
}

.tab .glyph svg {
  width: 22px;
  height: 22px;
  display: block;
}

.tab.active {
  color: var(--sber-green-dark);
  background: var(--sber-green-soft);
}

.tab.active .glyph {
  background: var(--sber-green);
  color: white;
}

.screen {
  padding: 8px 16px 24px;
  animation: rise 0.28s ease;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen,
  .concept-btn,
  .tab {
    animation: none;
    transition: none;
  }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.topbar h2,
.screen-title {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -0.03em;
}

.back-btn,
.chip,
.pill,
.btn {
  border-radius: 999px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--sber-white);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 13px;
}

.spasibo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e8f7eb;
  color: #0b5c22;
  font-weight: 700;
  font-size: 12px;
  border: 1px solid #b7e0c0;
}

.spasibo-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sber-green);
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 20px 132px 20px 18px;
  background:
    radial-gradient(ellipse 55% 80% at 78% 70%, rgba(0, 0, 0, 0.18), transparent 58%),
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.22), transparent 42%),
    linear-gradient(152deg, #28b344 0%, #1a9a34 42%, #0f6d24 100%);
  color: white;
  min-height: 168px;
  margin-bottom: 16px;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 14px;
  width: 92px;
  height: 18px;
  border-radius: 50%;
  background: rgba(8, 40, 16, 0.28);
  filter: blur(6px);
  z-index: 0;
  pointer-events: none;
}

.hero h3 {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 12ch;
}

.hero p {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.45;
  max-width: 20ch;
  opacity: 0.92;
}

.mascot {
  position: absolute;
  right: -4px;
  bottom: -10px;
  width: 158px;
  height: 158px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 14px 18px rgba(7, 36, 14, 0.35));
  animation: bob 3.2s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  background: transparent;
}

.mascot-img--running,
.mascot-img--jumping,
.mascot-img--sitting {
  width: 168px;
  height: 168px;
}

.mascot-img--happy,
.mascot-img--winking,
.mascot-img--laughing,
.mascot-img--worried,
.mascot-img--surprised,
.mascot-img--sad {
  width: 148px;
  height: 148px;
  bottom: -4px;
  object-position: center center;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  padding: 9px 14px;
  background: var(--sber-white);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-soft);
}

.chip.active {
  background: var(--sber-green);
  border-color: var(--sber-green);
  color: white;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 10px;
}

.section-head h3 {
  font-size: 16px;
  font-weight: 800;
}

.linkish {
  color: var(--sber-green-deep);
  font-size: 13px;
  font-weight: 700;
}

.grid-games {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.game-card {
  background: var(--sber-white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  text-align: left;
  display: grid;
  gap: 8px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.game-card:hover {
  transform: translateY(-2px);
  border-color: #b7d9c0;
}

.game-art {
  height: 110px;
  border-radius: 14px;
  display: grid;
  place-items: end start;
  padding: 8px;
  color: white;
  font-weight: 800;
  font-size: 11px;
  position: relative;
  overflow: hidden;
}

.game-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.game-art-label {
  position: relative;
  z-index: 1;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(10, 40, 18, 0.55);
  backdrop-filter: blur(4px);
  letter-spacing: 0.02em;
}

.game-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(8, 30, 14, 0.45) 100%);
  pointer-events: none;
  z-index: 0;
}

.game-card h4 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 600;
}

.tag {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--sber-green-soft);
  color: var(--sber-green-dark);
  font-size: 11px;
  font-weight: 700;
}

.shelf {
  margin-bottom: 16px;
}

.shelf-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.shelf-track::-webkit-scrollbar {
  display: none;
}

.shelf-card {
  flex: 0 0 148px;
  background: var(--sber-white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  text-align: left;
}

.shelf-card .game-art {
  height: 112px;
}

.guide-card {
  background: var(--sber-white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  overflow: hidden;
}

.guide-card p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.mini-mascot {
  width: 72px;
  height: 72px;
  object-fit: contain;
  object-position: center center;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 40%, rgba(33, 160, 56, 0.16), transparent 64%),
    #f4faf5;
  flex-shrink: 0;
  padding: 4px;
  box-sizing: border-box;
}

.frame-stub .mini-mascot {
  width: 96px;
  height: 96px;
  background: transparent;
  padding: 0;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.stat {
  background: var(--sber-white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 10px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 18px;
  font-family: var(--display);
  color: var(--sber-green-dark);
}

.stat span {
  font-size: 11px;
  color: var(--ink-faint);
  font-weight: 600;
}

.list-card {
  background: var(--sber-white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  text-align: left;
  margin-bottom: 8px;
  width: 100%;
}

.list-card strong {
  font-size: 14px;
}

.list-card span {
  font-size: 12px;
  color: var(--ink-faint);
}

.badge-live,
.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-live {
  color: var(--sber-green-deep);
}

.badge-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sber-green);
  box-shadow: 0 0 0 4px rgba(33, 160, 56, 0.18);
}

.badge-soon {
  color: var(--ink-faint);
}

.leader-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: var(--sber-white);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 8px;
}

.leader-row.me {
  border-color: var(--sber-green);
  background: #f2fbf4;
}

.place {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--sber-green-soft);
  color: var(--sber-green-dark);
  font-weight: 800;
  font-size: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  font-weight: 800;
  font-size: 14px;
}

.btn-primary {
  background: var(--sber-green);
  color: white;
  width: 100%;
}

.btn-primary:active {
  background: var(--sber-green-deep);
}

.btn-secondary {
  background: var(--sber-white);
  border: 1px solid var(--line);
  color: var(--ink);
  width: 100%;
}

.stack {
  display: grid;
  gap: 10px;
}

.detail-art {
  height: 200px;
  border-radius: 22px;
  margin-bottom: 14px;
  display: grid;
  place-items: end start;
  color: white;
  position: relative;
  overflow: hidden;
  padding: 16px;
}

.detail-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.detail-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 20%, rgba(8, 30, 14, 0.62) 100%);
  pointer-events: none;
}

.detail-art .big-title {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: 26px;
  text-align: left;
  padding: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  max-width: 16ch;
}

.frame-stub {
  margin-top: 12px;
  border-radius: 18px;
  border: 1px dashed #9ec9aa;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(33, 160, 56, 0.05),
      rgba(33, 160, 56, 0.05) 8px,
      rgba(255, 255, 255, 0.4) 8px,
      rgba(255, 255, 255, 0.4) 16px
    );
  min-height: 160px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.quest {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  background: var(--sber-white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 8px;
}

.quest.done {
  opacity: 0.72;
}

.cat-dirs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.dir-card {
  background: var(--sber-white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  text-align: left;
}

.dir-card .icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  margin-bottom: 8px;
}

.dir-card strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.dir-card span {
  font-size: 11px;
  color: var(--ink-faint);
}

.empty-note {
  font-size: 13px;
  color: var(--ink-faint);
  padding: 18px 8px;
  text-align: center;
}

.concept-switch {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.concept-switch::-webkit-scrollbar {
  display: none;
}

.concept-switch button {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
}

.concept-switch button.active {
  background: var(--sber-green);
  border-color: var(--sber-green);
  color: white;
}

@media (max-width: 960px) {
  .studio {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .studio-panel {
    position: static;
  }

  .stage {
    min-height: auto;
    padding-bottom: 24px;
  }
}

@media (max-width: 430px) {
  .phone {
    width: min(100%, 390px);
    height: min(844px, calc(100vh - 24px));
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }

  .phone-notch {
    display: none;
  }

  .app {
    border-radius: 0;
  }

  .studio {
    padding: 0;
  }

  .studio-panel {
    display: none;
  }
}

.demo-notice{margin:0;padding:10px 16px;background:#edf3ee;color:#405547;font-size:12px;line-height:1.5;border-bottom:1px solid #d5e1d8}

.playable-art{background:linear-gradient(140deg,#f4f8e9,#c8dbae)!important}.playable-art i{display:block;position:absolute;inset:10% 18%;background-image:url(game-assets/garden.png);background-size:400% 300%;background-repeat:no-repeat}.detail-art:has(.big-title){min-height:160px}.detail-art:has(.detail-garden){background:linear-gradient(140deg,#f4f8e9,#c8dbae)!important;min-height:220px}.detail-garden{position:absolute;width:170px;height:170px;top:0;left:50%;transform:translateX(-50%);background-image:url(game-assets/garden.png);background-size:400% 300%}.detail-art:has(.detail-garden) .big-title{position:relative;margin-top:140px;color:#244b2c;text-shadow:none}
