:root {
    --bg: #f3f4f7;
    --surface: #ffffff;
    --surface-soft: #fff6ef;
    --ink: #16181d;
    --muted: #6d7280;
    --line: rgba(22, 24, 29, 0.08);
    --shadow: 0 18px 40px rgba(15, 19, 29, 0.08);
    --orange-1: #ff7a18;
    --orange-2: #ffa257;
    --orange-3: #ffd4af;
    --dark: #0c0d10;
    --danger: #d74c4c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Pretendard', 'Malgun Gothic', sans-serif;
    background: var(--bg);
    color: var(--ink);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
input, select, textarea { outline: none; }
code {
    padding: 2px 7px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.05);
    font-size: 13px;
}

.container {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
}
.container.narrow {
    width: min(1080px, calc(100% - 48px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}
.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.24);
}
.brand strong {
    display: block;
    font-size: 24px;
    letter-spacing: -0.03em;
}
.brand span {
    display: block;
    margin-top: 2px;
    color: rgba(255,255,255,0.56);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.top-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 10px;
}
.top-nav a {
    padding: 10px 12px;
    border-radius: 999px;
    color: rgba(255,255,255,0.84);
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}
.top-nav a:hover,
.top-nav a.active {
    color: #fff;
    background: rgba(255,255,255,0.09);
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(255,255,255,0.16), transparent 18%),
        radial-gradient(circle at 85% 22%, rgba(255,255,255,0.16), transparent 16%),
        linear-gradient(90deg, var(--orange-1), var(--orange-2));
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 54px 54px;
    opacity: 0.22;
}
.hero-inner {
    position: relative;
    z-index: 1;
    min-height: 500px;
    display: grid;
    grid-template-columns: minmax(0, 560px) 1fr;
    align-items: center;
    gap: 32px;
    padding: 58px 0 100px;
}
.hero-copy { color: #fff; }
.hero-badge, .section-kicker, .eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.hero-badge {
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    margin-bottom: 18px;
}
.hero-copy h1 {
    margin: 0;
    font-size: clamp(46px, 5vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}
.hero-copy p {
    margin: 18px 0 0;
    max-width: 520px;
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    line-height: 1.75;
}
.hero-actions,
.preview-actions,
.post-actions,
.footer-links,
.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.hero-actions { margin-top: 30px; }
.hero-visual {
    position: relative;
    min-height: 360px;
}
.speech-bubble {
    position: absolute;
    width: 116px;
    height: 116px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.86);
    border-radius: 999px;
    color: var(--orange-1);
    font-size: 72px;
    font-weight: 800;
}
.bubble-left { left: 4%; top: 18%; }
.bubble-right { right: 8%; top: 6%; }
.clean-stage {
    position: absolute;
    right: 0;
    bottom: -8px;
    width: min(520px, 100%);
    height: 100%;
}
.character-halo {
    position: absolute;
    inset: 16% 18% 14% 18%;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255,255,255,0.68), rgba(255,255,255,0.1) 60%, transparent 70%);
}
.stage-card {
    position: absolute;
    border-radius: 26px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}
.stage-card-a {
    right: 20%;
    top: 16%;
    width: 180px;
    height: 130px;
    transform: rotate(-10deg);
}
.stage-card-b {
    right: 6%;
    bottom: 12%;
    width: 230px;
    height: 150px;
    transform: rotate(8deg);
}
.stage-orb {
    position: absolute;
    right: 0;
    bottom: 8%;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: radial-gradient(circle at 35% 30%, #2f63ff, #0d1744 70%);
    border: 10px solid rgba(255,255,255,0.24);
    box-shadow: 0 20px 40px rgba(13, 23, 68, 0.28);
}
.hero-floating {
    position: absolute;
    border-radius: 32px;
    background: rgba(255,255,255,0.08);
}
.hero-floating-a { left: 12%; top: 20%; width: 120px; height: 120px; }
.hero-floating-b { left: 28%; bottom: 22%; width: 74px; height: 74px; }
.hero-floating-c { right: 15%; top: 36%; width: 92px; height: 92px; }

.category-strip {
    margin-top: -62px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.category-card {
    display: block;
    padding: 24px 24px 22px;
    border-radius: 24px;
    background: rgba(17, 12, 10, 0.94);
    color: #fff;
    box-shadow: var(--shadow);
}
.category-card strong {
    display: block;
    margin-top: 10px;
    font-size: 30px;
    letter-spacing: -0.04em;
}
.category-card p {
    margin: 10px 0 0;
    color: rgba(255,255,255,0.74);
    line-height: 1.6;
}

.news-section,
.board-preview,
.form-wrap,
.admin-wrap,
.board-table-wrap,
.post-wrap,
.message-box {
    margin-top: 54px;
}
.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}
.section-head.single { align-items: start; }
.section-head h2,
.section-head h1,
.subpage-hero h1,
.post-header h1,
.message-box h1,
.admin-guide-card h2 {
    margin: 6px 0 0;
    letter-spacing: -0.04em;
}
.section-head h2,
.section-head h1,
.subpage-hero h1,
.post-header h1,
.message-box h1 { font-size: clamp(28px, 3vw, 42px); }
.section-kicker { color: var(--orange-1); }
.inline-link {
    font-weight: 700;
    color: var(--orange-1);
}
.news-grid,
.board-grid {
    display: grid;
    gap: 18px;
}
.news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.news-card,
.board-panel,
.post-form,
.admin-guide-card,
.admin-login-form,
.message-box,
.board-table-wrap {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}
.news-card {
    padding: 26px;
    min-height: 220px;
}
.wide-card { grid-column: 1 / -1; }
.news-card h3 {
    margin: 16px 0 8px;
    font-size: 24px;
    line-height: 1.35;
    letter-spacing: -0.03em;
}
.news-card time,
.post-meta,
.board-list span,
.empty-line,
.subpage-hero p,
.message-box p,
.news-card p,
.admin-guide-card p { color: var(--muted); }
.news-card p { line-height: 1.7; }

.board-panel { padding: 24px; }
.board-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}
.board-panel-head h3 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -0.03em;
}
.board-panel-head a,
.text-link,
.text-button { color: var(--orange-1); font-weight: 700; }
.text-button {
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
}
.danger-text { color: var(--danger); }
.board-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.board-list li + li { border-top: 1px solid var(--line); }
.board-list.compact li { padding: 14px 0; }
.board-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.board-list strong {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.empty-line {
    padding: 16px 0 4px;
}

.subpage-main { padding: 24px 0 72px; }
.subpage-hero {
    padding: 28px 32px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,122,24,0.12), rgba(255,255,255,0.95));
    border: 1px solid rgba(255,122,24,0.18);
}
.subpage-hero p { margin: 14px 0 0; line-height: 1.7; }

.board-toolbar-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.board-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.board-tabs a {
    padding: 12px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-weight: 700;
}
.board-tabs a.active {
    background: linear-gradient(135deg, var(--orange-1), var(--orange-2));
    border-color: transparent;
    color: #fff;
}
.board-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.board-toolbar input,
.post-form input,
.post-form select,
.post-form textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(22, 24, 29, 0.14);
    background: #fff;
    padding: 14px 16px;
    color: var(--ink);
}
.board-toolbar input { min-width: 260px; }
.post-form {
    padding: 28px;
}
.post-form label {
    display: block;
}
.post-form label + label { margin-top: 18px; }
.post-form span {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.form-grid.single-line { grid-template-columns: minmax(0, 1fr); }
.post-form textarea {
    min-height: 340px;
    resize: vertical;
    line-height: 1.8;
}

.alert-box {
    margin-bottom: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(215, 76, 76, 0.2);
    background: rgba(215, 76, 76, 0.08);
    color: #a43737;
}
.alert-box.success {
    border-color: rgba(46, 143, 71, 0.18);
    background: rgba(46, 143, 71, 0.08);
    color: #2e8f47;
}
.alert-box p { margin: 0; }
.alert-box p + p { margin-top: 8px; }

.board-table-wrap { overflow: hidden; }
.board-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.board-table th,
.board-table td {
    padding: 18px 16px;
    border-bottom: 1px solid var(--line);
    text-align: center;
}
.board-table thead th {
    background: #fafafb;
    font-weight: 800;
}
.board-table td.left { text-align: left; }
.board-table td.empty {
    padding: 54px 20px;
    color: var(--muted);
}

.post-wrap {
    padding: 30px 32px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}
.post-header { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
    font-size: 14px;
}
.post-content {
    padding: 28px 2px 18px;
    min-height: 260px;
    line-height: 1.95;
    white-space: normal;
}

.admin-login-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 18px;
}
.admin-login-form,
.admin-guide-card {
    padding: 28px;
}
.admin-dashboard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.row-actions {
    justify-content: center;
    gap: 12px;
}

.message-box {
    padding: 42px 32px;
    text-align: center;
}
.message-box p { margin: 12px 0 24px; }

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
}
.chip-orange {
    color: #fff;
    background: linear-gradient(135deg, var(--orange-1), var(--orange-2));
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 22px rgba(0,0,0,0.1); }
.btn.small { min-height: 42px; padding: 0 18px; border-radius: 12px; }
.btn-primary {
    background: linear-gradient(135deg, var(--orange-1), var(--orange-2));
    color: #fff;
}
.btn-primary.danger { background: linear-gradient(135deg, #d74c4c, #ea6c6c); }
.btn-secondary {
    background: #fff;
    color: var(--ink);
    border-color: var(--line);
}

.site-footer {
    margin-top: 84px;
    background: #0f1014;
    color: #fff;
}
.footer-inner {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
}
.footer-inner p {
    margin: 10px 0 0;
    color: rgba(255,255,255,0.64);
}
.footer-links a { color: rgba(255,255,255,0.86); }

@media (max-width: 1100px) {
    .hero-inner,
    .admin-login-grid,
    .category-strip,
    .news-grid,
    .board-grid { grid-template-columns: 1fr; }
    .hero-visual { min-height: 300px; }
}

@media (max-width: 820px) {
    .header-inner,
    .admin-dashboard-top,
    .footer-inner,
    .board-toolbar-wrap,
    .section-head { align-items: flex-start; }
    .header-inner,
    .admin-dashboard-top,
    .footer-inner,
    .board-toolbar-wrap,
    .section-head { flex-direction: column; }
    .hero-inner { min-height: auto; padding: 48px 0 88px; }
    .hero-copy p { font-size: 16px; }
    .form-grid { grid-template-columns: 1fr; }
    .board-table { display: block; overflow-x: auto; }
}

@media (max-width: 640px) {
    .container, .container.narrow { width: min(100% - 28px, 100%); }
    .post-wrap,
    .post-form,
    .admin-guide-card,
    .admin-login-form,
    .subpage-hero { padding-left: 20px; padding-right: 20px; }
    .speech-bubble { width: 86px; height: 86px; font-size: 54px; }
}


.hero.hero-banner-shot {
    background: #1b0e09;
}
.hero.hero-banner-shot::before {
    content: '';
    display: block;
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(18, 9, 7, 0.92) 0%, rgba(24, 12, 9, 0.72) 36%, rgba(24, 12, 9, 0.54) 100%),
        url('../images/banner_capture_170538_sync.png?v=20260328173000');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    filter: blur(28px) saturate(0.82) brightness(0.62);
    transform: scale(1.08);
    opacity: 1;
}
.hero-inner.hero-inner-banner-shot {
    position: relative;
    z-index: 1;
    display: block;
    min-height: auto;
    padding: 24px 0 72px;
}
.hero-banner-shot-image {
    position: relative;
    width: 100%;
    height: clamp(320px, 31vw, 501px);
    border-radius: 0;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    box-shadow: none;
}
.hero-banner-shot-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(27, 14, 9, 0.18) 0%, rgba(27, 14, 9, 0) 12%, rgba(27, 14, 9, 0) 88%, rgba(27, 14, 9, 0.22) 100%),
        linear-gradient(90deg, rgba(27, 14, 9, 0.24) 0%, rgba(27, 14, 9, 0) 8%, rgba(27, 14, 9, 0) 92%, rgba(27, 14, 9, 0.18) 100%);
    pointer-events: none;
}

@media (max-width: 900px) {
    .hero-inner.hero-inner-banner-shot {
        padding: 16px 0 56px;
    }
    .hero-banner-shot-image {
        height: clamp(220px, 42vw, 360px);
    }
}

/* 홈 배너/카테고리 정리 - 2026-03-28 17:45 */
.hero.hero-banner-shot {
    min-height: clamp(320px, 30vw, 501px);
    background-image:
        linear-gradient(180deg, rgba(14, 7, 5, 0.10) 0%, rgba(14, 7, 5, 0.12) 100%),
        url('../images/banner_capture_170538_sync.png?v=20260328174500');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.hero.hero-banner-shot::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 5, 3, 0.14) 0%, rgba(10, 5, 3, 0.04) 18%, rgba(10, 5, 3, 0.08) 82%, rgba(10, 5, 3, 0.16) 100%);
    opacity: 1;
}
.hero.hero-banner-shot::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 72px;
    background: linear-gradient(180deg, rgba(14, 7, 5, 0) 0%, rgba(14, 7, 5, 0.18) 100%);
    pointer-events: none;
}
.hero-inner.hero-inner-banner-shot,
.hero-banner-shot-image {
    display: none;
}

.category-strip-wrap {
    position: relative;
    padding: 28px 0 0;
    background: var(--bg);
}
.category-strip {
    margin-top: 0;
    gap: 20px;
}
.category-card {
    padding: 22px 22px 20px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 243, 0.98));
    color: var(--ink);
    border: 1px solid rgba(50, 31, 20, 0.10);
    border-top: 4px solid var(--orange-1);
    box-shadow: 0 18px 36px rgba(20, 14, 10, 0.10);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 122, 24, 0.24);
    box-shadow: 0 22px 42px rgba(20, 14, 10, 0.14);
}
.category-card .eyebrow {
    color: var(--orange-1);
    font-size: 13px;
    letter-spacing: 0.01em;
}
.category-card strong {
    margin-top: 12px;
    color: #1d1815;
    font-size: 32px;
}
.category-card p {
    margin-top: 10px;
    color: #6e645d;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .hero.hero-banner-shot {
        min-height: clamp(220px, 38vw, 360px);
        background-position: 64% top;
    }
    .category-strip-wrap {
        padding-top: 20px;
    }
}
.hero.hero-banner-shot::before {
    background-image: none;
    background-repeat: repeat;
    background-position: center top;
    background-size: auto;
    filter: none;
    transform: none;
}

.inline-form {
    margin: 0;
}

.text-button[disabled],
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}
