:root {
  --bg: #fbecd9;
  --nav: #f4b779;
  --orange: #e16515;
  --orange-deep: #cf5810;
  --ink: #1c140e;
  --muted: #5e5348;
  --card: #ffffff;
  --line: #f0e2d0;
  --shadow: 0 10px 26px rgba(120, 72, 24, 0.07);
  --radius: 22px;
  --font: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
}

button, input, select, textarea { font-family: inherit; }

button { cursor: pointer; }

img, video, canvas { max-width: 100%; }

p, h1, h2, h3, li, figcaption, .title-link, .tagline, .schedule-copy {
  overflow-wrap: anywhere;
}

a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap {
  width: min(1140px, calc(100% - 36px));
  width: min(1140px, calc(100% - 36px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  margin: 0 auto;
  padding: 18px 0 40px;
}

.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  text-decoration: none;
  color: inherit;
}

.tagline {
  margin: 0 0 2px;
  font-size: 0.98rem;
  font-weight: 500;
}

h1 {
  margin: 0;
  font-size: 2.05rem;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.25;
}

.auth {
  display: flex;
  gap: 8px;
  padding-top: 22px;
  flex-shrink: 0;
}

.hello {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 4px;
  font-weight: 800;
}

.btn {
  border-radius: 999px;
  min-height: 42px;
  padding: 8px 18px;
  font-size: 0.98rem;
  font-weight: 700;
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--ink);
}

.btn-login {
  background: #fffaf4;
  border-color: #e8b48a;
  color: #c45d16;
}

.btn-login:hover { background: #fff; }

.btn-solid {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.btn-solid:hover { background: var(--orange-deep); }

.btn-ghost {
  background: #fff;
  border-color: var(--line);
}

.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 16px 0;
  padding: 10px 12px;
  background: var(--nav);
  border-radius: 8px;
}

.nav a {
  text-decoration: none;
  font-weight: 700;
  color: #2b2118;
  padding: 8px 16px;
  border-radius: 999px;
  line-height: 1.2;
}

.nav a:hover { background: rgba(255, 255, 255, 0.28); }

.nav a[aria-current="page"] {
  background: var(--orange);
  color: #fff;
}

.view[hidden] { display: none !important; }

.home-top,
.home-bottom {
  display: grid;
  gap: 16px;
}

.home-top { grid-template-columns: minmax(0, 1.72fr) minmax(260px, 0.82fr); }

.home-bottom {
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.22fr) minmax(250px, 0.82fr);
  margin-top: 16px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}

.home-top { align-items: start; }

.hero {
  position: relative;
  min-width: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #d5e2c4;
}

.hero-stage {
  position: relative;
  aspect-ratio: 16 / 9;
}

.hero-stage img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.hero-stage img.is-on { opacity: 1; }

.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(28, 20, 14, 0.28);
}

.hero-nav.prev { left: 12px; }
.hero-nav.next { right: 12px; }

.hero-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.hero-dots {
  grid-column: 2;
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(28, 20, 14, 0.38);
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
}

.hero-dot.is-on { background: #fff; transform: scale(1.15); }

.hero-pause {
  grid-column: 3;
  justify-self: end;
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(28, 20, 14, 0.55);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
}

.news,
.schedule,
.memories,
.weather {
  padding: 18px 20px 16px;
}

.news {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.icon {
  width: 26px;
  height: 26px;
  color: var(--orange);
  flex: 0 0 auto;
}

.icon.sun { color: #f0b429; }

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-list button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 5px 0;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  border-radius: 8px;
}

.news-list button:hover { color: var(--orange-deep); }

.news-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.news-foot p {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.45;
}

.schedule-copy {
  margin: 8px 0 0;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.45;
}

.schedule-copy strong { font-weight: 900; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-head .card-title { margin-bottom: 10px; }

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f3f1ef;
  color: #4d463f;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  border: 0;
}

.chip:hover, .chip.is-on {
  background: var(--orange);
  color: #fff;
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.shot {
  display: block;
  padding: 0;
  border: 0;
  background: #efe4d4;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1.45 / 1;
}

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

.side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.weather { padding-bottom: 14px; }

.weather-title {
  margin: 0;
  font-size: 1.15rem;
}

#home { position: relative; }

.sparkle {
  position: absolute;
  right: -6px;
  bottom: 36px;
  width: 22px;
  height: 22px;
  background: #fffdf8;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  opacity: 0.95;
  pointer-events: none;
}

.page-head { margin: 8px 0 16px; }

.page-head.row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--orange-deep);
  font-weight: 700;
}

.page-head h2,
.block-title {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.block-title { margin: 22px 0 12px; }

.split {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 16px;
}

.prose { padding: 22px 24px; }

.prose p { margin: 0 0 12px; font-size: 1.05rem; }
.prose p:last-child { margin-bottom: 0; }

.info-list { padding: 22px 24px; }
.info-list h3 { margin: 0 0 12px; font-size: 1.2rem; }
.info-list ul { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.info-list li:first-child { border-top: 0; }
.info-list strong { font-weight: 800; }

.member-grid {
  display: grid;
  gap: 14px;
}

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

.member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.member strong, .member span { display: block; }
.member span:last-child { color: var(--muted); font-weight: 500; font-size: 0.95rem; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }

.title-list { display: grid; gap: 10px; }

.calendar { padding: 18px 18px 14px; margin-bottom: 16px; }

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.cal-head h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.cal-nav {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff4ea;
  color: var(--orange-deep);
  font-size: 1.7rem;
  line-height: 1;
}

.cal-nav:hover { background: #ffe4cc; }

.cal-weekdays,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.cal-weekdays span {
  text-align: center;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--muted);
}

.cal-weekdays span:first-child { color: #c4472d; }
.cal-weekdays span:last-child { color: #2a6f97; }

.cal-day {
  min-width: 0;
  min-height: 108px;
  padding: 6px;
  border-radius: 14px;
  background: #fffaf5;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.cal-day.is-blank { background: transparent; }

.cal-day.is-today { box-shadow: inset 0 0 0 2px var(--orange); }

.cal-day.has-event { background: #fff1e4; }

.cal-add {
  align-self: flex-start;
  min-width: 28px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--ink);
  border-radius: 8px;
}

.cal-day.is-sun .cal-add { color: #c4472d; }
.cal-day.is-sat .cal-add { color: #2a6f97; }
.cal-day.is-holiday { background: #fff1ef; }
.cal-day.is-holiday .cal-add { color: #c4472d; }

.cal-marks { display: flex; flex-direction: column; gap: 1px; }

.cal-mark {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.cal-mark.is-holiday { color: #c4472d; }
.cal-mark.is-term { color: #2a6b45; }

.cal-event {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1.3;
  padding: 3px 5px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-hint {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.event-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.event-link .title-when {
  color: var(--orange-deep);
  font-size: 0.92rem;
}

.title-link {
  display: block;
  width: 100%;
  padding: 14px 18px;
  text-align: left;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.title-link.is-hidden { display: none; }

.modal-card.is-wide { width: min(760px, 100%); }

.media-stage { margin-top: 12px; }

.track-list { display: grid; gap: 16px; }

.track-name {
  margin: 0 0 6px;
  font-weight: 800;
}

.game-empty { grid-column: 1 / -1; }

.card-shot {
  aspect-ratio: auto;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: 18px;
  text-align: left;
}

.card-shot img {
  aspect-ratio: 4 / 3;
  height: auto;
}

.card-shot span {
  display: block;
  padding: 10px 12px 12px;
  font-weight: 800;
}

.card-shot.is-hidden { display: none; }

.search { display: block; margin-bottom: 14px; }

.search input,
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1.5px solid #eadccb;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 1rem;
  color: var(--ink);
}

.search input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(225, 101, 21, 0.35);
  border-color: var(--orange);
}

.board-list { display: grid; gap: 12px; }

.post {
  padding: 16px 18px;
  text-align: left;
  width: 100%;
  border: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.post-tag {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--orange-deep);
  font-weight: 800;
  font-size: 0.92rem;
}

.post h3 { margin: 0 0 6px; font-size: 1.2rem; letter-spacing: -0.03em; }
.post p { margin: 0; color: var(--muted); }

.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

.timeline { display: grid; gap: 14px; }

.event { padding: 18px 20px; }
.event .when { margin: 0; color: var(--orange-deep); font-weight: 800; }
.event h3 { margin: 4px 0 8px; font-size: 1.3rem; letter-spacing: -0.03em; }
.event p { margin: 0; }

.rsvp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.rsvp button {
  min-height: 40px;
  border-radius: 999px;
  border: 1.5px solid #eadccb;
  background: #fff;
  padding: 6px 14px;
  font-weight: 700;
}

.rsvp button.is-on {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.rsvp-count { color: var(--muted); font-weight: 700; }

.media-list { display: grid; gap: 14px; }

.media-card { padding: 18px 20px; }

.media-card h3 {
  margin: 4px 0 8px;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.media-card .note { margin: 0 0 8px; }

.media-card .meta { margin: 0 0 12px; color: var(--muted); }

.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #1c140e;
}

.media-frame iframe,
.media-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.media-audio { width: 100%; }

.media-link {
  display: inline-block;
  font-weight: 800;
  color: var(--orange-deep);
}

.footer {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer p { margin: 0; }

.modal[hidden],
.lightbox[hidden] { display: none; }

.modal, .lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: auto;
}

.modal-backdrop,
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(40, 24, 10, 0.45);
  border: 0;
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  padding: 22px 22px 18px;
  box-shadow: 0 20px 50px rgba(40, 20, 0, 0.2);
}

.modal-card h2 { margin: 0 36px 14px 0; font-size: 1.4rem; }

.modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f6efe6;
  font-size: 1.4rem;
  line-height: 1;
}

.field { display: grid; gap: 6px; margin-bottom: 12px; font-weight: 700; }

.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

.head-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.item-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 12px;
  font-weight: 700;
}

.check input { width: 20px; height: 20px; }

.lightbox-actions {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.lightbox-actions[hidden] { display: none; }

.lightbox-actions .btn-ghost {
  background: #fff;
  color: var(--ink);
}

.form-note { margin: 0 0 12px; color: var(--muted); font-size: 0.92rem; font-weight: 500; }

.error { color: #b42318; font-weight: 700; min-height: 1.3em; margin: 0 0 8px; }

.post-body { white-space: pre-wrap; line-height: 1.7; }

.lightbox figure {
  position: relative;
  margin: 0;
  max-width: min(920px, 92vw);
  z-index: 1;
}

.lightbox img {
  display: block;
  max-height: 76vh;
  width: auto;
  max-width: min(920px, 92vw);
  border-radius: 16px;
  background: #111;
}

.lightbox figcaption {
  color: #fff;
  text-align: center;
  font-weight: 700;
  margin-top: 10px;
}

.lightbox-x {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  background: #2b2118;
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.game-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.game-picker[hidden],
.game-stage[hidden] { display: none !important; }

.game-custom { display: contents; }

.game-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.game-card-wrap .game-card { flex: 1; }

.game-card-tools {
  display: flex;
  gap: 8px;
}

.game-stage-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.game-frame {
  width: 100%;
  height: min(72vh, 720px);
  border: 0;
  border-radius: 16px;
  background: #fff;
}

.game-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 22px 22px 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: left;
  color: inherit;
}

.game-card:hover { background: #fffaf4; }

.game-kicker {
  color: var(--orange-deep);
  font-size: 0.86rem;
  font-weight: 800;
}

.game-card strong {
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.game-card span:last-child {
  color: var(--muted);
  font-weight: 500;
}

.game-stage { padding: 18px 18px 22px; }

.game-stage-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.game-stage-head h3 {
  margin: 0;
  text-align: center;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
}

.game-status {
  margin: 14px 0 16px;
  font-size: 1.08rem;
  font-weight: 800;
}

@media (max-width: 980px) {
  .home-top,
  .home-bottom,
  .split { grid-template-columns: 1fr 1fr; }

  .home-bottom .side-stack { grid-column: 1 / -1; }
  .member-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .wrap {
    width: calc(100% - 20px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
    padding: 12px 0 calc(28px + env(safe-area-inset-bottom, 0px));
  }

  h1 { font-size: 1.42rem; }
  .tagline { font-size: 0.9rem; line-height: 1.45; }
  .header, .page-head.row { flex-direction: column; align-items: stretch; }
  .auth { padding-top: 10px; flex-wrap: wrap; align-items: center; }
  .auth .btn { flex: 1 1 9rem; max-width: 12.5rem; }
  .hello { min-height: 0; }

  .nav {
    justify-content: flex-start;
    gap: 6px;
    margin: 12px 0;
    padding: 8px;
  }

  .nav a {
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  .home-top,
  .home-bottom,
  .split,
  .member-grid,
  .game-picker { grid-template-columns: 1fr; }

  .page-head h2 { font-size: 1.45rem; }
  .head-tools { width: 100%; justify-content: flex-start; }
  .schedule-copy { font-size: 1.08rem; }
  .card-title { font-size: 1.05rem; }
  .news, .schedule, .memories, .weather, .prose, .info-list { padding: 16px 14px; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sparkle { display: none; }

  .hero-nav {
    width: 40px;
    height: 40px;
    margin-top: -20px;
    font-size: 1.7rem;
  }

  .hero-bar { left: 8px; right: 8px; bottom: 8px; }
  .hero-dot { width: 10px; height: 10px; }

  .calendar { padding: 12px 8px 10px; }
  .cal-head h3 { font-size: 1.15rem; }
  .cal-day { min-height: 68px; padding: 3px; border-radius: 10px; }
  .cal-add { font-size: 0.88rem; min-width: 0; }
  .cal-mark {
    white-space: normal;
    text-overflow: clip;
    font-size: 0.64rem;
    line-height: 1.15;
  }
  .cal-event { font-size: 0.62rem; padding: 2px 3px; }
  .cal-grid, .cal-weekdays { gap: 3px; }
  .cal-hint { font-size: 0.86rem; }

  .title-link, .post, .event, .media-card { padding: 14px; }
  .search input, .field input, .field select, .field textarea { font-size: 16px; }

  .modal, .lightbox {
    padding: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .modal-card {
    width: 100%;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 18px;
    padding: 18px 14px 14px;
  }

  .form-actions { flex-wrap: wrap; }
  .form-actions .btn { flex: 1 1 auto; }
  .rsvp button { flex: 1 1 calc(50% - 8px); }

  .lightbox figure,
  .lightbox img { max-width: 100%; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.6rem; }
  .lightbox-nav.prev { left: 6px; }
  .lightbox-nav.next { right: 6px; }
  .lightbox-x { top: 8px; right: 8px; }

  .game-stage { padding: 14px 12px 16px; }
  .game-stage-head { grid-template-columns: 1fr 1fr; }
  .game-stage-head h3 {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: left;
    font-size: 1.2rem;
  }
  .game-stage-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .game-frame { height: min(62dvh, 640px); }
  .game-card { padding: 16px; }
  .game-card strong { font-size: 1.2rem; }

  .info-list li { grid-template-columns: 76px minmax(0, 1fr); }
  .footer { font-size: 0.9rem; }

  .toast {
    width: max-content;
    max-width: calc(100% - 24px);
    text-align: center;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast, .hero-stage img { transition: none; }
}
