.beginner-page {
    background: #eee;
    color: #231815
}

.beginner-page .visually-hidden {
    position: absolute!important;
    width: 1px!important;
    height: 1px!important;
    padding: 0!important;
    margin: -1px!important;
    overflow: hidden!important;
    clip: rect(0,0,0,0)!important;
    white-space: nowrap!important;
    border: 0!important
}

.beginner-main {
    padding: 72px 0 0
}

.beginner-container {
    width: min(900px,calc(100% - 40px));
    margin: 0 auto
}

.beginner-page .breadcrumb {
    margin: 0 0 38px;
    font-size: 14px;
    font-weight: 700
}

.beginner-page .breadcrumb a {
    color: inherit
}

.beginner-page .breadcrumb span::before {
    content: ">";
    margin: 0 8px
}

.beginner-hero {
    position: relative;
    display: grid;
    grid-template-rows: 15px minmax(0,1fr) 120px;
    height: min(550px, 60vw);
    overflow: hidden;
    border-radius: 12px;
    line-height: 0
}

.beginner-hero::before {
    content: "";
    position: relative;
    z-index: 2;
    grid-row: 1;
    grid-column: 1;
    background: #158e00;
    pointer-events: none
}

.beginner-hero>img {
    display: block;
    grid-row: 2/3;
    grid-column: 1;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center;
    vertical-align: bottom
}

.beginner-hero>div {
    position: relative;
    z-index: 2;
    grid-row: 3;
    grid-column: 1;
    min-height: 0;
    margin: 0;
    padding: 16px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #158e00;
    color: #fff;
    line-height: 1.7
}

.beginner-hero>div strong {
    font-size: 28px;
}

.beginner-hero>div span {
    font-size: 20px;
    font-weight: 700
}

.beginner-main h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 24px;
    color: #158e00;
    font-size: 28px;
}

.beginner-main h2>img {
    width: 30px;
    height: 30px;
    object-fit: contain
}

.beginner-steps {
    margin-top: 50px
}

.beginner-steps ol {
    margin: 0;
    padding: 0;
    list-style: none
}

.beginner-steps li {
    position: relative;
    min-height: 108px;
    margin-bottom: 44px;
    padding: 30px min(160px, 10vw);
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 8px
}

.beginner-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -28px;
    width: 19px;
    height: 19px;
    border-right: 4px solid #158e00;
    border-bottom: 4px solid #158e00;
    transform: translateX(-50%) rotate(45deg)
}

.beginner-steps li>b {
    font-size: 50px;
    color: #158e00
}

.beginner-steps li>span {
    margin-left: 48px;
    display: flex;
    flex-direction: column;
    white-space: nowrap
}

.beginner-steps li strong {
    font-size: 28px;
}

.beginner-steps li small {
    font-size: 20px;
}

.beginner-steps li>img {
    position: absolute;
    right: min(180px, 18vw);
    width: 80px;
    height: 80px;
}

.beginner-structure {
    margin-top: 68px;
}

.beginner-structure article {
    margin-bottom: 26px;
    padding: 30px 40px;
    border: 2px solid #158e00;
    border-radius: 8px;
    background: #fff
}

.beginner-structure h3 {
    margin: 0 0 8px;
    color: #158e00;
    font-size: 26px;
}

.beginner-structure p {
    margin: 0;
    font-size: 20px;
    line-height: 1.8
}

.beginner-words {
    margin-top: 65px;
}

.word-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
}

.word-links a {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ad7200;
    border-radius: 6px;
    background: #fff;
    color: #ad7200;
    font-size: 28px;
    font-weight: 700;
    transition: background-color .2s,color .2s,box-shadow .2s
}

.word-links a:focus-visible,.word-links a:hover {
    background: #ad7200;
    color: #fff;
    box-shadow: 0 3px 8px rgba(173,114,0,.22)
}

.all-words span,.word-links span {
    margin-left: 14px
}

.all-words {
    position: relative;
    width: max-content;
    margin: 80px auto 0;
    padding-bottom: 3px;
    display: block;
    color: #158e00;
    font-size: 28px;
    font-weight: 700
}

.all-words::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #158e00;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .25s
}

.all-words:focus-visible::after,.all-words:hover::after {
    transform: scaleX(1)
}

.beginner-vote {
    margin-top: 50px;
    padding: 40px 180px 60px;
    border-radius: 12px;
    background: linear-gradient(#008200,#77c600);
    color: #fff;
    text-align: center
}

.beginner-vote h2 {
    justify-content: center;
    margin-bottom: 10px;
    color: #fff
}

.beginner-vote h2 img {
    filter: brightness(0) invert(1)
}

.beginner-vote p {
    margin: 0 0 32px;
    font-weight: 700;
    font-size: 20px;
}

.beginner-vote>div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px 30px;
}

.beginner-vote a {
    height: 95px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: #fff
}

.beginner-vote a img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.beginner-predict {
    margin-top: 120px;
    padding: 80px 0;
    background: url(../images/yosou-bg.png) center/cover no-repeat #fff
}

.beginner-predict h2 {
    justify-content: center;
    color: #c71d00
}

.beginner-predict h2 img {
    width: 32px
}

.beginner-predict>div>div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 0 36px;
}

.beginner-predict a {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,.16)
}

.beginner-predict a img {
    display: block;
    width: 100%;
    height: auto
}

.beginner-faq {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 86px;
    background: #f1f1f1;
    box-shadow: 0 0 0 100vmax #f1f1f1;
    clip-path: inset(0 -100vmax)
}

.beginner-faq h2 {
    font-size: 26px;
}

.beginner-faq h2 img {
    width: 32px;
    height: 32px;
}

.beginner-faq details {
    margin-bottom: 20px;
    border-radius: 7px;
    background: #fff
}

.beginner-faq details.is-animating {
    overflow: hidden
}

.beginner-faq details:last-child {
    margin-bottom: 0
}

.beginner-faq summary {
    min-height: 86px;
    padding: 0 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    list-style: none
}

.beginner-faq summary::-webkit-details-marker {
    display: none
}

.beginner-faq summary::after {
    content: "+";
    color: #158e00;
    font-size: 30px;
    font-weight: 400
}

.beginner-faq details[open] summary::after {
    content: "−"
}

.beginner-faq details p {
    margin: 0;
    padding: 0 24px 20px;
    font-size: 14px;
    line-height: 1.7
}

.beginner-page .site-footer {
    padding-top: 180px;
    background: #f1f1f1
}

@media(max-width: 767px) {
    .beginner-main {
        padding:24px 0 0
    }

    .beginner-container {
        width: calc(100% - 32px)
    }

    .beginner-page .breadcrumb {
        margin-bottom: 20px;
        font-size: 12px
    }

    .beginner-hero {
        grid-template-rows: 10px minmax(0,1fr) 40px;
        height: 178px;
        border-radius: 9px
    }

    .beginner-hero>img {
        height: 100%
    }

    .beginner-hero>div {
        min-height: 0;
        padding: 6px 12px
    }

    .beginner-hero>div strong {
        font-size: 12px
    }

    .beginner-hero>div span {
        font-size: 10px
    }

    .beginner-main h2 {
        margin-bottom: 12px;
        font-size: 15px
    }

    .beginner-main h2>img {
        width: 18px;
        height: 18px
    }

    .beginner-steps {
        margin-top: 26px
    }

    .beginner-steps li {
        min-height: 80px;
        margin-bottom: 28px;
        padding: 10px 62px 10px 20px;
    }

    .beginner-steps li:not(:last-child)::after {
        bottom: -18px;
        width: 12px;
        height: 12px;
        border-width: 3px
    }

    .beginner-steps li>b {
        font-size: 28px;
    }

    .beginner-steps li>span {
        margin-left: 20px;
    }

    .beginner-steps li strong {
        font-size: 16px
    }

    .beginner-steps li small {
        margin-top: 2px;
        font-size: 12px
    }

    .beginner-steps li>img {
        right: 28px;
        width: 48px;
        height: 48px;
    }

    .beginner-structure {
        margin-top: 32px
    }

    .beginner-structure article {
        margin-bottom: 20px;
        padding: 13px 16px
    }

    .beginner-structure h3 {
        margin-bottom: 0;
        font-size: 16px
    }

    .beginner-structure p {
        font-size: 13px;
        line-height: 1.4;
    }

    .beginner-words {
        margin-top: 24px;
    }

    .word-links {
        gap: 10px 10px;
    }

    .word-links a {
        height: 42px;
        font-size: 16px;
        border-radius: 8px;
    }

    .word-links span {
        margin-left: 8px
    }

    .all-words {
        margin-top: 18px;
        font-size: 16px;
    }

    .beginner-vote {
        margin-top: 22px;
        padding: 16px 44px 22px;
        border-radius: 8px
    }

    .beginner-vote h2 {
        margin-bottom: 7px
    }

    .beginner-vote p {
        margin-bottom: 12px;
        font-size: 9px
    }

    .beginner-vote>div {
        gap: 8px 10px
    }

    .beginner-vote a {
        height: 46px;
        border-radius: 5px
    }

    .beginner-predict {
        margin-top: 0;
        padding: 30px 0;
    }

    .beginner-predict h2 {
        font-size: 14px;
        justify-content: flex-start;
    }

    .beginner-predict h2 img {
        width: 20px
    }

    .beginner-predict>div>div {
        gap: 10px;
        padding: 0;
    }

    .beginner-predict a {
        border-radius: 7px
    }

    .beginner-faq {
        margin-top: 0;
        padding-top: 34px
    }

    .beginner-faq h2 {
        font-size: 14px
    }

    .beginner-faq h2 img {
        width: 16px;
        height: 16px
    }

    .beginner-faq details {
        margin-bottom: 9px
    }

    .beginner-faq summary {
        min-height: 48px;
        padding: 0 20px;
        font-size: 14px
    }

    .beginner-faq summary::after {
        font-size: 21px
    }

    .beginner-faq details p {
        padding: 0 14px 14px;
        font-size: 10px
    }

    .beginner-page .site-footer {
        padding-top: 55px
    }
}

/* Vote banners: use the supplied artwork itself without an extra card. */
.beginner-vote a {
    height: auto;
    display: block;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    line-height: 0
}

.beginner-vote a img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
    object-fit: contain
}

/* SP hero caption spacing: keep the image area while giving both text lines equal breathing room. */
@media(max-width: 767px) {
    .beginner-hero {
        grid-template-rows: 10px minmax(0,1fr) 60px;
        height: min(390px, 55vw);
    }

    .beginner-hero>div {
        min-height: 0;
        padding: 10px 12px;
        gap: 2px;
        line-height: 1.3
    }

    .beginner-hero>div strong,.beginner-hero>div span {
        display: block;
        line-height: 1.3
    }
}
