/* ===== Root Colors ===== */
:root {
--primary-color: #5641f3;
--primary-light: #ffeff4;
--primary-dark: #3927c1;
--secondary-color: #2196f3;
--secondary-dark: #1976d2;
--background: #fefefe;
--text-color: #111;
--text-secondary: #555;
--disclaimer-color: #888;
--card-shadow: rgba(0,0,0,0.1);
--primary-red:#c2185b;
--primary-red-hover:#701b3d;
--ribbon-color: #e91e63;
--ribbon-tail-color: #c2185b;
--box-shadow:1px 1px 3px 5px rgba(199, 197, 197, 0.3);
--subtle-shadow:0.3px 0.5px 1px 0.5px rgba(199, 197, 197, 0.3);
--box-shadow-2:1px 1px 3px 5px rgba(107, 116, 111, 0.3);
--deep-shadow:6px 6px 4px 4px rgba(0,0,0,0.3);
--medium-shadow:2px 1px 3px 0.5px rgba(0,0,0,0.3);

--tw-bg: #ffffff;
--tw-foreground: #1b1638;
--tw-accent: #5641f3;        /* primary accent */
--tw-accent-2: #7b6bff;
--tw-muted: #8b86a6;
--glass: rgba(255,255,255,0.56);
--glass-2: rgba(255,255,255,0.08);
--shadow-1: 0 6px 20px rgba(19,16,50,0.10);
--shadow-2: 0 8px 30px rgba(19,16,50,0.12);
--radius: 14px;

--success: #56e086;
--error: #e95b94;
}

/* ===== Global ===== */
* { box-sizing: border-box; margin:0; padding:0; }
body { font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--background); color: var(--text-color); }
a { text-decoration:none; color: inherit; 

}
.success{
    color:var(--success) !important;
}
.error{
    color:var(--error) !important;
}
/** text-breaker **/
.is-winner{
position: absolute;
top:0;
left:50%;
transform: translateX(-50%);
}
#Revealing{
word-break: break-all !important;
white-space: wrap !important; /* don't wrap text */
flex: 0 0 auto !important; 
}
.winner-name, .is-winner{
word-break: keep-all;
white-space: nowrap; /* don't wrap text */
flex: 0 0 auto;
}

.mt-1{
margin-top: 1rem !important;
}
.mb-1{
margin-bottom: 1rem !important;
}
body, html{
overflow-x: scroll; 
overflow-y: auto;  
-webkit-overflow-scrolling: touch;
scrollbar-width: none; 
-ms-overflow-style: none; 
}
body::-webkit-scrollbar,
html::-webkit-scrollbar{
display: none;
}
/* ===== Header with Banner ===== */

#navToggler,
#navCloser{
position:absolute;
left:2rem;
top:0;
opacity: 0;
pointer-events: none;
cursor: pointer;
z-index:0;
transition: opacity 0.2s ease-out;
}

.hidden{
display: none;
}
.promotion-details-desc{
line-height: 30px;
}
#promotion-page{
width: 75%;
margin: -2rem auto 2rem;
display: flex;
flex-direction: column;
justify-content: center !important;
align-items: center !important;
}
.promotion-card-image{
height: auto;
}

.promotion-card-video{
height: 385px;
}
.promotion-card img{ width:100%; object-fit: contain; height: auto; display:block; border-bottom:1px solid #eee; }



.promotion-card video{
height: 100%;
max-width: 100%;
background: rgba(0, 0, 0, 0.99);
}


#promotion-page .promotion-card-video, 
#promotion-page .promotion-card-image, 
#promotion-page .promotion-details{
display: flex;
flex-direction: column;
width: 100%;
margin: 0 auto;
padding: 2rem;
}

#promotion-page .promotion-card-image img{
max-width: 850px;
}
#promotion-page .promotion-card-image img,
#promotion-page .promotion-card-video video{
object-fit: contain;
width: 100%;
margin-bottom: 45px;
border-radius: 1rem;
}

#promotion-page .promotion-card-image,
#promotion-page .promotion-card-video{
justify-content: center !important;
align-items: center !important;
}



.promotion-bottom-details{
border-top:dotted #e6e6e6  .1rem;
width:auto;
}

.promotion-details{
position: sticky;
margin-top: auto; 
margin-bottom: 2rem !important;
bottom: 0 ;
}

#navToggler svg, #navCloser svg{
pointer-events: none;
width:45px;
height: 45px;
}
#drawingHeader{
height: 80px !important;
}
header {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background: var(--primary-color);
color: white;
padding: 0;
height: auto;
}
#back-btn{
display: flex;
justify-content: center;
align-items: center;
text-align: center;
margin-bottom: 1rem;
border: #f5f5f5 .1rem solid;
background: #f6f6f6;
color:#666;
padding: 5px 10px;
cursor: pointer;
user-select: none;
resize: none;
}
#back-btn span{
pointer-events: none;
}
/* Nav stays top-right */
header nav {
display: flex;
justify-content: flex-end;
align-items: center;
padding:2rem;
background: var(--primary-color);
z-index: 20;
}
header nav ul {
display: flex;
gap: 20px;
list-style: none;
}
header nav a {
color: white;
font-weight: 500;
transition: opacity 0.2s, transform 0.2s;
padding: 6px 10px;
border-radius: 8px;
}
header nav a:hover,
#back-btn:hover { 
opacity:0.9; 
transform: translateY(-2px);
}

/* ===== Banner Base ===== */
.banner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: inherit;
    padding: 40px 30px;
    border-radius: 0 0 16px 16px;
    gap: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

/* Moving gradient overlay */
.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, rgba(255,255,255,0.15),  rgba(255,255,255,0.05), var(--primary-red));
    transform: rotate(0deg);
    animation: gradientMove 20s linear infinite;
    pointer-events: none;
}

@keyframes gradientMove {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Banner Figure Image */
.banner-figure {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.banner img {
    width: 85%;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: transform 3s ease-in-out;
    animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
}

/* Banner Text */
.banner-text {
    max-width: 50%;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    animation: fadeSlide 1.2s ease forwards;
}

.banner-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.banner-text p {
    font-size: 1.2rem;
    color: #f0e7f0;
    line-height: 1.5;
    margin: 0;
}

.banner-text button , .banner-text a{
    padding: 14px 28px;
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 18px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease, transform 0.4s ease;
    max-width: 45%;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.banner-text button:hover,
.banner-text a:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Banner text fade in & slide */
@keyframes fadeSlide {
    0% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
}


.promotion-card {
position:relative;
border-radius:16px;
overflow:hidden;
box-shadow:0 6px 20px rgba(0,0,0,0.08);
transition: transform 0.3s ease, box-shadow 0.3s ease;
background:white;
}

.promotions h1, .promotions p{
padding-left: 20px;
padding-right: 20px;
}


.promotion-card:hover{ transform: translateY(-5px); box-shadow:0 10px 25px rgba(0,0,0,0.12);}

.promotion-details{ padding:20px !important; }
.promotion-details h2{ font-size:1.4rem; margin-bottom:10px; font-weight:600; }
.promotion-details p{
margin:5px 0 1rem; 

color: var(--text-secondary); 
font-size:1rem; 
}
.font-medium{
font-size: 24px !important;
}
.promotion-details a{
margin-top: 25px;
}
.promotion-details button{
margin-top:10px; 
}
#joinBtn,
#joinPromoBtn{
position: fixed !important;
margin-top: 0;
bottom: 145px;
left:50%;
transform: translateX(-50%);
}
#joinBtn,
#joinPromoBtn{
box-shadow: var(--deep-shadow) !important;
}
.promotion-details button,
#joinBtn,
#joinPromoBtn,
.promotion-details a{
padding:12px 20px; 
background:var(--primary-color); color:white;
font-weight:600; border:none; border-radius:12px; cursor:pointer;
transition:0.3s ease, transform 0.2s, box-shadow 0.3s;
box-shadow:0 4px 10px rgba(0,0,0,0.08);
}
#joinBtn a:hover,
#joinPromoBtn:hover{
box-shadow:0 6px 16px rgba(0,0,0,0.12);
background:var(--primary-dark);
margin-top:-1rem;
}
.promotion-details button:hover,
.promotion-details a:hover{
background:var(--primary-dark);
transform: translateY(-2px) translateX(0)  !important;
box-shadow:0 6px 16px rgba(0,0,0,0.12);
}

/* Ribbon */
/* Ribbon */
#ribbon-featured{
top:35%;
width: 100%;
}

.ribbon {
position: absolute;
top: 15px;
left: -5px;
padding: 5px 20px;
color: white;
font-weight: bold;
text-align: center;
transform: rotate(-15deg);
border-radius: 4px;
z-index: 10;
background: linear-gradient(135deg, rgba(242, 136, 136, 0.25) 0%, rgba(201, 10, 10, 0.754) 80%);
box-shadow: 0 3px 6px rgba(0,0,0,0.25), inset 0 2px 5px rgba(255,255,255,0.3);
font-size: 0.9rem;
line-height: 1.2;
letter-spacing: 0.5px;
text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Ribbon "curved" effect using pseudo-element */
.ribbon::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 4px;
background: linear-gradient(135deg, rgba(242, 136, 136, 0.25) 0%, rgba(201, 10, 10, 0.754) 80%);
transform: rotate(10deg);
pointer-events: none;
}

/* Ribbon tail with shadow/fold */
.ribbon .ribbon-tail {
width: 0;
height: 0;
border-top: 8px solid var(--ribbon-tail-color);
border-left: 8px solid transparent;
border-right: 8px solid transparent;
margin: 0 auto;
box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Promotion Page */
.promotions{
max-width:900px; margin:20px auto;
display:none;
background:white; 
border-radius:16px; 
box-shadow:0 6px 20px rgba(0,0,0,0.08);
}

.promotions img{ width:100%; border-radius:16px; margin-bottom:15px; }
.promotions h1{ font-size:2rem; margin:0 0 10px; }
.promotions p{ margin:5px 0; color: var(--text-secondary); font-size:1rem; }
.promotions .disclaimer{ 
margin-top:30px;
padding-bottom: 2rem;
font-size:0.9rem; color: 
var(--disclaimer-color); 
}
#promotion-page .disclaimer{
display: flex;
flex-direction: column;
height: 150px;
justify-content: center;
text-align: center;
align-items: center;
margin-top:30px;
padding-bottom: 2rem;
font-size:0.9rem; color: 
var(--disclaimer-color); 
}
/* Spinner */
/* Spinner Container */
/* time-widget.css */
/* Premium iOS-like elapsing time styles */
/* Container adapts to parent size */
.number-wheel{
display:grid;
}
.wheel-days{
font-size:.6rem !important
}
.countdown {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-size: clamp(1.4rem, 5vw, 2.2rem);
font-weight: 600;
color: #fff;
background: rgba(255, 255, 255, 0.08);
padding: 10px 18px;
border-radius: 12px;
display: inline-block;
letter-spacing: 2px;
box-shadow: 0 4px 14px rgba(0,0,0,0.15);
backdrop-filter: blur(8px);
}
.count-down-parts{
display: flex;
justify-content: center;
align-items: center;

}
.wheel-days{
margin-left: .5rem;
}
.wheel-days-secs{
margin-left: .7rem;
}
.cd-part {
min-width: 2ch;
margin-left: .7rem;
display: inline-block;
text-align: center;
color: #fff;
font-variant-numeric: tabular-nums;
transition: color 0.3s;
}

.countdown.ending .cd-part {
color: #ff5252; /* turns red when near end */
}
.time-widget {
display: inline-block;
width: 100%;
max-width: 100% !important;
box-sizing: border-box;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.time-widget .tw-inner{
background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
padding: 14px;
border-radius: calc(var(--radius));
display: flex;
flex-direction: column;
gap: 12px;
align-items: stretch;
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
}

/* Label row (label + year aligned left/right) */
.tw-label {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 12px;
padding: 2px 6px 0 6px;
}
.tw-label-text {
font-size: 0.94rem;
color: var(--tw-muted);
font-weight: 600;
letter-spacing: 0.2px;
}
.tw-year {
font-size: 0.92rem;
color: var(--tw-muted);
background: rgba(255,255,255,0.04);
padding: 6px 10px;
border-radius: 10px;
font-weight: 700;
color: white;
border: 1px solid rgba(255,255,255,0.04);
background-image: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
box-shadow: var(--shadow-1);
}

/* Clock row */
.tw-clock {
display: flex;
gap: clamp(10px, 3vw, 20px);
justify-content: center;
align-items: center;
width: 100%;
}

/* Unit (hours/minutes/seconds) are groups of 2 digits */
#time-widget{
margin-top: 0;
}
#time-widget p{
font-size: 10px;

}
.tw-unit {
display: inline-flex;
gap: 10px;
align-items: center;
background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
padding: 10px 14px;
border-radius: 12px;
box-shadow: var(--shadow-1);
transition: transform 300ms cubic-bezier(.22,.9,.36,1), box-shadow 300ms;
}

/* Individual digit "glass" */
.tw-digit {
min-width: clamp(34px, 7vw, 68px);   /* flexible square-like */
height: min(10vh, 72px);
background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
color: var(--tw-foreground);
font-weight: 700;
font-size: clamp(18px, 4vw, 34px);
display:flex;
align-items:center;
justify-content:center;
border-radius: 10px;
box-shadow: 0 8px 18px rgba(19,16,50,0.08), inset 0 -6px 12px rgba(0,0,0,0.02);
letter-spacing: 0.6px;
transition: transform 220ms ease, box-shadow 220ms ease;
}

/* Semicolon separators style */
.tw-sep {
font-size: clamp(20px, 3.6vw, 28px);
color: rgba(255,255,255,0.95);
margin: 0 4px;
display:flex;
align-items:center;
justify-content:center;
}

/* Visual accent: larger center block glow in countdown last minute or reveal */
.tw-unit.highlight {
transform: translateY(-6px) scale(1.02);
box-shadow: var(--shadow-2);
}

/* Subtext area under the clock - optional */
.tw-subtext {
font-size: 0.92rem;
color: var(--tw-muted);
text-align: center;
}

/* small screens: stack the units for narrow containers */
#drawing{
width: 100%;
background: black;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin-top:0 !important;
top:0 !important;
}
.spinner-main-container {
position: relative;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin-top: 0;
margin-bottom: 3rem;
}
#spinner-container {
display: none; /* toggled via JS */
text-align: center;
z-index: 0; /* stays above */
}

/* Circular Wheel Container */
.spinner-wheel-inner{
position:absolute;  
top:-10px;
left: 12.5%;
width: 75%;
height: 500px;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
}

.spinner-wheel {
width: 415px;
height: 415px;
border-radius: 50%;
background: #fff;
box-shadow: 0 4px 14px rgba(0,0,0,0.1);
display: grid;
grid-template-areas:
". top ."
"left center right"
". bottom .";
grid-template-rows: 1fr 1fr 1fr;
grid-template-columns: 1fr 1fr 1fr;
align-items: center;
justify-items: center;
margin-bottom: 20px;
transition: transform 3s cubic-bezier(0.33,1,0.68,1);
}

/* Spinner Blocks */
.spinner-block {
width: 85px;
height: 100%;
border-radius: .5rem;
color: white;
font-weight: bold;
font-size: 0.9rem;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 10px;
box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Assign blocks to grid positions */
.spinner-block:nth-child(1) { 
grid-area: top; background: #e91e63; 
position: relative;
top: 0;
}
.spinner-block:nth-child(2) {
grid-area: left; background: var(--primary-color);
}


/* Center block rotation & revealed state */
.spinner-block:nth-child(3) {
min-width: 205px;
height:75%;
position: relative;
grid-area: center;
background: #4caf50 !important;
position: relative !important;
top: 0 !important;
transform: rotate(-180deg);
transition: transform 1s ease, background 0.5s ease;
}
.spinner-block:nth-child(3) span{
transform: rotate(-180deg);
}
.spinner-block:nth-child(3) span.revealed{
transform: rotate(-90deg) !important; 
}
.spinner-block:nth-child(3).revealed {
transform: rotate(-90deg);
background: #43a047 !important; /* slightly brighter green */
box-shadow: 0 4px 12px rgba(0,0,0,0.2);
width: 100%;
}

.spinner-block:nth-child(4) {
grid-area: right; background: #ff9800; 
}
.spinner-block:nth-child(5) span{
transform: rotate(45deg);
}

.spinner-block:nth-child(5) { 
grid-area: bottom; background: #9c27b0 ; 
}

/* Spin Button */
#join-btn{
margin-top: .7rem;
}
button{
user-select: none;
resize: none;
}
#spin-btn{
margin-top: 0 !important;
}
#spin-btn , #join-btn{
padding: 14px 28px;
background: var(--primary-color);
color: white;
border: none;
border-radius: 12px;
font-weight: 600;
cursor: pointer;
transition: background 0.3s ease, transform 0.2s, box-shadow 0.3s;
user-select: none;
resize: none;
}

#spin-btn:hover ,
#join-btn:hover{
background: var(--secondary-dark);
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Base Modal */
.modal {
     top: 0;
display: none;
position: fixed;
z-index: 1000;
left: 0;

width: 100%; height: 100%;
background: rgba(0, 0, 0, 0.4);
backdrop-filter: blur(5px);
justify-content: center;
align-items: center;
transition: opacity 0.3s ease;
will-change: transform, opacity;
}

/* Modal content */
.modal-content {
background: #fff;
border-radius: 16px;
padding: 2rem;
width: 90%;
max-width: 575px;
box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
transform: translateY(-20px);
transition: transform 0.3s ease;
}

/* Tiny modal */
.modal.tiny .modal-content {
max-width: 250px;
padding: 1rem;
text-align: center;
}

/* Show modal */
.modal.visible {
display: flex;
opacity: 1;
transform: translateY(0);
}

/* Modal title */
.modal-title {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 1rem;
color: #111;
text-align: center;
}

/* Form inputs */
.modal-content input[type="text"],
.modal-content input[type="email"] {
width: 100%;
padding: 0.8rem;
margin-bottom: 1rem;
border-radius: 12px;
border: 1px solid #ccc;
font-size: 1rem;
transition: border 0.2s ease;
}

.modal-content input:focus {
border-color: #007aff;
outline: none;
}
/* 🔹 Promotion Summary Section */
.promo-summary {
    font-size: 0.95rem;
background: rgba(240, 240, 245, 0.6);
border-radius: 12px;
padding: 1rem;
margin-bottom: 1.5rem;
text-align: center;
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
position: relative;
max-height: 115px;
}

.common-modal-note{
position: absolute;
left:50%;
transform: translateX(-50%);
z-index:100;
background: rgba(226, 226, 229, 0.99);
width:100%;
padding: 1rem;
box-shadow: var(--deep-shadow);
border-radius: .8rem;
visibility: hidden;
opacity: 0;
margin-top: -1rem;
transition: opacity 0.3s ease, transform 0.3s ease;
font-size: 0.95rem;
}
#noteInfo{
    font-size: 0.95rem !important;
}
.common-modal-note.show{
    visibility:visible;
opacity: 1;
margin-top: 0;
}
#noteDisclaimer{
   top:50%;
}

.promo-summary svg{
color:#725fff;
text-shadow: 2px 2px #aebcf0;
z-index: 0;
justify-self: center;
margin: 0 0 0;
height: 35px;
width: 35px;

}

.promo-summary a{
    cursor: pointer;
      position: absolute;
    top:0;
    right:1rem;
    z-index:9999 !important;
    transform: rotate(360deg);
}

.promo-summary svg{
    pointer-events: none;
}
svg path,
svg line,
svg polygon,
svg polyline,
svg rect,
svg circle
{
pointer-events: none;
}

.modal-disclaimer a{
    color:#725fff;
}

.promo-summary p {
margin: 0.25rem 0;
color: #444;
}

.promo-summary .promo-note {
font-size: 0.8rem;
color: #777;
margin-top: 0.5rem;
}

/* 🔹 Agreement Section */
.agreement-section {
margin-top: 1rem;
margin-bottom: 0.5rem;
background: rgba(250, 250, 255, 0.7);
border-radius: 10px;
padding: 0.8rem;
}

.checkbox-label {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.9rem;
color: #333;
}

.checkbox-label input[type="checkbox"] {
width: 16px;
height: 16px;
accent-color: #007aff;
cursor: pointer;
}

.disclaimer {
font-size: 0.78rem;
color: #666;
margin-top: 0.5rem;
line-height: 1.4;
}/* 🔹 Promotion Summary Section */
.promo-summary {
background: rgba(240, 240, 245, 0.6);
border-radius: 12px;
padding: 1rem;
margin-bottom: 1.5rem;
text-align: center;
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
font-size: 0.95rem;
position: relative;
}

.promo-summary p {
margin: 0.25rem 0;
color: #444;
}

.promo-summary .promo-note {
font-size: 0.8rem;
color: #777;
margin-top: 0.5rem;
}

/* 🔹 Agreement Section */
.agreement-section {
margin-top: 1rem;
margin-bottom: 0.5rem;
background: rgba(250, 250, 255, 0.7);
border-radius: 10px;
padding: 0.8rem;
}

.checkbox-label {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.9rem;
color: #333;
}

.checkbox-label input[type="checkbox"] {
width: 16px;
height: 16px;
accent-color: #007aff;
cursor: pointer;
}

.modal-disclaimer {
font-size: 0.78rem;
color: #666;
margin-top: 0.5rem;
line-height: 1.4;
}

/* Actions */
.modal-actions {
display: flex;
justify-content: flex-end;
gap: 0.5rem;
margin-top: 1rem;
}

/* Buttons */
.btn {
padding: 0.6rem 1.2rem;
border-radius: 12px;
font-size: 1rem;
cursor: pointer;
border: none;
transition: background 0.2s ease, color 0.2s ease;
}

.submit-btn {
background: #007aff;
color: #fff;
}

.submit-btn:hover {
background: #005bb5;
}

.cancel-btn {
background: #f0f0f0;
color: #333;
}

.cancel-btn:hover {
background: #e0e0e0;
}



/* Footer */
/* ===== Footer ===== */
.modal-footnote {
font-size: 0.78rem;
text-align: center;
line-height: 1.5;
margin-top: 1.2rem;
padding: 0 0.8rem;
border-top: 1px solid rgba(0,0,0,0.05);
padding-top: 0.8rem;
font-weight: 400;
letter-spacing: 0.2px;
user-select: none;
transition: color 0.3s ease;
}

.modal-footnote:hover {
color: rgb(246, 246, 255);
}
footer {
background: var(--primary-color);
color: white;
padding: 20px;
font-weight: 500;
border-radius: 12px 12px 0 0;
height: 100%;
}

/* Top part: logo + nav */
footer .footer-top {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
}

footer .footer-top .logo {
font-weight: bold;
font-size: 1.4rem;
}

footer .footer-top nav ul {
display: flex;
gap: 20px;
list-style: none;
margin: 0;
padding: 0;
}

footer .footer-top nav a {
color: white;
font-weight: 500;
transition: opacity 0.2s;
}

footer .footer-top nav a:hover {
opacity: 0.9;
}

/* Bottom part: copyright */
footer .footer-bottom {
margin-top: 15px;
text-align: center;
font-size: 0.95rem;
color: var(--primary-light);
}

/* Landing Page Grid */
#landing {
width:75%;
display: grid;
gap: 20px;
margin: 25px auto 0;
padding: 20px;
}
/*
#landing .promotion-card:nth-child(1){
border-top-left-radius: 0;
border-top-right-radius: 0;
}*/
/* Responsive Banner */
@supports (padding: max(0px)) {
#participantModal, #reminderModal,
#joinBtn,
#joinPromoBtn{
/* make sure it floats above iPhone gesture area */
padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}
}
@media(max-width:1650px){
.spinner-main-container {
width: 50%;
}
}
@media(max-width:1450px){

#landing {
width:85%;
}

}

@media(max-width:1250px){
.spinner-main-container {
width: 60%;
}
}
@media(max-width:1080px){
#landing {
width:100%;
}

}
@media (max-width: 1024px) {
    .banner {
flex-direction: column;
text-align: center;

padding: 0;
}
.banner-text {
padding: 30px 20px;
}
.banner img, .banner-text {
width: 100%;
max-width: 100%;
margin: 0 0 15px 0;
}
.banner-text h1 { font-size: 2rem; }
.banner-text p { font-size: 1rem; }

}


/* Responsive */
@media (max-width: 768px) {
    .modal {
     top: 1.5rem;
    }
    .banner a, .banner button{
         max-width: 88% ;
         margin: 0 auto 0;
         width: 100%;
    }
#joinBtn,
#joinPromoBtn{
    max-width: 78% !important;
    width: 78% !important;
    text-align: center !important;
    padding: 1rem !important;
    bottom: 50px;
}

#drawingHeader{
height: 65px !important;
}
#promotion-page{
width: 100%;
margin:0 auto 2rem;
}
#time-widget{
margin-top: 35px;
}
.spinner-main-container {
width: 100%;
}
.promotions h1{
text-align: center;
}
#join-btn{
position:sticky;
width: 65%;
left:17.5%;
bottom: 2rem;
margin-top: 2rem;
}
header nav {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center; 

}
header nav ul{
flex-direction: column;
justify-content: center;
align-items: center;
position: absolute;
z-index:300 ;
width: 100%;
background: var(--primary-color);
top:0;
padding-top: 1rem;
padding-bottom: 1rem;
display: none;
}
header nav ul.visible{
display: flex;
}
#navToggler, #navCloser.visible{
opacity: 1;
left:1rem;
pointer-events: auto;
z-index: 500;
top:-5px;
}



footer{
height:300px;
max-height: 100%;
}
footer .footer-top {
flex-direction: column;
align-items: center;
gap: 10px;
}
footer .footer-top nav ul {
flex-wrap: wrap;
justify-content: center;
gap: 10px;
}
}
@media (min-width:600px) and (max-width:1023px){ 
#landing{
grid-template-columns: repeat(2,1fr); 

}

}
@media (max-width:599px){ #landing{ grid-template-columns:1fr; } }
@media (max-width: 550px) {
.tw-clock {
gap: 8px;
}
.tw-unit {
padding: 8px;
gap: 6px;
}
.tw-digit {
min-width: 48px;
height: 56px;
font-size: 20px;
}
.promotion-card{
display: flex;
flex-direction: column;
width: 100%;
justify-content: center;
align-items: center;
}

.spinner-block {
font-size: 0.8rem;
width:65px;
}
}

@media(max-width:485px){
.spinner-block:nth-child(3) {
min-width: 175px;
height:81%;
font-size: 10px;
}
.spinner-wheel {
width: 325px;
height: 325px;

}

.spinner-block:nth-child(3).font{
    font-size: 13px;
}
}

@media(max-width:435px){
.promo-summary {
    font-size: 0.8rem;

}

#noteDisclaimer{
   top:20%;
}
}

@media(max-width:415px){
#promotion-page .promotion-card-image{
padding: 1rem;
}

.spinner-wheel {
width: 300px;
height: 300px;

}
}

@media(max-width:375px){
.spinner-block:nth-child(3) {
min-width: 128px;
height:70%;
}
.spinner-wheel {
width: 288px;
height: 288px;

}
}

@media(max-width:335px){
#promotion-page .promotion-details,
.promotion-details-desc, .promotion-bottom-details{
padding:3px !important;
}

}


@media (max-width: 275px) {
.spinner-block:nth-child(3) {
min-width: 110px;
height:80%;
}

.spinner-wheel-inner{
position:absolute;  
top:10px;
}
.spinner-wheel {
width: 210px;
height: 210px;
}
.spinner-block {
font-size: 8px;
width:45px;
height:60px;
}
}