* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --line: rgba(0, 0, 0, 0.1);
  --muted: rgba(0, 0, 0, 0.4);
  --green: #20c56b;
  --ink: #121916;
}

html {
  font-size: 16px;
}

body {
  font-family:
    'Geist', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #fff;
  color: #000;
  line-height: 1.5;
}

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

main {
  min-height: 100vh;
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

h1 {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.header-text p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted);
}

.download-link {
  flex-shrink: 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  transition: color 0.2s;
}

.download-link:hover {
  color: rgba(0, 0, 0, 0.6);
}

.pixel-stage {
  overflow: hidden;
  margin-bottom: 3rem;
  border: 1px solid rgba(20, 35, 27, 0.09);
  border-radius: 1.5rem;
  background: #f0f8f3;
  box-shadow: 0 22px 55px rgba(14, 53, 30, 0.08);
}

.stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(20, 35, 27, 0.08);
  background: rgba(255, 255, 255, 0.7);
}

.stage-title,
.stage-live {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.stage-title {
  color: rgba(18, 25, 22, 0.28);
}

.stage-live {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(18, 25, 22, 0.5);
  letter-spacing: 0.04em;
}

.stage-live i,
.friend-label i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(32, 197, 107, 0.12);
}

.stage-room {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  min-height: 17rem;
  padding: 0 3rem 2.1rem;
  background-image: radial-gradient(rgba(26, 63, 42, 0.13) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
}

.stage-room::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 62%, rgba(255, 255, 255, 0.72));
  content: "";
}

.desk-line {
  position: absolute;
  right: 6%;
  bottom: 4.4rem;
  left: 6%;
  height: 1px;
  background: rgba(18, 25, 22, 0.1);
}

.sprite-friend {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
}

.pixel-cat {
  display: block;
  width: 96px;
  height: 96px;
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: 576px 96px;
  image-rendering: pixelated;
  animation: pixel-walk 1s steps(5) infinite;
}

.pixel-cat-working {
  background-image: url("/greendot/sprites/cat-working.png");
  animation-duration: 0.72s;
}

.pixel-cat-idle {
  background-image: url("/greendot/sprites/cat-idle.png");
  animation-duration: 1.3s;
}

.pixel-cat-sleeping {
  background-image: url("/greendot/sprites/cat-sleeping.png");
  animation-duration: 1.75s;
}

.friend-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 8rem;
  margin-top: -0.3rem;
  padding: 0.42rem 0.6rem;
  border: 1px solid rgba(20, 35, 27, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: rgba(18, 25, 22, 0.55);
  font-size: 0.5625rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(14, 53, 30, 0.06);
  backdrop-filter: blur(8px);
}

.friend-label-away i {
  background: #aab3ae;
  box-shadow: 0 0 0 3px rgba(100, 115, 107, 0.1);
}

@keyframes pixel-walk {
  to {
    background-position: -480px 0;
  }
}

.intro {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;     /* text-sm */
  line-height: 1.25rem;
  color: var(--muted);
  word-break: keep-all;
}

ul.feature-list {
  flex: 1;
  list-style: none;
  border-top: 1px solid var(--line);
}

ul.feature-list li + li {
  margin-top: 1px;         /* space-y-px */
}

.feature-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;       /* py-6 */
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s;
}

.feature-item:hover {
  border-color: rgba(0, 0, 0, 0.3);
}

.feature-title {
  font-size: 1rem;         /* default body size */
  line-height: 1.5rem;
  font-weight: 500;        /* font-medium */
  color: #000;
  transition: color 0.2s;
}

.feature-item:hover .feature-title {
  color: rgba(0, 0, 0, 0.7);
}

.feature-desc {
  margin-top: 0.25rem;     /* mt-1 */
  font-size: 0.875rem;     /* text-sm */
  line-height: 1.25rem;
  color: var(--muted);
  word-break: keep-all;
}

footer {
  margin-top: 5rem;        /* mt-20 */
  font-size: 0.75rem;      /* text-xs */
  line-height: 1rem;
  color: rgba(0, 0, 0, 0.2);
}

/* ── patchnote ── */

.back-link {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.3);
  transition: color 0.2s;
}

.back-link:hover {
  color: rgba(0, 0, 0, 0.6);
}

.home-link {
  text-decoration: none;
  color: inherit;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgba(0, 0, 0, 0.3);
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  color: rgba(0, 0, 0, 0.7);
}

.release-list {
  flex: 1;
}

.release-section {
  /* 각 버전 블록 — 내부 스크롤 시 헤더가 sticky */
}

.release-sticky-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  padding-top: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.release-version {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.6);
}

.release-date {
  font-size: 0.8125rem;
  color: var(--muted);
}

.release-changes {
  list-style: none;
}

.change-item {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--muted);
  word-break: keep-all;
}

.change-tag {
  flex-shrink: 0;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
}

.tag-new  { background: #e8f5e9; color: #2e7d32; }
.tag-fix  { background: #fff3e0; color: #e65100; }
.tag-chg  { background: #f3f3f3; color: #555; }

@media (max-width: 640px) {
  main {
    padding: 1.5rem 1rem 3rem;
  }

  header {
    margin-bottom: 2.5rem;
  }

  .pixel-stage {
    margin-bottom: 2.5rem;
    border-radius: 1.15rem;
  }

  .stage-room {
    min-height: 14rem;
    padding: 0 0.25rem 1.75rem;
  }

  .pixel-cat {
    width: 64px;
    height: 64px;
    background-size: 384px 64px;
  }

  @keyframes pixel-walk {
    to {
      background-position: -320px 0;
    }
  }

  .friend-label {
    min-width: 6.25rem;
    font-size: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pixel-cat {
    animation: none;
  }
}
