:root {
  color-scheme: dark;
  --ink: #181513;
  --panel: #24201c;
  --cream: #fff4dc;
  --muted: #c5b8a5;
  --red: #fb4a35;
  --yellow: #ffe351;
  --line: #554639;
  font-family: "Pretendard", system-ui, "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--cream); background: var(--ink); line-height: 1.55; }
.festival-home {
  --paper: #201c22;
  --cream: #f6eeeb;
  --muted: #d0c0c6;
  --red: #f7aeaa;
  --line: #4a3b43;
  --number-font: "Barlow Condensed", "Arial Narrow", sans-serif;
  background: #19171b;
  font-family: "Pretendard Variable", "Pretendard", system-ui, "Malgun Gothic", sans-serif;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
:focus-visible { outline: 3px solid #92c0ff; outline-offset: 4px; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.festival-header { border-bottom: 1px solid var(--line); }
.header-row { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.festival-brand { font-weight: 950; letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.festival-brand span { margin-left: .45em; font: 700 .72em ui-monospace, monospace; color: var(--yellow); }
.festival-home .wrap { width: calc(100% - 42px); }
.festival-home .festival-header, .invitation { width: min(100%, 560px); margin-inline: auto; }
.festival-home .festival-header { background: #2b232c; }
.festival-home .header-row { min-height: 52px; }
.festival-home .festival-brand { font-size: 1rem; font-weight: 800; }
.mast-date { color: var(--muted); font: 700 1.12rem/1 var(--number-font); letter-spacing: .05em; }
.invitation { background: linear-gradient(155deg, #2b232c, var(--paper) 70%); }
.poster { display: block; }
.poster img { display: block; width: 100%; height: auto; }
.invite-details { padding-top: 18px; }
.event-date, .event-venue { color: var(--muted); margin: 0; font-size: .96rem; }
.event-date strong { color: var(--cream); font: 700 1.13rem/1 var(--number-font); font-variant-numeric: tabular-nums; }
.event-venue { margin-top: 4px; }
.invite-navigation { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.invite-navigation a, .festival-button { color: var(--red); text-underline-offset: 4px; font-size: .86rem; font-weight: 680; }
.invite-navigation a:hover, .festival-button:hover { color: var(--cream); }
.festival-section { padding-block: 24px; }
.festival-section h2 { margin: 0 0 13px; color: var(--cream); font-size: 1.16rem; font-weight: 800; line-height: 1.25; letter-spacing: -.035em; }
.festival-section.team-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 21px; }
.team-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: min(47%, 156px); margin: 0; padding: 0; list-style: none; }
.team-list img { display: block; width: 100%; height: auto; }
.team-row h2 { margin: 0; }
.activity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.operator-games { margin-top: 24px; }
.activity { position: relative; color: var(--ink); background: var(--cream); display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 202px; padding: 19px; text-decoration: none; border-radius: 5px; }
.activity.rhythm { background: var(--red); }
.activity.song { background: var(--yellow); }
.activity:hover strong { text-decoration: underline; }
.activity-kind { font-size: .76rem; font-weight: 850; padding-right: 20px; }
.activity strong { font-size: clamp(1.4rem, 3.2vw, 2.7rem); line-height: 1.06; letter-spacing: -.075em; }
.activity > span:nth-last-child(2) { font-size: .88rem; font-weight: 650; }
.activity-arrow { position: absolute; right: 13px; top: 12px; font-size: 1.3rem; }
.schedule-layout, .photo-section, .venue-section { border-top: 1px solid var(--line); }
.schedule-section, .photo-section, .venue-section { scroll-margin-block-start: 16px; }
.schedule { margin: 0; }
.schedule > div { display: grid; grid-template-columns: 83px minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.schedule > div:last-child { border-bottom: 0; }
.schedule dt { color: var(--red); font: 600 1.06rem/1.4 var(--number-font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.schedule dd { margin: 0; font-size: .92rem; font-weight: 560; word-break: keep-all; }
.photo-section { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 19px; }
.photo-section h2 { margin: 0 0 7px; }
.photo-section p { margin: 0; color: var(--muted); font-size: .9rem; }
.venue-section { padding-bottom: 32px; }
.venue-name { font-weight: 750; font-size: 1rem; margin: 0 0 4px; }
.venue-info address, .venue-station { color: var(--muted); font-size: .9rem; font-style: normal; margin: 0; }
.venue-links { display: flex; flex-wrap: wrap; gap: 9px 15px; margin-top: 11px; }
.venue-map { min-width: 0; margin-top: 16px; }
.venue-map .root_daum_roughmap { width: 100% !important; color-scheme: light; }
.venue-map .root_daum_roughmap:empty { display: none; }
.tool { max-width: 1160px; margin: 0 auto; padding: 32px 24px 52px; }
.tool h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.03; letter-spacing: -.07em; margin: 0 0 12px; }
.tool h2 { margin: 0 0 14px; font-size: 1.22rem; }
.tool p { margin-block: 0 10px; }
.tool .muted { color: var(--muted); font-size: .92rem; }
.tool button, .tool input:not([type="range"], [type="file"]), .tool textarea { border: 1px solid var(--line); border-radius: 5px; background: #302820; color: var(--cream); padding: .55em .75em; }
.tool button:hover:enabled { border-color: var(--yellow); }
.tool .primary { background: var(--yellow); color: var(--ink); border-color: var(--yellow); font-weight: 850; }
.tool .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: clamp(13px, 3vw, 22px); margin-top: 17px; }
.toolbar { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-block: 14px; }
.field-grid label { display: grid; gap: 6px; min-width: 0; font-weight: 680; }
.field-grid input { width: 100%; min-width: 0; }
.tool input[type=file] { max-width: 100%; }
.tool textarea { width: 100%; resize: vertical; min-height: 8em; }
.tool label { overflow-wrap: anywhere; }
.tool output { font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .activity-grid { grid-template-columns: 1fr; }
  .activity { min-height: 145px; }
  .field-grid { grid-template-columns: 1fr; }
  .tool { padding-inline: 16px; }
}
@media (max-width: 360px) {
  .festival-home .wrap { width: calc(100% - 32px); }
  .schedule > div { grid-template-columns: 73px minmax(0, 1fr); gap: 8px; }
}
