:root {
  --primary: #28e98c;
  --bg: #1f1f1f;
  --muted: #999;
  --line: #565656;
  --text: #fff;
  --danger: #ff6b6b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  background: var(--bg);
}

.shell {
  display: grid;
  grid-template-columns: minmax(280px, 28%) minmax(0, 1fr) 72px;
  gap: 56px;
  align-items: start;
  max-width: 1410px;
  margin: 0 auto;
  padding: 96px 28px 80px;
}

.left-sidebar {
  position: sticky;
  top: 96px;
  z-index: 12;
  width: 100%;
  padding: 40px 32px 32px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--bg);
  text-align: center;
  grid-column: 1;
  grid-row: 1;
}

a {
  color: var(--primary);
  text-decoration: none;
}

img,
svg {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 36px;
}

.logo {
  color: var(--text);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.logo-img {
  width: auto;
  max-width: 148px;
  max-height: 96px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
}

.designation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  flex: 1;
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  text-align: center;
}

.designation .amp {
  color: var(--primary);
  font-size: 12px;
  line-height: 1;
}

.me {
  position: relative;
  margin: 0 auto 36px;
}

.me-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 30px;
}

.me-badge {
  position: absolute;
  right: -8px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary);
  color: #111;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.left-sidebar h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 22px;
  font-weight: 300;
}

.address {
  margin-bottom: 22px;
}

.copyright {
  margin-bottom: 28px;
  font-size: 13px;
}

.social-profile {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  list-style: none;
}

.social-btn {
  display: block;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #141414;
  transition: border-color 0.3s, transform 0.3s;
}

.social-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-btn--nbg {
  background: #fff;
  padding: 5px;
}

.social-btn--nbg img {
  object-fit: contain;
}

.social-btn--hyk {
  background: var(--bg);
  padding: 4px;
}

.social-btn--hyk img {
  object-fit: contain;
}

.social-btn--in {
  display: grid;
  place-items: center;
  background: #0a66c2;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.social-btn:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 20px 10px;
  border: 2px solid var(--primary);
  border-radius: 30px;
  background: var(--primary);
  color: #000;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  transition: 0.3s;
}

.theme-btn svg {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.theme-btn:hover {
  background: none;
  color: var(--primary);
}

.dmenu {
  position: sticky;
  top: 168px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 0;
  border: 1px solid #575757;
  border-radius: 30px;
  background: var(--bg);
  text-align: center;
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  justify-self: end;
}

.dmenu a {
  position: relative;
  display: grid;
  place-items: center;
  width: 55px;
  height: 28px;
  color: var(--muted);
}

.dmenu a.is-active,
.dmenu a:hover {
  color: var(--primary);
}

.dmenu svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.dmenu span {
  position: absolute;
  right: calc(100% + 10px);
  padding: 3px 8px;
  border-radius: 5px;
  background: #404042;
  color: #fff;
  font-size: 12px;
  visibility: hidden;
  opacity: 0;
  white-space: nowrap;
}

.dmenu a:hover span {
  visibility: visible;
  opacity: 1;
}

.drake-main {
  padding: 0;
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
}

.content-width {
  max-width: 770px;
  width: 100%;
}

.pinbar {
  position: fixed;
  top: 18px;
  right: 28px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--bg);
}

.lang-switch button {
  padding: 6px 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.lang-switch button.is-active {
  background: var(--primary);
  color: #111;
}

#pin-form {
  margin: 0;
}

#pin {
  width: 168px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, sans-serif;
  font-size: 13px;
  letter-spacing: 0.4em;
  text-align: center;
  outline: none;
}

#pin:focus {
  border-color: var(--primary);
}

.pin-msg {
  min-height: 1.1em;
  margin-top: 8px;
  font-size: 13px;
  text-align: center;
}

.pin-msg.is-error {
  color: var(--danger);
}

.subtitle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: 30px;
  color: var(--text);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subtitle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "badge badge"
    "title round"
    "lede round"
    "facts facts";
  column-gap: 32px;
  row-gap: 0;
  padding: 0 0 40px;
}

.hero .subtitle {
  grid-area: badge;
}

.hero h1 {
  grid-area: title;
}

.lede {
  grid-area: lede;
}

.go-round {
  grid-area: round;
  align-self: center;
}

.facts {
  grid-area: facts;
  margin-top: 48px;
}

.hero h1,
.block h2 {
  color: var(--text);
  font-weight: 300;
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 28px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.15;
  letter-spacing: -0.2px;
}

.hero h1 span {
  color: var(--primary);
}

.lede {
  max-width: 480px;
  margin-bottom: 8px;
}

.facts {
  display: flex;
  gap: 80px;
}

.facts h2 {
  margin-bottom: 24px;
  color: var(--primary);
  font-size: 64px;
  font-weight: 300;
  line-height: 0.9;
}

.facts p {
  font-size: 14px;
  line-height: 24px;
  text-transform: uppercase;
}

.go-round {
  position: relative;
  display: grid;
  place-items: center;
  width: 175px;
  height: 175px;
  border: 1px solid #575757;
  border-radius: 50%;
  color: var(--text);
}

.round-text {
  width: 175px;
  height: 175px;
  animation: rotating 8s linear infinite;
}

.round-text text {
  fill: var(--muted);
  font-size: 13px;
  letter-spacing: 3px;
}

.go-round span {
  position: absolute;
  font-size: 36px;
}

.block {
  padding: 90px 0;
}

.block h2 {
  margin-bottom: 28px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.25;
}

.about-copy {
  max-width: 610px;
  line-height: 30px;
}

.timeline .item {
  position: relative;
  padding: 0 0 56px 74px;
}

.timeline .item::before {
  content: "";
  position: absolute;
  top: 7px;
  left: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #656565;
  transition: background 0.3s;
}

.timeline .item::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 1px;
  height: 100%;
  background: #333;
}

.timeline .item:hover::before {
  background: var(--primary);
}

.timeline .item:hover .date {
  color: var(--primary);
}

.date {
  display: block;
  margin-bottom: 22px;
  color: var(--muted);
  transition: color 0.3s;
}

.timeline h3 {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 24px;
  font-weight: 300;
}

.timeline p {
  font-size: 13px;
}

.service-item {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 10px;
  padding: 44px 48px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: inherit;
  transition: 0.3s;
}

.service-item:hover {
  border-color: var(--primary);
}

.service-item h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 24px;
  font-weight: 300;
}

.service-item span {
  color: var(--primary);
  font-size: 13px;
  text-transform: uppercase;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 8px;
}

.contact-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 26px 56px 26px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: inherit;
  transition: border-color 0.3s;
}

.contact-slot:hover {
  border-color: var(--primary);
}

.contact-slot p {
  margin: 0;
  color: var(--primary);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-slot strong {
  color: var(--text);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 300;
  word-break: break-word;
}

.contact-slot span {
  position: absolute;
  top: 50%;
  right: 24px;
  color: var(--primary);
  font-size: 20px;
  transform: translateY(-50%);
}

.project-card {
  display: block;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: inherit;
  transition: 0.3s;
}

.project-card:hover {
  border-color: var(--primary);
}

.project-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #141414;
}

.project-body {
  padding: 28px 32px 32px;
}

.project-body h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 24px;
  font-weight: 300;
}

.tags {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 13px;
}

.games-copy {
  margin-bottom: 28px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric-card {
  padding: 28px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.metric-card h3 {
  margin-bottom: 14px;
  color: var(--primary);
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 300;
  line-height: 0.9;
}

.metric-card p {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
}

.games-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.game-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: inherit;
  background: var(--bg);
  transition: 0.3s;
}

.game-card:hover {
  border-color: var(--primary);
}

.game-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 460 / 215;
  object-fit: cover;
  background: #141414;
}

.game-body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px 16px;
}

.game-body strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.game-body span {
  flex-shrink: 0;
  color: var(--primary);
  font-size: 12px;
}

@keyframes rotating {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .pinbar {
    right: 16px;
  }

  .shell {
    grid-template-columns: 1fr;
    padding: 92px 16px 120px;
    gap: 28px;
  }

  .left-sidebar {
    position: relative;
    top: auto;
    max-width: 420px;
    margin: 0 auto;
  }

  .drake-main {
    padding: 0;
  }

  .left-sidebar,
  .drake-main {
    grid-column: auto;
    grid-row: auto;
  }

  .dmenu {
    position: fixed;
    top: auto;
    right: auto;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 6px;
    padding: 12px 10px;
  }

  .dmenu a {
    width: 44px;
  }

  .dmenu span {
    display: none;
  }

  .games-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "badge"
      "title"
      "lede"
      "round"
      "facts";
  }
}
