body {
  margin: 0;
  padding: 0;
  text-align: center;
  font-family: "SF UI Text_", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  font-size: 14px;
  color: #000;
  background-color: #1e1f24;
  overflow: hidden;
}
:root {
  --glass-bg: rgba(34, 36, 48, 0.18);
  --glass-border-top: rgba(255, 255, 255, 0.22);
  --glass-border-bottom: rgba(255, 255, 255, 0.06);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
a:link,
a:visited {
  color: #ffa500;
  text-decoration: underline;
}

.meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.meta .socials {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.meta .socials a {
  display: inline-flex;
  text-decoration: none;
}

.meta .socials img {
  height: 1.5em;
  display: block;
}

.credit {
  display: inline-block;
  padding-top: 1em;
  font-size: 0.85em;
}

.credit a {
  text-decoration: none;
}
h2 {
  margin: 1em 0.3em 0;
  padding: 1em;
  font-size: 1.55em;
}

p {
  margin: 0;
  padding: 1em;
}
.cover {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}
.tv {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.tv .screen {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  margin: auto;
  opacity: 0;
  transition: opacity 0.5s;
}
.tv .screen.active {
  opacity: 1;
}
input#un-mute {
  display: none;
}

.cover .unmute,
.cover .mute {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover .unmute::after,
.cover .mute::after {
  content: "";
  position: absolute;
  inset: -25%;
}

.cover .unmute {
  display: none;
}

.cover .unmute img,
.cover .mute img {
  width: 32px;
  height: 32px;
}

input#un-mute:checked ~ .unmute {
  display: flex;
}

input#un-mute:checked ~ .mute {
  display: none;
}

.glass-button {
  padding: 0;
  height: 30px;
  width: 30px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  border-radius: 8px;
  position: absolute;
  top: 10px;
  right: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  backdrop-filter: blur(8px) saturate(140%);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.glass-button::after {
  content: "";
  position: absolute;
  inset: -25%;
}

.glass-button:before {
  content: "";
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(
      var(--glass-border-top),
      var(--glass-border-bottom)
    )
    border-box;
  border: 1px solid transparent;
  -webkit-mask: linear-gradient(#000, #000) padding-box,
    linear-gradient(#000, #000) border-box;
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000, #000) padding-box,
    linear-gradient(#000, #000) border-box;
  mask-composite: exclude;
  transition: opacity 200ms ease;
  opacity: 0;
}

.glass-button:hover:before {
  opacity: 1;
}

.glass-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

.glass-button:active {
  transform: translateY(0);
}

body .container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  perspective: 800px;
  display: inline-block;
}

.card {
  position: relative;
  display: grid;
  max-width: 92vw;
  border-radius: 14px;
  transition: transform 1s;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
}

.card div {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 200px;
  padding: 1.2em 2em 1em;
  color: white;
  position: relative;
  opacity: 1;
  backface-visibility: hidden;
  border-radius: 14px;
  grid-area: 1 / 1;
  background: var(--glass-bg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(4px) saturate(140%);
  backdrop-filter: blur(4px) saturate(140%);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.card div::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(
      var(--glass-border-top),
      var(--glass-border-bottom)
    )
    border-box;
  -webkit-mask: linear-gradient(#000, #000) padding-box,
    linear-gradient(#000, #000) border-box;
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000, #000) padding-box,
    linear-gradient(#000, #000) border-box;
  mask-composite: exclude;
  pointer-events: none;
}

.card h2 {
  margin: 0;
  padding: 0;
  justify-self: center;
  align-self: center;
  white-space: nowrap;
}

.card p {
  margin: 0;
  padding: 0;
  justify-self: stretch;
  align-self: end;
}

.card .front {
  background-color: transparent;
}

.card .back {
  background-color: transparent;
  transform: rotateX(180deg);
}

.card.flipped {
  transform: rotateX(180deg);
}

@media (max-width: 520px) {
  .card div {
    min-height: 170px;
    padding: 1em 1.4em 0.8em;
  }

  .card h2 {
    font-size: 1.25em;
  }

  .meta {
    font-size: 0.95em;
    flex-wrap: wrap;
    justify-content: center;
  }

  .meta .socials img {
    height: 1.3em;
  }

  .credit {
    font-size: 0.8em;
    padding-top: 0.8em;
  }

  .cover .unmute,
  .cover .mute {
    width: 48px;
    height: 48px;
  }

  .cover .unmute img,
  .cover .mute img {
    width: 26px;
    height: 26px;
  }

  body .container {
    padding: 0;
  }
}

@media (max-height: 700px) {
  .card div {
    min-height: 160px;
    padding: 0.9em 1.2em 0.7em;
  }
}
