@import url('https://fonts.googleapis.com/css2?family=Gochi+Hand&family=Hubot+Sans:ital,wght@0,200..900;1,200..900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-image: url("/public/image5.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    font-family: "Gochi Hand", cursive;
    color: white;
    min-height: 100vh;
    overflow: hidden;
}

/* ── TOP CREDITS ── */
.top-credits {
    position: fixed;
    top: 32px;
    left: 0;
    right: 0;
    padding: 0 40px;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: opacity 0.4s;
}

.top-credits.hidden {
    opacity: 0;
    pointer-events: none;
}

.credits-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.built-by, .idea-by {
    font-family: "Gochi Hand", cursive;
    font-size: 20px;
    color: #000;
    white-space: nowrap;
}

.built-by a, .idea-by a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
}

.built-by a:hover, .idea-by a:hover { text-decoration: underline; }

/* ── SPEAKER ── */
.speaker-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: border-color 0.2s, transform 0.15s, background 0.2s;
    flex-shrink: 0;
}

.speaker-btn:hover {
    border-color: white;
    background: rgba(255,255,255,0.25);
    transform: scale(1.08);
}

.speaker-btn.muted {
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.4);
}

/* ── ABOVE BAR ── */
.above-bar {
    position: fixed;
    bottom: 200px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 32px;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 98;
}

.above-bar.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

/* ── TIER LIST ── */
.tier-list {
    width: 100%;
    max-width: 540px;
    background: #ffffff;
    border: 2.5px solid #000;
    border-radius: 20px;
    box-shadow: 5px 5px 0px #000;
    padding: 8px 20px;
    pointer-events: all;
}

.tier-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
}

.tier-num {
    font-family: "Gochi Hand", cursive;
    font-size: 22px;
    color: #ccc;
    flex-shrink: 0;
    width: 28px;
}

.tier-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.tier-name {
    font-family: "Gochi Hand", cursive;
    font-size: 18px;
    color: #1a1a1a;
    line-height: 1;
}

.tier-desc {
    font-family: "Gochi Hand", cursive;
    font-size: 12px;
    color: #aaa;
}

.tier-badge {
    font-family: "Gochi Hand", cursive;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 99px;
    flex-shrink: 0;
    font-weight: 600;
}

.baby  { background: #dcfce7; color: #16a34a; }
.npc   { background: #fef9c3; color: #ca8a04; }
.turbo { background: #ffedd5; color: #ea580c; }
.king  { background: #fee2e2; color: #dc2626; }

.tier-divider {
    height: 1px;
    background: #f0f0f0;
}
.above-bar h1 {
    font-family: "Gochi Hand", cursive;
    margin-bottom: 20px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.8), 0 0 12px rgba(0,0,0,0.6);
}
/* ── BOTTOM BAR / DRAWER ── */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 3px solid #000;
    box-shadow: 0 -6px 0px #000;
    z-index: 99;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 140px;
    overflow: hidden;
    color: #1a1a1a;
}

.bottom-bar.expanded {
    height: 100vh;
    overflow-y: auto;
}

/* ── LANDING STATE ── */
.bar-landing {
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 120px;
    flex-wrap: wrap;
}

.bar-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo {
    font-family: "Gochi Hand", cursive;
    font-size: 28px;
    color: #1a1a1a;
    line-height: 1;
}

.tagline {
    font-family: "Gochi Hand", cursive;
    font-size: 13px;
    color: #888;
}

.bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-wrap {
    display: flex;
    align-items: center;
    border: 2.5px solid #000;
    border-radius: 12px;
    background: white;
    overflow: hidden;
    box-shadow: 3px 3px 0px #000;
}

.at {
    padding: 10px 12px;
    font-family: "Gochi Hand", cursive;
    font-size: 16px;
    color: #aaa;
}

.sep {
    width: 1.5px;
    height: 20px;
    background: #eee;
    flex-shrink: 0;
}

.username-input {
    border: none;
    outline: none;
    padding: 10px 14px;
    font-family: "Gochi Hand", cursive;
    font-size: 16px;
    color: #1a1a1a;
    width: 220px;
    background: transparent;
}

.username-input::placeholder { color: #bbb; }

.send-btn {
    padding: 10px 22px;
    background: #000;
    color: white;
    border: 2.5px solid #000;
    border-radius: 12px;
    font-family: "Gochi Hand", cursive;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 3px 3px 0px #444;
    outline: 3px solid white;
    outline-offset: -6px;
    transition: transform 0.1s, box-shadow 0.1s;
    white-space: nowrap;
}

.send-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px #444;
}

.send-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #444;
}

.copyright {
    width: 100%;
    font-family: "Gochi Hand", cursive;
    font-size: 12px;
    color: #bbb;
    text-align: center;
    padding-top: 20px;
}

/* ── SCANNING STATE ── */
.bar-scanning {
    padding: 60px 32px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    min-height: 100vh;
}

.scan-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #000;
    object-fit: cover;
    box-shadow: 4px 4px 0px #000;
    animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.06); }
}

.scan-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scan-username {
    font-family: "Gochi Hand", cursive;
    font-size: 22px;
    color: #1a1a1a;
}

.scan-msg {
    font-family: "Gochi Hand", cursive;
    font-size: 16px;
    color: #888;
}

.scan-dots {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.scan-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #000;
    animation: dotBounce 1s ease-in-out infinite;
}

.scan-dots span:nth-child(2) { animation-delay: 0.15s; }
.scan-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes dotBounce {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50%       { transform: translateY(-6px); opacity: 1; }
}

/* ── RESULTS STATE ── */
.bar-results {
    padding: 40px 32px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    min-height: 100vh;
}

.back-btn {
    align-self: flex-start;
    font-family: "Gochi Hand", cursive;
    font-size: 16px;
    background: none;
    border: 2px solid #000;
    border-radius: 10px;
    padding: 6px 16px;
    cursor: pointer;
    color: #1a1a1a;
    transition: background 0.15s;
    box-shadow: 2px 2px 0px #000;
}

.back-btn:hover { background: #f5f5f5; }

.result-card {
    width: 100%;
    max-width: 540px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-top {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f9f9f9;
    border: 2.5px solid #000;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 4px 4px 0px #000;
}

.result-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #000;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 3px 3px 0px #000;
}

.result-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.result-username {
    font-family: "Gochi Hand", cursive;
    font-size: 16px;
    color: #888;
}

.result-rank {
    font-family: "Gochi Hand", cursive;
    font-size: 28px;
    color: #1a1a1a;
    line-height: 1;
}

.result-roast {
    font-family: "Gochi Hand", cursive;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.result-meme {
    width: 100%;
    max-width: 540px;
    height: 220px;
    border: 2.5px solid #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 4px 4px 0px #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Gochi Hand", cursive;
    font-size: 14px;
    color: #aaa;
    background: #f9f9f9;
}

.result-meme img,
.result-meme video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dl-btn {
    width: 100%;
    max-width: 540px;
    padding: 14px;
    background: #000;
    color: white;
    border: 2.5px solid #000;
    border-radius: 14px;
    font-family: "Gochi Hand", cursive;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 4px 4px 0px #444;
    outline: 3px solid white;
    outline-offset: -6px;
    transition: transform 0.1s, box-shadow 0.1s;
    margin-top: 8px;
}

.dl-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #444;
}

/* ── UTILITY ── */
.hidden { display: none !important; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .top-credits { top: 16px; padding: 0 20px; }

    .built-by, .idea-by {
        font-size: 15px;
        color: #888;
        text-shadow: none; ;
    }
.built-by a, .idea-by a { color: #888; }
    .above-bar {
        bottom: 320px;
        padding: 0 16px;
        text-shadow: none;;
    }
    .copyright{
        padding-top: 150px;
    }

    .tier-name { font-size: 16px; }
    .tier-num  { font-size: 18px; }

    .bottom-bar { height: 250px; }

    .bar-landing {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 10px;
        min-height: 160px;
    }
 

    .bar-right { width: 100%; }
    .input-wrap { flex: 1; }
    .username-input { width: 100%; }
    .tagline { font-size: 18px; }

    .bar-scanning {
        flex-direction: column;
        text-align: center;
        padding: 80px 20px 40px;
    }

    .bar-results { padding: 90px 20px 60px; }
}