:root {
  color-scheme: light;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  color: #233c50;
  background: #f7fafc;
  font-synthesis: none;
  --green: #295b48;
  --navy: #204f76;
  --line: #dce8eb;
  --header-height: calc(680px * 815 / 1930);
  --map-ratio: 5000 / 2881;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; opacity: .35; }
button:focus-visible, [tabindex]:focus-visible { outline: 3px solid #315fba; outline-offset: 3px; }
[hidden] { display: none !important; }
.page-header { position: relative; flex: none; display: grid; place-items: center; background: linear-gradient(105deg, #b8eafa, #e5f8fe); }
.event-banner-picture { display: block; width: 100%; max-width: 1600px; }
/* Desktop retains the mobile lettering layout; only the sky background extends across the page. */
.event-banner { display: block; width: 680px; max-width: 100%; height: auto; aspect-ratio: 1930 / 815; mask-image: linear-gradient(to right, #000 88%, transparent); }
.workspace { flex: none; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 20px; padding: 22px 28px; width: 100%; max-width: 1600px; align-self: center; }
.map-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; min-width: 0; min-height: 0; overflow: hidden; }
.map-section-heading { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 20px 12px; }
.map-section-heading h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.035em; }
.map-section-heading svg { flex: none; width: 21px; height: 21px; fill: none; stroke: #4086a1; stroke-width: 1.8; stroke-linejoin: round; }
.map-count { flex: none; padding: 4px 8px; border-radius: 7px; font-size: 11px; font-weight: 700; color: #49718d; background: #edf6fc; }
.map-toolbar { flex: none; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; background: #f1faff; border-bottom: 1px solid #e2eff6; }
.map-toolbar p { margin: 0; font-size: 14px; font-weight: 650; color: var(--navy); line-height: 1.6; word-break: keep-all; }
.all-booths-button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 12px 16px; text-align: left; color: var(--navy); border: 1px solid #bcddef; border-radius: 16px; background: linear-gradient(110deg, #eaf8ff, #d5efff); box-shadow: 0 3px 0 #c4e1ef; transition: background .15s, box-shadow .15s; }
.all-booths-icon { display: grid; place-items: center; flex: none; width: 42px; height: 46px; border: 1px solid #d3e7f2; border-radius: 12px; background: #ffffffd9; transform: rotate(-5deg); }
.all-booths-icon svg, .all-booths-arrow svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.all-booths-copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.all-booths-copy strong { font-size: 16px; font-weight: 800; letter-spacing: -.025em; }
.all-booths-copy > span { font-size: 12px; font-weight: 500; color: #51718a; }
.all-booths-arrow { display: grid; place-items: center; flex: none; width: 36px; height: 36px; margin-left: auto; border-radius: 50%; background: #ffdb69; color: #35485b; }
.all-booths-arrow svg { width: 20px; height: 20px; stroke-width: 2; }
.map-preview { position: relative; flex: none; display: block; width: 100%; min-height: 0; padding: 20px; border: 0; background: #fff; touch-action: pan-y; cursor: zoom-in; }
.map-preview > svg { display: block; width: 100%; height: auto; aspect-ratio: var(--map-ratio); overflow: hidden; pointer-events: none; }
.map-preview-label { position: absolute; right: 10px; bottom: 10px; padding: 6px 10px; color: var(--navy); background: #eaf7ff; border: 1px solid #d3e8f6; border-radius: 20px; font-size: 11px; font-weight: 700; }
.map-preview:focus-visible { outline-offset: -4px; }
.map-modal-open { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
.map-dialog { width: min(1400px, calc(100vw - 32px)); max-width: none; max-height: 96dvh; padding: 0; color: inherit; background: #fff; border: 0; border-radius: 16px; box-shadow: 0 24px 80px #02061740; overflow: hidden; overscroll-behavior: contain; }
.map-dialog::backdrop { background: #020617b3; backdrop-filter: blur(4px); }
.map-dialog-shell { max-height: 96dvh; display: flex; flex-direction: column; }
.map-dialog-header { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 18px; background: #e8f6ff; border-bottom: 1px solid var(--line); }
.map-dialog-header h2 { margin: 0; font-size: 18px; font-weight: 750; word-break: keep-all; }
.map-dialog-toolbar { flex: none; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; padding: 10px 18px; border-bottom: 1px solid #edf1ee; }
.map-dialog-toolbar p { margin: 0; font-size: 14px; line-height: 1.6; font-weight: 700; color: var(--navy); }
.map-dialog-help { flex: none; margin: 0; padding: 10px 14px; border-top: 1px solid #edf1ee; color: #68776f; text-align: center; font-size: 11px; }
.booth-dialog { width: min(896px, calc(100vw - 32px)); max-height: 90dvh; max-width: none; padding: 0; color: inherit; background: #fff; border: 0; border-radius: 24px; box-shadow: 0 24px 80px #02061740; overflow: hidden; overscroll-behavior: contain; }
.booth-dialog::backdrop { background: #020617b3; backdrop-filter: blur(4px); }
.booth-dialog .panel-content { height: auto; max-height: 90dvh; }
.booth-dialog .panel-scroll { touch-action: pan-y; }
.map-viewport { position: relative; flex: 1 1 auto; min-height: 0; min-width: 0; margin: 16px; overflow: auto; scrollbar-width: none; overscroll-behavior: contain; isolation: isolate; background: #fff; touch-action: none; user-select: none; -webkit-user-select: none; }
.map-viewport::-webkit-scrollbar { display: none; }
.map-viewport.is-zoomed { cursor: grab; }
.map-viewport.is-dragging, .map-viewport.is-dragging .booth-button { cursor: grabbing; }
.map-viewport:focus-visible { outline-offset: -4px; }
.map-stage { position: relative; width: 100%; min-width: 0; }
.map-layer { position: relative; width: 100%; aspect-ratio: var(--map-ratio); transform-origin: 0 0; will-change: transform; }
/* The white-background export preserves the original geometry; crop only its title strip. */
#gym-map { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; pointer-events: none; }
.booth-zones { position: absolute; inset: 0; }
.booth-button { position: absolute; display: block; padding: 0; margin: 0; background: transparent; border: 0; border-radius: 0; touch-action: none; }
.booth-button.is-selected { outline: var(--zone-stroke, 3px) solid var(--green); outline-offset: calc(-1 * var(--zone-stroke, 3px)); }
.booth-button:focus-visible { outline: var(--zone-stroke, 3px) solid #315fba; outline-offset: var(--zone-stroke, 3px); }
@media (hover: hover) { .booth-button:hover { box-shadow: inset 0 0 0 var(--zone-stroke, 3px) #295b4870; } .close-button:hover { background: #e8f6ff; } .all-booths-button:hover:not(:disabled) { background: linear-gradient(110deg, #e1f5ff, #c6e8fc); box-shadow: 0 4px 0 #b6d9eb; } .panel-footer button:hover { background: #163b5b; } }
.load-status { margin: 12px; padding: 12px; background: #fff8e6; border: 1px solid #eadab2; border-radius: 8px; font-size: 14px; line-height: 1.6; }
.map-footer { flex: none; display: flex; justify-content: center; padding: 12px 20px; border-top: 1px solid #edf1ee; }
.detail-panel { align-self: start; min-width: 0; min-height: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.panel-empty { padding: 28px 20px; text-align: center; }
.subject-marks { display: flex; justify-content: center; gap: 9px; margin-bottom: 24px; }
.subject-marks span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; font-size: 30px; font-weight: 800; }
.subject-marks .subject-math { background: #fff0be; color: #9b7520; transform: rotate(-7deg); }
.subject-marks .subject-info { background: #ddedf3; color: #2779aa; transform: rotate(4deg); }
.subject-marks .subject-science { background: #ddeee5; color: #38895e; transform: rotate(-3deg); }
.subject-marks svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.panel-empty h2 { margin: 0 0 12px; font-size: 17px; letter-spacing: -.04em; }
.panel-empty p { color: #5b6d78; font-size: 14px; line-height: 1.9; margin: 0; }
.panel-content { height: 100%; display: flex; flex-direction: column; }
.panel-header { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 18px; border-bottom: 1px solid #e2eff6; background: #f1faff; }
.detail-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.zone-label { font-size: 14px; font-weight: 750; }
.category-label { font-size: 12px; font-weight: 700; padding: 5px 8px; border-radius: 6px; }
.close-button { display: flex; align-items: center; justify-content: center; flex: none; gap: 6px; min-width: 64px; height: 44px; background: #fff; border: 1px solid #dce5e0; border-radius: 7px; font-size: 12px; }
.close-button span { font-size: 21px; font-weight: 400; }
.panel-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 26px 24px 32px; scrollbar-gutter: stable; }
.panel-scroll h2 { font-size: 23px; font-weight: 750; line-height: 1.4; letter-spacing: -.025em; word-break: keep-all; overflow-wrap: anywhere; margin: 0 0 20px; }
.panel-scroll h2:focus { outline: none; }
.program-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px 14px; margin: 14px 0 0; padding-top: 10px; border-top: 1px solid #e8eef3; color: #64758a; font-size: 11.5px; line-height: 1.5; }
.program-meta:has(> [hidden]):not(:has(> :not([hidden]))) { display: none; }
.program-meta > div { display: flex; align-items: flex-start; gap: 5px; min-width: 0; }
.program-meta > div:first-child { flex: 1; }
.program-meta > div:last-child { flex: none; white-space: nowrap; }
.program-meta > div::before { content: ''; flex: none; width: 12px; height: 12px; margin-top: 2px; background: #7b86a2; mask: var(--meta-icon) center / contain no-repeat; }
.program-meta > div:first-child { --meta-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='7' r='3'/%3E%3Cpath d='M2 20v-2a7 7 0 0 1 14 0v2M17 4a3 3 0 0 1 0 6m2 3a6 6 0 0 1 3 5v2'/%3E%3C/g%3E%3C/svg%3E"); }
.program-meta > div:last-child { --meta-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='14' r='8'/%3E%3Cpath d='M12 6V3m-3 0h6m-3 7v4l3 2m3-10 2-2'/%3E%3C/g%3E%3C/svg%3E"); }
.program-meta dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.program-meta dd { margin: 0; font-weight: 500; word-break: keep-all; overflow-wrap: anywhere; }
.description-block { border: 1px solid #e1eaf0; background: #f8fbfd; border-radius: 16px; padding: 20px; }
.description-block h3 { margin: 0 0 13px; font-size: 12px; font-weight: 650; color: #6b7a71; }
.description-block p { margin: 0; font-size: 15px; line-height: 1.95; word-break: keep-all; overflow-wrap: anywhere; white-space: pre-wrap; }
.panel-footer { flex: none; padding: 0 24px 24px; }
.panel-footer button { width: 100%; min-height: 44px; border: 0; border-radius: 12px; background: var(--navy); color: white; font-size: 14px; font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.noscript { position: fixed; bottom: 0; background: #fff8e6; padding: 12px; }
.has-all-booths { height: auto; min-height: 100dvh; }
.has-all-booths .workspace { flex: none; height: auto; }
.all-booths { width: 100%; max-width: 1500px; align-self: center; padding: 12px 28px 32px; scroll-margin-top: 12px; }
.all-booths-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; padding: 24px; border: 1px solid #d1e6f2; border-radius: 20px; background: linear-gradient(110deg, #e9f7ff, #f4fbff); }
.section-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .03em; color: #51718a; margin: 0 0 10px; }
.eyebrow-dots { display: flex; gap: 4px; }
.eyebrow-dots i { width: 6px; height: 6px; border-radius: 50%; background: #ff603d; }
.eyebrow-dots i:nth-child(2) { background: #ffcd32; }
.eyebrow-dots i:nth-child(3) { background: #237fce; }
.all-booths-header h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0; font-size: 25px; letter-spacing: -.04em; }
.booth-count { padding: 4px 8px; border-radius: 20px; background: #fff0bb; color: #55623f; font-size: 12px; font-weight: 700; letter-spacing: 0; }
.all-booths-intro { margin: 9px 0 0; font-size: 13px; line-height: 1.6; color: #5d7688; word-break: keep-all; }
.back-to-map { flex: none; min-height: 44px; padding: 8px 14px; border: 1px solid #c7dfec; border-radius: 24px; background: #ffffffdb; color: var(--navy); font-size: 12px; font-weight: 650; }
.all-booths-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.program-card { padding: 22px 24px 24px; border: 1px solid var(--line); border-top: 5px solid var(--card-tint, #dce8eb); border-radius: 20px; background: #fff; min-width: 0; box-shadow: 0 3px 12px #224f7405; }
.program-card .detail-tags { justify-content: space-between; gap: 10px; }
.program-card .zone-label { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 12px; border-radius: 11px; background: var(--card-tint, #e8ebe9); font-size: 14px; font-weight: 800; }
.program-card .category-label { padding: 5px 9px; font-size: 11px; border-radius: 20px; }
.program-card h3 { margin: 18px 0; font-size: 21px; line-height: 1.5; letter-spacing: -.035em; word-break: keep-all; overflow-wrap: anywhere; }
.program-description { margin: 0; padding-top: 16px; border-top: 1px dashed #dce8eb; font-size: 15px; line-height: 1.9; color: #506676; word-break: keep-all; overflow-wrap: anywhere; white-space: pre-wrap; }
@media (max-width: 1050px) { .workspace { grid-template-columns: minmax(0, 1fr) 290px; gap: 14px; padding: 18px; } .map-toolbar { padding: 12px 16px; } .panel-scroll { padding: 20px; } .panel-scroll h2 { font-size: 21px; } }
@media (max-width: 760px) {
  :root { --header-height: calc(100vw * 815 / 1930); }
  body { height: auto; min-height: 100vh; min-height: 100dvh; }
  .event-banner { width: 100%; mask-image: none; }
  .workspace, .has-all-booths .workspace { flex: none; display: flex; flex-direction: column; height: auto; min-height: 0; padding: 12px 0 max(16px, env(safe-area-inset-bottom)); gap: 12px; }
  .map-card { flex: none; border-radius: 18px; border-inline: 0; }
  .map-toolbar { padding: 12px; }
  .map-section-heading { padding: 14px 12px 12px; }
  .map-section-heading h2 { gap: 6px; font-size: 15px; }
  .map-section-heading svg { width: 18px; height: 18px; }
  .map-toolbar p { font-size: 12px; letter-spacing: -.025em; }
  .map-preview { flex: none; padding: 16px; }
  .map-preview > svg { height: auto; aspect-ratio: var(--map-ratio); }
  .map-preview-label { position: static; display: table; margin: 10px 0 0 auto; font-size: 10px; }
  .all-booths-button { width: 100%; min-height: 70px; padding: 10px 12px; gap: 11px; border-radius: 14px; }
  .all-booths-copy strong { font-size: 15px; }
  .all-booths-copy > span { font-size: 10px; }
  .all-booths-icon { width: 36px; height: 40px; border-radius: 10px; }
  .all-booths-arrow { width: 32px; height: 32px; }
  .map-footer { padding: 10px 12px 13px; }
  .map-dialog { width: calc(100vw - 16px); }
  .map-viewport { margin: 12px; }
  .map-dialog-header { padding: 10px 12px; }
  .map-dialog-header h2 { font-size: 15px; }
  .map-dialog-header h2 { font-size: 16px; }
  .map-dialog-toolbar { justify-content: center; padding: 8px 12px; }
  .map-dialog-toolbar p { flex-basis: 100%; text-align: center; font-size: 12px; }
  .map-dialog-help { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .detail-panel { align-self: stretch; flex: none; margin-inline: 12px; border-radius: 18px; }
  .panel-empty { position: relative; padding: 22px 14px; }
  .subject-marks { gap: 8px; margin-bottom: 16px; }
  .subject-marks span { width: 38px; height: 38px; border-radius: 12px; font-size: 25px; }
  .subject-marks svg { width: 28px; height: 28px; }
  .panel-empty h2 { margin-bottom: 8px; font-size: 16px; }
  .panel-empty p { font-size: 13px; line-height: 1.7; }
  .panel-content { height: auto; }
  .panel-header { padding: 8px 14px; }
  .panel-scroll { padding: 16px; }
  .panel-scroll h2 { font-size: 19px; margin-bottom: 16px; }
  .description-block { padding: 16px; }
  .description-block p { font-size: 14px; line-height: 1.85; }
  .description-block h3 { margin-bottom: 10px; }
  .panel-footer { padding: 0 16px 16px; }
  .all-booths { padding: 12px 12px max(24px, env(safe-area-inset-bottom)); }
  .all-booths-header { align-items: flex-start; flex-direction: column; gap: 14px; padding: 20px 18px; border-radius: 18px; margin-bottom: 16px; }
  .all-booths-header h2 { font-size: 20px; }
  .all-booths-intro { font-size: 12px; }
  .back-to-map { font-size: 11px; padding-inline: 12px; }
  .all-booths-list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .program-card { padding: 18px; border-radius: 18px; }
  .program-card h3 { font-size: 19px; }
  .program-description { font-size: 14px; }
}
