/* Default Fonts */
@font-face {
	font-family: 'EverydaySans regular';
	src: url('fonts/everydaysans/EverydaySans-Regular-Web.woff2') format('woff2');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'EverydaySans medium';
	src: url('fonts/everydaysans/EverydaySans-Medium-Web.woff2') format('woff2');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: 'EverydaySans bold';
	src: url('fonts/everydaysans/EverydaySans-Bold-Web.woff2') format('woff2');
	font-weight: normal;
	font-style: normal;
}

/* VARIABLES */
:root {
	/* FONT SIZES */
    --font-body: clamp(10pt, 0.75vw + 9pt, 12pt);
    --font-body-sm: clamp(8pt, 0.5vw + 7pt, 10pt);
    --font-body-tiny: clamp(7pt, 0.35vw + 6pt, 8pt);
    --font-subheading: clamp(13pt, 1vw + 11pt, 16pt);
    --font-heading: clamp(24pt, 7vw + 15pt, 35pt);
    --font-timer: clamp(18pt, 2vw + 12pt, 25pt);
    --font-day: clamp(24pt, 3vw + 15pt, 35pt);

	/* COLOURS */
	--color-body: #404040;
	--color-white: #FFFFFF;
	--color-grey-0: #FAFAFA;
	--color-grey-1: #F5F5F5;
	--color-grey-2: #E3E2E2;
	--color-grey-3: #C8C7C7;
	--color-grey-4: #797979;
	--color-transparent: transparent;

	--color-primary-blue: #0053e2;
	--color-primary-blue-2: #67AAF0;
	--color-primary-blue-3: #B5D6F9;
	--color-primary-blue-4: #001B36;

    --tile-color-white: #FFFFFF;
    --tile-color-red: #7D0100;
    --tile-color-green: #1e3e38;
    --tile-color-blue-1: #B2D5F9;
    --tile-color-blue-2: #498DD0;
    --tile-color-blue-3: #0B3B6B;

	--background-gradient: linear-gradient(180deg, rgba(181, 214, 249, 1) 0%, rgba(103, 170, 240, 1) 50%, rgba(0, 83, 226, 1) 100%);
	--background-box-shadow: rgba(0, 0, 0, 0.2);
	--border-radius-container: 30px;
	--border-radius-btn: 50px;
}

body {
	min-height: 100dvh;
	background: var(--background-gradient);
	padding: 0;
	margin: 0;
}

/* GENERAL */
.container {
	max-width: 1660px;
}

h1, h2 {
	font-family: 'EverydaySans bold','Open Sans',sans-serif;
	font-size: var(--font-heading);
	color: var(--color-white);
	margin: 0;
}

p {
	font-family: 'EverydaySans regular','Open Sans',sans-serif;
	font-size: var(--font-body);
	color: var(--color-white);
	margin: 0;
}

/* SNOW EFFECT */
#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1001;
}

.snowflake {
    position: absolute;
    background-color: var(--color-white);
    border-radius: 50%;
    opacity: 0.8;
}

@keyframes sway {
    0%, 100% {
		transform: translateX(0);
	}
    50% {
		transform: translateX(40px);
	}
}

/* HEADER */
.walmart-header {
    padding: 30px;
    width: 100%;
	max-width: 3440px;
	justify-self: center;
    box-sizing: border-box;
    position: absolute;
	top: 0;
	z-index: 9999;
    height: auto;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    margin: 0 auto;
    position: relative;
}

.walmart-logo {
	width: 37px;
	height: auto;
}

.header-right {
    display: flex;
    align-items: center;
	gap: 30px;
}

.photocentre-link {
    background-color: var(--color-white);
    color: var(--color-primary-blue-4);
    padding: 11px 30px;
    border-radius: var(--border-radius-btn);
    text-decoration: none;
    font-size: var(--font-body);
	font-family: 'EverydaySans medium', 'Open Sans', sans-serif;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
}

.photocentre-link:hover {
	color: var(--color-white);
    background-color: var(--color-primary-blue);
}

.language-toggle {
    display: flex;
    align-items: center;
}

.language-toggle .lang-option {
    color: var(--color-white);
    font-family: 'EverydaySans medium', 'Open Sans', sans-serif;
    font-size: var(--font-body);
    cursor: pointer;
}

.language-toggle .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin: 0 10px;
}

.language-toggle .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.language-toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: white;
    transition: .4s;
    border-radius: 34px;
}

.language-toggle .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--color-primary-blue-4);
    transition: .4s;
    border-radius: 50%;
}

.language-toggle input:checked + .slider {
	background-color: var(--color-primary-blue-4);
}

.language-toggle input:checked + .slider:before {
    background-color: var(--color-white);
    transform: translateX(26px);
}

/* FLOATING CONTAINER */
#section-floating-container {
	position: relative;
    display: flex;
    align-items: end;
    min-height: calc(100dvh - 30px);
    background-color: var(--color-primary-blue-4);
    border-radius: 30px 30px 0 0;

    width: calc(100% - 60px);
    max-width: 1660px;
    margin: 30px auto 0 auto;
    box-sizing: border-box;
    overflow: hidden;
    
    /* To replace with looping video later */
    background-image: url('images/hero-placeholder.svg');
    background-position: top;
    background-size: cover;
    background-repeat: no-repeat;
}

#section-floating-container video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    z-index: 0;
}

#section-floating-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.12);
    z-index: 1;
    pointer-events: none;
}

/* HERO */
.section-hero-container {
	width: 100%;
	display: flex;
	padding: 0 30px 30px 30px;
}

/* TIMER */
#global-timer-container {
	max-width: 470px;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

.flip-timer-box {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 20px;
	background: var(--color-red-gradient);
	padding: 30px 0;
	border-radius: 10px;
	box-shadow: 0 5px 15px var(--color-box-shadow);
}

.flip-timer-box::before {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.3;
	z-index: 1;
}

.flip-timer-box * {
	position: relative;
	z-index: 2;
}

.timer-digits-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.timer-title {
	color: var(--color-white);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

.timer-countdown-text {
	color: var(--color-white);
	margin-bottom: 15px;
}

.timer-text {
	color: var(--color-white);
	margin-top: 15px;
}

.timer-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0;
}

.separator {
    font-family: 'EverydaySans medium', 'Open Sans', sans-serif;
    font-weight: bold;
    font-size: var(--font-timer);
    color: var(--color-white);
    padding: 0 5px;
}

.flip-unit-container {
    display: block;
    position: relative;
    width: 60px;
    height: 80px;
    perspective: 300px;
	-webkit-perspective: 300px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    -webkit-font-smoothing: antialiased;
}

.upper-card, .lower-card {
    display: flex;
    justify-content: center;
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
    background-color: var(--color-white);
    color: var(--color-body);
}

.upper-card {
    align-items: flex-end;
    top: 0;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border-bottom: 1.5px solid rgba(0,0,0,0.1);
}

.lower-card {
    align-items: flex-start;
    bottom: 0;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.upper-card span, .lower-card span, .flip-card-front, .flip-card-back {
    font-family: 'Oswald', sans-serif;
    font-weight: bold;
    font-size: var(--font-timer);
}

.upper-card span {
    transform: translateY(50%);
}

.lower-card span {
    transform: translateY(-50%);
}

.flip-card {
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
	-webkit-transform-style: preserve-3d;
    will-change: transform;
}

.flip-card.flipped {
    visibility: visible;
    animation: flip 0.6s ease-in;
    -webkit-animation: flip 0.6s ease-in;
}

@keyframes flip {
    0% {
		transform: rotateX(0deg);
        -webkit-transform: rotateX(0deg);
	}
    100% {
		transform: rotateX(-180deg);
        -webkit-transform: rotateX(-180deg);
	}
}

@-webkit-keyframes flip {
    0% {
        -webkit-transform: rotateX(0deg);
    }
    100% {
        -webkit-transform: rotateX(-180deg);
    }
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 50%;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    color: var(--color-body);
    background-color: var(--color-white);
    display: flex;
    justify-content: center;
}

.flip-card-front {
    top: 0;
    align-items: flex-end;
    transform-origin: 50% 100%;
    -webkit-transform-origin: 50% 100%;
    transform: rotateX(0deg);
    -webkit-transform: rotateX(0deg);
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border-bottom: 1.5px solid rgba(0,0,0,0.1);
}

.flip-card-back {
    bottom: 0;
    align-items: flex-start;
    transform-origin: 50% 0%;
    -webkit-transform-origin: 50% 0%;
    transform: rotateX(180deg);
    -webkit-transform: rotateX(180deg);
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.flip-card-front span, .flip-card-back span {
    display: block;
	margin: 0 auto;
}

.flip-card-front span {
    transform: translateY(50%);
}

.flip-card-back span {
    transform: translateY(-50%);
}

.flip-unit-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.15);
    z-index: 100;
}

/* PROMOS */
.section-promo-container {
	position: relative;
    background-color: var(--color-primary-blue-4);
    border-radius: 0 0 30px 30px;

    width: calc(100% - 60px);
    max-width: 1660px;
    margin: 0 auto 30px auto;
    margin-inline: auto;
    box-sizing: border-box;
}

/* GRID */
.section-promo-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: repeat(5, minmax(0, 1fr));
    gap: clamp(8px, 1.85vw, 28px);
    aspect-ratio: 1.43 / 1;
    padding: 30px;
}

.section-promo-grid .gift-box {
    position: relative; 
    min-width: 0;
    min-height: 0;
    border-radius: 10px;
    border: none;
    overflow: visible;
    transition: all 0.2s ease-in-out;
}

.section-promo-grid .gift-box svg {
    border-radius: 10px;
}

.section-promo-grid .gift-box:hover svg,
.section-promo-grid .gift-box:hover svg * {
    animation-play-state: paused !important;
}

.section-promo-grid .gift-box:hover {
    cursor: pointer;
}

.section-promo-grid .gift-box .day-label {
    position: relative;
    z-index: 2;
    pointer-events: none;
    font-family: 'EverydaySans bold','Open Sans',sans-serif;
    font-size: var(--font-day);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

/* TOOLTIP */
.section-promo-grid .gift-box::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background-color: var(--color-white);
    color: var(--color-primary-blue-4);
    font-family: 'EverydaySans medium', 'Open Sans', sans-serif;
    font-size: var(--font-body-sm);
    white-space: nowrap;
    padding: 8px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 5px rgba(0,0,0,0.12);
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 100;
}

.section-promo-grid .gift-box:hover::after,
.section-promo-grid .gift-box:focus-visible::after {
    color: var(--color-white);
    background-color: var(--color-primary-blue-4);
}

.gift-box:not(.is-today) {
    cursor: not-allowed;
}

.gift-box:not(.is-today)::before,
.gift-box:not(.is-today)::after {
    display: none;
}

/* DARKER TILE TEXT COLOUR */
.tile-2 .day-label, .tile-3 .day-label, .tile-9 .day-label, .tile-11 .day-label, .tile-15 .day-label, .tile-17 .day-label, .tile-21 .day-label {
    color: var(--tile-color-blue-4);
}

/* ANIMATED SVGS */
/* ROW 1 */
.tile-1 {
    grid-area: 1 / 1;
    background-color: var(--tile-color-red);
    background-image: url('images/gift-1.svg');
}
.tile-2 {
    grid-area: 1 / 2 / 2 / 4;
    background-color: var(--tile-color-white);
    background-image: url('images/gift-2.svg');
}
.tile-3 {
    grid-area: 1 / 4;
    background-color: var(--tile-color-blue-1);
    background-image: url('images/gift-3.svg');
}
.tile-4 {
    grid-area: 1 / 5;
    background-color: var(--tile-color-red);
    background-image: url('images/gift-4.svg');
}
.tile-5  {
    grid-area: 1 / 6 / 2 / 8;
    background-color: var(--tile-color-blue-3);
    background-image: url('images/gift-5.svg');
}
/* ROWS 2–3 */
.tile-6 {
    grid-area: 2 / 1 / 4 / 3;
    background-color: var(--tile-color-blue-3);
    background-image: url('images/gift-6.svg');
}
.tile-7 {
    grid-area: 2 / 3;
    background-color: var(--tile-color-blue-2);
}
.tile-8 {
    grid-area: 2 / 4;
    background-color: var(--tile-color-green);
    background-image: url('images/gift-8.svg');
}
.tile-9 {
    grid-area: 2 / 5 / 4 / 6;
    background-color: var(--tile-color-blue-1);
    background-image: url('images/gift-9.svg');
}
.tile-10 {
    grid-area: 2 / 6;
    background-color: var(--tile-color-white);
    background-image: url('images/gift-10.svg');
}
.tile-11 {
    grid-area: 2 / 7;
    background-color: var(--tile-color-blue-1);
    background-image: url('images/gift-11.svg');
}
.tile-12 {
    grid-area: 3 / 3 / 4 / 5;
    background-color: var(--tile-color-red);
    background-image: url('images/gift-12.svg');
}
.tile-13 {
    grid-area: 3 / 6;
    background-color: var(--tile-color-blue-3);
    background-image: url('images/gift-13.svg');
}
.tile-14 {
    grid-area: 3 / 7;
    background-color: var(--tile-color-green);
    background-image: url('images/gift-14.svg');
}
/* ROWS 4–5 */
.tile-15 {
    grid-area: 4 / 1 / 6 / 2;
    background-color: var(--tile-color-white);
    background-image: url('images/gift-15.svg');
}
.tile-16 {
    grid-area: 4 / 2;
    background-color: var(--tile-color-red);
    background-image: url('images/gift-16.svg');
}
.tile-17 {
    grid-area: 4 / 3;
    background-color: var(--tile-color-blue-1);
    background-image: url('images/gift-17.svg');
}
.tile-18 {
    grid-area: 4 / 4;
    background-color: var(--tile-color-blue-3);
    background-image: url('images/gift-18.svg');
}
.tile-19 {
    grid-area: 4 / 5;
    background-color: var(--tile-color-green);
}
.tile-20 {
    grid-area: 5 / 2;
    background-color: var(--tile-color-blue-2);
}
.tile-21 {
    grid-area: 5 / 3 / 6 / 5;
    background-color: var(--tile-color-white);
    background-image: url('images/gift-21.svg');
}
.tile-22 {
    grid-area: 5 / 5;
    background-color: var(--tile-color-blue-1);
    background-image: url('images/gift-22.svg');
}
.tile-23 {
    grid-area: 4 / 6 / 6 / 8;
    background-color: var(--tile-color-red);
    background-image: url('images/gift-23.svg');
}

/* FOOTER */
.footer {
    text-align: center;
    overflow: hidden;
}

.footer .footer-logo-wrap {
	display: flex;
	flex-direction: column;
    text-align: center;
	margin: 0 auto;
}

.footer .footer-logo-wrap img {
    width: 45px;
    margin-bottom: 15px;
}

.footer .footer-logo-text img {
    width: 200px;
    margin-bottom: 15px;
}

.footer .footer-menu {
	justify-items: center;
    color: var(--color-primary-blue);
    background: var(--color-grey-1);
	padding: 60px 0;
}

.footer .footer-menu .footer-menu-links .footer-link-list-wrap .footer-link-list {
    text-align: left;
}

.footer .footer-menu .footer-menu-links .footer-link-list-wrap .footer-link-list h6 {
    font-size: var(--font-body);
	font-family: 'EverydaySans medium', 'Open Sans', sans-serif;
	color: var(--color-body);
    text-align: left;
    margin-bottom: 25px;
}

.footer .footer-menu .footer-menu-links .footer-link-list-wrap .footer-link-list h6:first-of-type {
    margin-top: 10px;
}

.footer .footer-menu .footer-menu-links .footer-link-list-wrap .footer-link-list ul {
    padding: 0;
    list-style: none;
}

.footer .footer-menu .footer-menu-links .footer-link-list-wrap .footer-link-list ul li {
    margin: 10px 0;
}

.footer .footer-menu .footer-menu-links .footer-link-list-wrap .footer-link-list ul li a {
    color: var(--color-body);
    text-decoration: none;
    transition: color 0.1s ease;
}

.footer .footer-menu .footer-menu-links .footer-link-list-wrap .footer-link-list ul li a:hover, .footer .footer-menu .footer-menu-links .footer-link-list-wrap .footer-link-list ul li a:focus {
    color: var(--color-primary-blue);
}

.footer .footer-menu .company-data {
    display: flex;
    flex-direction: column;
    line-height: 1.5em;
	gap: 10px;
}

.footer .footer-menu .company-data span {
    font-family: 'EverydaySans regular','Open Sans',sans-serif;
    font-size: var(--font-body-sm);
    color: var(--color-body);
}

.footer .footer-menu .footer-links {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.footer .footer-menu .footer-links li {
    padding: 0px 6px;
    border-left: 1px solid #0053e2;
}

.footer .footer-menu .footer-links li:first-child {
    border-left: 0;
}

.footer .footer-menu .footer-links li a {
    font-weight: bold;
    color: var(--color-primary-blue);
}

.footer .footer-menu .footer-links li a:hover, .footer .footer-menu .footer-links li a:focus {
    text-decoration: underline;
}

.footer .footer-bottom, .footer .footer-negative {
	justify-items: center;
    margin-top: -1px;
    background-color: var(--color-primary-blue-4);
    color: var(--color-white);
}

.footer .footer-bottom .footer-copyright {
	font-family: 'EverydaySans regular','Open Sans',sans-serif;
    font-size: var(--font-body-sm);
    display: inline-block;
    margin: 1em 0;
}

.footer .dev-build-version {
    display: none;
}

.footer {
	max-width: 3440px;
	margin: 0 auto;
}

/* RESPONSIVE */
@media (min-width: 768px) and (max-width: 1279px) {
    .section-promo-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: repeat(10, minmax(0, 1fr));
        gap: clamp(8px, 5vw, 24px);
        aspect-ratio: 0.39 / 1;
    }

    /* ROW 1 */
    .tile-1 {
        grid-area: 1 / 1;
    }
    .tile-2 {
        grid-area: 1 / 2 / 2 / 4;
    }
    .tile-3 {
        grid-area: 1 / 4;
    }
    /* ROW 2 */
    .tile-4 {
        grid-area: 2 / 1 / 3 / 3;
    }
    .tile-5  {
        grid-area: 2 / 3 / 3 / 5;
    }
    /* ROWs 3–5 */
    .tile-6 {
        grid-area: 3 / 1 / 5 / 3;
    }
    .tile-7 {
        grid-area: 3 / 3;
    }
    .tile-8 {
        grid-area: 3 / 4;
    }
    .tile-9 {
        grid-area: 4 / 3 / 6 / 5;
    }
    .tile-10 {
        grid-area: 5 / 1;
    }
    .tile-11 {
        grid-area: 5 / 2;
    }
    /* ROWS 6-7 */
    .tile-12 {
        grid-area: 6 / 1 / 7 / 3;
    }
    .tile-13 {
        grid-area: 7 / 1;
    }
    .tile-14 {
        grid-area: 7 / 2;
    }
    .tile-15 {
        grid-area: 6 / 3 / 8 / 4;
    }
    .tile-16 {
        grid-area: 6 / 4 / 8 / 5;
    }
    /* ROW 8 */
    .tile-17 {
        grid-area: 8 / 1;
    }
    .tile-18 {
        grid-area: 8 / 2;
    }
    .tile-19 {
        grid-area: 8 / 3;
    }
    .tile-20 {
        grid-area: 8 / 4;
    }
    /* ROWS 9-10 */
    .tile-21 {
        grid-area: 9 / 1 / 10 / 3;
    }
    .tile-22 {
        grid-area: 10 / 1 / 11 / 3;
    }
    .tile-23 {
        grid-area: 9 / 3 / 11 / 5;
    }
}

@media (max-width: 1280px) {
    #global-timer-container {
        max-width: none;
    }
}

@media (max-width: 767px) {
	/* HEADER */
	.header-content {
		align-items: start;
	}
	.header-right {
		flex-direction: column;
		align-items: end;
		gap: 20px;
	}

	/* FLOATING CONTAINER */
	#section-floating-container {
        min-height: 100dvh;
		width: 100%;
        padding: 30px 0;
		margin: 0;
		border-radius: 0;
	}

	/* TIMER */
    .flip-unit-container {
        width: 10vw;
        height: 7vh;
    }
	.flip-timer-box {
		padding: 20px 0;
	}

    /* HERO */
    .section-hero-container {
        padding: 0 30px;
    }

    /* PROMOS */
    .section-promo-container {
        width: 100%;
        padding: 30px 0;
		margin: 0;
		border-radius: 0;
    }

    .section-promo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(17, minmax(0, 1fr));
        gap: clamp(8px, 5vw, 24px);
        aspect-ratio: 0.113 / 1;
    }

    /* ROW 1 */
    .tile-1 {
        grid-area: 1 / 1;
    }
    .tile-2 {
        grid-area: 1 / 2;
    }
    /* ROW 2 */
    .tile-3 {
        grid-area: 2 / 1;
    }
    .tile-4 {
        grid-area: 2 / 2;
    }
    /* ROW 3 */
    .tile-5  {
        grid-area: 3 / 1 / 4 / 3;
    }
    /* ROWS 4–5 */
    .tile-6 {
        grid-area: 4 / 1 / 6 / 3;
    }
    /* ROW 6 */
    .tile-7 {
        grid-area: 6 / 1;
    }
    .tile-8 {
        grid-area: 6 / 2;
    }
    /* ROWS 7-8 */
    .tile-9 {
        grid-area: 7 / 1 / 9 / 2;
    }
    .tile-10 {
        grid-area: 7 / 2;
    }
    .tile-11 {
        grid-area: 8 / 2;
    }
    /* ROW 9 */
    .tile-12 {
        grid-area: 9 / 1 / 10 / 3;
    }
    /* ROW 10 */
    .tile-13 {
        grid-area: 10 / 1;
    }
    .tile-14 {
        grid-area: 10 / 2;
    }
    /* ROWS 11–12 */
    .tile-15 {
        grid-area: 11 / 1 / 13 / 2;
    }
    .tile-16 {
        grid-area: 11 / 2;
    }
    .tile-17 {
        grid-area: 12 / 2;
    }
    /* ROW 13 */
    .tile-18 {
        grid-area: 13 / 1;
    }
    .tile-19 {
        grid-area: 13 / 2;
    }
    /* ROW 14 */
    .tile-20 {
        grid-area: 14 / 1;
    }
    .tile-21 {
        grid-area: 14 / 2;
    }
    /* ROW 15 */
    .tile-22 {
        grid-area: 15 / 1 / 16 / 3;
    }
    /* ROWS 16-17 */
    .tile-23 {
        grid-area: 16 / 1 / 18 / 3;
    }

	/* FOOTER */
	.footer .footer-menu {
		padding: 30px;
	}
}

@media (max-width: 1080px) and (orientation: landscape) {
    .header-right {
        flex-direction: row;
        align-items: center;
    }
    .flip-unit-container {
        width: 7vw;
        height: 15vh;
    }

    .flip-timer-box {
        padding: 0;
        gap: 10px;
    }
}

/* Quick click bounce animation for 2026 tiles */
.gift-box.tile-pop {
    transform: scale(0.95);
    filter: brightness(1.15);
}

/* MODAL OVERLAY */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
}

.modal-content img.modal-image {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: block;
}

.modal .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--tile-color-green);
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.15s ease-in-out;
}

.modal .close-button:hover {
    color: var(--tile-color-red);
}

.modal .close-button::after {
    content: "×";
}

/* ==========================================================================
   PAST / EXPIRED TILES
   ========================================================================== */

.section-promo-grid .gift-box.is-past {
    filter: grayscale(100%) brightness(0.85) opacity(0.6);
    cursor: not-allowed;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.section-promo-grid .gift-box.is-past:hover {
    filter: grayscale(100%) brightness(0.85) opacity(0.6);
    cursor: not-allowed;
    transform: none;
}

.section-promo-grid .gift-box.is-past svg,
.section-promo-grid .gift-box.is-past svg * {
    animation-play-state: paused !important;
}