/* =========================
   Färger och grundinställningar
   ========================= */
:root {
  --bg: #08090d;
  --panel: #11131a;
  --panel2: #171a23;
  --text: #f4f2ee;
  --muted: #a9a9b3;
  --line: #292c38;
  --accent: #b5ff4d;
  --accent2: #78d5ff;
  --max: 1180px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 8%, #15231d 0, transparent 29%), var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.65;
}
a {
  color: inherit;
}
.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  background: var(--accent);
  color: #071000;
  padding: 10px 14px;
  z-index: 99;
}
.skip-link:focus {
  top: 16px;
}

/* =========================
   Sidhuvud och navigation
   ========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 9, 13, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}
.logo span,
.kicker {
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}
.menu-button {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 9px 12px;
  border-radius: 8px;
}

/* =========================
   Startsida / hero
   ========================= */
.hero {
  min-height: 72vh;
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  align-items: center;
  gap: 80px;
  padding-block: 92px 70px;
}
.eyebrow,
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 750;
}
.eyebrow {
  color: var(--muted);
}
.eyebrow span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
  margin-right: 8px;
}
h1,
h2,
h3 {
  line-height: 1.08;
  margin-top: 0;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(3.4rem, 8vw, 7rem);
  max-width: 900px;
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  margin-bottom: 18px;
}
h3 {
  font-size: 1.35rem;
}
.lead,
.section-heading > p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 680px;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.button {
  display: inline-flex;
  text-decoration: none;
  padding: 13px 19px;
  border-radius: 10px;
  font-weight: 750;
  border: 1px solid var(--line);
  transition:
    0.2s transform,
    0.2s background;
}
.button:hover {
  transform: translateY(-2px);
}
.primary {
  background: var(--accent);
  color: #071000;
  border-color: var(--accent);
}
.secondary {
  background: rgba(255, 255, 255, 0.03);
}
.hero-card {
  background: linear-gradient(145deg, var(--panel2), #0d0f14);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.35);
  transform: rotate(2deg);
}
.code-label {
  color: var(--muted);
  font:
    12px ui-monospace,
    monospace;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
}
.hero-card pre {
  overflow: auto;
  margin: 25px 0 5px;
  color: #d9d9df;
  font-size: 0.92rem;
  line-height: 1.9;
}
.hero-card code span {
  color: var(--accent2);
}
.hero-card code b {
  color: var(--accent);
  font-weight: 500;
}

/* =========================
   Statistik och sektioner
   ========================= */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}
.stats div {
  padding: 26px 0;
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.stats strong {
  font-size: 1.8rem;
}
.stats span {
  color: var(--muted);
}
.section {
  padding-block: 110px;
}
.section-heading {
  margin-bottom: 44px;
}
.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filter {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 100px;
  cursor: pointer;
}
.filter.active,
.filter:hover {
  background: var(--text);
  color: var(--bg);
}

/* =========================
   Projektkort
   ========================= */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.project-card,
.skill-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  transition:
    0.25s transform,
    0.25s border-color;
}
.project-card[data-project] {
  position: relative;
  cursor: pointer;
}
.project-card:hover,
.skill-card:hover {
  transform: translateY(-4px);
  border-color: #454a5b;
}
.project-card[data-project]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-color: var(--accent);
}
.project-card.hidden {
  display: none;
}
.project-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.project-number {
  color: var(--muted);
  font:
    700 1rem ui-monospace,
    monospace;
  margin-bottom: 0;
}
.project-open-hint {
  color: var(--muted);
  font-size: 0.78rem;
  transition: color 0.2s ease;
}
.project-card:hover .project-open-hint,
.project-card:focus-visible .project-open-hint {
  color: var(--accent);
}
.project-cover {
  position: relative;
  height: 240px;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(circle at 80% 15%, rgba(120, 213, 255, 0.16), transparent 32%),
    var(--panel2);
}
.prototype-cover .cover-shot {
  position: absolute;
  width: 122px;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.42);
}
.prototype-cover .shot-one {
  left: 7%;
  top: 30px;
  transform: rotate(-5deg);
}
.prototype-cover .shot-two {
  left: 36%;
  top: 13px;
  z-index: 2;
}
.prototype-cover .shot-three {
  right: 5%;
  top: 38px;
  transform: rotate(5deg);
}
.culture-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04);
}
.culture-cover::after {
  content: "KulturGuiden";
  position: absolute;
  left: 16px;
  bottom: 15px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(8, 9, 13, 0.82);
  color: var(--text);
  font-weight: 750;
}
.foodsaver-cover {
  display: grid;
  place-items: center;
  background: #fff8eb;
}
.foodsaver-banner {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: 48%;
  object-fit: cover;
}
.foodsaver-mark {
  position: absolute;
  top: 20px;
  left: 24px;
  width: 106px;
  height: 106px;
  object-fit: cover;
  border: 6px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  box-shadow: 0 14px 28px rgba(24, 53, 42, 0.2);
}
.foodsaver-cover span {
  position: absolute;
  top: 54px;
  left: 146px;
  color: #18352a;
  font-size: clamp(1.6rem, 4vw, 2.45rem);
  font-weight: 850;
  letter-spacing: -0.04em;
}
.runmysteriet-cover {
  background: #020304;
}
.runmysteriet-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}
.runmysteriet-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 3, 4, 0.88), rgba(2, 3, 4, 0.16) 72%);
}
.game-cover-copy {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 24px;
  display: grid;
  gap: 5px;
  transform: translateY(-50%);
}
.game-cover-copy span {
  color: #fff;
  font-size: clamp(1.45rem, 4vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 3px 0 #000;
}
.game-cover-copy small {
  color: #8fe7ff;
}
.game-cover-copy b {
  width: max-content;
  margin-top: 10px;
  padding: 7px 10px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.72rem;
}
.process-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
}
.process-cover span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
  font-size: 0.8rem;
}
.process-cover b {
  color: var(--accent2);
}
.security-cover b {
  color: var(--accent);
}
.tag {
  color: var(--accent);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.project-card > p:not(.tag) {
  color: var(--muted);
}
.project-card ul {
  padding-left: 18px;
  color: #cbcad0;
}
.add-card {
  border-style: dashed;
  background: transparent;
}

/* =========================
   Projektfönster
   ========================= */
body.modal-open {
  overflow: hidden;
}
.project-dialog {
  position: fixed;
  inset: 0;
  width: min(1120px, calc(100% - 32px));
  max-height: 92vh;
  margin: auto;
  padding: 0;
  overflow: auto;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.7);
}
.project-dialog:not([open]) {
  display: none;
}
.project-dialog::backdrop {
  background: rgba(3, 4, 7, 0.82);
  backdrop-filter: blur(8px);
}
.project-dialog-toolbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 19, 26, 0.94);
  backdrop-filter: blur(16px);
}
.project-dialog-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dialog-close {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.dialog-close:hover,
.dialog-close:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}
#project-dialog-content {
  padding: 34px;
}
.project-dialog-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 32px;
}
.project-dialog-title {
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
}
.project-dialog-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}
.project-dialog-description {
  color: #d4d3d8;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.project-tags span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
}
.project-note {
  margin: 0;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
}
.project-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 16px;
  align-items: start;
}
.gallery-stage {
  min-height: 570px;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 5%, rgba(120, 213, 255, 0.14), transparent 38%),
    #0b0d12;
}
.gallery-full-link {
  display: grid;
  justify-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: none;
}
.gallery-full-link:hover span,
.gallery-full-link:focus-visible span {
  color: var(--accent);
}
.gallery-stage img {
  width: min(100%, 420px);
  height: auto;
  max-width: 100%;
  max-height: 620px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.gallery-thumb {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel2);
  cursor: pointer;
}
.gallery-thumb img {
  display: block;
  width: 100%;
  height: auto;
}
.gallery-thumb.active,
.gallery-thumb:hover,
.gallery-thumb:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(181, 255, 77, 0.16);
}
.gallery-caption {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  color: var(--muted);
}
.project-demo-browser {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0b0d12;
}
.project-demo-toolbar {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}
.project-demo-toolbar-actions {
  display: flex;
  gap: 7px;
}
.project-demo-toolbar button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  padding: 6px 10px;
  cursor: pointer;
}
.project-demo-toolbar button:hover,
.project-demo-toolbar button:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}
.project-demo-frame {
  display: block;
  width: 100%;
  height: min(680px, 72vh);
  border: 0;
  background: #f4fbfc;
}
.project-demo-frame.game-demo-frame {
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  background: #000;
}
.game-control-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}
.game-control-strip p {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 9px 12px;
  background: #10131a;
  color: var(--muted);
  font-size: 0.72rem;
}
.game-control-strip strong {
  color: var(--text);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.game-control-strip span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.project-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.process-step {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel2);
}
.process-step span {
  color: var(--accent);
  font: 700 0.82rem ui-monospace, monospace;
}
.process-step h3 {
  margin-bottom: 8px;
}
.process-step p {
  margin-bottom: 0;
  color: var(--muted);
}
.course-project-link {
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
}
.course-project-link:hover,
.course-project-link:focus-visible {
  color: var(--text);
}

/* =========================
   Om mig och kompetenser
   ========================= */
.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
}
.about-copy {
  font-size: 1.15rem;
  color: #d4d3d8;
}
.about-copy p:first-child {
  margin-top: 0;
}
.text-link {
  display: inline-block;
  color: var(--accent);
  font-weight: 750;
  margin-top: 20px;
  text-decoration: none;
}
.about-copy small {
  display: block;
  color: var(--muted);
  margin-top: 10px;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.skill-card p {
  color: var(--muted);
  margin-bottom: 0;
}
.course-list {
  border-top: 1px solid var(--line);
}
.course-list div {
  display: grid;
  grid-template-columns: 160px 1fr;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.course-list span {
  color: var(--accent);
  font-weight: 750;
}
.course-list p {
  margin: 0;
  color: #d4d3d8;
}

/* =========================
   Kontakt och sidfot
   ========================= */
.contact {
  background: var(--panel);
}
.contact-inner {
  max-width: 850px;
  text-align: center;
}
.contact-inner .actions {
  justify-content: center;
}
.contact-inner > p:not(.kicker) {
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--line);
}
footer .container {
  display: flex;
  justify-content: space-between;
  padding-block: 28px;
  color: var(--muted);
}
footer p {
  margin: 0;
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* =========================
   Anpassning för surfplatta
   ========================= */
@media (max-width: 850px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .hero-card {
    transform: none;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .project-dialog-head,
  .project-gallery {
    grid-template-columns: 1fr;
  }
  .project-dialog-head {
    gap: 10px;
  }
  .gallery-stage {
    min-height: 480px;
  }
  .gallery-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .project-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    flex-direction: column;
    background: var(--panel2);
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
  }
  .nav-links.open {
    display: flex;
  }
  .menu-button {
    display: block;
  }
}

/* =========================
   Anpassning för mobil
   ========================= */
@media (max-width: 590px) {
  .container {
    width: min(100% - 28px, var(--max));
  }
  h1 {
    font-size: 3rem;
  }
  .section {
    padding-block: 78px;
  }
  .project-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .project-cover {
    height: 215px;
  }
  .prototype-cover .cover-shot {
    width: 108px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stats div {
    border-bottom: 1px solid var(--line);
  }
  .course-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .hero {
    padding-top: 62px;
  }
  .hero-card {
    padding: 20px;
  }
  .project-dialog {
    width: calc(100% - 12px);
    max-height: 96vh;
    border-radius: 14px;
  }
  .project-dialog-toolbar {
    padding: 12px 14px;
  }
  #project-dialog-content {
    padding: 22px 16px 26px;
  }
  .gallery-stage {
    min-height: 390px;
    padding: 14px;
  }
  .gallery-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .project-demo-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .project-demo-toolbar-actions {
    width: 100%;
  }
  .project-demo-toolbar-actions button {
    flex: 1;
  }
  .game-control-strip {
    grid-template-columns: 1fr;
  }
  .project-process {
    grid-template-columns: 1fr;
  }
  .process-step {
    min-height: 150px;
  }
}

/* Tar bort animationer om användaren har valt minskad rörelse. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* =========================
   Runmysteriet – nedladdningsfönster
   ========================= */
.project-dialog.download-dialog-mode {
  width: min(760px, calc(100% - 32px));
  max-height: min(900px, 94vh);
  overflow: hidden;
  border: 1px solid rgba(126, 166, 255, 0.48);
  border-radius: 30px;
  background:
    radial-gradient(circle at 16% 0%, rgba(84, 121, 214, 0.18), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(40, 106, 255, 0.11), transparent 35%),
    linear-gradient(145deg, rgba(18, 24, 40, 0.98), rgba(7, 11, 23, 0.99));
  box-shadow:
    0 45px 130px rgba(0, 0, 0, 0.78),
    0 0 55px rgba(70, 128, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.project-dialog.download-dialog-mode::backdrop {
  background:
    radial-gradient(circle at 14% 62%, rgba(28, 92, 211, 0.24), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(30, 94, 213, 0.18), transparent 30%),
    rgba(2, 6, 15, 0.92);
  backdrop-filter: blur(13px);
}
.download-dialog-mode .project-dialog-shell {
  min-height: 100%;
}
.download-dialog-mode .project-dialog-toolbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 8;
  justify-content: flex-end;
  padding: 22px 24px 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}
.download-dialog-mode .project-dialog-toolbar p {
  display: none;
}
.download-dialog-mode .dialog-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  color: transparent;
  font-size: 0;
  background: rgba(255, 255, 255, 0.025);
  pointer-events: auto;
}
.download-dialog-mode .dialog-close::after {
  content: "×";
  color: #eef4ff;
  font-size: 2.15rem;
  font-weight: 200;
  line-height: 1;
}
.download-dialog-mode .dialog-close:hover,
.download-dialog-mode .dialog-close:focus-visible {
  border-color: rgba(126, 166, 255, 0.72);
  background: rgba(98, 148, 255, 0.09);
  box-shadow: 0 0 0 4px rgba(92, 142, 255, 0.08);
}
.download-dialog-mode #project-dialog-content {
  padding: 0;
}
.runmysteriet-download {
  padding: 70px 70px 54px;
  text-align: center;
}
.download-game-icon {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  margin: 4px auto 25px;
  filter: drop-shadow(0 10px 22px rgba(61, 126, 255, 0.22));
}
.download-game-icon img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  image-rendering: pixelated;
}
.download-eyebrow {
  margin: 0 0 7px;
  color: #82b7ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.download-title {
  margin: 0;
  color: #f7f9ff;
  font-size: clamp(2.45rem, 7vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}
.download-lead {
  max-width: 540px;
  margin: 24px auto 0;
  color: #b8c1d5;
  font-size: 1.08rem;
  line-height: 1.7;
}
.download-description {
  max-width: 610px;
  margin: 12px auto 0;
  color: #8994aa;
  font-size: 0.88rem;
  line-height: 1.65;
}
.download-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 22px auto 0;
}
.download-tags span {
  padding: 5px 9px;
  border: 1px solid rgba(129, 155, 212, 0.18);
  border-radius: 999px;
  color: #8e9bb5;
  background: rgba(255, 255, 255, 0.018);
  font-size: 0.7rem;
}
.download-divider {
  width: min(100%, 490px);
  height: 1px;
  margin: 34px auto 30px;
  background: linear-gradient(90deg, transparent, rgba(132, 158, 213, 0.35), transparent);
}
.download-platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.download-platform-card {
  min-height: 108px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 18px 21px;
  border: 1px solid rgba(129, 155, 212, 0.26);
  border-radius: 18px;
  color: #f2f6ff;
  background: linear-gradient(145deg, rgba(25, 31, 50, 0.72), rgba(10, 15, 29, 0.72));
  text-align: left;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.download-platform-card:hover,
.download-platform-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(113, 167, 255, 0.76);
  background: linear-gradient(145deg, rgba(31, 42, 68, 0.85), rgba(10, 18, 35, 0.84));
  box-shadow: 0 15px 34px rgba(4, 8, 20, 0.4), 0 0 0 3px rgba(73, 128, 255, 0.07);
  outline: none;
}
.download-platform-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #f9fbff;
}
.download-platform-svg {
  width: 34px;
  height: 34px;
  display: block;
}
.windows-svg {
  width: 31px;
  height: 31px;
}
.download-platform-copy {
  display: grid;
  gap: 3px;
}
.download-platform-copy strong {
  color: #f8faff;
  font-size: 1.1rem;
  font-weight: 700;
}
.download-platform-copy small {
  color: #8491aa;
  font-size: 0.72rem;
}
.download-arrow {
  color: #69a9ff;
  font-size: 2rem;
  font-weight: 300;
  transition: transform 180ms ease;
}
.download-platform-card:hover .download-arrow,
.download-platform-card:focus-visible .download-arrow {
  transform: translateX(4px);
}
.download-footnote {
  margin: 22px 0 0;
  color: #65718a;
  font-size: 0.7rem;
}

@media (max-width: 720px) {
  .project-dialog.download-dialog-mode {
    width: min(94vw, 560px);
    border-radius: 24px;
  }
  .runmysteriet-download {
    padding: 66px 24px 34px;
  }
  .download-game-icon {
    width: 88px;
    height: 88px;
    margin-bottom: 20px;
  }
  .download-game-icon img {
    width: 78px;
    height: 78px;
  }
  .download-description,
  .download-tags {
    display: none;
  }
  .download-divider {
    margin-top: 28px;
  }
  .download-platforms {
    grid-template-columns: 1fr;
  }
  .download-platform-card {
    min-height: 88px;
  }
}
