:root {
  color-scheme: dark;
  --bg: #070a12;
  --card: rgba(10, 14, 25, 0.72);
  --cardBorder: rgba(255, 255, 255, 0.14);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.72);
  --btn: rgba(255, 255, 255, 0.12);
  --btnHover: rgba(255, 255, 255, 0.18);
  --shadow: rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.topbar {
  position: fixed;
  z-index: 3;
  top: 0;
  left: 0;
  right: auto;
  width: min(720px, calc(100vw - 360px));
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent);
  pointer-events: none;
}

.topbar__brand {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.02em;
  pointer-events: auto;
}

.topbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar__btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  pointer-events: auto;
}

.topbar__btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.topbar__link {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 13px;
  pointer-events: auto;
}

.topbar__link:hover {
  text-decoration: underline;
}

.sand {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(1200px 700px at 70% 20%, #131a31, transparent 55%),
    radial-gradient(900px 600px at 20% 70%, #0f2a2d, transparent 60%),
    linear-gradient(180deg, #050710, #070a12 55%, #050710);
}

.sand__frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.sand__vignette {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(
    900px 600px at 50% 40%,
    rgba(0, 0, 0, 0.05),
    rgba(0, 0, 0, 0.15)
  );
}

.card,
.content,
.footer,
.topbar {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.topbar,
.shell,
.card,
.content {
  display: none !important;
}

body:not(.play) .topbar {
  display: flex !important;
}

body:not(.play) .shell {
  display: flex !important;
}

body:not(.play) .card {
  display: block !important;
}

body:not(.play) .content {
  display: grid !important;
}

.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.name {
  margin: 10px 0 8px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
}

.tagline {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--btn);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: background 140ms ease, transform 140ms ease;
}

.btn:hover {
  background: var(--btnHover);
  transform: translateY(-1px);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.hint {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.5;
}

.content {
  width: min(980px, 100%);
  display: grid;
  gap: 14px;
  padding-bottom: 40px;
}

.panel {
  background: rgba(15, 22, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.panel:hover {
  background: rgba(20, 28, 42, 0.92);
  transform: translateY(-2px);
}

.panel__header {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.panel__title {
  margin: 6px 0 2px;
  font-size: 22px;
}

.panel__lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.footer {
  position: fixed;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px;
  display: flex;
  justify-content: center;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8));
  pointer-events: none;
}

.footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 13px;
  pointer-events: auto;
}

.footer a:hover {
  text-decoration: underline;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.project-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.project-card:hover img {
  opacity: 1;
}

.project-title {
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.8));
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
