/* Designed on a fixed 1920x1080 stage that portal.js scales to the viewport.
 * Chromium M69 compatible: no flexbox gap, no :focus-visible, no backdrop-filter. */
:root { --accent: #c9a227; }

html, body {
  margin: 0; padding: 0; width: 100%; height: 100%;
  overflow: hidden; background: #000; cursor: default;
  font-family: "SamsungOne", "Samsung Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #fff;
}

#stage {
  position: absolute; left: 0; top: 0; width: 1920px; height: 1080px;
  transform-origin: 0 0; overflow: hidden;
  background-color: #0d1b2a; background-size: cover; background-position: center;
}
.shade { position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; }
#stage.has-bg-image .shade {
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.65) 100%);
}

.topbar {
  position: absolute; left: 96px; right: 96px; top: 64px; height: 140px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; }
#logo { max-height: 120px; max-width: 360px; margin-right: 36px; }
#hotel-name { font-size: 46px; font-weight: 600; letter-spacing: 1px; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
#clock { text-align: right; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
#time { font-size: 64px; font-weight: 300; line-height: 1; }
#date { font-size: 28px; margin-top: 10px; opacity: 0.85; }

.welcome { position: absolute; left: 96px; right: 96px; top: 270px; }
#welcome-title {
  margin: 0; font-size: 96px; font-weight: 300; letter-spacing: 2px;
  text-shadow: 0 3px 12px rgba(0,0,0,0.5);
}
#welcome-message {
  margin: 24px 0 0; max-width: 1300px; font-size: 38px; line-height: 1.4; opacity: 0.92;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

#announcement {
  position: absolute; left: 96px; right: 96px; top: 560px;
  display: flex; align-items: center;
  padding: 22px 32px; border-radius: 12px;
  background: rgba(0,0,0,0.45); border-left: 8px solid var(--accent);
  font-size: 32px; line-height: 1.35;
}
.announcement-mark { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); margin-right: 24px; }

#tiles {
  position: absolute; left: 80px; right: 80px; bottom: 120px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end;
}
.tile {
  box-sizing: border-box; width: 264px; height: 224px; margin: 16px 14px 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 18px; background: rgba(255,255,255,0.12);
  border: 4px solid rgba(255,255,255,0.18);
  transition: transform 120ms ease-out, background-color 120ms ease-out;
}
.tile-icon { width: 96px; height: 96px; object-fit: contain; margin-bottom: 18px; }
.tile-name { font-size: 32px; font-weight: 600; text-align: center; padding: 0 12px; }
.tile.focused {
  transform: scale(1.08);
  background: rgba(255,255,255,0.28);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.35), 0 12px 32px rgba(0,0,0,0.5);
}

#no-tiles { position: absolute; left: 0; right: 0; bottom: 200px; text-align: center; font-size: 34px; opacity: 0.85; }

#branding {
  position: absolute; right: 96px; bottom: 40px;
  font-size: 22px; opacity: 0.6; letter-spacing: 1px;
}

.overlay {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
}
.panel {
  box-sizing: border-box; width: 1280px; max-height: 900px;
  display: flex; flex-direction: column;
  padding: 56px 72px 40px; border-radius: 20px;
  background: #142235; border-top: 8px solid var(--accent);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.panel-title { margin: 0 0 28px; font-size: 54px; font-weight: 400; }
.panel-body { flex: 1 1 auto; overflow: hidden; max-height: 600px; }
.panel-line, .panel-text { margin: 0 0 18px; font-size: 34px; line-height: 1.4; }
.diag-row, .diag-app { margin: 0 0 8px; font-size: 24px; line-height: 1.35; word-wrap: break-word; }
.diag-app { font-family: monospace; font-size: 22px; opacity: 0.9; }
.panel-close {
  align-self: center; margin-top: 30px; padding: 16px 72px; border-radius: 12px;
  font-size: 32px; font-weight: 600; border: 4px solid var(--accent); background: rgba(255,255,255,0.15);
}
.panel-hint { align-self: center; margin-top: 16px; font-size: 22px; opacity: 0.6; }
