/*
 * 어른의 국어 - HOME v4
 * 어휘 · 읽을거리 · 한자 PIXEL PLAY · 문제 풀기
 */


/* ==================================================
   기본
================================================== */

body.home {
    --gw-green: #314a3b;
    --gw-deep: #183f40;
    --gw-paper: #f7f3e8;
    --gw-paper-light: #fbfaf6;
    --gw-line: #ded8ca;
    --gw-soft: #66655f;
    --gw-gold: #c99d47;
    --gw-blue: #5f94ad;
    --gw-pixel-dark: #245140;
}

body.home .site-content {
    display: block;
}

body.home .content-area {
    width: 100%;
}

body.home .widget-area {
    display: none;
}

body.home .site-main {
    margin: 0;
}

.gw-home {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 22px 72px;

    color: #222;
    word-break: keep-all;
}

.gw-home *,
.gw-home *::before,
.gw-home *::after {
    box-sizing: border-box;
}

.gw-home a {
    text-underline-offset: 3px;
}


/* ==================================================
   공통 버튼
================================================== */

.gw-home-actions,
.gw-home-latest-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gw-home-btn,
.gw-home-btn:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 12px 21px;

    border: 1px solid transparent;
    border-radius: 9px;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;

    text-decoration: none !important;

    transition:
        background-color .18s ease,
        color .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

.gw-home-btn:hover {
    transform: translateY(-1px);
}

.gw-home-btn-primary,
.gw-home-btn-primary:visited {
    background: var(--gw-green);
    border-color: var(--gw-green);
    color: #fff !important;
}

.gw-home-btn-primary:hover,
.gw-home-btn-primary:focus {
    background: var(--gw-deep);
    border-color: var(--gw-deep);
    color: #fff !important;
}

.gw-home-btn-pixel,
.gw-home-btn-pixel:visited {
    background: #e7efe9;
    border-color: #c8d8cc;
    color: var(--gw-pixel-dark) !important;
}

.gw-home-btn-pixel:hover,
.gw-home-btn-pixel:focus {
    background: #dce9df;
    color: var(--gw-pixel-dark) !important;
}

.gw-home-btn-secondary,
.gw-home-btn-secondary:visited {
    background: #fff;
    border-color: var(--gw-green);
    color: var(--gw-green) !important;
}

.gw-home-btn-secondary:hover,
.gw-home-btn-secondary:focus {
    background: #f2f5f1;
    color: var(--gw-green) !important;
}


/* ==================================================
   HERO
================================================== */

.gw-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr);
    gap: 58px;
    align-items: center;

    min-height: 620px;
    padding: 78px 24px 82px;
}

.gw-home-eyebrow {
    margin-bottom: 17px;

    color: var(--gw-green);

    font-size: 14px;
    font-weight: 700;
    letter-spacing: .13em;
}

.gw-home-hero h1 {
    margin: 0;

    font-size: clamp(50px, 6.2vw, 76px);
    line-height: 1.12;
    letter-spacing: -.06em;
}

.gw-home-lead {
    max-width: 660px;
    margin: 27px 0 0;

    color: var(--gw-soft);

    font-size: 18px;
    line-height: 1.9;
}

.gw-home-actions {
    margin-top: 34px;
}


/* Hero PIXEL PLAY */

.gw-home-hero-pixel,
.gw-home-hero-pixel:visited {
    display: block;
    width: 100%;
    max-width: 430px;
    margin-left: auto;
    padding: 18px;

    background: #f8f5ec;
    border: 1px solid #d9d2c4;
    border-radius: 22px;

    color: #1f3028 !important;
    text-decoration: none !important;

    box-shadow: 0 18px 46px rgba(49, 74, 59, .09);

    transform: rotate(1.2deg);
    transition: transform .2s ease, box-shadow .2s ease;
}

.gw-home-hero-pixel:hover {
    transform: rotate(0deg) translateY(-3px);
    box-shadow: 0 22px 52px rgba(49, 74, 59, .13);
}

.gw-home-hero-pixel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 13px;

    color: var(--gw-green);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
}

.gw-home-hero-pixel-top b {
    letter-spacing: .02em;
}

.gw-home-hero-pixel-board {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 1px;

    overflow: hidden;
    aspect-ratio: 1;

    background: #d5cfc2;
    border: 8px solid #ebe6db;
    border-radius: 14px;
}

.gw-home-hero-pixel-board span {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    aspect-ratio: 1;

    background: #fffdfa;

    color: #27332d;

    font-family: "Noto Serif KR", "Batang", serif;
    font-size: clamp(15px, 2vw, 24px);
    line-height: 1;
}

.gw-home-hero-pixel-board .is-revealed {
    color: transparent;
}

.gw-home-hero-pixel-board .is-sky {
    background: #6ba3bc;
}

.gw-home-hero-pixel-board .is-moon,
.gw-home-hero-pixel-board .is-gold {
    background: #e9cc62;
}

.gw-home-hero-pixel-board .is-hill {
    background: #4e7a57;
}

.gw-home-hero-pixel-board .is-deep {
    background: #244d42;
}

.gw-home-hero-pixel-board .is-water {
    background: #507f8c;
}

.gw-home-hero-pixel-copy {
    display: grid;
    gap: 5px;
    padding: 17px 5px 2px;
}

.gw-home-hero-pixel-copy strong {
    font-size: 18px;
    line-height: 1.4;
}

.gw-home-hero-pixel-copy span {
    color: #77746d;
    font-size: 13px;
    line-height: 1.55;
}


/* ==================================================
   공통 섹션
================================================== */

.gw-home-section {
    margin-top: 34px;
    padding: 72px 0;
}

.gw-home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 26px;

    margin-bottom: 28px;
}

.gw-home-kicker {
    display: inline-block;
    margin-bottom: 8px;

    color: var(--gw-green);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: .11em;
}

.gw-home-simple-title {
    margin: 0;

    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.2;
    letter-spacing: -.045em;
}

.gw-home-section-link,
.gw-home-section-link:visited {
    color: var(--gw-green);

    font-size: 15px;
    font-weight: 700;

    text-decoration: none;
}

.gw-home-section-link:hover {
    text-decoration: underline;
}


/* ==================================================
   최근 어휘
================================================== */

.gw-home-latest-section {
    position: relative;

    padding-right: 30px;
    padding-left: 30px;

    background: var(--gw-paper-light);
    border: 1px solid #ece6d9;
    border-radius: 22px;
}

.gw-home-latest-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
    gap: 20px;
}

.gw-home-latest-feature {
    overflow: hidden;

    background: #fff;
    border: 1px solid var(--gw-line);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .035);
}

.gw-home-latest-media {
    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #111;
    border-bottom: 1px solid var(--gw-line);
}

.gw-home-video-preview {
    position: relative;

    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;

    overflow: hidden;

    background: #111;
    border: 0;
    border-radius: 0;

    cursor: pointer;
}

.gw-home-video-preview img,
.gw-home-featured-image img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    transition: transform .25s ease;
}

.gw-home-video-preview:hover img,
.gw-home-featured-image:hover img {
    transform: scale(1.025);
}

.gw-home-video-shade {
    position: absolute;
    inset: 0;

    background: linear-gradient(to bottom, rgba(0, 0, 0, .02) 25%, rgba(0, 0, 0, .34) 100%);
}

.gw-home-play {
    position: absolute;
    top: 50%;
    left: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 72px;
    height: 72px;

    background: rgba(255, 255, 255, .95);
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .22);

    transform: translate(-50%, -50%);
    transition: transform .18s ease;
}

.gw-home-video-preview:hover .gw-home-play {
    transform: translate(-50%, -50%) scale(1.06);
}

.gw-home-play-icon {
    width: 0;
    height: 0;
    margin-left: 5px;

    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 17px solid var(--gw-deep);
}

.gw-home-video-label {
    position: absolute;
    right: 14px;
    bottom: 12px;

    padding: 6px 10px;

    background: rgba(22, 31, 28, .80);
    border-radius: 999px;

    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.gw-home-video-iframe {
    display: block;
    width: 100%;
    height: 100%;

    border: 0;
    background: #000;
}

.gw-home-featured-image {
    display: block;
    width: 100%;
    height: 100%;
}

.gw-home-media-fallback {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background: linear-gradient(135deg, #f7f3e8, #ede4d0);

    color: var(--gw-deep);
    font-size: clamp(52px, 8vw, 88px);
    font-weight: 700;
    letter-spacing: .08em;
}

.gw-home-latest-copy {
    padding: 30px;
}

.gw-home-latest-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin-bottom: 15px;

    color: #999;
    font-size: 12px;
    font-weight: 600;
}

.gw-home-word-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 48px;
    min-height: 28px;
    padding: 4px 10px;

    background: var(--gw-paper);
    border-radius: 999px;

    color: var(--gw-green);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .05em;
}

.gw-home-latest-copy h3 {
    margin: 0 0 17px;

    font-size: 34px;
    line-height: 1.25;
    letter-spacing: -.04em;
}

.gw-home-latest-copy h3 a,
.gw-home-latest-copy h3 a:visited {
    color: var(--gw-deep);
    text-decoration: none;
}

.gw-home-latest-copy h3 span {
    margin-left: 7px;

    color: #8a877f;
    font-size: .68em;
    font-weight: 500;
}

.gw-home-latest-copy p {
    margin: 0;

    color: var(--gw-soft);
    font-size: 16px;
    line-height: 1.8;
}

.gw-home-latest-actions {
    margin-top: 26px;
}

.gw-home-latest-side {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.gw-home-small-word-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    padding: 25px;

    background: #fff;
    border: 1px solid var(--gw-line);
    border-radius: 15px;

    transition: transform .18s ease, box-shadow .18s ease;
}

.gw-home-small-word-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .05);
}

.gw-home-small-word-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 15px;

    color: #aaa;
    font-size: 12px;
    font-weight: 600;
}

.gw-home-small-word-card h3 {
    margin: 0 0 12px;

    font-size: 25px;
    line-height: 1.35;
    letter-spacing: -.03em;
}

.gw-home-small-word-card h3 a,
.gw-home-small-word-card h3 a:visited {
    color: var(--gw-deep);
    text-decoration: none;
}

.gw-home-small-word-card h3 em {
    margin-left: 5px;

    color: #8a877f;
    font-size: .72em;
    font-style: normal;
    font-weight: 500;
}

.gw-home-small-word-card p {
    display: -webkit-box;
    margin: 0 0 18px;
    overflow: hidden;

    color: var(--gw-soft);
    font-size: 15px;
    line-height: 1.7;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.gw-home-text-link,
.gw-home-text-link:visited {
    margin-top: auto;

    color: var(--gw-green);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.gw-home-text-link:hover {
    text-decoration: underline;
}


/* ==================================================
   HANJA PIXEL PLAY
================================================== */

.gw-home-pixel-section {
    padding: 78px 30px;

    background:
        radial-gradient(circle at 82% 4%, rgba(94, 143, 113, .13), transparent 25%),
        linear-gradient(145deg, #f5f1e6, #fbfaf6 62%);

    border: 1px solid #e4ddcf;
    border-radius: 24px;
}

.gw-home-pixel-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .7fr);
    gap: 40px;
    align-items: end;

    margin-bottom: 31px;
}

.gw-home-pixel-intro p {
    margin: 0 0 4px;

    color: var(--gw-soft);
    font-size: 15px;
    line-height: 1.8;
}

.gw-home-pixel-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 13px;
}

.gw-home-pixel-card,
.gw-home-pixel-card:visited {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 9px;

    background: rgba(255, 255, 255, .78);
    border: 1px solid #ddd5c7;
    border-radius: 15px;

    color: #252925 !important;
    text-decoration: none !important;

    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.gw-home-pixel-card:hover {
    transform: translateY(-4px);
    border-color: #b7c6ba;
    box-shadow: 0 13px 26px rgba(49, 74, 59, .09);
}

.gw-home-pixel-preview {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    aspect-ratio: 1;
    padding: 8px;
    overflow: hidden;

    background: #eee9dd;
    border-radius: 10px;
}

.gw-home-pixel-svg {
    display: block;
    width: 100%;
    height: 100%;
}

.gw-home-pixel-fallback {
    color: #9d998f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.gw-home-pixel-card-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    align-items: center;
    padding: 10px 2px 2px;
}

.gw-home-pixel-card-copy strong {
    min-width: 0;
    overflow: hidden;

    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.gw-home-pixel-card-copy span {
    color: #89857e;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.gw-home-pixel-empty {
    display: grid;
    gap: 6px;
    padding: 35px;

    background: #fff;
    border: 1px dashed #cec6b7;
    border-radius: 16px;
}

.gw-home-pixel-empty strong {
    color: var(--gw-deep);
    font-size: 22px;
}

.gw-home-pixel-empty span {
    color: var(--gw-soft);
}

.gw-home-pixel-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 28px;
}

.gw-home-pixel-actions > span {
    color: #8b877e;
    font-size: 12px;
    line-height: 1.6;
    text-align: right;
}


/* ==================================================
   QUIZ CTA
================================================== */

.gw-home-quiz {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 50px;
    align-items: end;

    margin-top: 72px;
    padding: 48px 50px;
    overflow: hidden;

    background: linear-gradient(135deg, var(--gw-deep), #214f4b);
    border-radius: 20px;

    color: #fff;
}

.gw-home-quiz-kicker {
    display: block;
    margin-bottom: 14px;

    color: #d7c08b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .13em;
}

.gw-home-quiz h2 {
    margin: 0;

    color: #fff;
    font-size: clamp(34px, 4.4vw, 50px);
    line-height: 1.2;
    letter-spacing: -.045em;
}

.gw-home-quiz p {
    max-width: 630px;
    margin: 19px 0 0;

    color: rgba(255, 255, 255, .76);
    font-size: 16px;
    line-height: 1.8;
}

.gw-home-quiz-btn,
.gw-home-quiz-btn:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;
    padding: 13px 23px;

    background: #fff;
    border-radius: 8px;

    color: var(--gw-deep) !important;
    font-weight: 700;
    text-decoration: none !important;

    transition: transform .18s ease;
}

.gw-home-quiz-btn:hover {
    transform: translateY(-2px);
}


/* ==================================================
   읽을거리
================================================== */

.gw-home-stories-section {
    padding-bottom: 58px;
}

.gw-home-story-grid {
    display: grid;
    grid-template-columns: 1.22fr 1fr 1fr;
    gap: 16px;
}

.gw-home-story-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;

    background: #fff;
    border: 1px solid var(--gw-line);
    border-radius: 16px;
}

.gw-home-story-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;

    background: var(--gw-paper);
    text-decoration: none !important;
}

.gw-home-story-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.gw-home-story-card:hover .gw-home-story-image img {
    transform: scale(1.025);
}

.gw-home-story-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;

    color: var(--gw-green);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .08em;
}

.gw-home-story-copy {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px;
}

.gw-home-story-label {
    margin-bottom: 9px;

    color: var(--gw-green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

.gw-home-story-copy h3 {
    margin: 0;

    font-size: 21px;
    line-height: 1.45;
    letter-spacing: -.025em;
}

.gw-home-story-card.is-featured .gw-home-story-copy h3 {
    font-size: 24px;
}

.gw-home-story-copy h3 a,
.gw-home-story-copy h3 a:visited {
    color: #252925;
    text-decoration: none;
}

.gw-home-story-copy p {
    display: -webkit-box;
    margin: 13px 0 18px;
    overflow: hidden;

    color: var(--gw-soft);
    font-size: 14px;
    line-height: 1.7;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}


/* ==================================================
   사이트 이용 방법
================================================== */

.gw-home-method {
    padding-top: 58px;
    padding-bottom: 58px;
}

.gw-home-method-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 35px;
}

.gw-home-method-card,
.gw-home-method-card:visited {
    display: flex;
    flex-direction: column;
    min-height: 245px;
    padding: 26px 23px;

    background: #fff;
    border: 1px solid var(--gw-line);
    border-radius: 14px;

    color: #242824 !important;
    text-decoration: none !important;

    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.gw-home-method-card:hover {
    transform: translateY(-3px);
    border-color: #c8d3ca;
    box-shadow: 0 10px 24px rgba(49, 74, 59, .06);
}

.gw-home-method-card.is-pixel {
    background: #f3f7f3;
    border-color: #ccd8ce;
}

.gw-home-method-number {
    display: block;
    margin-bottom: 30px;

    color: #aaa;
    font-size: 12px;
    font-weight: 700;
}

.gw-home-method-card strong {
    display: block;
    margin-bottom: 11px;

    color: var(--gw-deep);
    font-size: 23px;
}

.gw-home-method-card p {
    margin: 0;

    color: var(--gw-soft);
    font-size: 15px;
    line-height: 1.75;
}

.gw-home-method-card b {
    display: block;
    margin-top: auto;
    padding-top: 22px;

    color: var(--gw-green);
    font-size: 13px;
}


/* ==================================================
   ENDING
================================================== */

.gw-home-ending {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;

    margin-top: 25px;
    padding: 40px 42px;

    background: var(--gw-paper);
    border: 1px solid var(--gw-line);
    border-radius: 18px;
}

.gw-home-ending-kicker {
    display: block;
    margin-bottom: 8px;

    color: var(--gw-green);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .11em;
}

.gw-home-ending p {
    margin: 0;

    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -.025em;
}

.gw-home-ending-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 22px;
}

.gw-home-ending a,
.gw-home-ending a:visited {
    flex: 0 0 auto;

    color: var(--gw-green);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.gw-home-ending a:hover {
    text-decoration: underline;
}


/* ==================================================
   EMPTY
================================================== */

.gw-home-empty {
    padding: 40px 25px;

    background: #fff;
    border: 1px solid var(--gw-line);
    border-radius: 14px;

    color: var(--gw-soft);
    text-align: center;
}


/* ==================================================
   태블릿
================================================== */

@media (max-width: 1000px) {

    .gw-home-hero {
        grid-template-columns: minmax(0, 1fr) minmax(330px, .82fr);
        gap: 38px;
    }

    .gw-home-pixel-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


@media (max-width: 900px) {

    .gw-home-hero {
        grid-template-columns: 1fr;
        gap: 42px;

        min-height: 0;
        padding-top: 65px;
    }

    .gw-home-hero-pixel {
        max-width: 520px;
        margin-left: 0;
        transform: none;
    }

    .gw-home-latest-layout {
        grid-template-columns: 1fr;
    }

    .gw-home-latest-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
    }

    .gw-home-pixel-intro {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gw-home-quiz {
        grid-template-columns: 1fr;
        gap: 28px;
        align-items: start;
    }

    .gw-home-story-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gw-home-story-card.is-featured {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
    }

    .gw-home-story-card.is-featured .gw-home-story-image {
        height: 100%;
        aspect-ratio: auto;
    }

    .gw-home-method-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* ==================================================
   모바일
================================================== */

@media (max-width: 768px) {

    .gw-home {
        padding-right: 16px;
        padding-left: 16px;
    }

    .gw-home-hero {
        padding: 52px 6px 62px;
    }

    .gw-home-hero h1 {
        font-size: 45px;
    }

    .gw-home-lead {
        font-size: 16px;
    }

    .gw-home-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .gw-home-actions .gw-home-btn-primary {
        grid-column: 1 / -1;
    }

    .gw-home-btn {
        width: 100%;
    }

    .gw-home-hero-pixel {
        padding: 13px;
        border-radius: 17px;
    }

    .gw-home-hero-pixel-board {
        border-width: 6px;
    }

    .gw-home-section {
        padding-top: 54px;
        padding-bottom: 54px;
    }

    .gw-home-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .gw-home-latest-section {
        padding-right: 18px;
        padding-left: 18px;
        border-radius: 16px;
    }

    .gw-home-latest-copy {
        padding: 24px 21px;
    }

    .gw-home-latest-copy h3 {
        font-size: 30px;
    }

    .gw-home-latest-side {
        grid-template-columns: 1fr;
    }

    .gw-home-small-word-card {
        padding: 22px 20px;
    }

    .gw-home-pixel-section {
        padding: 52px 18px;
        border-radius: 18px;
    }

    .gw-home-pixel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    /* 다각형 게임은 모바일에서 지원하지 않으므로 홈 미리보기도 숨깁니다. */
    .gw-home-pixel-card.is-polygon {
        display: none;
    }

    .gw-home-pixel-card-copy {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .gw-home-pixel-card-copy strong {
        font-size: 13px;
    }

    .gw-home-pixel-card-copy span {
        font-size: 9px;
    }

    .gw-home-pixel-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .gw-home-pixel-actions > span {
        text-align: left;
    }

    .gw-home-quiz {
        margin-top: 48px;
        padding: 37px 27px;
        border-radius: 16px;
    }

    .gw-home-quiz h2 {
        font-size: 35px;
    }

    .gw-home-quiz-btn {
        width: 100%;
    }

    .gw-home-story-grid {
        grid-template-columns: 1fr;
    }

    .gw-home-story-card.is-featured {
        display: flex;
        grid-column: auto;
    }

    .gw-home-story-card.is-featured .gw-home-story-image {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .gw-home-story-card.is-featured .gw-home-story-copy h3 {
        font-size: 22px;
    }

    .gw-home-method-grid {
        grid-template-columns: 1fr;
    }

    .gw-home-method-card {
        min-height: 0;
    }

    .gw-home-ending {
        align-items: flex-start;
        flex-direction: column;
        padding: 32px 26px;
    }

    .gw-home-ending-links {
        justify-content: flex-start;
    }

}


@media (max-width: 420px) {

    .gw-home-hero h1 {
        font-size: 39px;
    }

    .gw-home-actions {
        grid-template-columns: 1fr;
    }

    .gw-home-actions .gw-home-btn-primary {
        grid-column: auto;
    }

    .gw-home-pixel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* ==================================================
   어른의 국어 상점 미리보기 · HOME v1.4
   - Actual product/category thumbnails, not invented sample images.
   - Printed below recent stories and above the site guide.
================================================== */

.gw-home-shop {
    margin-top: 5px;
    padding-top: 57px;
    padding-bottom: 57px;
    border-top: 1px solid var(--gw-line);
    border-bottom: 1px solid var(--gw-line);
}

.gw-home-shop .gw-home-section-head {
    align-items: end;
    margin-bottom: 28px;
}

.gw-home-shop-intro {
    max-width: 700px;
    margin: 14px 0 0;
    color: var(--gw-soft);
    font-size: 16px;
    line-height: 1.85;
}

.gw-home-shop-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.gw-home-shop-card,
.gw-home-shop-card:visited {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--gw-line);
    border-radius: 17px;
    color: #26372d !important;
    text-decoration: none !important;
    box-shadow: 0 5px 22px rgba(49, 74, 59, .035);
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.gw-home-shop-card:hover {
    border-color: #b9cbbd;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(49, 74, 59, .09);
}

.gw-home-shop-card:focus-visible {
    outline: 3px solid #446b50;
    outline-offset: 3px;
}

.gw-home-shop-visual {
    display: flex;
    min-width: 0;
    min-height: 245px;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #f6f1e7;
}

.gw-home-shop-visual.has-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 245px;
    object-fit: contain;
    padding: 12px;
    transition: transform .3s ease;
}

.gw-home-shop-card:hover .gw-home-shop-visual.has-image img {
    transform: scale(1.03);
}

.gw-home-shop-card-pdf .gw-home-shop-visual {
    background: #eaf0e9;
}

.gw-home-shop-visual.is-fallback {
    flex-direction: column;
    gap: 16px;
    background: linear-gradient(145deg, #ede5d6, #fbf8f0);
}

.gw-home-shop-card-pdf .gw-home-shop-visual.is-fallback {
    background: linear-gradient(145deg, #e4eee9, #f6f8f3);
}

.gw-home-shop-fallback-icon {
    display: grid;
    place-items: center;
    width: 116px;
    height: 142px;
    padding: 12px;
    border-radius: 6px 12px 12px 6px;
    border-left: 8px double rgba(69, 89, 69, .5);
    background: rgba(255, 255, 255, .85);
    box-shadow: 9px 11px 18px rgba(59, 57, 47, .09);
    color: var(--gw-green);
    font-family: 'Noto Serif KR', 'Batang', serif;
    font-size: 57px;
    line-height: 1;
}

.gw-home-shop-card-pdf .gw-home-shop-fallback-icon {
    width: 125px;
    height: 154px;
    border-left: 0;
    border-radius: 5px;
    box-shadow: 5px 7px 0 rgba(255, 255, 255, .65), 10px 14px 18px rgba(49, 74, 59, .10);
}

.gw-home-shop-fallback-caption {
    font-size: 12px;
    color: #6c786f;
    letter-spacing: .05em;
}

.gw-home-shop-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 26px 24px;
}

.gw-home-shop-type {
    margin-bottom: 12px;
    font-size: 10px;
    line-height: 1.6;
    color: #5e755e;
    font-weight: 800;
    letter-spacing: .035em;
}

.gw-home-shop-card-title {
    font-size: 24px;
    line-height: 1.3;
    color: #26372d;
    letter-spacing: -.03em;
}

.gw-home-shop-description {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.75;
    color: var(--gw-soft);
}

.gw-home-shop-latest {
    margin-top: 16px;
    font-size: 12px;
    line-height: 1.55;
    color: #607467;
}

.gw-home-shop-cta {
    margin-top: auto;
    padding-top: 22px;
    font-size: 14px;
    font-weight: 800;
    color: var(--gw-green);
}

@media (max-width: 1060px) {
    .gw-home-shop-card {
        grid-template-columns: 1fr;
    }

    .gw-home-shop-visual,
    .gw-home-shop-visual.has-image img {
        min-height: 190px;
        max-height: 235px;
    }

    .gw-home-shop-card-body {
        padding: 23px 24px;
    }
}

@media (max-width: 768px) {
    .gw-home-shop {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .gw-home-shop-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .gw-home-shop-card {
        grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    }

    .gw-home-shop-visual,
    .gw-home-shop-visual.has-image img {
        min-height: 215px;
        max-height: none;
    }

    .gw-home-shop-card-body {
        padding: 23px 20px;
    }

    .gw-home-shop-card-title {
        font-size: 22px;
    }
}

@media (max-width: 540px) {
    .gw-home-shop-card {
        grid-template-columns: 1fr;
    }

    .gw-home-shop-visual,
    .gw-home-shop-visual.has-image img {
        min-height: 175px;
        max-height: 230px;
    }

    .gw-home-shop-card-body {
        padding: 23px 22px 24px;
    }

    .gw-home-shop-fallback-icon {
        width: 88px;
        height: 106px;
        font-size: 43px;
    }

    .gw-home-shop-card-pdf .gw-home-shop-fallback-icon {
        width: 100px;
        height: 112px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gw-home-shop-card,
    .gw-home-shop-visual.has-image img {
        transition: none;
    }

    .gw-home-shop-card:hover {
        transform: none;
    }
}
