@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
    --font-sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --bg: #FFFFFF;
    --surface: #FFFFFF;
    --ink: #202020;
    --muted: #77736F;
    --primary: #FF46A2;
    --secondary: #00F0FF;
    --accent: #FFFF00;
    --cta: #EE4B2B;
    --line: #E8E5DC;

    /* Bootstrap overrides */
    --bs-body-bg: var(--bg);
    --bs-body-bg-rgb: 255, 253, 247;
    --bs-body-color: var(--ink);
    --bs-body-color-rgb: 32, 32, 32;
    --bs-primary: var(--primary);
    --bs-primary-rgb: 255, 70, 162;
    --bs-secondary: var(--secondary);
    --bs-secondary-color: var(--muted);
    --bs-secondary-rgb: 0, 240, 255;
    --bs-border-color: var(--line);
    --bs-link-color: var(--ink);
    --bs-link-color-rgb: 32, 32, 32;
    --bs-link-hover-color: var(--primary);
    --bs-link-hover-color-rgb: 255, 70, 162;
    --bs-light-rgb: 255, 255, 255;
    --bs-dark-rgb: 32, 32, 32;
    --bs-tertiary-bg: var(--surface);
    --bs-tertiary-bg-rgb: 255, 255, 255
}

* {
    box-sizing: border-box
}

html,
body,
body * {
    font-family: var(--font-sans) !important
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.65 var(--font-sans)
}

a {
    color: var(--ink);
    text-decoration: none
}

a:hover {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--secondary);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px
}

button, input, textarea {
    font: inherit
}

.shell {
    width: min(1080px, calc(100% - 32px));
    margin: auto
}

.skip {
    position: fixed;
    top: -60px
}

.skip:focus {
    top: 10px
}

header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--surface);
    border-bottom: 3px solid var(--line) !important;
}

header nav {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
    font-weight: 750;
    font-size: 19px
}

.brand i, .avatar {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    background: var(--primary);
    color: var(--surface);
    font-style: normal
}

.brand i {
    width: 31px;
    height: 31px;
    border-radius: 8px
}

#nav, #auth {
    display: flex;
    align-items: center;
    gap: 14px
}

#nav > a,
#auth a,
#auth .link {
    color: var(--ink);
    font-weight: 550
}

#menu {
    display: none
}

footer {
    border-top: 1px solid var(--line);
    margin-top: 75px;
    padding: 28px 0;
    color: var(--muted)
}

/* Bootstrap components follow the site palette too. */
.bg-body-tertiary {
    background-color: var(--surface) !important
}

.navbar-brand, .navbar-brand:hover, .nav-link,
.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    color: var(--ink)
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 19px;
    font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
    font-weight: 750 !important
}

.brand-logo-crop {
    display: block;
    flex: none;
    width: 65px;
    height: 37px;
    overflow: hidden
}

.brand-logo {
    display: block;
    width: 108px;
    max-width: none;
    height: 108px;
    transform: translate(-23px, -35px)
}

.nav-link {
    font-weight: 500
}

.nav-link:hover, .nav-link:focus { color: var(--primary) }

.navbar-toggler {
    border-color: var(--line);
    background: var(--secondary)
}

header .navbar {
    flex-wrap: nowrap
}

#mainNav {
    display: block;
    flex-basis: auto;
    min-width: 0
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary);
    color: var(--surface)
}

.nav-login {
    background: none !important;
    border: 0 !important;
    border-radius: 0;
    color: var(--ink)
}

.card {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: none
}

.eyebrow {
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em
}

.button {
    display: inline-flex;
    justify-content: center;
    border: 1px solid var(--cta);
    border-radius: 10px;
    background: var(--cta);
    color: var(--surface);
    padding: 10px 18px;
    font-weight: 750;
    cursor: pointer
}

.inverse {
    background: var(--ink);
    color: var(--surface)
}

.ghost {
    background: transparent;
    border-color: var(--ink);
    color: var(--ink)
}

.ghost:hover, .ghost:focus-visible {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--surface)
}

.secondary {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line)
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px
}

.right {
    justify-content: flex-end
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin: 52px 0 18px
}

.page-head {
    margin: 52px 0 26px
}

.page-head h1 {
    font-size: clamp(32px, 5vw, 50px);
    margin: 5px 0
}

.muted, .page-head p {
    color: var(--muted)
}

.grid {
    display: grid;
    grid-template-columns:repeat(2, 1fr);
    gap: 17px
}

.card {
    position: relative;
    padding: 18px 27px;
    display: flex;
    flex-direction: column;
}

.card .meta {
    margin-top: auto;
}

.home-container,
.home-page .shell {
    width: min(1240px, calc(100% - 32px));
    margin-right: auto;
    margin-left: auto
}

.home-layout {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 44px
}

.main-content {
    min-width: 0
}

.mobile-home-category,
.mobile-between-ad {
    display: none
}

.category-sidebar {
    padding-top: 28px;
    padding-right: 24px;
    border-right: 3px solid var(--line)
}

.category-sidebar h2 {
    position: relative;
    z-index: 0;
    width: max-content;
    font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
    font-size: 18px;
    margin: 0 0 28px
}

.category-sidebar h2::after {
    position: absolute;
    z-index: -1;
    right: -5px;
    bottom: 1px;
    left: -3px;
    height: 35%;
    background: var(--secondary);
    content: "";
    transform: rotate(.7deg)
}

.filter-group + .filter-group {
    margin-top: 28px
}

.filter-group {
    padding-top: 14px;
    border-top: 1px solid var(--line)
}

.filter-group h3 {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    margin: 0 0 10px
}

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

.filter-group nav > :first-child {
    grid-column: 1 / -1
}

.difficulty-filter nav {
    grid-template-columns: repeat(3, minmax(0, 1fr))
}

.filter-group a,
.filter-group span {
    color: var(--ink);
    font-size: 14px;
    font-weight: 450
}

.filter-group a:not(.is-active):hover,
.filter-group a:not(.is-active):focus-visible {
    background: var(--secondary);
    color: var(--ink);
    text-decoration: none
}

.filter-group .is-active {
    position: relative;
    z-index: 0;
    width: max-content;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none
}

.filter-group .is-active::after {
    position: absolute;
    z-index: -1;
    right: -3px;
    bottom: 1px;
    left: -3px;
    height: 55%;
    background: var(--accent);
    content: "";
    transform: rotate(-1deg)
}

.difficulty-filter span[aria-disabled="true"] {
    opacity: 1
}

.sidebar-ad {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 16px;
    background: var(--surface);
    border: 3px solid var(--line);
    border-top-color: var(--secondary);
    border-bottom: 0;
    color: var(--ink)
}

.sidebar-ad-stack {
    display: grid;
    grid-template-rows: repeat(3, auto);
    width: 100%;
    margin-top: 28px
}

.sidebar-ad-stack .sidebar-ad {
    justify-content: center;
    width: 100%;
    min-height: 0;
    margin-top: 0;
    aspect-ratio: 1 / 3
}

.sidebar-ad-stack .sidebar-ad:last-child {
    border-bottom: 3px solid var(--primary)
}

.sidebar-ad span {
    margin-bottom: 8px;
    padding: 1px 4px;
    background: var(--primary);
    color: var(--surface);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .06em
}

.sidebar-ad strong {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25
}

.sidebar-ad small {
    margin-top: 10px;
    color: var(--muted);
    font-size: 10px
}

.sidebar-ad + .sidebar-ad {
    background: var(--surface)
}

.daily-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    border-bottom: 3px solid var(--line)
}

.daily-prompt {
    display: flex;
    flex-direction: column;
    padding: 34px 34px 30px 0
}

.daily-prompt h1 {
    font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
    font-size: clamp(48px, 5vw, 58px);
    font-weight: 700;
    line-height: 1.05;
    margin: 0
}

.daily-prompt-label {
    color: var(--primary);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: normal
}

.daily-prompt p {
    color: var(--muted);
    margin: 14px 0 0
}

.daily-prompt-heading {
    display: flex;
    align-items: center;
    gap: 18px
}

.daily-prompt-action {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    min-width: 168px
}

.daily-prompt-action span {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    text-align: center
}

.daily-prompt-action .btn {
    width: 100%;
    min-width: 168px
}

.hero-ad {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    width: 100%;
    min-height: 0;
    aspect-ratio: 3 / 1;
    margin-top: 22px;
    padding: 22px 24px;
    background: var(--surface);
    border: 3px solid var(--line);
    border-top-color: var(--secondary);
    border-bottom-color: var(--primary);
    color: var(--ink)
}

.hero-ad span {
    padding: 2px 5px;
    background: var(--primary);
    color: var(--surface);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .06em
}

.hero-ad strong {
    margin: 0;
    font-size: clamp(20px, 2.1vw, 28px);
    font-weight: 800;
    line-height: 1.12
}

.hero-ad-initial,
.house-banner-initial {
    color: var(--primary);
    font-size: 1.18em;
    font-style: normal;
    font-weight: 900
}

.hero-ad small {
    margin-top: 12px;
    color: var(--muted);
    font-size: 10px
}

.daily-prompt .btn-light,
.daily-prompt .btn-light:hover,
.daily-prompt .btn-light:focus-visible,
.daily-prompt .btn-light:active,
.daily-prompt .button.inverse,
.daily-prompt .button.inverse:hover,
.daily-prompt .button.inverse:focus-visible,
.daily-prompt .button.inverse:active {
    background: var(--primary) !important;
    border: 0 !important;
    border-radius: 6px;
    color: var(--surface) !important;
    font-weight: 600 !important;
    padding: 8px 14px
}

.recent-words {
    min-width: 0;
    margin: 0;
    padding: 34px 32px 30px;
    border-left: 3px solid var(--line)
}

.recent-words-heading {
    display: flex;
    align-items: center;
    gap: 9px
}

.recent-words-heading h2 {
    margin: 0;
    color: var(--primary);
    font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
    font-size: 20px;
    font-weight: 700
}

.recent-word-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px 8px;
    margin-top: 20px
}

.recent-word-link {
    justify-self: center;
    min-width: 0;
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1.3;
    text-decoration: none
}

.recent-word-link:nth-child(5n + 1) { grid-column: 1 / span 3 }
.recent-word-link:nth-child(5n + 2) { grid-column: 4 / span 3 }
.recent-word-link:nth-child(5n + 3) { grid-column: 1 / span 2 }
.recent-word-link:nth-child(5n + 4) { grid-column: 3 / span 2 }
.recent-word-link:nth-child(5n) { grid-column: 5 / span 2 }

.recent-word-link:hover,
.recent-word-link:focus-visible {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--secondary);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px
}

.recent-words-empty {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 13px
}

.daily-recommendation {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    margin: 22px 0 0;
    padding: 12px 0 0;
    border-top: 3px solid var(--secondary)
}

.featured-work {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 16px;
    margin-top: 0
}

.featured-work-label {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    margin: 5px 0 0;
    color: var(--cta);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap
}

.featured-work .poem-line {
    grid-column: 1
}

.daily-recommendation .meta {
    grid-column: 1 / -1;
    border-top: 0;
    display: block;
    font-size: 13px;
    margin-top: 8px;
    padding-top: 0
}

.featured-work-empty {
    margin: 22px 0 0;
    font-size: 13px
}

.prompt-work-link {
    display: inline-block;
    align-self: flex-start;
    margin-top: 18px;
    padding-top: 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--secondary);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px
}

.prompt-work-link:hover,
.prompt-work-link:focus-visible {
    color: var(--primary)
}

.home-section-head {
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: 0 !important;
    padding: 26px 0 12px;
    border-bottom: 3px solid var(--line)
}

.home-section-head h1,
.home-section-head h2 {
    position: relative;
    z-index: 0;
    width: max-content;
    font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
    font-size: 26px;
    font-weight: 600;
    margin: 0
}

.home-section-head h1::after,
.home-section-head h2::after {
    position: absolute;
    z-index: -1;
    right: -7px;
    bottom: 2px;
    left: 34%;
    height: 30%;
    background: var(--accent);
    content: "";
    transform: rotate(-.5deg)
}

.trending-grid h2,
.trending-grid h3 {
    font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
    font-weight: 600 !important;
    margin: 0
}

.community-heading {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px
}

.community-rank {
    color: var(--primary);
    font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
    font-size: clamp(34px, 4vw, 44px);
    font-weight: 800;
    line-height: .95;
    white-space: nowrap
}

.community-content {
    min-width: 0
}

.hot-label {
    padding: 1px 4px;
    background: var(--accent);
    color: var(--ink);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4
}

.line-count {
    padding: 1px 4px;
    background: var(--secondary);
    color: var(--ink);
    font-size: 12px;
    font-weight: 450;
    white-space: nowrap
}

.trending-item:nth-child(even) .line-count {
    background: var(--accent)
}

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

.trending-feed {
    display: grid;
    grid-column: 1;
    grid-row: 1 / span 5;
    grid-template-rows: repeat(5, 254px);
    min-width: 0
}

.trending-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(240px, .8fr);
    grid-template-rows: repeat(5, 254px);
    gap: 0 40px
}

.trending-item {
    grid-column: 1;
    height: 254px;
    min-height: 0
}

.trending-rank-1 { grid-row: 1 }
.trending-rank-2 { grid-row: 2 }
.trending-rank-3 { grid-row: 3 }
.trending-rank-4 { grid-row: 4 }
.trending-rank-5 { grid-row: 5 }

.trending-grid .card {
    background: transparent;
    border: 0 !important;
    padding: 20px 0 22px
}

.trending-grid .card-body {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
    height: 100%;
    padding: 0
}

.trending-item:not(:first-child) .card {
    border-top: 3px solid var(--line) !important
}

.trending-item.is-empty .card {
    box-shadow: none !important
}

.popular-heading {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.popular-sort {
    display: flex;
    gap: 12px;
    font-size: 13px;
    white-space: nowrap;
}

.popular-sort a { color: #777; text-decoration: none }
.popular-sort a.is-active { color: var(--ink, #222); font-weight: 700 }
.popular-sort a:hover, .author-link:hover { text-decoration: underline }
.author-link { position: relative; z-index: 2; color: inherit; text-decoration: none }

.trending-item.is-empty:not(.trending-rank-1) {
    border-top: 3px solid var(--line)
}

.poem-title-link {
    color: inherit;
    text-decoration: none;
}

.poem-title-link:hover,
.poem-title-link:focus-visible {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.popular-slot-empty {
    align-self: center;
    margin: 0;
    color: var(--muted);
    font-size: 13px
}

.trending-grid .meta {
    border-top: 0;
    display: block;
    font-size: 13px;
    padding-top: 0;
    margin-top: 8px
}

.daily-overview .poem-line,
.trending-grid .poem-line {
    grid-template-columns: 42px minmax(0, 1fr);
    line-height: 1.75
}

.daily-overview .poem-line strong,
.daily-overview .poem-line b,
.trending-grid .poem-line strong,
.trending-grid .poem-line b {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.4
}

.daily-recommendation .poem-line {
    grid-template-columns: 48px minmax(0, 1fr);
    font-size: 16px;
    line-height: 1.9
}

.daily-recommendation .poem-line strong {
    font-size: 26px
}

.feed-ad {
    display: flex;
    grid-column: 2;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    align-self: stretch;
    padding: 24px;
    background: var(--surface);
    border: 3px solid var(--line);
    border-top-color: var(--secondary);
    color: var(--ink)
}

.feed-ad-rank-1-2 { grid-row: 1 / span 2 }
.feed-ad-rank-3-4 {
    grid-row: 3 / span 2;
    border-top-color: var(--primary)
}

.feed-ad-rank-1-2,
.feed-ad-rank-3-4 {
    aspect-ratio: 1 / 2
}

.feed-ad-rank-5 {
    aspect-ratio: 1 / 1
}
.feed-ad-rank-5 {
    grid-row: 5;
    background: var(--surface);
    border-top-color: var(--secondary)
}

.feed-ad { border-bottom: 0 }

.feed-ad-rank-5 {
    border-bottom: 3px solid var(--primary)
}

.feed-ad span {
    padding: 2px 5px;
    background: var(--primary);
    color: var(--surface);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .06em
}

.feed-ad strong {
    margin-top: 22px;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.08
}

.feed-ad small {
    margin-top: 18px;
    color: var(--muted);
    font-size: 10px
}

.explore-grid .card,
.explore-search input,
.write-card {
    background: var(--surface)
}

.poem-line {
    display: grid;
    grid-template-columns:34px 1fr;
    line-height: 1.9
}

.poem-line b {
    color: var(--primary);
    font-size: 1.06em;
    font-weight: 800
}

.poem-line strong {
    font-size: 1.06em;
    font-weight: 800
}

.meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    padding-top: 14px;
    margin-top: 18px;
    color: var(--muted)
}

.cover:focus {
    outline: none;
}

.shell:focus {
    outline: none;
}

.search, .comment-form {
    display: flex;
    gap: 10px;
    margin-bottom: 22px
}

.search input {
    flex: 1
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink)
}

input:focus, textarea:focus {
    border-color: var(--primary);
    outline: 2px solid color-mix(in srgb, var(--primary) 35%, transparent)
}

input::placeholder, textarea::placeholder { color: var(--muted) }

label {
    display: block;
    font-weight: 700;
    margin: 15px 0 6px
}

.line-input {
    display: grid;
    grid-template-columns:48px 1fr;
    align-items: center
}

.line-input b {
    display: grid;
    place-items: center;
    height: 49px;
    background: var(--primary);
    color: var(--surface)
}

.form-card, .detail, .comments {
    max-width: 780px
}

.detail, .comments {
    margin: 44px auto 0
}

.comments {
    margin-top: 18px
}

.comment {
    border-top: 1px solid var(--line);
    padding: 16px 0
}

.auth-card {
    width: min(440px, 100%);
    margin: 48px auto
}

.wide {
    width: 100%
}

.center {
    text-align: center
}

.demo {
    background: var(--surface);
    padding: 9px;
    color: var(--primary)
}

.form-error {
    color: var(--cta);
    min-height: 24px
}

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

.stats div {
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 18px
}

.stats b, .stats span {
    display: block
}

.empty {
    text-align: center;
    padding: 75px 20px
}

.error-code {
    font-size: 90px;
    color: var(--primary);
    font-weight: 900
}

#toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: var(--cta);
    color: var(--surface);
    padding: 11px 17px;
    border-radius: 9px;
    opacity: 0
}

#toast.show {
    opacity: 1
}

.link {
    border: 0;
    background: none
}

.page-label, .rating {
    color: var(--muted)
}

.poem-line strong {
    color: var(--primary)
}

.btn-primary {
    --bs-btn-bg: var(--cta);
    --bs-btn-border-color: var(--cta);
    --bs-btn-color: var(--surface);
    --bs-btn-hover-bg: var(--ink);
    --bs-btn-hover-border-color: var(--ink);
    --bs-btn-hover-color: var(--surface)
}

.btn-outline-primary {
    --bs-btn-color: var(--ink);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary);
    --bs-btn-hover-border-color: var(--primary);
    --bs-btn-hover-color: var(--surface)
}

.btn-light {
    --bs-btn-bg: var(--surface);
    --bs-btn-border-color: var(--line);
    --bs-btn-color: var(--ink);
    --bs-btn-hover-bg: var(--bg);
    --bs-btn-hover-border-color: var(--secondary);
    --bs-btn-hover-color: var(--ink)
}

.text-primary { color: var(--primary) !important }
.text-secondary { color: var(--muted) !important }
.text-dark { color: var(--ink) !important }

.form-control {
    background-color: var(--surface);
    border-color: var(--line);
    color: var(--ink)
}

.form-control:focus {
    background-color: var(--surface);
    border-color: var(--primary);
    color: var(--ink)
}

/* Interior pages reuse the visual language of the home screen. */
.interior-page main {
    min-height: calc(100vh - 220px)
}

.interior-page .page-head {
    position: relative;
    margin: 0;
    padding: 54px 0 28px;
    border-bottom: 3px solid var(--line)
}

.interior-page .page-head h1,
.interior-page .profile h1,
.interior-page .auth-card h1,
.interior-page .detail h1,
.interior-page .empty h1 {
    font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
    font-weight: 700;
    letter-spacing: -.035em
}

.interior-page .page-head h1 {
    width: max-content;
    max-width: 100%;
    font-size: clamp(38px, 5vw, 54px);
    line-height: 1.1;
    margin: 8px 0 10px
}

.interior-page .page-head h1::after {
    display: block;
    width: 38%;
    height: 8px;
    margin-top: -8px;
    margin-left: auto;
    background: var(--accent);
    content: "";
    transform: rotate(-.6deg)
}

.interior-page.explore-page .page-head h1::after {
    width: 61%;
    margin-top: -4px
}

.interior-page .eyebrow,
.interior-page .page-label {
    color: var(--primary);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .08em
}

.interior-page .button,
.interior-page .btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    border-radius: 6px;
    color: var(--surface) !important;
    font-weight: 650
}

.interior-page .button:hover,
.interior-page .button:focus-visible,
.interior-page .btn-primary:hover,
.interior-page .btn-primary:focus-visible {
    background: var(--ink) !important;
    border-color: var(--ink) !important;
    color: var(--surface) !important;
    text-decoration: none
}

.interior-page .button.secondary,
.interior-page .btn-outline-secondary {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    border-radius: 6px;
    color: var(--ink) !important
}

.interior-page input,
.interior-page textarea,
.interior-page .form-control {
    border: 1px solid var(--line) !important;
    border-radius: 4px
}

.interior-page input:focus,
.interior-page textarea:focus,
.interior-page .form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 4px 4px 0 color-mix(in srgb, var(--secondary) 55%, transparent) !important;
    outline: 0
}

.interior-page .explore-search {
    margin: 0;
    padding: 12px 0 24px;
    border-bottom: 3px solid var(--line)
}

.interior-page.explore-page .page-head {
    padding: 20px 0 18px
}

.interior-page.saves-page .page-head {
    padding-bottom: 10px;
    border-bottom: 0
}

.interior-page.saves-page .explore-grid {
    border-top: 3px solid var(--line)
}

.interior-page.saves-page .explore-grid .poem-card:first-child {
    border-top: 0 !important
}

.interior-page.saves-page .empty-state {
    border-top: 0
}

.interior-page.explore-page main {
    padding-top: 0 !important
}

.marketplace-page-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 34%);
    gap: 42px;
    align-items: center
}

.marketplace-head-ad {
    width: 100%;
    aspect-ratio: 3 / 1;
    background: var(--surface);
    border: 3px solid var(--line);
    border-top: 3px solid var(--secondary);
    border-bottom: 3px solid var(--primary)
}

.combined-poems-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr);
    gap: 42px
}

.combined-explore,
.combined-write-column {
    min-width: 0;
    padding-top: 28px
}

.combined-write-column {
    padding-left: 32px;
    border-left: 3px solid var(--line)
}

.combined-section-head {
    padding: 8px 0
}

.combined-section-head h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 700
}

.interior-page .combined-write .write-card {
    margin: 0;
    padding: 12px 0 0;
    border: 0 !important;
    border-top: 3px solid var(--line) !important;
    background: transparent
}

.poem-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding-top: 24px;
    border-top: 3px solid var(--line)
}

.poem-pagination a,
.poem-pagination span {
    display: grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--ink);
    font-weight: 650;
    text-decoration: none
}

.poem-pagination .pagination-arrow {
    font-size: 18px;
    font-weight: 700
}

.poem-pagination .is-disabled {
    color: var(--muted);
    opacity: .35
}

.poem-pagination a:hover,
.poem-pagination a:focus-visible,
.poem-pagination a.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--surface)
}

.combined-write-ads {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 42px
}

.combined-write-ad {
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1 / 1;
    justify-self: center;
    background: var(--surface);
    border: 3px solid var(--line);
    border-top: 3px solid var(--secondary);
    border-bottom: 3px solid var(--primary)
}

.combined-write-ad-landscape {
    aspect-ratio: 4 / 3
}

.sidebar-ad,
.hero-ad,
.feed-ad,
.combined-write-ad,
.mobile-between-ad {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    align-items: stretch;
    padding: 0
}

.sidebar-ad .ad-mark,
.hero-ad .ad-mark,
.feed-ad .ad-mark,
.combined-write-ad .ad-mark,
.mobile-between-ad .ad-mark {
    position: static;
    justify-self: start;
    margin: 12px 12px 0;
    padding: 2px 5px;
    background: var(--primary);
    color: var(--surface);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.4
}

.ad-slot-content {
    min-width: 0;
    min-height: 0
}

.hero-ad .ad-slot-content {
    display: flex;
    align-items: center;
    padding: 10px 24px 22px
}

.ad-slot-content > .adsbygoogle,
.ad-slot-content > iframe {
    display: block;
    width: 100%;
    border: 0
}

.mobile-between-ad {
    display: none
}

.explore-ranking-list {
    display: grid;
    grid-template-rows: repeat(5, minmax(210px, auto))
}

.explore-ranking-item {
    min-height: 210px
}

.explore-ranking-list .card {
    padding: 24px 0;
    border: 0 !important;
    border-top: 3px solid var(--line) !important;
    border-radius: 0;
    background: transparent
}

.explore-ranking-list .card-body {
    display: block;
    padding: 0
}

.explore-ranking-item.is-empty .card-body {
    align-items: center
}

.explore-ranking-list .community-heading {
    margin-bottom: 8px
}

.explore-ranking-list .poem-line {
    grid-template-columns: 42px minmax(0, 1fr);
    line-height: 1.75
}

.explore-ranking-list .poem-line strong {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.4
}

.explore-ranking-list .meta {
    display: block;
    margin-top: 8px;
    padding-top: 0;
    border-top: 0;
    font-size: 13px
}

.footer-contact {
    color: inherit
}

.footer-content,
.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px
}

.footer-content {
    justify-content: space-between
}

.footer-links a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px
}

.policy-container {
    width: min(840px, calc(100% - 32px))
}

.policy-heading {
    padding-bottom: 28px;
    border-bottom: 4px solid var(--primary)
}

.policy-heading h1 {
    margin: 4px 0 16px;
    font-size: clamp(38px, 6vw, 58px);
    font-weight: 750
}

.policy-heading p {
    margin-bottom: 0
}

.policy-heading .policy-date {
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px
}

.policy-container section {
    padding: 28px 0;
    border-bottom: 2px solid var(--line)
}

.policy-container section h2 {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 700
}

.policy-container section p:last-child,
.policy-container section ul:last-child {
    margin-bottom: 0
}

.policy-container section a {
    font-weight: 650;
    text-decoration: underline;
    text-decoration-color: var(--secondary);
    text-decoration-thickness: 3px;
    text-underline-offset: 3px
}

.interior-page .explore-grid {
    grid-template-columns: 1fr;
    gap: 0
}

.interior-page .explore-grid .card,
.interior-page .explore-grid .poem-card {
    min-height: 0;
    padding: 24px 0;
    border: 0 !important;
    border-top: 3px solid var(--line) !important;
    border-radius: 0;
    background: transparent
}

.interior-page .explore-grid .card-body {
    padding: 0 !important
}

.interior-page .explore-grid h2,
.interior-page .explore-grid h3 {
    font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
    font-size: 26px;
    font-weight: 650 !important
}

.interior-page .explore-grid .poem-line {
    grid-template-columns: 42px minmax(0, 1fr);
    line-height: 1.8
}

.interior-page .explore-grid .poem-line b,
.interior-page .explore-grid .poem-line strong {
    font-size: 20px
}

.interior-page .explore-grid .community-heading {
    margin-bottom: 8px
}

.interior-page .explore-grid .meta {
    display: block;
    margin-top: 8px;
    padding-top: 0;
    border-top: 0;
    font-size: 13px
}

.interior-page .detail,
.interior-page .comments,
.interior-page .form-card {
    border-radius: 0;
    background: transparent
}

.interior-page .detail {
    margin-top: 52px;
    padding: 34px 38px 38px;
    border-top: 4px solid var(--primary) !important;
    border-bottom: 3px solid var(--line) !important
}

.interior-page .detail h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 6vw, 62px)
}

.interior-page .detail .avatar {
    border-radius: 4px
}

.interior-page .detail-lines {
    margin: 30px 0
}

.interior-page .detail-lines .poem-line {
    grid-template-columns: 48px minmax(0, 1fr);
    font-size: 18px;
    line-height: 2
}

.interior-page .comments {
    padding: 28px 38px;
    border-top: 3px solid var(--secondary) !important
}

.interior-page .comments h2 {
    margin-top: 0;
    font-size: 22px
}

.interior-page .comment {
    border-top: 2px solid var(--line)
}

.comment-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px
}

.comment-actions {
    display: flex;
    align-items: flex-start;
    gap: 8px
}

.comment-report {
    position: relative;
    text-align: right
}

.comment-report form {
    position: absolute;
    z-index: 2;
    top: 100%;
    right: 0;
    width: min(320px, 72vw);
    margin-top: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    background: #fff;
    text-align: left
}

.comment-report textarea {
    min-height: 88px;
    resize: vertical
}

.comment-report form button[type="submit"],
.report-disclosure form button[type="submit"] {
    display: block;
    margin-left: auto
}

.comment-edit {
    text-align: right
}

.comment-edit summary {
    display: inline-flex;
    list-style: none;
    cursor: pointer
}

.comment-edit summary::-webkit-details-marker {
    display: none
}

.comment-edit form {
    width: min(300px, 70vw);
    margin-top: 10px;
    text-align: left
}

.comment-edit textarea {
    min-height: 90px;
    resize: vertical
}

.interior-page .write-card,
.interior-page form.write-card {
    margin: 28px auto 0;
    padding: 30px 38px 38px;
    border-top: 4px solid var(--secondary) !important
}

.interior-page .line-input {
    gap: 12px
}

.interior-page .line-input b {
    height: 49px;
    border-radius: 3px;
    background: var(--accent);
    color: var(--ink);
    font-size: 20px
}

.interior-page .auth-card {
    width: min(460px, 100%);
    margin: 54px auto;
    padding: 34px 38px 38px;
    border-top: 5px solid var(--primary) !important;
    border-bottom: 3px solid var(--line) !important;
    border-radius: 0
}

.interior-page .auth-card .brand {
    width: max-content;
    margin-bottom: 30px
}

.interior-page .auth-card h1 {
    margin: 6px 0 22px;
    font-size: 34px
}

.interior-page .auth-card .demo {
    border-left: 4px solid var(--secondary);
    background: color-mix(in srgb, var(--secondary) 12%, var(--surface));
    color: var(--ink);
    font-size: 13px
}

.interior-page .profile {
    margin: 0;
    padding: 28px 0 30px;
    border-bottom: 3px solid var(--line)
}

.interior-page .profile h1 {
    margin: 4px 0;
    font-size: clamp(36px, 5vw, 50px)
}

.interior-page .stats {
    gap: 0;
    border-bottom: 3px solid var(--line)
}

.interior-page .stats div {
    border-right: 3px solid var(--line) !important;
    border-radius: 0;
    padding: 24px 18px
}

.interior-page .stats div:last-child {
    border-right: 0 !important
}

.interior-page .stats b {
    color: var(--primary);
    font-size: 28px
}

.interior-page .section-head h2 {
    position: relative;
    z-index: 0;
    width: max-content;
    font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
    font-size: 26px
}

.interior-page .section-head h2::after {
    position: absolute;
    z-index: -1;
    right: -6px;
    bottom: 2px;
    left: 36%;
    height: 30%;
    background: var(--accent);
    content: "";
    transform: rotate(-.5deg)
}

.interior-page .empty,
.interior-page .empty-state {
    margin: 44px auto 0;
    padding: 72px 20px;
    border-top: 4px solid var(--secondary);
    border-bottom: 3px solid var(--line);
    text-align: center
}

.interior-page .error-code,
.interior-page .empty-state .display-1 {
    color: var(--primary) !important;
    font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
    font-size: clamp(86px, 14vw, 140px);
    font-weight: 850;
    line-height: 1
}

/* Server-rendered interior pages share the home page's editorial layout. */
.interior-page .section-title {
    font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
    font-size: clamp(38px, 5vw, 54px);
    font-weight: 700;
    letter-spacing: -.035em
}

.poem-page-tabs {
    display: flex;
    align-items: baseline;
    gap: clamp(20px, 3vw, 38px);
    width: max-content;
    max-width: 100%
}

.interior-page .poem-page-tabs .section-title {
    margin-right: 0;
    color: var(--muted);
    text-decoration: none
}

.interior-page .poem-page-tabs h1.section-title {
    color: var(--ink)
}

.interior-page .poem-page-tabs a.section-title {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 600
}

.interior-page .poem-page-tabs a.section-title:hover,
.interior-page .poem-page-tabs a.section-title:focus-visible {
    color: var(--primary)
}

.interior-page .write-card > .card-body {
    padding: 0 !important
}

.write-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px
}

.write-sharing-note {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4
}

.write-form-actions > :last-child {
    flex: none
}

.write-layout-shell {
    max-width: 1180px
}

.write-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(150px, 1fr);
    gap: 38px
}

.write-main {
    min-width: 0
}

.word-list {
    min-width: 0;
    padding-left: 22px;
    border-left: 3px solid var(--line)
}

.word-list-head {
    padding: 58px 0 22px;
    border-bottom: 3px solid var(--line)
}

.word-list-head h2 {
    position: relative;
    z-index: 0;
    width: max-content;
    margin: 0;
    font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
    font-size: 22px;
    font-weight: 700
}

.word-list-head h2::after {
    position: absolute;
    z-index: -1;
    right: -4px;
    bottom: 1px;
    left: 42%;
    height: 30%;
    background: var(--accent);
    content: ""
}

.word-list-head p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45
}

.word-list nav {
    display: block
}

.word-list a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 15px 2px;
    border-bottom: 2px solid var(--line)
}

.word-list a:hover,
.word-list a:focus-visible {
    color: var(--primary);
    text-decoration: none
}

.word-list a.is-active {
    position: relative;
    padding-left: 9px;
    border-left: 4px solid var(--primary)
}

.word-list a.is-active::after {
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: 17px;
    left: 7px;
    height: 7px;
    background: var(--accent);
    content: ""
}

.word-list a span {
    position: relative;
    z-index: 0;
    overflow: hidden;
    font-size: 15px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap
}

.word-list a small {
    color: var(--muted);
    font-size: 10px
}

.detail-author {
    display: flex;
    align-items: center;
    gap: 10px
}

.detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    padding-top: 16px;
    border-top: 2px solid var(--line);
    color: var(--muted)
}

.detail-save-form {
    margin: 0 0 0 auto
}

.bookmark-button {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 5px;
    background: transparent;
    border: 0;
    border-radius: 4px;
    color: var(--muted);
    cursor: pointer
}

.bookmark-button svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linejoin: round;
    stroke-width: 1.8
}

.bookmark-button:hover,
.bookmark-button:focus-visible,
.bookmark-button.is-saved {
    color: var(--primary)
}

.bookmark-button:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px
}

.bookmark-button.is-saved svg {
    fill: currentColor
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    margin-top: 20px
}

.detail-actions form {
    margin: 0
}

.detail-actions .rating-form {
    display: grid;
    grid-template-columns: 100px minmax(140px, 1fr);
    flex: 1;
    gap: 10px;
    max-width: 380px
}

.rating-form .btn {
    width: 100%;
    white-space: nowrap
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
    align-items: stretch;
    max-width: 1180px;
    padding-top: 52px !important
}

.detail-column {
    min-width: 0;
    padding-right: 42px
}

.interior-page .detail-column .detail {
    max-width: none;
    margin-top: 0
}

.report-section {
    width: 34px;
    margin: 0 0 0 auto;
    padding: 0
}

.report-section .alert {
    margin-bottom: 14px
}

.report-disclosure summary {
    display: inline-flex;
    align-items: center;
    width: auto;
    list-style: none;
    cursor: pointer;
    user-select: none
}

.report-disclosure summary::-webkit-details-marker {
    display: none
}

.report-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 5px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--muted);
    cursor: pointer
}

.report-icon-button:hover,
.report-icon-button:focus-visible {
    color: var(--primary)
}

.report-icon-button:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px
}

.report-icon-button svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.report-icon-button-small {
    width: 32px;
    height: 32px;
    padding: 5px
}

.report-icon-button-small svg {
    width: 20px;
    height: 20px
}

.report-disclosure {
    position: relative;
    text-align: right
}

.report-disclosure form {
    position: absolute;
    z-index: 2;
    top: 100%;
    right: 0;
    width: min(520px, 75vw);
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    background: #fff;
    text-align: left
}

.report-disclosure label {
    margin-top: 0
}

.report-disclosure textarea {
    min-height: 110px;
    resize: vertical
}

.interior-page .comments {
    max-width: none;
    min-width: 0;
    margin-top: 0;
    padding-top: 34px;
    padding-left: 42px;
    border-top: 0 !important;
    border-left: 3px solid var(--line)
}

.interior-page .comments .section-head {
    margin-bottom: 20px;
    border-bottom: 3px solid var(--line)
}

.interior-page .comment-form textarea {
    min-height: 86px;
    resize: vertical
}

.detail-comment-ad {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-top: 36px;
    background: var(--surface);
    border: 3px solid var(--line);
    border-top-color: var(--secondary);
    border-bottom-color: var(--primary)
}

.detail-comment-ad .ad-mark {
    justify-self: start;
    margin: 12px 12px 0;
    padding: 2px 5px;
    background: var(--primary);
    color: var(--surface);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.4
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 3px solid var(--line)
}

.profile-stats > div {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-right: 3px solid var(--line);
    text-align: center
}

.profile-stats > div:last-child {
    border-right: 0
}

.profile-stats strong {
    color: var(--primary);
    font-size: 30px;
    line-height: 1.2
}

.profile-stats span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px
}

.profile-section-head {
    padding: 30px 0 12px;
    border-bottom: 3px solid var(--line)
}

.profile-poems {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr))
}

.profile-poem {
    position: relative;
    min-height: 150px;
    padding: 24px;
    border-bottom: 3px solid var(--line)
}

.profile-poem:nth-child(odd) {
    border-right: 3px solid var(--line)
}

.profile-poem h3 {
    margin: 12px 0;
    font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
    font-size: 26px;
    font-weight: 700
}

.profile-poem .meta {
    border: 0;
    padding: 0;
    margin: 0;
    font-size: 12px
}

.account-settings {
    margin-top: 52px;
    padding: 28px 0;
    border-top: 3px solid var(--line)
}

.account-settings h2 {
    margin: 0 0 10px;
    font-size: 20px
}

.account-settings p {
    color: var(--muted)
}

.account-delete-card {
    width: min(560px, 100%);
    margin: 24px auto;
    padding: 34px 38px 38px;
    border-top: 5px solid var(--primary);
    border-bottom: 3px solid var(--line)
}

.account-delete-card h1 {
    margin: 4px 0 22px;
    font-size: 38px
}

.auth-page {
    min-height: 100vh
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(360px, 1.1fr);
    width: min(980px, calc(100% - 32px));
    min-height: calc(100vh - 80px) !important;
    margin: 0 auto;
    padding: 64px 0
}

.auth-intro {
    padding: 36px 54px 36px 0;
    border-right: 3px solid var(--primary)
}

.auth-intro .navbar-brand {
    display: inline-block;
    margin-bottom: 68px
}

.auth-intro h1 {
    position: relative;
    z-index: 0;
    width: max-content;
    max-width: 100%;
    margin: 0;
    font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
    font-size: clamp(42px, 5vw, 58px);
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -.05em
}

.auth-intro h1::after {
    position: absolute;
    z-index: -1;
    right: -6px;
    bottom: 5px;
    left: 45%;
    height: 12px;
    background: var(--accent);
    content: ""
}

.auth-intro .signup-intro-heading {
    font-size: clamp(38px, 4vw, 46px)
}

.signup-intro-heading span {
    display: block;
    white-space: nowrap
}

.auth-intro p {
    margin-top: 22px;
    color: var(--muted)
}

.interior-page .auth-card {
    align-self: center;
    width: auto;
    margin: 0;
    padding: 44px 0 44px 56px;
    border: 0 !important
}

.interior-page .auth-card h2 {
    margin: 0 0 28px;
    font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
    font-size: 34px;
    font-weight: 700
}

.auth-switch {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center
}

.auth-switch a {
    color: var(--ink);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--secondary);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px
}

.auth-oauth {
    margin-bottom: 1.5rem;
}

.google-auth-button {
    align-items: center;
    background: #fff;
    border: 1px solid #d6d9de;
    border-radius: 0.75rem;
    color: #202124;
    display: flex;
    font-weight: 700;
    gap: 0.75rem;
    justify-content: center;
    min-height: 3rem;
    width: 100%;
}

.google-auth-button:hover,
.google-auth-button:focus-visible {
    background: #f8f9fa;
    border-color: #aeb4bc;
    color: #202124;
}

.google-auth-icon {
    flex: 0 0 auto;
    height: 1.25rem;
    width: 1.25rem;
}

.auth-divider {
    align-items: center;
    color: #7a7f87;
    display: flex;
    font-size: 0.75rem;
    gap: 0.75rem;
    margin-top: 1.25rem;
    text-align: center;
}

.auth-divider::before,
.auth-divider::after {
    background: #e2e4e8;
    content: '';
    flex: 1;
    height: 1px;
}

.auth-divider span {
    white-space: nowrap;
}

.error-page .empty-state h1 {
    margin: 0;
    color: var(--primary);
    font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
    font-size: clamp(86px, 14vw, 140px);
    font-weight: 850;
    line-height: 1
}

.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden
}

@media (max-width: 900px) {
    .trending-feed {
        grid-template-rows: repeat(5, minmax(190px, auto))
    }
    .detail-layout {
        grid-template-columns: 1fr;
        padding-top: 36px !important
    }

    .detail-column {
        padding-right: 0
    }

    .interior-page .comments {
        margin-top: 36px;
        padding-top: 30px;
        padding-left: 38px;
        border-top: 3px solid var(--line) !important;
        border-left: 0
    }

    .combined-poems-layout {
        grid-template-columns: 1fr;
        gap: 28px
    }

    .combined-write-column {
        padding-left: 0;
        border-left: 0
    }

    .home-layout {
        grid-template-columns: 1fr;
        gap: 0
    }

    .category-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        border-right: 0;
        border-bottom: 2px solid var(--line);
        padding: 20px 0 24px
    }

    .category-sidebar h2 {
        grid-column: 1 / -1;
        margin-bottom: 0
    }

    .sidebar-ad {
        grid-column: auto;
        margin-top: 0
    }

    .sidebar-ad-stack {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        aspect-ratio: auto;
        margin-top: 0
    }

    .sidebar-ad-stack .sidebar-ad:nth-child(odd) {
        border-right: 0
    }

    .sidebar-ad-stack .sidebar-ad:nth-child(-n + 2) {
        border-bottom: 0
    }

    .sidebar-ad-stack .sidebar-ad:last-child {
        border-bottom: 3px solid var(--primary)
    }

    .sidebar-ad-stack .sidebar-ad {
        width: 100%;
        aspect-ratio: 3 / 1;
        justify-self: center
    }

    .filter-group + .filter-group {
        margin-top: 0
    }

    .filter-group nav {
        gap: 8px 18px
    }

    .daily-overview {
        margin-top: 24px
    }
}

@media (max-width: 700px) {
    .combined-write-column {
        display: contents
    }

    .combined-write {
        order: -1
    }

    .combined-write-ads {
        order: 1
    }

    .combined-explore {
        border-top: 3px solid var(--line)
    }

    #mainNav {
        overflow-x: auto;
        scrollbar-width: none
    }

    #mainNav::-webkit-scrollbar {
        display: none
    }

    #mainNav .navbar-nav {
        align-items: center;
        flex-wrap: nowrap;
        justify-content: flex-end;
        white-space: nowrap
    }

    #mainNav .nav-link {
        padding-right: .45rem;
        padding-left: .45rem;
        font-size: .9rem
    }

    .brand-logo-crop {
        width: 65px
    }

    .daily-overview {
        grid-template-columns: 1fr
    }

    .marketplace-page-head {
        grid-template-columns: 1fr;
        gap: 18px
    }

    .marketplace-head-ad {
        max-width: 440px
    }

    .daily-prompt {
        padding: 28px 0
    }

    .daily-recommendation {
        align-self: auto;
        margin: 0;
        margin-top: 22px;
        padding: 12px 0 0;
        border-top-color: var(--secondary)
    }

    .daily-prompt h1 {
        font-size: clamp(42px, 12vw, 50px)
    }

    .daily-prompt-heading {
        flex-wrap: wrap
    }

    .recent-words {
        margin: 0;
        padding: 24px 0 26px;
        border-top: 3px solid var(--line);
        border-left: 0
    }

    .hero-ad {
        flex-basis: 150px
    }

    .sidebar-ad-stack {
        display: none
    }

    .category-sidebar {
        display: none
    }

    .mobile-between-ad {
        display: grid;
        width: 100%;
        aspect-ratio: 3 / 1;
        margin: 24px 0;
        background: var(--surface);
        border: 3px solid var(--line);
        border-top-color: var(--secondary);
        border-bottom-color: var(--primary)
    }

    .mobile-home-category {
        display: block;
        margin: 0 0 24px;
        padding-top: 14px;
        border-top: 1px solid var(--line)
    }

    .mobile-home-category .filter-group {
        padding-top: 0;
        border-top: 0
    }

    .mobile-home-category .filter-group nav {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 8px;
        text-align: center
    }

    .mobile-home-category .filter-group nav > :first-child {
        grid-column: auto
    }

    .mobile-home-category .filter-group .is-active {
        width: auto
    }

    .trending-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        gap: 0
    }

    .trending-item {
        grid-column: 1;
        grid-row: auto;
        height: auto;
        min-height: 190px
    }

    .trending-rank-1 { grid-row: 1 }
    .trending-rank-2 { grid-row: 2 }
    .trending-rank-3 { grid-row: 3 }
    .trending-rank-4 { grid-row: 4 }
    .trending-rank-5 { grid-row: 5 }

    .trending-grid .card-body {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 10px
    }

    .feed-ad {
        grid-column: 1;
        grid-row: auto;
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        align-items: stretch;
        gap: 0;
        margin-top: 18px;
        padding: 0
    }

    .feed-ad-rank-1-2,
    .feed-ad-rank-3-4,
    .feed-ad-rank-5 {
        aspect-ratio: 3 / 1
    }

    .feed-ad-rank-1-2,
    .feed-ad-rank-3-4 {
        display: none
    }

    .feed-ad-rank-5 {
        grid-row: 6
    }

    .feed-ad strong,
    .feed-ad small {
        margin-top: 0
    }

    .feed-ad strong {
        font-size: 20px
    }

    .feed-ad strong br {
        display: none
    }

    .combined-write-ad,
    .combined-write-ad-landscape {
        max-width: none;
        aspect-ratio: 3 / 1
    }

    .combined-write-ad:not(:last-child) {
        display: none
    }

    .community-rank {
        font-size: 28px
    }

    .community-heading {
        flex-wrap: wrap
    }

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

    .comment-form {
        flex-direction: column
    }

    .interior-page .page-head {
        padding-top: 36px
    }

    .write-layout {
        grid-template-columns: 1fr;
        gap: 34px
    }

    .word-list {
        padding-left: 0;
        border-top: 3px solid var(--primary);
        border-left: 0
    }

    .word-list-head {
        padding-top: 26px
    }

    .word-list nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 18px
    }

    .interior-page .detail,
    .interior-page .comments,
    .interior-page .write-card,
    .interior-page form.write-card,
    .interior-page .auth-card {
        padding-right: 20px;
        padding-left: 20px
    }

    .interior-page .stats {
        grid-template-columns: 1fr
    }

    .interior-page .stats div {
        border-right: 0 !important;
        border-bottom: 2px solid var(--line) !important
    }

    .interior-page .stats div:last-child {
        border-bottom: 0 !important
    }

    .profile-stats,
    .profile-poems {
        grid-template-columns: 1fr
    }

    .profile-stats > div,
    .profile-poem:nth-child(odd) {
        border-right: 0
    }

    .profile-stats > div:not(:last-child) {
        border-bottom: 2px solid var(--line)
    }

    .auth-shell {
        grid-template-columns: 1fr;
        padding: 28px 0
    }

    .auth-intro {
        padding: 20px 0 32px;
        border-right: 0;
        border-bottom: 3px solid var(--primary)
    }

    .auth-intro .navbar-brand {
        margin-bottom: 34px
    }

    .auth-intro h1 {
        font-size: 42px
    }

    .auth-intro .signup-intro-heading {
        font-size: clamp(32px, 10vw, 42px)
    }

    .interior-page .auth-card {
        padding: 34px 20px
    }
}

/* Flat components stay borderless; structural separators remain visible. */
body *, body *::before, body *::after {
    box-shadow: none !important
}

/* Home placements use page-specific names to avoid generic cosmetic filters. */
.home-sponsor-sidebar,
.home-house-banner,
.home-sponsor-feed {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    align-items: stretch;
    min-width: 0;
    padding: 0;
    background: var(--surface);
    border: 3px solid var(--line);
    border-top-color: var(--secondary);
    color: var(--ink)
}

.home-sponsor-sidebar .ad-mark,
.home-house-banner .house-banner-mark,
.home-sponsor-feed .ad-mark {
    position: static;
    justify-self: start;
    margin: 12px 12px 0;
    padding: 2px 5px;
    background: var(--primary);
    color: var(--surface);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.4
}

.home-sponsor-stack {
    display: grid;
    grid-template-rows: repeat(3, auto);
    width: 100%;
    margin-top: 28px
}

.home-sponsor-sidebar {
    width: 100%;
    min-height: 0;
    aspect-ratio: 1 / 3;
    border-bottom: 0
}

.home-sponsor-sidebar:last-child {
    border-bottom: 3px solid var(--primary)
}

.home-house-banner {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    aspect-ratio: 3 / 1;
    margin-top: 22px;
    border-bottom-color: var(--primary);
    overflow: hidden
}

.home-house-banner .house-banner-content {
    display: flex;
    align-items: center;
    padding: 10px 24px 22px;
    color: inherit;
    text-decoration: none
}

.home-house-banner .house-banner-content:hover,
.home-house-banner .house-banner-content:focus-visible {
    color: var(--primary);
    text-decoration: none
}

.home-house-banner strong {
    margin: 0;
    font-size: clamp(20px, 2.1vw, 28px);
    font-weight: 800;
    line-height: 1.12
}

.home-sponsor-feed {
    grid-column: 2;
    align-self: stretch;
    border-bottom: 0
}

.home-sponsor-feed-rank-1-2 {
    grid-row: 1 / span 2;
    aspect-ratio: 1 / 2
}

.home-sponsor-feed-rank-3-4 {
    grid-row: 3 / span 2;
    aspect-ratio: 1 / 2;
    border-top-color: var(--primary)
}

.home-sponsor-feed-rank-5 {
    grid-row: 5;
    aspect-ratio: 1 / 1;
    border-bottom: 3px solid var(--primary)
}

@media (max-width: 900px) {
    .home-sponsor-stack {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        margin-top: 0
    }

    .home-sponsor-sidebar {
        aspect-ratio: 3 / 1
    }

    .trending-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        gap: 0
    }

    .trending-item {
        grid-column: 1;
        grid-row: auto;
        height: auto;
        min-height: 190px
    }

    .trending-rank-1 { grid-row: 1 }
    .trending-rank-2 { grid-row: 2 }
    .trending-rank-3 { grid-row: 3 }
    .trending-rank-4 { grid-row: 4 }
    .trending-rank-5 { grid-row: 5 }

    .home-sponsor-feed {
        grid-column: 1;
        width: 100%;
        margin-top: 18px;
        aspect-ratio: 3 / 1
    }

    .home-sponsor-feed-rank-1-2,
    .home-sponsor-feed-rank-3-4 {
        display: none
    }

    .home-sponsor-feed-rank-5 {
        grid-row: 6;
        border-bottom: 3px solid var(--primary)
    }
}

@media (max-width: 700px) {
    .home-sponsor-stack {
        display: none
    }

    .home-house-banner {
        min-height: 0
    }

    .home-sponsor-feed {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
        margin-top: 18px;
        aspect-ratio: 3 / 1
    }

    .home-sponsor-feed-rank-1-2,
    .home-sponsor-feed-rank-3-4 {
        display: none
    }

    .home-sponsor-feed-rank-5 {
        grid-row: 6
    }
}

.card,
.button,
.btn,
input,
textarea,
.navbar-toggler,
.stats div {
    border-color: transparent !important
}

/* Reserve the original ad dimensions without visible placeholder decoration. */
[data-ad-slot] {
    background: transparent !important;
    border-color: transparent !important
}
