html,
body {
  height: 100%;
  background: #0c0b0a;
}

html.standalone,
html.standalone body {
  height: 100%;
  height: -webkit-fill-available;
}

body {
  margin: 0;
  background: #0c0b0a;
  color: #f3eee4;
  font-family: -apple-system, "Helvetica Neue", sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  overflow: hidden;
  touch-action: manipulation;
}

#app {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  height: 100%;
  padding: 16px 18px 10px;
  box-sizing: border-box;
}

html.standalone #app {
  padding-top: 28px;
}

.mast {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: stretch;
  align-items: stretch;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  min-height: 176px;
}

.clock {
  width: 200px;
  padding-right: 16px;
}

#time {
  font-size: 64px;
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -2px;
}

#date {
  margin-top: 8px;
  font-size: 17px;
  color: #b9b0a2;
}

.weather {
  -webkit-flex: 1;
  flex: 1;
  background: #171513;
  border: 1px solid #2a2622;
  border-radius: 16px;
  padding: 12px 14px;
  min-width: 0;
}

.wx-top {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: baseline;
  align-items: baseline;
}

.wx-temp {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1px;
}

.wx-meta {
  margin-left: 10px;
  color: #efe6d6;
  font-size: 15px;
  line-height: 1.25;
}

.wx-advice {
  margin-top: 4px;
  color: #8fd3ff;
  font-size: 14px;
}

.wx-hours {
  display: -webkit-flex;
  display: flex;
  margin-top: 10px;
}

.wx-h {
  -webkit-flex: 1;
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: #efe6d6;
}

.wx-h b {
  display: block;
  font-size: 16px;
  margin-top: 2px;
  color: #fff;
}

.verse {
  width: 360px;
  margin-left: 12px;
  background: #171513;
  border: 1px solid #2a2622;
  border-radius: 16px;
  padding: 14px 16px;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-justify-content: center;
  justify-content: center;
  box-sizing: border-box;
}

.verse .kicker {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8276;
}

.verse .text {
  margin-top: 8px;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
}

.verse .ref {
  margin-top: 10px;
  color: #d8c9a6;
  font-size: 15px;
  font-weight: 600;
}

.verse .src {
  color: #8a8276;
  font-weight: 500;
}

.banner {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #3a2410;
  color: #ffd79a;
  font-size: 15px;
}

.banner a {
  color: #fff;
}

.board {
  -webkit-flex: 1;
  flex: 1;
  min-height: 0;
  margin-top: 12px;
  display: -webkit-flex;
  display: flex;
}

.board.is-wide {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.board.is-wide .lane {
  min-width: 160px;
}

.lane {
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
  background: #141210;
  border: 1px solid #2a2622;
  border-radius: 16px;
  padding: 10px 10px 8px;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
}

.lane + .lane {
  margin-left: 8px;
}

.lane-head {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}

.lane-name {
  font-size: 18px;
  font-weight: 700;
}

.ring {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  position: relative;
}

.ring span {
  position: absolute;
  left: 4px;
  top: 4px;
  right: 4px;
  bottom: 4px;
  background: #141210;
  border-radius: 50%;
  font-size: 11px;
  line-height: 26px;
  text-align: center;
  font-weight: 700;
}

.events,
.tasks {
  -webkit-flex: 1;
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 8px;
}

.card {
  background: #1d1a17;
  border-radius: 12px;
  padding: 8px 9px;
  margin-bottom: 7px;
}

.card .when {
  font-size: 12px;
  color: #9a9286;
}

.card .ttl {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 2px;
}

.empty {
  color: #9a9286;
  font-size: 14px;
  padding: 8px 2px;
}

.chore {
  position: relative;
  overflow: hidden;
}

.chore .fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: rgba(47, 158, 68, 0.35);
}

.chore.holding .fill {
  width: 100%;
  -webkit-transition: width 0.8s linear;
  transition: width 0.8s linear;
}

.chore .ttl {
  position: relative;
}

.chore .hint {
  position: relative;
  margin-top: 4px;
  font-size: 11px;
  color: #6f685e;
}

.tabs {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  display: -webkit-flex;
  display: flex;
  margin-top: 10px;
  padding-bottom: 4px;
}

.tab {
  -webkit-flex: 1;
  flex: 1;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: #1a1816;
  color: #c8bfb1;
  font-size: 18px;
  font-weight: 600;
}

.tab + .tab {
  margin-left: 8px;
}

.tab.is-on {
  background: #f3eee4;
  color: #111;
}

.sheet {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  padding: 24px;
}

.sheet[hidden],
.banner[hidden],
.saver[hidden] {
  display: none;
}

.saver {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: #000;
  overflow: hidden;
}

html.standalone .saver {
  top: -20px;
  top: calc(0px - constant(safe-area-inset-top));
  top: calc(0px - env(safe-area-inset-top));
}

html.standalone .saver:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 28px;
  height: constant(safe-area-inset-top);
  height: env(safe-area-inset-top);
  min-height: 20px;
  z-index: 4;
  pointer-events: none;
  background: rgba(12, 11, 10, 0.08);
}

.saver-pic {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: #000;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  -webkit-transition: opacity 1.1s ease;
  transition: opacity 1.1s ease;
}

.saver-pic.is-on {
  opacity: 1;
}

.saver-pic.is-zoom {
  -webkit-animation: ken 22s linear both;
  animation: ken 22s linear both;
}

@-webkit-keyframes ken {
  from {
    -webkit-transform: scale(1);
  }
  to {
    -webkit-transform: scale(1.08);
  }
}

@keyframes ken {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

.saver-clock {
  position: absolute;
  left: 28px;
  bottom: 24px;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

#saverTime {
  font-size: 64px;
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -2px;
}

#saverDate {
  margin-top: 8px;
  font-size: 20px;
  color: #f3eee4;
}

.sheet-card {
  width: 420px;
  max-width: 100%;
  background: #1b1815;
  border: 1px solid #3a342e;
  border-radius: 18px;
  padding: 18px;
}

.sheet-card h2 {
  margin: 6px 0 8px;
  font-size: 24px;
}

.sheet-card p {
  margin: 0 0 8px;
  color: #c8bfb1;
}

.sheet-card button {
  margin-top: 8px;
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: #f3eee4;
  color: #111;
  font-size: 16px;
  font-weight: 600;
}

@media (max-width: 900px) {
  #time {
    font-size: 48px;
  }
  .clock {
    width: 150px;
  }
  .verse {
    width: 280px;
  }
  .verse .text {
    font-size: 18px;
  }
  .lane-name {
    font-size: 15px;
  }
}

@media (orientation: portrait) {
  .mast {
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
  }
  .clock,
  .verse {
    width: 48%;
  }
  .weather {
    width: 100%;
    margin-top: 10px;
  }
  .verse {
    margin-left: 0;
  }
  .board {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .lane {
    min-width: 180px;
  }
}
