/* 포트폴리오 — 문서형 디자인 (첫 화면 시안 M2)
   왼쪽 고정 메뉴 + 오른쪽 본문. 첫 화면부터 프로젝트별 역할과 구현 내용을 글로 보여 준다.
   간격: 4·8·12·16·24·32·48·64 */

:root {
  --bg: #0f1013;
  --rail: #15171b;
  --panel: #17191e;
  --panel-hover: #1d2026;
  --line: #262930;
  --line-strong: #5b606c;
  --text: #f2f3f5;
  --text-soft: #d9dce2;
  --muted: #9a9faa;
  --accent: #ffb21a;
  --accent-text: #ffb21a;
  --on-accent: #0f1013;
  --rail-width: 240px;
  --font-body: "Noto Sans KR", system-ui, sans-serif;
  --font-label: "Space Grotesk", "Noto Sans KR", sans-serif;
  --pad: clamp(16px, 2.4vw, 28px);
  color-scheme: dark;
}

/* 밝은 모드: <html data-theme="light"> (js/main.js의 전환 버튼이 설정) */
:root[data-theme="light"] {
  --bg: #f4f5f7;
  --rail: #ffffff;
  --panel: #ffffff;
  --panel-hover: #f8f9fb;
  --line: #e0e3ea;
  --line-strong: #a9afbb;
  --text: #14161b;
  --text-soft: #3a3f4a;
  --muted: #5e6472;
  --accent-text: #8a5a00;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  /* 한글이 단어 중간에서 끊기지 않고, 문단 끝에 한두 글자만 남지 않게 한다 */
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

a {
  color: var(--accent-text);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

/* ── 왼쪽 메뉴 ─────────────────────────────── */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  width: var(--rail-width);
  padding: 24px 18px;
  background: var(--rail);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  overflow-y: auto;
}

.rail__top {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.rail__name {
  display: block;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.rail__intro {
  margin: 8px 0 6px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  text-wrap: balance;
}

.rail__intro em {
  font-style: normal;
  color: var(--accent-text);
}

.rail__role {
  font-size: 12px;
  color: var(--muted);
}

.rail__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 700;
}

.rail__nav a {
  min-height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s;
}

.rail__nav a:hover {
  background: var(--panel-hover);
}

.rail__nav a.is-active {
  background: var(--accent);
  color: var(--on-accent);
}

.rail__nav .count {
  font-family: var(--font-label);
  color: var(--muted);
}

.rail__nav a.is-active .count {
  color: var(--on-accent);
}

.rail__block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.rail__block ul {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rail__block b {
  color: var(--accent-text);
}

.eyebrow {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.chips {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 4px !important;
  font-weight: 700;
}

.chips li {
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
}

.chips li.is-key {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.rail__bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.icon-link {
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.icon-link svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.icon-link.plain {
  color: var(--text);
  font-weight: 500;
}

.theme-toggle {
  align-self: flex-start;
  margin-top: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--panel-hover);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

.theme-toggle span {
  align-items: center;
  gap: 8px;
}

/* 어두운 모드에서는 "밝은 모드" 버튼, 밝은 모드에서는 "어두운 모드" 버튼 */
.theme-toggle .when-dark {
  display: inline-flex;
}

.theme-toggle .when-light,
:root[data-theme="light"] .theme-toggle .when-dark {
  display: none;
}

:root[data-theme="light"] .theme-toggle .when-light {
  display: inline-flex;
}

/* ── 본문 틀 ─────────────────────────────── */
.main {
  margin-left: var(--rail-width);
  min-width: 0;
}

.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: var(--pad);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.badge {
  padding: 1px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge--ai {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.btn {
  min-height: 48px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-right: 8px;
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--ghost {
  border: 1px solid var(--text);
  color: var(--text);
}

.btn--ghost:hover {
  background: var(--panel-hover);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  list-style: none;
  font-size: 12px;
  font-weight: 500;
}

.tags li {
  min-height: 26px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 12px;
  color: var(--muted);
}

/* ── 첫 화면: 프로젝트 목록 ─────────────────────────────── */
.home {
  padding-block: 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.group-head {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
}

.group-head h2 {
  font-size: 15px;
  font-weight: 900;
}

.group-head--ai h2 {
  color: var(--accent-text);
}

.group-head .count {
  font-family: var(--font-label);
}

.group-head p {
  font-size: 12px;
  color: var(--muted);
}

/* 프로젝트 한 줄: 이미지 + 역할과 구현 내용 + 버튼 */
.row {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.2s;
}

.row:hover,
.row--lead {
  border-color: var(--accent);
}

/* 빛 반사: 커서가 올라간 지점이 밝아진다 (js/main.js가 --gx/--gy를 갱신) */
.row::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.row:hover::before {
  opacity: 1;
}

.row__media {
  position: relative;
  flex: 0 0 270px;
  min-height: 112px;
  background: #17191e;
}

.row__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.row__body {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.row__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
}

.row__title {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 900;
}

/* 제목 링크가 줄 전체를 덮어, 줄 어디를 눌러도 상세 페이지로 간다 */
.row__title a {
  color: var(--text);
  text-decoration: none;
}

.row__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.row__meta {
  font-size: 12px;
  color: var(--muted);
}

.row__role {
  font-size: 13px;
}

.row__role b {
  margin-right: 4px;
  color: var(--accent-text);
}

.row__points {
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
}

.row__side {
  position: relative;
  z-index: 1;
  flex: 0 0 150px;
  padding: 10px 16px 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.mini {
  min-height: 36px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s;
}

.mini svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-right: 6px;
}

.mini:hover {
  background: var(--panel-hover);
}

.mini--accent {
  border-color: var(--accent);
  color: var(--accent-text);
}

.mini--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.mini--primary:hover {
  background: var(--accent);
}

/* 인턴 때 만든 Verse8 게임 */
.intern {
  padding: 8px 8px 8px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.intern__label {
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.intern__label strong {
  font-size: 13px;
}

.intern__label strong b {
  color: var(--accent-text);
}

.intern__label span {
  font-size: 12px;
  color: var(--muted);
}

.intern__games {
  flex: 1 1 520px;
  min-width: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.intern__games a {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  line-height: 1.3;
}

.intern__games a:hover strong {
  color: var(--accent-text);
}

.intern__games img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
}

.intern__games strong {
  display: block;
  font-size: 13px;
}

.intern__games small {
  font-size: 11px;
  color: var(--muted);
}

.intern .mini {
  flex: none;
  font-size: 12px;
}

/* 나머지 프로젝트: 위쪽 줄과 같은 형식의 작은 줄 (썸네일 왼쪽, 글 오른쪽) */
.pcards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pcard {
  overflow: hidden;
  display: flex;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s;
}

.pcard:hover {
  border-color: var(--accent);
}

.pcard__media {
  position: relative;
  flex: 0 0 132px;
  min-height: 74px;
  background: #17191e;
}

.pcard__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pcard__body {
  flex: 1;
  min-width: 0;
  padding: 8px 14px 8px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.pcard__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
}

.pcard__head strong {
  font-size: 15px;
  font-weight: 900;
}

.pcard__period {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

.pcard__brief {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
}

/* ── 섹션 공통 ─────────────────────────────── */
.section {
  padding-block: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.h1 {
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.h3 {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
}

/* ── 기술 스택 ─────────────────────────────── */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 12px;
}

.skill {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}

.skill__kind {
  font-size: 12px;
  color: var(--muted);
}

.skill__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 700;
}

.skill__track {
  flex: 1;
  height: 8px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.skill__fill {
  display: block;
  height: 100%;
  background: var(--accent);
}

.skill ul {
  padding-left: 18px;
  color: var(--text-soft);
}

/* ── 수상 · 이력 ─────────────────────────────── */
.career {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 12px;
  align-items: start;
}

.career__card {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.career__list {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.career__list li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
}

.career__list .when {
  flex: none;
  font-family: var(--font-label);
  font-weight: 700;
  color: var(--accent-text);
}

.career__list .sub {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}

/* ── 소개 ─────────────────────────────── */
.about {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
}

.about__text {
  flex: 7 1 420px;
  min-width: 0;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
}

.about__headline {
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.45;
  font-weight: 700;
}

.about__points {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-soft);
}

.about__contact {
  flex: 4 1 260px;
  min-width: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: flex-start;
}

.about__contact .btn {
  overflow-wrap: anywhere;
}

.footer {
  padding-block: 20px 32px;
  font-size: 12px;
  color: var(--muted);
}

/* ── 프로젝트 상세 페이지 ─────────────────────────────── */
.doc {
  max-width: 920px;
  padding-block: 16px 56px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 14px;
  line-height: 1.7;
}

/* 제목 쪽과 표지를 나란히 두어 표지가 화면을 다 차지하지 않게 한다 */
.doc__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
}

.doc__back {
  align-self: flex-start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.doc__head {
  flex: 1 1 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc__title {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.doc__summary {
  font-size: 16px;
  color: var(--text-soft);
}

.doc__head .btn {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.cover {
  flex: 0 1 380px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: flex;
  background: #17191e;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doc__section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc__section h2 {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 900;
}

.doc__section h3 {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}

.doc__section h4 {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--accent-text);
}

.doc__section h4 .comp {
  margin-left: 6px;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  vertical-align: 1px;
}

.doc__key {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: var(--panel);
}

.doc__key h2 {
  padding-top: 0;
  border-top: 0;
  font-size: 16px;
}

.doc__section p,
.doc__section ul {
  color: var(--text-soft);
}

.doc__section ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.doc__section strong {
  color: var(--text);
}

.doc__section code {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--line);
  font-size: 0.9em;
  color: var(--accent-text);
}

.tablewrap {
  overflow-x: auto;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.doc-table th,
.doc-table td {
  width: 50%;
  padding: 9px 16px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.doc-table th {
  border-top: 0;
  font-size: 13px;
  color: var(--accent-text);
}

.info {
  padding: 6px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.info__row {
  padding: 7px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 24px;
  border-top: 1px solid var(--line);
}

.info__row:first-child {
  border-top: 0;
}

.info__row dt {
  flex: 0 0 96px;
  font-size: 13px;
  color: var(--muted);
}

.info__row dd {
  flex: 1 1 260px;
}

.video {
  max-width: 640px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

.video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.doc__pager {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
}

.doc__pager a {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: border-color 0.2s;
}

.doc__pager a:hover {
  border-color: var(--accent);
}

.doc__pager .dir {
  font-size: 12px;
  color: var(--accent-text);
}

.doc__pager .next {
  text-align: right;
}

/* ── 큰 모니터: 전체를 비율대로 키워 양옆 여백과 작은 글씨를 줄인다 ───────────────
   기준 설계 폭은 1440px. 그보다 넓은 화면에서는 같은 구성을 확대해서 보여 준다. */
@media (min-width: 1680px) {
  body {
    zoom: 1.1;
  }

  .wrap {
    max-width: 1440px;
  }
}

@media (min-width: 1920px) {
  body {
    zoom: 1.2;
  }
}

@media (min-width: 2400px) {
  body {
    zoom: 1.5;
  }
}

/* ── 화면 폭에 따른 조정 ─────────────────────────────── */
@media (max-width: 1199px) {
  .row__side {
    flex-basis: 128px;
  }

  .row__media {
    flex-basis: 200px;
  }

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

@media (max-width: 959px) {
  /* 왼쪽 메뉴를 위쪽 띠로 바꾼다 */
  .rail {
    position: static;
    width: auto;
    padding: 16px var(--pad);
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 12px;
    overflow: visible;
  }

  .rail__top {
    gap: 12px;
  }

  .rail__nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .rail__nav .count,
  .rail__block {
    display: none;
  }

  .rail__bottom {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 16px;
  }

  .theme-toggle {
    margin-top: 0;
  }

  .main {
    margin-left: 0;
  }
}

@media (max-width: 719px) {
  /* 프로젝트 줄을 세로로 쌓는다 */
  .row {
    flex-direction: column;
    gap: 0;
  }

  .row__media {
    flex: none;
    aspect-ratio: 16 / 9;
  }

  .row__body {
    padding: 12px 14px 4px;
  }

  .row__side {
    flex: none;
    flex-direction: row;
    padding: 8px 14px 14px;
  }

  .row__side .mini {
    flex: 1;
    min-height: 44px;
  }

  .intern {
    padding: 12px 14px;
  }

  .intern__label {
    flex-basis: 100%;
  }

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

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

  .pcard__media {
    flex-basis: 104px;
  }

  .pcard__period {
    margin-left: 0;
    flex-basis: 100%;
  }

  .info__row dt {
    flex-basis: 100%;
  }

  .career__list .sub {
    margin-left: 0;
  }
}

/* 터치 기기에는 커서가 없으므로 빛 반사를 끈다 */
@media (hover: none) {
  .row::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
