@media (max-width: 600px) {
  .post-header {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5em !important;
    align-items: center !important;
    justify-content: flex-start !important;
    -webkit-flex-wrap: wrap !important;
    -webkit-align-items: center !important;
    -webkit-justify-content: flex-start !important;
  }
  .screamshare-btn, .rescream-btn {
    display: flex !important;
    -webkit-display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    -webkit-align-items: center !important;
    -webkit-justify-content: center !important;
    font-size: 1.5em !important;
    min-width: 44px !important;
    min-height: 44px !important;
    flex-basis: 44px !important;
    -webkit-flex-basis: 44px !important;
    padding: 0.3em 1em !important;
    margin: 0.3em 0.3em 0.3em 0.3em !important;
    background: #222 !important;
    color: #e84a5f !important;
    border: 2px dashed #6a003a !important;
    border-radius: 8px !important;
    box-shadow: 0 0 8px #6a003a !important;
    touch-action: manipulation !important;
    z-index: 10 !important;
    float: none !important;
    overflow: visible !important;
  }
}
@media (max-width: 600px) {
  .post-header {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5em !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }
  .screamshare-btn, .rescream-btn {
    display: block !important;
    width: auto !important;
    min-width: 44px !important;
    min-height: 44px !important;
    font-size: 1.5em !important;
    padding: 0.3em 1em !important;
    margin: 0.3em 0.3em 0.3em 0.3em !important;
    background: #222 !important;
    color: #e84a5f !important;
    border: 2px dashed #6a003a !important;
    border-radius: 8px !important;
    box-shadow: 0 0 8px #6a003a !important;
    touch-action: manipulation !important;
    z-index: 10 !important;
    float: none !important;
    overflow: visible !important;
  }
}
@media (max-width: 600px) {
  .post-header {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5em !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }
  .screamshare-btn, .rescream-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.5em !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0.3em 1em !important;
    margin-left: 0.3em !important;
    margin-right: 0.3em !important;
    background: #222 !important;
    color: #e84a5f !important;
    border: 2px dashed #6a003a !important;
    border-radius: 8px !important;
    box-shadow: 0 0 8px #6a003a !important;
    touch-action: manipulation !important;
    z-index: 10 !important;
  }
}
@media (max-width: 600px) {
  .screamshare-btn, .rescream-btn {
    display: inline-block !important;
    visibility: visible !important;
    z-index: 10 !important;
    font-size: 1.2em !important;
    padding: 0.3em 1em !important;
    margin-left: 0.3em !important;
    margin-right: 0.3em !important;
    background: #222 !important;
    color: #e84a5f !important;
    border: 2px dashed #6a003a !important;
    border-radius: 8px !important;
    box-shadow: 0 0 8px #6a003a !important;
    touch-action: manipulation !important;
  }
}
/* Custom horror tooltips for Scream Share and Rescream buttons */
.scream-share-btn, .rescream-btn, .flag-btn {
  position: relative;
  background: rgba(40, 20, 40, 0.8);
  color: #ff2a2a;
  border: 1px solid #6a003a;
  padding: 0.4em 0.8em;
  margin: 0 0.3em;
  border-radius: 4px;
  font-family: 'VT323', monospace;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scream-share-btn:hover, .rescream-btn:hover, .flag-btn:hover {
  background: rgba(60, 30, 60, 0.9);
  color: #ff4444;
  border-color: #8a005a;
  transform: translateY(-1px);
}

.screamshare-btn[data-tooltip]:hover::after,
.rescream-btn[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #2a1a1a;
  color: #e84a5f;
  font-family: 'Creepster', 'VT323', monospace;
  font-size: 1em;
  padding: 0.5em 1em;
  border: 2px dashed #6a003a;
  border-radius: 8px;
  box-shadow: 0 0 12px #6a003a, 0 0 2px #000 inset;
  white-space: pre;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.97;
  text-shadow: 1px 2px 2px #000, 0 0 6px #6a003a;
  filter: blur(0.2px) contrast(0.92) brightness(0.95);
  animation: rotWobble 1.5s infinite alternate ease-in-out;
}
@media (max-width: 600px) {
  .feed-header > div {
    flex-wrap: wrap;
    gap: 0.3em;
  }
  .feed-logo {
    width: 50px !important;
    min-width: 40px !important;
    max-width: 60px !important;
  }
  .feed-title {
    font-size: 1.2rem !important;
  }
  .logout-btn {
    font-size: 0.85em !important;
    padding: 0.3em 0.8em !important;
    margin-left: 0.5em !important;
  }
  .post-header {
    flex-wrap: wrap;
    gap: 0.3em;
  }
  .post-time {
    font-size: 0.7em !important;
    margin-bottom: 0.2em !important;
  }
  .post-content {
    font-size: 0.85em !important;
  }
}
@font-face {
  font-family: 'Creepster';
  src: url('../fonts/Creepster-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
.post.rotted {
    font-family: 'Creepster', 'VT323', monospace;
    color: #a94442;
    text-shadow:
        1px 2px 2px #000,
        0 0 6px #6a003a,
        0 0 2px #ff2a2a;
    filter: blur(0.5px) contrast(0.85) brightness(0.9) drop-shadow(0 0 2px #6a003a);
    background: repeating-linear-gradient(135deg, #2a1a1a 0 8px, #3a2a2a 8px 16px);
    border-radius: 6px;
    border: 2px dashed #6a003a;
    position: relative;
    overflow: hidden;
}
.post.rotted .post-content {
    letter-spacing: 0.08em;
    word-spacing: 0.2em;
    font-size: 0.92em;
    position: relative;
    text-shadow:
      2px 2px 2px #000,
      -1px 0px 4px #6a003a,
      0 0 8px #ff2a2a,
      1px -2px 3px #a94442;
    filter: blur(1px) contrast(0.7) brightness(0.8) drop-shadow(0 0 3px #6a003a);
    transform: rotate(-1deg) skewX(-2deg);
    opacity: 0.92;
    animation: rotWobble 1.8s infinite alternate ease-in-out;
}

.post.rotted-mild .post-content {
    filter: blur(0.3px) contrast(0.92) brightness(0.95) drop-shadow(0 0 1px #6a003a);
    opacity: 0.96;
    letter-spacing: 0.04em;
    word-spacing: 0.09em;
    animation: rotWobble 1.5s infinite alternate ease-in-out;
}
.post.rotted-medium .post-content {
    filter: blur(0.7px) contrast(0.8) brightness(0.88) drop-shadow(0 0 2px #6a003a);
    opacity: 0.92;
    letter-spacing: 0.07em;
    word-spacing: 0.13em;
    animation: rotWobble 1.7s infinite alternate ease-in-out;
}
.post.rotted-severe .post-content {
    filter: blur(1.1px) contrast(0.7) brightness(0.8) drop-shadow(0 0 3px #6a003a);
    opacity: 0.8;
    letter-spacing: 0.12em;
    word-spacing: 0.22em;
    animation: rotWobble 2s infinite alternate ease-in-out;
    color: #a94442;
}
.post.rotted .post-content::after {
    content: '';
    display: block;
    position: absolute;
    left: 0; right: 0; bottom: 0; height: 12px;
    background: url('../assets/bg-noise.png');
    opacity: 0.18;
    pointer-events: none;
}

@keyframes rotWobble {
  0% {
    filter: blur(0.5px) contrast(0.85) brightness(0.9);
    transform: rotate(-1deg) skewX(-2deg);
  }
  100% {
    filter: blur(1.5px) contrast(0.7) brightness(0.8);
    transform: rotate(1deg) skewX(2deg);
  }
}

@keyframes rotWave {
  0% {
    transform: rotate(-1deg) skewX(-1deg) scale(1);
    filter: blur(0.8px) contrast(0.7) brightness(0.8) sepia(0.4) hue-rotate(5deg);
  }
  25% {
    transform: rotate(-0.5deg) skewX(-2deg) scale(1.01);
    filter: blur(1px) contrast(0.65) brightness(0.75) sepia(0.5) hue-rotate(0deg);
  }
  50% {
    transform: rotate(0deg) skewX(1deg) scale(0.99);
    filter: blur(1.2px) contrast(0.6) brightness(0.7) sepia(0.6) hue-rotate(-5deg);
  }
  75% {
    transform: rotate(0.5deg) skewX(2deg) scale(1.02);
    filter: blur(0.9px) contrast(0.68) brightness(0.78) sepia(0.45) hue-rotate(3deg);
  }
  100% {
    transform: rotate(-1deg) skewX(-1deg) scale(1);
    filter: blur(0.8px) contrast(0.7) brightness(0.8) sepia(0.4) hue-rotate(5deg);
  }
}

/* Progressive rot levels - 3 levels with dramatic but STATIC effects (no flickering) */
.post.fresh {
    /* Fresh posts look normal */
    opacity: 1;
}

.post.rotten .post-content {
    /* Moderately rotten - beginning decay */
    font-family: 'Creepster', 'VT323', monospace;
    color: #d4aa7d;
    filter: blur(0.3px) contrast(0.92) brightness(0.95) sepia(0.2);
    opacity: 0.96;
    letter-spacing: 0.04em;
    word-spacing: 0.09em;
    text-shadow: 1px 1px 2px #000, 0 0 4px #6a003a;
    transform: rotate(-0.5deg);
}

.post.completely-rotten {
    /* Background styling for completely rotten posts */
    background: repeating-linear-gradient(135deg, #2a1a1a 0 8px, #3a2a2a 8px 16px);
    border-radius: 6px;
    border: 2px dashed #6a003a;
    position: relative;
    overflow: hidden;
}

.post.completely-rotten .post-content {
    /* Completely rotten - maximum decay with heavy corruption on content only */
    font-family: 'Creepster', 'VT323', monospace;
    color: #7a9b47;
    text-shadow:
        1px 2px 2px #000,
        0 0 6px #4a6b27,
        0 0 2px #9bcc5f;
    filter: blur(0.4px) contrast(0.8) brightness(0.9) sepia(0.3);
    opacity: 0.9;
    letter-spacing: 0.12em;
    word-spacing: 0.22em;
    transform: rotate(-1deg) skewX(-1deg);
    font-size: 0.92em;
    position: relative;
    animation: rotWave 3.5s infinite ease-in-out;
}

.post.completely-rotten .post-content::after {
    content: '';
    display: block;
    position: absolute;
    left: 0; right: 0; bottom: 0; height: 12px;
    background: url('../assets/bg-noise.png');
    opacity: 0.18;
    pointer-events: none;
}

/* Corruption animations - dramatically different */
.user-select {
    background: rgba(30, 0, 30, 0.7);
    color: #ff2a2a;
    border: 2px solid #6a003a;
    border-radius: 6px;
    font-family: 'Creepster', 'VT323', monospace;
    font-size: 0.95em;
    padding: 0.3em 1em;
    box-shadow: 0 0 8px #6a003a, 0 0 2px #000 inset;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.user-select:focus {
    border-color: #ff2a2a;
    box-shadow: 0 0 12px #ff2a2a, 0 0 2px #000 inset;
    outline: none;
}
/* Horror Facebook Theme Styles */

body {
  background: #18181a url('../assets/bg-noise.png') repeat;
  color: #e0e0e0;
  font-family: 'VT323', monospace, 'Creepster', cursive, sans-serif;
  margin: 0;
  min-height: 100vh;
}

.login-bg {
    background: #18181a url('../assets/bg-noise.png') repeat;
    color: #e0e0e0;
    font-family: 'VT323', monospace, 'Creepster', cursive, sans-serif;
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-container {
    background: rgba(30, 30, 34, 0.97);
    border: 2px solid #3a3a3d;
    border-radius: 12px;
    box-shadow: 0 0 24px #000a, 0 0 2px #fff2 inset;
    padding: 2.5rem 2rem 1.5rem 2rem;
    max-width: 350px;
    width: 100%;
    text-align: center;
}
.login-logo {
    width: 90px;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 8px #6e1a1a);
}
h1 {
    font-family: 'Creepster', cursive, sans-serif;
    font-size: 1.8rem;
    margin: 0.2em 0 0.1em 0;
    color: #e84a5f;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0 #000, 0 0 8px #e84a5f77;
}
.tagline {
    font-size: 0.95rem;
    color: #bdbdbd;
    margin-bottom: 1.2em;
}
form fieldset {
    border: 1px solid #444;
    border-radius: 6px;
    margin-bottom: 1em;
    padding: 0.7em 0.5em 0.5em 0.5em;
    background: #232326;
}
.account-type {
    display: block;
    margin: 0.3em 0;
    font-size: 0.92em;
    cursor: pointer;
}
.account-type input[type="radio"] {
    accent-color: #e84a5f;
    margin-right: 0.4em;
}
.desc {
    color: #bdbdbd;
    font-size: 0.85em;
    margin-left: 0.2em;
}
#login-fields input {
    width: 90%;
    margin: 0.4em 0;
    padding: 0.5em;
    border-radius: 4px;
    border: 1px solid #444;
    background: #19191b;
    color: #e0e0e0;
    font-size: 0.95em;
}
.login-btn {
    background: #e84a5f;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.7em 2.2em;
    font-size: 0.95em;
    font-family: 'VT323', monospace;
    margin-top: 0.7em;
    cursor: pointer;
    box-shadow: 0 0 8px #e84a5f44;
    transition: background 0.2s;
}
.login-btn:hover {
    background: #b71c1c;
}
.login-message {
    margin-top: 1em;
    font-size: 0.95em;
    min-height: 1.5em;
}
.login-message.success {
    color: #7fff7f;
    text-shadow: 0 0 4px #0f0a;
}
.login-message.error {
    color: #ff7f7f;
    text-shadow: 0 0 4px #f00a;
}
footer {
    margin-top: 2em;
    color: #666;
    font-size: 0.8em;
}

.feed-container {
  max-width: 700px;
  margin: 2.5rem auto 1.5rem auto;
  background: rgba(30,30,34,0.82) url('../assets/logo.png') center center/100% 100% no-repeat;
  border: 2px solid #3a3a3d;
  border-radius: 14px;
  box-shadow: 0 0 24px #000a, 0 0 2px #fff2 inset;
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  position: relative;
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  overflow: hidden;
}
.feed-header {
  text-align: center;
  margin-bottom: 1.2em;
  background: rgba(20, 20, 24, 0.95);
  border: 1px solid #6a003a;
  border-radius: 12px;
  padding: 1.2em;
  margin: -1.5rem -1.5rem 1.2em -1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Shared post indicator - solid background for readability */
.shared-post-indicator {
  background: rgba(232, 74, 95, 0.9);
  border: 1px solid #e84a5f;
  border-radius: 8px;
  padding: 0.8em;
  margin-bottom: 1em;
  text-align: center;
  font-size: 0.9em;
  color: #fff;
  box-shadow: 0 2px 8px rgba(232, 74, 95, 0.3);
}

.shared-post-indicator .view-all-link,
.shared-post-indicator .login-link {
  color: #fff;
  text-decoration: underline;
  margin-left: 0.5em;
  font-weight: bold;
}

.shared-post-indicator .view-all-link:hover,
.shared-post-indicator .login-link:hover {
  color: #ffdddd;
  text-shadow: 0 0 4px #fff;
}
.feed-logo {
  width: 85px;
  margin-bottom: 0.2em;
  filter: drop-shadow(0 0 8px #6e1a1a);
}
.feed-title {
  font-family: 'Creepster', cursive, sans-serif;
  font-size: 1.9rem;
  color: #e84a5f;
  margin: 0.1em 0 0.2em 0;
  text-shadow: 2px 2px 0 #000, 0 0 8px #e84a5f77;
}
.entry-warning {
  background: #232326;
  border: 1.5px solid #e84a5f;
  border-radius: 8px;
  color: #e84a5f;
  padding: 1.1em 1em 1em 1em;
  margin-bottom: 1.2em;
  font-size: 0.95em;
  box-shadow: 0 0 8px #e84a5f33;
}
.post-form {
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  background: rgba(25,25,27,0.68);
  backdrop-filter: blur(4px) saturate(120%);
  -webkit-backdrop-filter: blur(4px) saturate(120%);
  border: 1.5px solid #e84a5f;
  border-radius: 10px;
  padding: 1em 1em 0.7em 1em;
  margin-bottom: 1.2em;
  box-shadow: 0 0 12px #e84a5f22;
}
.post-form textarea {
  background: #232326;
  color: #e0e0e0;
  border: 1.5px solid #e84a5f;
  border-radius: 6px;
  font-size: 0.98em;
  font-family: 'VT323', monospace;
  padding: 0.7em 0.9em;
  min-height: 3.5em;
  resize: vertical;
  margin-bottom: 0.3em;
  box-shadow: 0 0 8px #e84a5f22;
  transition: border 0.2s, box-shadow 0.2s;
}
.post-form textarea:focus {
  border: 1.5px solid #e84a5f;
  box-shadow: 0 0 12px #e84a5f77;
  outline: none;
}
.post-form select {
  background: #232326;
  color: #e84a5f;
  border: 1.5px solid #e84a5f;
  border-radius: 6px;
  font-size: 0.95em;
  font-family: 'VT323', monospace;
  padding: 0.5em 0.7em;
  margin-bottom: 0.2em;
  box-shadow: 0 0 6px #e84a5f22;
  transition: border 0.2s, box-shadow 0.2s;
}
.post-form select:focus {
  border: 1.5px solid #e84a5f;
  box-shadow: 0 0 8px #e84a5f77;
  outline: none;
}
.post-form button {
  background: #e84a5f;
  color: #fff;
  border: 1.5px solid #e84a5f;
  border-radius: 6px;
  font-size: 0.98em;
  font-family: 'VT323', monospace;
  padding: 0.5em 1.3em;
  margin-top: 0.2em;
  cursor: pointer;
  box-shadow: 0 0 8px #e84a5f44;
  transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.2s;
  align-self: flex-end;
}
.post-form button:hover {
  background: #b71c1c;
  color: #fff;
  border-color: #b71c1c;
  box-shadow: 0 0 12px #b71c1c77;
}
.feed-lanes {
  display: flex;
  justify-content: space-between;
  gap: 0.5em;
  margin-bottom: 1.1em;
  background: rgba(25,25,27,0.68);
  backdrop-filter: blur(3px) saturate(120%);
  -webkit-backdrop-filter: blur(3px) saturate(120%);
  border-radius: 8px;
  padding: 0.5em 0.3em;
  box-shadow: 0 0 8px #e84a5f22;
  position: relative;
  z-index: 1;
}
.lane-btn {
  background: #232326;
  color: #e0e0e0;
  border: 1.5px solid #444;
  border-radius: 6px;
  font-size: 0.93em;
  font-family: 'VT323', monospace;
  padding: 0.5em 1.2em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.2s;
  letter-spacing: 0.5px;
  margin: 0 0.1em;
  box-shadow: 0 0 4px #e84a5f22;
  outline: none;
}
.lane-btn.active, .lane-btn:focus, .lane-btn:hover {
  background: #e84a5f;
  color: #fff;
  border-color: #e84a5f;
  box-shadow: 0 0 8px #e84a5f77;
  text-shadow: 0 0 2px #000, 0 0 6px #e84a5f77;
}
.emotion-select {
  background: #232326;
  color: #e84a5f;
  border: 1.5px solid #e84a5f;
  border-radius: 6px;
  font-size: 0.95em;
  font-family: 'VT323', monospace;
  padding: 0.5em 0.7em;
  margin-bottom: 0.2em;
  box-shadow: 0 0 6px #e84a5f22;
  transition: border 0.2s, box-shadow 0.2s;
}
.emotion-select:focus {
  border: 1.5px solid #e84a5f;
  box-shadow: 0 0 8px #e84a5f77;
  outline: none;
}
.post-message {
  min-height: 1.5em;
  margin-top: 0.2em;
  font-size: 0.95em;
}
.post-message.success {
  color: #7fff7f;
  text-shadow: 0 0 4px #0f0a;
}
.post-message.error {
  color: #ff7f7f;
  text-shadow: 0 0 4px #f00a;
}
.feed {
  background: transparent;
  margin-top: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 1.1em;
}
.post {
  background: rgba(35,35,38,0.68);
  backdrop-filter: blur(3px) saturate(120%);
  -webkit-backdrop-filter: blur(3px) saturate(120%);
  border: 1.5px solid #444;
  border-radius: 8px;
  padding: 1em 1em 0.7em 1em;
  box-shadow: 0 0 8px #000a;
  position: relative;
}
.post-header {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 0.8em;
  font-size: 0.92em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid #333;
}
.post-user {
  font-weight: bold;
  color: #e84a5f;
  font-family: 'Creepster', cursive, sans-serif;
  font-size: 0.95em;
  letter-spacing: 1px;
}

.username {
  font-weight: bold;
  color: #ff6b6b;
  font-family: 'Creepster', cursive, sans-serif;
  font-size: 1.1em;
  letter-spacing: 1.5px;
  text-shadow: 0 0 3px #ff6b6b;
  display: inline-block;
  margin-right: 0.5em;
}
.user-attached { color: #e84a5f; }
.user-semi { color: #ffb347; }
.user-blob { color: #bdbdbd; }

.emotion {
  background: #333;
  color: #e84a5f;
  border: 1px solid #555;
  border-radius: 12px;
  padding: 0.2em 0.6em;
  font-size: 0.75em;
  font-family: 'VT323', monospace;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.timestamp {
  color: #888;
  font-size: 0.75em;
  margin-left: auto;
  font-family: 'VT323', monospace;
  font-weight: bold;
  background: rgba(0,0,0,0.3);
  padding: 0.2em 0.5em;
  border-radius: 8px;
  border: 1px solid #444;
}
.post-content {
  font-size: 0.98em;
  color: #e0e0e0;
  margin-bottom: 0.2em;
  font-family: 'VT323', monospace;
}
.empty-feed {
  color: #bdbdbd;
  text-align: center;
  font-size: 0.95em;
  margin: 2em 0;
}
.feed-footer {
  text-align: center;
  color: #666;
  font-size: 0.85em;
  margin-top: 2em;
}
.feed-footer a {
  color: #e84a5f;
  text-decoration: underline;
  margin-right: 1em;
}
.logout-btn {
  background: #232326;
  color: #e84a5f;
  border: 1.5px solid #e84a5f;
  border-radius: 6px;
  padding: 0.4em 1.2em;
  font-size: 0.92em;
  font-family: 'VT323', monospace;
  margin-left: 1em;
  margin-top: 0.2em;
  cursor: pointer;
  box-shadow: 0 0 8px #e84a5f44;
  transition: background 0.2s, color 0.2s;
  float: right;
}
.logout-btn:hover {
  background: #e84a5f;
  color: #fff;
}

/* Modular Stupid Bookface CSS Additions */
.error-message {
  background: #660000;
  color: #ff6666;
  padding: 1em;
  border-radius: 8px;
  margin-bottom: 1em;
  border: 2px solid #ff0000;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.character-counter {
  font-size: 0.8em;
  color: #aaa;
  text-align: right;
  margin-top: 0.5em;
}

.temporary-message {
  position: absolute;
  top: -2em;
  right: 0;
  background: #333;
  color: #00ff00;
  padding: 0.5em;
  border-radius: 4px;
  font-size: 0.8em;
  z-index: 1000;
}

.no-posts {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 2em;
  margin: 2em 0;
}

.post-actions {
  position: relative;
}

.posts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2em 0 1em 0;
}

.posts-header h2 {
  color: #e84a5f;
  font-family: 'Creepster', serif;
  margin: 0;
}

.refresh-button {
  background: linear-gradient(135deg, #2a0a0a, #4a1a1a);
  color: #ff2a2a;
  border: 1px solid #6a003a;
  border-radius: 6px;
  padding: 0.6em 1.2em;
  cursor: pointer;
  font-family: 'VT323', monospace;
  font-size: 1.1em;
  text-shadow: 0 0 4px #ff2a2a;
  box-shadow: 0 0 8px rgba(255, 42, 42, 0.3);
  transition: all 0.2s ease;
}

.refresh-button:hover {
  background: linear-gradient(135deg, #4a1a1a, #6a2a2a);
  box-shadow: 0 0 12px rgba(255, 42, 42, 0.5);
  transform: translateY(-1px);
}

.refresh-button:active {
  transform: translateY(0);
  box-shadow: 0 0 6px rgba(255, 42, 42, 0.4);
}

/* Enhanced form styling */
.form-row {
  margin-bottom: 1em;
  display: flex;
  gap: 1em;
  align-items: center;
}

.username-input {
  flex: 1;
  background: #222;
  color: #fff;
  border: 1px solid #666;
  border-radius: 4px;
  padding: 0.5em;
  font-family: 'VT323', monospace;
}

.post-textarea {
  flex: 1;
  background: #222;
  color: #fff;
  border: 1px solid #666;
  border-radius: 4px;
  padding: 0.5em;
  font-family: 'VT323', monospace;
  resize: vertical;
  min-height: 100px;
}

.emotion-select {
  background: #222;
  color: #fff;
  border: 1px solid #666;
  border-radius: 4px;
  padding: 0.5em;
  font-family: 'VT323', monospace;
}

.submit-button {
  background: #e84a5f;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.7em 1.5em;
  cursor: pointer;
  font-family: 'VT323', monospace;
  font-size: 1.1em;
}

.submit-button:hover {
  background: #d63447;
}

.submit-button:disabled {
  background: #666;
  cursor: not-allowed;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .posts-header {
    flex-direction: column;
    gap: 1em;
    text-align: center;
  }
}

/* Clonky glow animation */
@keyframes clonky-glow {
  0% {
    filter: drop-shadow(0 0 15px #ff00cc) drop-shadow(0 0 30px #ff00cc);
  }
  100% {
    filter: drop-shadow(0 0 25px #ff00cc) drop-shadow(0 0 50px #ff00cc) drop-shadow(0 0 75px #ff00cc);
  }
}

/* Clonky mascot styling */
#clonky-mascot {
  display: none;
  position: fixed;
  bottom: 2em;
  right: 2em;
  z-index: 99999;
  border-radius: 1em;
  padding: 1em 2em;
  max-width: 320px;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.clonky-image-container {
  margin-bottom: 0.7em;
}

.clonky-image {
  width: 80px;
  height: 80px;
  display: block;
  margin: 0 auto;
  background: none;
  filter: drop-shadow(0 0 15px #ff00cc) drop-shadow(0 0 30px #ff00cc) drop-shadow(0 0 45px #ff00cc);
  animation: clonky-glow 2s ease-in-out infinite alternate;
}

#clonky-message {
  font-family: VT323, Creepster, monospace;
  font-size: 1.3em;
  color: #ff00cc;
  margin-bottom: 0.7em;
  background: rgba(30, 30, 30, 0.9);
  padding: 0.5em;
  border-radius: 0.5em;
}

#clonky-toggle {
  background: #222;
  color: #fff;
  border: none;
  padding: 0.4em 1em;
  border-radius: 0.5em;
  cursor: pointer;
}