/* Maldives Prize - static site styles */
@font-face {
    font-family: "Raleway";
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url(fonts/raleway.woff2) format("woff2");
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: Raleway, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background: #151e2f;
    color: #fff;
    line-height: 1.4;
}
a { color: inherit; }
img { max-width: 100%; }

/* ---------- header ---------- */
.site-header { display: flex; height: 90px; background: #30476f; }
.brand {
    flex: 0 0 395px;
    max-width: 62%;
    display: flex;
    align-items: center;
    padding-left: 34px;
    background: #4fabf9;
    clip-path: polygon(0 0, 78.5% 0, 100% 100%, 0 100%);
}
.brand img { display: block; width: 232px; max-width: 100%; height: auto; }
.main-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
    padding: 0 95px 0 20px;
}
.main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .3px;
    text-transform: uppercase;
    white-space: nowrap;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active { border-bottom-color: #4fabf9; }

/* ---------- page title ---------- */
.page-hero {
    padding: 40px 20px 30px;
    text-align: center;
    background: linear-gradient(180deg, #1d2b48 0%, #151e2f 100%);
}
.page-hero h1 { margin: 0; font-size: 38px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; }
.page-hero .sub { margin: 8px 0 0; font-size: 22px; font-weight: 400; color: #e3e9f4; text-transform: uppercase; }
.page-hero.big { padding: 36px 20px 30px; }
.page-hero.big h1 { font-size: 42px; line-height: 1.1; }
.page-hero.big .sub { margin-top: 2px; }

/* ---------- content column ---------- */
.content { max-width: 980px; min-height: 260px; margin: 0 auto; padding: 14px 20px 56px; }
.content.wide { max-width: 1040px; }
.center { margin: 26px 0 0; text-align: center; }

/* ---------- result card (home + live draw): one blue panel with all prizes, black bar attached below ---------- */
.result-card {
    max-width: 945px;
    margin: 0 auto;
    padding: 50px 20px 34px;
    background: rgba(41, 114, 176, .7);
    box-shadow: 0 0 70px rgba(48, 110, 255, .38);
    text-align: center;
}
.result-card h2, .result-card h3 {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .2px;
    text-transform: uppercase;
}
.rc-prize23 { display: flex; justify-content: space-around; margin-top: 24px; }
.rc-col { flex: 0 0 auto; }
.check {
    display: inline-block;
    margin-top: 28px;
    color: #d6f23a;
    font-size: 16px;
    text-decoration: none;
}
.check:hover { text-decoration: underline; }

.open-bar {
    max-width: 945px;
    margin: 0 auto;
    padding: 16px 10px;
    background: rgba(0, 0, 0, .78);
    text-align: center;
    font-size: 30px;
    font-weight: 800;
}

.full-result { max-width: 945px; margin: 16px auto 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .85); text-align: center; }
.full-result h2 { margin: 6px 0 6px; font-size: 34px; font-weight: 300; letter-spacing: .3px; text-transform: uppercase; }

/* ---------- balls ---------- */
.ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffe88a 0%, #ffc61a 42%, #f09a00 100%);
    color: #a2430a;
    font-weight: 800;
    font-variant-numeric: lining-nums;
    box-shadow: inset 0 -3px 6px rgba(150, 70, 0, .35), 0 2px 4px rgba(0, 0, 0, .3);
}
.ball.lg { width: 70px; height: 70px; margin: 0 4.5px; font-size: 36px; }
.ball.sm { width: 36px; height: 36px; margin: 0 .5px; font-size: 18px; }
.ball.off {
    background: radial-gradient(circle at 35% 30%, #8a9bb8 0%, #5f7090 60%, #4a5a78 100%);
    color: #cdd7e8;
    box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .3);
}
.balls.rolling .ball { filter: brightness(1.08); }

/* ---------- button ---------- */
.btn-list {
    display: inline-flex;
    align-items: stretch;
    height: 50px;
    background: #30476f;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}
.btn-list span { display: flex; align-items: center; padding: 0 24px; }
.btn-list i { position: relative; width: 38px; background: #4fabf9; }
.btn-list i::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -6px 0 0 -4px;
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent #fff;
}
.btn-list:hover { background: #3a5b92; }

/* ---------- live draw (inside the result card) ---------- */
.live-status { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 4px; font-size: 18px; font-weight: 800; text-transform: uppercase; }
.live-status .dot { width: 12px; height: 12px; border-radius: 50%; background: #9aa9c4; }
.state-live .live-status .dot { background: #ff3b3b; box-shadow: 0 0 0 0 rgba(255, 59, 59, .7); animation: pulse 1.2s infinite; }
.state-done .live-status .dot { background: #5ad17a; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(255, 59, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); } }

.live-top { margin-bottom: 36px; }
.countdown { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 18px; }
.countdown[hidden] { display: none; }
.countdown i { font-style: normal; font-size: 34px; font-weight: 800; }
.cd { min-width: 92px; padding: 12px 8px 8px; background: rgba(0, 0, 0, .5); }
.cd b { display: block; font-size: 42px; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.cd small { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: #c4d0e4; }

/* ---------- result list ---------- */
.result-box { padding: 12px; background: rgba(41, 114, 176, .35); border-top: 3px solid #4fabf9; transition: opacity .15s; }
.result-box.loading { opacity: .5; }
.result-table { width: 100%; border-collapse: collapse; }
.result-table th {
    padding: 12px 8px;
    background: #30476f;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .3px;
    text-transform: uppercase;
}
.result-table td { padding: 12px 8px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.result-table td.d { font-weight: 700; }
.result-table td.d small { display: block; font-size: 12px; font-weight: 400; color: #b9c6dd; }
.result-table td.n1 { font-size: 22px; font-weight: 800; color: #ffc61a; letter-spacing: 2px; }
.result-table td.n { font-size: 17px; font-weight: 700; letter-spacing: 1.5px; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 18px 0 4px; padding: 0; list-style: none; }
.pager a, .pager span {
    display: block;
    min-width: 38px;
    padding: 9px 12px;
    background: #30476f;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}
.pager a:hover { background: #4fabf9; }
.pager .active span { background: #4fabf9; }

/* ---------- about + contact cards ---------- */
.card {
    margin: 0 0 22px;
    padding: 30px 34px;
    background: rgba(41, 114, 176, .35);
    border-top: 3px solid #4fabf9;
}
.card h2 { margin: 0 0 14px; font-size: 22px; font-weight: 800; text-transform: uppercase; }
.card p { margin: 0 0 12px; font-size: 16px; line-height: 1.65; color: #e3e9f4; }
.card p:last-child { margin-bottom: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0 0 22px; }
.feature { padding: 24px 22px; background: #30476f; border-top: 3px solid #4fabf9; }
.feature h3 { margin: 0 0 10px; font-size: 16px; font-weight: 800; text-transform: uppercase; color: #ffc61a; }
.feature p { margin: 0; font-size: 15px; line-height: 1.6; color: #dfe6f3; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px; }
.contact-grid .card { margin: 0; }
.info-list { margin: 18px 0 0; padding: 0; list-style: none; }
.info-list li { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.info-list b { display: block; margin-bottom: 2px; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: #ffc61a; }
.info-list a { color: #d6f23a; text-decoration: none; }
.info-list span { color: #e3e9f4; }

.contact-form label { display: block; margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; }
.contact-form input, .contact-form textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(8, 20, 44, .55);
    color: #fff;
    font: 15px/1.4 inherit;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid #4fabf9; border-color: #4fabf9; }
.contact-form button { border: 0; cursor: pointer; font-family: inherit; }
.contact-form small { display: block; margin-top: 12px; color: #b9c6dd; }

/* ---------- footer ---------- */
.site-footer {
    position: relative;
    min-height: 74px;
    padding: 26px 34px;
    background: #30476f;
    font-size: 13px;
    overflow: hidden;
}
.site-footer::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40%;
    background: #4fabf9;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 14% 100%);
}
.footer-text { position: relative; z-index: 1; }
.to-top {
    position: fixed;
    right: 20px;
    bottom: 22px;
    z-index: 5;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #14233f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
.to-top span {
    position: absolute;
    top: 21px;
    left: 19px;
    width: 12px;
    height: 12px;
    border-left: 3px solid #fff;
    border-top: 3px solid #fff;
    transform: rotate(45deg);
}

/* ---------- background art cut from the reference picture (home + live draw) ---------- */
main.art { position: relative; overflow: hidden; background: #151e2f radial-gradient(ellipse 60% 55% at 50% 38%, #1e2f52 0, rgba(21, 30, 47, 0) 100%); min-height: 784px; }
main.art::before, main.art::after { content: ""; position: absolute; bottom: 0; height: 784px; background-repeat: no-repeat; pointer-events: none; }
main.art::before { left: 0; width: 350px; background-image: url(../images/art-left.png); }
main.art::after { right: 0; width: 359px; background-image: url(../images/art-right.png); }
main.art > section { position: relative; z-index: 1; }
main.art .page-hero { background: none; }
@media (max-width: 1180px) { main.art::before, main.art::after { display: none; } }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
    .site-header { flex-direction: column; height: auto; }
    .brand { flex: none; max-width: none; padding: 12px 20px; clip-path: none; justify-content: center; }
    .main-nav { flex-wrap: wrap; justify-content: center; gap: 10px 18px; padding: 14px 12px; }
    .page-hero h1, .page-hero.big h1 { font-size: 28px; }
    .page-hero .sub { font-size: 16px; }
    .page-hero.big { padding: 34px 20px 28px; }
    .result-card { padding: 34px 10px 30px; }
    .rc-prize23 { flex-direction: column; align-items: center; gap: 24px; margin-top: 26px; }
    .ball.lg { width: 44px; height: 44px; font-size: 23px; margin: 0 2px; }
    .ball.sm { width: 34px; height: 34px; font-size: 17px; }
    .check { margin-top: 30px; }
    .open-bar { font-size: 17px; padding: 16px 10px; }
    .full-result h2 { font-size: 22px; }
    .cd { min-width: 68px; }
    .cd b { font-size: 30px; }
    .countdown i { font-size: 24px; }
    .feature-grid, .contact-grid { grid-template-columns: 1fr; }
    .card { padding: 22px 18px; }
    .result-table td.n1 { font-size: 17px; }
    .result-table td.n { font-size: 14px; letter-spacing: .5px; }
}
