/* Self-hosted Google Fonts (Anuphan, Lato, Work Sans) — same origin, no extra connections */
/* thai */
@font-face {
  font-family: 'Anuphan';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/2sDeZGxYgY7LkLT0mX4Dam--C70lZQ.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* vietnamese */
@font-face {
  font-family: 'Anuphan';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/2sDeZGxYgY7LkLT0mWUDam--C70lZQ.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Anuphan';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/2sDeZGxYgY7LkLT0mWQDam--C70lZQ.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Anuphan';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/2sDeZGxYgY7LkLT0mWoDam--C70.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* thai */
@font-face {
  font-family: 'Anuphan';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/2sDeZGxYgY7LkLT0mX4Dam--C70lZQ.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* vietnamese */
@font-face {
  font-family: 'Anuphan';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/2sDeZGxYgY7LkLT0mWUDam--C70lZQ.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Anuphan';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/2sDeZGxYgY7LkLT0mWQDam--C70lZQ.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Anuphan';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/2sDeZGxYgY7LkLT0mWoDam--C70.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* thai */
@font-face {
  font-family: 'Anuphan';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/2sDeZGxYgY7LkLT0mX4Dam--C70lZQ.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* vietnamese */
@font-face {
  font-family: 'Anuphan';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/2sDeZGxYgY7LkLT0mWUDam--C70lZQ.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Anuphan';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/2sDeZGxYgY7LkLT0mWQDam--C70lZQ.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Anuphan';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/2sDeZGxYgY7LkLT0mWoDam--C70.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/fonts/S6u9w4BMUTPHh50XSwaPGQ3q5d0N7w.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/fonts/S6u9w4BMUTPHh50XSwiPGQ3q5d0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/QGYsz_wNahGAdqQ43Rh_c6DptfpA4cD3.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/QGYsz_wNahGAdqQ43Rh_cqDptfpA4cD3.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/QGYsz_wNahGAdqQ43Rh_fKDptfpA4Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/QGYsz_wNahGAdqQ43Rh_c6DptfpA4cD3.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/QGYsz_wNahGAdqQ43Rh_cqDptfpA4cD3.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/QGYsz_wNahGAdqQ43Rh_fKDptfpA4Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Work Sans", "Anuphan", sans-serif;
  color: #1d1c1d;
  background: #f4f4f4;
  /* Tap and hold drive the story, so no text selection or long-press menu */
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}

/* Start screen */
.gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #2b0a2e;
}

.gate-loading {
  position: relative;
  margin: 6vh 0 0;
  font-size: 0.95rem;
  opacity: 0.8;
}

.gate.is-ready .gate-loading {
  display: none;
}

.gate-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(22px) brightness(0.55);
  transform: scale(1.15);
}

.gate-clock {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 12vh;
}

.gate-time {
  font-size: 5.5rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
}

.gate-date {
  margin-top: 8px;
  font-size: 1.05rem;
}

.gate-notif {
  position: relative;
  display: flex;
  gap: 10px;
  width: min(92vw, 380px);
  margin-top: 6vh;
  padding: 12px 14px;
  border: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: #1d1c1d;
  font: 15px/1.4 "Lato", "Anuphan", sans-serif;
  text-align: left;
  cursor: pointer;
  visibility: hidden;
  opacity: 0;
}

.gate-notif:focus-visible {
  outline: 3px solid #ecb22e;
  outline-offset: 3px;
}

.gate-app {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 9px;
  object-fit: cover;
}

.gate-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gate-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #616061;
}

.gate-hint {
  position: absolute;
  bottom: 7vh;
  left: 16px;
  right: 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.6s 0.6s;
}

.gate.is-ready .gate-hint {
  opacity: 1;
}

.gate-hint small {
  font-size: 0.8rem;
  opacity: 0.75;
}

/* Story progress, one segment per scene */
.story-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: none;
  gap: 4px;
  padding: 8px 12px;
}

.is-started .story-bar {
  display: flex;
}

.story-bar i {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(to right, #611f69 calc(var(--p, 0) * 100%), rgba(97, 31, 105, 0.15) 0);
}

.story-paused,
.story-hint {
  position: fixed;
  bottom: 5vh;
  left: 50%;
  z-index: 10;
  display: none;
  margin: 0;
  padding: 8px 16px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(29, 28, 29, 0.8);
  color: #fff;
  font-size: 0.9rem;
  white-space: nowrap;
}

.is-paused .story-paused {
  display: block;
}

/* Lighter than the paused pill: a nudge while teammates' messages are landing */
.in-team:not(.is-paused) .story-hint {
  display: block;
  opacity: 0.7;
}

.container {
  height: 100vh;
  width: 100vh;
  margin: 0 auto;
  text-align: center;
  visibility: hidden;
  position: relative;
  overflow: hidden;
}

.container div.six {
  top: 10vh;
  z-index: 1;
}

.container > div {
  position: absolute;
  left: 0;
  right: 0;
  top: 20vh;
}

.one {
  font-size: 4.5rem;
}

.one > img {
  vertical-align: middle;
  margin-bottom: 10px;
  max-width: 100%;
  height: auto;
}

.two {
  font-size: 1.2rem;
  font-weight: lighter;
}

.three {
  font-size: 3rem;
}

/* Slack window */
.container div.four {
  position: fixed;
  top: 5vh;
  left: 2vw;
  right: 2vw;
}

.slack {
  position: relative;
  display: flex;
  max-width: 1000px;
  height: 88vh;
  max-height: 720px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  font-family: "Lato", "Anuphan", sans-serif;
  font-size: 15px;
  text-align: left;
  color: #1d1c1d;
  background: #fff;
}

.slack p {
  margin: 0;
}

.slack .ico {
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* App rail */
.slack-rail {
  width: 72px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  background: #3d0f40;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.slack-rail-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 4px;
}

.slack-rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  line-height: 1.1;
}

.slack-rail-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.slack-rail-item.active .slack-rail-icon {
  background: rgba(255, 255, 255, 0.25);
}

.slack-rail-icon i {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: #e8c8ef;
  color: #3d0f40;
  font-style: normal;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

.slack-rail-icon i.dot {
  top: 2px;
  right: 2px;
  min-width: 8px;
  height: 8px;
}

.slack-rail-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.slack-rail-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.slack-rail .slack-rail-me {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

/* Sidebar */
.slack-sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #5b2a5e;
  color: #eadcec;
}

.slack-workspace {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  background: #5b2a5e;
  padding: 14px 12px 10px 16px;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
}

.slack-workspace-tools {
  margin-left: auto;
  display: flex;
  gap: 12px;
}

.slack-list {
  padding: 0 8px;
}

.slack-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #d8c6da;
  font-size: 14px;
}

.slack-list hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 6px 4px;
}

.slack-section,
.slack-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
}

.slack-section {
  margin-top: 6px;
}

.slack-section b {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.slack-item {
  padding-left: 20px;
}

.slack-item.active {
  background: #f3e6f6;
  color: #3d0f40;
}

.slack-hash {
  width: 18px;
  flex-shrink: 0;
  text-align: center;
  font-size: 17px;
}

.slack-lock {
  height: 15px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 9V6.5a4 4 0 0 1 8 0V9M4.5 9h11v8h-11z' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 9V6.5a4 4 0 0 1 8 0V9M4.5 9h11v8h-11z' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.slack-tag {
  color: #b9a3bc;
}

.slack-emoji {
  font-size: 13px;
}

.slack-badge {
  margin-left: auto;
  min-width: 22px;
  border-radius: 11px;
  background: #e8c8ef;
  color: #3d0f40;
  font-size: 12px;
  text-align: center;
}

.slack-ava {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 4px;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.slack-jira {
  background: #1868db;
}

/* Online dot */
.slack-pic {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.slack-pic.on::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2bac76;
  border: 2px solid #5b2a5e;
}

.slack-rail .slack-pic.on::after {
  border-color: #3d0f40;
}

/* Main pane */
.slack-main {
  flex: 1;
  min-width: 0;
  display: flex;
}

.slack-channel,
.slack-dm {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.slack-dm {
  display: none;
}

.slack-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 17px;
  font-weight: 900;
  border-bottom: 1px solid #ddd;
}

.slack-header .slack-ava {
  width: 24px;
  height: 24px;
}

.slack-messages {
  flex: 1;
  padding: 8px 0;
}

.slack-msg {
  display: flex;
  gap: 8px;
  padding: 8px 16px;
}

.slack-msg .slack-ava {
  width: 36px;
  height: 36px;
  font-size: 16px;
}

.slack-msg small {
  color: #616061;
}

.slack-intro {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 16px;
}

.slack-intro .slack-ava {
  width: 72px;
  height: 72px;
  border-radius: 8px;
}

.slack-intro b {
  font-size: 22px;
}

.slack-intro p {
  color: #616061;
}

.slack-composer {
  margin: 0 16px 16px;
  border: 1px solid #bbbabb;
  border-radius: 8px;
}

.slack-input {
  position: relative;
  min-height: 22px;
  padding: 10px 12px;
}

.slack-placeholder {
  position: absolute;
  color: #868686;
}

.hbd-chatbox span {
  visibility: hidden;
}

.slack-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px;
  color: #616061;
  font-size: 14px;
}

.slack-toolbar .fake-btn {
  margin-left: auto;
  display: flex;
  padding: 6px;
  border-radius: 4px;
  color: #bbbabb;
}

.slack-toolbar .fake-btn.active {
  background: #007a5a;
  color: #fff;
}

.slack-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transform-origin: 0 0;
}

/* Memories: polaroids tossed onto a pile */
.container div.memories {
  top: 9vh;
}

.memory {
  position: absolute;
  left: 0;
  right: 0;
  width: min(78vw, 40vh);
  margin: 0 auto;
  padding: 12px 12px 16px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(43, 10, 46, 0.18), 0 2px 6px rgba(43, 10, 46, 0.12);
  text-align: left;
}

.memory time {
  display: block;
  margin-top: 12px;
  font: 900 0.95rem "Lato", "Anuphan", sans-serif;
  color: #611f69;
}

.memory-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  background: #e6dfe6;
}

.memories-outro {
  position: absolute;
  top: 56vh;
  left: 16px;
  right: 16px;
  margin: 0;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.5;
  text-align: center;
}

.memory-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memory figcaption {
  margin-top: 4px;
  font-size: 1.05rem;
  line-height: 1.55;
}

/* Team channel */
.container div.team {
  position: fixed;
  top: 6vh;
  left: 4vw;
  right: 4vw;
}

.slack.slack-solo {
  max-width: 560px;
  height: 80vh;
  max-height: 640px;
}

.team-feed {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.team-feed .slack-msg {
  display: none;
}

.team-feed p {
  line-height: 1.5;
  white-space: pre-line;
}

/* Slack's grey system line: "<name> left #channel" */
.team-left p {
  color: #616061;
}

.team-react {
  display: inline-block;
  margin-top: 6px;
  padding: 1px 8px;
  border: 1px solid #1d9bd1;
  border-radius: 12px;
  background: #e8f5fa;
  font-size: 13px;
}

.team-typing-slot {
  position: relative;
  height: 24px;
  margin: 0 16px 10px;
  font-size: 13px;
  color: #616061;
}

.team-typing {
  position: absolute;
  visibility: hidden;
  opacity: 0;
}

.five p {
  font-size: 2rem;
  position: absolute;
  left: 0;
  right: 0;
}

.idea-3 strong {
  padding: 3px 5px;
  border-radius: 3px;
  display: inline-block;
}

.five .idea-5 {
  font-size: 4rem;
}

.idea-5 span,
.idea-6 span,
.wish-hbd span {
  display: inline-block;
}

.idea-6 span {
  font-size: 15rem;
}

.six {
  position: relative;
}

.six img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

.wish-hbd {
  font-size: 3em;
  margin: 0;
  text-transform: uppercase;
}

.wish h5 {
  font-weight: lighter;
  font-size: 2rem;
  margin: 10px 0 0;
}

.nine p {
  font-size: 2rem;
  font-weight: lighter;
}

.nine .contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.contacts:empty {
  display: none;
}

.contacts a {
  padding: 10px 20px;
  border: 1.5px solid #611f69;
  border-radius: 999px;
  color: #611f69;
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
}

#replay {
  position: relative;
  z-index: 3;
  padding: 8px;
  border: 0;
  background: none;
  color: #611f69;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
}

.contacts a:focus-visible,
#replay:focus-visible {
  outline: 3px solid #ecb22e;
  outline-offset: 3px;
}

/* Media Queries */
@media screen and (max-width: 500px) {
  .container {
    width: 90%;
  }

  /* Phone: sidebar fills the window, then the DM opens full width like the Slack app */
  .slack {
    font-size: 14px;
  }

  .slack-rail {
    width: 56px;
    font-size: 10px;
  }

  .slack-sidebar {
    flex: 1;
    width: auto;
  }

  .slack-main {
    display: none;
  }

  .slack.in-dm .slack-rail,
  .slack.in-dm .slack-sidebar {
    display: none;
  }

  .slack.in-dm .slack-main {
    display: flex;
  }

  .slack.slack-solo .slack-main {
    display: flex;
  }

  .slack-composer {
    margin: 0 8px 8px;
  }

  .idea-5 span {
    display: block;
  }

  .idea-6 span {
    font-size: 10rem;
  }

  .wish-hbd {
    font-size: 2.2em;
  }

  .wish h5 {
    font-size: 1.4rem;
  }

  .nine p {
    font-size: 1.5rem;
    font-weight: lighter;
  }
}

/* Teammate names stay private */
.slack-blur {
  filter: blur(4px);
}
