:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f4f6f5;
  color: #17201e;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(28px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
  background: #f4f6f5;
}

.launcher {
  width: 100%;
  max-width: 760px;
  min-width: 0;
}

.launcher__header {
  margin-bottom: 30px;
}

.launcher__eyebrow {
  margin: 0 0 8px;
  color: #60716c;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: 0;
}

.app-list {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.app-entry {
  min-width: 0;
  min-height: 152px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid #d8dedc;
  border-radius: 8px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(28, 45, 40, 0.07);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.app-entry:hover,
.app-entry:focus-visible {
  border-color: #91a39d;
  box-shadow: 0 12px 30px rgba(28, 45, 40, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.app-entry img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
}

.app-entry__text {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.app-entry__text strong {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: 0;
}

.app-entry__text span {
  color: #66736f;
  font-size: 14px;
  line-height: 1.4;
}

.app-entry__arrow {
  color: #5d6a66;
  font-family: Arial, sans-serif;
  font-size: 40px;
  line-height: 1;
  text-align: center;
}

.app-entry--chinese {
  border-top: 4px solid #18736a;
}

.app-entry--english {
  border-top: 4px solid #d77a29;
}

.launcher__version {
  margin: 24px 0 0;
  color: #7a8682;
  font-size: 12px;
  text-align: right;
}

@media (max-width: 680px) {
  body {
    place-items: start center;
    padding-top: max(34px, env(safe-area-inset-top));
  }

  h1 {
    font-size: 32px;
  }

  .app-list {
    grid-template-columns: 1fr;
  }

  .app-entry {
    min-height: 128px;
    grid-template-columns: 62px minmax(0, 1fr) 24px;
    padding: 20px;
  }

  .app-entry img {
    width: 62px;
    height: 62px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-entry {
    transition: none;
  }
}
