/* Keep the display inside one viewport; do not affect the kiosk layout. */
.antrean-display,
.antrean-display *,
.antrean-display *::before,
.antrean-display *::after {
    box-sizing: border-box;
}

.antrean-display {
    --display-gap: clamp(12px, 2vh, 24px);
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: grid;
    grid-template-rows: clamp(64px, 10vh, 108px) minmax(0, 1fr) clamp(40px, 5vh, 56px);
    overflow: hidden;
}

.antrean-display .Rectangle-8 {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 14px 24px;
    justify-content: center;
    align-items: center;
    border-radius: 0 0 24px 24px;
}

.antrean-display .Rectangle-8 img {
    width: auto;
    height: 100%;
    max-width: 260px;
}

.antrean-display .section-primary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(190px, 17vw, 280px);
    gap: var(--display-gap);
    min-height: 0;
    padding: var(--display-gap);
}

.antrean-display .section-primary-2 {
    display: grid;
    grid-template-rows: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: var(--display-gap);
    width: 100%;
    min-width: 0;
    min-height: 0;
}

.antrean-display .section-content {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: var(--display-gap);
    min-height: 0;
}

.antrean-display .section-content-2 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--display-gap);
    padding: 0;
    min-height: 0;
}

.antrean-display .Rectangle-24,
.antrean-display .Rectangle-12 {
    display: grid;
    grid-template-rows: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
}

.antrean-display .Rectangle-30,
.antrean-display .Rectangle-34 {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.antrean-display .antrean-display-promo {
    width: 100%;
    padding: clamp(14px, 2vw, 32px);
}

.antrean-display .antrean-display-promo img {
    flex-shrink: 0;
    width: 60%;
    max-height: 20%;
    object-fit: contain;
    margin-bottom: clamp(12px, 2vh, 24px);
}

.antrean-display .antrean-display-promo h2 {
    font-size: clamp(20px, 2vw, 36px);
    line-height: 1.3;
    margin: 0 0 12px;
    overflow-wrap: break-word;
}

.antrean-display .antrean-display-promo p {
    font-size: clamp(13px, 1.1vw, 20px);
    line-height: 1.5;
    margin: 0 0 16px;
}

.antrean-display .Rectangle-34 h2 {
    font-size: clamp(20px, 1.8vw, 30px);
}

.antrean-display .antrean-badge {
    max-width: 100%;
    font-size: clamp(9px, .65vw, 12px);
    letter-spacing: 1px;
    white-space: normal;
}

.antrean-display .box-1,
.antrean-display .box-2,
.antrean-display .box-3 {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    align-items: center;
    justify-content: center;
}

.antrean-display .box-1 > p {
    font-size: clamp(18px, 2.6vh, 32px);
    line-height: 1.2;
    margin: 0;
    padding: 6px 12px;
    overflow-wrap: anywhere;
}

.antrean-display .box-2 > p {
    font-size: clamp(40px, 10vh, 140px);
    line-height: 1;
    margin: 0;
}

.antrean-display .box-3-child {
    margin: 0;
    align-items: center;
    justify-content: center;
}

.antrean-display .box-3-child > p {
    font-size: clamp(20px, 4vh, 48px);
    line-height: 1;
    margin: 0;
}

.antrean-display .section-content-2 .box-1 > p {
    font-size: clamp(13px, 2vh, 24px);
    padding: 6px 10px;
}

.antrean-display .section-content-2 .box-2 > p {
    font-size: clamp(28px, 6.5vh, 88px);
}

.antrean-display .section-content-2 .box-3-child > p {
    font-size: clamp(14px, 2.5vh, 32px);
}

.antrean-display .Rectangle-4 {
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.antrean-display marquee {
    padding: 0;
    font-size: clamp(14px, 1.2vw, 22px);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .antrean-display .section-primary { grid-template-columns: minmax(0, 1fr); }
    .antrean-display .Rectangle-34 { display: none; }
}

@media (max-width: 600px) {
    .antrean-display .section-content { grid-template-columns: minmax(0, 1fr); }
    .antrean-display .Rectangle-30 { display: none; }
    .antrean-display .section-content-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .antrean-display .section-content-2 .box-2 > p { font-size: clamp(24px, 4vh, 40px); }
    .antrean-display .section-content-2 .box-3-child > p { font-size: 14px; }
}
