@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("../assets/fonts/MPLUSRounded1c-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("../assets/fonts/MPLUSRounded1c-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("../assets/fonts/MPLUSRounded1c-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("../assets/fonts/MPLUSRounded1c-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #493b59;
  --muted: #776784;
  --violet: #7a5c93;
  --pink: #ff78a9;
  --sun: #ffd85a;
  --sky: #80c8ff;
  --mint: #83e0d4;
  --amber: #f8c76d;
  --cream: #fffaf2;
  --white: #ffffff;
  --line: rgba(87, 68, 110, 0.16);
  --shadow: 0 18px 42px rgba(79, 58, 100, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "M PLUS Rounded 1c", system-ui, sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 242, 248, 0.94), rgba(234, 249, 255, 0.9) 46%, rgba(255, 250, 242, 0.92)),
    #fff6fb;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  display: flex;
  width: min(calc(100% - 32px), 1120px);
  height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 34px rgba(91, 67, 116, 0.15);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  color: var(--violet);
  font-weight: 800;
  font-size: 1.04rem;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(119, 89, 139, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}

.nav-links a {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(122, 92, 147, 0.1);
  outline: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 86svh;
  overflow: hidden;
  align-items: end;
  background-image: url("assets/images/emoman-hero-generated.png");
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(58, 42, 76, 0.82) 0%, rgba(70, 48, 91, 0.62) 34%, rgba(70, 48, 91, 0.08) 72%),
    linear-gradient(0deg, rgba(255, 250, 255, 0.88) 0%, rgba(255, 250, 255, 0.05) 30%, rgba(255, 250, 255, 0) 100%);
}

.hero::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 24%);
}

.hero-inner {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 148px 28px 82px;
  color: var(--white);
  text-shadow: 0 4px 24px rgba(43, 29, 56, 0.42);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--pink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #fff2b8;
}

h1 {
  margin: 0;
  font-size: 7.6rem;
  font-weight: 800;
  line-height: 0.98;
}

h2 {
  margin: 0;
  font-size: 3.35rem;
  font-weight: 800;
  line-height: 1.18;
}

h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.hero-lede {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.3;
}

.hero-copy {
  max-width: 640px;
  margin: 20px 0 0;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(80, 54, 101, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(80, 54, 101, 0.25);
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--pink), #ff9b7b);
}

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

.button.large {
  min-width: min(100%, 320px);
  min-height: 66px;
  font-size: 1.08rem;
}

.story-band,
.loop-section,
.game-section,
.emos-section,
.play-section {
  padding: 92px 28px;
}

.story-band {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(234, 249, 255, 0.76) 46%, rgba(255, 250, 242, 0.82)),
    #fff7fb;
}

.story-layout,
.game-layout,
.play-inner {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.story-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 56px;
  align-items: start;
}

.story-layout p:not(.section-kicker),
.game-copy p,
.play-inner p:not(.section-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 2;
}

.section-heading {
  width: min(100%, 940px);
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading p:not(.section-kicker) {
  margin: 18px auto 0;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.9;
}

.loop-grid {
  display: grid;
  width: min(100%, 1120px);
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.loop-card,
.emo-card,
.feature-card {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
}

.loop-card {
  display: grid;
  min-height: 250px;
  align-content: start;
  gap: 16px;
  padding: 24px;
}

.card-icon {
  display: grid;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  place-items: center;
  font-size: 2.15rem;
  box-shadow: inset 0 2px 12px rgba(255, 255, 255, 0.9), 0 12px 26px rgba(92, 72, 109, 0.14);
}

.card-icon.sparkle {
  background: linear-gradient(145deg, #fff4a8, #fffaf2);
}

.card-icon.heart {
  background: linear-gradient(145deg, #ffd1e2, #fff4a8);
}

.card-icon.smile {
  background: linear-gradient(145deg, #fff0a5, #ffcf5c);
}

.card-icon.trail {
  background: linear-gradient(145deg, #c9f4ee, #d7c4ff);
}

.loop-card p,
.emo-card p,
.feature-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.8;
}

.game-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.78)),
    linear-gradient(135deg, rgba(255, 120, 169, 0.18), rgba(128, 200, 255, 0.22) 52%, rgba(248, 199, 109, 0.18));
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 46px;
  align-items: center;
}

.game-copy {
  display: grid;
  gap: 22px;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.75;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 30px;
}

.feature-list li::before {
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--sky));
  box-shadow: 0 0 0 5px rgba(255, 120, 169, 0.12);
  content: "";
}

.game-art {
  margin: 0;
}

.game-art img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(76, 59, 94, 0.18);
}

.feature-strip {
  display: grid;
  width: min(100%, 1120px);
  margin: 34px auto 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  min-height: 148px;
  padding: 22px;
}

.feature-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--violet);
  font-size: 1.08rem;
}

.emos-section {
  background: rgba(255, 250, 242, 0.78);
}

.emo-grid {
  display: grid;
  width: min(100%, 1120px);
  margin: 0 auto;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.emo-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 248px;
  padding: 22px;
}

.emo-face {
  display: grid;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  place-items: center;
  font-size: 2.75rem;
  box-shadow:
    inset 8px 12px 20px rgba(255, 255, 255, 0.8),
    inset -10px -14px 20px rgba(90, 68, 112, 0.1),
    0 14px 28px rgba(75, 54, 94, 0.14);
}

.emo-card.sad .emo-face {
  background: radial-gradient(circle at 32% 24%, #f8fdff, #80c8ff 46%, #517bd9 100%);
}

.emo-card.anger .emo-face {
  background: radial-gradient(circle at 32% 24%, #fff4d7, #ff9b7b 45%, #e6573e 100%);
}

.emo-card.worry .emo-face {
  background: radial-gradient(circle at 32% 24%, #f8ffff, #83e0d4 46%, #43a9d8 100%);
}

.emo-card.dizzy .emo-face {
  background: radial-gradient(circle at 32% 24%, #fff7ff, #d7c4ff 46%, #8971d7 100%);
}

.emo-card.rush .emo-face {
  background: radial-gradient(circle at 32% 24%, #fffbe5, #f8c76d 46%, #ff9f31 100%);
}

.play-section {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(73, 59, 89, 0.86), rgba(73, 59, 89, 0.55) 42%, rgba(73, 59, 89, 0.08)),
    url("assets/images/emoman-hero-generated.png");
  background-position: center;
  background-size: cover;
}

.play-inner {
  padding: 20px 0;
  color: var(--white);
  text-shadow: 0 4px 22px rgba(43, 29, 56, 0.42);
}

.play-inner h2 {
  max-width: 760px;
  margin-bottom: 20px;
}

.play-inner p:not(.section-kicker) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
}

.play-inner .button {
  margin-top: 30px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 34px 28px;
  color: rgba(73, 59, 89, 0.72);
  font-weight: 700;
}

.site-footer p {
  margin: 0;
}

.footer-copy {
  display: grid;
  gap: 6px;
}

.footer-links {
  color: rgba(73, 59, 89, 0.54);
  font-size: 0.9rem;
}

.footer-links a {
  text-decoration: underline;
  text-decoration-color: rgba(122, 92, 147, 0.24);
  text-underline-offset: 4px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--violet);
  outline: none;
}

.language-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.language-switcher a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(122, 92, 147, 0.14);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--violet);
}

.language-switcher a:hover,
.language-switcher a:focus-visible,
.language-switcher a[aria-current="page"] {
  background: rgba(122, 92, 147, 0.12);
  outline: none;
}

.coming-soon-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  padding: 24px;
  place-items: center;
  background: rgba(46, 32, 61, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.coming-soon-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  position: relative;
  width: min(100%, 430px);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  padding: 32px 28px 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 242, 248, 0.94)),
    var(--white);
  box-shadow: 0 24px 64px rgba(40, 28, 54, 0.3);
  transform: translateY(12px) scale(0.98);
  transition: transform 180ms ease;
}

.coming-soon-modal.is-open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  place-items: center;
  color: var(--violet);
  background: rgba(122, 92, 147, 0.1);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(122, 92, 147, 0.16);
  outline: none;
}

.modal-emoji {
  display: grid;
  width: 78px;
  height: 78px;
  margin-bottom: 18px;
  border-radius: 999px;
  place-items: center;
  background: linear-gradient(145deg, #fff4a8, #ffd1e2);
  font-size: 2.35rem;
  box-shadow: inset 0 2px 12px rgba(255, 255, 255, 0.9), 0 12px 26px rgba(92, 72, 109, 0.14);
}

.modal-dialog h2 {
  margin: 0;
  font-size: 1.65rem;
}

.modal-dialog p {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.8;
}

.modal-actions {
  display: flex;
  margin-top: 24px;
}

.modal-actions .button {
  min-height: 50px;
  padding: 12px 22px;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .site-header {
    top: 10px;
    width: min(calc(100% - 20px), 760px);
  }

  h1 {
    font-size: 5.7rem;
  }

  h2 {
    font-size: 2.65rem;
  }

  .hero {
    background-position: 62% center;
  }

  .hero-lede {
    font-size: 1.9rem;
  }

  .story-band,
  .loop-section,
  .game-section,
  .emos-section,
  .play-section {
    padding: 72px 20px;
  }

  .story-layout,
  .game-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .site-header {
    height: 58px;
    width: calc(100% - 16px);
    padding: 8px;
    overflow: hidden;
    justify-content: flex-start;
  }

  .brand {
    flex: 0 0 auto;
    width: 44px;
    padding: 4px;
  }

  .brand span {
    display: none;
  }

  .nav-links {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
    gap: 14px;
    margin-left: 12px;
    font-size: 0.72rem;
  }

  .nav-links a {
    min-height: 36px;
    padding: 8px 0;
    white-space: nowrap;
  }

  .hero {
    min-height: 88svh;
    background-position: 66% center;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(50, 34, 66, 0.7) 0%, rgba(56, 38, 72, 0.48) 48%, rgba(255, 250, 255, 0.86) 100%),
      linear-gradient(90deg, rgba(56, 38, 72, 0.58), rgba(56, 38, 72, 0.12));
  }

  .hero-inner {
    padding: 116px 20px 58px;
  }

  h1 {
    font-size: 3.9rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-lede {
    font-size: 1.43rem;
  }

  .hero-copy {
    font-size: 0.98rem;
    line-height: 1.82;
  }

  .hero-actions,
  .loop-grid,
  .feature-strip,
  .emo-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .loop-card,
  .emo-card {
    min-height: 0;
  }

  .game-layout {
    gap: 30px;
  }

  .site-footer {
    display: grid;
    justify-content: stretch;
  }

  .language-switcher {
    justify-content: flex-start;
  }
}
