@font-face {
  font-family: "Jalnan2";
  src: url("../fonts/Jalnan2TTF.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --ink: #17252b;
  --muted: #5f6f78;
  --line: rgba(23, 37, 43, 0.12);
  --paper: #ffffff;
  --soft-blue: #dff5fb;
  --soft-green: #e6f8ed;
  --soft-yellow: #fff0b8;
  --soft-pink: #ffe4e8;
  --teal: #3f7c7f;
  --coral: #ef7e73;
  --gold: #f5b642;
  --navy: #19323c;
  --shadow: 0 18px 44px rgba(28, 54, 64, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Jalnan2", ui-rounded, "Arial Rounded MT Bold", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f9fdff 0%, #ffffff 52%, #f6fbf8 100%);
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--navy);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(63, 124, 127, 0.16);
}

.site-nav {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  gap: 1.4rem;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav [hidden],
.access-actions [hidden] {
  display: none !important;
}

.language-picker {
  position: relative;
  z-index: 30;
  flex: 0 0 auto;
}

.language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.38rem 0.72rem;
  border: 1px solid rgba(63, 124, 127, 0.22);
  border-radius: 8px;
  color: var(--navy);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 250, 249, 0.92));
  box-shadow: 0 10px 24px rgba(28, 54, 64, 0.1);
  cursor: pointer;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Noto Sans CJK JP", "Noto Sans CJK SC", "Apple SD Gothic Neo", sans-serif;
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1;
}

.language-button:hover,
.language-button[aria-expanded="true"] {
  border-color: rgba(63, 124, 127, 0.45);
  background: #ffffff;
}

.language-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--teal);
  font-size: 0.72rem;
}

.language-current-code {
  display: none;
}

.language-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.7;
}

.language-button[aria-expanded="true"] .language-chevron {
  transform: translateY(2px) rotate(225deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  display: grid;
  gap: 0.25rem;
  width: 178px;
  padding: 0.42rem;
  border: 1px solid rgba(23, 37, 43, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(28, 54, 64, 0.18);
}

.language-menu[hidden] {
  display: none;
}

.language-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 38px;
  padding: 0.45rem 0.58rem;
  border: 0;
  border-radius: 8px;
  color: var(--navy);
  background: transparent;
  cursor: pointer;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Noto Sans CJK JP", "Noto Sans CJK SC", "Apple SD Gothic Neo", sans-serif;
  font-size: 0.82rem;
  text-align: left;
}

.language-option:hover,
.language-option[aria-selected="true"] {
  background: rgba(223, 245, 251, 0.86);
}

.language-option span:last-child {
  color: var(--teal);
  font-size: 0.7rem;
}

.access-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Apple SD Gothic Neo", sans-serif;
}

.access-button,
.access-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.45rem 0.86rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.access-button {
  color: #ffffff;
  border: 1px solid var(--navy);
  background: var(--navy);
  box-shadow: 0 10px 24px rgba(25, 50, 60, 0.14);
}

.access-logout {
  color: var(--muted);
  border: 1px solid rgba(63, 124, 127, 0.16);
  background: rgba(255, 255, 255, 0.76);
}

.access-user {
  max-width: 180px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero {
  min-height: 58vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 6rem 5vw 3rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(249, 253, 255, 0.98) 0%, rgba(249, 253, 255, 0.88) 46%, rgba(249, 253, 255, 0.44) 100%),
    url("../images/hero-wallpaper.jpg");
  background-size: cover;
  background-position: center right;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 9vh;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff);
}

.hero-content {
  width: min(720px, 100%);
}

.eyebrow,
.section-kicker,
.project-status {
  margin: 0 0 1rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-status {
  margin-bottom: 1.35rem;
  line-height: 1.35;
}

.eyebrow {
  margin-bottom: 1.55rem;
}

.hero .eyebrow {
  max-width: 720px;
  color: var(--teal);
  font-size: clamp(1.04rem, 1.55vw, 1.34rem);
  line-height: 1.42;
  letter-spacing: 0.03em;
}

.section-kicker {
  margin-bottom: 1.25rem;
  max-width: 720px;
  font-size: clamp(1.04rem, 1.55vw, 1.34rem);
  line-height: 1.42;
  letter-spacing: 0.03em;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1,
h2,
h3,
p,
a,
.button {
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(4rem, 11vw, 8.8rem);
  line-height: 0.92;
  font-weight: 900;
}

.hero-copy {
  max-width: 640px;
  margin: 1.5rem 0 0;
  color: #31464f;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.58;
  font-weight: 650;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.82rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 850;
  line-height: 1.1;
}

.button.primary {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy);
}

.section-pad {
  padding: 5.5rem 5vw;
}

.section-heading {
  width: min(820px, 100%);
  margin-bottom: 2rem;
}

#intro-title {
  max-width: 100%;
}

html[lang="en"] #intro-title {
  white-space: nowrap;
}

.intro .section-heading {
  width: min(1080px, 100%);
}

#principles-title {
  white-space: pre-line;
}

@media (max-width: 1120px) {
  html[lang="en"] #intro-title {
    white-space: normal;
  }
}

h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.03;
}

.intro {
  background: #ffffff;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 1080px;
}

.intro-grid p,
.project-body p,
.principle-list p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.principle-list p {
  white-space: pre-line;
}

.projects {
  background:
    linear-gradient(90deg, rgba(223, 245, 251, 0.74), rgba(230, 248, 237, 0.72)),
    #f7fcfb;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.project-grid-featured {
  grid-template-columns: minmax(0, 1fr);
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.project-card-featured {
  display: grid;
  grid-template-columns: minmax(320px, 0.98fr) minmax(0, 1.02fr);
  align-items: stretch;
}

.project-image-link {
  display: block;
  min-width: 0;
  overflow: hidden;
}

.project-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.project-card-featured .project-image-link,
.project-card-featured .project-image {
  height: 100%;
  min-height: 430px;
}

.project-card-featured .project-image {
  aspect-ratio: auto;
  border-right: 1px solid var(--line);
  border-bottom: 0;
  transition: transform 180ms ease;
}

.project-image-link:hover .project-image,
.project-image-link:focus-visible .project-image {
  transform: scale(1.015);
}

.project-body {
  padding: 1.35rem;
}

.project-body-featured {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.4rem, 3vw, 2.6rem);
}

.project-body h3,
.principle-list h3 {
  margin: 0 0 0.6rem;
  color: var(--navy);
  font-size: 1.4rem;
}

.project-body-featured h3 {
  font-size: clamp(2.25rem, 5vw, 4.7rem);
  line-height: 0.96;
}

.project-body .project-credit {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 0.95rem;
  padding: 0.48rem 0.62rem;
  border: 1px solid rgba(63, 124, 127, 0.18);
  border-radius: 8px;
  color: var(--navy);
  background: rgba(223, 245, 251, 0.62);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Apple SD Gothic Neo", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.45;
  text-transform: none;
}

.project-body-featured > p:not(.project-status):not(.project-credit) {
  font-size: clamp(1.05rem, 1.45vw, 1.24rem);
  line-height: 1.75;
}

.project-feature-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.25rem 0;
}

.project-feature-list span {
  display: block;
  padding: 0.74rem 0.9rem;
  border: 1px solid rgba(63, 124, 127, 0.16);
  border-radius: 8px;
  color: var(--navy);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(246, 251, 248, 0.86));
  font-size: 0.96rem;
  line-height: 1.45;
}

.project-link {
  width: fit-content;
  margin-top: 0.2rem;
}

.principles {
  background: #ffffff;
}

.principle-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.principle-list article {
  min-height: 210px;
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f9fcfd);
}

.contact {
  background: linear-gradient(90deg, var(--soft-yellow), var(--soft-pink), var(--soft-blue));
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(1120px, 100%);
}

.contact-panel h2 {
  max-width: 720px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 5vw;
  border-top: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer div {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.site-footer strong {
  color: var(--navy);
}

@media (max-width: 820px) {
  .site-header {
    min-height: 64px;
    padding: 0 0.75rem;
    gap: 0.45rem;
  }

  .site-nav {
    gap: 0.45rem;
    font-size: 0.68rem;
  }

  .header-actions {
    gap: 0.42rem;
    min-width: 0;
  }

  .language-button {
    min-height: 36px;
    gap: 0.28rem;
    padding: 0.3rem 0.42rem;
    font-size: 0.72rem;
  }

  .language-mark {
    width: 24px;
    height: 24px;
    font-size: 0.62rem;
  }

  .language-current-full {
    display: none;
  }

  .language-current-code {
    display: inline;
  }

  .language-chevron {
    width: 7px;
    height: 7px;
  }

  .language-menu {
    width: 164px;
    right: -0.1rem;
  }

  .access-button,
  .access-logout {
    min-height: 36px;
    padding: 0.36rem 0.52rem;
    font-size: 0.72rem;
  }

  .access-user {
    display: none;
  }

  .brand-lockup span {
    display: none;
  }

  .hero {
    min-height: 62vh;
    padding: 5.5rem 1.1rem 3rem;
  }

  .hero-bg {
    background-image:
      linear-gradient(180deg, rgba(249, 253, 255, 0.97), rgba(249, 253, 255, 0.76)),
      url("../images/hero-wallpaper.jpg");
    background-position: center;
  }

  .hero-actions,
  .contact-panel,
  .site-footer,
  .site-footer div {
    align-items: stretch;
    flex-direction: column;
  }

  .section-pad {
    padding: 4rem 1.1rem;
  }

  #intro-title {
    white-space: normal;
  }

  .intro-grid,
  .project-grid,
  .principle-list {
    grid-template-columns: 1fr;
  }

  .project-card-featured {
    grid-template-columns: 1fr;
  }

  .project-card-featured .project-image-link,
  .project-card-featured .project-image {
    min-height: 260px;
  }

  .project-card-featured .project-image {
    aspect-ratio: 16 / 9;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principle-list article {
    min-height: auto;
  }
}

.game-detail-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 14%, rgba(245, 182, 66, 0.18), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(63, 124, 127, 0.16), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 48%, #f4fbf8 100%);
}

.game-detail-main {
  padding-top: 72px;
}

.game-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
  min-height: 74vh;
  padding: clamp(5rem, 8vw, 8rem) 5vw clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}

.game-hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72)),
    var(--game-hero-image, url("/assets/images/hero-wallpaper.jpg")) center / cover no-repeat;
  content: "";
  opacity: 0.9;
}

.game-hero-content,
.game-hero-visual {
  position: relative;
  z-index: 1;
}

.game-hero .eyebrow {
  margin-bottom: 1.35rem;
  max-width: 720px;
  color: var(--teal);
  font-size: clamp(1.04rem, 1.55vw, 1.34rem);
  line-height: 1.42;
  letter-spacing: 0.03em;
}

.game-hero h1 {
  max-width: 860px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(4rem, 11vw, 8.8rem);
  line-height: 0.92;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: keep-all;
}

.game-hero-copy {
  max-width: 760px;
  margin: 1.4rem 0 0;
  color: #334b55;
  font-size: clamp(1.05rem, 1.75vw, 1.38rem);
  line-height: 1.72;
  overflow-wrap: normal;
  word-break: keep-all;
}

.game-device-note {
  max-width: 720px;
  margin: 1rem 0 0;
  color: var(--teal);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 900;
  line-height: 1.55;
  overflow-wrap: normal;
  word-break: keep-all;
}

.game-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.35rem;
}

.app-store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.74rem 1.05rem;
  border: 1px solid rgba(23, 37, 43, 0.12);
  border-radius: 8px;
  color: #ffffff;
  background: var(--navy);
  box-shadow: 0 14px 30px rgba(28, 54, 64, 0.18);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
}

.app-store-button:hover {
  background: #244854;
}

.app-store-note {
  max-width: 360px;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Apple SD Gothic Neo", sans-serif;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.45;
}

html[data-medf-intro="true"] [data-hide-on-medf-intro] {
  display: none !important;
}

.game-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.6rem;
}

.game-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.5rem 0.82rem;
  border: 1px solid rgba(63, 124, 127, 0.18);
  border-radius: 8px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  font-weight: 900;
  line-height: 1.35;
}

.game-hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 1.45;
  border: 1px solid rgba(23, 37, 43, 0.12);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 28px 70px rgba(28, 54, 64, 0.2);
}

.game-section {
  padding: clamp(3.5rem, 7vw, 6rem) 5vw;
}

.game-demo-section {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.game-section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.game-section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 0.45fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.game-section-kicker {
  margin: 0 0 0.55rem;
  color: var(--teal);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 900;
}

.game-section-title {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 1.05;
  overflow-wrap: normal;
  word-break: keep-all;
}

.game-section-copy {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.72;
  overflow-wrap: normal;
  word-break: keep-all;
}

.feature-grid,
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.media-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-tile,
.media-tile,
.demo-panel,
.game-note-panel {
  border: 1px solid rgba(23, 37, 43, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 36px rgba(28, 54, 64, 0.08);
}

.feature-tile {
  padding: 1.25rem;
}

.feature-tile h3 {
  margin: 0 0 0.65rem;
  color: var(--navy);
  font-size: 1.4rem;
}

.feature-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  font-weight: 650;
  line-height: 1.65;
}

.media-tile {
  overflow: hidden;
}

.media-tile img,
.media-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
}

.media-tile img {
  object-fit: cover;
}

.media-placeholder {
  display: grid;
  place-items: center;
  padding: 1rem;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(223, 245, 251, 0.86), rgba(255, 240, 184, 0.58)),
    #ffffff;
  text-align: center;
}

.media-caption {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  color: var(--navy);
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.45;
}

.demo-panel {
  overflow: hidden;
  background: #ffffff;
}

.promo-video-panel {
  overflow: hidden;
  border: 1px solid rgba(23, 37, 43, 0.1);
  border-radius: 8px;
  background: #0d1d22;
  box-shadow: 0 20px 52px rgba(28, 54, 64, 0.16);
}

.promo-video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #0d1d22;
  object-fit: contain;
}

.demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(23, 37, 43, 0.1);
  background: rgba(246, 251, 248, 0.9);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.86rem;
  font-weight: 850;
}

.demo-status {
  color: var(--teal);
}

.demo-viewport {
  min-height: clamp(420px, 56vw, 720px);
  padding: 0;
  background:
    linear-gradient(135deg, rgba(223, 245, 251, 0.92), rgba(255, 228, 232, 0.55)),
    #f9fdff;
}

.demo-frame {
  display: block;
  width: 100%;
  min-height: clamp(420px, 56vw, 720px);
  border: 0;
  background: #000;
}

.demo-placeholder {
  width: min(640px, 100%);
  text-align: center;
}

.demo-screen-message {
  display: none;
  width: min(560px, 100%);
  padding: 1.35rem;
  border: 1px solid rgba(63, 124, 127, 0.18);
  border-radius: 8px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(28, 54, 64, 0.08);
  text-align: center;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Apple SD Gothic Neo", sans-serif;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.65;
}

.demo-placeholder strong {
  display: block;
  color: var(--navy);
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1.12;
}

.demo-placeholder p {
  margin: 1rem auto 0;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.7;
}

.game-note-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.game-note-panel h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.game-note-panel ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.8;
}

@media (max-width: 980px) {
  .game-hero,
  .game-section-header,
  .game-note-panel {
    grid-template-columns: 1fr;
  }

  .game-hero {
    min-height: auto;
  }

  .feature-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .game-detail-main {
    padding-top: 64px;
  }

  .game-hero {
    padding-top: 4rem;
  }

  .game-hero h1 {
    font-size: clamp(2.7rem, 16vw, 4.8rem);
  }

  .demo-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-viewport,
  .demo-frame {
    min-height: 320px;
  }

  .demo-screen-message {
    display: block;
  }

  .demo-placeholder {
    display: none;
  }
}

/* Honeybee Town public product story */
.hbt-page {
  background: #ffffff;
}

.hbt-main {
  padding-top: 72px;
  overflow: hidden;
}

.hbt-hero {
  padding: 5.5rem 5vw 4rem;
  background:
    linear-gradient(180deg, rgba(228, 248, 245, 0.72), rgba(255, 255, 255, 0.96)),
    #f3fcfa;
}

.hbt-hero-copy,
.hbt-intro,
.hbt-closing {
  width: min(1040px, 100%);
  margin: 0 auto;
  text-align: center;
}

.hbt-kicker {
  margin: 0 0 1rem;
  color: var(--teal);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.45;
}

.hbt-hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: 6rem;
  line-height: 0.98;
  word-break: keep-all;
}

.hbt-appstore {
  margin-top: 1.4rem;
}

.hbt-lead {
  max-width: 820px;
  margin: 1.5rem auto 0;
  color: #3c555e;
  font-size: 1.45rem;
  line-height: 1.7;
  word-break: keep-all;
}

.hbt-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.65rem;
}

.hbt-facts span {
  padding: 0.58rem 0.85rem;
  border: 1px solid rgba(63, 124, 127, 0.2);
  border-radius: 8px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  line-height: 1.35;
}

.hbt-hero-media {
  width: min(1280px, 100%);
  margin: 3rem auto 0;
}

.hbt-hero-media img,
.hbt-story-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(23, 37, 43, 0.12);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(28, 54, 64, 0.16);
}

.hbt-intro {
  padding: 7rem 5vw;
}

.hbt-intro h2,
.hbt-closing h2 {
  margin: 0;
  color: var(--navy);
  font-size: 3.8rem;
  line-height: 1.08;
  word-break: keep-all;
}

.hbt-intro > p:last-child,
.hbt-closing > p:last-child {
  max-width: 820px;
  margin: 1.5rem auto 0;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Apple SD Gothic Neo", sans-serif;
  font-size: 1.16rem;
  font-weight: 650;
  line-height: 1.85;
  word-break: keep-all;
}

.hbt-story-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.72fr);
  gap: 5rem;
  align-items: center;
  padding: 6.5rem 5vw;
}

.hbt-story-row-reverse {
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.4fr);
}

.hbt-story-row-reverse .hbt-story-media {
  order: 2;
}

.hbt-story-row-reverse .hbt-story-copy {
  order: 1;
}

.hbt-story-media,
.hbt-story-copy {
  min-width: 0;
}

.hbt-story-copy {
  max-width: 560px;
}

.hbt-story-copy h2 {
  margin: 0;
  color: var(--navy);
  font-size: 3.1rem;
  line-height: 1.08;
  word-break: keep-all;
}

.hbt-story-copy > p:last-child {
  margin: 1.25rem 0 0;
  color: #4f646d;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Apple SD Gothic Neo", sans-serif;
  font-size: 1.12rem;
  font-weight: 650;
  line-height: 1.8;
  word-break: keep-all;
}

.hbt-story-row-sky { background: #eef9fd; }
.hbt-story-row-rose { background: #fff4f5; }
.hbt-story-row-mint { background: #effaf3; }
.hbt-story-row-honey { background: #fff9e8; }
.hbt-story-row-lilac { background: #f7f3fc; }
.hbt-story-row-season { background: #f2f8f7; }

.hbt-closing {
  padding: 8rem 5vw;
}

@media (max-width: 980px) {
  .hbt-hero h1 {
    font-size: 4.8rem;
  }

  .hbt-intro h2,
  .hbt-closing h2 {
    font-size: 3.1rem;
  }

  .hbt-story-row,
  .hbt-story-row-reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .hbt-story-row-reverse .hbt-story-media,
  .hbt-story-row-reverse .hbt-story-copy {
    order: initial;
  }

  .hbt-story-copy {
    max-width: 760px;
  }
}

@media (max-width: 720px) {
  .hbt-main {
    padding-top: 64px;
  }

  .hbt-hero {
    padding: 4rem 1.1rem 3rem;
  }

  .hbt-hero h1 {
    font-size: 3.25rem;
  }

  .hbt-lead {
    font-size: 1.16rem;
  }

  .hbt-kicker {
    font-size: 1.02rem;
  }

  .hbt-hero-media {
    margin-top: 2.25rem;
  }

  .hbt-intro,
  .hbt-closing {
    padding: 5rem 1.1rem;
  }

  .hbt-intro h2,
  .hbt-closing h2,
  .hbt-story-copy h2 {
    font-size: 2.25rem;
  }

  .hbt-story-row,
  .hbt-story-row-reverse {
    gap: 2rem;
    padding: 4rem 1.1rem;
  }

  .hbt-story-copy > p:last-child,
  .hbt-intro > p:last-child,
  .hbt-closing > p:last-child {
    font-size: 1rem;
  }
}

.project-grid-featured {
  gap: 1.75rem;
}

.project-image-featured[src*="forgetmenotes"] {
  object-position: 50% 35%;
}
