/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Jun 18 2026 | 17:24:10 */
/* =======================================================
   GLOBAL RESET
======================================================= */
* { box-sizing: border-box; }

body, html {
  margin: 0;
  padding: 0;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Prevent body scrolling in fullscreen */
body.app-shell-no-scroll,
html.app-shell-no-scroll {
    overflow: hidden !important;
    height: 100% !important;
    position: fixed !important;
    width: 100%;
}

/* =======================================================
   WRAPPER
======================================================= */
#app-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  position: relative;
  z-index: 10;
}

/* =======================================================
   HEADER
======================================================= */
#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

#header h1 { margin: 0; font-size: 24px; }
#header p { margin: 2px 0 0; color: #666; font-size: 13px; }

.status-pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: #e8f3ff;
  border: 1px solid #cfe1ff;
  color: #005fcc;
  font-size: 12px;
}

/* =======================================================
   MAIN GRID
======================================================= */
#main-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* =======================================================
   CONTROL PANEL
======================================================= */
#control-panel {
  background: rgba(255,255,255,0.95);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #e1e4ef;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.panel-title { margin: 0 0 12px; }

.control-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 16px;
}

.control-group { display: flex; flex-direction: column; }

.control-group input {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccd2e2;
  background: white;
  font-size: 13px;
}

.hint { font-size: 11px; color: #777; margin-top: 4px; }

.mini-btn {
  margin-top: 6px;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid #d0d4e4;
  background: #f7f7fb;
  color: #333 !important;
  cursor: pointer;
}

.control-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

/* =======================================================
   BUTTONS
======================================================= */
button { color: #fff !important; font-weight: 600; }

.draw-btn {
  padding: 14px 36px;
  border-radius: 12px;
  background: linear-gradient(135deg,#00324a,#0084c7);
  border: none;
  cursor: pointer;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  transition: transform .2s ease, box-shadow .2s ease;
}

.draw-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
}

.secondary-btn {
  padding: 10px 16px;
  border-radius: 6px;
  background: #f0f3f8;
  color: #00324a !important;
  border: 1px solid #d0d4e4;
  cursor: pointer;
  font-size: 13px;
}

/* Close button inside fullscreen */
.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #fff !important;
  border: 1px solid #bbb !important;
  border-radius: 6px !important;
  z-index: 999999999 !important;
}

/* =======================================================
   DISPLAY PANEL
======================================================= */
#display-panel {
  background: rgba(255,255,255,0.95);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #e1e4ef;
  text-align: center;
}

#logo-wrapper {
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#logo-display {
  max-height: 85px;
  display: none;
}

/* =======================================================
   FULLSCREEN LOGO
======================================================= */

#expanded-logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
}

#expanded-logo {
  display: none;
  max-height: 85px !important;
  max-width: 35vw !important;
  object-fit: contain;
  margin-bottom: 20px;
}

/* =======================================================
   DIGIT BOX – AUTO WIDTH + NO CLIPPING
======================================================= */

#digit-box,
#expanded-digit-box {
    padding: 30px 40px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #ddd;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    white-space: nowrap;
    overflow: visible !important;
    min-width: 260px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}

#digit-text,
#expanded-digit-text {
    font-family: "Courier New", monospace;
    font-weight: 900;
    white-space: nowrap;
    overflow: visible !important;
    display: inline-block;
    max-width: 100%;
    letter-spacing: 0.14em;
    color: #000 !important;
    text-shadow: none !important;
}

#digit-text { font-size: clamp(3rem,6vw,5rem); }
#expanded-digit-text { font-size: clamp(4rem,12vw,8rem); }

/* shrink classes */
.shrink-medium { font-size: 3rem !important; }
.shrink { font-size: 2.2rem !important; }

/* =======================================================
   PRIZE LABEL
======================================================= */
.prize-label {
  font-size: 24px;
  font-weight: bold;
  margin-top: 16px;
  color: #000 !important;
}

/* =======================================================
   SHINE EFFECT
======================================================= */
.shine-active::before {
  content: "";
  position: absolute;
  top: -150%;
  left: -50%;
  width: 60%;
  height: 300%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.85) 50%,
    rgba(255,255,255,0) 100%
  );
  animation: shineSweep 1.1s linear infinite;
}

@keyframes shineSweep {
  0% { transform: translateX(-200%); }
  100% { transform: translateX(200%); }
}

/* =======================================================
   HISTORY
======================================================= */
#history-section {
  padding: 18px;
  background: rgba(255,255,255,0.92);
  border-radius: 14px;
  border: 1px solid #e1e4ef;
  margin-top: 20px;
}

#history-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
#history-container.open { max-height: 350px; }

#history-table {
  width: 100%;
  font-size: 12px;
  border-collapse: collapse;
}

/* =======================================================
   FULLSCREEN OVERLAY
======================================================= */

#expanded-view-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15,15,15,0.75);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  z-index: 999999999 !important;
}

#expanded-view-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

#expanded-background-image {
  position: fixed;
  inset: 0;
  background-size: cover !important;
  background-position: center !important;
  z-index: -1;
}

#expanded-content {
  max-width: 900px;
  margin: auto;
  padding: 28px;
  background: rgba(255,255,255,0.95);
  border-radius: 18px;
  text-align: center;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
}

/* Hide Flatsome header/footer */
body.app-shell-no-scroll .header-wrapper,
body.app-shell-no-scroll .ux-header,
body.app-shell-no-scroll .sticky-header,
body.app-shell-no-scroll header,
body.app-shell-no-scroll footer,
body.app-shell-no-scroll .footer-wrapper {
    display: none !important;
}

/* =======================================================
   EXPANDED HISTORY PANEL
======================================================= */

#expanded-history-panel {
  display: none;
  background: #f7f8fe;
  border: 1px solid #dfe2f0;
  padding: 12px;
  border-radius: 12px;
  margin-top: 20px;
}

.expanded-history-body-wrapper {
  max-height: 260px;
  overflow-y: auto;
}
