/* Campusdown 심리테스트 전용 홈. 이 파일은 /test/mobile 에서만 불러온다. m3 */
:root {
  --pm-bg: #faf7f4;
  --pm-text: #2a2724;
  --pm-muted: #6e675f;
  --pm-line: #ece6df;
  --pm-line-strong: #e4ddd4;
  --pm-surface: #ffffff;
  --pm-accent: #6f49e7;
  --pm-radius: 18px;
  --pm-shadow: 0 1px 2px rgba(42, 39, 36, 0.05), 0 10px 24px -18px rgba(42, 39, 36, 0.45);
}

body.pm {
  margin: 0;
  min-height: 100dvh;
  background: var(--pm-bg);
  color: var(--pm-text);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-x: hidden;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

body.pm *,
body.pm *::before,
body.pm *::after { box-sizing: border-box; }

body.pm :focus { outline: none; }
body.pm :focus-visible {
  outline: 2px solid var(--pm-accent);
  outline-offset: 2px;
}

.pm-skip {
  position: absolute;
  left: 8px;
  top: 8px;
  transform: translateY(-140%);
  background: #fff;
  color: var(--pm-text);
  padding: 8px 12px;
  border-radius: 10px;
  z-index: 80;
}
.pm-skip:focus { transform: none; }

.pm-wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}
@media (max-width: 340px) {
  .pm-wrap { width: min(1080px, calc(100% - 24px)); }
}

.pm-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 247, 244, 0.96);
  border-bottom: 1px solid var(--pm-line);
  padding-top: env(safe-area-inset-top, 0px);
}
.pm-top__in {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pm-logo {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.pm-logo img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 168px;
}
.pm-logo__tx { display: none; flex-direction: column; line-height: 1.05; }
.pm-logo.is-text .pm-logo__tx { display: flex; }
.pm-logo__tx strong { font-size: 16px; letter-spacing: -0.03em; }
.pm-logo__tx small { font-size: 11px; color: var(--pm-muted); font-weight: 700; }

.pm-headnav {
  display: none;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.pm-headnav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--pm-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.pm-headnav a[aria-current="page"] {
  background: color-mix(in srgb, var(--pm-accent) 12%, #fff);
  color: var(--pm-accent);
}

.pm-find { position: relative; margin-left: auto; width: 44px; height: 44px; }
.pm-find > summary {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  cursor: pointer;
  border-radius: 12px;
  color: var(--pm-text);
}
.pm-find > summary::-webkit-details-marker { display: none; }
.pm-find__icon { display: block; }
.pm-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.pm-find .lab-open {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.pm-find:not([open]) .lab-close { display: none; }
.pm-find[open] > summary {
  position: fixed;
  z-index: 70;
  top: calc(8px + env(safe-area-inset-top, 0px));
  right: 12px;
  width: auto;
  min-width: 64px;
  height: 44px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--pm-line-strong);
  border-radius: 12px;
}
.pm-find[open] .pm-find__icon,
.pm-find[open] .lab-open { display: none; }
.pm-find[open] .lab-close {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  font-weight: 700;
  font-size: 14px;
}

.pm-find__panel { display: none; }
.pm-find[open] .pm-find__panel {
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 60;
  left: 0;
  right: 0;
  top: 0;
  height: 100dvh;
  background: var(--pm-bg);
  padding: calc(64px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px));
}
.pm-qrow { display: flex; gap: 8px; align-items: center; }
.pm-qwrap { position: relative; flex: 1; min-width: 0; }
.pm-qwrap input {
  width: 100%;
  height: 52px;
  font: inherit;
  font-size: 16px;
  color: var(--pm-text);
  background: #fff;
  border: 1px solid var(--pm-line-strong);
  border-radius: 14px;
  padding: 0 48px 0 14px;
}
.pm-qclear {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--pm-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.pm-qgo {
  flex: none;
  height: 52px;
  min-width: 72px;
  border: 0;
  border-radius: 14px;
  background: var(--pm-accent);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.pm-qhelp { margin: 8px 0 0; color: var(--pm-muted); font-size: 13px; }
.pm-hist, .pm-live { list-style: none; margin: 12px 0 0; padding: 0; overflow: auto; }
.pm-hist { flex: none; }
.pm-live { flex: 1; }
.pm-hist__row, .pm-live a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
  color: inherit;
}
.pm-hist__term {
  flex: 1;
  text-align: left;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 700;
  min-height: 44px;
  cursor: pointer;
  color: inherit;
}
.pm-hist__x {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--pm-muted);
  cursor: pointer;
  font-size: 18px;
}
.pm-live a {
  padding: 8px 0;
  border-bottom: 1px solid var(--pm-line);
}
.pm-live img, .pm-live .pm-live__fb {
  width: 72px;
  height: 54px;
  object-fit: contain;
  background: #f3efe9;
  border-radius: 8px;
  flex: none;
}
.pm-live__fb {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.pm-live strong { display: block; font-size: 15px; line-height: 1.35; }
.pm-live small { color: var(--pm-muted); font-size: 12px; }
.pm-live__empty { color: var(--pm-muted); padding: 18px 0; }

.pm-main { padding-top: 8px; }
.pm-hello { padding: 12px 0 4px; }
.pm-hello h1, .pm-page h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.03em;
}
.pm-hello p, .pm-lead {
  margin: 4px 0 0;
  color: var(--pm-muted);
  font-size: 14px;
  line-height: 1.45;
}
.pm-page { padding: 12px 0 4px; }
.pm-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--pm-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.pm-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 10px 0 4px;
  scrollbar-width: thin;
}
.pm-chip {
  flex: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--pm-line-strong);
  background: #fff;
  color: var(--pm-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.pm-chip[aria-selected="true"] {
  background: var(--pm-accent);
  border-color: var(--pm-accent);
  color: #fff;
}

.pm-sec { margin: 18px 0; }
.pm-sec__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 10px;
}
@media (max-width: 420px) {
  .pm-sec__head { align-items: flex-start; }
  .pm-sec__head h2 { flex: 1 1 100%; }
}
.pm-sec h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.pm-sec__sub { color: var(--pm-muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.pm-sec__sub a { color: var(--pm-accent); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }

.pm-sort { display: flex; gap: 4px; }
.pm-sort a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--pm-text);
  font-size: 13px;
  font-weight: 700;
}
.pm-sort a[aria-current="true"] { background: var(--pm-text); color: #fff; }

.pm-feature {
  display: grid;
  grid-template-columns: minmax(108px, 42%) minmax(0, 1fr);
  min-height: 188px;
  background: var(--pm-surface);
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-radius);
  box-shadow: var(--pm-shadow);
  color: inherit;
  overflow: hidden;
}
.pm-feature__media { position: relative; display: block; background: #f3efe9; min-height: 188px; color: inherit; }
.pm-feature__copy { color: inherit; text-decoration: none; display: block; }
.pm-feature__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.pm-feature__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.pm-feature__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 12px 12px 14px;
  min-width: 0;
}
.pm-kicker { margin: 0; color: var(--pm-accent); font-size: 12px; font-weight: 800; }
.pm-feature__title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.03em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pm-feature__sub {
  margin: 0;
  color: var(--pm-muted);
  font-size: 13px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pm-feature__meta { margin: 0; color: var(--pm-muted); font-size: 12px; }
.pm-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--pm-accent);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  flex: none;
}
.pm-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}
.pm-card .pm-stats { padding: 0 10px 10px; }
.pm-view, .pm-like {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 44px;
  color: #1c1917;
  white-space: nowrap;
}
.pm-view b, .pm-like b {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.pm-view b { color: var(--pm-accent); }
.pm-view small {
  font-size: 12px;
  font-weight: 800;
  color: #3f3a36;
}
.pm-like {
  border: 0;
  background: transparent;
  padding: 0 2px;
  font: inherit;
  cursor: pointer;
  color: #1c1917;
}
.pm-like svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.pm-like[aria-pressed="true"] { color: #e11d48; }
.pm-like[aria-pressed="true"] b { color: #e11d48; }
.pm-like[aria-pressed="true"] svg { fill: currentColor; }

.pm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pm-card {
  position: relative;
  min-width: 0;
  background: var(--pm-surface);
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-radius);
  box-shadow: var(--pm-shadow);
}
.pm-card__a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  border-radius: inherit;
}
.pm-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f3efe9;
  border-radius: 17px 17px 0 0;
  overflow: hidden;
}
.pm-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.pm-fb {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 12px;
  background: color-mix(in srgb, var(--c, var(--pm-accent)) 18%, #f6f2ec);
  color: var(--pm-text);
}
.pm-fb[hidden] { display: none !important; }
.pm-fb__e { font-size: 26px; line-height: 1; }
.pm-fb__t {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pm-feature .pm-fb__t { display: none; }
.pm-badge {
  position: absolute;
  z-index: 1;
  left: 8px;
  top: 8px;
  background: var(--pm-text);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  border-radius: 999px;
  padding: 4px 7px;
}
.pm-badge[data-badge="new"] { background: var(--pm-accent); }
.pm-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 10px 12px;
  min-height: 112px;
}
.pm-card__title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.35em * 2);
}
.pm-card__sub {
  margin: 0;
  color: var(--pm-muted);
  font-size: 13px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.4em * 2);
}
.pm-card__meta {
  margin-top: auto;
  color: var(--pm-muted);
  font-size: 12px;
  line-height: 1.35;
}
.pm-save {
  position: absolute;
  z-index: 2;
  top: 4px;
  right: 4px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--pm-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pm-save svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.pm-save[aria-pressed="true"] { color: var(--pm-accent); }
.pm-save[aria-pressed="true"] svg { fill: currentColor; }

.pm-more {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid var(--pm-line-strong);
  background: #fff;
  color: var(--pm-text);
  font-weight: 800;
  text-decoration: none;
}

.pm-cols, .pm-series {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.pm-col, .pm-series a, a.pm-series {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 44px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-radius);
  box-shadow: var(--pm-shadow);
  color: inherit;
  text-decoration: none;
}
.pm-col strong, .pm-series strong { font-size: 16px; letter-spacing: -0.02em; }
.pm-col__d, .pm-series span { color: var(--pm-muted); font-size: 13px; line-height: 1.4; }
.pm-col__n, .pm-series__n { color: var(--pm-accent); font-size: 12px; font-weight: 800; }

.pm-empty, .pm-fail {
  background: #fff;
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-radius);
  padding: 28px 16px;
  text-align: center;
}
.pm-empty p, .pm-fail p { margin: 0 0 12px; }
.pm-empty a, .pm-fail a { font-weight: 800; color: var(--pm-accent); }

.pm-foot {
  margin-top: 12px;
  padding: 18px 0 8px;
  border-top: 1px solid var(--pm-line);
  color: var(--pm-muted);
  font-size: 12px;
}
.pm-foot nav { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.pm-foot a {
  color: var(--pm-muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
}
.pm-foot p { margin: 4px 0 0; line-height: 1.45; }

body.pm:has(#pm-find[open]) .pm-nav { visibility: hidden; }

.pm-nav {
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: calc(56px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #fff;
  border-top: 1px solid var(--pm-line);
}
.pm-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 44px;
  text-decoration: none;
  color: var(--pm-muted);
  font-size: 11px;
  font-weight: 800;
}
.pm-nav a[aria-current="page"] { color: var(--pm-accent); }
.pm-nav svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }

.pm-toast {
  position: fixed;
  z-index: 35;
  left: 50%;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  background: var(--pm-text);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
}
.pm-toast:empty { display: none; }

@media (max-width: 340px) {
  .pm-grid { gap: 10px; }
  .pm-card__body { padding: 8px 8px 10px; min-height: 108px; }
  .pm-card__title { font-size: 15px; }
  .pm-hello h1, .pm-page h1 { font-size: 20px; }
}

@media (min-width: 768px) {
  body.pm { padding-bottom: 0; font-size: 16px; }
  .pm-headnav { display: flex; }
  .pm-find { margin-left: 0; }
  .pm-nav { display: none; }
  .pm-hello h1, .pm-page h1 { font-size: 28px; }
  .pm-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .pm-feature { grid-template-columns: 280px minmax(0, 1fr); min-height: 200px; }
  .pm-feature__media { min-height: 200px; }
  .pm-feature__body { padding: 18px 20px; }
  .pm-cta { min-width: 148px; padding: 0 18px; }
  .pm-cols, .pm-series { grid-template-columns: repeat(3, 1fr); }
  .pm-toast { bottom: 24px; }
  .pm-find[open] .pm-find__panel {
    left: 50%;
    right: auto;
    top: 72px;
    transform: translateX(-50%);
    width: min(640px, calc(100% - 48px));
    height: min(72dvh, 680px);
    border: 1px solid var(--pm-line);
    border-radius: 20px;
    box-shadow: var(--pm-shadow);
    padding-top: 68px;
  }
  body.pm:has(.pm-find[open])::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(42, 39, 36, 0.28);
    z-index: 40;
  }
}

@media (min-width: 1100px) {
  .pm-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  body.pm *,
  body.pm *::before,
  body.pm *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* 2026-10-14 psyspace: 심리테스트 전용 햄버거 */
.pm-burger {
  width: 44px;
  height: 44px;
  margin: 0 0 0 -8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pm-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex: 0 0 auto;
}
.pm-burger__bars {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}
.pm-drawer[hidden] { display: none !important; }
.pm-drawer { position: fixed; inset: 0; z-index: 80; }
.pm-drawer__bg {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(42, 39, 36, 0.42);
}
.pm-drawer__panel {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: #fff;
  overflow: auto;
  box-shadow: 12px 0 32px rgba(42, 39, 36, 0.12);
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
.pm-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px 20px;
  border-bottom: 1px solid var(--pm-line);
}
.pm-drawer__head strong { font-size: 16px; }
.pm-drawer__x {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: var(--pm-text);
}
.pm-drawer__label {
  margin: 16px 20px 2px;
  font-size: 12px;
  font-weight: 800;
  color: var(--pm-muted);
}
.pm-drawer__panel a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  color: var(--pm-text);
  text-decoration: none;
  font-weight: 700;
}
.pm-drawer__panel a[aria-current="page"] {
  color: var(--pm-accent);
  background: color-mix(in srgb, var(--pm-accent) 10%, #fff);
}
body.pm.is-menu { overflow: hidden; }
body.pm.is-menu .pm-nav { visibility: hidden; }
@media (min-width: 768px) {
  .pm-burger { display: none; }
}

body.pm.is-menu .pm-top { visibility: hidden; }

.pm-slogan {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #2a2724;
  line-height: 1.25;
  white-space: nowrap;
  border-bottom: 2px solid #ff7a18;
  padding-bottom: 1px;
}
@media (max-width: 767px) {
  .pm-top__in { flex-wrap: wrap; row-gap: 0; }
  .pm-slogan {
    order: 4;
    flex: 1 0 100%;
    margin: 0 2px 8px;
    font-size: 14px;
  }
}

/* 2026-10-14 pmui: 조회/좋아요가 겹치지 않게, 시간과 추천 대상을 띄움 */
.pm-feature__body { gap: 10px; }
.pm-feature .pm-cta { width: 100%; }
.pm-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.pm-card .pm-stats { padding: 0 10px 12px; }
.pm-view, .pm-like {
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 14px;
  background: #f6f3ef;
  border: 1px solid #ece6df;
  overflow: hidden;
}
.pm-view b, .pm-like b { font-size: 16px; }
.pm-like svg { width: 20px; height: 20px; flex: none; }
.pm-floaters, .pm-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.pm-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #efe8e0;
  box-shadow: 0 8px 16px -12px rgba(42, 39, 36, 0.55);
  color: #2a2724;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.pm-pill--time {
  background: #fff4ea;
  border-color: #ffd7b8;
  color: #c2410c;
}
.pm-floaters .pm-pill,
.pm-pill--who {
  animation: pm-bob 3.6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes pm-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@media (max-width: 720px) {
  .pm-feature { grid-template-columns: 1fr; }
  .pm-feature__media { min-height: 0; aspect-ratio: 16 / 10; }
  .pm-feature__body { padding: 12px; }
  .pm-floaters { margin-top: -22px; position: relative; z-index: 1; }
  .pm-card__body { min-height: 0; padding-bottom: 8px; }
  .pm-card__sub { min-height: 0; -webkit-line-clamp: 2; }
}

.pm-card { display: flex; flex-direction: column; }
.pm-card__a { height: auto; flex: 1 1 auto; }
.pm-card .pm-stats { margin-top: 0; }

.pm-homework {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #ffd7b8;
  color: #c2410c;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}
.pm-homework:hover { background: #ffedd5; }
@media (min-width: 768px) {
  .pm-headnav { margin-left: 8px; }
}
@media (max-width: 767px) {
  .pm-homework {
    order: 5;
    flex: 1 0 100%;
    margin: 0 2px 10px;
  }
}

/* 테스트 전광판. 한 칸 높이는 44px, 키프레임 이동량과 같다. */
.pm-board { margin: 12px 0 2px; }
.pm-board__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 6px 8px 6px 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, #352a50 0%, #241c38 100%);
  color: #fff;
  box-shadow: 0 10px 22px -16px rgba(36, 28, 56, 0.9);
}
.pm-board__tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: #ff7a18;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.pm-board__win {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  overflow: hidden;
}
.pm-board__track {
  margin: 0;
  padding: 0;
  list-style: none;
  animation: pm-board-up calc(var(--pm-board-n, 1) * 2.6s) linear infinite;
}
.pm-board__track li {
  height: 44px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.pm-board__track li span {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 44px;
}
.pm-board__track li span.is-long {
  display: inline-block;
  width: auto;
  overflow: visible;
  text-overflow: clip;
  animation: pm-board-x 2.6s ease-in-out infinite;
}
.pm-board__limit {
  flex: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.pm-board__post {
  flex: none;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--pm-accent);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.03em;
  cursor: pointer;
}
.pm-board__post:hover { background: #f4efff; }
.pm-board__form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.pm-board__form[hidden] { display: none; }
.pm-board__form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--pm-line-strong);
  padding: 0 12px;
  background: #fff;
  color: var(--pm-text);
  font: inherit;
  font-weight: 700;
}
.pm-board__count {
  flex: none;
  color: var(--pm-muted);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.pm-board__form button {
  flex: none;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: var(--pm-accent);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}
.pm-board.is-writing .pm-board__track { animation-play-state: paused; }
@keyframes pm-board-x {
  0%, 12% { transform: translateX(0); }
  78%, 100% { transform: translateX(var(--pm-shift, 0px)); }
}
@media (max-width: 720px) {
  .pm-board__bar { flex-wrap: wrap; padding: 8px; }
  .pm-board__win { order: 5; flex: 1 1 100%; }
  .pm-board__post { margin-left: auto; }
  .pm-board__track li span { font-size: 14px; }
  .pm-board__form { flex-wrap: wrap; }
  .pm-board__form input { flex: 1 1 100%; }
  .pm-board__form button { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .pm-board__track,
  .pm-board__track li span { animation: none !important; }
  .pm-board__track li:not(:first-child) { display: none; }
}
