:root {
    color-scheme: dark;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    --wp-ink: #1b1008;
    --wp-ink-soft: #29170a;
    --wp-gold: #f0cf73;
    --wp-gold-bright: #ffe9a7;
    --wp-cream: #fff8e1;
    --wp-text: #fff5d0;
    --wp-muted: #ddc995;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    background: var(--wp-ink);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--wp-text);
    background:
        radial-gradient(ellipse at 50% 0, rgba(173, 102, 25, 0.24), transparent 38rem),
        linear-gradient(145deg, #120b06 0%, #29170b 55%, #120b06 100%);
    font-family: "Microsoft JhengHei", "Noto Sans TC", sans-serif;
    line-height: 1.5;
}

.wp-form {
    min-height: 100vh;
    min-height: 100svh;
}

.wp-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(1rem, 4vw, 2.5rem) 1rem;
}

.wp-shell {
    width: min(100%, 720px);
    margin: auto;
    overflow: hidden;
    border: 1px solid rgba(255, 218, 130, 0.58);
    border-radius: 1.35rem;
    background: rgba(21, 12, 6, 0.92);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.45), 0 0 2rem rgba(241, 172, 63, 0.1);
}

.wp-hero {
    overflow: hidden;
    background: #180e07;
}

.wp-hero img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1080 / 653;
    object-fit: cover;
    object-position: center top;
}

.wp-card {
    padding: clamp(1.25rem, 4vw, 2.25rem);
    background: linear-gradient(180deg, rgba(42, 25, 10, 0.97), rgba(20, 12, 7, 0.98));
}

.wp-heading {
    text-align: center;
}

.wp-eyebrow {
    margin: 0 0 0.35rem;
    color: var(--wp-gold);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.wp-heading h1 {
    margin: 0;
    color: var(--wp-gold-bright);
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    line-height: 1.2;
    text-shadow: 0 2px 16px rgba(255, 205, 99, 0.16);
}

.wp-description {
    margin: 0.65rem 0 0;
    color: var(--wp-muted);
    font-size: 1rem;
}

.wp-form-field {
    margin-top: 1.75rem;
}

.wp-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--wp-gold-bright);
    font-size: 1rem;
    font-weight: 700;
}

.wp-input {
    display: block;
    width: 100%;
    min-height: 3.5rem;
    padding: 0.75rem 1rem;
    border: 2px solid #e9bd5a;
    border-radius: 0.8rem;
    outline: none;
    /* Override the legacy WebForms inline BackColor=Transparent. */
    background: var(--wp-cream) !important;
    color: #211307;
    caret-color: #211307;
    color-scheme: light;
    font: inherit;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.wp-input:focus-visible {
    border-color: #fff1bc;
    box-shadow: 0 0 0 4px rgba(255, 222, 133, 0.28);
}

.wp-hint {
    margin: 0.5rem 0 0;
    color: var(--wp-muted);
    font-size: 0.875rem;
}

.wp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid #ffeba8;
    border-radius: 0.85rem;
    background: linear-gradient(110deg, #e7bc57, #fff0b1 55%, #e7bc57);
    color: #321c08;
    cursor: pointer;
    font: inherit;
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-decoration: none;
    transition: filter 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.wp-button:hover {
    filter: brightness(1.06);
    box-shadow: 0 0.4rem 1.25rem rgba(240, 194, 91, 0.2);
}

.wp-button:active {
    transform: translateY(1px);
}

.wp-button:focus-visible {
    outline: 3px solid #fff7d8;
    outline-offset: 3px;
}

.wp-status {
    min-height: 1.5em;
    margin: 0.6rem 0 0;
    color: var(--wp-gold-bright);
    font-size: 0.9rem;
    text-align: center;
}

.wp-result-content {
    display: block;
}

.wp-result-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
    margin-top: 1.75rem;
}

.wp-result-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.3rem;
    min-width: 0;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(239, 197, 91, 0.7);
    border-radius: 0.8rem;
    background: rgba(255, 248, 225, 0.98);
    color: #28180c;
}

.wp-result-label {
    color: #68441a;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.wp-result-value {
    display: block;
    min-width: 0;
    color: #201207;
    font-size: 1.15rem;
    font-weight: 700;
    overflow-wrap: anywhere;
    white-space: normal;
}

.wp-award-value {
    color: #5b350d;
    font-size: clamp(1.1rem, 4vw, 1.55rem);
}

.wp-claim-row {
    margin-top: 0.7rem;
}

.wp-result-actions {
    display: block;
    width: min(100%, 22rem);
    margin: 1.5rem auto 0;
}

.wp-back-button {
    margin-top: 0;
}

@media (min-width: 600px) {
    .wp-result-row {
        grid-template-columns: minmax(9rem, 0.7fr) minmax(0, 1.3fr);
        align-items: center;
        gap: 1rem;
        padding: 1rem 1.2rem;
    }

    .wp-result-label {
        font-size: 1rem;
    }

    .wp-result-value {
        font-size: 1.25rem;
    }

    .wp-award-value {
        font-size: clamp(1.2rem, 2.5vw, 1.65rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
