:root {
    --bg: #f6f8fc;
    --text: #0f172a;
    --muted: #475569;
    --line: #dce3ef;
    --card: #ffffff;
    --accent: #1d4ed8;
    --chip: #eef2ff;
    --btn-bg: #0f172a;
    --btn-text: #ffffff;
    --btn-border: #0f172a;
    --header-bg: #ffffff;
    --shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    --sticky-glass: rgba(255, 255, 255, 0.76);
    --sticky-header-h: 68px;
    --sticky-primary-h: 72px;
    --sticky-gap: 10px;
}

body.dark-mode {
    --bg: #0b1220;
    --text: #e6edf7;
    --muted: #b4c2d8;
    --line: #2a3650;
    --card: #111a2d;
    --accent: #7aa6ff;
    --chip: #1a2640;
    --btn-bg: #7aa6ff;
    --btn-text: #0b1220;
    --btn-border: #7aa6ff;
    --header-bg: #111a2d;
    --shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
    --sticky-glass: rgba(17, 26, 45, 0.76);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Noto Sans KR", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 10% -20%, rgba(29, 78, 216, 0.12), transparent 34%), var(--bg);
    opacity: 1;
    transition: opacity 0.28s ease, background-color 0.25s ease, color 0.25s ease;
}

body.page-exit {
    opacity: 0;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
}

.logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    color: transparent;
    background-color: #0b1220;
    background-image: url("assets/brand/goseoul-favicon.svg");
    background-size: cover;
    background-position: center;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(148, 163, 184, 0.42);
}

.logo-text {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    line-height: 1;
}

.logo-seoul {
    font-family: "Cinzel", serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: var(--text);
}

.logo-go {
    font-family: "Cinzel", serif;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-nav {
    display: flex;
    gap: 10px;
}

.top-nav a {
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--muted);
    padding: 7px 12px;
    border-radius: 999px;
}

.top-nav a.active,
.top-nav a:hover {
    color: var(--text);
    background: var(--chip);
}

.theme-toggle-btn {
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 30px auto 56px;
}

.container.narrow {
    width: min(760px, calc(100% - 32px));
}

.hero {
    margin-bottom: 20px;
}

.global-badges {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge-lite {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--muted);
    background: var(--card);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero h1,
.panel h1,
.detail-content h1 {
    margin: 0;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    letter-spacing: -0.03em;
}

.hero p,
.detail-content p,
.panel p {
    color: var(--muted);
    line-height: 1.66;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    box-shadow: var(--shadow);
    padding: 12px;
    margin-bottom: 18px;
}

.filter-bar label {
    font-size: 0.9rem;
    font-weight: 700;
}

.filter-bar select {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 10px;
    font: inherit;
    color: var(--text);
    background: var(--card);
}

.style-tab-panel {
    padding: 8px 10px;
}

.inline-control-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.inline-control-title {
    margin: 0;
    flex: 0 0 auto;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
}

.sticky-panel {
    position: sticky;
    z-index: 18;
    background: transparent;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.sticky-primary {
    top: calc(var(--sticky-header-h) + var(--sticky-gap));
}

.sticky-secondary {
    top: calc(var(--sticky-header-h) + var(--sticky-primary-h) + (var(--sticky-gap) * 2));
    z-index: 17;
}

.style-tab-title {
    margin: 0 0 6px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--muted);
}

.style-tab-row {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.style-tab-btn {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--muted);
    border-radius: 999px;
    padding: 6px 9px;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.style-tab-btn.active {
    color: var(--text);
    border-color: var(--accent);
    background: var(--chip);
}

.result-count {
    margin: 0;
    flex: 0 0 auto;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    font-size: 0.75rem;
    color: var(--muted);
    white-space: nowrap;
}

.search-panel {
    margin-top: 8px;
    padding: 8px 10px;
}

.journey-nav {
    padding: 12px;
}

.journey-steps {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    min-width: 0;
}

.journey-step-link {
    flex: 0 0 auto;
    display: block;
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 6px 9px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--muted);
    background: var(--card);
    text-align: center;
}

.journey-step-link:hover {
    border-color: var(--accent);
    background: var(--chip);
    color: var(--text);
}

.search-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.search-input,
.sort-select {
    width: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 10px;
    font: inherit;
    font-size: 0.86rem;
    color: var(--text);
    background: var(--card);
}

.search-input {
    flex: 0 0 220px;
}

.sort-select {
    flex: 0 0 106px;
}

.quick-tag-list {
    margin-top: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    flex: 0 0 auto;
}

.tag-chip {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 9px;
    font: inherit;
    font-size: 0.74rem;
    color: var(--muted);
    background: var(--card);
    cursor: pointer;
}

.tag-chip.active {
    color: var(--text);
    border-color: var(--accent);
    background: var(--chip);
    font-weight: 700;
}

.place-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.place-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: var(--card);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.place-card:hover {
    transform: translateY(-2px);
}

.place-card-body {
    padding: 16px;
}

.place-card h2 {
    margin: 0;
    font-size: 1.06rem;
}

.place-rank {
    display: inline-block;
    margin-bottom: 8px;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.74rem;
    font-weight: 800;
    background: var(--chip);
    color: var(--text);
}

.place-meta {
    margin: 8px 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.place-desc {
    margin: 0 0 12px;
    font-size: 0.91rem;
    color: var(--muted);
}

.style-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 12px;
}

.style-badge {
    font-size: 0.74rem;
    font-weight: 800;
    border-radius: 999px;
    padding: 4px 9px;
    border: 1px solid transparent;
}

.style-history { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
.style-shopping { background: #dbeafe; color: #1d4ed8; border-color: #93c5fd; }
.style-night { background: #e0e7ff; color: #4338ca; border-color: #a5b4fc; }
.style-nature { background: #dcfce7; color: #166534; border-color: #86efac; }
.style-family { background: #ffe4e6; color: #9f1239; border-color: #fda4af; }
.style-art { background: #fae8ff; color: #86198f; border-color: #f0abfc; }
.style-local { background: #ffedd5; color: #9a3412; border-color: #fdba74; }

body.dark-mode .style-history { background: #3a2f11; color: #fcd34d; border-color: #b38716; }
body.dark-mode .style-shopping { background: #102a55; color: #93c5fd; border-color: #3b82f6; }
body.dark-mode .style-night { background: #24215c; color: #c7d2fe; border-color: #818cf8; }
body.dark-mode .style-nature { background: #163a2a; color: #86efac; border-color: #22c55e; }
body.dark-mode .style-family { background: #4a1f2d; color: #fecdd3; border-color: #f43f5e; }
body.dark-mode .style-art { background: #3f1f47; color: #f5d0fe; border-color: #d946ef; }
body.dark-mode .style-local { background: #4c2b18; color: #fed7aa; border-color: #fb923c; }

.button-link,
.clean-form button {
    display: inline-block;
    border: 1px solid var(--btn-border);
    background: var(--btn-bg);
    color: var(--btn-text);
    text-decoration: none;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}

.back-link {
    display: inline-block;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 14px;
}

.detail-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.detail-content {
    padding: 18px;
}

.meta-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.meta-item {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
}

.meta-item span {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
}

.meta-item strong {
    font-size: 0.98rem;
}

.panel {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
    box-shadow: var(--shadow);
    padding: 18px;
    margin-top: 18px;
}

.panel:not(.sticky-panel) {
    content-visibility: auto;
    contain-intrinsic-size: 1px 560px;
}

.panel.sticky-panel {
    background: var(--sticky-glass);
    backdrop-filter: blur(8px) saturate(125%);
    -webkit-backdrop-filter: blur(8px) saturate(125%);
}

.panel h2 {
    margin: 0 0 12px;
    font-size: 1.1rem;
}

.panel h3 {
    margin: 0 0 8px;
    font-size: 0.96rem;
}

.trust-panel {
    margin-top: 24px;
}

.travel-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

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

.tool-intro {
    margin: 0 0 10px;
    font-size: 0.9rem;
}

.phrase-grid {
    display: grid;
    gap: 8px;
}

.phrase-item {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 10px;
    background: var(--card);
}

.phrase-kr {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text);
}

.phrase-sub {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.phrase-copy-btn {
    margin-top: 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 10px;
    font: inherit;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--muted);
    background: var(--card);
}

.phrase-copy-btn:hover {
    border-color: var(--accent);
    color: var(--text);
    background: var(--chip);
}

.fx-grid {
    display: grid;
    gap: 8px;
}

.fx-grid label {
    margin-top: 2px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
}

.trust-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.geo-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.geo-card,
.faq-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    background: var(--card);
}

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

.generation-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.generation-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.generation-card p {
    margin-top: 0;
}

.generation-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 10px;
}

.generation-chip {
    display: inline-block;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--muted);
    background: var(--chip);
}

.open-landing {
    margin-top: 0;
    background:
        radial-gradient(circle at 10% 15%, rgba(29, 78, 216, 0.16), transparent 36%),
        radial-gradient(circle at 92% 18%, rgba(15, 23, 42, 0.12), transparent 34%),
        var(--card);
    border: 1px solid rgba(29, 78, 216, 0.12);
}

.entry-first-screen {
    min-height: calc(100vh - 96px);
    display: grid;
    align-content: start;
    gap: 10px;
}

.open-secondary {
    background: var(--card);
}

.open-plan-grid {
    margin-top: 14px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.entry-primary-cta-wrap {
    margin-top: 12px;
}

.entry-spark-box {
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    background: linear-gradient(145deg, rgba(29, 78, 216, 0.08), rgba(15, 23, 42, 0.02));
}

.entry-spark-title {
    margin-bottom: 8px;
}

.entry-spark-btn {
    width: 100%;
    font-weight: 800;
}

.entry-spark-result {
    margin-top: 8px;
    border: 1px dashed var(--line);
    border-radius: 10px;
    padding: 10px;
    background: var(--card);
}

.entry-quick-ui,
.fun-mini-ui {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 10px;
}

.ui-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--chip);
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.ui-chip.tone-spot {
    background: #fff5e8;
    border-color: #ffd8a8;
    color: #9a4b00;
}

.ui-chip.tone-route {
    background: #eaf2ff;
    border-color: #bcd3ff;
    color: #1d4ed8;
}

.ui-chip.tone-map {
    background: #ecfff5;
    border-color: #b6f0d2;
    color: #047857;
}

.ui-chip.tone-type {
    background: #f3edff;
    border-color: #d9c8ff;
    color: #6d28d9;
}

.ui-chip.tone-weather {
    background: #eaf9ff;
    border-color: #bae6fd;
    color: #0369a1;
}

.ui-chip.tone-budget {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #c2410c;
}

.ui-chip.tone-food {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}

body.dark-mode .ui-chip.tone-spot {
    background: #3a2a15;
    border-color: #7a5522;
    color: #ffd8a8;
}

body.dark-mode .ui-chip.tone-route {
    background: #1b2d52;
    border-color: #34599f;
    color: #c9dcff;
}

body.dark-mode .ui-chip.tone-map {
    background: #163126;
    border-color: #2a6b4f;
    color: #b4f1d6;
}

body.dark-mode .ui-chip.tone-type {
    background: #2c1f4b;
    border-color: #5f3da6;
    color: #dfceff;
}

body.dark-mode .ui-chip.tone-weather {
    background: #173248;
    border-color: #2f6d93;
    color: #bfe8ff;
}

body.dark-mode .ui-chip.tone-budget {
    background: #3b2818;
    border-color: #8b552a;
    color: #ffd6b0;
}

body.dark-mode .ui-chip.tone-food {
    background: #3d1d2a;
    border-color: #8b3456;
    color: #ffc9d8;
}

.entry-first-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.entry-first-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.entry-first-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 23, 0.52);
}

.entry-first-overlay-card {
    position: relative;
    width: min(460px, calc(100% - 24px));
    margin: clamp(72px, 18vh, 180px) auto 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
    box-shadow: 0 24px 46px rgba(2, 8, 23, 0.28);
    padding: 16px;
}

.entry-first-overlay-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    color: var(--text);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.entry-first-overlay-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #0f172a;
    text-decoration: none;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8 0%, #0f172a 100%);
}

.entry-primary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid #0f172a;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #ffffff;
    background: linear-gradient(135deg, #1d4ed8 0%, #0f172a 100%);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.entry-primary-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.26);
}

.entry-secondary-title {
    margin-top: 0;
    margin-bottom: 4px;
}

.open-plan-card {
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    padding: 12px;
    display: grid;
    gap: 6px;
    min-height: 92px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.open-plan-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

.open-plan-card strong {
    font-size: 0.92rem;
    letter-spacing: -0.01em;
}

.open-plan-card span {
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--muted);
}

.kcontent-character-grid {
    margin-top: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}


.kcontent-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
    color: var(--text);
    padding: 0;
    cursor: pointer;
    text-align: left;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.kcontent-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 14px 28px rgba(29, 78, 216, 0.16);
}

.kcontent-card.active {
    border-color: var(--accent);
    box-shadow: 0 14px 28px rgba(29, 78, 216, 0.2);
    background: var(--chip);
}

.kcontent-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 0.9;
    background: linear-gradient(145deg, #eaf0ff 0%, #dbe8ff 100%);
}

body.dark-mode .kcontent-card-thumb {
    background: linear-gradient(145deg, #1a2640 0%, #243657 100%);
}

body.dark-mode .entry-primary-cta {
    border-color: #7aa6ff;
    color: #0b1220;
    background: linear-gradient(135deg, #a9c6ff 0%, #7aa6ff 100%);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.36);
}

.kcontent-card-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform 0.24s ease;
}

.kcontent-card-meta {
    display: grid;
    gap: 2px;
    padding: 10px 11px 12px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(6, 16, 36, 0) 0%, rgba(6, 16, 36, 0.78) 28%, rgba(6, 16, 36, 0.94) 100%);
    color: #f8fbff;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
    pointer-events: none;
}

.kcontent-card:hover .kcontent-card-meta,
.kcontent-card:focus-visible .kcontent-card-meta {
    transform: translateY(0);
    opacity: 1;
}

.kcontent-card-title {
    font-size: 0.84rem;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: 0;
}

.kcontent-card-work {
    font-family: "Cinzel", serif;
    font-size: 0.63rem;
    line-height: 1.25;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.76;
}

.kcontent-card-badge {
    margin-top: 4px;
    display: inline-flex;
    width: fit-content;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #e8f0ff;
    background: rgba(14, 24, 48, 0.56);
    border-color: rgba(231, 241, 255, 0.35);
}

.kcontent-card:hover .kcontent-card-thumb img,
.kcontent-card:focus-visible .kcontent-card-thumb img {
    transform: scale(1.04);
}

@media (hover: none), (pointer: coarse) {
    .kcontent-card-meta {
        position: static;
        background: var(--card);
        color: var(--text);
        transform: none;
        opacity: 1;
        pointer-events: auto;
    }

    .kcontent-card-badge {
        color: var(--muted);
        background: var(--chip);
        border-color: var(--line);
    }
}

.saju-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.saju-field {
    flex: 0 0 170px;
    display: grid;
    gap: 4px;
}

.saju-field label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
}

.saju-pillars {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 10px;
}

.saju-analysis {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.saju-analysis p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.92rem;
}

.saju-place-list li {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    background: var(--card);
}

.saju-reason {
    margin-top: 6px;
    font-size: 0.86rem;
    color: var(--muted);
    line-height: 1.6;
}

.trust-grid article {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    background: var(--card);
}

.trust-grid p {
    margin: 0;
    font-size: 0.9rem;
}

.map-frame {
    width: 100%;
    height: 360px;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.text-link {
    margin-top: 10px;
    display: inline-block;
    font-size: 0.9rem;
    color: var(--accent);
}

.review-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.65;
}

.data-source-note {
    margin-top: 10px;
    font-size: 0.84rem;
    color: var(--muted);
}

.course-tools-panel {
    padding: 12px;
}

.course-tools-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 10px;
}

.course-tool-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    background: var(--card);
}

.course-tool-card h2 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.course-insight-summary {
    margin-top: 6px;
    display: grid;
    gap: 5px;
}

.course-insight-summary p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.course-tool-actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.offline-plan-title {
    margin: 12px 0 6px;
    font-size: 0.92rem;
}

.offline-plan-list {
    display: grid;
    gap: 8px;
}

.offline-plan-search-input {
    margin: 0 0 8px;
}

.offline-plan-item {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 10px;
    background: var(--card);
}

.offline-plan-item strong {
    display: block;
    font-size: 0.86rem;
}

.offline-plan-meta {
    margin-top: 4px;
    font-size: 0.78rem;
    color: var(--muted);
}

.offline-plan-actions {
    margin-top: 6px;
    display: flex;
    gap: 6px;
}

.offline-plan-btn {
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
}

.offline-plan-btn.pin-active {
    border-color: var(--accent);
    color: var(--accent);
}

.course-stop-list,
.hotel-list {
    margin: 12px 0 0;
    padding-left: 20px;
    display: grid;
    gap: 10px;
}

.course-stop-list li,
.hotel-list li {
    color: var(--muted);
    line-height: 1.55;
}

.restaurant-sections {
    display: grid;
    gap: 16px;
    margin-top: 12px;
}

.district-block {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    background: var(--card);
}

.district-block h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.meal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.meal-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    background: var(--card);
}

.meal-card h4 {
    margin: 0 0 8px;
    font-size: 0.9rem;
}

.meal-card ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
}

.meal-card li {
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.86rem;
}

.broadcast-chip {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--chip);
    color: var(--text);
}

.course-time-slots {
    margin-top: 14px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.time-slot {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    background: var(--card);
}

.time-slot h3 {
    margin: 0 0 8px;
    font-size: 0.9rem;
}

.time-slot ul {
    margin: 0;
    padding-left: 16px;
    display: grid;
    gap: 5px;
}

.time-slot li {
    font-size: 0.86rem;
    color: var(--muted);
}

.stop-title,
.hotel-name {
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.hotel-meta {
    font-size: 0.88rem;
}

.inline-map-btn {
    margin-left: 6px;
    display: inline-block;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.72rem;
    text-decoration: none;
    color: var(--muted);
    background: var(--card);
}

.inline-map-btn:hover {
    border-color: var(--accent);
    color: var(--text);
}

.selected-place {
    margin: 10px 0 16px;
    font-size: 0.92rem;
}

.clean-form {
    display: grid;
    gap: 10px;
}

.clean-form label {
    font-size: 0.87rem;
    font-weight: 700;
}

.clean-form input,
.clean-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    color: var(--text);
    background: var(--card);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--header-bg);
}

.footer-inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 0 24px;
    color: var(--muted);
    font-size: 0.84rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.footer-inner nav {
    display: flex;
    gap: 12px;
}

.footer-inner a {
    text-decoration: none;
}

.korea-showcase {
    background:
        radial-gradient(circle at 0% 0%, rgba(29, 78, 216, 0.16), transparent 44%),
        linear-gradient(155deg, rgba(15, 23, 42, 0.02), rgba(29, 78, 216, 0.08));
}

.korea-mood-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.korea-mood-card {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.korea-mood-card img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.korea-showcase .korea-mood-grid {
    grid-template-columns: 1fr;
}

.korea-showcase .korea-mood-card img {
    height: 160px;
}

.korea-mood-card a {
    display: block;
    text-decoration: none;
}

.korea-mood-card figcaption {
    padding: 10px 12px;
    font-weight: 700;
    font-size: 0.9rem;
}

.featured-transition-curtain {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(2, 8, 23, 0.06);
    pointer-events: none;
}

.featured-transition-ghost {
    position: fixed;
    z-index: 91;
    border-radius: 14px;
    box-shadow: 0 22px 50px rgba(2, 8, 23, 0.28);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

.fun-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.fun-lab-toggle-btn {
    margin: 4px 0 10px;
    width: 100%;
}

.fun-lab.is-collapsed #entry-fun-lab-content {
    display: none;
}

.fun-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 12px;
    background: var(--card);
    box-shadow: var(--shadow);
}

.fun-card h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.fun-card p {
    margin: 0 0 10px;
}

.fun-card-desc {
    color: var(--muted);
    font-size: 0.78rem;
    margin-top: 2px;
}

.fun-card-toggle {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    background: var(--chip);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.fun-card-chevron {
    font-size: 1.15rem;
    line-height: 1;
    color: var(--muted);
}

.fun-card-toggle[aria-expanded="true"] .fun-card-chevron {
    transform: rotate(45deg);
}

.fun-card-body {
    margin-top: 10px;
}

.fun-card-body.is-collapsed {
    display: none;
}

.fun-form-grid {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
}

.weather-toggle-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.weather-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.compact-list {
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 18px;
}

.budget-game-value {
    font-size: 1.16rem;
    font-weight: 800;
    color: var(--accent);
}

.budget-result-box {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    background: var(--card);
}

.fun-lucky-wrap {
    margin-top: 14px;
    border: 1px dashed var(--line);
    border-radius: 14px;
    padding: 14px;
    background: linear-gradient(145deg, rgba(29, 78, 216, 0.08), rgba(15, 23, 42, 0.03));
}

.fun-lucky-btn {
    width: 100%;
    font-weight: 800;
}

.fun-lucky-result {
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    background: var(--card);
}

.fun-lucky-result.is-reveal {
    animation: luckyReveal 0.3s ease-out;
}

@keyframes luckyReveal {
    from {
        transform: translateY(4px);
        opacity: 0.25;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.budget-result-box {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--chip);
}

@media (max-width: 1180px) {
    .place-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kcontent-character-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .kcontent-character-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .site-header {
        padding: 12px 14px;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .header-controls {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
    }

    .top-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
        order: 1;
    }

    #lang-toggle-btn,
    #theme-toggle-btn {
        order: 2;
    }

    .container,
    .container.narrow {
        width: calc(100% - 16px);
        margin-top: 14px;
    }

    .meta-grid {
        grid-template-columns: 1fr;
    }

    .map-frame {
        height: 280px;
    }

    .filter-bar {
        flex-wrap: wrap;
    }

    .sticky-panel {
        position: static;
    }

    .search-row {
        gap: 6px;
    }

    .journey-steps {
        gap: 6px;
    }

    .place-grid {
        grid-template-columns: 1fr;
    }

    .course-time-slots {
        grid-template-columns: 1fr;
    }

    .meal-grid {
        grid-template-columns: 1fr;
    }

    .travel-tools-grid {
        grid-template-columns: 1fr;
    }

    .course-tools-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .geo-grid {
        grid-template-columns: 1fr;
    }

    .generation-grid {
        grid-template-columns: 1fr;
    }

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

    .entry-first-screen {
        min-height: auto;
    }

    .korea-mood-grid,
    .fun-feature-grid {
        grid-template-columns: 1fr;
    }

    .kcontent-character-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .saju-grid {
        gap: 6px;
    }

    .saju-field {
        flex-basis: 155px;
    }

    .footer-inner {
        width: calc(100% - 16px);
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 560px) {
    .open-plan-grid {
        grid-template-columns: 1fr;
    }

    .entry-primary-cta {
        width: 100%;
        justify-content: center;
    }

    .top-nav a {
        white-space: nowrap;
        font-size: 0.82rem;
        padding: 6px 10px;
    }

}
