:root {
    --body-bg-color: #173d7a;
    --grid-line-color: #2b599f;
    --btn-top-bg: #F8E028;
    --btn-bottom-bg: #F8B21E;
    --btn-text-shadow: #b33600;
    --card-bg: #ffffffdd;
    --app-pad: 2cqh;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--body-bg-color);
    background-image: linear-gradient(to right, var(--grid-line-color) 0.1dvh, transparent 0.1dvh), linear-gradient(to bottom, var(--grid-line-color) 0.1dvh, transparent 0.1dvh);
    background-size: 4dvh 4dvh;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    user-select: none;
}

img {
    -webkit-user-drag: none !important;
}

.container-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100dvh;
}

#app-container {
    height: 100dvh;
    container-type: size;
    max-width: 100vw;
    background-color: transparent;
    position: relative;
    box-sizing: border-box;
    font-size: 2.2dvh;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.app-frame--framed {
    width: calc(100dvh * (9 / 16));
}

.app-frame--fluid {
    width: 100vw;
}

.game-btn {
    width: 100%;
    background: linear-gradient(180deg, var(--btn-top-bg) 50%, var(--btn-bottom-bg) 50%);
    border: 0.4cqh solid #ff8f00;
    border-bottom: 0.9cqh solid #e65100;
    color: #ffffff;
    font-weight: 800;
    font-size: 2.6cqh;
    padding: 1.2cqh;
    border-radius: 2.5cqh;
    cursor: pointer;
    text-shadow: 0 0.3cqh 0 var(--btn-text-shadow);
    box-shadow: 0 0.6cqh 0 rgba(0,0,0,0.1);
    margin-top: 1.5cqh;
    letter-spacing: 0.1cqh;
    transition: transform 0.05s ease, border-bottom-width 0.05s ease;
    display: block;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

.game-btn:active {
    transform: translateY(0.3cqh);
    border-bottom-width: 0.6cqh;
    box-shadow: 0 0.3cqh 0 rgba(0,0,0,0.1);
}

.game-btn-red {
    width: 100%;
    background: linear-gradient(180deg, #ef5350 50%, #d32f2f 50%);
    border: 0.4cqh solid #e53935;
    border-bottom: 0.9cqh solid #b71c1c;
    color: #ffffff;
    font-weight: 800;
    font-size: 2.6cqh;
    padding: 1.2cqh;
    border-radius: 2.5cqh;
    cursor: pointer;
    text-shadow: 0 0.3cqh 0 #7f0000;
    box-shadow: 0 0.6cqh 0 rgba(0,0,0,0.1);
    margin-top: 3cqh;
    letter-spacing: 0.1cqh;
    transition: transform 0.05s ease, border-bottom-width 0.05s ease;
    display: block;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

.game-btn-red:active {
    transform: translateY(0.3cqh);
    border-bottom-width: 0.6cqh;
    box-shadow: 0 0.3cqh 0 rgba(0,0,0,0.1);
}

.game-btn-blue {
    width: 100%;
    background: linear-gradient(180deg, #00a2ff 50%, #0077e6 50%);
    border: 0.4cqh solid #0084ff;
    border-bottom: 0.9cqh solid #0050b3;
    color: #ffffff;
    font-weight: 800;
    font-size: 2.6cqh;
    padding: 1.2cqh;
    border-radius: 2.5cqh;
    cursor: pointer;
    text-shadow: 0 0.3cqh 0 #004085;
    box-shadow: 0 0.6cqh 0 rgba(0,0,0,0.1);
    letter-spacing: 0.1cqh;
    transition: transform 0.05s ease, border-bottom-width 0.05s ease;
    display: block;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

.game-btn-blue:active {
    transform: translateY(0.3cqh);
    border-bottom-width: 0.6cqh;
    box-shadow: 0 0.3cqh 0 rgba(0,0,0,0.1);
}

.status-card {
    margin: var(--app-pad);
    width: calc(100% - (var(--app-pad) * 2));
    background-color: var(--card-bg);
    border: 0.4cqh solid #d7ccc8;
    border-bottom: 0.9cqh solid #bcaaa4;
    border-radius: 4cqh;
    position: relative;
    box-sizing: border-box;
    box-shadow: 0 1cqh 2cqh rgba(0,0,0,0.1);
}

.status-badge {
    position: absolute;
    top: -3cqh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: #ffffff;
    font-weight: 800;
    font-size: 2.8cqh;
    padding: 0.8cqh 4cqh;
    border-radius: 2cqh;
    white-space: nowrap;
    letter-spacing: 0.1cqh;
    box-shadow: 0 0.6cqh 0 rgba(0,0,0,0.15);
}

.error-badge-header {
    border: 0.4cqh solid #cc7400;
    background-color: #ff9100;
    text-shadow: 0 0.3cqh 0 #804900;
}

.notfound-badge-header {
    border: 0.4cqh solid #0288d1;
    background-color: #29b6f6;
    text-shadow: 0 0.3cqh 0 #01579b;
}

.denied-badge-header {
    border: 0.4cqh solid #9a0007;
    background-color: #d32f2f;
    text-shadow: 0 0.3cqh 0 #5f0000;
}

.about-badge-header,
.policy-badge-header {
    border: 0.4cqh solid #388e3c;
    background-color: #66bb6a;
    text-shadow: 0 0.3cqh 0 #1b5e20;
}

.error-card-content,
.notfound-card-content,
.denied-card-content {
    text-align: center;
    padding: 8cqh 3cqh 4cqh 3cqh;
}

.about-card-content,
.policy-card-content {
    padding: 8cqh 4cqh 4cqh 4cqh;
    text-align: left;
}

.status-big-title {
    color: #5d4037;
    font-weight: 800;
    font-size: 3cqh;
    margin-bottom: 1.5cqh;
    margin-top: 0;
}

.status-text {
    color: #8d6e63;
    font-weight: 500;
    font-size: 2.2cqh;
    line-height: 1.6;
    margin-bottom: 4cqh;
}

.about-card-content h2,
.policy-card-content h2 {
    color: #5d4037;
    font-weight: 800;
    font-size: 3cqh;
    margin-top: 0;
    margin-bottom: 2cqh;
}

.about-card-content h3,
.policy-card-content h3 {
    color: #5d4037;
    font-weight: 700;
    font-size: 2.4cqh;
    margin-top: 3cqh;
    margin-bottom: 1.5cqh;
}

.about-text,
.policy-text {
    color: #5d4037;
    font-size: 2cqh;
    line-height: 1.6;
    margin-bottom: 2cqh;
}

.centered-button-block {
    margin-top: 4cqh;
    text-align: center;
}

.status-container {
    margin: var(--app-pad);
    width: calc(100% - (var(--app-pad) * 2));
    padding: 4cqh 3cqh;
    background-color: var(--card-bg);
    border: 0.4cqh solid #d7ccc8;
    border-bottom: 0.9cqh solid #bcaaa4;
    border-radius: 4cqh;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 1cqh 2cqh rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
}

.status-message {
    color: #5d4037;
    font-weight: 600;
    font-size: 2.2cqh;
    margin-bottom: 3cqh;
}

.status-message-compact {
    line-height: 1.4;
}

.status-icon {
    width: 8cqh;
    height: 8cqh;
    background-color: #2e7d32;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4cqh;
    font-weight: 900;
    margin-bottom: 2cqh;
    box-shadow: 0 0.5cqh 1cqh rgba(46, 125, 50, 0.3);
}

.status-icon-fail {
    width: 8cqh;
    height: 8cqh;
    background-color: #c62828;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4cqh;
    font-weight: 900;
    margin-bottom: 2cqh;
    box-shadow: 0 0.5cqh 1cqh rgba(198, 40, 40, 0.3);
}

.status-icon-processing {
    width: 8cqh;
    height: 8cqh;
    background-color: #0288d1;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5cqh;
    font-weight: 900;
    margin-bottom: 2cqh;
    box-shadow: 0 0.5cqh 1cqh rgba(2, 136, 209, 0.3);
}

.status-icon-notfound {
    width: 8cqh;
    height: 8cqh;
    background-color: #ef6c00;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4cqh;
    font-weight: 900;
    margin-bottom: 2cqh;
    box-shadow: 0 0.5cqh 1cqh rgba(239, 108, 0, 0.3);
}

.status-header,
.status-header-success {
    color: #2e7d32;
    font-weight: 800;
    font-size: 3.2cqh;
    margin: 0 0 1cqh 0;
    text-shadow: 0 0.2cqh 0 #ffffff;
}

.status-header-fail {
    color: #c62828;
    font-weight: 800;
    font-size: 3.2cqh;
    margin: 0 0 1cqh 0;
    text-shadow: 0 0.2cqh 0 #ffffff;
}

.status-header-processing {
    color: #0288d1;
    font-weight: 800;
    font-size: 3.2cqh;
    margin: 0 0 1cqh 0;
    text-shadow: 0 0.2cqh 0 #ffffff;
}

.status-header-notfound {
    color: #e65100;
    font-weight: 800;
    font-size: 3.2cqh;
    margin: 0 0 1cqh 0;
    text-shadow: 0 0.2cqh 0 #ffffff;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5cqh;
    width: 100%;
}

.back-home-btn,
.back-home-btn-spaced {
    display: inline-block;
    color: #8d6e63;
    font-weight: 900;
    text-decoration: none;
    font-size: 2cqh;
    transition: transform 0.08s ease;
}

.back-home-btn-spaced {
    margin-top: 1cqh;
}

.back-home-btn:active,
.back-home-btn-spaced:active {
    transform: translateY(0.3cqh) scale(0.95);
}

.back-home-btn span,
.back-home-btn-spaced span {
    display: inline-block;
    filter: drop-shadow(0 0.4cqh 0.1cqh rgba(0, 0, 0, 0.2));
    transition: filter 0.08s ease;
}

.plan-info-box,
.product-info-box {
    background: #e8f5e9;
    padding: 2.5cqh 2cqh;
    border-radius: 3cqh;
    border: 0.3cqh solid #c8e6c9;
    border-bottom: 0.7cqh solid #81c784;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 3cqh;
}

.product-info-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.plan-info-box-fail,
.product-info-box-fail {
    background: #ffebee;
    padding: 2.5cqh 2cqh;
    border-radius: 3cqh;
    border: 0.3cqh solid #ffcdd2;
    border-bottom: 0.7cqh solid #ef9a9a;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 3cqh;
}

.plan-info-name,
.product-info-name {
    font-weight: 800;
    color: #1b5e20;
    font-size: 2.6cqh;
    margin-bottom: 0.5cqh;
}

.product-info-name {
    margin-bottom: 1cqh;
}

.plan-info-name-fail,
.product-info-name-fail {
    font-weight: 800;
    color: #b71c1c;
    font-size: 2.6cqh;
    margin-bottom: 0.5cqh;
}

.plan-info-price,
.plan-info-price-fail,
.product-info-price-fail {
    font-weight: 900;
    font-size: 3cqh;
}

.plan-info-price {
    color: #2e7d32;
}

.plan-info-price-fail,
.product-info-price-fail {
    color: #c62828;
}

.rewards-badges {
    display: flex;
    gap: 1.2cqh;
    justify-content: center;
    align-items: center;
}

.reward-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6cqh;
    background: var(--card-bg);
    padding: 0.6cqh 1.4cqh;
    border-radius: 2cqh;
    border: 0.25cqh solid #a5d6a7;
    font-weight: 800;
    font-size: 1.8cqh;
    color: #2e7d32;
    box-shadow: 0 0.2cqh 0.4cqh rgba(0, 0, 0, 0.08);
}

.reward-pill.gem-pill {
    color: #00838f;
    border-color: #80deea;
}

.reward-pill-icon {
    width: 2.4cqh;
    height: 2.4cqh;
    object-fit: contain;
}

.notice-box-processing {
    background: #e1f5fe;
    padding: 2.5cqh 2cqh;
    border-radius: 3cqh;
    border: 0.3cqh solid #b3e5fc;
    border-bottom: 0.7cqh solid #81d4fa;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 3cqh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5cqh;
    text-align: center;
}

.notice-box-processing span {
    color: #01579b;
    font-size: 1.9cqh;
    font-weight: 700;
    line-height: 1.3;
}

.login-box-container {
    margin: var(--app-pad);
    width: calc(100% - (var(--app-pad) * 2));
    background-color: var(--card-bg);
    border: 0.4cqh solid #d7ccc8;
    border-bottom: 0.9cqh solid #bcaaa4;
    border-radius: 4cqh;
    position: relative;
    box-sizing: border-box;
    box-shadow: 0 1cqh 2cqh rgba(0,0,0,0.12);
    margin-top: 5cqh;
}

.login-card-content {
    padding: 8cqh 3cqh 4cqh 3cqh;
}

.login-badge-header {
    position: absolute;
    top: -3cqh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: #ffffff;
    font-weight: 800;
    font-size: 2.8cqh;
    padding: 0.8cqh 4cqh;
    border-radius: 2cqh;
    white-space: nowrap;
    letter-spacing: 0.1cqh;
    border: 0.4cqh solid #557d26;
    border-bottom: 0.7cqh solid #3b571a;
    background-color: #7cb342;
    box-shadow: 0 0.6cqh 0.8cqh rgba(0,0,0,0.18);
    text-shadow: 0 0.3cqh 0 #43631d;
}

.game-form-group {
    margin-bottom: 2.5cqh;
    text-align: left;
}

.game-label {
    display: block;
    color: #5d4037;
    font-weight: 800;
    font-size: 2cqh;
    margin-bottom: 0.8cqh;
    letter-spacing: 0.05cqh;
    text-shadow: 0 0.1cqh 0 #ffffff;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.game-input {
    width: 100%;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 2cqh;
    padding: 1.5cqh 2cqh;
    color: #5d4037;
    background-color: #f1edea;
    border: 0.3cqh solid #d7ccc8;
    border-bottom: 0.5cqh solid #bcaaa4;
    border-radius: 2cqh;
    outline: none;
    box-shadow: inset 0 0.3cqh 0.4cqh rgba(0,0,0,0.06);
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.password-wrapper .game-input {
    padding-right: 6cqh;
}

.game-input:focus {
    border-color: #ffb300;
    border-bottom-color: #ff8f00;
    background-color: #ffffff;
    box-shadow: inset 0 0.2cqh 0.3cqh rgba(0,0,0,0.04), 0 0.4cqh 0.8cqh rgba(255, 179, 0, 0.2);
}

.game-input::placeholder {
    color: #bcaaa4;
}

.password-toggle-btn {
    position: absolute;
    right: 2cqh;
    background: none;
    border: none;
    color: #8d6e63;
    font-size: 2.2cqh;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0.2cqh 0.1cqh rgba(0, 0, 0, 0.15));
    transition: transform 0.08s ease, color 0.15s ease;
}

.password-toggle-btn:hover {
    color: #ff8f00;
}

.password-toggle-btn:active {
    transform: scale(0.9) translateY(0.1cqh);
}

.game-text-danger {
    display: block;
    color: #d32f2f;
    font-weight: 600;
    font-size: 1.8cqh;
    margin-top: 0.5cqh;
    list-style-type: none;
    padding-left: 0;
    text-shadow: 0 0.1cqh 0 #ffffff;
}

.game-footer-link {
    text-align: center;
    margin-top: 3cqh;
    color: #8d6e63;
    font-weight: 600;
    font-size: 1.9cqh;
}

.game-footer-link a {
    color: #ff8f00;
    text-decoration: none;
    font-weight: 800;
    display: inline-block;
    transition: transform 0.08s ease;
}

.game-footer-link a span {
    display: inline-block;
    text-shadow: 0 0.1cqh 0 #ffffff;
    filter: drop-shadow(0 0.2cqh 0.1cqh rgba(0,0,0,0.1));
}

.game-footer-link a:active {
    transform: translateY(0.2cqh) scale(0.96);
}

.empty-state-text {
    color: #8d6e63;
    font-weight: 600;
    margin: auto;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 7cqh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0.4cqh 0.4cqh rgba(0, 0, 0, 0.15));
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5cqh;
}

.nav-right .game-btn.nav-text-btn {
    width: auto;
    margin-top: 0;
    font-size: 1.8cqh;
    padding: 0.8cqh 3cqh;
    border-radius: 2cqh;
}

.footer-navigation {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    flex-shrink: 0;
}

.footer-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.08s ease;
}

.footer-nav-item:active {
    transform: translateY(0.3cqh) scale(0.95);
}

.footer-nav-item img {
    height: 6.5cqh;
    width: 6.5cqh;
    object-fit: contain;
    margin-bottom: 0.3cqh;
    filter: drop-shadow(0 0.5cqh 0.1cqh rgba(0, 0, 0, 0.25)) drop-shadow(0 0.8cqh 0.6cqh rgba(0, 0, 0, 0.15));
    transition: filter 0.08s ease;
}

.footer-nav-item:active img {
    filter: drop-shadow(0 0.2cqh 0.1cqh rgba(0, 0, 0, 0.25));
}

.footer-nav-item span {
    font-size: 2cqh;
    font-weight: 900;
    color: #8d6e63;
    text-shadow: -0.1cqh -0.1cqh 0 #fff, 0.1cqh -0.1cqh 0 #fff, -0.1cqh 0.1cqh 0 #fff, 0.1cqh 0.1cqh 0 #fff, 0 0.3cqh 0 rgba(0,0,0,0.15);
}

/* Form Validation Error Styles */
.input-validation-error {
    border-color: #d32f2f !important;
}
.field-validation-error {
    display: block;
}
