* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #0a0a0e;
    background-image:
        repeating-linear-gradient(
            105deg,
            transparent,
            transparent 24px,
            rgba(255, 255, 255, 0.018) 24px,
            rgba(255, 255, 255, 0.018) 25px
        ),
        linear-gradient(180deg, #0d0d12 0%, #0a0a0e 35%, #08080c 100%);
    font-family: 'Segoe UI', system-ui, sans-serif;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: none;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

body.loaded {
    overflow: auto;
}

#pageContent {
    display: none;
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 16px 20px calc(80px + env(safe-area-inset-bottom)) 20px;
    overflow-y: auto;
}

body.loaded #pageContent {
    display: flex;
}

.home-section {
    width: 100%;
    margin-bottom: 20px;
}

.home-section--next {
    margin-bottom: 36px;
}

.home-section:last-of-type {
    margin-bottom: 0;
}

.home-section-title-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.home-section-title {
    display: inline-flex;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    letter-spacing: 0.01em;
}

.home-section-title-meta {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

.home-section-title-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 8px;
    width: 2em;
    height: 2em;
    color: inherit;
    opacity: 0.75;
}

.home-section-title-icon svg {
    width: 100%;
    height: 100%;
}

.next-draw {
    position: relative;
    overflow: hidden;
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.next-draw-bg {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 150px;
    height: 150px;
    color: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.next-draw-bg svg {
    width: 100%;
    height: 100%;
}

.next-draw-intro {
    margin: 0 0 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.next-draw-blocks {
    display: flex;
    flex-direction: row;
    direction: rtl;
    justify-content: center;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 18px;
}

.next-draw-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.next-draw-num {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.98);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.next-draw-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

.next-draw-footer {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
}

.home-section--results .home-section-title-row {
    margin-bottom: 14px;
}

.results-draw-title {
    margin: 0 0 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    line-height: 1.4;
}

.results-actions {
    margin-top: 14px;
    direction: ltr;
    text-align: left;
}

.btn-all-results {
    position: relative;
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    overflow: hidden;
    transition: opacity 0.2s, filter 0.2s, transform 0.2s;
}

.btn-all-results::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.12) 45%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0.12) 55%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.btn-all-results:hover::before,
.btn-all-results:focus::before {
    transform: translateX(100%);
}

.btn-all-results:hover,
.btn-all-results:focus {
    opacity: 0.95;
    transform: translateY(-1px);
}

.btn-all-results:active {
    transform: translateY(0);
}


.results-draw-date {
    margin: 12px 0 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}

.results-cards {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

/* זכויות יוצרים */
.site-footer {
    margin-top: 24px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.site-footer-copyright {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
}
