@charset "UTF-8";

:root {
    --giwas-ink: #1f2f38;
    --giwas-muted: #66737b;
    --giwas-sun: #f8b735;
    --giwas-leaf: #2a9d78;
    --giwas-river: #2374ab;
    --giwas-coral: #e65f55;
    --giwas-earth: #8d5a2b;
    --giwas-cream: #fffaf0;
    --giwas-line: #e6dcc9;
    --giwas-shadow: 0 18px 45px rgba(42, 57, 64, .14);
}

body {
    color: var(--giwas-ink);
    background: #fffdf8;
    font-family: "DM Sans", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

.page {
    background:
        radial-gradient(circle at 8% 12%, rgba(248, 183, 53, .18), transparent 26%),
        linear-gradient(180deg, #fffdf8 0%, #f7fbf6 100%);
}

.title,
.breadcrumbs-custom-title,
h2,
h3,
h4 {
    letter-spacing: 0;
}

.title::after,
.breadcrumbs-custom-title::after {
    content: "";
    display: block;
    width: 82px;
    height: 5px;
    margin: 18px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--giwas-sun), var(--giwas-coral), var(--giwas-leaf), var(--giwas-river));
}

.bg-secondary,
.breadcrumbs-custom.bg-secondary {
    background:
        linear-gradient(135deg, rgba(31, 47, 56, .88), rgba(35, 116, 171, .88)),
        url("../images/bg-pattern-boxed.jpg") center/cover;
}

.breadcrumbs-custom-path li,
.breadcrumbs-custom-path a {
    color: rgba(255, 255, 255, .86);
}

.breadcrumbs-custom .breadcrumbs-custom-title {
    color: #fff;
    text-shadow: 0 3px 14px rgba(0, 0, 0, .24);
}

.breadcrumbs-custom .breadcrumbs-custom-title::after {
    background: linear-gradient(90deg, #fff, var(--giwas-sun), var(--giwas-leaf));
}

.section-custom .img-wrap img,
.img-wrap img {
    border-radius: 8px;
    /*box-shadow: var(--giwas-shadow);*/
}

.story-visual img,
.auth-visual img,
.register-visual img,
.section-cutout img,
.table-mascot {
    filter: drop-shadow(0 18px 26px rgba(31, 47, 56, .18));
}

.story-visual img {
    max-height: 360px;
    object-fit: contain;
    box-shadow: none;
}

.divider {
    width: min(7rem, 28vw);
    height: .25rem;
    margin: 0 auto;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--giwas-sun), var(--giwas-leaf), transparent);
}

.exercise_box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-left: 0;
    margin-right: 0;
}

.exercise_box > [class*="col-"] {
    float: none;
    flex: 1 1 280px;
    max-width: 360px;
    padding-left: 0;
    padding-right: 0;
}

.voucher-box-block {
    position: relative;
    min-height: 285px;
    overflow: hidden;
    padding: 36px 28px;
    border-radius: 8px;
    box-shadow: var(--giwas-shadow);
    isolation: isolate;
    transition: transform .25s ease, box-shadow .25s ease;
    margin-bottom: 30px;
}

.voucher-box-block::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .18) 0 18%, transparent 18% 34%, rgba(255, 255, 255, .14) 34% 48%, transparent 48%),
        radial-gradient(circle at 82% 16%, rgba(255, 255, 255, .34), transparent 24%);
}

.voucher-box-block:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(42, 57, 64, .2);
}

.voucher-title {
    font-size: 30px;
    font-weight: 800;
    color: #FFF;
}

.voucher-text {
    min-height: 54px;
    margin-top: 16px;
    font-size: 18px;
    line-height: 1.6;
    color: #F5F5F5;
    text-shadow: 0 1px 2px rgba(0,0,0,.7);
}

.button,
.button:focus {
    border-radius: 8px;
    letter-spacing: 0;
    box-shadow: 0 10px 24px rgba(31, 47, 56, .14);
}

.button-quiz,
.button-news,
.member-change-button-b {
    background: var(--giwas-river);
    border-color: var(--giwas-river);
}

.button-activity,
.member-change-button-r {
    background: var(--giwas-coral);
    border-color: var(--giwas-coral);
}

.member-change-button-r,
.member-change-button-r:focus {
    color: #fff;
    background: var(--giwas-coral);
    border-color: var(--giwas-coral);
}

.member-change-button-r:hover,
.member-change-button-r:active,
.member-change-button-r.active {
    color: #fff;
    background: #c94b43;
    border-color: #c94b43;
}

.member-change-button-b,
.member-change-button-b:focus {
    color: #fff;
    background: var(--giwas-leaf);
    border-color: var(--giwas-leaf);
}

.member-change-button-b:hover,
.member-change-button-b:active,
.member-change-button-b.active {
    color: #fff;
    background: #146248;
    border-color: #146248;
}

.button:hover,
.button:active {
    transform: translateY(-2px);
}

.voucher-box-block .button {
    border-color: rgba(255, 255, 255, .72);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 24px rgba(31, 47, 56, .18);
}

.voucher-box-block .button:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, .38);
}

.button-card-practice {
    color: #c8463f;
}

.button-card-practice:hover {
    background: #c8463f;
}

.button-card-ranking {
    color: #146248;
}

.button-card-ranking:hover {
    background: #146248;
    color: #FFF;
}

.button-card-competition {
    color: #6c421e;
}

.button-card-competition:hover {
    background: #f8b735;
    color: #3f2a10;
}

.box-info-modern {
    height: 100%;
    padding: 24px 20px 28px;
    text-align: center;
    border: 1px solid var(--giwas-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(42, 57, 64, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.box-info-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--giwas-shadow);
}

.box-info-modern-title {
    text-align: center;
}

.box-info-modern-title a {
    color: var(--giwas-ink);
}

.table-custom-responsive {
    overflow: hidden;
    border: 1px solid var(--giwas-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(42, 57, 64, .09);
}

.table-custom {
    margin-bottom: 0;
}

.table-custom thead th {
    color: #fff;
    background: linear-gradient(90deg, var(--giwas-river), var(--giwas-leaf));
    border-color: transparent;
    font-size: 18px;
}

.table-custom tbody tr {
    transition: background .2s ease, transform .2s ease;
}

.table-custom tbody tr:nth-child(even) {
    background: #fff8e9;
}

.table-custom tbody tr:hover {
    background: #ecf8ef;
}

.text-link,
.text-link-page {
    color: var(--giwas-river);
    font-weight: 700;
}

.text-link:hover,
.text-link-page:hover {
    color: var(--giwas-coral);
}

.season-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
    text-align: left;
}

.section-cutout {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    min-height: 72px;
    margin: -28px 8px -38px;
    pointer-events: none;
}

.section-cutout img {
    width: min(300px, 46vw);
    height: auto;
}

.season-card {
    overflow: hidden;
    border: 1px solid var(--giwas-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--giwas-shadow);
}

.season-card-header {
    padding: 22px 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--giwas-earth), var(--giwas-coral));
}

.season-card:nth-child(even) .season-card-header {
    background: linear-gradient(135deg, var(--giwas-river), var(--giwas-leaf));
}

.season-card-header h3 {
    margin: 0;
    color: #fff;
    font-size: 24px;
}

.episode-list {
    margin: 0;
    padding: 12px;
    list-style: none;
}

.episode-list li + li {
    margin-top: 10px;
}

.episode-list a {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    color: var(--giwas-ink);
    border: 1px solid transparent;
    border-radius: 8px;
    background: #fffaf0;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.episode-list a:hover {
    color: var(--giwas-ink);
    border-color: rgba(42, 157, 120, .35);
    background: #eef9ef;
    transform: translateX(4px);
}

.episode-number {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    color: #fff;
    font-weight: 800;
    line-height: 34px;
    text-align: center;
    border-radius: 50%;
    background: var(--giwas-coral);
}

.episode-title {
    display: inline;
    font-weight: 800;
}

.episode-topic {
    display: inline;
    margin-top: 0;
    margin-left: .65rem;
    color: var(--giwas-muted);
    font-size: 15px;
}

.episode-topic::before {
    content: "｜";
    color: rgba(42, 157, 120, .42);
    margin-right: .65rem;
}

.quiz-page,
.competition-page {
    background: linear-gradient(180deg, #fffdf8, #eef8f3);
}

.competition-page {
    background: linear-gradient(180deg, #fff7ed, #eef6fb);
}

.quiz-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 26px;
    padding: 12px 22px;
    color: var(--giwas-ink);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(42, 57, 64, .1);
}

.radio-question-text.question {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0 0 28px;
    padding: 26px;
    color: var(--giwas-ink);
    border: 1px solid var(--giwas-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--giwas-shadow);
}

.radio-question-text.question p {
    margin: 18px 0 20px;
    color: var(--giwas-ink);
    font-size: 21px;
    line-height: 1.65;
}

.question hr {
    display: none;
}

.progress-linear {
    padding: 16px 18px;
    border-radius: 8px;
    background: #fff8e9;
}

.progress-linear-header {
    align-items: flex-start;
    transform: none;
    margin: 0;
}

.progress-linear-header h4 {
    margin: 0;
    color: var(--giwas-river);
    font-size: 22px;
    font-weight: 800;
}

.progress-linear-counter {
    color: var(--giwas-coral);
}

.progress-linear-counter::before {
    content: "本題正確率 ";
    color: var(--giwas-muted);
    font-size: 14px;
    font-weight: 600;
}

.progress-linear-body {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #eadfca;
}

.progress-linear-bar {
    border-radius: inherit;
    background: linear-gradient(90deg, var(--giwas-sun), var(--giwas-leaf));
}

.radio-Answer-text {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.radio-Answer-text li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 18px;
    border: 1px solid #e9ddc8;
    border-radius: 8px;
    background: #fffdf8;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.radio-Answer-text li:hover {
    border-color: rgba(42, 157, 120, .48);
    background: #f1fbf1;
    transform: translateY(-1px);
}

.radio-Answer-text li:has(input:checked),
.radio-Answer-text li.is-selected {
    border-color: var(--giwas-leaf);
    background: #e7f7e9;
    box-shadow: 0 10px 24px rgba(42, 157, 120, .16);
}

.radio-Answer-text input[type="radio"] {
    margin-top: 6px;
    accent-color: var(--giwas-leaf);
}

.radio-Answer-text label {
    flex: 1;
    margin: 0;
    color: var(--giwas-ink);
    line-height: 1.65;
    cursor: pointer;
}

.radio-Answer-text .Answer-X-text {
    color: #8a9297;
}

.radio-Answer-text li:not(:has(input)) label:not(.Answer-X-text):not(.Answer-XX-text),
.Answer-O-text {
    display: block;
    padding: 10px 12px;
    color: #146248;
    border-radius: 8px;
    background: #e7f7e9;
    font-weight: 800;
}

.radio-Answer-text .Answer-XX-text {
    display: block;
    padding: 10px 12px;
    color: #a23b36;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    border-radius: 8px;
    background: #fff0ed;
    font-weight: 800;
}

.radio-Answer-text li:has(.Answer-XX-text) {
    border-color: rgba(230, 95, 85, .38);
    background: #fff7f4;
}

.radio-Answer-text li:has(.Answer-O-text),
.radio-Answer-text li:not(:has(input)):has(label:not(.Answer-X-text):not(.Answer-XX-text)) {
    border-color: rgba(42, 157, 120, .38);
    background: #f3fbf1;
}

.auth-section {
    background: linear-gradient(135deg, #fffaf0 0%, #eef8f3 100%);
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
    gap: 34px;
    align-items: stretch;
}

.auth-visual {
    min-height: 420px;
    overflow: hidden;
    border-radius: 8px;
    background: radial-gradient(circle at 52% 42%, rgba(255, 255, 255, .85), rgba(255, 250, 240, .18) 62%, transparent 63%);
}

.auth-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.register-section {
    overflow: hidden;
}

.register-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    max-width: 960px;
    margin: 0 auto;
}

.register-visual {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    margin-bottom: -42px;
    pointer-events: none;
}

.register-visual img {
    width: min(390px, 72vw);
    height: auto;
}

.register-card {
    position: relative;
    z-index: 1;
    padding-top: 64px;
}

.register-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.register-form .form-wrap {
    margin-bottom: 0;
}

.register-form .button,
.register-form .text-decoration-lines {
    grid-column: 1 / -1;
}

.auth-card {
    padding: 34px;
    text-align: left;
    border: 1px solid var(--giwas-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .95);
    box-shadow: var(--giwas-shadow);
}

.auth-card h3 {
    margin-top: 0;
    margin-bottom: 24px;
    color: var(--giwas-ink);
}

.auth-card .form-wrap {
    margin-bottom: 18px;
}

.auth-card .form-label {
    position: static;
    display: block;
    margin-bottom: 8px;
    padding: 0;
    color: var(--giwas-ink);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
    opacity: 1 !important;
    pointer-events: auto;
    transform: none;
}

.auth-card .form-input {
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid #dfd2bd;
    border-radius: 8px;
    background: #fffdf8;
}

.auth-card .form-input:focus {
    border-color: var(--giwas-leaf);
    box-shadow: 0 0 0 4px rgba(42, 157, 120, .14);
}

.auth-card .button-block {
    width: 100%;
}

.radio-text {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0;
    font-size: 16px;
}

.radio-text input {
    position: absolute;
    opacity: 0;
}

.radio-text label {
    padding: 10px 16px;
    border: 1px solid #dfd2bd;
    border-radius: 999px;
    background: #fffdf8;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.radio-text label:hover {
    color: #fff;
    border-color: var(--giwas-coral);
    background: var(--giwas-coral);
}

.radio-text input:checked + label,
.auth-card .radio-text input:checked + label,
.form-group-panel .radio-text input:checked + label {
    color: #fff;
    border-color: var(--giwas-leaf);
    background: var(--giwas-leaf);
    box-shadow: 0 .45rem 1rem rgba(42, 157, 120, .22);
}

.member-profile {
    max-width: 860px;
    margin: 0 auto;
}

.member-profile .table-custom-responsive {
    text-align: left;
}

.table-stage {
    position: relative;
    margin-top: 16px;
}

.table-stage .table-custom-responsive {
    position: relative;
    z-index: 1;
}

.table-mascot {
    position: absolute;
    z-index: 2;
    right: 18px;
    top: -112px;
    width: min(260px, 34vw);
    height: auto;
    pointer-events: none;
}

.table-stage-profile .table-mascot {
    top: -130px;
    width: min(230px, 32vw);
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 34px;
}

.table-pagination {
    margin-top: 34px;
    text-align: center;
}

.pagination-custom > li > a,
.pagination-custom > li > span {
    border-radius: 8px;
}

.pagination-custom {
    margin-bottom: 18px;
}

@media (max-width: 991px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        min-height: 260px;
    }

    .table-mascot {
        position: relative;
        right: auto;
        top: auto;
        display: block;
        width: min(260px, 70vw);
        margin: -20px auto 12px;
    }
}

@media (max-width: 768px) {
    .exercise_box {
        flex-direction: column;
        align-items: stretch;
    }

    .exercise_box > [class*="col-"] {
        max-width: none;
    }

    .radio-question-text.question {
        padding: 20px;
    }

    .radio-question-text.question p {
        font-size: 18px;
    }

    .register-form {
        grid-template-columns: 1fr;
    }

    .register-card {
        padding: 56px 22px 28px;
    }
}

/* Layout polish pass -------------------------------------------------- */
html {
    font-size: 16px;
}

body {
    font-size: 1rem;
    line-height: 1.75;
}

h1,
.h1 {
    font-size: clamp(2.25rem, 4vw, 3.75rem);
}

h2,
.title,
.breadcrumbs-custom-title {
    font-size: clamp(2rem, 3.2vw, 3.25rem);
    line-height: 1.18;
}

h3 {
    font-size: clamp(1.45rem, 2.1vw, 2rem);
    line-height: 1.28;
}

h4 {
    font-size: clamp(1.15rem, 1.6vw, 1.5rem);
    line-height: 1.35;
}

.subtitle-2,
.introduction_text,
.table-custom,
.form-input,
.form-label {
    font-size: 1.2rem;
}

.introduction_text a { color: var(--giwas-river); }
.introduction_text a:hover { color: var(--giwas-coral); }

.section,
.section-md {
    padding-top: clamp(1rem, 1vw, 1rem);
    padding-bottom: clamp(1rem, 1vw, 1rem);
}

.section-lg {
    padding-top: clamp(3.5rem, 7vw, 6rem);
    padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.breadcrumbs-custom {
    padding-top: clamp(4rem, 8vw, 7rem);
    padding-bottom: clamp(4rem, 8vw, 7rem);
}

.title::after,
.breadcrumbs-custom-title::after,
.auth-card h3::after,
.register-card h3::after {
    height: .3125rem;
    width: 5.125rem;
}

.auth-card h3::after,
.register-card h3::after {
    content: "";
    display: block;
    margin-top: .875rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--giwas-sun), var(--giwas-coral), var(--giwas-leaf), var(--giwas-river));
}

.auth-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(135deg, #fffaf0 0%, #eef8f3 100%);
}

.auth-hero {
    min-height: clamp(34rem, 72vh, 44rem);
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
}

.auth-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: rgba(31, 47, 56, .38);
}

.auth-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(18, 32, 37, .7), rgba(18, 32, 37, .2) 58%, rgba(18, 32, 37, .48)),
        radial-gradient(circle at 78% 20%, rgba(248, 183, 53, .28), transparent 28%);
}

.auth-bg-login {
    background-image: url("../images/banner/GWS5_ep08_s04_c005.0278.png");
}

.auth-bg-forgot {
    background-image: url("../images/banner/GWS5_ep01_s07_c017.0018.png");
}

.auth-bg-password {
    background-image: url("../images/banner/GWS5_ep02_s11_c003.0050.png");
}

.auth-bg-register,
.auth-bg-profile {
    background:
        linear-gradient(135deg, rgba(255, 250, 240, .72), rgba(238, 248, 243, .64)),
        url("../images/banner/GWS5_ep14_s10_c005.0326.png") center/cover;
}

.auth-hero-shell {
    display: flex;
    justify-content: flex-end;
}

.auth-hero .auth-card {
    width: min(100%, 28rem);
    padding: 2rem;
    border-color: rgba(255, 255, 255, .6);
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .22);
    backdrop-filter: blur(14px);
}

.auth-hero .auth-card h3 {
    margin-bottom: 1.15rem;
}

.auth-hero .auth-card form {
    margin-top: 0;
}

.auth-hero .auth-card .form-wrap {
    margin-bottom: .9rem;
}

.auth-hero .auth-card .form-wrap + .form-wrap {
    margin-top: 0;
}

.auth-hero .auth-card .form-input {
    min-height: 3rem;
}

.auth-hero .auth-card .button {
    margin-top: .65rem;
    margin-bottom: 0;
    padding-top: .85rem;
    padding-bottom: .85rem;
}

.auth-hero .text-decoration-lines {
    margin-top: 1rem;
}

.auth-card {
    border-radius: .75rem;
}

.auth-card .form-input {
    font-size: 1rem;
}

.auth-card .button {
    margin-top: 1rem;
}

.register-panel {
    max-width: 64rem;
}

.register-card {
    overflow: visible;
    padding: clamp(3.75rem, 7vw, 5rem) clamp(1.5rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem);
}

.register-visual {
    justify-content: flex-end;
    margin: 0 1.25rem -5.75rem 0;
}

.register-visual img {
    width: min(20rem, 44vw);
}

.register-form {
    align-items: start;
}

.register-form .text-decoration-lines {
    margin-top: 0;
}

.form-wrap {
    position: relative;
}

.auth-card .form-wrap::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2rem;
    width: .25rem;
    height: 2.625rem;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--giwas-sun), var(--giwas-leaf));
}

.auth-card .form-input {
    padding-left: 1.25rem;
}

.table-custom-responsive {
    border-radius: .75rem;
}

.table-custom thead th {
    font-size: 1rem;
}

.table-custom td,
.table-custom th {
    padding: .95rem 1rem;
}

.table-actions {
    margin-top: 2.25rem;
}

.table-pagination {
    margin-top: 2.25rem;
}

.section-cutout {
    margin-top: -2.5rem;
    margin-bottom: -3.75rem;
}

.section-cutout img {
    width: min(18rem, 42vw);
}

.table-mascot {
    top: -7rem;
    width: min(16rem, 32vw);
}

.box-info-modern-figure img {
    max-height: 9rem;
    object-fit: contain;
}

@media (max-width: 991px) {
    .auth-hero {
        min-height: auto;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .auth-hero-shell {
        justify-content: center;
    }

    .auth-hero .auth-card {
        width: min(100%, 34rem);
    }

    .register-visual {
        justify-content: center;
        margin-right: 0;
    }

    .register-visual img {
        width: min(18rem, 68vw);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .section,
    .section-md,
    .section-lg {
        padding-top: 2.75rem;
        padding-bottom: 2.75rem;
    }

    .breadcrumbs-custom {
        padding-top: 3.25rem;
        padding-bottom: 3.25rem;
    }

    .auth-hero {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .auth-hero .auth-card,
    .register-card {
        border-radius: .75rem;
    }

    .register-visual {
        margin-bottom: -4.5rem;
    }

    .table-custom td,
    .table-custom th {
        padding: .85rem .8rem;
    }

    .table-actions,
    .table-pagination {
        margin-top: 1.75rem;
    }

    .section-cutout {
        justify-content: center;
        margin-top: -1.5rem;
        margin-bottom: -2.25rem;
    }
}

@media (max-width: 575px) {
    .auth-card {
        padding: 1.5rem;
    }

    .auth-card .form-wrap::before {
        top: 1.9rem;
        height: 2.5rem;
    }

    .register-card {
        padding-top: 4.75rem;
    }

    .voucher-title {
        font-size: 1.55rem;
    }

    .voucher-text {
        font-size: 1rem;
    }
}

/* Compact header/banner correction ---------------------------------- */
.page-header,
header.section,
.rd-navbar-wrap,
.rd-navbar {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.rd-navbar-classic.rd-navbar-static .rd-navbar-main {
    min-height: 5.25rem;
    padding-top: .75rem;
    padding-bottom: .75rem;
}

.rd-navbar-classic.rd-navbar-static .rd-navbar-brand img,
.rd-navbar-brand img {
    max-height: 3.25rem;
    width: auto;
}

.brand {
    gap: .75rem;
    font-size: 1.35rem;
    line-height: 1.2;
}

.rd-navbar-static .rd-nav-link {
    padding-top: .65rem;
    padding-bottom: .65rem;
    color: #fff;
    font-size: 1.05rem;
}

.rd-navbar-static .rd-nav-link:hover,
.rd-navbar-static .rd-nav-item.active .rd-nav-link {
    color: var(--giwas-sun);
}

.rd-navbar-fixed .rd-navbar-panel {
    height: 4.25rem;
    background: #1f2f38;
}

.rd-navbar-fixed .rd-navbar-brand img {
    max-height: 2.75rem;
}

.rd-navbar-fixed .brand {
    color: #fff;
    font-size: 1.05rem;
}

.rd-navbar-fixed .rd-navbar-nav-wrap {
    background: #fffaf0;
    box-shadow: 0 1rem 2.5rem rgba(31, 47, 56, .16);
}

.rd-navbar-fixed .rd-nav-link {
    color: var(--giwas-ink);
    border-left: .25rem solid transparent;
}

.rd-navbar-fixed .rd-nav-item:hover .rd-nav-link,
.rd-navbar-fixed .rd-nav-item.focus .rd-nav-link,
.rd-navbar-fixed .rd-nav-item.active .rd-nav-link,
.rd-navbar-fixed .rd-nav-item.opened .rd-nav-link {
    color: #146248;
    background: #e7f7e9;
    border-left-color: var(--giwas-leaf);
}

.rd-navbar-fixed .rd-nav-item span {
    color: rgba(31, 47, 56, .35) !important;
}

.bg-secondary,
.breadcrumbs-custom.bg-secondary {
    background:
        linear-gradient(135deg, rgba(42, 132, 122, .9), rgba(245, 171, 58, .58)),
        url("../images/banner_bg.png") center/cover;
    background-size: 100%;
}

.breadcrumbs-custom {
    padding-top: clamp(1.75rem, 3vw, 3rem);
    padding-bottom: clamp(1.75rem, 3vw, 3rem);
}

.breadcrumbs-custom-title::after {
    margin-top: .75rem;
}

.auth-hero {
    min-height: clamp(20rem, 40vh, 28rem);
}

.auth-hero.section-md {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.auth-hero::before {
    background: rgba(31, 47, 56, .2);
}

.auth-hero::after {
    background:
        linear-gradient(90deg, rgba(31, 47, 56, .5), rgba(42, 157, 120, .12) 58%, rgba(141, 90, 43, .3)),
        radial-gradient(circle at 78% 20%, rgba(248, 183, 53, .32), transparent 28%);
}

.auth-card .form-wrap::before {
    display: none;
}

.auth-card .form-input {
    padding-left: 1rem;
}

.register-card {
    padding-top: clamp(2.75rem, 5vw, 3.5rem);
}

.register-visual {
    margin-bottom: -4.25rem;
}

.register-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
}

.form-group-panel {
    padding: 1.25rem;
    border: 1px solid rgba(230, 220, 201, .9);
    border-radius: .75rem;
    background: rgba(255, 250, 240, .66);
}

.form-group-panel h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--giwas-river);
    font-weight: 800;
}

.form-group-panel h4::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: .25rem;
    margin-top: .5rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--giwas-sun), var(--giwas-leaf));
}

.form-group-panel .form-wrap:last-child {
    margin-bottom: 0;
}

.register-form > .button,
.register-form > .text-decoration-lines {
    grid-column: 1 / -1;
}

.table-mascot {
    top: auto;
    bottom: calc(100% - .125rem);
    width: min(15rem, 30vw);
}

.table-stage-profile .table-mascot {
    top: auto;
    bottom: calc(100% - .125rem);
    width: min(13.5rem, 30vw);
}

@media (max-width: 991px) {
    .rd-navbar-fixed .rd-navbar-nav-wrap {
        top: 4.25rem;
    }

    .breadcrumbs-custom {
        padding-top: 1.75rem;
        padding-bottom: 1.75rem;
    }

    .auth-hero {
        min-height: auto;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .table-mascot,
    .table-stage-profile .table-mascot {
        position: relative;
        right: auto;
        bottom: auto;
        display: block;
        width: min(13rem, 52vw);
        margin: -1.75rem auto -1.95rem;
    }
}

@media (max-width: 768px) {
    .breadcrumbs-custom {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .auth-hero {
        padding-top: 1.75rem;
        padding-bottom: 1.75rem;
    }

    .register-form {
        grid-template-columns: 1fr;
    }

    .form-group-panel {
        padding: 1rem;
    }
}

@media (max-width: 575px) {
    .rd-navbar-fixed .brand {
        font-size: .95rem;
    }

    .rd-navbar-fixed .rd-navbar-brand img {
        max-height: 2.35rem;
    }

    .breadcrumbs-custom-title::after {
        margin-top: .625rem;
    }

    .auth-hero {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

/* Final polish overrides --------------------------------------------- */
.rd-navbar-static .rd-nav-link {
    border-radius: 3px;
    padding: 10px 15px;
    transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.rd-navbar-static .rd-nav-link:hover,
.rd-navbar-static .rd-nav-item.active .rd-nav-link {
    color: #fff;
    background: rgba(249, 78, 41, .7);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 .45rem 1rem rgba(0, 0, 0, .12);
    transform: translateY(-1px);
}

.rd-navbar-fixed .rd-nav-item:hover .rd-nav-link,
.rd-navbar-fixed .rd-nav-item.focus .rd-nav-link,
.rd-navbar-fixed .rd-nav-item.active .rd-nav-link,
.rd-navbar-fixed .rd-nav-item.opened .rd-nav-link {
    color: #146248;
    background: linear-gradient(90deg, #e7f7e9, #fff6df);
    border-left-color: var(--giwas-leaf);
}

.breadcrumbs-custom .breadcrumbs-custom-title::after,
.breadcrumbs-custom-title::after {
    background: linear-gradient(90deg, rgba(35, 116, 171, .92), rgba(230, 95, 85, .96));
    box-shadow: 0 .35rem 1rem rgba(31, 47, 56, .18);
}

.section-heading {
    margin-bottom: 1rem;
}

.section-heading h3 {
    margin-bottom: .55rem;
}

.section-heading .divider {
    margin-bottom: .75rem;
}

.section-heading + .container .table-stage {
    margin-top: 0;
}

.captcha-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: center;
}

.captcha-row img {
    width: 7.5rem;
    max-width: 34vw;
    height: 3rem;
    object-fit: contain;
    /*padding: .35rem .5rem;*/
    border: 1px solid #dfd2bd;
    /*border-radius: .5rem;*/
    background: #fffdf8;
}

.score-section {
    background:
        radial-gradient(circle at 14% 18%, rgba(248, 183, 53, .16), transparent 30%),
        linear-gradient(180deg, #fffdf8, #eef8f3);
}

.score-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 28rem);
    gap: 2rem;
    align-items: center;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 3.5rem);
    border: 1px solid var(--giwas-line);
    border-radius: .875rem;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--giwas-shadow);
}

.score-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(248, 183, 53, .16), transparent 35%, rgba(42, 157, 120, .13));
    pointer-events: none;
}

.score-content {
    position: relative;
    z-index: 1;
}

.score-kicker {
    display: inline-flex;
    margin-bottom: .75rem;
    padding: .35rem .8rem;
    color: #146248;
    font-weight: 800;
    border-radius: 999px;
    background: #e7f7e9;
}

.score-content h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.score-content h3::after {
    content: "";
    display: block;
    width: 4.5rem;
    height: .25rem;
    margin-top: .75rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--giwas-sun), var(--giwas-leaf));
}

.score-content p {
    max-width: 42rem;
    margin-bottom: .75rem;
    font-size: 1.08rem;
    line-height: 1.75;
}

.score-content strong {
    color: #146248;
}

.score-result {
    display: inline-flex;
    align-items: baseline;
    gap: .45rem;
    margin: .25rem 0 1rem;
    color: var(--giwas-coral);
}

.score-result strong {
    color: inherit;
    font-size: clamp(4rem, 9vw, 6.5rem);
    line-height: .9;
}

.score-result span {
    font-size: 1.5rem;
    font-weight: 800;
}

.score-mascot {
    position: relative;
    z-index: 1;
    justify-self: end;
    width: min(26rem, 38vw);
    filter: drop-shadow(0 1.25rem 1.5rem rgba(31, 47, 56, .18));
}

.score-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .875rem;
    margin-top: 1.5rem;
}

@media (max-width: 991px) {
    .score-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .score-content h3::after {
        margin-left: auto;
        margin-right: auto;
    }

    .score-mascot {
        order: -1;
        justify-self: center;
        width: min(20rem, 72vw);
        margin-bottom: -1.5rem;
    }

    .score-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .captcha-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .captcha-row img {
        width: 7rem;
        max-width: 30vw;
    }
}

/* Final navigation and mobile table refinement ---------------------- */
.rd-navbar-nav span {
    display: none !important;
}

.rd-navbar-static .rd-navbar-nav {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.rd-navbar-static .rd-nav-item + .rd-nav-item {
    margin-left: 0 !important;
}

.rd-navbar-static .rd-nav-link {
    position: relative;
    min-width: auto;
    padding: .48rem .78rem !important;
    color: rgba(255, 255, 255, .94);
    font-size: .98rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, .08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
    transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.rd-navbar-static .rd-nav-link:hover,
.rd-navbar-static .rd-nav-item.focus .rd-nav-link,
.rd-navbar-static .rd-nav-item.active .rd-nav-link,
.rd-navbar-static .rd-nav-item.opened .rd-nav-link {
    color: #fff;
    background: linear-gradient(135deg, rgba(42, 157, 120, .76), rgba(248, 183, 53, .56));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 .5rem 1rem rgba(19, 75, 61, .18);
    transform: translateY(-1px);
}

.rd-navbar-static .rd-navbar-brand {
    margin-right: 1rem;
}

.rd-navbar-fixed .rd-navbar-nav-wrap {
    background: #fffaf0;
}

.rd-navbar-fixed .rd-navbar-nav {
    padding: .65rem 0 1rem;
}

.rd-navbar-fixed .rd-nav-item {
    margin: .18rem .75rem !important;
}

.rd-navbar-fixed .rd-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: .75rem 1rem !important;
    color: #174d3c;
    font-weight: 800;
    text-align: center;
    border-left: 0 !important;
    border-radius: .85rem;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(42, 157, 120, .1);
}

.rd-navbar-fixed .rd-nav-item:hover .rd-nav-link,
.rd-navbar-fixed .rd-nav-item.focus .rd-nav-link,
.rd-navbar-fixed .rd-nav-item.active .rd-nav-link,
.rd-navbar-fixed .rd-nav-item.opened .rd-nav-link {
    color: #174d3c;
    background: linear-gradient(135deg, #e8f7e9, #fff2cf);
    box-shadow: inset 0 0 0 1px rgba(42, 157, 120, .25), 0 .35rem .8rem rgba(31, 47, 56, .08);
}

.table-mobile-cards td[data-label]::before,
.table-mobile-keyvalue td[data-label]::before {
    display: none;
}

@media (max-width: 991px) {
    .rd-navbar-fixed .rd-navbar-panel {
        min-height: 4rem;
    }
}

@media (max-width: 768px) {
    .table-custom-responsive {
        overflow: visible;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .table-mobile-cards,
    .table-mobile-cards thead,
    .table-mobile-cards tbody,
    .table-mobile-cards tr,
    .table-mobile-cards td,
    .table-mobile-keyvalue,
    .table-mobile-keyvalue tbody,
    .table-mobile-keyvalue tr,
    .table-mobile-keyvalue td {
        display: block;
        width: 100%;
    }

    .table-mobile-cards thead,
    .table-mobile-keyvalue .mobile-label-cell {
        display: none;
    }

    .table-mobile-cards tr,
    .table-mobile-keyvalue tr {
        overflow: hidden;
        margin: 0 0 .85rem;
        padding: .85rem .95rem;
        border: 1px solid var(--giwas-line);
        border-radius: .85rem;
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 .65rem 1.2rem rgba(31, 47, 56, .08);
    }

    .table-mobile-cards td,
    .table-mobile-keyvalue td[data-label] {
        display: grid;
        grid-template-columns: minmax(6.25rem, 38%) minmax(0, 1fr);
        gap: .75rem;
        align-items: start;
        min-height: auto;
        padding: .55rem 0 !important;
        color: #31433d;
        text-align: left !important;
        border: 0 !important;
        border-bottom: 1px dashed rgba(42, 157, 120, .18) !important;
        background: transparent !important;
        word-break: break-word;
    }

    .table-mobile-cards td:last-child,
    .table-mobile-keyvalue td[data-label]:last-child {
        border-bottom: 0 !important;
    }

    .table-mobile-cards td[data-label]::before,
    .table-mobile-keyvalue td[data-label]::before {
        content: attr(data-label);
        display: block;
        color: #146248;
        font-weight: 900;
        line-height: 1.5;
    }

    .table-mobile-cards .text-link,
    .table-mobile-cards .text-link-page {
        justify-self: start;
        white-space: normal;
    }

    .table-stage .table-custom-responsive,
    .member-profile .table-custom-responsive {
        margin-top: 0;
    }
}

@media (max-width: 420px) {
    .captcha-row {
        gap: .5rem;
    }

    .captcha-row img {
        width: 6rem;
        max-width: 28vw;
    }

    .table-mobile-cards td,
    .table-mobile-keyvalue td[data-label] {
        grid-template-columns: minmax(5.25rem, 36%) minmax(0, 1fr);
        gap: .55rem;
        font-size: .94rem;
    }
}

/* Final fixes: radio states, tablet cards, table mascots ------------- */
.radio-text input[type="radio"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    opacity: 0 !important;
    pointer-events: none;
}

.radio-text label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.radio-text input[type="radio"]:checked + label,
.radio-text input[type="radio"]:checked + .radio-custom-dummy + label,
.radio-text label.is-checked,
.auth-card .radio-text input[type="radio"]:checked + label,
.auth-card .radio-text input[type="radio"]:checked + .radio-custom-dummy + label,
.auth-card .radio-text label.is-checked,
.form-group-panel .radio-text input[type="radio"]:checked + label,
.form-group-panel .radio-text input[type="radio"]:checked + .radio-custom-dummy + label,
.form-group-panel .radio-text label.is-checked {
    color: #fff !important;
    border-color: var(--giwas-coral) !important;
    background: var(--giwas-coral) !important;
    box-shadow: 0 .45rem 1rem rgba(230, 95, 85, .24) !important;
}

.table-stage-ranking {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.table-stage-ranking .table-mascot {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    align-self: flex-end;
    width: min(13.5rem, 28vw);
    margin: -1.25rem 1.25rem -1px 0;
}

.table-stage-ranking .table-custom-responsive {
    width: 100%;
}

.mobile-card-heading {
    display: none !important;
}

@media (max-width: 991px) {
    .table-custom-responsive {
        overflow: visible !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .table-custom-responsive > .table-custom,
    .table-custom-responsive > .table-custom thead,
    .table-custom-responsive > .table-custom tbody,
    .table-custom-responsive > .table-custom tr,
    .table-custom-responsive > .table-custom td,
    .table-custom-responsive > .table-custom th,
    .table-mobile-cards,
    .table-mobile-cards thead,
    .table-mobile-cards tbody,
    .table-mobile-cards tr,
    .table-mobile-cards td,
    .table-mobile-keyvalue,
    .table-mobile-keyvalue tbody,
    .table-mobile-keyvalue tr,
    .table-mobile-keyvalue td {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .table-custom-responsive > .table-custom thead,
    .table-mobile-cards thead,
    .table-mobile-keyvalue .mobile-label-cell {
        display: none !important;
    }

    .table-custom-responsive > .table-custom tr,
    .table-mobile-cards tr,
    .table-mobile-keyvalue tr {
        overflow: hidden;
        margin: 0 0 .85rem !important;
        padding: .85rem .95rem !important;
        border: 1px solid var(--giwas-line) !important;
        border-radius: .85rem !important;
        background: rgba(255, 255, 255, .96) !important;
        box-shadow: 0 .65rem 1.2rem rgba(31, 47, 56, .08) !important;
    }

    .table-custom-responsive > .table-custom td[data-label],
    .table-mobile-cards td[data-label],
    .table-mobile-keyvalue td[data-label] {
        display: grid !important;
        grid-template-columns: minmax(6.25rem, 38%) minmax(0, 1fr) !important;
        gap: .75rem;
        align-items: start;
        min-height: auto !important;
        padding: .55rem 0 !important;
        color: #31433d;
        text-align: left !important;
        border: 0 !important;
        border-bottom: 1px dashed rgba(42, 157, 120, .18) !important;
        background: transparent !important;
        word-break: break-word;
    }

    .table-custom-responsive > .table-custom td[data-label]:last-child,
    .table-mobile-cards td[data-label]:last-child,
    .table-mobile-keyvalue td[data-label]:last-child {
        border-bottom: 0 !important;
    }

    .table-custom-responsive > .table-custom td[data-label]::before,
    .table-mobile-cards td[data-label]::before,
    .table-mobile-keyvalue td[data-label]::before {
        content: attr(data-label);
        display: block !important;
        color: #146248;
        font-weight: 900;
        line-height: 1.5;
    }

    .table-mobile-keyvalue .mobile-label-cell,
    .table-custom-responsive > .table-mobile-keyvalue .mobile-label-cell {
        display: none !important;
    }

    .table-stage .table-mascot,
    .table-stage-profile .table-mascot,
    .table-stage-ranking .table-mascot {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        display: block;
        align-self: flex-end;
        width: min(12.5rem, 48vw) !important;
        margin: -1rem 1rem -1px auto !important;
    }

    .table-stage .table-mascot + .table-custom-responsive,
    .table-stage-ranking .table-mascot + .table-custom-responsive,
    .table-stage-profile .table-mascot + .table-custom-responsive {
        margin-top: 0 !important;
    }
}

@media (max-width: 420px) {
    .table-custom-responsive > .table-custom td[data-label],
    .table-mobile-cards td[data-label],
    .table-mobile-keyvalue td[data-label] {
        grid-template-columns: minmax(5.25rem, 36%) minmax(0, 1fr) !important;
        gap: .55rem;
        font-size: .94rem;
    }

    .table-stage .table-mascot,
    .table-stage-profile .table-mascot,
    .table-stage-ranking .table-mascot {
        width: min(11rem, 54vw) !important;
        margin: -.65rem .75rem -1px auto !important;
    }
}

/* Inner banner pattern ------------------------------------------------ */
.breadcrumbs-custom.bg-secondary {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(40, 143, 119, .95), rgba(236, 147, 57, .82)) !important;
}

.breadcrumbs-custom.bg-secondary::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url("../images/banner_bg.png");
    background-repeat: repeat-x;
    background-position: center;
    background-size: auto 100%;
    opacity: .78;
    mix-blend-mode: multiply;
    filter: contrast(1.28) saturate(1.05);
}

.breadcrumbs-custom.bg-secondary::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .16), transparent 28%, rgba(255, 255, 255, .12)),
        linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .03));
    pointer-events: none;
}

.breadcrumbs-custom.bg-secondary > .container {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .breadcrumbs-custom.bg-secondary::before {
        background-size: auto 115%;
        opacity: .7;
    }
}

/* Stronger banner pattern and richer mobile cards -------------------- */
.breadcrumbs-custom.bg-secondary {
    background:
        linear-gradient(135deg, #1f8d74 0%, #67a85e 46%, #d9862f 100%) !important;
}

.breadcrumbs-custom.bg-secondary::before {
    background-size: auto 112%;
    opacity: .46;
    mix-blend-mode: normal;
    filter: contrast(1.75) brightness(.92) saturate(1.05);
}

.breadcrumbs-custom.bg-secondary::after {
    background:
        linear-gradient(90deg, rgba(20, 98, 72, .18), transparent 24%, rgba(255, 250, 240, .18)),
        linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(31, 47, 56, .08)) !important;
}

@media (max-width: 991px) {
    .table-custom-responsive > .table-mobile-cards tr[data-card-title],
    .table-mobile-cards tr[data-card-title] {
        position: relative;
        padding: 0 0 .65rem !important;
        border: 0 !important;
        border-radius: 1rem !important;
        background:
            linear-gradient(#fff, #fff) padding-box,
            linear-gradient(135deg, rgba(42, 157, 120, .85), rgba(248, 183, 53, .75), rgba(230, 95, 85, .75)) border-box !important;
        border: 1px solid transparent !important;
        box-shadow: 0 .85rem 1.65rem rgba(31, 47, 56, .11) !important;
    }

    .table-custom-responsive > .table-mobile-cards tr[data-card-title]::before,
    .table-mobile-cards tr[data-card-title]::before {
        content: attr(data-card-title);
        display: block;
        padding: .9rem 1rem .35rem;
        color: #174d3c;
        font-size: 1.08rem;
        font-weight: 900;
        line-height: 1.35;
        background:
            linear-gradient(135deg, rgba(231, 247, 233, .96), rgba(255, 246, 223, .96));
    }

    .table-custom-responsive > .table-mobile-cards tr[data-card-subtitle]::after,
    .table-mobile-cards tr[data-card-subtitle]::after {
        content: attr(data-card-subtitle);
        display: inline-flex;
        max-width: calc(100% - 2rem);
        margin: 0 1rem .45rem;
        padding: .18rem .6rem;
        color: #7a3f28;
        font-size: .9rem;
        font-weight: 800;
        line-height: 1.45;
        border-radius: 999px;
        background: rgba(248, 183, 53, .2);
    }

    .table-custom-responsive > .table-mobile-cards td[data-label],
    .table-mobile-cards td[data-label],
    .table-mobile-keyvalue td[data-label] {
        margin: 0 .95rem;
        grid-template-columns: minmax(6rem, 34%) minmax(0, 1fr) !important;
    }

    .table-custom-responsive > .table-mobile-cards td[data-label]::before,
    .table-mobile-cards td[data-label]::before,
    .table-mobile-keyvalue td[data-label]::before {
        display: inline-flex !important;
        align-items: center;
        width: max-content;
        max-width: 100%;
        padding: .12rem .48rem;
        color: #146248;
        font-size: .82rem;
        font-weight: 900;
        border-radius: 999px;
        background: rgba(42, 157, 120, .11);
    }

    .table-custom-responsive > .table-mobile-cards tr:nth-child(3n + 2),
    .table-mobile-cards tr:nth-child(3n + 2) {
        background:
            linear-gradient(#fff, #fff) padding-box,
            linear-gradient(135deg, rgba(35, 116, 171, .72), rgba(248, 183, 53, .72)) border-box !important;
    }

    .table-custom-responsive > .table-mobile-cards tr:nth-child(3n + 3),
    .table-mobile-cards tr:nth-child(3n + 3) {
        background:
            linear-gradient(#fff, #fff) padding-box,
            linear-gradient(135deg, rgba(230, 95, 85, .72), rgba(42, 157, 120, .72)) border-box !important;
    }
}

@media (max-width: 768px) {
    .breadcrumbs-custom.bg-secondary::before {
        background-size: auto 128%;
        opacity: .52;
    }
}

/* Mobile table card header cleanup ----------------------------------- */
@media (max-width: 991px) {
    .table-custom-responsive > .table-mobile-cards tr[data-card-title]::before,
    .table-mobile-cards tr[data-card-title]::before,
    .table-custom-responsive > .table-mobile-cards tr[data-card-subtitle]::after,
    .table-mobile-cards tr[data-card-subtitle]::after {
        content: none !important;
        display: none !important;
    }

    .table-mobile-cards .mobile-card-title-source {
        display: none !important;
    }

    .table-custom-responsive > .table-mobile-cards .mobile-card-heading,
    .table-mobile-cards .mobile-card-heading {
        display: grid !important;
        grid-template-columns: minmax(5.75rem, 32%) minmax(0, 1fr) !important;
        gap: .75rem;
        align-items: center;
        width: auto !important;
        margin: 0 .95rem;
        padding: .9rem 0 !important;
        color: #174d3c;
        text-align: left !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(42, 157, 120, .14) !important;
        background:
            linear-gradient(135deg, rgba(231, 247, 233, .98), rgba(255, 246, 223, .96)) !important;
    }

    .mobile-card-heading-label {
        display: inline-flex;
        align-items: center;
        gap: .4rem;
        color: #146248;
        font-size: .82rem;
        font-weight: 900;
        line-height: 1.35;
    }

    .mobile-card-heading-label::before {
        content: "";
        display: inline-block;
        width: .25rem;
        height: 1.45rem;
        border-radius: 999px;
        background: linear-gradient(180deg, var(--giwas-leaf), var(--giwas-sun));
    }

    .mobile-card-heading-title {
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        min-width: 0;
        color: #1f2f38;
        font-size: 1.18rem;
        font-weight: 900;
        line-height: 1.35;
        word-break: break-word;
    }

    .mobile-card-heading-title .fa {
        flex: 0 0 auto;
        margin-right: .45rem !important;
        top: 0 !important;
        font-size: 1.05rem;
    }

    .table-custom-responsive > .table-mobile-cards td[data-label],
    .table-mobile-cards td[data-label],
    .table-mobile-keyvalue td[data-label] {
        width: auto !important;
        grid-template-columns: minmax(5.75rem, 32%) minmax(0, 1fr) !important;
        padding: .72rem 0 !important;
    }

    .table-custom-responsive > .table-mobile-cards td[data-label]::before,
    .table-mobile-cards td[data-label]::before,
    .table-mobile-keyvalue td[data-label]::before {
        display: flex !important;
        align-items: center;
        width: auto;
        max-width: none;
        min-height: 1.6rem;
        padding: 0 0 0 .7rem;
        color: #146248;
        font-size: .86rem;
        font-weight: 900;
        line-height: 1.45;
        border-left: .25rem solid var(--giwas-leaf);
        border-radius: 0;
        background: transparent;
    }
}

@media (max-width: 420px) {
    .table-custom-responsive > .table-mobile-cards .mobile-card-heading,
    .table-mobile-cards .mobile-card-heading {
        grid-template-columns: minmax(5rem, 34%) minmax(0, 1fr) !important;
        gap: .55rem;
    }

    .mobile-card-heading-title {
        font-size: 1.12rem;
    }

    .table-custom-responsive > .table-mobile-cards td[data-label],
    .table-mobile-cards td[data-label],
    .table-mobile-keyvalue td[data-label] {
        grid-template-columns: minmax(5rem, 34%) minmax(0, 1fr) !important;
    }
}

@media (max-width: 991px) {
    .table-custom-responsive > .table-mobile-cards td.mobile-card-title-source,
    .table-mobile-cards td.mobile-card-title-source {
        display: none !important;
    }
}

/* Mobile register/profile visual spacing ----------------------------- */
@media (max-width: 768px) {
    .register-panel {
        gap: 0;
    }

    .register-visual {
        z-index: 3;
        justify-content: center;
        margin: -1.25rem auto -1px !important;
    }

    .register-visual img {
        width: min(14.5rem, 68vw) !important;
        max-height: 10rem;
        object-fit: contain;
    }

    .register-card {
        z-index: 2;
        padding-top: 1.5rem !important;
    }
}

@media (max-width: 420px) {
    .register-visual {
        margin-top: -.75rem !important;
        margin-bottom: -1px !important;
    }

    .register-visual img {
        width: min(13rem, 70vw) !important;
        max-height: 8.5rem;
    }
}

/* Final brand, season list, and score counter refinements ------------ */
.brand {
    align-items: center;
}

.brand img {
    align-self: center;
}

.brand-text {
    align-self: flex-end;
    align-items: flex-end;
    margin-bottom: .18rem;
}

.brand-name {
    line-height: 1;
}

.brand-badge {
    line-height: 1;
    margin-bottom: .02rem;
}

.season-shell {
    margin-top: clamp(1.25rem, 3vw, 2.75rem);
}

.season-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: -1px;
}

.season-toolbar .season-tabs {
    flex: 1 1 auto;
    align-self: center;
    margin: 2.25rem 0 .75rem;
}

.season-shell .section-cutout {
    flex: 0 0 auto;
    justify-content: flex-end;
    min-height: 0;
    margin: 0 1.5rem -1px 0;
}

.season-shell .section-cutout img {
    width: min(24rem, 36vw);
    filter: drop-shadow(0 1rem 1.2rem rgba(31, 47, 56, .14));
}

.season-tone-earth .season-card-header {
    background: linear-gradient(135deg, var(--giwas-earth), var(--giwas-coral));
}

.season-tone-leaf .season-card-header {
    background: linear-gradient(135deg, var(--giwas-river), var(--giwas-leaf));
}

.season-tone-river .season-card-header {
    background: linear-gradient(135deg, #2374ab, #2a9d78);
}

.season-tone-coral .season-card-header {
    background: linear-gradient(135deg, var(--giwas-coral), var(--giwas-sun));
}

@media (max-width: 991px) {
    .brand {
        align-items: center;
    }

    .brand-text {
        margin-bottom: .1rem;
    }

    .season-toolbar {
        display: grid;
        gap: .5rem;
    }

    .season-toolbar .season-tabs {
        margin: .75rem 0 .35rem;
    }

    .season-shell .section-cutout {
        justify-content: flex-end;
        margin: -.35rem .85rem -1px 0;
    }

    .season-shell .section-cutout img {
        width: min(14rem, 54vw);
    }
}

@media (max-width: 575px) {
    .brand-text {
        max-width: 13rem;
        gap: .38rem;
    }

    .brand-name {
        max-width: 7.4rem;
    }

    .brand-badge {
        padding: .14rem .42rem;
        font-size: .62rem;
    }
}

/* Maintenance visual layer ------------------------------------------ */
:root {
    --main-red: var(--giwas-coral);
    --giwas-red-hover: #c94b43;
    --giwas-green-hover: #146248;
}

.button-news,
.button-news:focus,
.button-activity,
.button-activity:focus,
.button-primary,
.button-primary:focus {
    color: #fff;
    background-color: var(--main-red);
    border-color: var(--main-red);
}

.button-news:hover,
.button-news:active,
.button-news.active,
.button-activity:hover,
.button-activity:active,
.button-activity.active,
.button-primary:hover,
.button-primary:active,
.button-primary.active {
    color: #fff;
    background-color: var(--giwas-red-hover);
    border-color: var(--giwas-red-hover);
}

.button-quiz,
.button-quiz:focus,
.button-secondary,
.button-secondary:focus,
.button-card-ranking,
.button-card-ranking:focus {
    color: #fff;
    background-color: var(--giwas-leaf);
    border-color: var(--giwas-leaf);
}

.button-quiz:hover,
.button-quiz:active,
.button-quiz.active,
.button-secondary:hover,
.button-secondary:active,
.button-secondary.active,
.button-card-ranking:hover,
.button-card-ranking:active,
.button-card-ranking.active {
    color: #fff;
    background-color: var(--giwas-green-hover);
    border-color: var(--giwas-green-hover);
}

.brand {
    display: inline-flex;
    align-items: flex-end;
    gap: .7rem;
    min-width: 0;
    color: #fff;
    font-weight: 900;
    letter-spacing: 0;
    max-height: 3.25rem;
    overflow: visible;
}

.brand img {
    flex: 0 0 auto;
    width: auto !important;
    max-width: 3.25rem;
    max-height: 3.25rem !important;
    object-fit: contain;
}

.brand-text {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
    max-width: clamp(16rem, 30vw, 25rem);
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
}

.brand-name {
    display: inline-block;
    color: #fff;
    font-size: clamp(1.04rem, 1.55vw, 1.34rem);
    font-weight: 900;
    line-height: 1.12;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: .18rem .55rem;
    color: #174d3c;
    font-size: .78rem;
    font-weight: 900;
    line-height: 1.25;
    border-radius: 999px;
    background: linear-gradient(90deg, #fff6df, #e7f7e9);
    box-shadow: inset 0 0 0 1px rgba(42, 157, 120, .14);
}

.rd-navbar-fixed .rd-navbar-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: .75rem;
}

.rd-navbar-fixed .rd-navbar-toggle {
    order: 2;
    margin-left: auto;
    margin-right: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
}

.rd-navbar-fixed .rd-navbar-brand {
    order: 1;
    min-width: 0;
}

.rd-navbar-fixed .rd-navbar-nav-wrap {
    left: auto;
    right: 0;
    width: min(18rem, 82vw);
    transform: translateX(100%);
}

.rd-navbar-fixed.active .rd-navbar-nav-wrap,
.rd-navbar-fixed.rd-navbar--is-clone.active .rd-navbar-nav-wrap,
.rd-navbar-fixed .rd-navbar-nav-wrap.active {
    transform: translateX(0);
}

.season-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin: clamp(.75rem, 2vw, 1.5rem) 0 .75rem;
}

.season-tab {
    min-height: 3.15rem;
    padding: .72rem 1.22rem;
    color: #146248;
    font-size: 1.05rem;
    font-weight: 900;
    border: 1px solid rgba(42, 157, 120, .28);
    border-radius: .85rem;
    background: linear-gradient(135deg, #fffdf8, #eef8f3);
    box-shadow: 0 .45rem 1rem rgba(31, 47, 56, .08);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.season-tab:not(.is-disabled):hover {
    color: #fff;
    border-color: var(--giwas-leaf);
    background: linear-gradient(135deg, var(--giwas-river), var(--giwas-leaf));
    box-shadow: 0 .8rem 1.45rem rgba(42, 157, 120, .18);
    transform: translateY(-2px);
}

.season-tab.is-active {
    color: #fff;
    border-color: var(--giwas-leaf);
    background: linear-gradient(135deg, var(--giwas-river), var(--giwas-leaf));
    box-shadow: 0 .8rem 1.45rem rgba(42, 157, 120, .2);
}

.season-tab.is-disabled {
    color: rgba(31, 47, 56, .42);
    background: #f2eadc;
    box-shadow: none;
    cursor: not-allowed;
}

.season-shell {
    position: relative;
}

.season-shell .section-cutout {
    justify-content: flex-end;
    min-height: 0;
    margin: 0 1.25rem -1px 0;
}

.season-shell .section-cutout img {
    width: min(18rem, 30vw);
}

.season-panel[hidden] {
    display: none !important;
}

.season-card {
    width: 100%;
}

.season-card-header {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem 1rem;
    align-items: baseline;
    justify-content: flex-start;
}

.season-card-header span {
    color: rgba(255, 255, 255, .86);
    font-size: .98rem;
    font-weight: 800;
}

.score-section {
    background:
        linear-gradient(180deg, rgba(255, 253, 248, .84), rgba(238, 248, 243, .94)),
        url("../images/banner/GWS5_ep02_s11_c003.0050.png") center/cover;
}

.score-card {
    min-height: clamp(26rem, 52vh, 34rem);
    display: block;
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(12px);
}

.score-card::before {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .6) 56%, rgba(255, 255, 255, .18)),
        radial-gradient(circle at 12% 90%, rgba(248, 183, 53, .22), transparent 34%);
}

.score-card-competition {
    background: rgba(255, 250, 240, .82);
}

.score-content {
    width: min(100%, 34rem);
    margin-left: auto;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: .85rem;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 1rem 2.5rem rgba(31, 47, 56, .1);
}

.score-mascot {
    position: absolute;
    left: clamp(1rem, 5vw, 4rem);
    bottom: -1px;
    z-index: 1;
    justify-self: auto;
    width: min(34rem, 42vw);
    max-height: 88%;
    object-fit: contain;
    object-position: left bottom;
}

.score-actions .button {
    min-width: 9rem;
    margin: 0;
}

.member-profile-wide {
    max-width: 1170px;
}

.profile-card {
    position: relative;
    z-index: 1;
    padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 4vw, 3rem);
    padding-right: min(22rem, 34vw);
    border: 1px solid var(--giwas-line);
    border-radius: .9rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(255, 250, 240, .9));
    box-shadow: var(--giwas-shadow);
    text-align: left;
}

.profile-row {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr) 6rem minmax(0, 1fr);
    gap: .75rem 1rem;
    align-items: center;
    padding: .8rem 0;
    border-bottom: 1px dashed rgba(42, 157, 120, .18);
}

.profile-row:last-child {
    border-bottom: 0;
}

.profile-row-unit {
    grid-template-columns: 6rem minmax(0, 1fr);
}

.profile-label {
    color: #146248;
    font-size: .92rem;
    font-weight: 900;
}

.profile-value {
    color: var(--giwas-ink);
    font-size: 1.08rem;
    font-weight: 800;
}

.table-stage-profile .table-mascot {
    width: min(23rem, 32vw);
    right: 1.25rem;
    bottom: calc(100% - 5rem);
}

@media (max-width: 991px) {
    .rd-navbar-classic.rd-navbar-fixed .rd-navbar-main,
    .rd-navbar-fixed .rd-navbar-main {
        min-height: 4rem;
    }

    .rd-navbar-fixed .brand-text {
        max-width: 13rem;
        gap: .38rem;
    }

    .rd-navbar-fixed .brand-name {
        font-size: .98rem;
    }

    .rd-navbar-fixed .brand-badge {
        padding: .14rem .42rem;
        font-size: .66rem;
    }

    .score-card {
        min-height: auto;
        padding: 1.25rem;
    }

    .score-content {
        margin: 0 auto;
        text-align: center;
    }

    .score-mascot {
        position: relative;
        left: auto;
        bottom: auto;
        display: block;
        width: min(18rem, 68vw);
        margin: -1rem auto -1.25rem;
    }

    .profile-card {
        padding-right: 1.25rem;
    }

    .table-stage-profile .table-mascot {
        width: min(15rem, 56vw) !important;
        margin: -1rem 1rem -1px auto !important;
    }
}

@media (max-width: 575px) {
    .rd-navbar-fixed .brand {
        gap: .5rem;
        max-height: 3rem;
    }

    .rd-navbar-fixed .rd-navbar-brand img {
        max-height: 2.45rem;
        max-width: 2.45rem;
    }

    .brand-text {
        max-width: 13rem;
    }

    .brand-name {
        max-width: 7.4rem;
    }

    .brand-badge {
        font-size: .62rem;
    }

    .season-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: .5rem;
        margin-bottom: .5rem;
    }

    .season-tab {
        padding-left: .65rem;
        padding-right: .65rem;
        font-size: 1rem;
    }

    .season-card-header {
        display: grid;
        gap: .25rem;
    }

    .season-shell .section-cutout {
        display: flex;
        justify-content: flex-end;
        margin: -.5rem .75rem -1px 0;
    }

    .season-shell .section-cutout img {
        width: min(12rem, 56vw);
    }

    .episode-list a {
        align-items: flex-start;
    }

    .episode-title,
    .episode-topic {
        display: inline;
    }

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

    .score-actions .button {
        width: 100%;
    }

    .profile-row,
    .profile-row-unit {
        grid-template-columns: 5rem minmax(0, 1fr);
    }
}

/* Client polish overrides: keep these last so legacy template rules cannot win. */
.brand,
.rd-navbar-fixed .brand {
    display: inline-flex !important;
    align-items: flex-end !important;
    gap: .7rem !important;
    max-height: none !important;
    line-height: 1 !important;
    vertical-align: middle;
}

.brand img,
.rd-navbar-fixed .rd-navbar-brand img {
    flex: 0 0 auto;
    align-self: flex-end !important;
    width: auto !important;
    max-width: 3.25rem !important;
    max-height: 3.25rem !important;
    object-fit: contain;
}

.brand-text,
.rd-navbar-fixed .brand-text {
    display: inline-flex !important;
    flex: 0 1 auto;
    align-items: flex-end !important;
    gap: .5rem !important;
    min-width: 0;
    max-width: clamp(17rem, 34vw, 26rem) !important;
    margin: 0 0 .04rem !important;
    overflow: visible !important;
    white-space: nowrap;
}

.brand-name,
.rd-navbar-fixed .brand-name {
    display: inline-block;
    flex: 0 1 auto;
    max-width: none !important;
    color: #fff;
    font-size: clamp(1.08rem, 1.55vw, 1.35rem) !important;
    font-weight: 900;
    line-height: 1 !important;
    overflow: visible;
    text-overflow: clip;
}

.brand-badge,
.rd-navbar-fixed .brand-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    margin-bottom: -.02rem;
    padding: .18rem .58rem !important;
    color: #174d3c;
    font-size: .78rem !important;
    font-weight: 900;
    line-height: 1.1 !important;
    border-radius: 999px;
    background: linear-gradient(90deg, #fff6df, #e7f7e9);
    box-shadow: inset 0 0 0 1px rgba(42, 157, 120, .14);
}

.rd-navbar-classic.rd-navbar-static .rd-navbar-main,
.rd-navbar-static .rd-navbar-main {
    align-items: center;
}

.season-shell {
    margin-top: clamp(1.5rem, 3vw, 2.75rem) !important;
}

.season-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: clamp(1rem, 2.5vw, 2rem);
    margin-bottom: -1px;
}

.season-toolbar .season-tabs {
    flex: 1 1 auto;
    align-self: flex-end;
    gap: .5rem !important;
    margin: clamp(2rem, 4vw, 3.25rem) 0 .85rem !important;
}

.season-shell .section-cutout {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    min-height: 0 !important;
    margin: 0 clamp(.75rem, 2vw, 1.5rem) -1px 0 !important;
}

.season-shell .section-cutout img {
    display: block;
    width: min(24.5rem, 36vw) !important;
    max-width: none !important;
    height: auto;
    object-fit: contain;
    object-position: right bottom;
}

@media (max-width: 991px) {
    .brand,
    .rd-navbar-fixed .brand {
        gap: .55rem !important;
        align-items: flex-end !important;
    }

    .brand img,
    .rd-navbar-fixed .rd-navbar-brand img {
        max-width: 2.75rem !important;
        max-height: 2.75rem !important;
    }

    .brand-text,
    .rd-navbar-fixed .brand-text {
        gap: .38rem !important;
        max-width: calc(100vw - 7rem) !important;
    }

    .brand-name,
    .rd-navbar-fixed .brand-name {
        max-width: min(10.4rem, calc(100vw - 13rem)) !important;
        font-size: .98rem !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand-badge,
    .rd-navbar-fixed .brand-badge {
        padding: .14rem .43rem !important;
        font-size: .66rem !important;
    }

    .season-toolbar {
        display: grid;
        grid-template-columns: 1fr;
        gap: .25rem;
        margin-bottom: -1px;
    }

    .season-toolbar .season-tabs {
        align-self: auto;
        margin: .65rem 0 .65rem !important;
    }

    .season-shell .section-cutout {
        margin: -.45rem .85rem -1px auto !important;
    }

    .season-shell .section-cutout img {
        width: min(14rem, 58vw) !important;
    }
}

@media (max-width: 575px) {
    .brand img,
    .rd-navbar-fixed .rd-navbar-brand img {
        max-width: 2.45rem !important;
        max-height: 2.45rem !important;
    }

    .brand-text,
    .rd-navbar-fixed .brand-text {
        max-width: calc(100vw - 6.5rem) !important;
    }

    .brand-name,
    .rd-navbar-fixed .brand-name {
        max-width: min(7.8rem, calc(100vw - 12rem)) !important;
        font-size: .94rem !important;
    }

    .brand-badge,
    .rd-navbar-fixed .brand-badge {
        font-size: .62rem !important;
    }

    .season-toolbar .season-tabs {
        margin-top: .55rem !important;
    }

    .season-shell .section-cutout img {
        width: min(12rem, 56vw) !important;
    }
}

/* Home feature card CTA buttons */
.voucher-box-block .button.button-card-practice,
.voucher-box-block .button.button-card-ranking,
.voucher-box-block .button.button-card-competition {
    min-width: 10.75rem;
    padding: .9rem 1.45rem;
    color: #fff !important;
    font-size: 1.08rem;
    font-weight: 900;
    letter-spacing: 0;
    border: 2px solid rgba(255, 255, 255, .58) !important;
    border-radius: .7rem;
    box-shadow:
        0 .85rem 1.35rem rgba(31, 47, 56, .2),
        inset 0 1px 0 rgba(255, 255, 255, .22);
    transform: translateY(0);
}

.voucher-box-block .button.button-card-practice {
    background: linear-gradient(135deg, #cf4a42, #f07b4a) !important;
}

.voucher-box-block .button.button-card-ranking {
    background: linear-gradient(135deg, #126b8f, #15826f) !important;
}

.voucher-box-block .button.button-card-competition {
    color: #3f2a10 !important;
    background: linear-gradient(135deg, #ffd66b, #f4a62d) !important;
    border-color: rgba(255, 246, 223, .88) !important;
}

.voucher-box-block .button.button-card-practice:hover,
.voucher-box-block .button.button-card-practice:active {
    background: linear-gradient(135deg, #b73e38, #e65f55) !important;
}

.voucher-box-block .button.button-card-ranking:hover,
.voucher-box-block .button.button-card-ranking:active {
    background: linear-gradient(135deg, #0e5f7d, #146248) !important;
}

.voucher-box-block .button.button-card-competition:hover,
.voucher-box-block .button.button-card-competition:active {
    color: #2f210e !important;
    background: linear-gradient(135deg, #ffc94f, #f18f2d) !important;
}

.voucher-box-block .button.button-card-practice:hover,
.voucher-box-block .button.button-card-ranking:hover,
.voucher-box-block .button.button-card-competition:hover {
    border-color: rgba(255, 255, 255, .9) !important;
    box-shadow:
        0 1rem 1.55rem rgba(31, 47, 56, .24),
        inset 0 1px 0 rgba(255, 255, 255, .3);
    transform: translateY(-3px);
}

@media (max-width: 575px) {
    .voucher-box-block .button.button-card-practice,
    .voucher-box-block .button.button-card-ranking,
    .voucher-box-block .button.button-card-competition {
        width: min(100%, 13rem);
        min-width: 0;
        padding: .82rem 1rem;
        font-size: 1rem;
    }
}

/* Exam list: desktop mascot overlap and seven distinct season headers. */
.season-toolbar {
    position: relative;
    z-index: 3;
}

.season-panel {
    position: relative;
    z-index: 1;
}

.season-shell .section-cutout img {
    position: relative;
    z-index: 4;
    transform: translateY(1.35rem);
}

.season-tone-1 .season-card-header {
    background: linear-gradient(135deg, #8d5a2b, #e65f55) !important;
}

.season-tone-2 .season-card-header {
    background: linear-gradient(135deg, #2374ab, #2a9d78) !important;
}

.season-tone-3 .season-card-header {
    background: linear-gradient(135deg, #146248, #f8b735) !important;
}

.season-tone-4 .season-card-header {
    background: linear-gradient(135deg, #cf4a42, #f07b4a) !important;
}

.season-tone-5 .season-card-header {
    background: linear-gradient(135deg, #126b8f, #7fb86a) !important;
}

.season-tone-6 .season-card-header {
    background: linear-gradient(135deg, #6c421e, #d89a35) !important;
}

.season-tone-7 .season-card-header {
    background: linear-gradient(135deg, #1b7f86, #e65f55) !important;
}

@media (max-width: 991px) {
    .season-shell .section-cutout {
        justify-content: center !important;
        margin: -.45rem auto -1px !important;
    }

    .season-shell .section-cutout img {
        transform: none;
    }
}
