/* Plain CSS fallback for Samsung Tizen Signage browsers that do not support
   modern Tailwind v4 stylesheet features. */
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: #c2d0d7;
  color: #1a1a1a;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.display-screen {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  color: #1a1a1a;
  background: linear-gradient(135deg, #c2d0d7 0%, #a3d9e0 52%, #d5f2f6 100%);
}

.display-header {
  height: 5rem;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
}

.display-header img {
  height: 2.25rem;
  width: auto;
  object-fit: contain;
}

.display-clock {
  text-align: right;
}

.display-date {
  color: rgba(0, 55, 123, 0.7);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.display-time {
  color: #00377b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
}

.display-main {
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  padding: 0 2.5rem 1.5rem;
}

.display-slide {
  height: 100%;
}

.display-slide-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(0, 55, 123, 0.22);
}

.display-slide-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 2rem;
  text-align: center;
  color: #ffffff;
  background: #00377b;
}

.display-slide-header.bg-brand-light {
  background: #06b5cd;
}

.display-slide-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.display-slide-icon svg {
  width: 2.25rem;
  height: 2.25rem;
}

.display-slide-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.display-slide-title {
  margin: 0;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}

.display-slide-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.25rem;
  font-weight: 500;
}

.display-slide-body {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2rem 2.5rem;
}

.display-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  gap: 1rem;
  text-align: center;
}

.display-avatar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 13rem;
  height: 13rem;
  overflow: hidden;
  border-radius: 999px;
  color: #00377b;
  background: rgba(0, 55, 123, 0.1);
  box-shadow: 0 0 0 6px #ffffff;
  font-size: 3.75rem;
  font-weight: 700;
}

.display-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.display-avatar svg {
  width: 40%;
  height: 40%;
  color: #00377b;
}

.display-person-name {
  max-width: 92%;
  color: #00377b;
  font-size: 4.25rem;
  font-weight: 800;
  line-height: 1.05;
}

.display-person-department {
  max-width: 92%;
  overflow: hidden;
  color: #1a1a1a;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.display-person-designation {
  max-width: 92%;
  overflow: hidden;
  color: rgba(26, 26, 26, 0.7);
  font-size: 1.65rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.display-years {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.375rem 1.5rem;
  background: rgba(6, 181, 205, 0.15);
  box-shadow: inset 0 0 0 2px rgba(6, 181, 205, 0.4);
}

.display-years-number {
  color: #00377b;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.display-years-label {
  color: rgba(0, 55, 123, 0.8);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.display-guest {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.display-guest-label {
  color: rgba(0, 55, 123, 0.7);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.display-guest-name {
  color: #1a1a1a;
  font-size: 6rem;
  font-weight: 800;
  line-height: 1.05;
}

.display-guest-company {
  color: #00377b;
  font-size: 3rem;
  font-weight: 600;
}

.display-guest-footer {
  color: rgba(26, 26, 26, 0.8);
  font-size: 2rem;
  font-weight: 300;
}

.display-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  border-radius: 1.5rem;
  color: #ffffff;
  text-align: center;
  background: #00377b;
}

.display-empty-title {
  margin: 0;
  font-size: 3rem;
  font-weight: 700;
}

.display-empty-text {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
}

.display-dots {
  position: absolute;
  right: 0;
  bottom: 0.5rem;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.display-dot {
  display: block;
  width: 0.5rem;
  height: 0.375rem;
  border-radius: 999px;
  background: rgba(0, 55, 123, 0.25);
}

.display-dot.w-8 {
  width: 2rem;
  background: #00377b;
}

@keyframes ticker-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-track {
  animation: ticker-marquee 35s linear infinite;
  will-change: transform;
}

@media (max-width: 900px), (max-height: 760px) {
  .display-header {
    height: 4.5rem;
    padding: 0 1.5rem;
  }

  .display-main {
    padding: 0 1.5rem 1.25rem;
  }

  .display-slide-title {
    font-size: 2.2rem;
  }

  .display-slide-subtitle {
    font-size: 1rem;
  }

  .display-avatar {
    width: 9rem;
    height: 9rem;
    font-size: 2.5rem;
  }

  .display-person-name,
  .display-guest-name {
    font-size: 3rem;
  }

  .display-person-department,
  .display-guest-company {
    font-size: 1.75rem;
  }

  .display-person-designation,
  .display-guest-footer {
    font-size: 1.35rem;
  }
}