* {
    box-sizing: border-box;
}

body {
    margin: 0;
    height: 100dvh;
    font-family: 'National Park', sans-serif;
    
    --_g: #0000 90deg, var(--secondary-transparent) 0;
    background:
        conic-gradient(from 116.56deg at calc(100%/3) 0   , var(--_g)),
        conic-gradient(from -63.44deg at calc(200%/3) 100%, var(--_g))
        var(--primary);
    background-size: 150px 150px;

    color: var(--text);
}

button {
    font-family: 'National Park', sans-serif;
    background-color: rgba(74, 45, 36, 0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    cursor: pointer;
    border: none;
}

p {
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
}

a {
    color: var(--text_highlight);
    transition: var(--transition);
}

a:hover {
    font-size: 17px;
}

.heading {
    padding: 0 20px;
}

.regular-glassmorphism {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.centeredHV {
    display: flex;
    align-items: center;
    justify-content: center;
}

.layout-container {
    display: flex;
    align-items: center;
    height: 100dvh;
    padding: 0 32px;
    gap: 32px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    width: fit-content;
    position: static;
    top: 50%;
    padding: 24px 16px;
    border-radius: 16px;
    height: 90dvh;
}

.sidebar div {
    cursor: pointer;
    width: fit-content;
    height: 48px;
}

.sidebar div svg path {
    transform-origin: center center;
    display: block;
    transition: var(--transition);
}

.sidebar div svg {
    transition: var(--transition);
}

.sidebar div svg:hover {
    transform: scale(1.1);
}

.sidebar__campfire:hover svg path {
    animation: campfire-flicker 0.5s infinite alternate ease;
}

@keyframes campfire-flicker {
    0% { transform: rotate(-5deg) scale(1); }
    20% { transform: rotate(5deg) scale(1.05); }
    40% { transform: rotate(-8deg) scale(0.98); }
    60% { transform: rotate(6deg) scale(1.03); }
    80% { transform: rotate(-3deg) scale(1); }
    100% { transform: rotate(0deg) scale(1.02); }
}

.sidebar__explore:hover svg path {
    transform: rotate(180deg);
}

.sidebar__shop:hover svg path {
    -moz-transform: scaleX(-1);
    -o-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    filter: FlipH;
    -ms-filter: "FlipH";
}

.sidebar__votes:hover svg path {
    transform: skewX(-8deg) scaleY(1.06) scaleX(1.02);
    filter: brightness(1.08) drop-shadow(0 1px 2px rgba(0,0,0,0.10));
    opacity: 0.92;
}

.main-area {
    flex: 1;
    height: 90dvh;
    padding: 0 20px;
    overflow-y: scroll;
}

.main-area__section {
    display: flex;
    flex-direction: column;
}

.main-area__status-div {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#main-area__status {
    text-align: center;
}

.cache__notice {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-items: center;
    gap: 16px;
    padding: 8px 16px;
    margin: 16px;
}

.cache__notice * {
    margin: 0;
}

.login__div {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
    width: fit-content;
    padding: 24px 36px;
    margin: 16px;
    width: fit-content;
    overflow: auto;
}

.login__heading {
    margin: 0 0 16px 0;
}

.login__token-div {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.login__token-div {
    margin: 8px 0;
}

#tokenInput {
    font-family: "National Park", sans-serif;
    font-size: 1em;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    color: #4A2D24;
    appearance: none;
    cursor: text;
    transition: all 0.3s ease;
    margin: 0;
}

#tokenInput:focus, #tokenInput:active {
    outline: none !important;
}

#tokenSave {
    font-family: 'National Park', sans-serif;
    background-color: rgba(74, 45, 36, 0.8);
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    cursor: pointer;
    border: none;
    margin: 0;
    transition: var(--transition);
}

#tokenSave:hover {
    transform: scale(1.05);
    filter: brightness(0.875);
}

#tokenSave:disabled {
    filter: brightness(0.75);
}

#login__status {
    display: none;
    color: var(--text_highlight);
    text-align: center;
}

.guide__div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: baseline;
}

.guide__div h2 {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35em;
}

#browser__select {
    cursor: pointer;
    transition: var(--transition);
}

#browser__select:hover {
    filter: brightness(0.95);
    transform: scale(1.05);
}

#browser__select:hover span {
    padding-right: 24px;
    padding-left: 24px;
}

#browser__select:hover span::after {
    opacity: 1;
    right: 0;
}

#browser__select:hover span::before {
    opacity: 1;
    left: 0;
}

#browser__select span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: var(--transition);
}

#browser__select span::after {
    content: '\003C';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    transition: var(--transition);
}

#browser__select span::before {
    content: '\003E';
    position: absolute;
    opacity: 0;
    top: 0;
    left: -20px;
    transition: var(--transition);
}