/* --- Base layout -------------------------------------------------------- */

@font-face {
  font-family: 'Spectral';
  src: url('Spectral-Light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'ZallmanCaps';
  src: url('ZallmanCaps.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

html,
body {
  height: 100%;
  margin: 0;
  background: #000;
  color: #e0e0e0;
  font-family: "Spectral", serif;
  font-size: 18px;
}

/* Decorative horizontal rules */

.fancy-hr {
  display: flex;
  align-items: center;
  text-align: center;
  color: #555;
  margin: 0.25rem 0 1rem 0;
}

.fancy-hr::before,
.fancy-hr::after {
  content: "";
  flex: 1;
  border-top: 1px solid #555;
}

.fancy-hr span {
  margin: 0 1rem;
  font-size: 1.5rem;
}

/* Apply spin to the fleuron */
@keyframes slow-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.fancy-hr span.loading {
  animation: slow-spin 3s linear 1s infinite;
  display: inline-block; /* needed for transform to apply */
}

.dinkus {
  text-align: center;
  color: #555;
  font-size: 1.5rem;
  letter-spacing: 0.3rem;
  line-height: 1;
  margin: 1rem 0 1rem 0;
}

.dinkus span {
  display: inline-block;
  transform: translateY(0.4rem);  /* Subtle visual tweak */
  line-height: 1;          /* Prevents span from inheriting default extra space */
}

/* Central “phone” frame */
.app-container {
/*  display: flex;
  flex-direction: column; */
  width: 100%;
  max-width: 700px;          /* Desktop cap */
  padding: 20px;
  box-sizing: border-box;
  margin: 0 auto;
}

/* --- Navigation links --------------------------------------------------- */

.nav-links {
  display: flex;
  justify-content: space-between;
  width: 100%;
  min-height: 20px;
}

.nav-slot {
  flex: 1;
}

.nav-slot.left {
  text-align: left;
}

.nav-slot.right {
  text-align: right;
}

.nav-link {
  text-decoration: none;
  color: #555;
}

/* --- Narrative ---------------------------------------------------------- */

.narrative {
  margin: 1rem 0;
  line-height: 1.5;
}

/* Drop cap styling */
.narrative p:first-of-type::first-letter {
  font-family: 'ZallmanCaps', serif;
  initial-letter: 3;
  -webkit-initial-letter: 3;
  margin-right: 0.6rem;
}


/* Ink‑bleed effect */

.word {
  opacity: 0;
  filter: blur(4px);
  animation: ink 0.7s ease-out forwards;
}

@keyframes ink {
  to {
    opacity: 1;
    filter: blur(0);
  }
}

/* Notifications */
.notifications {
  max-width: 550px;
  margin: 15px auto 30px auto;
}

.notification {
  display: flex;
  align-items: flex-start;
  margin: 0.5rem 2rem 0 0;
}

.notification div {
  padding-top: 3px;
}

.notification-icon {
  font-family: 'Material Symbols Outlined';
  font-size: 1.5rem;
  margin-right: 12px;
  color: #555;
}

/* Player actions display */

.player-actions {
  font-style: italic;
  margin-bottom: 1rem;
}

.player-actions strong {
  font-style: normal;
}

/* Action input  */

.action-input {
  resize: none;
  font-family: inherit;
  font-size: 1rem;
  background: #111;
  border: 1px solid #444;
  color: #e0e0e0;
  padding: 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  min-height: 20px;
  width: 100%;
  box-sizing: border-box;
}


/* --- Ready button ------------------------------------------------------- */

.ready-btn {
  font-family: inherit;
  width: 100%;
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #444;
  background: #222;
  color: #e0e0e0;
  border-radius: 4px;
}

/* --- Utility ------------------------------------------------------------ */

.hidden {
  display: none !important;
}

/* error view */

#error {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  overflow: hidden;
}

#error img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
