/* Pelangi public site — dark gold theme (aligned with index.jsp) */

body {
    background-color: #000 !important;
    background-image: none !important;
    color: #d8d8d8;
    font-family: "Segoe UI", "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
}

#content .header {
    margin-top: 16px;
    padding: 14px 20px !important;
    color: #ffd24a !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    background: linear-gradient(165deg, #1a1a1a 0%, #0a0a0a 100%) !important;
    border: 1px solid rgba(255, 210, 74, 0.35) !important;
    border-bottom: 1px solid rgba(255, 210, 74, 0.28) !important;
    border-radius: 12px 12px 0 0 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
}

#content .header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffd24a 20%, #ffb800 50%, #ffd24a 80%, transparent);
    opacity: 0.85;
    border-radius: 12px 12px 0 0;
}

#content .body {
    min-height: 350px;
    margin-bottom: 16px;
    padding: 28px 28px 24px !important;
    color: #d8d8d8 !important;
    font-size: 15px;
    line-height: 1.75;
    letter-spacing: 0.2px;
    background: linear-gradient(165deg, #121212 0%, #0a0a0a 55%, #111 100%) !important;
    border: 1px solid rgba(255, 210, 74, 0.22) !important;
    border-top: none !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#content .body p,
#content .body .contact1 {
    margin: 0 0 16px;
    padding-top: 0 !important;
    color: #d8d8d8 !important;
    font-size: 15px;
    line-height: 1.75;
}

/* Lead callout — opt-in only (do not auto-style first rule line) */
#content .body > p.lead,
#content .body > .contact1.lead {
    padding: 14px 18px;
    margin-bottom: 18px;
    color: #ececec !important;
    background: rgba(255, 210, 74, 0.07);
    border-left: 3px solid #ffd24a;
    border-radius: 0 8px 8px 0;
}

/* Peraturan — uniform left-aligned rules */
#content .body.rules-body > p {
    margin: 0 0 12px !important;
    padding: 6px 0 6px 0 !important;
    color: #d8d8d8 !important;
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: 15px;
    line-height: 1.7;
    text-align: left;
}

#content .body a {
    color: #ffd24a !important;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 210, 74, 0.55);
    transition: color 0.2s ease, border-color 0.2s ease;
}

#content .body a:hover {
    color: #fff !important;
    border-bottom-color: #fff;
}

#content .body table {
    color: #d8d8d8;
}

#content .body table td {
    color: #d8d8d8 !important;
    vertical-align: middle;
}

#content .body table td a {
    font-size: 15px;
    font-weight: 600;
}

/* Register form */
#content .body.reg-body > .reg-alerts {
    display: none;
}

#content .body .reg-form {
    width: 100%;
    max-width: 760px;
    margin: 12px auto 0;
    padding: 0;
}

#content .body .reg-row {
    display: flex;
    align-items: center;
    margin: 0 0 12px;
}

#content .body .reg-label {
    flex: 0 0 160px;
    width: 160px;
    padding: 0 14px 0 0;
    text-align: right;
    color: #e6e6e6 !important;
    font-size: 14px;
    line-height: 1.3;
    box-sizing: border-box;
}

#content .body .reg-label .req,
#content .body .reg-controls .req {
    color: #ff6b6b !important;
    font-weight: 700;
    margin-left: 2px;
}

#content .body .reg-controls {
    flex: 0 0 280px;
    width: 280px;
    max-width: 280px;
    min-width: 0;
}

#content .body .reg-form input[type="text"],
#content .body .reg-form input[type="password"],
#content .body .reg-form select {
    float: none !important;
    display: block;
    width: 100% !important;
    max-width: 280px;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    background: #1a1a1a !important;
    color: #f1f1f1 !important;
    border: 1px solid rgba(255, 210, 74, 0.4) !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-family: "Segoe UI", Arial, sans-serif !important;
    box-sizing: border-box !important;
    -webkit-appearance: none;
    appearance: none;
}

/* Match juragan: clean select + SVG chevron only */
#content .body .reg-form select {
    padding-right: 32px !important;
    cursor: pointer;
    background-color: #1a1a1a !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffd24a' d='M1.2 1.2L6 6l4.8-4.8 1.2 1.2L6 8.4 0 2.4z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 10px 7px !important;
}

#content .body .reg-form input:-webkit-autofill,
#content .body .reg-form input:-webkit-autofill:hover,
#content .body .reg-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: #f1f1f1 !important;
    -webkit-box-shadow: 0 0 0 1000px #1a1a1a inset !important;
    transition: background-color 9999s ease-in-out 0s;
}

#content .body .reg-form input[type="text"]:focus,
#content .body .reg-form input[type="password"]:focus,
#content .body .reg-form select:focus {
    border-color: #ffd24a !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 210, 74, 0.18);
}

#content .body .reg-form .reg-captcha {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    max-width: 280px;
}

#content .body .reg-form .reg-captcha input {
    flex: 0 0 110px;
    width: 110px !important;
    max-width: 110px;
    display: inline-block;
}

#content .body .reg-form .reg-captcha img,
#content .body .reg-form .reg-captcha-img {
    flex: 0 0 auto;
    width: auto;
    height: 36px;
    vertical-align: middle;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid rgba(255, 210, 74, 0.55);
    background: #121212;
    box-shadow: 0 0 0 1px rgba(255, 184, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.35);
}

#content .body .reg-tip {
    flex: 1 1 auto;
    min-width: 140px;
    max-width: 280px;
    margin: 0 0 0 12px;
    padding: 0;
    color: #ff8f8f !important;
    font-size: 12px;
    line-height: 1.35;
    word-break: break-word;
}

#content .body .reg-tip font {
    color: inherit !important;
    font-size: 12px !important;
}

#content .body .reg-actions {
    margin-top: 18px;
}

#content .body .reg-submit {
    display: block;
    width: 100%;
    max-width: 280px;
    min-width: 0;
    height: 40px;
    margin: 0;
    padding: 0 28px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #1a1a1a;
    background: linear-gradient(180deg, #ffe566 0%, #ffd24a 55%, #ffb800 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transition: filter 0.15s ease, transform 0.15s ease;
    box-sizing: border-box;
}

#content .body .reg-submit:hover {
    filter: brightness(1.06);
}

#content .body .reg-submit:active {
    transform: translateY(1px);
}

/* Permainan tabs — chip style (no Bootstrap) */
#content .body .game-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    min-height: 44px;
    margin: 0 0 20px;
    padding: 4px 0 14px;
    border: 0;
    border-bottom: 1px solid rgba(255, 210, 74, 0.22);
    list-style: none;
}

#content .body .game-tabs > li {
    margin: 0;
}

#content .body .game-tabs > li > a {
    display: inline-block;
    box-sizing: border-box;
    min-width: 108px;
    height: 34px;
    margin: 0;
    padding: 0 14px;
    line-height: 32px;
    text-align: center;
    border: 1px solid rgba(255, 210, 74, 0.32);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    color: #d0d0d0 !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255, 210, 74, 0.32) !important;
    white-space: nowrap;
    cursor: pointer;
}

#content .body .game-tabs > li > a:hover {
    color: #ffd24a !important;
    border-color: rgba(255, 210, 74, 0.55) !important;
    background: rgba(255, 210, 74, 0.1);
}

#content .body .game-tabs > .active > a,
#content .body .game-tabs > .active > a:hover {
    color: #1a1a1a !important;
    background: linear-gradient(180deg, #ffe566 0%, #ffd24a 100%);
    border-color: #ffb800 !important;
    box-shadow: 0 2px 8px rgba(255, 184, 0, 0.25);
}

#content .body .tab-content {
    padding-top: 4px;
    min-height: 280px;
}

#content .body .tab-pane {
    display: none;
}

#content .body .tab-pane.active {
    display: block;
}

#content .body .tab-pane .contact1 {
    margin: 0 0 14px !important;
    padding: 0 !important;
    color: #d8d8d8 !important;
    font-size: 15px;
    line-height: 1.75;
    font-weight: normal;
    background: none !important;
    border: 0 !important;
}

#content .body .tab-pane > .contact1.game-title {
    color: #ffd24a !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    padding: 8px 0 8px 14px !important;
    margin: 18px 0 12px !important;
    background: linear-gradient(90deg, rgba(255, 210, 74, 0.08) 0%, transparent 100%) !important;
    border-left: 4px solid #ffd24a !important;
    border-radius: 0 6px 6px 0;
}

#content .body .tab-pane > .contact1.game-title:first-child {
    margin-top: 4px !important;
}

.wrapper {
    width: 990px !important;
    max-width: 990px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Contact page — card grid (dark gold) */
#content .body.contact-body {
    min-height: 420px;
}

#content .body .contact-lead {
    margin: 0 0 22px !important;
    padding: 0 !important;
    color: #c8c8c8 !important;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    background: none !important;
    border: 0 !important;
}

#content .body .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 640px;
    margin: 0 auto;
    justify-content: center;
}

#content .body a.contact-card {
    flex: none;
    max-width: none;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    text-decoration: none !important;
    border: 1px solid rgba(255, 210, 74, 0.28) !important;
    border-bottom: 1px solid rgba(255, 210, 74, 0.28) !important;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    color: #fff !important;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

#content .body a.contact-card:hover,
#content .body a.contact-card:focus {
    transform: translateY(-2px);
    color: #fff !important;
    border-color: rgba(255, 210, 74, 0.7) !important;
    background: rgba(255, 210, 74, 0.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), 0 0 12px rgba(255, 210, 74, 0.12);
}

#content .body .contact-card__icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 210, 74, 0.1);
    border: 1px solid rgba(255, 210, 74, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

#content .body .contact-card__icon img {
    width: 26px;
    height: 26px;
    display: block;
}

#content .body .contact-card__body {
    flex: 1;
    min-width: 0;
}

#content .body .contact-card__title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #ffd24a;
    margin-bottom: 4px;
}

#content .body .contact-card__desc {
    display: block;
    font-size: 12px;
    color: #aaaaaa;
    line-height: 1.35;
}

#content .body .contact-card__arrow {
    flex: 0 0 auto;
    font-size: 22px;
    font-weight: 700;
    color: #ffd24a;
    opacity: 0.85;
    transition: transform 0.2s ease;
}

#content .body a.contact-card:hover .contact-card__arrow {
    transform: translateX(4px);
    opacity: 1;
}

#content .body .contact-note {
    margin: 24px auto 0;
    max-width: 640px;
    padding: 12px 16px;
    text-align: center;
    font-size: 12px;
    line-height: 1.55;
    color: #c8c8c8;
    background: rgba(255, 210, 74, 0.06);
    border: 1px solid rgba(255, 210, 74, 0.35);
    border-radius: 8px;
}

#content .body .contact-note b {
    color: #ffd24a;
}

/* Prevent sideways jump on short pages */
html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body {
    overflow-x: hidden;
}

/* Footer polish (same as index) */
#footer {
    margin-top: 0;
    padding: 24px 0 20px;
    border-top: 1px solid rgba(255, 210, 74, 0.25);
    background: #000 !important;
    position: relative;
    z-index: 1;
}

#footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -40px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000);
    z-index: -1;
    pointer-events: none;
}

#footer .wrapper {
    min-height: 110px;
}

.menu-footer {
    padding: 6px 0 12px !important;
    text-align: center;
}

#menu-footer {
    text-align: center;
}

#menu-footer li a {
    font-family: "Segoe UI", "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif !important;
    font-size: 14px !important;
    color: #ffd24a !important;
    padding: 4px 14px !important;
    letter-spacing: 0.4px;
    border-right: 1px solid rgba(255, 210, 74, 0.35);
    transition: color 0.2s ease;
}

#menu-footer li:last-child a {
    border-right: 0 !important;
}

#menu-footer li a:hover {
    color: #fff !important;
}

.copy-right {
    width: auto !important;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 12px !important;
    color: #e6e6e6 !important;
    letter-spacing: 0.3px;
    margin: 4px auto 10px;
    opacity: 0.85;
}

#app {
    margin: 0 auto;
    opacity: 0.9;
}

#logo-footer {
    opacity: 0.95;
}

@media (max-width: 768px) {
    #content .header {
        font-size: 18px !important;
        padding: 12px 14px !important;
    }
    #content .body {
        padding: 18px 14px !important;
        font-size: 14px;
    }
    #menu-footer li a {
        font-size: 13px !important;
        padding: 4px 10px !important;
    }
    .copy-right {
        font-size: 11px !important;
    }
    #content .body .reg-form {
        max-width: 100%;
    }
    #content .body .reg-row {
        flex-wrap: wrap;
    }
    #content .body .reg-label {
        flex: none;
        width: auto;
        padding: 0 0 6px;
        text-align: left;
        font-size: 13px;
    }
    #content .body .reg-controls {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }
    #content .body .reg-tip {
        flex: 1 1 100%;
        margin: 4px 0 0;
        max-width: 100%;
    }
    #content .body .reg-form input[type="text"],
    #content .body .reg-form input[type="password"],
    #content .body .reg-form select {
        max-width: 100%;
    }
    #content .body .contact-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    #content .body a.contact-card {
        max-width: none;
    }
    #content .body .game-tabs > li > a {
        min-width: 0;
        padding: 0 10px;
        font-size: 11px;
    }
}
