body {
    background-color: #161616; /* Grey background */
    font-family: 'Press Start 2P', 'Courier New', monospace; /* Pixel-style font with fallback */
    text-align: center;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Flexible height */
    overflow-y: auto; /* Allow vertical scrolling */
    position: relative; /* For positioning stars */
    color: #ffffff;
}

header {
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    transform: translateX(-30px);
}

.logo {
    height: 85px !important;
    max-height: 85px !important;
    max-width: 85px !important;
    width: auto !important;
    min-width: 0 !important;
    object-fit: contain !important;
    display: block !important;
    position: relative !important;
    z-index: 1 !important;
    filter: drop-shadow(0 0 5px rgba(78, 177, 255, 0.5)) !important;
    margin-right: -8px !important;
    margin-left: -15px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
    align-self: center !important;
    vertical-align: middle !important;
    top: 0 !important;
    transform: none !important;
}

h1 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px rgba(33, 150, 243, 0.7), 0 0 35px rgba(33, 150, 243, 0.7), 0 0 40px rgba(33, 150, 243, 0.7), 0 0 50px rgba(33, 150, 243, 0.7), 0 0 75px rgba(33, 150, 243, 0.7);
    animation: glow 3s ease-in-out infinite alternate;
}

h1 .mobile-break-title {
    display: none;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px rgba(33, 150, 243, 0.7), 0 0 35px rgba(33, 150, 243, 0.7), 0 0 40px rgba(33, 150, 243, 0.7), 0 0 50px rgba(33, 150, 243, 0.7), 0 0 75px rgba(33, 150, 243, 0.7);
    }
    to {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff, 0 0 40px rgba(33, 150, 243, 0.9), 0 0 70px rgba(33, 150, 243, 0.9), 0 0 80px rgba(33, 150, 243, 0.9), 0 0 100px rgba(33, 150, 243, 0.9), 0 0 150px rgba(33, 150, 243, 0.9);
    }
}

@keyframes glow-mobile-subtle {
    from {
        text-shadow: 0 0 2px rgba(33, 150, 243, 0.3), 0 0 4px rgba(33, 150, 243, 0.2);
    }
    to {
        text-shadow: 0 0 4px rgba(33, 150, 243, 0.4), 0 0 8px rgba(33, 150, 243, 0.3);
    }
}

@keyframes shimmer-load {
    0% {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }
    25% {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5), 0 0 8px rgba(33, 150, 243, 0.6), 0 0 15px rgba(33, 150, 243, 0.5), 0 0 25px rgba(33, 150, 243, 0.4);
    }
    50% {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5), 0 0 12px rgba(33, 150, 243, 0.8), 0 0 20px rgba(33, 150, 243, 0.7), 0 0 35px rgba(33, 150, 243, 0.6);
    }
    75% {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5), 0 0 8px rgba(33, 150, 243, 0.6), 0 0 15px rgba(33, 150, 243, 0.5), 0 0 25px rgba(33, 150, 243, 0.4);
    }
    100% {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5), 0 0 3px rgba(33, 150, 243, 0.3), 0 0 6px rgba(33, 150, 243, 0.2);
    }
}


h2 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 20px;
}

footer {
    margin-top: 20px;
    font-size: 0.8rem;
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

a {
    color: #ffffff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

main {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    background-color: rgba(30, 30, 40, 0.7);
    padding: 30px;
    border-radius: 8px;
    margin: 20px auto;
}

/* Form Styles */
#number-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

label {
    display: block;
    color: #ffffff;
    font-size: 0.7rem;
    margin-bottom: 10px;
    text-align: center;
}

input[type="text"],
select {
    width: 200px !important;
    max-width: 100%;
    padding: 12px 15px;
    background-color: rgba(22, 22, 22, 0.8);
    border: 2px solid #ffffff;
    color: #ffffff;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 0.7rem;
    line-height: 1.4;
    box-sizing: border-box;
    border-radius: 4px;
    height: 50px !important;
    text-align: center;
    margin: 0 auto;
    display: block;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Remove autocomplete styling */
input[type="text"]:-webkit-autofill,
input[type="text"]:-webkit-autofill:hover,
input[type="text"]:-webkit-autofill:focus,
input[type="text"]:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(22, 22, 22, 0.8) inset !important;
    -webkit-text-fill-color: #ffffff !important;
    background-color: rgba(22, 22, 22, 0.8) !important;
}

/* Prevent autocomplete dropdown suggestions */
input[type="text"]::-webkit-contacts-auto-fill-button,
input[type="text"]::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
    height: 0;
    width: 0;
    margin: 0;
}

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

input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

select option {
    background-color: #161616;
    color: #ffffff;
}

textarea {
    width: 100%;
    padding: 15px;
    background-color: rgba(22, 22, 22, 0.8);
    border: 2px solid #ffffff;
    color: #ffffff;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 0.6rem;
    line-height: 1.6;
    resize: vertical;
    box-sizing: border-box;
    border-radius: 4px;
}

textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

button {
    background-color: #4CAF50;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 15px 30px;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 0.7rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

button:active {
    transform: scale(0.98);
}

button:disabled {
    background-color: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

#new-number-btn {
    margin-top: 20px;
    background-color: #2196F3;
    align-self: center;
}

#new-number-btn:hover {
    background-color: #0b7dda;
}

/* Loading Display */
#loading-container {
    margin-top: 30px;
    text-align: center;
    padding: 40px 20px;
}

#loading-message {
    font-size: 0.8rem;
    color: #ffffff;
    margin-top: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* SEO Intro Paragraph */
.seo-intro {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    text-align: left;
}

.seo-intro p {
    font-size: 0.45rem;
    line-height: 1.6;
    color: rgba(200, 200, 200, 0.7);
    margin: 0;
    font-weight: normal;
}

.published-link {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 0.55rem;
    padding: 0.45rem 0.85rem;
    border-radius: 4px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background-color: rgba(30, 30, 40, 0.8);
    box-shadow: 0 0 8px rgba(15, 188, 249, 0.4);
    transition: all 0.3s ease;
    display: inline-block;
}

.published-link:hover {
    background-color: rgba(79, 195, 247, 0.1);
    border-color: #9C27B0;
    box-shadow: 0 0 12px rgba(79, 195, 247, 0.9);
}

.back-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    border: 2px solid #00BFFF;
    color: #ffffff;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    background: linear-gradient(135deg, rgba(0, 176, 255, 0.6), rgba(0, 133, 255, 0.9));
    box-shadow: 0 0 10px rgba(0, 176, 255, 0.7);
    text-decoration: none;
    font-size: 0.6rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.back-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 15px rgba(0, 176, 255, 0.9);
}

/* Results Display */
#results-container {
    margin-top: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#interpretation-output {
    background-color: rgba(22, 22, 22, 0.8);
    border: 2px solid #ffffff;
    padding: 30px;
    border-radius: 4px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #ffffff;
    word-wrap: break-word;
    min-height: 400px;
    font-family: 'Press Start 2P', 'Courier New', monospace;
}

/* Colored titles for interpretation categories */
#interpretation-output .title-number {
    color: #FFD700; /* Gold */
    font-size: 0.9rem;
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

#interpretation-output .title-general {
    color: #00FF88; /* Bright Green */
    font-size: 0.75rem;
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
    font-weight: bold;
}

#interpretation-output .title-personalized {
    color: #00BFFF; /* Deep Sky Blue */
    font-size: 0.75rem;
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
    font-weight: bold;
}

#interpretation-output .title-advice {
    color: #FF6B35; /* Vibrant Orange */
    font-size: 0.75rem;
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
    font-weight: bold;
}

#interpretation-output .title-emotional {
    color: #FF1493; /* Deep Pink */
    font-size: 0.75rem;
    display: block;
    margin-top: 12px;
    margin-bottom: 6px;
    font-weight: bold;
}

/* Error Display */
#error-container {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(244, 67, 54, 0.2);
    border: 2px solid #f44336;
    border-radius: 4px;
}

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

/* Share Buttons */
.share-buttons {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
    background: rgba(0, 0, 0, 0.45);
    padding: 10px;
    border-radius: 10px;
}

.share-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.7rem;
}

.share-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    font-size: 0.65rem;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

.share-btn:active {
    transform: translateY(1px);
}

.share-btn.publish-btn {
    border-color: #00B0FF;
    box-shadow: 0 0 8px rgba(0, 176, 255, 0.8), 0 0 12px rgba(0, 176, 255, 0.5);
}

/* Desktop-specific publish button color */
@media (min-width: 1025px) {
    .share-btn.publish-btn {
        border-color: #9C27B0;
        background-color: rgba(156, 39, 176, 0.2);
        box-shadow: 0 0 8px rgba(156, 39, 176, 0.8), 0 0 12px rgba(156, 39, 176, 0.5);
    }
    
    .share-btn.publish-btn:hover {
        background-color: rgba(156, 39, 176, 0.3);
        border-color: #BA68C8;
        box-shadow: 0 0 10px rgba(156, 39, 176, 1), 0 0 15px rgba(156, 39, 176, 0.8);
    }
}

/* Published Readings button styled as share button */
.share-btn.published-readings-btn {
    text-decoration: none !important;
    border-color: rgba(79, 195, 247, 0.8);
    box-shadow: 0 0 8px rgba(79, 195, 247, 0.6), 0 0 12px rgba(79, 195, 247, 0.4);
    display: inline-block;
    cursor: pointer;
}

.share-btn.published-readings-btn:hover {
    border-color: #9C27B0;
    box-shadow: 0 0 10px rgba(79, 195, 247, 0.9), 0 0 15px rgba(79, 195, 247, 0.7);
    text-decoration: none;
}

@media (max-width: 1024px) {
    .share-buttons {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: rgba(5, 5, 5, 0.95) !important;
        padding: 10px 8px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6) !important;
        z-index: 1000 !important;
        display: flex !important;
    }

    body {
        padding-bottom: 120px;
    }

    .share-btn {
        flex: 1 1 130px;
        min-width: 120px;
        text-align: center;
    }
    
    /* Hide desktop floating published link on mobile/tablet - ensure it's hidden everywhere */
    .published-link.floating,
    main .published-link.floating,
    main > .published-link.floating,
    body .published-link.floating {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    /* Always show Published Readings button in share bar on mobile */
    .share-btn.published-readings-btn {
        display: inline-block !important;
    }
}

/* Published entries */
.published-entry {
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    line-height: 1.6;
}

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

/* 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 .entry-symbol {
    font-size: 0.8rem;
    color: #00BFFF;
    font-weight: bold;
}

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

.entry-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.entry-meta h3 {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.publish-status {
    color: #00e676;
    font-size: 0.6rem;
    font-family: 'Press Start 2P', 'Courier New', monospace;
}

/* Last Request Notification */
#last-request-notification {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(255, 193, 7, 0.2);
    border: 2px solid #FFC107;
    border-radius: 4px;
    text-align: center;
    animation: pulse-notification 2s ease-in-out infinite;
}

#last-request-notification p {
    color: #FFC107;
    font-size: 0.7rem;
    margin: 0;
    font-weight: bold;
}

@keyframes pulse-notification {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 15px rgba(255, 193, 7, 0.8);
    }
}

/* Star Animation Styles */
#stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* Let clicks pass through to elements below */
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: white;
    z-index: 1;
}

.twinkle {
    animation: twinkle 3s infinite;
}

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    /* iPad and tablet adjustments */
    .title-container {
        gap: 8px;
        transform: translateX(-20px);
        flex-wrap: nowrap !important;
    }
    
    .logo {
        height: 60px !important;
        max-height: 60px !important;
        max-width: 60px !important;
        flex-shrink: 0 !important;
    }
    
    h1 {
        font-size: 1rem;
        text-shadow: 0 0 4px rgba(33, 150, 243, 0.25);
        animation: none;
        flex-shrink: 1 !important;
    }
    
    h1 .mobile-break-title {
        display: none;
    }
}

@media (max-width: 768px) {
    .title-container {
        gap: 10px;
        transform: none !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100%;
        padding-left: 0;
    }
    
    .logo {
        height: 40px !important;
        max-height: 40px !important;
        max-width: 40px !important;
        flex-shrink: 0 !important;
        align-self: center !important;
        margin-left: 0 !important;
        margin-right: 8px !important;
    }
    
    h1 {
        font-size: 0.9rem;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5), 0 0 3px rgba(33, 150, 243, 0.3), 0 0 6px rgba(33, 150, 243, 0.2);
        animation: shimmer-load 2s ease-in-out 1, glow-mobile-subtle 3s ease-in-out 2s infinite alternate;
    }
    
    h1 .mobile-break-title {
        display: block;
    }
    
    h2 {
        font-size: 0.9rem;
    }
    
    label .mobile-break {
        display: block;
    }
    
    .container {
        padding: 20px;
        margin: 10px;
    }
    
    input[type="text"],
    select {
        width: 180px;
        height: 45px;
        font-size: 16px; /* Prevent iOS auto-zoom */
    }
    
    textarea {
        font-size: 0.5rem;
    }
    
    #interpretation-output {
        font-size: 0.75rem;
        line-height: 1.6;
    }
    
    button {
        font-size: 0.6rem;
        padding: 12px 24px;
    }
    
    #interpretation-output {
        font-size: 0.5rem;
        min-height: 300px;
    }
    
    label {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .title-container {
        gap: 8px;
        transform: none !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100%;
        padding-left: 0;
    }
    
    .logo {
        height: 35px !important;
        max-height: 35px !important;
        max-width: 35px !important;
        flex-shrink: 0 !important;
        align-self: center !important;
        margin-left: 0 !important;
        margin-right: 6px !important;
    }
    
    h1 {
        font-size: 0.8rem;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5), 0 0 2px rgba(33, 150, 243, 0.3), 0 0 4px rgba(33, 150, 243, 0.2);
        animation: shimmer-load 2s ease-in-out 1, glow-mobile-subtle 3s ease-in-out 2s infinite alternate;
    }
    
    h1 .mobile-break-title {
        display: block;
    }
    
    label .mobile-break {
        display: block;
    }
    
    .container {
        padding: 15px;
    }
    
    input[type="text"],
    select {
        width: 160px;
        height: 40px;
        font-size: 16px; /* Prevent iOS auto-zoom */
        padding: 8px 12px;
    }
    
    textarea {
        font-size: 0.45rem;
        padding: 10px;
    }
    
    #interpretation-output {
        font-size: 0.7rem;
        line-height: 1.9;
    }
    
    button {
        font-size: 0.5rem;
        padding: 10px 20px;
    }
    
    #interpretation-output {
        font-size: 0.45rem;
        padding: 15px;
        min-height: 250px;
    }
}

/* Pixel Oracle Home Button - Top Right Corner */
.home-button {
    position: fixed;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 0.35rem;
    transition: all 0.3s ease;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: none;
    gap: 0.25rem;
}

.home-button:hover {
    background: transparent;
    transform: scale(1.05);
    box-shadow: none;
}

.home-crystal {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.home-button:hover .home-crystal {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.home-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: #ffffff;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

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

.home-url {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.5rem;
    color: rgba(200, 200, 200, 0.9);
    text-shadow: 
        0 0 3px rgba(200, 200, 200, 0.8),
        0 0 6px rgba(200, 200, 200, 0.6);
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.home-button:hover .home-url {
    color: rgba(255, 255, 255, 1);
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 1),
        0 0 10px rgba(255, 255, 255, 0.8);
}

/* Responsive styles for home button */
@media (max-width: 1024px) {
    /* iPad adjustments for home button */
    .home-button {
        padding: 0.25rem;
        top: 0.5rem;
        right: 0.5rem;
        gap: 0.2rem;
        opacity: 0.7;
    }

    .home-crystal {
        width: 32px;
        height: 32px;
        opacity: 0.8;
    }

    .home-tooltip {
        font-size: 0.5rem;
        padding: 0.3rem 0.5rem;
    }

    .home-url {
        font-size: 0.35rem;
        opacity: 0.8;
    }
}

@media (max-width: 768px) {
    /* Mobile adjustments for home button */
    .home-button {
        padding: 0.2rem;
        top: 0.5rem;
        right: 0.5rem;
        gap: 0.18rem;
        opacity: 0.8;
    }

    .home-crystal {
        width: 28px;
        height: 28px;
        opacity: 0.85;
    }

    .home-tooltip {
        font-size: 0.45rem;
        padding: 0.3rem 0.45rem;
    }

    .home-url {
        font-size: 0.3rem;
        opacity: 0.85;
    }
}

@media (max-width: 480px) {
    /* Small mobile adjustments for home button */
    .home-button {
        padding: 0.15rem;
        top: 0.5rem;
        right: 0.5rem;
        border-width: 1px;
        border-radius: 4px;
        opacity: 0.85;
        gap: 0.15rem;
    }

    .home-crystal {
        width: 20px;
        height: 20px;
        opacity: 0.9;
    }

    .home-tooltip {
        font-size: 0.4rem;
        padding: 0.25rem 0.4rem;
    }

    .home-url {
        font-size: 0.25rem;
        opacity: 0.9;
    }
}

/* Floating published link - Desktop only */
@media (min-width: 1025px) {
    .published-link.floating {
        position: fixed;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
        padding: 0.6rem 1.2rem;
        background-color: rgba(30, 30, 40, 0.95);
        border: 2px solid #ffffff;
        border-radius: 4px;
        color: #ffffff;
        font-size: 0.55rem;
        box-shadow: 0 0 8px rgba(79, 195, 247, 0.8), 0 0 12px rgba(79, 195, 247, 0.6), 0 0 16px rgba(79, 195, 247, 0.4);
        display: inline-block !important;
    }
}

@media (min-width: 1025px) {
    .published-link.floating:hover {
        background-color: rgba(156, 39, 176, 0.3);
        border-color: #9C27B0;
        transform: translateX(-50%) scale(1.05);
        box-shadow: 0 0 10px rgba(79, 195, 247, 1), 0 0 15px rgba(79, 195, 247, 0.8), 0 0 20px rgba(79, 195, 247, 0.6);
    }
}

/* On mobile, published link is hidden - only shown in share buttons container */

