body {
  margin: 0;
  padding: 0;
  font-family: 'Press Start 2P', 'Courier New', monospace;
  background: radial-gradient(circle at top, rgba(33, 150, 243, 0.15), transparent 55%), #05050d;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}

#stars-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

header {
  margin-top: 80px;
  text-align: center;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

main {
  position: relative;
}

.title-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 0;
}

.title-logo {
  height: 80px !important;
  max-height: 80px !important;
  width: auto !important;
  max-width: 80px !important;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

h1 {
  font-size: 1.4rem;
  margin: 0;
  letter-spacing: 0.08rem;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(0, 230, 118, 0.6);
  line-height: 1.2;
}

.subhead {
  margin: 0;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem;
  order: 2;
}

main {
  width: 100%;
  max-width: 900px;
  margin: 20px auto 60px;
  padding: 0 20px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.container {
  background: rgba(5, 5, 15, 0.95);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 30px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  font-size: 0.65rem;
  letter-spacing: 0.12rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.zodiac-button {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  padding: 1rem 0.8rem;
  border-radius: 12px;
  font-size: 0.6rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.zodiac-button.selected {
  border-color: #00e676;
  box-shadow: 0 0 16px rgba(0, 230, 118, 0.5);
  transform: translateY(-2px);
  background: rgba(0, 230, 118, 0.08);
}

.timeframe-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.timeframe-button {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.02);
  color: #ffffff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.65rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.timeframe-button.selected {
  border-color: #2196F3;
  background: rgba(33, 150, 243, 0.15);
}

.control-hint {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
}

input[type="text"] {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  font-size: 0.75rem;
  letter-spacing: 0.08rem;
  text-transform: none;
  font-family: 'Press Start 2P', 'Courier New', monospace;
}

input[type="text"]:focus {
  outline: none;
  border-color: #4CAF50;
}

#submit-btn {
  width: 100%;
  padding: 15px 0;
  border: 2px solid #ffffff;
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.8), rgba(33, 150, 243, 0.9));
  color: #ffffff;
  font-size: 0.8rem;
  letter-spacing: 0.2rem;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

#submit-btn:hover {
  filter: brightness(1.05);
}

.btn-loading {
  font-size: 0.7rem;
}

#loading-container {
  margin-top: 20px;
  text-align: center;
}

#loading-message {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 10px;
}

#results-container {
  margin-top: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.6);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.result-header h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.08rem;
}

.selected-sign {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
}

#interpretation-output {
  min-height: 240px;
  border-radius: 10px;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.6;
  font-size: 0.8rem;
  color: #ffffff;
}
#interpretation-output,
.entry-full,
.seo-intro p {
  font-style: italic;
  text-transform: none;
}

#interpretation-output .title-general {
  color: #00ff88;
  font-size: 0.72rem;
  display: block;
  margin-top: 8px;
  margin-bottom: 4px;
  font-weight: bold;
}

#interpretation-output .title-personalized {
  color: #00bfff;
  font-size: 0.72rem;
  display: block;
  margin-top: 10px;
  margin-bottom: 4px;
  font-weight: bold;
}

#interpretation-output .title-advice {
  color: #ff6b35;
  font-size: 0.72rem;
  display: block;
  margin-top: 10px;
  margin-bottom: 4px;
  font-weight: bold;
}

#interpretation-output .title-emotional {
  color: #ffd700;
  font-size: 0.72rem;
  display: block;
  margin-top: 10px;
  margin-bottom: 4px;
  font-weight: bold;
}

#new-number-btn {
  margin-top: 20px;
  border: 2px solid #ffffff;
  background: rgba(33, 150, 243, 0.9);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.12rem;
  cursor: pointer;
}

#new-number-btn:hover {
  background: rgba(33, 150, 243, 1);
}

.share-buttons {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.share-label {
  font-size: 0.65rem;
  letter-spacing: 0.12rem;
}

.share-btn {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-size: 0.6rem;
  letter-spacing: 0.12rem;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.share-btn:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.publish-btn {
  background: rgba(255, 255, 255, 0.04);
}

.publish-status {
  font-size: 0.55rem;
  color: #00e676;
}

#error-container {
  margin-top: 18px;
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.6);
  border-radius: 10px;
  padding: 1rem;
}

#error-container p {
  margin: 0;
  font-size: 0.7rem;
  color: #ff6b6b;
}

#last-request-notification {
  margin-top: 20px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 230, 118, 0.7);
  background: rgba(0, 230, 118, 0.08);
  font-size: 0.65rem;
  text-align: center;
}

.seo-intro {
  max-width: 800px;
  margin: 32px auto 0;
  padding: 0 20px 40px;
  text-align: left;
}

.seo-intro p {
  margin: 0;
  font-size: 0.65rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.home-button-row {
  display: flex;
  justify-content: center;
  margin-top: 1.2rem;
}

.home-button {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  padding: 0.25rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
  background: rgba(3, 3, 15, 0.55);
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  z-index: 10;
}

.home-button:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .home-button-row {
    justify-content: flex-end;
    position: absolute;
    top: 1rem;
    right: 1rem;
    margin-top: 0;
    z-index: 10;
  }
  .home-button {
    position: fixed !important;
    top: 1rem !important;
    right: 1rem !important;
    padding: 0.06rem 0.1rem !important;
    border: none !important;
    background: transparent !important;
    opacity: 0.5 !important;
    box-shadow: none !important;
    width: auto !important;
    min-width: auto !important;
    height: auto !important;
    flex-direction: column !important;
    gap: 0.06rem !important;
    margin: 0 !important;
  }
  .home-crystal {
    width: 10px !important;
    height: 10px !important;
    flex-shrink: 0;
  }
  .home-url {
    font-size: 0.25rem !important;
    display: block;
    white-space: nowrap;
  }
  .home-tooltip {
    display: none;
  }
  .home-button:hover {
    opacity: 0.85;
  }
  .title-container {
    gap: 6px;
    align-items: center;
    flex-direction: column;
  }
  
  .title-logo {
    height: 42px !important;
    max-height: 42px !important;
    width: auto !important;
    max-width: 42px !important;
    flex-shrink: 0;
  }
  
  h1 {
    font-size: 0.85rem;
    line-height: 1.3;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
    color: rgba(220, 220, 220, 0.8);
  }
  
  .mobile-title-break {
    display: none;
  }
}

@media (min-width: 481px) and (max-width: 1024px) {
  .home-button-row {
    justify-content: flex-end;
  }
  .home-button {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 0.2rem 0.3rem;
    border: none;
    background: transparent;
    opacity: 0.4;
    box-shadow: none;
    width: auto;
    min-width: auto;
    height: auto;
    flex-direction: row;
    gap: 0.3rem;
    justify-content: center;
    align-items: center;
  }
  .home-crystal {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }
  .home-url {
    font-size: 0.4rem;
    display: block;
    white-space: nowrap;
  }
  .home-tooltip {
    display: none;
  }
  .title-container {
    gap: 6px;
  }
  .title-logo {
    height: 60px !important;
    max-height: 60px !important;
    width: auto !important;
    max-width: 60px !important;
  }
  .published-button.floating {
    position: fixed;
    bottom: 1.6rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    margin: 0;
  }
}

.home-tooltip {
  position: absolute;
  top: -35px;
  background: rgba(0, 0, 0, 0.9);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.55rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.home-button:hover .home-tooltip {
  opacity: 1;
}

.home-url {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

.home-crystal {
  width: 44px;
  height: 44px;
}

.published-button.floating {
  position: fixed;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  background: rgba(33, 150, 243, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-size: 0.6rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: #ffffff;
  font-family: 'Press Start 2P', 'Courier New', monospace;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.published-button.floating:hover {
  opacity: 1;
  background: rgba(33, 150, 243, 1);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.published-button.floating:active {
  transform: translateX(-50%) translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

@keyframes twinkle {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}

.twinkle {
  animation: twinkle 3s infinite;
}

.shooting-star {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: white;
  animation: shoot 2s linear forwards;
}

@keyframes shoot {
  0% {
    transform: translate(0, 0) rotate(45deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(150px, 150px) rotate(45deg) scale(0.2);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .title-container {
    gap: 6px;
    align-items: center;
  }
  
  .title-logo {
    height: 45px !important;
    max-height: 45px !important;
    width: auto !important;
    max-width: 45px !important;
  }
  
  h1 {
    font-size: 1.1rem;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.25);
    color: rgba(235, 235, 235, 0.85);
  }

  .container {
    padding: 24px;
  }

  .zodiac-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  }

  .timeframe-row {
    justify-content: space-between;
  }
}


@media (max-width: 480px) {
  .zodiac-button {
    font-size: 0.55rem;
    padding: 0.75rem 0.4rem;
  }

  #submit-btn {
    font-size: 0.7rem;
    letter-spacing: 0.15rem;
  }

  .timeframe-row {
    flex-direction: column;
  }
  
  .published-button.floating {
    position: fixed !important;
    bottom: 1.6rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 100 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(33, 150, 243, 0.5) !important;
    cursor: pointer !important;
    user-select: none !important;
  }
}








.published-home {
  position: fixed;
  top: 0.9rem;
  right: 0.9rem;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  opacity: 0.85;
}

.published-home .home-crystal {
  width: 36px;
  height: 36px;
}

/* Expandable entry styles */
.expandable-entry .entry-header-clickable {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    padding: 8px;
    margin: -8px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 12px;
}

.expandable-entry .entry-header-clickable:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.expandable-entry.expanded .entry-header-clickable {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.expand-icon {
    font-size: 1.2rem;
    color: #00BFFF;
    font-weight: bold;
    transition: transform 0.3s ease;
    margin: 0 10px;
    flex-shrink: 0;
    line-height: 1;
}

.expandable-entry.expanded .expand-icon {
    transform: rotate(0deg);
}

.expandable-entry .entry-content {
    margin-top: 12px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 2000px;
    }
}

.published-entry {
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
}

.published-entry header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.entry-symbol {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
}

.published-entry time {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.6);
}

.entry-meta {
    margin-bottom: 12px;
}

.entry-meta h3 {
    font-size: 0.65rem;
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.8);
}

.entry-full {
    font-size: 0.7rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    white-space: pre-wrap;
}








