*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --border: #222;
  --text: #e0e0e0;
  --muted: #555;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  gap: 4rem;
  overflow-x: hidden;
}

/* --- Header --- */

header {
  text-align: center;
}

h1 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--text);
}

header p {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* --- Screenshots --- */

.screenshots-wrapper {
  width: 100%;
  overflow: hidden;
}

.screenshots {
  display: flex;
  gap: 1.5rem;
  flex-wrap: nowrap;
  transition: margin-left 0.3s ease;
  visibility: hidden;
}

.screenshots.ready {
  visibility: visible;
}

.screenshot {
  display: flex;
  border-radius: min(12px, calc(var(--thumb-w, 180px) * 0.07));
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  touch-action: manipulation;
}

.thumb {
  position: relative;
  overflow: hidden;
  width: var(--thumb-w, 180px);
  flex-shrink: 0;
  border-radius: min(12px, calc(var(--thumb-w, 180px) * 0.07));
  transition: border-radius 0.3s ease;
}

.screenshot.active .thumb {
  border-radius: min(12px, calc(var(--thumb-w, 180px) * 0.07)) 0 0 min(12px, calc(var(--thumb-w, 180px) * 0.07));
}

.thumb img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}


/* --- Info panel --- */

.info {
  width: 0;
  overflow: hidden;
  flex-shrink: 0;
  transition: width 0.3s ease;
  background: var(--surface);
  border-radius: 0 min(12px, calc(var(--thumb-w, 180px) * 0.07)) min(12px, calc(var(--thumb-w, 180px) * 0.07)) 0;
  border-left: none;
}

.info-inner {
  width: var(--thumb-w, 180px);
  padding: calc(var(--thumb-w, 180px) * 0.11);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.screenshot.active .info {
  width: var(--thumb-w, 180px);
  border-left: 1px solid var(--border);
}

.screenshot.active .info-inner {
  opacity: 1;
}

/* --- Info left variant --- */

.screenshot.info-left {
  overflow: visible;
}

.screenshot.info-left .info {
  border-radius: min(12px, calc(var(--thumb-w, 180px) * 0.07)) 0 0 min(12px, calc(var(--thumb-w, 180px) * 0.07));
  border-left: none;
  border-right: none;
}

.screenshot.info-left.active .thumb {
  border-radius: 0 min(12px, calc(var(--thumb-w, 180px) * 0.07)) min(12px, calc(var(--thumb-w, 180px) * 0.07)) 0;
}

.screenshot.info-left.active .info {
  border-right: 1px solid var(--border);
  border-left: none;
}

/* --- Info text --- */

.info h3 {
  font-size: calc(var(--thumb-w, 180px) * 0.09);
  font-weight: 600;
  color: #fff;
  padding-bottom: calc(var(--thumb-w, 180px) * 0.04);
  margin-bottom: calc(var(--thumb-w, 180px) * 0.04);
  border-bottom: 0.5px solid #333;
}

.info .desc {
  font-size: calc(var(--thumb-w, 180px) * 0.075);
  color: var(--text);
  margin-bottom: calc(var(--thumb-w, 180px) * 0.055);
}

.info .release {
  font-size: calc(var(--thumb-w, 180px) * 0.065);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* --- Contact --- */

.contact {
  display: flex;
  gap: 2rem;
}

.contact a {
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.contact a:hover {
  color: var(--text);
}

/* --- Footer --- */

footer {
  margin-top: auto;
}

footer p {
  font-size: 0.6875rem;
  color: var(--muted);
}

/* --- Mobile --- */

@media (max-width: 640px) {
  .screenshots {
    gap: 0.75rem;
  }

  .contact {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
}
