* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family:
    Arial,
    Helvetica,
    sans-serif;
}

body {
  background: #f4f7fb;
  color: #071a3d;
}

.queue-screen {
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30%;
  background: #f7f9fc;
}


/* LEFT SIDE */

.main-panel {
  min-width: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding:
    clamp(24px, 3vw, 58px)
    clamp(30px, 4vw, 76px);
}

.brand-header {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
}

.brand-seal {
  width: clamp(90px, 8vw, 155px);
  height: clamp(90px, 8vw, 155px);
  object-fit: contain;
}

.brand-copy {
  line-height: 1;
}

.brand-name {
  font-size: clamp(30px, 3vw, 58px);
  font-weight: 900;
  letter-spacing: .04em;
  color: #071a3d;
}

.brand-subtitle {
  margin-top: 10px;
  font-size: clamp(11px, 1vw, 18px);
  font-weight: 800;
  letter-spacing: .32em;
  color: #b78319;
}

.service-title {
  margin-left: auto;
  font-size: clamp(25px, 2.7vw, 54px);
  font-weight: 800;
  color: #164c91;
}

.gold-line {
  height: 9px;
  margin-top: clamp(20px, 2vw, 38px);
  border-radius: 20px;
  background:
    linear-gradient(
      90deg,
      #c89121,
      #efbf50,
      #b77d13
    );
}

.welcome-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.welcome-label {
  font-size: clamp(18px, 1.5vw, 30px);
  font-weight: 900;
  letter-spacing: .13em;
  color: #b78319;
}

.welcome-area h1 {
  max-width: 1100px;
  margin:
    clamp(12px, 1.5vw, 24px)
    0
    0;

  font-size: clamp(40px, 4.3vw, 82px);
  line-height: 1.05;
  color: #071a3d;
}

.welcome-area p {
  max-width: 950px;
  margin-top: 22px;
  font-size: clamp(20px, 1.7vw, 34px);
  line-height: 1.4;
  color: #526174;
}

.current-card {
  margin-top: clamp(30px, 4vh, 65px);
  width: min(700px, 90%);
  padding: clamp(22px, 2vw, 38px);
  border-radius: 25px;
  background: #071a3d;
  color: white;
  box-shadow:
    0 20px 60px rgba(7, 26, 61, .20);
}

.current-card[hidden] {
  display: none;
}

.current-label {
  font-size: clamp(16px, 1.3vw, 24px);
  font-weight: 900;
  letter-spacing: .18em;
  color: #efbf50;
}

.current-number {
  margin-top: 8px;
  font-size: clamp(68px, 7vw, 135px);
  line-height: .95;
  font-weight: 900;
}

.current-window {
  margin-top: 15px;
  font-size: clamp(28px, 2.8vw, 52px);
  font-weight: 800;
  color: #efbf50;
}

.main-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 2px solid #d8e0eb;

  font-size: clamp(16px, 1.2vw, 24px);
  font-weight: 800;
  color: #657386;
}


/* RIGHT SIDE */

.history-panel {
  height: 100vh;
  padding:
    clamp(30px, 4vw, 65px)
    clamp(22px, 2.4vw, 46px);

  background:
    linear-gradient(
      160deg,
      #08275b 0%,
      #071a3d 58%,
      #041126 100%
    );

  color: white;

  display: flex;
  flex-direction: column;
}

.history-title {
  text-align: center;
  margin-bottom: clamp(25px, 3vh, 50px);

  font-size: clamp(32px, 3vw, 58px);
  font-weight: 900;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vh, 30px);
}

.history-item {
  min-height: clamp(120px, 16vh, 185px);

  border-radius: 24px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background:
    linear-gradient(
      135deg,
      #1766be,
      #2487df
    );

  border: 2px solid rgba(255,255,255,.18);

  box-shadow:
    0 12px 35px rgba(0,0,0,.18);
}

.history-item:first-child {
  background:
    linear-gradient(
      135deg,
      #c58b1c,
      #e6b13d
    );

  color: #071a3d;

  transform: scale(1.025);
}

.history-number {
  font-size: clamp(46px, 4.5vw, 88px);
  line-height: 1;
  font-weight: 900;
}

.history-window {
  margin-top: 10px;
  font-size: clamp(20px, 1.8vw, 34px);
  font-weight: 700;
}

.empty-history {
  margin: auto 0;
  text-align: center;
  font-size: clamp(22px, 2vw, 36px);
  line-height: 1.4;
  color: rgba(255,255,255,.58);
}


/* SMALLER LANDSCAPE SCREENS */

@media (max-width: 1000px) {

  .queue-screen {
    grid-template-columns: 65% 35%;
  }

  .main-panel {
    padding: 24px;
  }

  .history-panel {
    padding: 26px 18px;
  }

  .brand-copy {
    display: none;
  }
}


/* =========================================================
   AAROMA QUEUE DISPLAY MEDIA AREA
   ========================================================= */

.welcome-area {
  gap: clamp(18px, 2vh, 30px);
}

.media-stage {
  position: relative;

  flex: 1;

  min-height: 0;

  overflow: hidden;

  margin-top:
    clamp(20px, 2vh, 36px);

  border-radius:
    clamp(16px, 1.7vw, 28px);

  background:
    #071a3d;

  box-shadow:
    0 18px 50px
    rgba(7,26,61,.14);
}

.queue-slides {
  position: absolute;
  inset: 0;
}

.queue-slide {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  opacity: 0;

  transition:
    opacity .7s ease;

  background: #000;
}

.queue-slide.active {
  opacity: 1;
}

video.queue-slide {
  object-fit: cover;
}

.queue-media-empty {
  position: absolute;

  inset: 0;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 22px;

  background:
    linear-gradient(
      135deg,
      #071a3d,
      #0c2e63
    );

  color: white;

  font-size:
    clamp(
      30px,
      3vw,
      58px
    );

  font-weight: 900;
}

.queue-media-empty[hidden] {
  display: none !important;
}

.queue-media-empty img {
  width:
    clamp(
      150px,
      17vw,
      300px
    );

  height: auto;

  object-fit: contain;
}


/*
   Current call appears as a clear strip
   beneath the media area.
*/
.current-card {
  width: 100%;

  margin-top: 0;

  display: grid;

  grid-template-columns:
    auto 1fr auto;

  align-items: center;

  gap:
    clamp(
      18px,
      2vw,
      34px
    );

  padding:
    clamp(
      14px,
      1.5vw,
      24px
    )
    clamp(
      18px,
      2vw,
      34px
    );
}

.current-card[hidden] {
  display: none;
}

.current-label {
  margin: 0;
}

.current-number {
  margin: 0;

  font-size:
    clamp(
      48px,
      5vw,
      95px
    );
}

.current-window {
  margin: 0;

  text-align: right;

  font-size:
    clamp(
      24px,
      2.2vw,
      42px
    );
}

/* =========================================================
   FULL MEDIA AREA — NOW SERVING
   ========================================================= */

.media-stage .current-card {
  position: absolute !important;
  inset: 0 !important;
  z-index: 50 !important;

  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;

  border-radius: inherit !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;

  gap: clamp(18px, 2.5vh, 34px) !important;

  padding: clamp(24px, 3vw, 55px) !important;

  text-align: center !important;

  background:
    radial-gradient(
      circle at 50% 40%,
      #164b93 0%,
      #0a2d67 42%,
      #061b40 100%
    ) !important;

  color: #fff !important;
  box-shadow: none !important;
}

.media-stage .current-card[hidden] {
  display: none !important;
}

.media-stage .current-label {
  margin: 0 !important;

  font-size: clamp(34px, 4vw, 76px) !important;
  font-weight: 900 !important;
  letter-spacing: .12em !important;

  color: #efbf50 !important;
}

.media-stage .current-number {
  margin: 0 !important;

  font-size: clamp(150px, 18vw, 340px) !important;
  line-height: .9 !important;
  font-weight: 900 !important;

  color: #fff !important;

  text-shadow:
    0 10px 35px
    rgba(0,0,0,.30) !important;
}

.media-stage .current-window {
  margin: 0 !important;

  font-size: clamp(46px, 5vw, 96px) !important;
  font-weight: 900 !important;

  color: #efbf50 !important;
  text-align: center !important;
}

