:root {
  color-scheme: dark;
  font: 100%/1.45 system-ui, sans-serif;
  background: #101b20;
  color: #eef4f2;
}

* { box-sizing: border-box; }
body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
}

a { color: #c4f1d8; }
button, select { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid #d6ffe8; outline-offset: 3px; }
.profile-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .45rem 1rem;
  padding: clamp(.45rem, 1.6vw, 1.2rem) clamp(.75rem, 3vw, 2.5rem);
}
.profile-bar nav { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.profile-panel {
  position: absolute;
  inset: 100% .75rem auto auto;
  display: grid;
  gap: .6rem;
  width: min(22rem, calc(100vw - 1.5rem));
  max-height: 74dvh;
  overflow: auto;
  padding: 1rem;
  border: 1px solid #54766e;
  border-radius: .9rem;
  background: #19302e;
}
.profile-panel p { margin: 0; }
.profile-tools:not([open]) .profile-panel { display: none; }
.profile-viewport {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  padding: clamp(.4rem, 2vw, 1.6rem);
  container-type: size;
}
.profile-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  width: min(100%, 177.78cqh);
  aspect-ratio: 16 / 9;
  container-type: inline-size;
  border: 1px solid #ffffff44;
  border-radius: clamp(.55rem, 2vw, 1.75rem);
  background: radial-gradient(ellipse at 75% 22%, #815543, transparent 53%), linear-gradient(145deg, #251c20, #4c3329);
  box-shadow: 0 1rem 2.5rem #0005;
}
.profile-stage[data-theme="foret"] {
  background: radial-gradient(ellipse at 72% 25%, #516c50, transparent 55%), linear-gradient(145deg, #172b23, #315344);
}
.profile-stage[data-theme="nuit"] {
  background: radial-gradient(ellipse at 74% 29%, #415a9a, transparent 52%), linear-gradient(145deg, #191c37, #23334d);
}
.profile-intro { padding-inline: 8%; max-width: 70%; }
.profile-intro h1 { margin: .2em 0; font-size: clamp(1.15rem, 6cqw, 5rem); line-height: 1; }
.profile-intro p { margin: 0; font-size: clamp(.75rem, 2.1cqw, 1.3rem); color: #fff3e7; }
.profile-avatar {
  display: grid;
  place-items: center;
  width: 1.9em;
  aspect-ratio: 1;
  border: 1px solid #ffebc787;
  border-radius: 50%;
  background: #fff2d526;
  font-size: clamp(.95rem, 3.8cqw, 3rem);
}
.profile-decoration {
  position: absolute;
  left: var(--decoration-x, 78%);
  top: var(--decoration-y, 45%);
  transform: translate(-50%, -50%);
  border: 0;
  background: none;
  color: #ffe3a3;
  font: 400 clamp(1.35rem, 10cqw, 9rem)/1 Georgia, serif;
  padding: .08em;
  touch-action: none;
  user-select: none;
  cursor: grab;
}
