:root {
  --bg-dark: #2f1a0f;
  --panel: #f0d3a0;
  --panel-border: #5a2f1f;
  --text-main: #2f140d;
  --text-soft: #4c2a1c;
  --row-top: 16.5vh;
  --row-info: 21.5vh;
  --row-holiday: 9.25vh;
  --row-message: 9.35vh;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  font-family: "Georgia", "Times New Roman", serif;
  background: radial-gradient(circle at 50% 10%, #4b2a1a, var(--bg-dark) 70%);
  color: var(--text-main);
}

body {
  overflow: hidden;
  padding: 0;
}

.app {
  width: 100vw;
  height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 10px;
  padding: 10px;
}

.board {
  display: grid;
  grid-template-rows: var(--row-top) var(--row-info) minmax(0, 1fr) var(--row-holiday) var(--row-message);
  gap: 8px;
  height: calc(100vh - 20px);
  min-height: 0;
  min-width: 0;
}

.panel {
  background: linear-gradient(180deg, #f4dbad, var(--panel));
  border: 5px solid var(--panel-border);
  border-radius: 6px;
  padding: 14px 18px;
  text-align: center;
  min-height: 0;
  min-width: 0;
}

.panel--top {
  display: grid;
  align-content: center;
  gap: 4px;
}

.small-text {
  font-size: clamp(1.1rem, 2.2vw, 1.8rem);
  color: var(--text-soft);
}

.clock {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
}

.title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
}

.subline {
  margin: 10px 0 0;
  font-size: clamp(1.1rem, 2.2vw, 1.8rem);
  color: var(--text-soft);
}

.zmanim-list {
  font-size: clamp(2rem, 2.4vw, 35px);
  line-height: 1.35;
  overflow: hidden;
  display: inline-block;
  max-width: 100%;
}

.message {
  margin: 0;
  font-size: clamp(1.6rem, 3.4vw, 3rem);
}

.ticker {
  width: 100%;
  overflow: hidden;
  min-width: 0;
}

.ticker--ltr {
  direction: ltr;
  text-align: left;
}

.ticker--rtl {
  direction: rtl;
  text-align: right;
}

.message--ticker {
  white-space: nowrap;
  display: inline-block;
  max-width: none;
  line-height: 1.15;
}

.board--he {
  direction: rtl;
}

@media (max-width: 1200px) {
  .app {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    height: auto;
    min-height: 100vh;
  }
}
