/* The Persona look: the studio's pages and Demon Queen's. Ink and violet, gold for what to press, slanted plates for
   the titles (each plate's slant is drawn by its ::before, so its letters stay upright), and diagonal stripes behind. */

.persona {
  --ink: #0e0816;
  --ink-2: #1a0b2e;
  --violet: #9a5cff;
  --violet-deep: #4b2387;
  --gold: #ffd98a;
  --ivory: #fff6ee;
  --red: #e01b24;
  --pink: #ff4a7a;
  --amber: #ffb34a;
  --cyan: #4fc3ff;
  --mint: #5fd08a;
  --muted: #bcaed6;
  --accent: var(--violet);
}

body.persona {
  background: var(--ink);
  color: var(--ivory);
}

body.persona::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(-62deg, transparent 0 160px, rgb(154 92 255 / 0.045) 160px 230px, transparent 230px 420px),
    radial-gradient(ellipse at 15% 0%, rgb(84 36 160 / 0.55) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgb(110 12 50 / 0.45) 0%, transparent 50%),
    linear-gradient(160deg, #1a0b2e, #0b0614 60%);
}

/* ---- the slanted pieces ---- */

.plate,
.ribbon,
.chip,
.btn,
.kicker {
  position: relative;
  isolation: isolate;
  display: inline-block;
}

.plate::before,
.ribbon::before,
.chip::before,
.btn::before,
.kicker::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: skewX(-14deg);
}

.plate {
  padding: 0.06em 0.55em 0.02em;
  font-family: var(--display);
  font-weight: var(--display-weight);
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ivory);
}

.plate::before {
  background: var(--ink);
  box-shadow:
    0 0 0 0.075em var(--accent),
    0.13em 0.13em 0 0.075em rgb(0 0 0 / 0.6);
}

.kicker {
  padding: 2px 14px;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.kicker::before {
  background: var(--accent);
}

.ribbon {
  padding: 6px 26px;
  font-style: italic;
  font-weight: 800;
  color: var(--ink);
}

.ribbon::before {
  background: var(--ivory);
}

.chip {
  padding: 3px 16px;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.chip::before {
  background: var(--accent);
}

.chip.light::before {
  background: var(--ivory);
}

.chip.red {
  color: var(--ivory);
}

.chip.red::before {
  background: var(--red);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 30px;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 22px;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--ink);
  transition: translate 0.12s ease;
}

.btn::before {
  background: var(--gold);
  box-shadow: 6px 6px 0 rgb(0 0 0 / 0.55);
}

.btn:hover {
  translate: 0 -3px;
}

.btn:active {
  translate: 0 2px;
}

.btn.violet {
  color: var(--ivory);
}

.btn.violet::before {
  background: var(--violet);
}

.btn.ghost {
  color: var(--ivory);
}

.btn.ghost::before {
  background: rgb(14 8 22 / 0.4);
  border: 3px solid var(--ivory);
  box-shadow: none;
}

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
}

/* The «NEW!» burst. */
.new {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 92px;
  aspect-ratio: 1;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 21px;
  color: var(--ink);
  background: var(--gold);
  clip-path: polygon(50% 0%, 60.1% 12.3%, 75% 6.7%, 77.6% 22.4%, 93.3% 25%, 87.7% 39.9%, 100% 50%, 87.7% 60.1%, 93.3% 75%, 77.6% 77.6%, 75% 93.3%, 60.1% 87.7%, 50% 100%, 39.9% 87.7%, 25% 93.3%, 22.4% 77.6%, 6.7% 75%, 12.3% 60.1%, 0% 50%, 12.3% 39.9%, 6.7% 25%, 22.4% 22.4%, 25% 6.7%, 39.9% 12.3%);
  rotate: 12deg;
  filter: drop-shadow(4px 5px 0 rgb(0 0 0 / 0.6));
}

/* ---- the top bar ---- */

.persona .top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(10 5 18 / 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--violet);
}

.top .wrap {
  display: flex;
  align-items: center;
  gap: 14px 18px;
  min-height: 66px;
  flex-wrap: wrap;
  padding-block: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 25px;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-inline-start: auto;
}

.persona .nav a {
  position: relative;
  isolation: isolate;
  padding: 5px 16px;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 18px;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

.persona .nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: skewX(-14deg);
  border: 2px solid rgb(255 246 238 / 0.22);
  transition: background 0.15s, border-color 0.15s;
}

.persona .nav a:hover::before,
.persona .nav a[aria-current="page"]::before {
  background: var(--violet);
  border-color: var(--violet);
}

.persona .nav a.cta {
  color: var(--ink);
}

.persona .nav a.cta::before {
  background: var(--gold);
  border-color: var(--gold);
}

.persona .lang-now {
  padding: 5px 14px;
  border: 2px solid rgb(255 246 238 / 0.3);
  background: transparent;
  color: var(--ivory);
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transform: skewX(-14deg);
  transition: border-color 0.15s, background 0.15s;
}

.persona .lang-now > * {
  transform: skewX(14deg);
}

.persona .lang-now:hover,
.persona .lang-now[aria-expanded="true"] {
  border-color: var(--violet);
  background: rgb(154 92 255 / 0.25);
}

.persona .lang-list {
  background: var(--ink);
  border: 3px solid var(--violet);
  box-shadow: 8px 8px 0 rgb(0 0 0 / 0.6);
}

.persona .lang-list button {
  font-weight: 700;
  color: var(--ivory);
}

.persona .lang-list button:hover,
.persona .lang-list button:focus-visible {
  background: var(--violet);
  outline: none;
}

.persona .lang-list button[aria-current="true"] {
  background: var(--ivory);
  color: var(--ink);
}

/* ---- the hero ---- */

.persona .hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(90vh, 920px);
  overflow: hidden;
  isolation: isolate;
}

.persona .hero > video,
.persona .hero > .hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.persona .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(10 4 20 / 0.93) 0%, rgb(10 4 20 / 0.6) 42%, rgb(10 4 20 / 0.08) 78%),
    linear-gradient(0deg, var(--ink) 0%, transparent 38%);
}

.hero-content {
  display: grid;
  gap: 22px;
  justify-items: start;
  max-width: 780px;
  padding: 130px 0 90px;
}

.hero-content .plate {
  font-size: clamp(54px, 10vw, 140px);
}

.hero-content .ribbon {
  font-size: clamp(16px, 2vw, 21px);
}

.hero-content .lead {
  max-width: 640px;
  font-size: clamp(17px, 1.8vw, 20px);
  color: #efe6fb;
}

.age-badge {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 4px solid var(--red);
  border-radius: 50%;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 21px;
  color: var(--ivory);
  background: rgb(14 8 22 / 0.6);
}

/* ---- sections ---- */

.persona .section {
  position: relative;
  padding: 96px 0;
}

.section-head {
  display: grid;
  gap: 16px;
  justify-items: start;
  margin-bottom: 40px;
}

.section-head .plate {
  font-size: clamp(38px, 6vw, 74px);
}

.persona .lead {
  max-width: 780px;
  font-size: 19px;
  color: #e9def5;
}

/* The games, on the studio's page. */
.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 40px;
  align-items: start;
}

.project-dq {
  position: relative;
  display: grid;
  gap: 20px;
}

.project-dq .shot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
}

.project-dq .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.5s ease;
}

.project-dq:hover .shot img {
  scale: 1.05;
}

.project-dq .frame {
  position: relative;
}

.project-dq .frame::before {
  content: "";
  position: absolute;
  inset: 0;
  translate: 14px 14px;
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
  background: var(--violet);
}

.project-dq .title {
  margin-top: -64px;
  margin-inline-start: 28px;
  position: relative;
  z-index: 2;
}

.project-dq .title .plate {
  font-size: clamp(40px, 5vw, 66px);
}

.project-dq p {
  color: #e9def5;
}

/* The places of the game: slanted cards, each with its own colour. */
.zones {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 44px 30px;
}

.zone {
  position: relative;
  display: grid;
  gap: 8px;
}

.zone .frame {
  position: relative;
}

.zone .frame::before {
  content: "";
  position: absolute;
  inset: 0;
  translate: 11px 11px;
  clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
  background: var(--accent);
}

.zone .shot {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
  background: #000;
}

.zone .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.45s ease;
}

.zone:hover .shot img {
  scale: 1.06;
}

.zone .name {
  position: relative;
  z-index: 2;
  margin-block-start: -30px;
  margin-inline-start: 16px;
  display: grid;
  gap: 8px;
  justify-items: start;
}

.zone .name .plate {
  font-size: 34px;
}

.zone .name .kicker {
  font-size: 14px;
}

.zone p {
  padding-inline-start: 22px;
  color: #ddd0ee;
}

.zone .new {
  top: -26px;
  right: 2%;
}

/* What the update brings. */
.news {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
}

.news li {
  position: relative;
  list-style: none;
  padding: 18px 22px 20px 26px;
  background: rgb(255 246 238 / 0.06);
  border-inline-start: 6px solid var(--gold);
}

.news b {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 23px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--gold);
}

/* The mine's rooms, in a row. */
.strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.strip figure {
  margin: 0;
  display: grid;
  gap: 8px;
}

.strip img {
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

.strip figcaption {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 17px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  color: var(--amber);
}

/* The screenshots. */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.persona .gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 2px solid rgb(255 246 238 / 0.14);
  transition: translate 0.2s ease, border-color 0.2s ease;
}

.persona .gallery img:hover {
  translate: 0 -3px;
  border-color: var(--violet);
}

/* The welcome video. */
.video-frame {
  position: relative;
  padding: 12px;
  background: var(--violet);
  clip-path: polygon(2.5% 0, 100% 0, 97.5% 100%, 0 100%);
}

.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

/* The band that asks for support. */
.support {
  position: relative;
  padding: 130px 0 120px;
  background: linear-gradient(100deg, #4b2387, #2a0f4f 55%, #4a0a26);
  clip-path: polygon(0 7%, 100% 0, 100% 93%, 0 100%);
}

.support .wrap {
  display: grid;
  gap: 24px;
  justify-items: start;
}

.support .plate {
  --accent: var(--gold);
  font-size: clamp(38px, 6vw, 80px);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.split .shot {
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
}

/* The age gate and the footer. */
.persona .gate {
  background:
    linear-gradient(rgb(8 4 14 / 0.86), rgb(8 4 14 / 0.94)),
    url("../img/dq-trono-sm.webp") center / cover;
}

.persona .gate-box {
  display: grid;
  gap: 22px;
  justify-items: center;
}

.persona .gate-box .plate {
  font-size: clamp(44px, 8vw, 84px);
}

.persona .gate-box p {
  font-size: 18px;
  color: #efe6fb;
}

.persona .gate-box .btns {
  justify-content: center;
}

.persona .foot {
  padding: 54px 0 44px;
  border-top: 3px solid var(--violet);
  background: #07030d;
  color: var(--muted);
  font-size: 15px;
}

.foot .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

.foot .links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: flex-end;
}

.foot a {
  text-decoration: none;
}

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

@media (max-width: 900px) {
  .projects,
  .split {
    grid-template-columns: 1fr;
  }

  .strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .foot .wrap {
    grid-template-columns: 1fr;
  }

  .foot .links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .zones {
    grid-template-columns: 1fr;
  }

  .strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .persona .nav a {
    font-size: 16px;
    padding: 4px 12px;
  }

  .hero-content {
    padding: 110px 0 70px;
  }
}

/* The characters: tall slanted portraits on ivory, each with her colour behind. */
.chars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 26px;
}

.char {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
}

.char .frame {
  position: relative;
}

.char .frame::before {
  content: "";
  position: absolute;
  inset: 0;
  translate: 10px 10px;
  clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%);
  background: var(--accent);
}

.char .portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%);
  background: var(--ivory);
}

.char .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.45s ease;
}

.char:hover .portrait img {
  scale: 1.05;
}

.char .name {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 6px;
  justify-items: start;
  margin-block-start: -36px;
  margin-inline-start: 10px;
}

.char .name .plate {
  font-size: 34px;
}

.char .name .kicker {
  font-size: 13px;
}

.char p {
  padding-inline-start: 8px;
  font-size: 16px;
  color: #ddd0ee;
}

@media (max-width: 1000px) {
  .chars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .chars {
    gap: 30px 14px;
  }

  .char .name .plate {
    font-size: 24px;
  }
}

/* The page that is not there. */
.lost {
  display: grid;
  place-items: center;
  min-height: 70vh;
  text-align: center;
}

.lost .wrap {
  display: grid;
  gap: 22px;
  justify-items: center;
}

.lost .plate {
  font-size: clamp(60px, 14vw, 170px);
}

/* The support band: the copy on one side, the crypto wallet on the other. */
.support-grid {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px 56px !important;
}

.support-copy {
  display: grid;
  gap: 24px;
  justify-items: start;
}

.donate {
  --accent: #14f195;
  position: relative;
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 26px 30px 24px;
  background: rgb(10 4 20 / 0.62);
  border: 3px solid var(--accent);
  box-shadow: 10px 10px 0 rgb(0 0 0 / 0.45);
}

.donate .plate {
  --accent: #9945ff;
  font-size: 40px;
}

.donate p {
  color: #efe6fb;
}

.donate-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}

.donate .qr {
  width: 132px;
  height: 132px;
  padding: 6px;
  background: #fff;
}

.donate .wallet code {
  display: block;
  padding: 8px 12px;
  background: rgb(255 246 238 / 0.08);
  border-inline-start: 4px solid var(--accent);
  color: var(--ivory);
}

.donate .btn.copy {
  padding: 8px 22px;
  font-size: 18px;
  border: 0;
  background: none;
  cursor: pointer;
}

.donate .btn.copy::before {
  background: var(--accent);
}

.donate small {
  color: var(--muted);
  font-size: 14px;
}

button.btn {
  border: 0;
  background: none;
  cursor: pointer;
}

@media (max-width: 900px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .donate {
    padding: 22px 18px;
  }

  .donate-body {
    grid-template-columns: 1fr;
  }
}

/* Right to left, the hero's shade sits behind the text, on the right. */
[dir="rtl"] .persona .hero::after,
.persona[dir="rtl"] .hero::after,
html[dir="rtl"] .persona .hero::after {
  background:
    linear-gradient(270deg, rgb(10 4 20 / 0.93) 0%, rgb(10 4 20 / 0.6) 42%, rgb(10 4 20 / 0.08) 78%),
    linear-gradient(0deg, var(--ink) 0%, transparent 38%);
}

/* Keyboard focus follows each piece's slant (the browser's own ring is a straight box around it). */
.btn:focus-visible,
.persona .nav a:focus-visible,
.persona .lang-now:focus-visible,
.persona .lang-list button:focus-visible {
  outline: none;
}

.btn:focus-visible::before,
.persona .nav a:focus-visible::before {
  outline: 3px solid var(--ivory);
  outline-offset: 4px;
}

.persona .lang-now:focus-visible {
  border-color: var(--ivory);
}

/* The numbers under the studio's hero, on slanted plates. */
.stats {
  position: relative;
  z-index: 2;
  margin-top: -46px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 28px;
}

.stat {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 4px;
  padding: 16px 28px 18px;
}

.stat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: skewX(-14deg);
  background: var(--ink);
  border: 3px solid var(--violet);
  box-shadow: 8px 8px 0 rgb(0 0 0 / 0.5);
}

.stat b {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 58px;
  line-height: 0.95;
  color: var(--gold);
}

.stat span {
  font-weight: 800;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #e9def5;
}

/* The girls of both games on the studio's page: each card leads to her game, with its name in a chip. */
.home-chars .char {
  color: inherit;
  text-decoration: none;
}

.home-chars .char .game {
  position: absolute;
  top: 12px;
  inset-inline-end: 7%;
  z-index: 3;
  padding: 2px 12px;
  font-size: 13px;
}

.home-chars .char .name .plate {
  font-size: 30px;
}

/* The latest news. */
.news-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  padding-bottom: 20px;
  background: rgb(255 246 238 / 0.05);
  border-top: 5px solid var(--accent);
}

.news-card .shot {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.news-card .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.4s ease;
}

.news-card:hover .shot img {
  scale: 1.05;
}

.news-card .body {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 0 22px;
}

.news-card time {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.news-card h3 {
  font-family: var(--display);
  font-weight: var(--display-weight);
  font-size: 26px;
  line-height: 1.1;
  text-transform: uppercase;
}

.news-card p {
  font-size: 16px;
  color: #ddd0ee;
}

.news-card .more {
  font-weight: 800;
  color: var(--gold);
  text-decoration: none;
}

.news-card .more:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .stat {
    padding: 12px 18px 14px;
  }

  .stat b {
    font-size: 44px;
  }

  .stat span {
    font-size: 13px;
  }
}
